E22-400T22DC UserManual EN v1.0
E22-400T22DC UserManual EN v1.0
CONTENTS
1. OVERVIEW..................................................................................................................................... 3
1.1 INTRODUCTION.............................................................................................................................................................. 4
1.2 FEATURES......................................................................................................................................................................4
1.3 APPLICATION................................................................................................................................................................. 5
4. CONNECT TO MCU.......................................................................................................................8
5. FUNCTION DESCRIPTION..........................................................................................................9
6. OPERATING MODE....................................................................................................................12
11. FAQ................................................................................................................................................21
REVISION HISTORY....................................................................................................................... 23
ABOUT US......................................................................................................................................... 23
Disclaimer
EBYTE reserves all rights to this document and the information contained herein.
Products, names, logos and designs described herein may in whole or in part be
third parties of this document or any part thereof without the express permission of
The information contained herein is provided “as is” and EBYTE assumes no
liability for the use of the information. No warranty, either express or implied, is given,
including but not limited, with respect to the accuracy, correctness, reliability and
fitness for a particular purpose of the information. This document may be revised by
1. Overview
1.1 Introduction
E22-400T22DC is a wireless serial port module (UART)
based on SEMTECH's SX1262 RF chip. It has multiple
transmission modes, working in the 410.125MHz~493.125MHz,
frequency (default 433.125MHz), LoRa spread spectrum
technology, TTL level output, compatible with 3.3V and 5V IO
port voltage.
E22-400T22DC uses a new generation of LoRa spread
spectrum technology. Compared with the traditional SX1278 solution, the SX1262 solution has a longer transmission
distance, faster speed, lower power consumption and smaller size. It Supports wake-up over air, wireless configuration,
carrier monitoring, automatic relay, communication key and other functions, supports sub-package length setting, and
can provide custom development services.
1.2 Features
Develop a new LoRa spread spectrum modulation technology based on SX1262,which will bring longer
communication distance and stronger anti-interference ability;
Support automatic relay networking, multi-level relay is suitable for ultra-long distance communication, multiple
networks running in the same area are running simultaneously;
Support users to set their own communication keys, which cannot be read, greatly improving the confidentiality of
user’s data;
Support LBT function, monitor the channel environmental noise before sending, which can greatly improve the
communication success rate of the module in harsh environments;
Support RSSI signal strength indication function for evaluating signal quality, improving communication network,
ranging;
Support wireless parameter configuration, send command data packets wirelessly, remotely configure or read
wireless module parameters;
Support wake-up over air, that is, ultra-low power consumption function, suitable for battery-powered applications;
Supports fixed-point transmission, broadcast transmission, and channel monitoring;
Supports deep hibernation, and the whole machine consumes about 2uA in this mode;
Support the global license-free ISM 433MHz band and 470MHz meter reading frequency band;
Under ideal conditions, the communication distance can reach 5km;
The parameters are saved when power off, and the module will work according to the set parameters after power
on again;
Efficient watchdog design, once an exception occurs, the module will automatically restart and continue to work
according to the previous parameter settings;
Support data transmission rate of 0.3k ~ 62.5kbps;
Support 2.3 ~ 5.5V power supply, power supply over 5V can ensure the best performance;
Industrial grade standard design, support long-term from at -40 ~ + 85 ℃;
The size and shape are consistent with our E32 series modules, which can be directly replaced to improve product
performance and distance.
1.3 Application
Home security alarm and remote keyless entry;
Smart home and industrial sensors;
Wireless alarm security system;
Building automation solutions;
Wireless industrial-grade remote control;
Health care products;
Advanced Meter Reading Architecture(AMI);
Automotive industry applications.
Performance
Main parameter Remark
Min. Max.
Voltage over 5.5V will cause permanent damage to
Power supply(V) 0 5.5
module
Chances of burn is slim when modules are used in
Blocking power(dBm) - 10
short distance
Operating temperature(℃) -40 +85 Industrial grade
Performance
Main parameter Remark
Min. Typ. Max.
Operating voltage(V) 2.3 5.0 5.5 ≥5.0 V ensures output power
Communication level(V) - 3.3 - For 5V TTL, It is recommended to add level conversion
Operating temperature(℃) -40 - 85 Industrial design
Operating frequency(MHz) 410.125 433.125 493.125 Support ISM band
Power TX current(mA) - 110 - Instant power consumption
consu RX current(mA) - 12 - -
mption Sleep current(μA) - 2 - Software is shut down
Max Tx power(dBm) 21.5 22.0 22.5 -
Receiving sensitivity(dBm) -146 -147 -148 Air data rate is 0.3 kbps
Air data rate(bps) 0.3k 2.4k 62.5k Controlled via user’s programming
(suspending is allowed).
6 VCC Power supply Module power supply positive reference, voltage range: 2.3 ~ 5.5V DC
7 GND Power supply Ground
8 Fixed hole Fixed hole(Connect to GND on the module)
9 Fixed hole Fixed hole(Connect to GND on the module)
10 Fixed hole Fixed hole(Connect to GND on the module)
4. Connect to MCU
The UART module is TTL level, please connect with TTL level MCU.
1
2 For some MCU works at 5V DC, it may need to add 4~10K pull-up resistor for the TXD & AUX pin.
5. Function description
For example: Set the address of module A as 0xFFFF, and the channel as 0x04;
When module is the transmitter (transparent transmission), all modules under channel 0x04 will receive the data, the
purpose of broadcast is realized.
For example: Set the address of module A as 0xFFFF, and the channel as 0x04;
When module A is the receiver, it can receive the data sent from all modules under channel 0x04, the purpose of
monitor is realized.
5.5 Reset
When the module is powered on, AUX outputs low level immediately, conducts hardware self-check and sets the
operating mode based on user’s parameters. During the process, the AUX remains low level. After the process
completed, the AUX outputs high level and starts to work as the operating mode combined by M1 and M0.
Therefore, users need to wait the AUX rising edge as the start of module’s normal work.
AUX Pin can be used as indication for wireless sending & receiving 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 through UART, or whether the module is still in the process of self-check initialization.
After switching to new operating mode, it will not work in the new mode immediately until AUX rising edge
3
lasts for 2ms . If AUX stays on the high level, the operating mode switch takes effect immediately.
When users switch to other operating modes from mode 3 (sleep mode) or it’s still in reset process, the module
4
will reset user parameters, during which AUX outputs low level.
Due to the characteristics of the LoRa modulation method, the information transmission delay is much longer
than FSK. For example, at 1.2kbps, the 100-byte transmission delay is about 1.5 seconds. It is recommended
5
that customers do not transmit large amounts of data at low airspeed in order to avoid data loss caused by data
accumulation and communication abnormalities.
6. Operating mode
There are four operating modes, which are set by M1 and M0, the details are as follows:
0
Supports configuration
UART and wireless channel are open, transparent transmission is
Transmission 0 0 over air via special
on
command
mode
1 WOR mode 0 1 Can be defined as WOR transmitter and WOR receiver Supports wake up over air
2
Users can access the register through the serial port to control the
Configuration 1 0
working state of the module
mode
3 Deep sleep
1 1 Sleep mode
mode
No. Remark
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
1 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 1, otherwise it will delay switching.
For example, users continuously input 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
2 detection;
Therefore, the general recommendation is to detect the output state of the AUX pin and switch after 2ms when the
output is high level.
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
3 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.
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
4 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.
This operation mode is very flexible and efficient, and is designed according to the user's MCU's operation convenience,
5 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.
The module wireless receiving function is turned on, and after receiving the wireless data, it will be output through the serial
Receiving
port TXD pin.
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
Configuration Users can access the registers to configure the module's operation state.
Type M0 = 1,M1 = 1
When from the sleep mode to other modes, the module will reconfigure the parameters. During the configuration process,
Note
AUX will remain low; After configuration,it outputs high level, we suggest that user test rising edge AUX.
In configuration mode (mode 2: M1 = 1, M0 = 0), the list of supported commands are as follows (only 9600, 8N1
format is supported when):
E.g 2: Configure module address (0x1234), network address (0x00), serial port (9600 8N1) and air
data rate (1.2K).
Send: C0 00 04 12 34 00 61
Return: C1 00 04 12 34 00 61
Command: C1+starting address+length
Response: C1+starting address+length+parameters
E.g 2: Read module address, network address, serial port and air data rate.
Send: C1 00 04
Return: C1 00 04 12 34 00 61
Command: C2+starting address+length+parameters
Response: C1+starting address+length+parameters
E.g 2: Configure module address (0x1234), network address (0x00), serial port (9600 8N1) and air
data rate (1.2K).
Send: C2 00 04 12 34 00 61
Return: C1 00 04 12 34 00 61
Command: CF CF + normal command
Respond:CF CF + normal respond
E.g 2: Configure module address (0x1234), network address (0x00), serial port (9600 8N1) and air
data rate (1.2K).
Send: CF CF C2 00 04 12 34 00 61
Return: CF CF C1 00 04 12 34 00 61
Read
Address or Name Description Remark
write
Read/ The module address is high byte and low byte.
00H ADDH ADDH(default 0)
Write Note: When the module address is FFFF, it can be
Read/ used as the broadcast and monitor address, that is
01H ADDL ADDL(default 0)
Write the module will not perform address filtering.
Network address, used to distinguish the network.
Read/
02H NETID NETID(default 0) When communicating with each other, they
Write
should be set to the same.
7 6 5 UART Serial port rate(bps)
0 0 0 Serial port baud rate is1200 For the two modules that communicate with each
0 0 1 Serial port baud rate is 2400 other, the serial port baud rate can be different,
and the parity method can also be different.
0 1 0 Serial port baud rate is 4800
When transmitting large packets continuously,
Serial port baud rate is 9600
0 1 1 users need to consider the data blocking caused by
(default) the same baud rate, and data may even be lost.
1 0 0 Serial port baud rate is 19200 It is generally recommended that both parties
1 0 1 Serial port baud rate is 38400 have the same baud rate.
Read/ 1 1 0 Serial port baud rate is 57600
03H REG0
Write 1 1 1 Serial port baud rate is 115200
4 3 Serial parity bit
0 0 8N1(default)
The serial port modes of the two communication
0 1 8O1
parties can be different;
1 0 8E1
1 1 8N1(equal to 00)
2 1 0 Wireless air data rate(bps) The air rate of both communication parties must
0 0 0 Air data rate 0.3k be the same;
0 0 1 Air data rate 1.2k
0 1 0 Air data rate 2.4k(default) The higher the air rate, the smaller the delay and
0 1 1 Air data rate 4.8k the shorter the transmission distance.
1 0 0 Air data rate 9.6k
1 0 1 Air data rate 19.2k
1 1 0 Air data rate 38.4k
1 1 1 Air data rate 62.5k
7 6 Sub packet setting When the data is smaller than the sub packet
240 bytes(default) length, the serial output of the receiving end is an
0 0
uninterrupted continuous output.
0 1 128 bytes
When the data is larger than the sub packet length,
1 0 64 bytes
the receiving end serial port will output the sub
1 1 32 bytes packet.
5 RSSI Ambient noise enable When enabled, the C0 C1 C2 C3 command can be
sent in the transmitting mode or WOR
0 Disable(default) transmitting mode to read the register.
Register 0x00: Current ambient noise RSSI
Register 0X01: RSII when the data was received
last time.
(Current channel noise is: dBm = -(256 -
RSSI))
04H Read/ Enable Command format: C0 C1 C2 C3 + starting
REG1 1 address + read length
Write
Return: C1 + address + read length + read valid
value
E.g: send C0 C1 C2 C3 00 01
Return C1 00 01 RSSI(Address can only start
from 00)
4 3 2 Reserve
1 0 Transmitting power
Power and current are nonlinear, and power
0 0 22dBm(default) efficiency is highest at maximum power.
0 1 17dBm
The current does not decrease in proportion to the
1 0 13dBm
decrease in power.
1 1 10dBm
Read/ Channel control(CH)
05H REG2 Frequency= 410.125 + CH *1M
Write 0-83 represents a total of 84 channels
7 Enable RSSI
When enabled, the module receives wireless data
0 Disable(default) and it will follow an RSSI strength byte after
output via the serial port TXD.
1 Enable
6 transmission mode During fixed-point transmission,the module
0 Transparent transmission mode(default) recognizes the first three bytes of the serial data
Read/ as: address high + address low + channel and
06H REG3 1 Fixed point transmission
Write takes it as the wireless transmitting target.
5 Relay function After the reply function is enabled, if the target
address is not the module itself, the module will
0 Disable repeater function(default) forward it once.
0 The module works in WOR monitoring mode. modify the delay time after wake-up.Default time
The monitoring period is as follows (WOR
is 0;
cycle), which can save a lot of power.
2. The receiving end needs to send the command
C0 09 02 03 E8 in configuration mode (C0 is the
WOR transmitter write command, 09 is the register initiator
The module receiving and transmitting address, 02 is the length, 03 E8 is the set delay,
1
functions are turned on, and a wake-up code is
added when transmitting data. the maximum FFFF is 65535ms, set to 0 turns off
the wake-up delay);
3. Data can be sent within the delay.
2 1 0 WOR period
0 0 0 500ms Valid only for mode 1.
Period T = (1 + WOR) * 500ms, maximum
0 0 1 1000ms
4000ms, minimum 500ms
0 1 0 1500ms The longer the WOR monitoring interval period,
the lower the average power consumption, but the
0 1 1 2000ms greater the data delay
1 0 0 2500ms
1 0 1 3000ms
Both the transmitter and the receiver must be the
1 1 0 3500ms same (very important).
1 1 1 4000ms
CRYPT Write only, read returns 0
07H Write Key high byte (default 0)
_H
Used for user encryption to avoid intercepting
airborne wireless data by similar modules.
CRYPT
08H Write Key low byte (default 0) The module will internally use these two bytes as
_L
a calculation factor to transform and encrypt the
over-the-air wireless signal.
80H~86H Read PID Product information 7 bytes Product information 7 bytes
Model No. Frequency Address Channel Air data rate Baud rate Serial format Power
No. Description
1 After setting the repeater mode by configuration, switch to the normal mode and the repeater starts working.
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
2
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.
The user enters the other mode from mode 3 (sleep mode) or during the reset process, the module resets the user parameters during which
4
the AUX outputs low level.
①Primary repeater
②Secondary repeater
Secondary repeater’s ADDH\ADDL are 33,05.
Therefore, Repeater 2 can forward the data of Repeater 1 to the network NETID: 05.
Thus node 3 and node 4 can receive node 1 data. Node 4 outputs data normally, and node 3 has a different address than node 1, so no
data is output.
③Two-way repeater
As shown in the figure: the data sent by node 1, the nodes 2, 4 can receive the data sent by node 2, 4, and node 1 can also
receive it.
The following figure shows the E22-400T22DC configuration host computer display interface, users can switch to
the command mode through M0M1, and quickly configure and read the parameters on computer.
In the configuration on computer, the module address, frequency channel, network ID, and key are all in decimal
mode. The range of values of each parameter is:
Key: 0-65535
When users configure the repeater mode using the host computer, special attention must be paid. Since the
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.
It is recommended to use a DC stabilized power supply. The power supply ripple factor is as small as possible, and
the module needs to be reliably grounded.;
Please pay attention to the correct connection of the positive and negative poles of the power supply. Reverse
connection may cause permanent damage to the module;
Please check the power supply to ensure it is within the recommended voltage otherwise when it exceeds the
maximum value the module will be permanently damaged;
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% of the
margin, so the whole machine is beneficial for long-term stable operation.;
The module should be as far away as possible from the power supply, transformers, high-frequency wiring and other
parts with large electromagnetic interference.;
High-frequency digital routing, high-frequency analog routing, and power routing must be avoided under 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;
Assuming the module is soldered or placed over the Top Layer, it is wrong to randomly route over the Bottom Layer
or other layers, which will affect the module's spurs and receiving sensitivity to varying degrees;
It is assumed that there are devices with large electromagnetic interference around the module that will 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;
Assume that there are traces with large electromagnetic interference (high-frequency digital, high-frequency 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.
If the communication line uses a 5V level, a 1k-5.1k resistor must be connected in series (not recommended, there is
still a risk of damage);
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 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;
The antenna must not be installed inside the metal case, which will cause the transmission distance to be greatly
weakened.
11. FAQ
Please check the power supply source, ensure it is 2.0V~3.6V, voltage higher than 3.6V will damage the module.
Please check the stability of power supply, the voltage cannot fluctuate too much.
Please make sure antistatic measure are taken when installing and using, high frequency devices have electrostatic
susceptibility.
Please ensure the humidity is within limited range, some parts are sensitive to humidity.
Please avoid using modules under too high or too low temperature.
There are co-channel signal interference nearby, please be away from interference sources or modify frequency and
channel to avoid interference;
Poor power supply may cause messy code. Make sure that the power supply is reliable.
The extension line and feeder quality are poor or too long, so the bit error rate is high;
This product is a DIP module. When welding the module, the welding personnel must operate in accordance with the
anti-static operation specifications;
This product is electrostatic sensitive. Welding the module randomly without complying with the specifications may
cause permanent damage to the module.
Antenna is an important role in the communication process. Inferior antennas often have a huge impact on
communication systems. Therefore, we recommend some antennas for wireless modules with excellent performance and
reasonable price.
Revision history
Version Date Description Issued by
1.0 2021-4-2 Initial version Linson
About us
Technical support: [email protected]
Documents and RF Setting download link: www.ebyte.com
Thank you for using Ebyte products! Please contact us with any questions or suggestions: [email protected]
------------------------------------------------------------------------------------------------------------
Fax: 028-64146160 ext. 821
Web: www.ebyte.com
Address: Innovation Center D347, 4# XI-XIN Road,Chengdu, Sichuan, China