Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2018,Chengdu Ebyte Electronic Technology Co.,Ltd.
15
E.g 2: Configure module address (0x1234), network address (0x00), serial port (9600 8N1) and air data rate
(1.2K).
Send: C2 00 04 12 34 00 61
Return: C1 00 04 12 34 00 61
5
Wireless
configuration
Command: CF CF + normal command
Respond
:
CF CF + normal respond
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
(1.2K).
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/Wr
ite
ADDH
ADDH
(
default 0
)
The module address is high byte and low byte. Note:
When the module address is FFFF, it can be used as
the broadcast and monitor address, that is the module
will not perform address filtering.
01H
Read/Wr
ite
ADDL
ADDL
(
default 0
)
02H
Read/Wr
ite
NETID
NETID
(
default 0
)
Network address, used to distinguish the network.
When communicating with each other, they should
be set to the same.
03H
Read/Wr
ite
REG0
7
,
6
,
5
UART: Serial port rate
(
bps
)
000: 1200
001: 2400
010: 4800
011: 9600
(
default
)
100: 19200
101: 38400
110: 57600
111: 115200
---------------------------------------
4
,
3
:
Serial parity bit
00
:
8N1
(
default
)
01
:
8O1
10
:
8E1
11
:
8N1
(
equal to 00
)
-----------------------------------
2
,
1
,
0
,
air data rate
000: 0.3k
001: 1.2k
010: 2.4k
(
default
)
011: 4.8k
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 transmitting large packets continuously, users
need to consider the data blocking caused by the
same baud rate, and data may even be lost. It is
generally recommended that both parties have the
same baud rate.
---------------------------------------
Both parties must be the same
The higher the rate, the shorter the distance