Wireless UART Module User Manual of E61 Series Modules
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co., Ltd.
11
/
18
6.
Operating Mode
Contents in the table below are the introduction of input status of M1 & M0 and their corresponding mode:
Mode
(
0-3
)
M1
M0
Mode introduction
Remark
Mode 0
Transmission
0
0
UART and wireless channel are open, transparent
transmission is on
Working with the software, the
module can be configured as
continuous transmission(Default)
and fix-length transmission.
Mode 1
Reserve
1
0
N/A
Mode 2
Instruction
0
1
UART opens and wireless channel closes. Module can accept
UART configuration instruction.
To change the configuration.
Mode 3
Sleep
1
1
UART and module are closed.
6.1 Mode Switch
l
The user can decide the operating mode by the combination of M0, M1 and M2. The two GPIOs of MCU can be used to switch
mode. After modifying M0, M1 or M2, it will start to work in new mode 1ms later if the module is free. If there are any serial data
that are yet to finish wireless transmitting, it will start to work in new mode after the UART transmitting finished. After the module
receives the wireless data & transmits the data through serial port, it will start to work in new mode after the transmitting finished.
Therefore, the mode-switch is only valid when AUX outputs 1, otherwise it will delay.
l
For example, in mode 2 or mode 4, if the user inputs massive data consecutively and switches operating mode at the same time,
the mode-switch operation is invalid. New mode checking can only be started after all the user’s data process completed. It is
recommended to check AUX pin out status and wait 2ms after AUX outputs high level before switching the mode.
l
If the module switches from other modes to stand-by mode, it will work in stand-by mode only after all the remained data process
completed. The feature can be used to save power consumption. For example, when the transmitter works in mode 0, after the
external MCU transmits data “12345”, it can switch to sleep mode immediately without waiting the rising edge of the AUX pin,
also the user’s main MCU will go dormancy immediately. Then the module will transmit all the data through wireless transmission
& go dormancy 1ms later automatically, which reduces MCU working time & save power.
l
Likewise, this feature can be used in any mode-switch. The module will start to work in new mode within 1ms after completing
present mode task, which enables the user to omit the procedure of AUX inquiry and switch mode swiftly. For example, when
switching from transmitting mode to receiving mode, the user MCU can go dormancy before mode-switch, using external interrupt
function to get AUX change so that the mode-switch can be realized.
l
This operation is very flexible and efficient. It is totally designed on the basis of the user MCU’s convenience, at the same time the
work load and power consumption of the whole system has been reduced and the efficiency of whole system is largely improved.