User Manual

User Guide
©2008-2020 Seeed Technology Co., Ltd. All rights reserved. solution.seeedstudio.com
16 / 23
Register number
2byte
0x0002
Check
2byte
0xC5B3
Respond01 03 04 00 01 00 03 EB F2
Address
1byte
0x01
Function number
1byte
0x03
Effective byte
number
1byte
0x04
Slave address
register value
2byte
0x00 (From machine address high byte)
0x01 (From machine address low byte)
The baud rate
register value
2byte
0x00 (High baud rate byte)
0x03 (low baud rate byte)
Check
2byte
0xEBF2
5.4.2 Function number 4 communication sample
Common request formatAA 04 RRRR NNNN CCCC
AA
1byte
Address, 0-255
04
1byte
Function number4
RRRR
2byte
Start register address, High byte in front
NNNN
2byte
o read the number N Register, high byte in the front
CCCC
2byte
CRC CHECK
Common request formatAA 04 MM VV0 VV1 VV2 VV3… CCCC
AA
1byte
Address, 0-255
04
1byte
Function number4
MM
1byte
Returns the number of data byte in the register value
VV0,VV1
2byte
Returns the first register value
VV2,VV3
2byte
Returns the second register value
Returns the “N” register value (N=MM/2)
CCCC
2byte
CRC CHECK