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  <20152016  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Possible to set EOS in asyn to match a character plus whatever character follows?
From: Mark Rivers <[email protected]>
To: "'Andrew Gomella'" <[email protected]>, "[email protected] Talk" <[email protected]>
Date: Tue, 17 Feb 2015 19:40:23 +0000

Is the checksum a fixed length?  If so you could do:

 

- Set terminator to be the constant character

- Read to terminator

- Set no terminator

- Read with length=checksum length

 

Mark

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Gomella
Sent: Tuesday, February 17, 2015 1:23 PM
To: [email protected] Talk
Subject: Possible to set EOS in asyn to match a character plus whatever character follows?

 

Hi,

Is it possible to do this?

My serial device always responds with the same ASCII character code followed by a checksum. My current implementations of both serial device and asyn have considerable issues with this because it relies on the read timing out rather than end of string being reached.

 

Thanks,

Andrew



--

Andrew Gomella

 

 


References:
Possible to set EOS in asyn to match a character plus whatever character follows? Andrew Gomella

Navigate by Date:
Prev: Possible to set EOS in asyn to match a character plus whatever character follows? Andrew Gomella
Next: Error in EDM-1-12-98 installation Rahul Jain
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Possible to set EOS in asyn to match a character plus whatever character follows? Andrew Gomella
Next: Error in EDM-1-12-98 installation Rahul Jain
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·