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

Subject: RE: StreamDevice (streamCore::readCallback called unexpectedly)
From: "Wang, Andrew via Tech-talk" <tech-talk at aps.anl.gov>
To: Zimoch Dirk <dirk.zimoch at psi.ch>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 12 Feb 2024 17:26:47 +0000
Hi Dirk,

Sorry for the late response. I just got back to looking at this issue.

It seemed like the issue occurred when I set the SCAN to be off of I/O Interrupt. I think I used it incorrectly since I am communicating with the instrument through TCP/IP.

Let me know if you would like to see how I used it, code-wise.

Andy 

-----Original Message-----
From: Zimoch Dirk <dirk.zimoch at psi.ch> 
Sent: Thursday, November 16, 2023 12:05 AM
To: Wang, Andrew <wang126 at llnl.gov>; tech-talk at aps.anl.gov
Subject: Re: StreamDevice (streamCore::readCallback called unexpectedly)

Hi Andrew,

That is interesting. I have never seen this behavior and would like to reproduce it. But for that, I need to understand exactly what happens.

StreamDevice claiming something "unexpected" happens of course means that I never expected it to happen and thus I have no idea how to force this behavior.
Thus, the more precisely you can tell me what exactly your instrument does, the higher the chance I can fix it.

Does the instrument shutdown its socket? Or does it simply switch off its network interface? Or is it for example a firewall that interrupts the connection? Can you get the same behavior switching off your instrument or pulling the network cable? Anything I can try without having access to your instruments?

Dirk


On Wed, 2023-11-15 at 19:24 +0000, Wang, Andrew via Tech-talk wrote:
> Hi all,
>  
> This is kind of a general question, but we have an IOC that is running 24 instruments, all of the same type. We have them set to DHCP and a timeout of 30s meaning that the connection closes if the instrument does not receive TCP/IP commands after 30s.
>  
> I have a fanout that processes records and fetches values from the instruments through queries defined in a protocol file. After 30s, the IOC would output a plethora of error messages from StreamDevice that all say streamCore::readCallback(rec_name) called unexpectedly. It doesn’t do that every 1 second, which is what I have the scan rate of the fanout record set to.
>  
> It would be great if somebody could shed some light on scenarios that could cause this error message to be generated.
>  
> Thank you,
> Andy
>  
> Purple ribbon awareness
>  

Navigate by Date:
Prev: New areaDetector releases Mark Rivers via Tech-talk
Next: 2024 EPICS Codeathon/Documentathon at Brookhaven National Lab Shroff, Kunal 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
Navigate by Thread:
Prev: New areaDetector releases Mark Rivers via Tech-talk
Next: 2024 EPICS Codeathon/Documentathon at Brookhaven National Lab Shroff, Kunal 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
ANJ, 12 Feb 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·