Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2018,Chengdu Ebyte Electronic Technology Co.,Ltd.
15
E.g 1: Channel is 0x09
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).
Send: CF CF C2 00 04 12 34 00 61
Return: CF CF C1 00 04 12 34 00 61
6
Wrong format
Wrong format respond: FF FF FF
7.2 Register description
Address
Read
or
Write
Name
Description
Remark
00H
Read/
Write
ADDH
ADDH
(
default 0
)
High byte and low byte of module address;
Note: When the module address is equal to FFFF,
it can be used as the broadcast and monitor
address, that is: the module will not perform
address filtering at this time
01H
Read/
Write
ADDL
ADDL
(
default 0
)
02H
Read/
Write
REG0
7
6
5
UART Serial Port Rate
(
bps
)
For the two modules that communicate with each
other, the serial port baud rate can be different,
and the verification method can also be different;
When continuously transmitting large data
packets, users need to consider the data
congestion caused by the same baud rate, and may
even be lost;
It is generally recommended that the baud rate of
the two communication parties be the same.
0
0
0
UART Rate is 1200
0
0
1
UART Rate is 2400
0
1
0
UART Rate is 4800
0
1
1
UART Rate is 9600
(
default
)
1
0
0
UART Rate is 19200
1
0
1
UART Rate is 38400
1
1
0
UART Rate is 57600
1
1
1
UART Rate is 115200
4
3
Serial Parity Bit
The serial port mode of the communication parties
can be different;
0
0
8N1
(
default
)
0
1
8O1
1
0
8E1
1
1
8N1
(
equal to 00
)
2
1
0
Air Data Rate
(
bps
)
The air rate of both parties must be the same;
The higher the air rate, the smaller the delay and
the shorter the transmission distance.
0
0
0
Air Data Rate 2.4k
0
0
1
Air Data Rate 2.4k
0
1
0
Air Data Rate 2.4k
(
default
)
0
1
1
Air Data Rate 4.8k
1
0
0
Air Data Rate 9.6k
1
0
1
Air Data Rate 19.2k
1
1
0
Air Data Rate 38.4k