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  <20102011  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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: hex stream processing with StreamDevice?
From: Dirk Zimoch <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "Barker, Alan M." <[email protected]>, [email protected]
Date: Thu, 19 Aug 2010 17:09:56 +0200
Mark Rivers wrote:
Alan,

You may be able to do everything by just writing a streamDevice protocol
file. streamDevice can calculate a number of CRCs, it can build and
parse strings, etc.


For example, here is a simple protocol file for an Alcatel pressure
gauge:

InTerminator = CR LF;
ENQ = \005;
ACK = \006;

readPressure {
   out "PR1\r\n";
   in "\${ACK}";
   out "\${ENQ}";
   in  "%*d, %f";
}

Mark, StreamDevice understands ACK and ENQ.

readPressure {
   out "PR1\r\n";
   in ACK;
   out ENQ;
   in  "%*d, %f";
}

References:
hex stream processing with StreamDevice? Barker, Alan M.
RE: hex stream processing with StreamDevice? Mark Rivers

Navigate by Date:
Prev: Re: CA gateway dies without error message Martin L. Smith
Next: Re: CA gateway dies without error message Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: hex stream processing with StreamDevice? Mark Rivers
Next: RE: hex stream processing with StreamDevice? Barker, Alan M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·