Chengdu Ebyte Electronic Technology Co., Ltd.
E32-433T20D User Manual
Copyright © 2012–20 22 , Chengdu Ebyte Electronic Technology Co., Ltd.
12
6 Working Mode
The module has four working modes, which are controlled by pins M 0, M 1 Settings; details are shown in the table below:
mode (0-3)
M0
M1
Mode introduction
Remark
0 Normal mode
0
0
Serial port open, wireless open, transparent transmission
Receiver must be mode 0, 1
1 Wake-up
mode
1
0
Serial port open, wireless open;
The only difference from mode 0: before the data packet
is transmitted, the wake-up code is automatically added,
so as to wake up the receiver working in mode 2
Receiver can be mode 0
The receiver can be mode 1
The receiver can be mode 2
2 Power saving
mode
0
1
The serial port receiving is closed, and the wireless is in
the air wake-up mode. After receiving the wireless data,
open the serial port to send data.
Transmitter must be Mode
1
Can't launch in this mode
3 Sleep Mode
1
1
The module goes to sleep and can receive parameter
setting commands
For details, please refer to
the detailed explanation of
working parameters.
6.1 Mode switch
Users can combine M0 and M1 with high and low levels to determine the working mode of the module. 2 GPIOs of MCU can be
used to control mode switching; ,
When M0 and M1 are changed: the module is idle, and after 1ms, it can start to work according to the new mode;
If the module has serial port data that has not been transmitted wirelessly, the new working mode can only be entered after the
transmission is completed;
If the module receives wireless data and sends out data through the serial port, it needs to be sent to the new working mode;
Therefore, the mode switching can only be effective when the AUX output is 1, otherwise the switching will be delayed.
For example: in mode 0 or mode 1, if the user continuously inputs a large amount of data and switches modes at the same time,
the mode switching operation is invalid at this time;
The module will only perform new mode detection after processing all user data;
So the general suggestion is: Detect the output state of the AUX pin, wait for 2ms after the AUX output high level, and then
switch.
When the module is switched from other modes to sleep mode, if there is data that has not been processed;
The module can only enter sleep mode after processing these data (including receiving and sending);
This feature can be used for fast sleep to save power consumption; for example: the transmitter module works in mode 0, the
user initiates serial port data "12345", and then does not need to wait for the AUX pin to be idle (high level), and can directly
switch to sleep mode, The main MCU of the user is put to sleep immediately, and the module will automatically go to sleep
within 1ms after sending all the user data wirelessly, thereby saving the working time of the MCU and reducing power
consumption.
Similarly, any mode switching can use this feature. After the module processes the current mode event, it will automatically enter
the new mode within 1ms;
This saves the user's work of querying AUX, and can achieve the purpose of fast switching;
For example, switching from the transmit mode to the receive mode; the user MCU can also go to sleep in advance before the