Chengdu Ebyte Electronic Technology Co., Ltd.
E22-xxxT22S series product user manual
Copyright©2012–2024
, Chengdu Ebyte Electronic Technology Co., Ltd.
15
7. Register Read and Write Control
7.1 Command format
In configuration mode (mode 2: M0 = 0, M1 = 1), the list of supported commands are as follows (
when setting, only 9600, 8N1
format is supported
)
:
No.
Command format
Detailed description
1
Set register
Command: C0+starting parameters
Response: C1+starting parameters
E.g 1: Configure Channel to be 0x09
command starting address length parameter
Send:
C0
05
01
09
Return: C1
05
01
09
E.g 2: Configure module address (0x1234), network address (0x00), serial port (9600 8N1) and air
data rate (2.4K).
Send: C0 00 04 12 34 00 62
Return: C1 00 04 12 34 00 62
2
Read register
Command: C1+starting length
Response: C1+starting parameters
E.g 1
:
Read channel
command starting address length parameter
Send:
C1
05
01
Returen: C1
05
01
09
E.g 2: Read module address, network address, serial port and air data rate.
Send: C1 00 04
Return: C1 00 04 12 34 00 62
3
Set temporary
register
Command: C2+starting parameters
Response: C1+starting parameters
E.g 1: Configure Channel to be 0x09
command starting address length parameter
Send:
C2
05
01
09
Return: C1
05
01
09
E.g 2: Configure module address (0x1234), network address (0x00), serial port (9600 8N1) and air
data rate (2.4K).
Send: C2 00 04 12 34 00 62
Return: C1 00 04 12 34 00 62
4
Wireless
configuration
Command: CF CF + normal command
Respond
:
CF CF + normal respond
E.g 1: Configure Channel to be 0x09 by wireless configuration
Command head command starting address length parameter
Send:
CF CF
C0
05
01
09
Returen: CF CF
C1
05
01
09
E.g 2: Configure module address (0x1234), network address (0x00), serial port (9600 8N1) and air
data rate (2.4K) by wireless configuration.
Send: CF CF C0 00 04 12 34 00 62
Return: CF CF C1 00 04 12 34 00 62