Mode Switching; General Mode (Mode 0) - Ebyte E22-230T22D User Manual

Sx1262 230mhz 160mw lora wireless module
Hide thumbs Also See for E22-230T22D:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Serial
number
Users can combine M1 and M0 high and low levels to determine the module working mode. 2 GPIOs of MCU can
be used to control mode switching.
When changing M1, M0: if the module is idle, after 1ms, it can start working according to the new mode.
If the module has serial data that has not yet finished transmitting over the wireless, it will not be able to enter a new
1
operating mode until after it has finished transmitting.
If the module receives wireless data and sends it out through the serial port, it needs to be sent out before it can enter
a new operating mode.
So mode switching can only be effective when AUX output 1, otherwise it will delay the switching.
For example, if a user enters a large amount of data continuously and switches modes at the same time, the switch
mode operation at this time is invalid; the module will process all user data before performing a new mode detection.
2
So the general recommendation is: detect the AUX pin output status and wait for 2ms after the output goes high
before switching.
When the module is switched from other modes to hibernate mode, if there is data that has not been processed.
The module will process this data (both incoming and outgoing) before entering sleep mode. This feature can be used
for fast hibernation to save power; for example, if the transmitter module works in mode 0, the user initiates the
serial data "12345" and then does not have to wait for the AUX pin to be idle (high level), it can directly switch to
3
hibernation mode and hibernate the user's main MCU immediately, and the module will automatically put all the user
data into hibernation within 1ms after it is sent through wireless. automatically go into hibernation within 1ms after
being sent through wireless.
This saves the MCU's operating time and reduces power consumption.
Similarly, any mode switching can take advantage of this feature. After the module has processed the current mode
event, it will automatically enter the new mode within 1ms; thus saving the user the work of querying the AUX, and
4
it can achieve the purpose of fast switching.
For example, switching from transmit mode to receive mode; the user MCU can also switch modes by going to sleep
in advance before the mode switch and using the external interrupt function to get the AUX change.
This operation method is very flexible and efficient, designed exactly according to the user's MCU operation
5
convenience, and can reduce the overall system workload as much as possible, improve system efficiency and reduce
power consumption.

6.1 Mode Switching

6.2 General Mode (Mode 0)

Type
Launch
The user can input data through the serial port and the module will start the wireless transmission.
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
Remarks
When M0 = 0 and M1 = 0, the module operates in mode 0
E22-230T22D User Manual
12

Advertisement

Table of Contents
loading

Table of Contents