I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.6
Page:
55
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.1 Checksum algorithm
The checksum algorithm is that convert all the characters of the command string
(the first character to the characters before [CHK]) into ASCII hexadecimal values, and
take out the lowest 2 digit value after adding up, and then convert this value back to an
ASCII string, for example as below.
Example:
Command: Restart CAN converter module, RA[CHK]<CR>.
1. String sum = 'R' + 'A' = 52h + 41h = 93h.
2. Therefore, the checksum
is 93h, then [CHK] = ”93”.
3. The command string contains the checksum is "RA93<CR>".