![Ebyte E34-2G4H27D Скачать руководство пользователя страница 10](http://html1.mh-extra.com/html/ebyte/e34-2g4h27d/e34-2g4h27d_user-manual_3834935010.webp)
Chengdu Ebyte Electronic Technology Co., Ltd E34-2G4H27D User Manual
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co., Ltd
9
6 Operating mode
There are four operating modes set via pin M0 and M1, see details below
:
Mode
(
0-3
)
M0
M1
Mode introduction
Remark
Mode 0
Fixed frequency
mode
0
0
UART and wireless channel are open, transparent
transmission is on.
The receiver must work in mode 0 or
mode 2
Mode 1
Frequency
hopping mode
1
0
The difference from Mode 0 is: the frequency will change
in send &receive process according to certain algorithm
rules, the scope is not limited to the basic frequency of user
setting, the module has a specific spread sequence.
The receiver must work in mode 1
Mode 2
Reservation mode
0
1
Reservation mode
Same with mode 0
Mode 3
Sleep
1
1
Parameter setting
6.1 Mode switch
Users can combine M1 and M0 for high and low levels to determine the operating mode.
Two mode 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 wirelessly, the new operating mode can 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 before entering the new working
mode.
Therefore, the mode switch can only be valid when the AUX output is 1, otherwise the switch will be delayed.
For example, in mode 0 or mode 1, the user continuously inputs a large amount of data and simultaneously performs mode
switching, and the switching mode operation at this time is invalid;
The module will process all user data before performing new mode detection;
Therefore, the general recommendation is to detect the output state of the AUX pin and wait for 2ms to switch after the AUX
output is high.
6.2 Fixed Frequency Mode (Mode 0)
Type
When M1 = 0 & M0 = 0, module works in mode 0