10 - 54
IPN 074-505-P1E
IC6 Operating Manual
10.4.35 IC6 Communications Examples
10.4.35.1 General Command Packet Format
<Length(low/high, 2 byte)><Message(command)><Checksum(1 byte Hex)>
10.4.35.2 General Response Packet Format
<Length(low/high, 2 byte)><CCB(1 byte, no errors returns 00)><Timer(1 byte
binary)><Response Message(Command Response)><Checksum(1 byte Hex)>
10.4.35.3 HELLO Command, ASCII name and version
Command Format: H <Command ID>
H1
Command H1: 0200480149
Response: 1400005F064943362056657273696F6E20302E31340010
Example: H1 command
HELLO Command, ASCII name and version
Command:
02 00 48 01 49
Response: 14 00 00 5F 06 49 43 36 20 56 65 72 73 69 6F 6E 20 30 2E 31 34 00 10
Checksum: 1 byte, hex sum of complete
message exluding length characters. In this case,
48+01 = 49. Be sure to add in hex.
Command ID: 1 binary byte,
identifies specific command within
command category (in this case,
asks for ASCII name and version).
SCII <ACK>, acknowledges a
good command.
CCB: 00 Indicates no errors in the
command packet.
Timer Tick: Increments 10
times/second.
ASCII Name and version: Each byte represents an ASCII
character. Combine these characters to get "IC6 Version 0.14".
The H1 command response is a string of ASCII characters.
Null terminator for ASCII
character string.
Length character: Hex number of bytes in
the message excluding length character and
checksum. In this case, the message
consists of 14 bytes (00,5F,06, . . . 34,00).
The low end of the length character is first,
followed by the high end (00 in this case).
Remember to count in hex.
Length character: Hex number of bytes in
the message excluding length character and
checksum. In this case, the message
consists of 2 bytes (48 and 01). The low
end of the length character is first, followed
by the high end (00 in this case).
Remember to count in hex. ASCII H: This is the Command Group
byte, specifying the category of the
command (HELLO in this case).
Checksum: 1 byte, hex sum
of complete message
excluding length characters. In
this case, 00+5F+06+49+
43+36+20+56+65+72+73+
69+6F+6E+20+30+2E+31+
34+00 = 510, so the
checksum shown is 10.
Be sure to add in hex.