Chengdu Ebyte Electronic Technology Co., Ltd.
E31-433T30S User Manuel
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
9
for 2ms . If AUX stays on the high level, the operating mode switch can be effected immediately.
When the user switches to other operating modes from mode 3 (sleep mode) or it’s still in reset process, the module
will reset user parameters, during which AUX outputs low level.
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 Normal Mode
0
0
UART and wireless are enabled, transparent
transmission is on
Receiver must be in mode
0, 1
1 Wake-up
mode
1
0
UART and wireless are enabled;
The only difference from mode 0: the wake-up code is
automatically added before the data packet is
transmitted, so that the receiver working in mode 2 can
be woken up.
Receiver can be in mode 0,
1, 2
2 Power saving
mode
0
1
UART receiving is turned off, the wireless is in the
awake mode, and after receiving the wireless data,
UART is opened to send data.
The transmitter must be in
mode 1
Cannot transmit data in this
mode
3 Sleep mode
1
1
The module goes to sleep and can receive parameter
setting commands.
Refer to details below
6.1 Mode switching
Users can combine M1 and M0 with high and low levels to determine the operating mode. Two GPIOs of the MCU
can be used to control mode switching; After changing M1 and M0: If the module is idle, after 1ms, it can start
working according to the new mode; If the serial port data of the module has not been transmitted through the
wireless, the new working mode can be switched after the transmission is completed; If the module receives the
wireless data and transmits the data through the serial port, it needs to finish transmission before switching the new
working mode; Therefore, mode switching can only be valid when AUX output is 1, otherwise it will delay
switching.
For example, users continuously inputs a large amount of data and simultaneously performs mode switching. At this
time, the switching mode operation is invalid; the module will process all the user data before performing the new
mode detection; Therefore, the general recommendation is to detect the output state of the AUX pin and switch after
2ms when the output is high.
When the module is switched from other modes to sleep mode, if the data has not been processed yet; The module
will process these data (including receiving and sending) before entering sleep mode. This feature can be used for
fast sleep, which saves power; for example, the transmitter module works in mode 0, the user transmits the serial
port 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 immediately sleeps, the module will automatically transmit the user data
through the wireless, and automatically enters sleep within 1ms; This saves MCU's working time and reduces 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; thus eliminating the need for the user to query AUX and achieve the
purpose of fast switching; For example, switching from the transmit mode to the receive mode; the user MCU can
also enter sleep before the mode switch, and use the external interrupt function to acquire the AUX change, thereby
performing mode switching.