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

Subject: Re: time out error in streamdevice
From: "Zimoch Dirk \(PSI\) via Tech-talk" <tech-talk at aps.anl.gov>
To: "marco_hair at 163.com" <marco_hair at 163.com>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 15 Jul 2022 15:49:22 +0000
Hello Geyang,

The scan period has nothing to do with it.
You are getting timeouts after 0.5 seconds reading 8 of requested 64 bytes. (e.g. line 7044)

If your expected input is only 8 bytes long, set MaxInput=8 and not 64.
Otherwise try increasing ReadTimeout (currrently 500 milliseconds).

The uploaded file seems a bit messed up from the controls characters that are supposed to make the output colorful.
Try to set in your startup script: var streamDebugColored,0

If a user writes a command to the device while the driver is busy with query commands (and probably waiting for
timeout), the set command will be delayed until all queued commands with the same priority have been processed.

I often set field(PRIO, "HIGH") in set records while I leave the request records on the default priority "LOW". That way
the set record can write to the device immediately after the currently active record finished and does not have to wait
for a queue of request records.

Dirk

On Fri, 2022-07-15 at 22:41 +0800, Silver via Tech-talk wrote:
> hi,
> 
> I am using a streamdevice driver to control a power supply. there are about 12 read commands and several setting
>  commands. if use some network debug tools testing, the device can responese each command quickly (around 100ms). But
> if I use streamdevice driver, there are timeout errors show in attach logfile, even I have set the scan period very
> slow such as 1 second.
> ps, if the user send set command to device, when will it happen? after a round query command finishing?
> thank a lot for your help.
> 
>  
> attach file download url:  https://pan.baidu.com/s/1aBIw8T1NxhH07qTjPCZfMg?pwd=8888  ; 
>  
>  
>  
>  
> Best wishes
> Geyang 2022-07-15
>  
>  

References:
time out error in streamdevice Silver via Tech-talk

Navigate by Date:
Prev: time out error in streamdevice Silver via Tech-talk
Next: Equivalent of EPICS_CA_NAME_SERVERS for PV Access? Gibbs, Matt 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  <20222023  2024 
Navigate by Thread:
Prev: time out error in streamdevice Silver via Tech-talk
Next: Equivalent of EPICS_CA_NAME_SERVERS for PV Access? Gibbs, Matt 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·