Instructions

Data communication protocol
UART Interface Protocol
UART Interface
Start bit1
Data bit8
Parity bitNone
Stop bit1
diagram
Data Format
Module ground
(2 Byte)
length(1 Byte)
command(1Byte) Data(n Byte)
verify(1 Byte)
Module address: fixed to 0x00 for a module used alone;
For the network version module, it is 0x01~0XFE; 0xFF is broadcast (no answer).
Note: The module address is exactly the same 2 bytes.
Length: length (1Byte) + command (1Byte) + data (nByte)
Command: valid command (Reference command table)
Data: valid data
Check: length (1Byte) + command (1Byte) + data (nByte) XOR
Return data format
Command
length(1Byte)
Success/failure
value(1Byte)
Data(n Byte)
verify(1 Byte)
header(1Byte)
Command header: 0xFE
Length: Length (1Byte) + Command (1Byte) + Data (n Byte)
Success/Failure value: (Reference command table)
Data: If there is data returned, it is valid data
Verify: Length (1Byte) + Command (1Byte) + Data (n Byte) XOR
6
of 15
Rev 1.0
Startbit
Databit 0
(LSB)
Databit 1
Databit 2
Databit 3
Databit 4
Databit 5
Databit 6
Databit 7
(MSB)
Stoppbit