Download as pdf or txt
Download as pdf or txt
You are on page 1of 41

E180-DTU(ZG120-485)

Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

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

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 1


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

6.4.2 Read command.................................................................................................................................... 30


6.4.3 Configuration command......................................................................................................................32
6.4.4 Network operation command.............................................................................................................. 33
6.5 HEX parameter description............................................................................................................................ 33
6.5.1 System TX mode................................................................................................................................. 33
6.5.2 Data output...........................................................................................................................................33
6.5.3 Device type.......................................................................................................................................... 34
6.5.4 Network state....................................................................................................................................... 34
6.5.5 Network PAN_ID................................................................................................................................ 34
6.5.6 Network short address......................................................................................................................... 34
6.5.7 MAC address....................................................................................................................................... 34
6.6.8 Parent node network short address......................................................................................................35
6.5.9 Parent node MAC address................................................................................................................... 35
6.5.10 Network group number......................................................................................................................35
6.5.11 Network channel................................................................................................................................ 35
6.5.12 TX power........................................................................................................................................... 35
6.5.13 Serial port baudrate............................................................................................................................35
6.5.14 Sleep time.......................................................................................................................................... 36
6.5.15 Saving time of parent node................................................................................................................36
6.5.16 Centralized network open time..........................................................................................................36
6.5.17 The cycle of network reconnection after the parent node is lost...................................................... 36
6.5.18 Maximum number of reconnections................................................................................................. 36
6.5.19 Remote configuration ID...................................................................................................................36
6.5.20 Configure all network parameters..................................................................................................... 37
6.5.21 Read all network parameters............................................................................................................. 37
6.5.22 Terminals of parent node................................................................................................................... 37
6.5.23 Terminal details of parent node......................................................................................................... 37
7 User notice................................................................................................................................................................. 39
7.1 Network structure........................................................................................................................................... 39
8 Practical applications................................................................................................................................................. 39
Revision History........................................................................................................................................................... 40
About us........................................................................................................................................................................ 40

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 2


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

1 Product introduction

1.1 Brief introduction

E180-DTU (ZG120-485) is a wireless communication device based on ZigBee technology. As a communication


medium, like optical fiber, microwave, and cable, it has a certain scope of application: it provides real-time and reliable
data transmission of monitoring signals in a private network under certain special conditions. It has low cost, convenient
installation and maintenance, features of strong diffraction ability, flexible network structure, and long coverage range,
suitable for occasions with many points and scattered, and complicated geographical environment, can be connected to
PLC, RTU, rain gauge, level gauge and other data terminals.

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.

★ Transmit power can be selected.

★ It adopts temperature-compensated crystal with frequency stability better than ± 2ppm.

★ 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.

1.3 Product features

 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;

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 3


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

 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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 4


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

2 Size and pin definition

2.1 Part definition

No. Item Function Description


Crimped power connector,
1 VCC DC 8 ~ 28V, 12V or 24V is recommended
positive
Crimped power connector, The negative of the power supply is connected to the
2 GND
negative system ground and the case
It can be connected to external grounding terminal or not
3 AGND Public ground interface
handled
4 RS485-TXD Serial terminal Output, connected to RXD of other RS485 device
5 RS485-RXD Serial terminal Input, connected to TXD of other RS485 device
6 PWR-LED Power Indicator Red, always on when power is on
7 TXD-LED Send indicator Yellow, blinking when sending data

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 5


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

8 RXD-LED Receive indicator Yellow, blinking when receiving data


Red, always on when connected to the network, off when
9 LINK-LED Connection indicator
not connected
Device working status Red, the device is busy when the light is off, and the
10 RUN-LED
indicator device is idle when the light is on
Baud rate reset Long press for more than 1s to reset the baud rate
11 Tact Switch
switch (115200)
Externally threaded female hole, 10mm long,
12 Antenna interface SMA-K interface
characteristic impedance 50Ω

2.2 Size and Interface definition

No. Item Description


1 Size 66*66*21mm
2 Weight 70.5g±5g

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 6


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

Unit: mm

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 7


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

2.3 Power supply interface

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.

2.4 RS485 interface definition

No. Definition Function Description


Crimped power connector,
1 VCC DC 8 ~ 28V, 12V or 24V is recommended
positive
Crimped power connector, The negative of the power supply is connected to the system
2 GND
negative ground and the case
3 AGND Public ground interface Connected to external grounding terminal or not handled
4 RS485-TXD Serial terminal Output, connected to RXD of other RS485 device

5 RS485-RXD Serial terminal Input, connected to TXD of other RS485 device

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 8


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

3 Function description

3.1 Transmission mode

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.

3.2 Configuration mode

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.

3.3 Mode switch

After the module is powered on, it defaults to be in the transmission mode.


