Normal Mode (Mode 0); Ode (Mode 1) - Ebyte E22-230T30D User Manual

Sx1262 230mhz 1w lora wireless module
Hide thumbs Also See for E22-230T30D:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Users can combine M1 and M0 with high and low levels to determine the working mode of the module.
The 2 GPIOs of the MCU can be used to control the mode switching;
After changing M1 and M0: If the module is idle, 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
1
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: 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 process all user data
before performing the new mode detection;
2
So the general suggestion is: Detect the output state of the AUX pin, wait for 2ms after the output
is high, 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 enter the sleep mode only 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
3
AUX pin to be idle (high level), and can directly switch to sleep mode, Put the user's main MCU to
sleep immediately, the module will automatically send all user data wirelessly, and automatically
enter sleep within 1ms;
Thus, the working time of the MCU is saved and the power consumption is reduced.
In the same way, this feature can be used for any mode switching. After the module processes the current
mode event, it will automatically enter the new mode within 1ms; thus saving the user's work of querying
AUX, and achieving the purpose of fast switching ;
4
For example, switching from the transmit mode to the receive mode; the user MCU can also go to sleep
in advance before the mode switch, and use the external interrupt function to obtain the AUX change,
so as to switch the mode.
This operation mode is very flexible and efficient, and is completely designed according to the user's
MCU operation convenience, and can reduce the workload of the entire system as much as possible, improve
5
system efficiency, and reduce power consumption.

6.2 Normal Mode (Mode 0)

Type
When M0 = 0, M1 = 0, the module works in mode 0
Transceiving
Users can input data through the serial port, and the module will start wireless transmission.
The wireless receiving function of the module is turned on, and the wireless data will be output through
Receiving
the serial port TXD pin after receiving the wireless data.
Copyright ©2012–2020,Chengdu Ebyte Electronic Technology Co.,Ltd.
13
E22-230T30D User Manual

Advertisement

Table of Contents
loading

Table of Contents