Professional Documents
Culture Documents
E180 Dtu (ZG120 485)
E180 Dtu (ZG120 485)
Contents
1 Product introduction.................................................................................................................................................... 3
1.1 Brief introduction..............................................................................................................................................3
1.2 Features............................................................................................................................................................. 3
1.3 Product features................................................................................................................................................ 3
2 Size and pin definition................................................................................................................................................. 5
2.1 Part definition................................................................................................................................................... 5
2.2 Size and Interface definition.............................................................................................................................6
2.3 Power supply interface..................................................................................................................................... 8
2.4 RS485 interface definition.............................................................................................................................8
3 Function description.................................................................................................................................................... 9
3.1 Transmission mode........................................................................................................................................... 9
3.2 Configuration mode.......................................................................................................................................... 9
3.3 Mode switch......................................................................................................................................................9
4 Quick Start................................................................................................................................................................. 10
4.1 Quickly build a ZigBee network.................................................................................................................... 10
4.2 Quickly join a ZigBee network...................................................................................................................... 13
4.3 ZigBee network communication test..............................................................................................................16
4.3.1 Unicast test...........................................................................................................................................16
4.3.2 Multicast test........................................................................................................................................19
4.3.3 Broadcast test.......................................................................................................................................21
4.4 Remote communication parameter and networking configuration................................................................22
5 Data receiving and transmitting mode.......................................................................................................................25
5.1 Data transmitting mode.................................................................................................................................. 25
5.1.1 Broadcast mode................................................................................................................................... 25
5.1.2 Multicast mode.................................................................................................................................... 25
5.1.3 Unicast mode....................................................................................................................................... 25
5.2 The output mode of the received data............................................................................................................ 25
5.2.1 Transparent output............................................................................................................................... 25
5.2.2 Data+short address.............................................................................................................................. 26
5.2.3 Data+long address............................................................................................................................... 26
5.2.4 Data+RSSI........................................................................................................................................... 26
5.2.5 Data+short address+RSSI....................................................................................................................26
5.2.6 Data+long address+RSSI.................................................................................................................... 26
6 Application function and command configuration....................................................................................................27
6.1 Function.......................................................................................................................................................... 27
6.1.1 LINK description................................................................................................................................. 27
6.1.2 RUN description.................................................................................................................................. 27
6.1.3 UART_BAUD_RESET description.................................................................................................... 27
6.2 Wireless remote configuration function......................................................................................................... 27
6.3 Function parameter description...................................................................................................................... 27
6.4 HEX command............................................................................................................................................... 29
6.4.1 Command rules....................................................................................................................................29
1 Product introduction
1.2 Features
★ All core components are imported from the original. Compared with other similar devices, they have the most
advanced functions, the smallest size, and the best price.
★ Operating temperature range: -40 ℃ ~ + 85 ℃, can adapt to a variety of harsh working environments, truly
industrial class.
★ All-aluminum alloy shell, compact size, easy installation, good heat dissipation; perfect shielding design, good
electromagnetic compatibility, strong anti-interference ability.
★ Multiple protection functions, such as reverse power protection, over-connection protection, and antenna surge
protection, greatly increase the reliability of the device.
★ Powerful software function, all parameters can be set by software: such as transmit power, frequency, address ID,
etc.
★ Built-in watchdog and precise time layout. Once an exception occurs, the module will automatically restart and
continue to work according to the previous parameter settings.
Centralized network management: ZIGBEE 3.0 security standard centralized network access mechanism, data
is safe and reliable;
Interoperability: Zigbee 3.0 standard network mechanism, compatible with ZHA, ZLL and other network
protocols;
Large capacity: 256K flash, 32K RAM, network nodes can be expanded to more than 100;
Role switching: The user can switch the roles between the three types of coordinator, router, and terminal
through serial commands;
Support multiple network topologies: point-to-point, star network, MESH network;
Network self-healing: When the network intermediate node is lost, other networks automatically join or
maintain the original network;
Automatic routing: module supports network routing function;
Address search: users can find the corresponding short address according to the MAC address (unique, fixed)
of the node that has joined the network, and can also find the corresponding long address of each node in the
network according to the short address;
Data security: integrated ZIGBEE 3.0 security communication standard, the network contains multi-level
security keys;
Serial port configuration: The module has built-in serial port commands. Users can configure (check) the
parameters and functions of the module through the serial port commands;
Network PAN_ID change: The network PAN_ID can be switched arbitrarily. The user can customize the
PAN_ID to join the corresponding network or automatically select the PAN_ID to join the network;
Network opening time is configurable: It can be configured to open the network for a certain period of time.
During this period, devices that comply with the ZigBee 3.0 standard can join the network. After this period of
time, the network will be shut down and any device cannot join. It can also be configured to be permanently
open, and any device that complies with the ZigBee 3.0 standard can join;
One-click restore baud rate: If the user forgets or does not know the baud rate, this function can be used to
restore the default baud rate of 115200;
Module reset: users can reset the module through serial commands;
Restore factory settings: users can restore the factory settings of the module through serial commands;
Over-the-air configuration: Users can remotely configure other devices on the network using over-the-air
configuration commands.
Unit: mm
The user needs to use the VCC terminal and GND terminal in ① for power supply. E180-DTU can use 8 ~ 28V DC
power supply. It is recommended to use 12V or 24V DC power supply.
3 Function description
When the module enters the transmission mode, any data received by the serial port will be sent out. The
transmission mode is the wireless communication between network nodes. The communication methods include unicast,
broadcast, and multicast.
When the module enters the configuration mode, the data received by the serial port is defaulted to the configuration
command to configure and operate the device. In the configuration mode, the data received by the module serial port is
considered to be HEX command.
4 Quick Start
In order to let users become familiar with the module quickly, this section will guide users to use the setting
software to perform simple configuration to build a ZigBee network, including node type configuration, PANID setting,
channel setting, and transmission power setting.
Use the setting software to quickly and easily set up a ZigBee network. The specific steps are as follows:
(1) Connect the computer to the device via USB to RS485, open the setting software “E180-ZGxxxx-Setting-V1.3”, as
shown in the figure below, select the port number and set the serial port baud rate (default 115200), and open the serial
port.
(2) After the serial port is opened, first click "(Configuration)Enter configuration mode", and the message box
prompts "Enter configuration state successfully, read parameters successfully." The main network parameters include:
the default node type is terminal, the default channel is 11, the PAN ID default is random, and the default tx power is 20.
(3) Change the node type to coordinator, and click the button next to it, then a message box prompts "Successfully
configured device type". The usual ZigBee 3.0 network is established by the coordinator node, so you need to change the
default terminal node type to the coordinator before establishing the network.
(4) After the node type is successfully written, modify other network parameters to establish the required ZigBee
network (you can also use the default values without modifying the parameters). Modify the channel, network PANID,
and tx power here. After modifying the parameters, you have to click "Set Nwk(write network parameters) ", the
message box will prompt" write parameters successful ".
(5) After the node type is modified, the device needs to be restarted to take effect. Choose “Fixed Point network”
Click “leave Net” and then Click "Module restart", and the message box prompts "Module restart successfully".
(6) After the module is restarted, it will enter the transmission mode by default. At this time, click "configuration
(enter configuration mode)" again, and the message box will prompt "enter configuration state successfully, and read
parameters successfully". It can be seen that the parameters are the previously modified parameters, indicating that the
network parameters have been modified successfully.
(1) Open the setting software "E180-ZGxxxx-Setting-V1.3", select the port number, set the baud rate of the serial
port, and open the serial port.
(2) After the serial port is opened, first click "Enter configuration mode", and the message box prompts "Enter
configuration state successfully, read parameters successfully." The main network parameters include: the default node
type is terminal, the default channel is 11, the PAN ID default is random, and the tx power The default is 20.
(3) Modify the node type to sleep terminal, click the button next to it, and the message box prompts "Configure
device type successfully". Modify the network parameters, the PAN ID and transmission channel parameters must be the
same as the network to be added. Click”Set Nwk”, the message box prompts "Successfully written parameters".
(4) Click "Module restart", the message box prompts "Module restart successfully", click "Enter configuration
mode", the message box prompts "Entered configuration successfully, read parameters successfully", then confirm
whether the read PAN ID and channel parameters are same as previously modified.
(5) Select the fixed networking interface and the network state is displayed as "Joined Network", indicating that the
sleeping terminal node has joined the network which is created by the coordinator before.
Similarly, routing nodes and terminal nodes also join a specific ZigBee network according to the above method. If the
node type is unchanged but needs to join to another ZigBee network, the Enter button next to the node type
configuration also needs to be clicked. Modify the network parameters before write the parameters, finally restart, and
then join the new ZigBee network.
4.3.1.1 Unicast between the terminal and the coordinator with short addresses
(1) Enter the configuration mode, configure the target network address, and change the target network address of the
coordinator to the local short address of the terminal (0x9034). The target network address of the terminal is 0 by default,
and 0 is the network short address of the coordinator (the network short address of the coordinator is always 0). At this
time, no modification is needed. If it communicates with a non-coordinator node, it needs to be modified (modified it to
the target Node's network local short address).
(2) After the target addresses between the nodes are configured, click "Enter Transmission Mode", and a message
box prompts "Enter transmission mode successfully ". Then confirm whether the module is in transmission mode before
communication, and they can only communicate in transmission mode. Input data in the sending area and click send, you
can see the received data in the message box of the terminal node.
4.3.1.2 Unicast between the terminal and the coordinator with long addresses
(1) Before communication, first enter the configuration mode and configure the target MAC address. On the
coordinator side, configure the target MAC address as the long MAC address of the terminal. On the terminal side,
configure the target MAC address as the coordinator MAC long address.
(2) After the target MAC address is configured, you also need to configure the transmission mode, change the
"network address (short address)" to "MAC address", and then write the parameters again. At this time, the target address
is configured for unicast in the form of MAC address.
(3) After completing the above parameter configuration, you need to click to enter the transmission mode and
communicate in the transmission mode.
(1) For example, the terminal device is the receiving end, click "Enter configuration mode", modify the network
group number to "5", and then write the parameter, and the message box prompts "The parameter was successfully
written". At this time, the terminal device is assigned a group ID of 5.
(2) For example, if the coordinator is the sender, click "Enter configuration mode" to enter the fixed network and
select the multicast mode. The message box prompts "In multicast mode, the nodes in the network with the same group
number will receive multicast data", modify the target group number to "5", and then write the parameter, and the
message box prompts "Successfully written parameter".
(3) Enter the transmission mode, the message box prompts "Successfully entered the transmission mode", and then
perform multicast data communication.
(4) For example, when the terminal is the receiving end, enter the configuration mode, change the network group
number to "4", and then write the parameter. At this time, because the network group number is not "5", the coordinator
multicast data cannot be received.
(1) For example, the coordinator broadcasts, click "Enter configuration mode", enter the fixed network, select the
broadcast mode, and then write the parameters. A message box prompts "Write parameters successfully".
(2) Enter the transmission mode, the message box prompts "Successfully entered the transmission mode", and then
broadcast data communication. At this time, all nodes in the network will receive data, including the sender node.
Devices in a network can remotely configure network parameters with each other. The specific operations are as
follows: First follow the steps in the above section to establish a network, and add a terminal to enter the network.
Then in the fixed-point networking interface of the coordinator, change the target network address to the local short
address of the terminal, and change the transmission mode to the network address.
Click to enter the remote communication parameter interface of the coordinator, first enter the transmission mode, enter
the wireless configuration ID of the terminal in the "ID to be read" in the lower right corner, and click the enter key on
the right to save the parameters, and reply "Save and read ID successfully !!!"
Finally, click "Get Nwk(Read network parameters)" to configure the network parameters of the terminal device on the
remote communication parameter interface of the coordinator.
The operation steps of remote networking parameters are the same as the above remote communication parameters,
just operate on the remote networking interface.
The data transmission mode of the module includes unicast, broadcast and multicast.
In broadcast mode, the sending device sends the data received by the serial port to each node (including itself) in the
network, and all devices in the network will receive the data.
In multicast mode, first set the group number (for grouping) for the devices in the network. The sending device must
specify the target group number (to which group to send the data). Then the sending device will send the data received by
the serial port to the network, and the devices with the same group number in the network will receive the data.
In unicast mode, the devices on the network perform point-to-point communication through the network address. The
sending device sends the received serial data to the target address device. After receiving the data, the device with target
address can return an ACK to the sending device to indicate that it has received data.
The output mode of received data refers to the method of serial port outputting data after the module receives
wireless data.
If the output mode of the device is transparent output, the module will output the original data through the serial port
after receiving the wireless data.
When the output mode of the device is data + short address, after the module receives the wireless data, the serial port
will output the original data + short address of the sending device.
When the output mode of the device is data + long address, after the module receives the wireless data, the serial port
will output the original data + long address of the sending device.
5.2.4 Data+RSSI
When the output mode of the device is data + RSSI, after the module receives the wireless data, the serial port will
output the original data + RSSI value of the received packet.
When the output mode of the device is data + short address + RSSI, after the module receives the wireless data, the
serial port will output the original data + short address of the sending device + RSSI value of the received packet.
When the output mode of the device is data + long address + RSSI, after the module receives the wireless data, the
serial port will output the original data + long address of the sending device + RSSI value of the received packet.
Note: The sender's single packet supports a maximum data packet length of 72 bytes.
6.1 Function
LINK pin indicates the current network status of the module. After the device is successfully connected to the
network, the LINK light is always on. When the device has no network or the parent node is lost, the LINK light is off.
In the coordinator mode, this pin indicates whether the module has established a network normally.
RUN pin indicates the current working status of the device. When the RUN light is off, it indicates that the device is
busy; when the RUN light is on, it indicates that the device is idle; when the device receives data, the RUN light goes off
for 2 to 4 ms, and the serial port starts to output data.
UART_BAUD_RESET is used to reset the device baud rate. Press and hold for more than 1s to reset the radio baud
rate (115200), 8N1.
The module supports the remote configuration function. The two-byte wireless configuration ID defaults to A8 8A.
The user can modify the remote configuration ID of the module. When the first two bytes of the wireless data received
by the module are the wireless configuration ID, The module will recognize the data packet as a remote configuration
command and perform the corresponding command operation. The data packet will not be output through the serial port.
The module provides abundant configurable parameters, which can be flexibly used according to actual application
requirements to build different forms of networks.
is A8 8A。
Local network Read/Write 0~255 It is used to configure the group number of the device in
group number the network.
Target network Read/Write 0~255 It is used to configure the group number of the
group number corresponding target in multicast mode.
Network opening time Read/Write 10~2540 second It is used to configure the opening and closing of network
security. Devices can join the network during opening, and
devices cannot join during closing.
Reconnection cycle Read/Write 1~255 minute When the parent node is lost (coordinator is powered off),
when the parent node the terminal device reconnects to the previous network at
is lost regular intervals.
Maximum number of Read/Write 1~255 次 It is the maximum number of reconnections after the parent
reconnections node is lost. If the reconnection is not successful, the previous
network information is cleared and the new network is
rescanned. The scanning cycle is equal to the reconnection
cycle.
CMD: Command ID
Return during reading / configuration: F7 FF, indicating that the information does not exist / read / configuration /
format failed.
Wireless remote read / configuration format: Add wireless configuration ID before the command format of local
serial port mode
The default is A8 8A (its value can be modified), for example:
Configuration format: A8 8A FD LEN CMD DATA FF
Parameter reading format: A8 8A FE LEN CMD (CHANNEL) FF
Network operation format:F5 LEN CMD DATA FF
F5: Fixed head
LEN: Length of DATA
CMD: Actual name ID
DATA: Parameter
FF: Command Terminator
Return of configuration: FC CMD STATUS
FC: Fixed head
CMD: Actual name ID
STATUS: 00 Successful, 01 failed
Command Command
Command format Example
description ID
Read device type 01 Send: FE 01 01 FF Send: FE 01 01 FF
Return: FB 01 dev_type Return: FB 01 03
Read network status 02 Send: FE 01 02 FF Send: FE 01 02 FF
Return: FB 02 nwk_state Return: FB 02 02
Read network 03 Send: FE 02 03 FF Send: FE 02 03 FF
PAN_ID Return: FB 03 pan_id Return: FB 03 FE 5B
Read local network 05 Send: FE 02 05 FF Send: FE 02 05 FF
short address Return: FB 05 Short_Addr Return: FB 05 F6 FA
Read local MAC 06 Send: FE 08 06 FF
Send: FE 08 06 FF
address Return: FB 06 1F 1C 21 FE
Return: FB 06 Mac_Addr
FF 57 B4 14
Read network short 07
Send: FE 02 07 FF Send: FE 02 07 FF
address of parent
Return: FB 07 Coor_shortAddr Return: FB 07 00 00
node
Read the MAC 08 Send: FE 08 08 FF
Send: FE 08 08 FF
address of the parent Return:FB 08 0C 46 0C FE
Return: FB 08 Coor _Mac_Addr
node FF 9F FD 90
Read network group 09 Send: FE 01 09 FF Send: FE 01 09 FF
number Return: FB 09 group Return: FB 09 01
Return:FA FE
Send:FD 00 12 FF Send:FD 01 12 FF
Device reset
Return:FA 12 Return:FA 12
Send:FD 00 13 FF Send:FD 01 13 FF
Restore to factory settings
Return:FA 13 Return:FA 13
Send:F5 01 40 01 FF Send:F5 01 40 01 FF
Open network
Return:FC 40 00 Return:FC 40 00
Send:F5 01 40 02 FF Send:F5 01 40 02 FF
Leave network
Return:FC 40 00 Return:FC 40 00
Send:F5 01 40 03 FF Send:F5 01 40 03 FF
Create new network
Return:FC 40 00 Return:FC 40 00
Send:F5 01 40 04 FF Send:F5 01 40 04 FF
Start Touchlink
Return:FC 40 00 Return:FC 40 00
Mode:
0x00 Broadcast (default);
0x01 Multicast;
0x02 Unicast+short address;
0x03 Unicast+long address.
Mode:
0x00 Transparent transmission (Default);
0x01 Data+short address;
0x02 Data+long address;
0x03 Data+RSSI;
0x04 Data+short address+RSSI;
0x05 Data+long address+RSSI.
dev_type:
0x01 Coordinator
0x02 Router
0x03 Terminal (default)
Changing the device type configuration takes effect after restarting. If the device type is configured in normal
operation, the device will leave the current network and be in a no-network state. After restarting, it will switch to the
changed device type.
nwk_state:
0x00 No network
0x01 Joining the network currently
0x02 Has joined the network
0x03 A network exists, but the parent node is lost
0x04 Leaving the current network
pan_id:
0x0000~0xFFFE Fixed network PAN_ID
0xFFFF Random network PAN_ID
PANID This parameter needs to be configured before establishing a network or joining a network
Coor_shortAddr: 2 Byte The short address of the parent node of the current device, it is 0x0000 if the coordinator
Coor_Mac_Addr: 8 Byte Long address of the parent node of the current device
Group: Group number range 0x01~0xFF (default 0 means no group, the system broadcasts by default)
6.5.12 TX power
Note: This sleep time represents the polling cycle of the terminal and represents the speed at which the terminal
automatically switches the best parent node.
Time: The maximum setting of the Zigbee protocol stack is 30, and the unit is S (seconds). If a terminal node needs
to receive data from the parent node, the configuration of the sleep time cannot be longer than 30 seconds.
Open time: (1~254) Network open time range is (1~254)*10 Unit (second)
255 Indicates that the network is permanently open
6.5.17 The cycle of network reconnection after the parent node is lost
Remote Header: 0x0000 is to turn off remote configuration, 0x0001~0xFFFF is to turn on remote configuration,
default is 0xA88A(0xA8 0x8A).
all_info: FD 1A FE 03 FE 5B 01 0B 0A 09 54 00 00 00 0A 1C 21 FE FF 57 B4 14 02 00 FF 05 05 A8 8A FF
Device type 03; Network PANID FE 5B; Network group number 01; Channel 0B; TX power 0A; Baudrate 09; Sleep
time 54; Target network short address 00 00; Target network group number 00; Target network short address 0A 1C 21
FE FF 57 B4 14; System TX mode 02; Data output way 00; Network open time FF; Rejoin cycle 05; Rejoin times 05;
Remote ID A8 8A.
all_info:FB FE 03 02 FE 5B F6 FA 1F 1C 21 FE FF 57 B4 14 00 00 0C 46 0C FE FF 9F FD 90 01 0B 0A 09 54 00
00 00 0A 1C 21 FE FF 57 B4 14 02 00 FF 05 05 A8 8A
Device type 03; Network state 02; Network PANID FE 5B; Local network short address F6 FA; Local MAC address 1F
1C 21 FE FF 57 B4 14; Parent node network short address 00 00; Parent node MAC address 0C 46 0C FE FF 9F FD 90;
Network group number 01; Channel 0B; TX power 0A; Baudrate 09; Sleep time 54; Target network short address 00 00;
Target network group number 00; Target network long address 0A 1C 21 FE FF 57 B4 14; System TX mode 02; Data
output way 00; Network open time FF; Rejoin cycle 05; Rejoin times 05; Remote ID A8 8A.
child_count: Refers to the number of terminal nodes currently managed by the coordinator or router, with a
maximum of 50.
After receiving the "FE 0E 33 FF" instruction to read the terminal detail list, the coordinator or router node will print the
information of terminal node according to the terminal node's index (index) from 0 to child_count-1, at intervals of 50ms,
for example:
Receive: FE 0E 33 FF
Return: FB 33 0 03 34 F3 0B 03 21 FE FF 57 B4 14
50ms
FB 33 1 04 F2 7B 02 1F 21 FE FF 57 B4 14
50ms
FB 33 2 04 A0 82 27 6E 21 FE FF 57 B4 14
50ms
FB 33 3 03 F4 3E F3 7C 21 FE FF 57 B4 14
50ms . . . .
. . . .
. . . .
FB 33 index dev_type Short_Addr Mac_Addr
7 User notice
The MESH structured network has powerful functions. The network can communicate in a "multi-level hopping" manner.
The topology can also form extremely complex networks. The network also has self-organizing and self-healing functions.
8 Practical applications
Ebyte DTU is suitable for various point-to-point and point-to-multipoint wireless data transmission systems, such as
smart homes, IoT transformation, power load monitoring, distribution network automation, hydrological and
hydrological monitoring, water pipe network monitoring, urban street lights monitoring, air defense alarm control,
railway signal monitoring, centralized railway water supply control, monitoring of oil and gas pipeline networks, GPS
positioning system, remote meter reading, electronic crane scale, automatic target reporting, earthquake monitoring and
reporting, fire prevention system, as shown below:
Revision History
Version Revision date Description Issued by
1.0 2019/9/12 Original version Ren
1.1 2021/8/11 Content modification LM
About us
Technical support: support@cdebyte.com
Documents and RF Setting download link: www.ebyte.com
Thank you for using Ebyte products! Please contact us with any questions or suggestions: info@cdebyte.com
-------------------------------------------------------------------------------------------------
Phone: +86 028-61399028
Web: www.ebyte.com
Address: B5 Mould Park, 199# Xiqu Ave, High-tech District, Sichuan, China