In the transmission mode, when the module serial port receives the "2A 2D 2E" character, it enters the configuration
mode, and returns to the "7A 7D 7E" character after successfully entering the configuration mode. In configuration mode,
when the module serial port receives the "2F 2C 2B" character, the module exits the configuration mode, enters the
transmission mode, and returns to the "7F 7C 7B" character after successfully entering the transmission mode.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 9


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

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.

4.1 Quickly build a ZigBee network

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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 10


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

(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 ".

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 11


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

(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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 12


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

4.2 Quickly join a ZigBee network

(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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 13


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

(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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 14


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

(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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 15


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

4.3 ZigBee network communication test

4.3.1 Unicast test

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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 16


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

(3) Similarly, the terminal unicasts to the coordinator.

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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 17


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

(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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 18


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

4.3.2 Multicast test

(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".

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 19


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

(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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 20


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

4.3.3 Broadcast test

(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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 21


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

4.4 Remote communication parameter and networking configuration

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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 22


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 23


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

The operation steps of remote networking parameters are the same as the above remote communication parameters,
just operate on the remote networking interface.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 24


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

5 Data receiving and transmitting mode

5.1 Data transmitting mode

The data transmission mode of the module includes unicast, broadcast and multicast.

5.1.1 Broadcast mode

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.

5.1.2 Multicast mode

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.

5.1.3 Unicast mode

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.

5.2 The output mode of the received data

The output mode of received data refers to the method of serial port outputting data after the module receives
wireless data.

5.2.1 Transparent output

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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 25


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

5.2.2 Data+short address

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.

5.2.3 Data+long address

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.

5.2.5 Data+short address+RSSI

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.

5.2.6 Data+long address+RSSI

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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 26


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

6 Application function and command configuration

6.1 Function

6.1.1 LINK description

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.

6.1.2 RUN description

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.

6.1.3 UART_BAUD_RESET description

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.

6.2 Wireless remote configuration function

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.

6.3 Function parameter description

The module provides abundant configurable parameters, which can be flexibly used according to actual application
requirements to build different forms of networks.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 27


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

Configuration Attributes Parameter Description


information range
PANID Read/Write 0x0000~0xFFFF PANID is the identifier of the ZIGBEE network and is used
to determine the identity of the network to which it belongs. All
devices in the same network must have the same PANID. When
the terminal or router is configured as 0xFFFF, it can be added
to any network that already exists on the same channel.
Local network Read 0x0000~0xFFFF It is used to distinguish each node in the network. When
address each device is in the same network, the local network address
must be unique. When not connected to the network, the
device's network address is 0xFFFF. After joining the network,
the short address of the device is assigned by the coordinator .
The coordinator address is fixed: 0x0000.
Network status Read 0、1、2、3、4 Represents the network status of the current device: no
network, currently joining the network, has successfully joined
the network, has a network but has lost its parent node, is
leaving the current network, etc.
Target network Read/Write 0x0000~0xFFFF Current device communication target (short address),
address which can be switched at any time through commands
Local MAC address Read 64bitMAC The factory default MAC address of the module which
cannot be changed by the user
Target MAC address Read/Write 64bitMAC Send data using long address in fixed mode
Device type Read/Write C、R、E、S They are: coordinator, router, non-dormant terminal,
dormant terminal
Channel Read/Write CH11~26 Working physical channel of ZIGBEE device
Transmitting mode Read/Write 0、1、2、3 Module transmitting modes: broadcast mode, multicast
mode, short address unicast mode, long address unicast mode
For details, please refer to the corresponding mode
introduction.
Output mode Read/Write 0、1、2、3、4、 The data output modes of the module are:
5 Transparent transmission;
Data+short address;
Data+long address;
Data+RSSI;
Data+short address+RSSI;
Data+long address+RSSI
TX power Read/Write 0~20dbm Output power of the module: 0 to 20dbm. Where power
consumption is required and the distance is not required, the tx
power can be reduced for saving average power consumption.
Remote configuration Read/Write 2 bytes It is used to judge whether the data received in the air is a
ID remote configuration command. Customers can change the
wireless configuration ID according to their needs. The default

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 28


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

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.

6.4 HEX command

6.4.1 Command rules

Read format of local serial port:


Network parameter reading: FE LEN CMD FF
Peripheral parameter reading: FE LEN CMD CHANNEL FF
FE: Fixed head
LEN: Length of DATA
CMD: Actual name ID
CHANNEL: PWM、ADC、GPIO Channel selection when reading
FF: Command Terminator
Read return format: FB CMD DATA
FB: Fixed head
CMD: Command ID
DATA:Parameter
Local serial port configuration format: FD LEN CMD DATA FF
FD:Fixed head
LEN: Length of DATA
CMD: Actual name ID
DATA:Parameter
FF: Command Terminator
Return of configuration: FA CMD
FA:Fixed head

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 29


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

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

6.4.2 Read command

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

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 30


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

Read communication 0A Send: FE 01 0A FF Send: FE 01 0A FF


channel Return: FB 0A channel Return: FB 0A 0B
Read tx power 0B Send: FE 01 0B FF Send: FE 01 0B FF
Return: FB 0B txpower Return: FB 0B 0A
Read serial port baud 0C Send: FE 01 0C FF Send: FE 01 0C FF
rate Return: FB 0C baud Return: FB 0C 09
Read sleep time 0D Send: FE 01 0D FF Send: FE 01 0D FF
Return: FB 0D sleep_time Return: FB 0D 54
Read the short 23
Send:FE 02 23 FF Send: FE 02 23 FF
network address of
Return: FB 23 Dec_ShortAddr Return: FB 23 00 00
the target
Read the network 24
Send: FE 01 24 FF Send: FE 01 24 FF
group number of the
Return: FB 24 Dec_netid Return: FB 24 00
target
Read the long 25 Send: FE 08 25 FF
Send: FE 08 25 FF
address of the target Return : FB 25 0A 1C 21
Return: FB 25 Dec_mac
FE FF 57 B4 14
Read system send 26 Send: FE 01 26 FF Send: FE 01 26 FF
mode Return: FB 26 send_mode Return: FB 26 02
Read data output 27 Send: FE 01 27 FF Send: FE 01 27 FF
mode Return: FB 27 out_mode Return: FB 27 00
Read central network 28 Send: FE 01 28 FF Send: FE 01 28 FF
open time Return: FB 28 net_opentime Return: FB 28 FF
The cycle of 29
Send: FE 01 29 FF Send: FE 01 29 FF
reconnection when
Return: FB 29 net_rejoinperiod Return: FB 29 05
the parent node lost
Maximum number of 30
Send: FE 01 30 FF Send: FE 01 30 FF
reconnections when
Return: FB 30 net_rejoincount Return: FB 30 05
the parent node lost
Read wireless 31 Send: FE 02 31 FF Send: FE 02 31 FF
configuration ID Return: FB 31 header Return: FB 31 A8 8A
Read all network FE Send:FE 2F FE FF
parameters of the Return:FB FE 03 02 FE 5B
device F6 FA 1F 1C 21 FE FF 57
Send: FE 2F FE FF B4 14 00 00 0C 46 0C FE
Return: FB FE all_info 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
Read the number of 32 Command: FE 01 32 FF Send: FE 01 32 FF
parent nodes Return: FB 32 child_count Return: FB 32 0A
Read the parent 33 Command: FE 0E 33 FF Send: FE 0E 33 FF
node's detail list Return: FB 33 index dev_type Return: FB 33 00 03 FE 5B
Short_Addr Mac_Addr 0A 1C 21 FE FF 57 B4 14

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 31


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

6.4.3 Configuration command

Send:FD 01 01 dev_type FF Send:FD 01 01 03 FF


Configure device type
Return:FA 01 Return:FA 01
Send:FD 02 03 pan_id FF Send:FD 02 03 FE 5B FF
Configure PAN_ID
Return:FA 03 Return:FA 03
Send:FD 01 09 group FF Send:FD 01 09 01 FF
Configure network group number
Return:FA 09 Return:FA 09
Send:FD 01 0A channel FF Send:FD 01 0A 0B FF
Configure communication channel
Return:FA 0A Return:FA 0A
Send:FD 01 0B txpower FF Send:FD 01 0B 0A FF
Configure TX power
Return:FA 0B Return:FA 0B
Send:FD 01 0C baud FF Send:FD 01 0C 09 FF
Configure serial port baud rate
Return:FA 0C Return:FA 0C
Configure sleep time Send:FD 01 0D sleep_time FF Send:FD 01 0D 54 FF
(terminal valid) Return:FA 0D Return:FA 0D
Configure short address of target Send:FD 02 23 dec_addr FF Send:FD 02 23 00 00 FF
network Return:FA 23 Return:FA 23
Configure group number of target Send:FD 01 24 netid FF Send:FD 01 24 00 FF
network Return:FA 24 Return:FA 24
Send:FD 08 25 0A 1C 21
Configure long address of target Send:FD 08 25 dec_mac FF
FE FF 57 B4 14 FF
network Return:FA 25
Return:FA 25
Send:FD 01 26 mode FF Send:FD 01 26 02 FF
Configure system TX mode
Return:FA 26 Return:FA 26
Send:FD 01 27 mode FF Send:FD 01 27 00 FF
Configure data output mode
Return:FA 27 Return:FA 26
Configure the time of opening Send:FD 01 28 time FF Send:FD 01 28 FF FF
centralized network Return:FA 28 Return:FA 28
Configure the rejoin period after
Send:FD 01 29 time FF Send:FD 01 29 05 FF
the terminal node loses the parent
Return:FA 29 Return:FA 29
node
Configure the maximum number
Send:FD 01 30 time FF Send:FD 01 30 05 FF
of rejoin after the terminal node
Return:FA 30 Return:FA 30
loses the parent no
Send:FD 02 31 header FF Send:FD 02 31 A8 8A FF
Configure remote configuration ID
Return:FA 31 Return:FA 31
Send:FD 1A FE 03 FE 5B
Send:FD 1A FE all_info FF 01 0B 0A 09 54 00 00 00 0A
Configure all network parameters
Return:FA FE 1C 21 FE FF 57 B4 14 02 00
FF 05 05 A8 8A FF

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 32


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

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

6.4.4 Network operation command

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

6.5 HEX parameter description

6.5.1 System TX mode

Mode:
0x00 Broadcast (default);
0x01 Multicast;
0x02 Unicast+short address;
0x03 Unicast+long address.

6.5.2 Data output

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.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 33


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

Note: the maximum packet length is 72 bytes

6.5.3 Device type

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.

6.5.4 Network state

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

6.5.5 Network PAN_ID

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

6.5.6 Network short address

Short_Addr: 2 Byte Addresses randomly assigned by the coordinator

6.5.7 MAC address

Mac_Addr: 8 Byte Factory unique physical address, fixed

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 34


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

6.6.8 Parent node network short address

Coor_shortAddr: 2 Byte The short address of the parent node of the current device, it is 0x0000 if the coordinator

6.5.9 Parent node MAC address

Coor_Mac_Addr: 8 Byte Long address of the parent node of the current device

6.5.10 Network group number

Group: Group number range 0x01~0xFF (default 0 means no group, the system broadcasts by default)

6.5.11 Network channel

Channel: channel range 0x0B(11)~0x1A(26)(default 11 channel)


This parameter needs to be configured before joining the network or establishing a network.

6.5.12 TX power

Txpower: TX power level (default 10dBm)


Adjustable range 0~20dbm
This parameter needs to be configured before joining the network or establishing a network.

6.5.13 Serial port baudrate

Baudrate parameter table:

Buad Baudrate Buad Baudrate


01 4800 08 76800
02 9600 09 115200 (default)
03 14400 0A 128000
04 19200
05 38400
06 50000
07 57600
To change the baud rate of serial communication, it takes effect after restarting the device.

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 35


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

6.5.14 Sleep time

sleep_time: (1~60) Sleep wake cycle 1~60 Unit (second)


(61~255) Sleep wake cycle 60+(61-60)*10~60+(255-60)*10 Unit (second)

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.

6.5.15 Saving time of 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.

6.5.16 Centralized network open time

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

Rejoin period: (1~255) Reconnection cycle range 1~255 Unit (minute)

6.5.18 Maximum number of reconnections

Rejoin maxcount: (1~255) Range of Maximum number of reconnections: 1~255 times


Note: After attempting the maximum number of rejoins, if the previous network has not been restored, the previous
network information will be cleared, and the new network is scanned periodically with the Rejoin period. The power
consumption of scanning the new network is higher than restoring the power consumption of the previous network.
Devices with high power consumption requirements need to set the Rejoin period and Rejoin maxcount parameters to a
larger value. The default value is 5.

6.5.19 Remote configuration ID

Remote Header: 0x0000 is to turn off remote configuration, 0x0001~0xFFFF is to turn on remote configuration,
default is 0xA88A(0xA8 0x8A).

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 36


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

6.5.20 Configure all network parameters

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.

6.5.21 Read all network parameters

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.

6.5.22 Terminals of parent node

child_count: Refers to the number of terminal nodes currently managed by the coordinator or router, with a
maximum of 50.

6.5.23 Terminal details of parent node

index: it is the number of terminal, the range is from 0 to child_count-1, 1 byte.


dev_type: it is the device type of terminal, 1 byte.
Short_Addr: it is the network short address of terminal, 2 bytes.
Mac_Addr: it is the MAC address of terminal, 8 bytes.

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

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 37


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

FB 33 3 03 F4 3E F3 7C 21 FE FF 57 B4 14
50ms . . . .
. . . .
. . . .
FB 33 index dev_type Short_Addr Mac_Addr

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 38


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

7 User notice

7.1 Network structure

The network structure of this module is mesh network structure(MESH)

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.

Network structure diagram

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:

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 39


Chengdu Ebyte Electronic Technology Co., Ltd E180-DTU(ZG120-485) User Manual

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

Copyright©2012–2021ChengduEbyte Electronic Technology Co.,Ltd 40

You might also like