User Manual

Copyright 2012 Page 59
Use the G command to turn on the checksum mode. In checksum mode, two characters are
added to the response string between the message string and the termination sequence,
(l/f)(c/r). The checksum is formed by setting an 8 bit checksum value to all 1’s and then
performing an exclusive or operation (XOR) between the existing checksum value and each
character of the response string in turn, until all the characters are processed. The resulting 8
bit checksum is then converted into two separate characters as shown below.
Checksum value: c7 c6 c5 c4 c3 c2 c1 c0
First checksum character to be transmitted: 0 1 0 0 c7 c6 c5 c4
Second checksum character to be transmitted: 0 1 0 0 c3 c2 c1 c0
These two characters are appended to the response string followed by the
termination sequence. Use the H command to turn the checksum mode off.