I-7088 and M-7088 User Manual, Rev: A1.2 7MH-026-A12
17
Checksum Calculation:
Calculate the ASCII code sum of all the characters in the
command/response string, except for the carriage return character
(CR).
The checksum is equal to the sum masked by 0ffh.
Example:
Command string: $012(CR)
The sum of the string = “$”+”0”+”1”+”2” = 24h+30h+31h+32h = B7h
Therefore the checksum is B7h, and so CHKSUM = “B7”
The command string with the checksum = $012B7(CR)
Response string: !01200600(CR)
The sum of the string = “!”+”0”+”1”+”2”+”0”+”0”+”6”+”0”+”0” =
21h+30h+31h+32h+30h+30h+36h+30h+30h = 1AAh
Therefore the checksum is AAh, and so CHKSUM = “AA”
The response string with the checksum = !01200600AA(CR)
Note:
All characters should be in upper case.
General Command Sets
Command Response
Description Section
%AANNTTCCFF !AA
Sets the configuration of
the module
2.1
$AA2 !AANNTTCCFF
Reads the configuration
of the module
2.6
$AA5 !AAS
Reads reset status of
the module
2.9
$AAF !AA(Data)
Reads the firmware
version
2.32
$AAI !AAS
Reads the status of the
INIT switch
2.33