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 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
<== Date ==> <== Thread ==>

Subject: Re: StreamDevice Checksum formatting bug
From: "Baily, Scott A via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Sun, 16 Feb 2025 23:11:08 +0000
I realize that to represent all possible 16-bit checksums as a decimal number one would need 5 characters, but my device only uses 4. None of the strings are longer than 78 characters so it won’t overflow, but there doesn’t seem to be a way to specify the field width for a checksum (the width and precision specifiers are used for other purposes).

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Baily, Scott A via Tech-talk <tech-talk at aps.anl.gov>
Sent: Friday, February 14, 2025 11:10:08 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: [EXTERNAL] StreamDevice Checksum formatting bug
 

I seem to be having a problem with the formatting of 16-bit checksums from StreamDevice 2.8.25.   When I use a string that ends with “%+<sum16>” in the protocol file, I get the correct checksum in ascii characters as expected, but I have an extra leading 0  (5 characters instead of 4).  A checksum that should be “0389” is written as “00389”   A similar problem seems to be happening when reading (seems to be expecting an extra leading zero).  I can work around this because I know what will be sent and can ignore the checksum on reads,.  Has anyone else had this problem? If this is working correctly for you, what version of StreamDevice are you using?


Replies:
Re: StreamDevice Checksum formatting bug Zimoch Dirk via Tech-talk
References:
StreamDevice Checksum formatting bug Baily, Scott A via Tech-talk

Navigate by Date:
Prev: Re: IOC, QServ, and AMSG / alarm.message Michael Davidsaver via Tech-talk
Next: Re: StreamDevice Checksum formatting bug Zimoch Dirk 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
Navigate by Thread:
Prev: Re: StreamDevice Checksum formatting bug Zimoch Dirk via Tech-talk
Next: Re: StreamDevice Checksum formatting bug Zimoch Dirk 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
ANJ, 17 Feb 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·