advertisement
from the Forum department...
Do you recognize this error checking?
Software, including programming, OS issues, etc. topic
Posted by Harvard on 31 March, 2009 - 11:23 am
The packet is:

f0 58 02 00 4c 29 59 64

Where 0xf0 is a header byte indicating this packet is destined for the Host, 0x58 is an opcode, 0x20 0x00 means two data bytes to follow and the two data bytes are 0x4c 0x29. The error checking field bytes are 0x59 0x64. Do you recognize the error checking method used here?


Posted by Eric Ratliff on 31 March, 2009 - 5:19 pm
Are you sure the last byte is 64? There is a nice checksum calculator at http://www.lammertbies.nl/comm/info/crc-calculation.html? . There you can see that f0 58 02 00 4c 29 (ascii) gets 59 C4 for Xmodem checksum. I know close only counts in horse shoes and hand grenades, but C looks a lot like 6.

Eric
www.icpdas-usa.com


Posted by Harvard on 1 April, 2009 - 9:09 pm
Yes it is a 0x64, here are a few more from the same com link.
f0 01 00 02 00 01 01 7e 9a
f0 15 00 00 00 97 aa
f0 16 00 00 00 9b ab
I am not including any Host to Slave messages because they are too long, it is a communication link between an RTU and its LCD display.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
Drive defensively. Buy a tank.
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive