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: Dirk Zimoch <[email protected]>
To: "Phillip A. Sorensen" <[email protected]>
Cc: "Denison, PN \(Peter\)" <[email protected]>, [email protected]
Date: Mon, 05 Feb 2007 14:32:46 +0100
Hi Phillip,

sorry for the late reply but I was on vacation.

As you already found out yourself, the "skip bytes between value and checksum" feature has been added only in the latest patch (20060717). Thus either apply StreamDevice-2-1-patch20060717 or use the CVS snapshot as you did.

All users of StreamDevice should have a look at http://epics.web.psi.ch/software/streamdevice/ from time to time be informed about new features, bugs (solved and unsolved) and patches.

The online documentation is always from the latest (CVS) version and some documented features may not be available until the latest patches have been applied.

Yours
Dirk

Phillip A. Sorensen wrote:
From: Phillip Sorensen [mailto:[email protected]]

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 field 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 ","?

According to the docs, this should be achievable as you suggest, using:


in "OK:%f,%3.1<xor>"

or whatever value and checksum conversion type you need.
I've looked at the code and can't see why a precision wouldn't work.

What is the error message, exactly?


The line in the protocal file is "OK:%f,%3.1<sum8>".  And the error is
"Use of precision field only allowed in output formats". From what I can
tell the error comes from the StreamProtocol.cc file in StreamDevice-2.1.

I have moved to snapshot-20061002, and things are working.





-- Dr. Dirk Zimoch Swiss Light Source Computing and Controls Paul Scherrer Institut phone +41 56 310 5182 fax +41 56 310 4413

References:
RE: StreamDevice and checksum Owens, PH (Peter)
RE: StreamDevice and checksum Denison, PN (Peter)
RE: StreamDevice and checksum Phillip A. Sorensen

Navigate by Date:
Prev: ICS 8065 LAN-GPIB converter Peter Mueller
Next: Re: Out of order replies from a serial device Dirk Zimoch
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: RE: StreamDevice and checksum Phillip A. Sorensen
Next: "Heartbeat" databases or sequences? Kay-Uwe Kasemir
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 ·