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  <20182019  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  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Stream Device: Parse response that includes checksum of command string
From: David Vine <[email protected]>
To: [email protected]
Date: Thu, 2 Aug 2018 17:44:55 -0700
Hi all,

i'm writing device support for the MeCom protocol for a TEC driver from Meerstetter Engineering.

In order to parse the response correctly I need to calculate a checksum thats not included in the response. This is because the response includes the checksum of the command and not the response.

For example:

Command format:
# address sequence_number command CRC16 terminator
# 01 15AA ?IF 257D \r

Response is:
# address sequence_number CRC16 terminator
# 01 15AA 257D \r

So to parse the response I need to calculate a CRC that's not included in the response. For example:

OUT "#0115AA?IF%<xmodem>\r"
IN "#0115AA%<xmodem>\r" but the CRC is for the OUT not the IN.

Any ideas would be much appreciated.

Thanks,
David

--
Best regards,
David Vine
(925) 326 7503

http://www.Sigray.com

 

This e-mail and any attachments are provided for the sole use of the intended recipient(s), and may contain information that is confidential, privileged, proprietary or otherwise protected by law. If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy, forward or otherwise disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete the original message from your mail system. Thank you.



Replies:
Re: Stream Device: Parse response that includes checksum of command string Eric Norum
Re: Stream Device: Parse response that includes checksum of command string Dirk Zimoch

Navigate by Date:
Prev: Re: Delta Tau motor control problem Mark Rivers
Next: Re: Stream Device: Parse response that includes checksum of command string Eric Norum
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: streamDevice 32-Bit ULONG endianess Dirk Zimoch
Next: Re: Stream Device: Parse response that includes checksum of command string Eric Norum
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 06 Aug 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·