EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Re: CA gateway crashes periodically due to badly behaved servers
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Wed, 25 Mar 2026 13:59:32 +0100
Hi Brian,

As the reluctant Gateway maintainer...
Please create an issue in the upstream ticket system [1], adding the information from this mail. Your workaround / quickfix of keeping the signal handler installed sounds like a reasonable thing to do. Not cancelling the subscriptions after BADMASK also sounds like a feasible option.

On Wed, 25 Mar 2026 at 01:25, Brian Bevins via Tech-talk <tech-talk at aps.anl.gov> wrote:
[...] The Labview PXI crate itself is a complete black box to me. Even the owners know very little about it. The only thing they seem to be able to do with it is configure the environment. The purpose of the gateway for my department is to shield our stuff from this kind of behavior. The frequent disconnections result in a lot of beacon anomalies on our side from the gateway that are kind of playing havoc with systems like our archiver, which is expected to be able to archive PVs from this crate, among others.

Does anybody have any suggestions about how to approach this? At this point I'm ready to hack the gateway to detect the BADMASK and NOT cancel the subscriptions. Only the property info would be lost, and our archiver doesn't care about that anyway. Alternatively, I could patch it to not shut down the VC in response to the Bad ID exception, but that seems riskier.

Pretty much out-of-line, but...
NI offers an OPC UA server that runs on their controllers. For cRIO, we evaluated that and decided it will be our new standard way to integrate cRIO solutions. Don't know about PXI, though.
NI's OPC UA server is certified, thus guaranteed to closely stick to the well-defined protocol. EPICS Integration through the OPC UA support is straightforward.

This would be an investment, doesn't solve your current issues, but might be a simpler long-term solution with less surprises and side-effects.

Cheers,
~Ralph


Replies:
Re: [EXTERNAL] Re: CA gateway crashes periodically due to badly behaved servers Brian Bevins via Tech-talk
References:
CA gateway crashes periodically due to badly behaved servers Brian Bevins via Tech-talk
Re: CA gateway crashes periodically due to badly behaved servers Wang, Lin via Tech-talk
Re: [EXTERNAL] Re: CA gateway crashes periodically due to badly behaved servers Brian Bevins via Tech-talk
Re: [EXTERNAL] Re: CA gateway crashes periodically due to badly behaved servers Brian Bevins via Tech-talk

Navigate by Date:
Prev: Re: Lack of error message from invalid CROSS_COMPILER_TARGET_ARCHS Wells, Alex (DLSLtd,RAL,TEC) via Tech-talk
Next: Re: [EXTERNAL] Re: CA gateway crashes periodically due to badly behaved servers Brian Bevins via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
Navigate by Thread:
Prev: Re: [EXTERNAL] Re: CA gateway crashes periodically due to badly behaved servers Brian Bevins via Tech-talk
Next: Re: [EXTERNAL] Re: CA gateway crashes periodically due to badly behaved servers Brian Bevins via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
ANJ, 25 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·