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  <20252026  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  <20252026 
<== Date ==> <== Thread ==>

Subject: Re: Fast stream-device IOC suddenly disconnects
From: Abdalla Ahmad via Tech-talk <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 3 Oct 2025 18:11:27 +0000
Hello Mark

I wanted to wait for it to disconnect again to investigate further, unfortunately still the ioc shell shows no error messages and the terminal statistics just stops counting. I know disconnectOnReadTimeout will solve it but I really want to troubleshoot further and see if something can be done on the device's firmware side because we changed the terminal server two times with the same scenario. 

Best Regards 
Abdalla


From: Mark Rivers <[email protected]>
Sent: Friday, October 3, 2025 5:18:24 PM
To: Abdalla Ahmad <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Fast stream-device IOC suddenly disconnects

Hi Abdalla,

I’ve made 3 suggestions:
- Set disconnectOnReadTimeout
- Log all communication to see if it stops
- Look at the statistics in the terminal server

Have you tried these?

Mark

Sent from my iPhone

On Sep 28, 2025, at 10:08 AM, Abdalla Ahmad <[email protected]> wrote:


Hi Mark

Thanks for the info. I forgot to mention that the device is a serial port connected to a terminal server, and the device has been tested locally streaming data for periods longer than what we have so I don't think it just stopped sending data.

Best Regards 
Abdalla.


From: Mark Rivers <[email protected]>
Sent: Sunday, September 28, 2025 5:02:36 PM
To: [email protected] <[email protected]>; Abdalla Ahmad <[email protected]>
Subject: Re: Fast stream-device IOC suddenly disconnects
 
Hi Abdalla,

It looks like the device streams data without needing to send a command, i.e. it is not a write/read operation, correct?

If it freezes then that suggests that the device has stopped sending data for some reason.  That should mean that the asyn read operation timed out, and StreamDevice should be reporting that?

You can try adding this to the startup script after drvAsynIPPortConfigure:

asynSetOption($(PORT), 0, "disconnectOnReadTimeout", "Y")

That will disconnect the port when a read times out, which is equivalent to writing 0 to the CNCT field.

Mark


From: Tech-talk <[email protected]> on behalf of Abdalla Ahmad via Tech-talk <[email protected]>
Sent: Sunday, September 28, 2025 6:08 AM
To: [email protected] <[email protected]>
Subject: Fast stream-device IOC suddenly disconnects
 

Hi

 

We have a device streaming data at 200 Hz controlled with stream device, parses the streamed data and writes to corresponding PVs. The problem is that every day or two, the readings freeze. At first I had to restart the IOC but I noticed that the IOC does not show any error so I re-connect the asyn port through writing 0 to the CNCT field and it worked. The st.cmd file has the port configured:

 

drvAsynIPPortConfigure(“PORT”, “ip-address:port-number”, 0, 0, 0)

 

What could be the issue here? I am using EPICS base 7.0.9 and latest version of all modules.

 

Best Regards,

Abdalla Al-Dalleh

Control Engineer

SESAME

 



Replies:
Re: Fast stream-device IOC suddenly disconnects Mark Rivers via Tech-talk
Re: Fast stream-device IOC suddenly disconnects Charter via Tech-talk
References:
Fast stream-device IOC suddenly disconnects Abdalla Ahmad via Tech-talk
Re: Fast stream-device IOC suddenly disconnects Mark Rivers via Tech-talk
Re: Fast stream-device IOC suddenly disconnects Abdalla Ahmad via Tech-talk
Re: Fast stream-device IOC suddenly disconnects Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Fast stream-device IOC suddenly disconnects Mark Rivers via Tech-talk
Next: Re: Fast stream-device IOC suddenly disconnects Mark Rivers 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  <20252026 
Navigate by Thread:
Prev: Re: Fast stream-device IOC suddenly disconnects Mark Rivers via Tech-talk
Next: Re: Fast stream-device IOC suddenly disconnects Mark Rivers 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  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·