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: Streams question
From: Steven Hunt via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk <tech-talk at aps.anl.gov>
Date: Fri, 20 Mar 2026 09:59:30 -0700
Hi we have a device that reads the following data over RS232

"000001 0000F9 0000 0000 0000 0000 0F 00 00<0d><0a>"

The data comes quite slowly, every 4 seconds (@ 9600 baud if I remember correctly)  via a port server , we were using the following proto file (simplified version)

ReadTimeout = 1000;
Terminator = CR LF;

dose_rate {in "%x %*x %*x %*x %*x %*x %*x %*x %*x";}


This has been working well, but occasionally we get last character is missing.

StreamIoSuccess input="000001 00005A 0000 0000 0000 0000 0F 00 00<0d>", size=43)

Then catch it in the next buffer
.  
StreamIoSuccess input="<0a>000001 00005A 0000 0000 0000 0000 0F 00 00<0d><0a>", size=45)
 
We have tried many combinations of the proto file, changing timeout, ignore extra input etc, putting everything into a long char buffer ,,,,,   

Can anyone advise on the best protocol file entry to capture this type of data cleanly?

Steve




Replies:
Re: Streams question Mark Rivers via Tech-talk
Re: Streams question Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: RE: EPICS Collaboration Meeting Spring 2026 - CEA IRFU Paris-Saclay GAGET Alexis via Tech-talk
Next: Re: Streams question 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  2025  <2026
Navigate by Thread:
Prev: Re: pilatus3 6m readCamserver timeout init Mark Rivers via Tech-talk
Next: Re: Streams question 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  2025  <2026
ANJ, 20 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·