User`s manual

Annex A - Checksums
173
Command ID Value Table
This section presents the valid values for the Command ID field presented earlier.
Serialization Convention
The Dispatcher expects the data coming from the serial port respect the Big Endian bits ordering and
network byte order.
Annex A - Checksums
The checksum algorithm used is the IP checksum specified in RFC1071 (http://www.faqs.org/rfcs/
rfc1071.html). It can be used in two modes 8 and 16 bit.
8 Bit Checksum
The 8 bit checksum is used in the data packet as a header checksum. It is used to verify that the length field
was not corrupt.
The checksum should include the 16 bit length field, the 8 bit protocol field and the 8 bit command field.
The checksum must be calculated as described in RFC1071 but using single byte complement 1's sum
instead of byte pair.
Command ID value Description
0x01 Open Socket Command
0x02 Send Data Command
0x03 Close Socket Command
0x04 Data from TCP device
Kaleido-X User's Manual.book Page 173 Friday, August 24, 2007 4:39 PM