EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: StreamDevice and checksum
From: "Owens, PH \(Peter\)" <[email protected]>
To: "Phillip Sorensen" <[email protected]>, "TechTalk EPICS" <[email protected]>
Date: Mon, 29 Jan 2007 17:49:33 -0000
You can set
extraInput = Ignore
and that will discard everything after the bit you are interested in.

It will depend the format of the value part of the message.
If say it was a decimal integer then you could read it
with a protocol:
in "OK:%d,"
or extract the checksum with:
in "OK:%*d,%x"

A variable length string would be more difficult.

Pete

> -----Original Message-----
> From: Phillip Sorensen [mailto:[email protected]]
> Sent: 29 January 2007 17:06
> To: TechTalk EPICS
> Subject: StreamDevice and checksum
> 
> 
> Hello,
> 
> I am trying to get a device working with StreamDevice 2-1.  My device 
> returns a message in the form of "OK:value,checksum".  The 
> checksum is 
> only for the value part of the message.  I am able to skip 
> the "OK:" by 
> using the width field, but trying to use the precision filed 
> to skip the 
> "," between the value and checksum gives an error about not 
> being able 
> to use the precision field.
> 
> Is there a way to tell the parser to skip the ","?
> 
> Phil Sorensen
> CHESS
> 
> 
> 


Replies:
RE: StreamDevice and checksum Denison, PN (Peter)
References:
StreamDevice and checksum Phillip Sorensen

Navigate by Date:
Prev: Re: EPICS Base R3.14.9-RC1 Released Andrew Johnson
Next: Re: EPICS Base R3.14.9-RC1 Released Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: StreamDevice and checksum Phillip Sorensen
Next: RE: StreamDevice and checksum Denison, PN (Peter)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·