
Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
25
4.4 Network-related functions
4.4.1 Device MAC address reading
Modbus RTU Protocol write register
:
Send
01
03
00 61
00 03
54 15
Device ModBus
address
Function
code
Start address
read number of
registers
CRC check code
Receive
01
03
06
1A 00 1C C0 BB FF
16 53
Device ModBus
address
Function
code
byte count
Read value
CRC check code
Modbus TCP Protocol write register
:
Send
00 01
00 00
00 06
01
03
00 61
00 03
Transmissio
n identifier
Protocol
identificatio
n
length
Unit
identificatio
n
Function
code
address
Write value
Receive
00 01
00 00
00 09
01
03
06
1A 00 1C C0 BB FF
Transmissi
on
identifier
Protocol
identification
length
Unit
identification
Function
code
byte count
Write value
Description: 1A001C 0BB FF is the MAC address of the device. The device has a unique MAC address, which is
different from other devices.
4.4.2 Device SN Code Reading
Modbus RTU Protocol Read Register
:
Send
01
03
01 65
00 04
55 EA
Device ModBus
address
Function
code
Start address
read number of
registers
CRC check code
Receive
01
03
08
19 05 21 14 00 13 55 50
F9 AA
Device ModBus
address
Function
code
byte count
Read value
CRC check
code
Modbus TCP protocol read register
: