Chengdu Ebyte Electronic Technology Co.,Ltd.
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
10
6. Operating mode
There are four operating modes, which are set by M1 and M0, the details are as follows:
Mode(0-3)
M1
M0
Description
Remark
0 Transmission
mode
0
0
UART and wireless channel are open, the module performs data
transmission according to the set transmission mode
The transmission
method of the sender
and receiver must be
consistent
1 RSSI mode
0
1
Wireless off and UART opens, the module outputs RSSI signal
strength value at 100ms timing
Relative intensity
values only
2 Setting mode
1
0
Wireless off, can receive UART command, refer to Command List,
fixed baud rate is 9600
,
8N1
Parameter
configuration
3 Sleep mode
1
1
The module goes to sleep standby mode, and the serial UART and
wireless are turned off.
Ultra-lower power
consumption sleep
6.1 Mode switching
Users can combine M0 and M1 with high and low levels to determine the operating mode of the module. Users
can use the MCU’s 2 GPIOs to control the node switching; after changing M0,M1: the module is idle and after 1ms, it
can start working according to the new operating mode; if the module has not transmitted serial port data via wireless,
then entering the new operating mode after the transmission completed; if the module receives the wireless data and
sends out the data through the serial port, it needs to finish sending before entering the new operating mode; if the
module; so the mode switching can only be effective when AUX outputs 1, otherwise the switch will be delayed.
For example: In mode 0, the user continuously inputs a large amount of data and switches the mode at the same
time. The mode switching operation is invalid at this time; the module will process all the user data before performing the
new mode detection; so the general recommendation is: Detect the AUX pin output status, wait for 2ms after the AUX
output goes high before switching.
When the module is switched from other modes to sleep mode, if any data has not been processed, the module will
enter the sleep mode after processing the data(including receiving and sending). This feature can be used for fast
sleep mode to save power consumption; for example: the transmitter module works in mode0, the user initiates serial
data "12345",and then does not have to wait for the AUX pin to be idle (high level),and can directly switch to sleep mode,
And the user's main MCU will immediately sleep, the module will automatically send all user data through wireless, and
automatically enter sleep within 1ms; thus saving the MCU's working time and reducing power consumption.
Similarly, any mode switch can use this feature. After processing the current mode event, the module will
automatically enter the new mode within 1ms; thereby eliminating the user's query of AUX and achieving the goal of fast
switching ,For example, switching from the transmission mode to the setting mode; the user MCU 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.