Chengdu
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
13
can also go to sleep mode in advance before the mode switching, and use the external interrupt function to
obtain the AUX change to perform the mode switching.
This operation mode is very flexible and efficient. It is designed in accordance with the convenience of the
user MCU, and can reduce the workload of the entire system as much as possible, improve system efficiency
and reduce power consumption.
6.2 Transmission mode
(
Mode0
)
Type
When M0 = 0
,
M1 = 0
,
module working in module0
transm
ission
The module receives user data from the serial port, the maximum length of the wireless data packet
transmitted by the module is 54 bytes, when the amount of user input data reaches 54 bytes, the
module will start wireless transmission. At this time, the user can continue to enter the data that needs
to be transmitted.
When the user needs to transmit less than 54 bytes, the module waits for about 20ms. If there is no
user data to continue to input, the data is considered to be terminated. At this time, the module sends
all data via wireless.
When the module receives the first user data, AUX outputs low level. When the module puts all data
into the RF chip and starts transmitting, AUX outputs high level.
At this point, it indicates that the last packet of wireless data has been transmitted, and the user can
continue to enter data.
Data packets sent through mode 0 can only be received by the receiving module in mode 0.
receivi
ng
The module is on the wireless receiving function all the time and can receive data packets from mode
0.
After receiving the data packet and the module AUX outputs a low level, it starts sending wireless
data through the serial port TXD pin. After all wireless data is output through the serial port, the
module outputs AUX high level.
6.3 RSSI Mode
(
Mode1
)
Type
When M1= 0
,
M1 = 0
,
module working in module1
transmi
ssion
No wireless transmission is allowed, the received serial data will be discarded.
receivi
ng
Can not receive air wireless data, only scan the signal strength of the current channel, and output a
strength value (relative value) through the serial port every 100ms.
Numerical calculation method: signal strength =-(256 (decimal)-data (decimal)) dBm
If the hexadecimal value output by the serial port is 0x91, the actual signal strength is:-(256
(decimal)-145 (decimal)) =-111dBm