Chengdu Ebyte Electronic Technology Co., Ltd.E22-900T22S User manual
10
AUX Pin can be used as indication for wireless send & receive buffer and self-check.
It can indicate whether there are data that are not sent yet via wireless way, or whether all wireless data has been sent
To wake up external MCU
5.6 AUX description
through UART, or whether the module is still in the process of self-check initialization.
5.6.1 Indication of UART output
5.6.2 Indication of wireless transmitting
Buffer (empty): the internal 1000 bytes data in the buffer are written to the RFIC (Auto sub-packaging). When AUX=1, the
user can input data less than 1000 bytes continuously without overflow. Buffer (not empty): when AUX=0, the internal 1000
bytes data in the buffer have not been written to the RFIC completely. If the user starts to transmit data at this circumstance, it
may cause overtime when the module is waiting for the user data, or transmitting wireless sub package.When AUX = 1, it does
not mean that all the UART data of the module have been transmitted already, perhaps the last packet of data is still in
transmission.
Chengdu Ebyte Electronic Technology Co., Ltd.E22-900T22S User manual
12
No.
Remark
1
Users can combine M1 and M0 with high and low levels to determine the operating mode. Two 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 through the wireless, the new working mode can
be switched after the transmission is completed;
If the module receives the wireless data and transmits the data through the serial port, it needs to finish
transmission before switching the new working mode;
Therefore, mode switching can only be valid when AUX output is 1, otherwise it will delay switching.
2
For example, users continuously inputs a large amount of data and simultaneously performs mode switching. At
this time, the switching mode operation is invalid; the module will process all the user data before performing the
new mode detection;
Therefore, the general recommendation is to detect the output state of the AUX pin and switch after 2ms when
the output is high.
3
When the module is switched from other modes to sleep mode, if the data has not been processed yet;
The module will process these data (including receiving and sending) before entering sleep mode. This feature
can be used for fast sleep, which saves power; for example, the transmitter module works in mode 0, the user
transmits the serial port data "12345", and then does not have to wait for the AUX pin to be idle (high level), and
can directly switch to sleep mode. And the user's main MCU immediately sleeps, the module will automatically
transmit the user data through the wireless, and automatically enters sleep within 1ms;
This saves MCU's working time and reduces power consumption.
4
Similarly, any mode switching can use this feature. After the module processes the current mode event, it will
automatically enter the new mode within 1ms; thus eliminating the need for the user to query AUX and achieve
the purpose of fast switching;
For example, switching from the transmit mode to the receive mode; the user MCU can also enter sleep before
the mode switch, and use the external interrupt function to acquire the AUX change, thereby performing mode
switching.
5
This operation mode is very flexible and efficient, and is designed according to the user's MCU's operation
convenience, and can reduce the workload of the entire system as much as possible, improve system efficiency,
and reduce power consumption.
Type
M0 = 0,M1 = 0
Transmitting
Users can input data through the serial port and the module will start wireless transmission.
Receiving
The module wireless receiving function is turned on, and after receiving the wireless data, it will be output through the
serial port TXD pin.
Chengdu Ebyte Electronic Technology Co., Ltd.E22-900T22S User manual
13
Type
M0 = 1,M1 =0
Transmitting
When defined as a transmitting party, a preamble is automatically added before transmitting.
Receiving
It can receive data normally, the receiving function is the same as mode 0.
Type
M0 = 0,M1 = 1
Transmitting
Wireless transmitting off
Receiving
Wireless receiving off
Configuration
Users can access the registers to configure the module's operation state.
Type
M0 = 1,M1 = 1
Transmitting
Unable to transmit wireless data
Receiving
Unable to receive wireless data
Note
When from the sleep mode to other modes, the module will reconfigure the parameters. During the configuration
process, AUX will remain low; After configuration,it outputs high level, we suggest that user test rising edge T_BUSY.
6.3 WOR mode(Mode 1)
6.4 Configuration mode(Mode 2)
6.5 Deep sleep mode(Mode 3)
7. Register read and write control
7.1 Command format
In configuration mode (mode 2: M1 = 1, M0 = 0), the list of supported commands are as follows (only 9600, 8N1 format is
other, the serial port baud rate can be different,
and the verification method can also be different.
When transmitting large packets continuously,
users need to consider the data blocking caused
by the same baud rate, and data may even be
lost. It is generally recommended that both
parties have the same baud rate.
-------------------------------------1,0:Transmitting power
When the data is smaller than the sub packet
length, the serial output of the receiving end is an
uninterrupted continuous output.
When the data is larger than the sub packet
length, the receiving end serial port will output
the sub packet.
1:Enable repeater function
0:Disable repeater function
-------------------------------------4LBT enable byte (monitor before
transmission)
1:Enable
0:Disable(default)
-------------------------------------3WOR transceiver control
1:WOR transmitter
Themodulereceivingand
transmitting functions are turned on, and a
wake-up code is added when transmitting
data. Receiving is turned on.
0:WOR receiver(default)
The module is unable to transmit
data and works in WOR monitoring mode. The
monitoring period is as follows (WOR cycle),
which can save a lot of power.
and it will follow an RSSI strength byte after
output via the serial port TXD
.---------------------------------------
The module recognizes the first three bytes of the
serial data as: address high + address low +
channel and takes it as the wireless transmitting
target.
---------------------------------------
After the reply function is enabled, if the target
address is not the module itself, the module will
forward it once.
In order to prevent data return-back, it is
recommended to use it in conjunction with the
fixed point mode. That is: the target address is
different from the source address.
----------------------------------------
When enabled, wireless data will be monitored
before it is transmitted, which can avoid
interference to a certain extent, but may cause
data delay.
----------------------------------------
Valid only for mode 1.
After the WOR receiver receives the wireless data
and outputs it through the serial port, it will wait
for 1000ms before entering the WOR again. Users
can input the serial port data and return it via the
wireless during this period. Each serial byte will be
refreshed for 1000ms. Users must transmit the
first byte within 1000ms.
Both the transmitter and the receiver must be the
same (very important).
07H
Write
CRYPT_H
Key high byte (default 0)
Write only, read returns 0
Used for user encryption to avoid intercepting
airborne wireless data by similar modules.
The module will internally use these two bytes as
a calculation factor to transform and encrypt the
over-the-air wireless signal.
08H
Write
CRYPT_L
Key low byte (default 0)
80H~
86H
Read
only
PID
Product information 7 bytes
Product information 7 bytes
Factory default parameters:62 00 00 00 00 00
Model No.
Frequency
Address
Channel
Air data rate
Baud rate
Parity format
Power
E22-900T22S
900.125MHz
0x0000
0x32
2.4kbps
9600
8N1
22dbm
No.
Description
1
After setting the repeater mode by configuration, switch to the normal mode and the repeater starts working.
2
In the repeater mode, ADDH, ADDL are no longer used as the module address, but is correspondingly paired with the
NETID. If the data of one of the networks is received, it is forwarded to another network. The network ID of the repeater
itself is invalid.
3
In repeater mode, the repeater module cannot transmit and receive data, and cannot perform low-power operation.
4
The user enters the other mode from mode 3 (sleep mode) or during the reset process, the module resets the user
parameters during which the AUX outputs low level.
2. In repeater mode, ADDH\ADDL is no longer used as the module address, and it is used as a NETID forwarding pairing flag.
1Primary repeater
7.3 Factory default parameter
8. Repeater networking mode
Repeater networking rules:
1. Forwarding rules, the repeater can forward data in both directions between two NETIDs.
Chengdu Ebyte Electronic Technology Co., Ltd.E22-900T22S User manual
19
In the configuration on computer, the module address, frequency channel, network ID, and key are all in decimal mode.
When the user configures the repeater mode using the host computer, special attention must be paid. Since the
It is recommended to use a DC stabilized power supply. The power supply ripple factor is as small as possible,
Please pay attention to the correct connection of the positive and negative poles of the power supply.
Please check the power supply to ensure it is within the recommended voltage otherwise when it exceeds the
Please check the stability of the power supply, the voltage can not be fluctuated frequently;
When designing the power supply circuit for the module, it is often recommended to reserve more than 30%
The range of values of each parameter is:
Network address: 0-65535
Frequency channel: 0-80
Network ID: 0-255
Key: 0-65535
parameters are in decimal mode in the host computer, the module address and network ID need to be converted into
hexadecimal. For example, if the network ID input by the transmitting end A is 02, and the network ID input by the
receiving end B is 10, when the repeater end R sets the module address, the hexadecimal value 0X020A is converted into
the decimal value 522 as the repeater end R. Module address. That is, the module address value of the repeater terminal
R is 522 at this time.
10. Hardware design
and the module needs to be reliably grounded.;
Reverse connection may cause permanent damage to the module;
maximum value the module will be permanently damaged;
of the margin, so the whole machine is beneficial for long-term stable operation.;
Chengdu Ebyte Electronic Technology Co., Ltd.E22-900T22S User manual
20
The module should be as far away as possible from the power supply, transformers, high-frequency wiring
High-frequency digital routing, high-frequency analog routing, and power routing must be avoided under
Assuming the module is soldered or placed over the Top Layer, it is wrong to randomly route over the
It is assumed that there are devices with large electromagnetic interference around the module that will
Assume that there are traces with large electromagnetic interference (high-frequency digital, high-frequency
If the communication line uses a 5V level, a 1k-5.1k resistor must be connected in series (not recommended,
Try to stay away from some physical layers such as TTL protocol at 2.4GHz , for example: USB3.0;
The mounting structure of antenna has a great influence on the performance of the module. It is necessary to
The antenna must not be installed inside the metal case, which will cause the transmission distance to be
The communication distance will be affected when obstacle exists.
Data lose rate will be affected by temperature, humidity and co-channel interference.
The ground will absorb and reflect wireless radio wave, so the performance will be poor when testing near ground.
Sea water has great ability in absorbing wireless radio wave, so performance will be poor when testing near the sea.
The signal will be affected when the antenna is near metal object or put in a metal case.
Power register was set incorrectly, air data rate is set as too high (the higher the air data rate, the shorter the distance).
The power supply low voltage under room temperature is lower than 2.5V, the lower the voltage, the lower the
Due to antenna quality or poor matching between antenna and module.
Please check the power supply source, ensure it is 2.0V~3.6V, voltage higher than 3.6V will damage the module.
and other parts with large electromagnetic interference.;
the module. If it is necessary to pass through the module, assume that the module is soldered to the Top
Layer, and the copper is spread on the Top Layer of the module contact part(well grounded), it must be close
to the digital part of the module and routed in the Bottom Layer;
Bottom Layer or other layers, which will affect the module's spurs and receiving sensitivity to varying degrees;
greatly affect the performance. It is recommended to keep them away from the module according to the
strength of the interference. If necessary, appropriate isolation and shielding can be done;
analog, power traces) around the module that will greatly affect the performance of the module. It is
recommended to stay away from the module according to the strength of the interference.If necessary,
appropriate isolation and shielding can be done.
there is still a risk of damage);
ensure that the antenna is exposed, preferably vertically upward. When the module is mounted inside the
case, use a good antenna extension cable to extend the antenna to the outside;