Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2018, Chengdu Ebyte Electronic Technology Co.,Ltd.
8
6.1 Mode switching
The user can decide the operating mode by the combination of M1 and M0. The two GPIO of MCU can be used to switch mode.
After modifying M1 or M0, it will start to work in new mode 1 ms 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.
For example, in mode 0 or mode 1, 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 pinout status and wait 2ms after AUX outputs high level before switching the mode.
6.2 Half-Duplex (Mode 0)
When M1 = 0 & M0 = 0, module works in mode 0
Transmitting
The module can receive the user data via serial port, and transmit wireless data package of 29 bytes. When the
data inputted by user is up to 29 bytes, the module will start wireless transmission. During which the user can
input data continuously for transmission. When the required transmission bytes are less than 29 bytes, the module
will wait 3-byte time and treat it as data termination unless continuous data inputted by user.
Then the module will transmit all the data through wireless channel. When the module receives the first data
packet from user, the AUX outputs low level. After all the data are transmitted into RF chip and transmission is
started, AUX outputs high level. At this time, it means that the last wireless data package transmission is started,
which enables the user to input another 1024 bytes continuously. The data package transmitted from the module
working in mode 0 can only be received by the module working in mode 0 or 1 or mode 2
Receiving
The wireless receiving function of the module is on, the data packet transmitted from the module working in mode
1 & mode 2 can be received.After receiving the data packet, the AUX outputs low level, the module starts to
transmit wireless data through serial port TXD pin. After all the wireless data have been transmitted via serial port,
the AUX outputs high level.
Note
Module cannot receive data in the process of transmitting.
Also, module cannot transmit data in the process of receiving.
6.3 Full-Duplex (Mode 1)
When M1 = 0 & M0 = 1, module works in mode 1.
Transmitting
The condition of data packet transmission & AUX function is the same as mode 0. The only difference is that the
module will add preamble code before each data packet automatically. The preamble code length depends on the
wake-up time set in the user parameters. The purpose of the preamble code is waking up the receiving module
works in mode 2. Therefore, the data package transmitted from mode 1 can be received by mode 0, mode1 and
mode 2.
Receiving
The same as that in mode 0.
Note
Module can receive data in the process of transmission.
Also, module can transmit data in the process of receiving.