Chapter 7 Communication Protocol
www.supmea.com
8
7.3 Data frame structure:
Frame header: Starting byte, slave address.
End of frame: Check data (XOR check).
Parameter data: Function code operation
command/response, function code number, function code
setting/actual value.
Process data: Host control command/ slave state
response, master setting of host operation/actual value of
slave operation.
7.4 Format:
Serial port settings: 8-bit data,1-bit stop.
Example: 9600,N,8,1
Meaning
:
9600bps, No check, 8-bit data, 1-bit stop, serial
port baud rate supported by this
transmitter:1200,2400,4800,9600,
19200,38400,57600,115200
The polynomial of CRC check : 0xA001.
7.5 Communication format
Examples of reading command format
A. Send the reading command format:
AddressFunction
code
D
ata
starting
(H)
D
ata
starting
(L)
D
ata
number
(H)
D
ata
number
(L)
CRC16
(L)
CRC16
(H)
0X01
0X03
0X00
0X00
0X00
0X01
0X84
0X0A