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

Subject: Re: Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time
From: Marco Filho via Tech-talk <tech-talk at aps.anl.gov>
To: Ralph Lange <ralph.lange at gmx.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 14 Oct 2024 09:59:41 +0000

Last time we had something similar adding this:

@replytimeout { disconnect; wait 1000; connect 1000;}

To the protocol solved everything. It was a suggestion from someone, I think Mark.

Cheers :)


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
Sent: 14 October 2024 11:53:14
To: EPICS Tech Talk
Subject: Re: Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time
 
(Without looking at your protocols...)

That out-of-sync behavior often happens when the device takes an unusually long time to reply once in a while. (E.g., a small controller that has to do something at higher priority for a while.)

The IOC times out and sends the next request, then the device sends the reply to the last request, which the IOC doesn't like. The IOC sends the next request, the device answers with the reply for the previous request, and so on...

Try increasing your timeouts, so that the IOC waits even in the cases where the device takes a break. Analyze your log timestamps. Are specific commands taking longer? Increase the timeout for those. I have also seen devices taking a nap after specific commands complete successfully - in those cases, "wait;" instructions in the protocol can keep StreamDevice from sending the next command immediately.

Good luck!
~Ralph

Replies:
RE: Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time Abdalla Ahmad via Tech-talk
References:
Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time Dr. Simon Friederich via Tech-talk
Re: Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time Ralph Lange via Tech-talk
Next: RE: Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time Abdalla Ahmad 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  <20242025 
Navigate by Thread:
Prev: Re: Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time Ralph Lange via Tech-talk
Next: RE: Asyn + Streamdevice: Gamma Vacuum Digtial QPC, missmatch after some time Abdalla Ahmad 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  <20242025 
ANJ, 14 Oct 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·