Ebyte E800-DTU, Z2530-485-27 User Manual

Page 1
ZigBee Ad Hoc Network Wireless Modem
E800-DTU(Z2530-485-27) User Manual
Chengdu Ebyte Electronic Technology Co.,Ltd.
Page 2
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 1
1. Introduction
1.1. Product Introduction
The E800-DTU (Z2530-485-27) is a ZigBee-based wireless modem with various functions such as transparent transmission, protocol transmission, and AT configuration etc. As a communication medium, wireless data transmission modem has certain scope of application same as fiber, microwave and bright line. It provides real-time, reliable data transmission of monitoring signals in private networks under special conditions, featuring low cost, convenient installation and maintenance, strong diffraction ability, flexible networking structure and long coverage, and suitable for the occasions with many points while scattered and complex geographical environment. It can be connected to data terminals such as PLC, RTU, rain gauge and level gauge.
1.2. Features
All core components are original imported, Compared with the current imported wireless modem, it features the most
advanced, the smallest and has the best price.
Different transmit power are available, and all technical indicators meet European industrial standards. With a temperature compensated crystal, the frequency stability is better than ±2ppm. Operating temperature range: -40 to +85 DEG C, adapt to the harsh working environment, the real industrial products. All aluminum alloy casing, compact size, easy installation, good heat dissipation; perfect shielding design, good
electromagnetic compatibility and strong anti-interference ability.
Multiple protection functions such as reverse power protection, over-current protection, and antenna surge protection greatly
increase the reliability of the radio.
Powerful software features, all parameters, such as power, frequency, address ID, etc., can be programmed. Built-in watchdog, and precise time layout, once an exception occurs, the module will automatically restart, and can continue
to work according to the previous parameter settings.
Page 3
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 2
1.3. Characteristics
No.
Characteristics
Description
1
Role switching
The user can use the serial port command to let the device switch between the three types of coordinator, router and terminal.
2
Automatic networking
Supports power-on automatic networking. The coordinator automatically builds up the network by power, and the terminals and routers automatically search and join the network.
3
Network self-healing
Lost network automatic reconnection function. The network intermediate node is lost, and other networks automatically join or maintain the original network. (The isolated node automatically joins the original network, and the non-isolated node maintains the original network.) The coordinator is lost and there are non-isolated nodes in the original network. The coordinator can join the network again or the coordinator of the original PAN_ID set by the same user can join the original network.
5
Data retention time
setting
In the state of the coordinator and router, the user can set the data storage time and use it in conjunction with the terminal in the sleep mode to save the data of the terminal device and send the data to the terminal after the terminal wakes up. Save up to 3 pieces of data, if it is exceeded, automatically clear the first data! After the data is saved, the data heap is automatically cleared.
6
Automatic resend
In single broadcast(point transmission) mode, when the device fails to send to the next node, it automatically retransmits every message three times.
7
Automatic routing
The module supports network routing function. Routers and coordinators carry network data routing functions, and users can form multi-hop networks.
8
Support encryption
protocol
The module uses AES 128-bit encryption to change network encryption and anti-listening. Users can change the network key by themselves, and the devices with the same network key can communicate normally.
9
Support Serial Port
Configuration
Module built-in serial instructions, users can configure (view) the parameters and functions of the module through the serial instructions.
10
Multi-type data communication
Supports all-network broadcast, multicast and on-demand (single broadcast) functions. Several transmission methods are also supported in broadcast and single broadcast modes, please refer to the details.
11
Multiple working mode
selection
It supports three working modes: transparent transmission mode, semi-through mode, protocol mode, and user can switch freely.
12
Channel change
Supports 16 channel changes from 11 to 26 (2405~2480MHZ), and different channels correspond to different frequency bands.
13
Network PAN_ID change
Any switch of the network PAN_ID, the user can customize the PAN_ID to join the corresponding network or automatically select the PAN_ID to join the network.
14
Serial Port Baud Rate
Change
The user can set the baud rate up to 1M, default digit is 8 bits, stop bit is 1 bit, no parity bit.
15
Short address collection
The user can find the corresponding short address according to the module MAC address (unique, fixed) that has joined the network.
16
Instruction format
switching
This module supports AT command and HEX command, which are easy to configure.
17
Module reset
The user can reset the module through the serial port command.
18
One-click Recovery Baud
Rate
This module supports one-button recovery of baud rate. This function can be used when the user forgets the baud rate. The default baud rate is 115200.
19
Restore factory settings
Users can restore the factory settings of the module through serial port commands.
1.4. Serial Products
SN.
Model Number
RF Chip
Frequency
Hz
Air Data Rate
bps
Power
dBm
Interface
Distance
km
Antenna Interface
1
E800-DTU
(Z2530-485-27)
CC2530
2.4G
250K
27
RS485
2.5
SMA-K
2
E800-DTU
(Z2530-485-20)
CC2530
2.4G
250K
20
RS485
1.0
SMA-K
The E18 modules can communicate with the above model
Page 4
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 3
2. Installation Size
2.1. Department instructions
Pin No.
Name
Function
Description
1
3.81mm Terminals
Communication interface
power interface
Standard RS-485 interface and crimped power interface
2 PWR-LED
Power Indicator
Red, always on when the power is turned on
3 TX-LED
Sending indicator
Yellow, flashing when sending data
4 RX-LED
Receiving indicator
Yellow, flashing when receiving data
5 LINK-LED
Connection indicator
Red, be off when connected to the network, always on when there is no network.
6 RUN-LED
Running lights
Red, system operation instructions, extinguish means normal operation, constant light means running error.
7
Baud Rate Reset Switch
Tact Switch
Press and reset the baud rate(115200)
8 Antenna interface
SMA-K interface
External thread, 10mm long, characteristic impedance 50Ω
Page 5
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 4
2.2. Product Size
单位:毫米
Page 6
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 5
3. Interface Definition
3.1. Power Interface Description
The user needs to use the VCC and GND terminal in to supply power. The E800-DTU can be powered by 8~28V DC. It is recommended to use 12V or 24V DC power supply.
3.2. RS485 Interface Description
The E800-DTU (Z2530-485-27) uses the RS485 communication protocol. How to connect the communication cable, please
select the corresponding interface crimping wire in the 3.81mm terminal block. See below for details.
Pin No.
Definition
Function
Description
1
VCC
Crimp power connector, positive
8~28V DC, 12V or 24V is recommended
2
GND
Crimp power connector, positive
The negative pole of the power supply is connected to the system and the housing.
3
AGND
Common ground interface
It can be connected with the grounding end of external equipment, or can not be processed.
4
RS485-B
Serial port terminal
Externally connected to the B of other RS485 devices
5
RS485-A
Serial port terminal
Externally connected to the A of other RS485 devices
Note: The modem will be poor communication when connecting multiple devices, while connecting a single device is not, please
try to parallel connect 120Ω resistor between 485_A terminal and 485_B terminal.
Page 7
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 6
4. Function
4.1. Working Mode
Mode
Node Type
Description
Data communication
display mode
Mode1
Transparent
transmission mode
Coordinator
Serial data is transmitted to non-sleeping devices in the network through broadcasting.
Data carrier formats can be configured by instructions:
1. Display the mac address of sender
2. 2Display the short address of sender
3. Display the RSSI value of the shortest path of the message Configure display mode
as no display and any one or more display modes
Router
The serial port data is transparently transmitted to the coordinator through on-demand. Note:The end device cannot receive the transparent data
of mode 1 in sleep mode
Terminal
Mode 2
Semi-transparent
mode
Coordinator
The module transmits in a full protocol according to the fixed format of the data transmission.On-demand, broadcast, multicast are available. Please refer to "HEX Data Communication Instructions" for details.
Router
The serial data is transparently transmitted to the coordinator via on-demand.
Terminal
Mode3
Protocol mode
Coordinator
The module transmits in a full protocol according to the fixed format of the data transmission.On-demand, broadcast, multicast are available. Please refer to "HEX Data Communication Instructions" for details.
N/A
Router
Terminal
Note: Only mode 3 can be selected for GPIO function configuration. Any mode can communicate with each other without affecting each other.
4.2. Introduction to protocol mode communication
No.
Usage
method
Description
1
Broadcast
In the case of joining the network, users can broadcast on the whole network according to the instructions (divided into three broadcast modes) 1Broadcast mode 1 ——The message is broadcast to all devices in the network.
2Broadcast mode 2 ——The message is broadcast to devices that only receive on (except sleep mode). 3Broadcast mode 3 ——The message is broadcast to all full-featured devices (routers and coordinators).
2
Group
broadcast
In the case of joining the network, users can multicast all the non-dormant devices in the network.
3
point
broadcast
In the case of joining the network, users can communicate with devices on the network in a short address according to the command (divided into three broadcast modes) 1Transparent transmission——No information carried
2Short address method——Short address as the carried information 3MAC address method——MAC address as the carried information
Note: Please refer to the “HEX Data Communication Instructions” for details.
Page 8
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 7
5. Quick Start
5.1. Use Connection Diagram
ZigBee ad hoc network module is simple and easy to use. In order to let users be familiar with this products quickly, this
section will guide users to configure and communicate in various modes through simple configuration. The default operation mode is mode 3 (protocol mode).
5.2. Network formation and communication
Page 9
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 8
No.
Note
1
Create network】: Connect the Zigbee-DTU through USB to RS485 board. Open the PC software "Zigbee_Setting_V1.1", select the port number, set the serial baud rate (default 115200),
and open the serial port.
Click Read Parameters‘’ to read module parameters
Select the node type as the coordinator and write the parameters. Wait for the coordinator to start creating the
network, and the user can view the module parameters.
Configure network parameters(PAN ID is automatic when it’s FFFFFF)
Page 10
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 9
Read parameters after the network is built:
Choose another module and set it as a router or terminal according to the same steps (the module default as a terminal, users don’t need to configure, our test is a terminal).
Page 11
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 10
2
Communication test】: Click “fixed point networking” of coordinator and terminal in the host computer. The corresponding
communication information can be shown:
Coordinator
Page 12
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 11
Terminal
Point broadcast In order to facilitate user’ observation, this experiment is HEX transmission mode. If you do not know the device address, please enter the corresponding MAC address and click to get the network address. The short address of coordinator is 0.
In three modes, enter any content in the sending area and click send. transparent transmission
Coordinator to terminal
Page 13
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 12
Terminal to coordinator:
Network address Coordinator to terminal
发送端网络短地址
Page 14
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 13
Terminal to coordinator:
MAC address Coordinator to terminal
Coordinator to terminal
Group broadcast
发送端网络短地址
发送端网络短地址
发送端 MAC 短地址
Page 15
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 14
Broadcast:The broadcast only performs in mode one, the whole network broadcast mode experiment, and users test other modes themselves.
Data function transmission needs to embody its own characteristics in the case of multi-node network, users can test themselves!
6. User instruction set
For user convenience, the E800-DTU (Z2530-485-27) module uses two instruction formats, the AT command format and the HEX command format. This DTU defaults as the HEX command mode, in this mode, serial assistant is used to send +++ instructions and enter the temporary AT instruction mode. AT command can be used to configure, input AT + EXIT to exit temporary AT command.
Note
1 Prompt information for serial data format error HEX command format F7 FF AT command format +ERROR<CR><LF> 2 Prompt information for coordinator device building network HEX command format FF FF AT command format Builded network<CR><LF>
3 Prompt information for devices joining the network HEX command format FF AA AT command format Joined network<CR><LF>
4 Prompt information for module device has no network or lost network HEX command format FF 00 AT command format No network<CR><LF> 5 <CR> means0x0D 6 <LF>means0x0A
Page 16
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 15
6.1. HEX Instruction Set
Instruction description
Instruction format
Instruction examples
Read device type
SendFE 01 01 FF ReturnFB dev_type
SendFE 01 01 FF ReturnFB 02
Read network status
SendFE 01 02 FF ReturnFB nwk_state
SendFE 01 02 FF ReturnFB 01
Read network PAN_ID
SendFE 01 03 FF ReturnFB pan_id
SendFE 01 03 FF ReturnFB 02 F4
Read network key
SendFE 01 04 FF ReturnFB key
SendFE 01 04 FF ReturnFB 11 13 15 17 19 1B 1D 1F 10 12 14 16 18 1A 1C 1D
Read short address of local network
SendFE 01 05 FF ReturnFB ShortAddr
SendFE 01 05 FF ReturnFB F2 EF
Read local MAC address
SendFE 01 06 FF ReturnFB Mac_Addr
SendFE 01 06 FF ReturnFB 89 6C 50 09 00 4B 12 00
Read short address of parent network
SendFE 01 07 FF ReturnFB Coor_shortAddr
SendFE 01 07 FF ReturnFB 00 00
Read MAC address of parent node
FE 01 08 FF ReturnFB Coor _Mac_Addr
SendFE 01 08 FF ReturnFB 20 39 EA 0A 00 4B 12 00
Read Network Group Number
SendFE 01 09 FF ReturnFB group
SendFE 01 09 FF ReturnFB 01
Read communication channel
SendFE 01 0A FF ReturnFB channel
SendFE 01 0A FF ReturnFB 0B
Read transmitting power
SendFE 01 0B FF ReturnFB txpower
SendFE 01 0B FF ReturnFB 04
Read serial port baud rate
SendFE 01 0C FF ReturnFB baud
SendFE 01 0C FF ReturnFB 09
Read sleep state (terminal node is valid
SendFE 01 0D FF ReturnFB sleep_time
SendFE 01 0D FF ReturnFB 05
Read the save time of node data (router and coordinator are valid)
SendFE 01 0E FF ReturnFB 1E
SendFE 01 0E FF ReturnFB 1E
Read all data of the device
SendFE 01 FE FF ReturnFB all_info
SendFE 01 FE FF Return:FB 02 01 02 F4 11 13 15 17 19 1B 1D 1F 10 12 14 16 18 1A 1C 1D F2 EF 89 6C 50 09 00 4B 12 00 00 00 20 39 EA 0A 00 4B 12 00 01 0B 04 09 05
Get the short address of any MAC address in the network
SendFE 09 10 Mac_Addr FF ReturnFB shortAddr
SendFE 09 10 AF 99 E9 0A 00 4B 12 00 FF ReturnFB 08 35
Read remote/local GPIO input and output status
Command:FE 04 20 addr gpiox FF ReturnFB 20 addr In/Out
FE 04 20 F9 DE 04 FF
Read remote/local GPIO level
Command:FE 04 21 addr gpiox FF ReturnFB 21 addr In/Out level
FE 04 21 FF FF 04 FF
Read remote/local PWM status
CommandFE 04 22 addr 22 FF ReturnFB 22 addr period duty1 duty2 duty3 duty4 duty5
FE 04 22 FFFF 22 FF Read remote/local ADC status
CommandFE 04 23 addr pin FF ReturnFB 23 addr adc_value
FE 04 23 FF FF 01 FF
Page 17
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 16
6.2. HEX parameter description
6.2.1. Network type
dev_type: 00 coordinator
01 router 02 terminaldefault
6.2.2. Network Status
nwk_state: 00 No network
01 Network exists
6.2.3. Network PAN_ID
pan_id 0000~FFFE fixed network PAN_ID FFFF stochastic network PAN_ID
6.2.4. Network Keys
key 16-bit network key
6.2.5. Network short address
ShortAddr 2 Byte address
6.2.6. MAC address
Mac_Addr 8 Byte address
6.2.7. Parent node network short address
Coor_shortAddr2 Byte address
6.2.8. Parent node MAC address
Coor_Mac_Addr 8 Byte address
6.2.9. Network group number
group Group number range 1~99default 1
6.2.10. Network Channel
channel Channel range 11~26default 11
6.2.11. Transmit power
txpower
Power parameter txpower comparison table without PA/with PA
Page 18
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 17
txpower
power (dBm)
txpower
Power (dBm)
00
-3 / 7 03
2.5 / 24
01
-1.5 / 19
04
4.5 / 27 default
02
0 / 22 05
6.2.12. Serial Port Baud Rate
baud
Baud rate parameters comparison table
baud
Baud rate
baud
Baud rate
00
2400 08
76800
01
4800 09
115200default
02
9600 0A
128000
03
14400
0B
230400
04
19200
0C
256000
05
38400
0D
460800
06
43000
0E
921600
07
57600
0F
1000000
6.2.13. Sleep time
sleep_time 0 Sleep state is offdefault
Others1~250 Sleep mode is turned on. Sleep_time unit S (seconds)
6.2.14. Parent node save time
time Range 0~120default 30),Unit: SSeconds
6.2.15. User gpio parameters
1gpio Port gpiox
User gpio port comparison table
gpiox
00
01
02
03
04
05
06
07
08
09
GPIO
P0_0
P0_1
P0_2
P0_3
P0_4
P0_5
P0_6
P2_0
P2_1
P2_2
For example : When the GPIO parameter is 2, the corresponding pin position is P_2.
When the gpio parameter is 8, the corresponding pin position is P2_1.
2gpio Input and output status
in/out 1 Input status
0 Output status
3gpio state valueInvalid configuration input status
level 0 Low level
1 High level 2 turn
Page 19
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 18
6.2.16. User pwm parameters
1pwm port pwmx
User pwm port comparison table
pwmx
duty1
duty2
duty3
duty4
duty5
GPIO
P0_2
P0_3
P0_4
P0_5
P0_6
2pwm cycle
period(0~FFFF
Cycle time Unit 1 = 62.5ns
3pwm duty cycle time
dutyx0~FFFF):
duty cycle time (Unit 1 = 62.5ns)
6.2.17. User ADC parameters
1adc passageway
adcx
User adc channel comparison table
adcx 0 1 2 3 4 5
6
GPIO
P0_0
P0_1
P0_2
P0_3
P0_4
P0_5
P0_6
2adc state value
adc_state: 0 ADC Enable
1 ADC Turn off 3adc sample value
adc_value: 0~0X0CE4 0~3300 Unit mV
6.2.18. Peripheral addr parameter description
1Peripheral function address
addr
FFFF View/configure local information 0~FFF8 View/configure information of network address addr FFFE、FFFD、FFFC Device view/configure information that can receive broadcasts
---FFFE Broadcast to all devices in the network
---FFFD Broadcast to idle receiving devicesExcept for sleeping devices
---FFFC Broadcast to the coordinator and router
Page 20
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 19
6.2.19. All information
1All information
all_info
Info. identification Info. lengtInfo. location))Info. description
dev_type 1 Byte0 Device type nwk_state 1 Byte1 Network status pan_id 2 Byte2~3)) Network PAN_ID key 16 Byte4~20)) Network key ShortAddr 2 Byte21~22)) Network short address Mac_Addr 8 Byte23~30)) MAC address Coor_shortAddr 2 Byte31~32)) Network short address of parent node Coor_Mac_Addr (8 Byte(33~40)) MAC address of parent node group 1 Byte41)) Network group number channel 1 Byte42)) communication channel txpower 1 Byte43)) Transmit power baud 1 Byte44)) Serial port baud rate sleep_time (1 Byte(45)) sleep state
Examples of detailed parameters
all_info
020102 F411 13 15 17 19 1B 1D 1F 10 12 14 16 18 1A 1C 1DF2 EF89 6C 50 09 00 4B 12 0000 0020 39 EA 0A 00 4B 12 00010B040905
device type 02 terminal Network state 01 already existed in network Network PANID 02 F4 PAN_ID=0X02F4 Network key 11 13 15 17 19 1B 1D 1F 10 12 14 16 18 1A 1C 1D Short address of local network F2 EF Short Address=0XF2EF Local MAC address 89 6C 50 09 00 4B 12 00 Short Address of parent node 00 00Short Address=0X0000 MAC address of parent node 20 39 EA 0A 00 4B 12 00 Network group number 01 Network group number 1 Network channel 0B channel 11 Transmit power 04 Transmit power 4.5dBm Serial port baud rate 09 Baud rate 115200 Sleep time 05 Sleep state is on, sleep time is 5s
Note: Parent node retention time is not included in all information. If you need to configure or query, please use the
corresponding instructions separately.
6.3. HEX data communication description
6.3.1. Command Format Description
Note: Only for all nodes of Mode 3 or coordinators of Mode 2
CommandCOM1Byte
Data LengthLEN1Byte
Data contentDATA
FC
LEN
DATA
Page 21
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 20
6.3.2. Detailed parameter description
DATA parameter description
1Broadcast datadata is the content ready to send
Command01+type+data parameter descriptiontype
01:Broadcast mode 1 ——The message is broadcast to all devices in the network 02:Broadcast mode 2 ——The message is broadcast to devices that only reception on (except sleep mode) .
03:Broadcast mode 3 ——The message is broadcast to all full-function devices(routers and coordinators)
ExampleFC 05 01 02 31 32 33
Example explanationSending HEX data to network broadcast in broadcast mode 20X31 0X32 0X33
2Group braodcast datadata is the content ready to send
Command02+ group+data parameter descriptiongroup 0~99Multicast number of message in group broadcast
ExampleFC 05 02 01 31 32 33
Example explanationSend HEX data to network group number 10X31 0X32 0X33
3Point broadcastsingle broadcastdatadata is the content ready to send
Command03+ type +addr+data parameter description type Coordinator in Mode 2the parameter is invalid and can be set any value
01:Transparent transmission mode(No carry information) 02:Short address mode(Carrying information as a short address) 03:MAC address mode(Carrying information as MAC address)
parameter description addr Network short address valid point broadcast single broadcast address
0x00000xFFF8
ExampleFC 07 03 01 AB CD 31 32 33
Example explanationSend HEX data carrying a short address to a device with a network address of 0XADCD0X31 0X32
0X33
6.4. AT Instruction set
6.4.1. AT+DEV
FunctionQuery/configure device types Format
Query SendAT+DEV= type Return+OK<CR><LF>
Configure SendAT+DEV=?
ReturnDEV= type<CR><LF> Parameter: type
C Coordinator R Router E terminal
ExampleAT+DEV=C
DefaultDEV=E
Page 22
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 21
6.4.2. AT+EXIT
FunctionExit temporary AT command。(It is valid when the P1_6 pin is pulled low to enter the AT command. Formatconfigure
sendAT+EXIT return+OK<CR><LF> example:AT+EXIT
6.4.3. AT+MODE
FunctionQuery/Configure Work Mode Formatquery
sendAT+MODE=? returnMODE=type<CR><LF>
Configure sendAT+MODE=mode return+OK<CR><LF>
Parameters:mode
1 Mode 1 Transparent mode 2 Mode 2 Semi-transparent mode 3 Mode 3 Protocol mode
ExampleAT+MODE=3 DefaultMODE=3
6.4.4. AT+RMODE
FunctionQuery/Configure communication Display Mode Formatquery
sendAT+RMODE=?
returnRMODE=type<CR><LF>
configure
sendAT+RMODE=type
return+OK<CR><LF>
Parameter: rmode1 on 0 off value0-7
0bit Show MAC address of sender 1bit Show short address of sender 2bit Show the RSSI value of the shortest path of the message
ExampleAT+RMODE=0 DefaultRMODE=0
6.4.5. AT+NWK
FunctionQuery device type Formatquery
sendAT+NWK=? returnNWK=nwk_state<CR><LF> Parameter:nwk_state
0 No network
Page 23
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 22
1 network existed
Example:AT+NWK=
6.4.6. AT+PANID
FunctionQuery/configure network PANID Formatquery
sendAT+PANID=? returnPANID=panid<CR><LF>
configure sendAT+PANID=mode return+OK<CR><LF>
parameters:panid
0000-FFFE fixed PANID FFFF random PANID
Example:AT+ PANID=0XA1B2
6.4.7. AT+KEY
FunctionQuery/configure network key Formatquery
sendAT+KEY=? returnKEY=key<CR><LF>
configure sendAT+PANID=mode return+OK<CR><LF>
parameters:key
The network key of 16 Byte
ExampleAT+ KEY=01030507090B0D0F00020406080A0C0D DefaultKEY=01030507090B0D0F00020406080A0C0D
6.4.8. AT+SHORT_ADDR
FunctionQuery local network address Formatquery
sendAT+SHORT_ADDR =? returnSHORT_ADDR=shortaddr<CR><LF> Parameter:shortaddr
0000-FFFF network short address
Example:AT+SHORT_ADDR=?
6.4.9. AT+MAC_ADDR
FunctionQuery/configure network PANID Formatquery
sendAT+MAC_ADDR=? returnMAC_ADDR=macaddr<CR><LF> Parameter:macaddr
8 Byte MAC addressThe only IEEE ID
Page 24
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 23
Example:AT+MAC_ADDR=?
6.4.10. AT+COOR_SHORT_ADDR
FunctionQuery the short address of parent node Formatquery
sendAT+COOR_SHORT_ADDR=? returnCOOR_SHORT_ADDR=macaddr<CR><LF> Parameter:macaddr
8 Byte MAC addressthe only IEEE ID
Example:AT+COOR_SHORT_ADDR=?
6.4.11. AT+COOR_MAC_ADDR
FunctionQuery the MAC address of parent node Formatquery
sendAT+COOR_MAC_ADDR=? returnCOOR_MAC_ADDR=macaddr<CR><LF> Parameter:macaddr
8 Byte MAC addressThe only IEEE ID
Example:AT+COOR_MAC_ADDR=?
6.4.12. AT+GET_SHORT_ADDR
FunctionQuery the short addresses of any MAC device in network Formatquery
sendAT+GET_SHORT_ADDR=macaddr returnGET_SHORT_ADDR=shoraddr<CR><LF> Parameter:macaddr
8 Byte MAC addressThe only IEEE ID shoraddrt The queryed short address of device
Example:AT+GET_SHORT_ADDR=4B805A3D25741200
6.4.13. AT+GROUP
FunctionQuery/configure network group number Formatquery
sendAT+GROUP=?
returnGROUP=group<CR><LF> configure
sendAT+GROUP=group return+OK<CR><LF> Parameter:group0~99
local group number
ExampleAT+GROUP=group DefaultGROUP=1
Page 25
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 24
6.4.14. AT+CH
FunctionQuery/configure Wireless Channel Formatquery
sendAT+CH=?
returnCH=ch<CR><LF> configure
sendAT+CH=ch return+OK<CR><LF> Parameters:ch(11~26
Wireless channel
ExampleAT+CH=11 DefaultCH=11
6.4.15. AT+TXPOWER
FunctionQuery/configure wireless transmit power Formatquery
sendAT+TXPOWER=?
returnCH=txpower<CR><LF> configure
sendAT+TXPOWER=txpower return+OK<CR><LF> Parameter:txpower0~4
transmit powerRefer to the power comparison table for details.
ExampleAT+TXPOWER=4 DefaultTXPOWER=4
6.4.16. AT+UART
FunctionQuery/configure serial port baud rate Formatquery
sendAT+UART=?
returnUART=baud<CR><LF> configure
sendAT+UART=baud return+OK<CR><LF> Parameter:baud0~15
serial port baud rateRefer to the power comparison table for details
ExampleAT+UART=9 DefaultUART=9
6.4.17. AT+SLEEP
FunctionQuery/Configure sleep mode of deviceValid for terminal Formatquery
sendAT+SLEEP=?
returnSLEEP=sleep<CR><LF> configure sendAT+SLEEP=sleep
Page 26
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 25
return+OK<CR><LF> Parameter:sleep
0 Turn off sleep mode 1~250 sleep mode is onSleep time is 1~250s
ExampleAT+SLEEP=0 DefaultSLEEP=0
6.4.18. AT+DATA_TIME
FunctionQuery/configure data save timevalid for router and coordinator Formatquery
sendAT+DATA_TIME=?
returnDATA_TIME=data_time<CR><LF> configure
sendAT+SLEEP=data_time return+OK<CR><LF> Parameter:data_time
0~120 data save timeUnit:S
ExampleAT+DATA_TIME=30 DefaultDATA_TIME=30
6.4.19. AT+SOFT_ID
FunctionQuery firmware version number Formatquery
sendAT+SOFT_ID=?
returnSOFT_ID=soft_id<CR><LF> Parameter:soft_id
firmware version number
Example:AT+SOFT_ID=?
6.4.20. AT+RESET
FunctionDevice reset Formatconfigure
sendAT+RESET
return+OK<CR><LF> Example:AT+ RESET=?
6.4.21. AT+RESTORE
FunctionRestore factory settings Formatconfigure
sendAT+RESTORE
return+OK<CR><LF> Example:AT+RESTORE=?
Page 27
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 26
6.4.22. AT+GPIO_PUT
FunctionConfigure remote/local GPIO input/output mode Formatconfigure
sendAT+GPIO_PUT=addr,gpiox,inout
return+OK<CR><LF> Parameter:addr 0000~FFF8 remote short address device FFFF loval device gpiox (0~9) GPIO port number
input 0 Output status 1 Input status Example:AT+GPIO_PUT=1AC0,5,0
6.4.23. AT+RGPIO_PUT
FunctionRead remote/local GPIO input and output mode Formatconfigure
sendAT+RGPIO_PUT=addr,gpiox
returnRGPIO_PUT=addr,input<CR><LF> Parameter:addr 0000~FFF8 remote short address device FFFF local device gpiox (0~9) GPIO port number input 0 Output state 1 Input state Example:AT+RGPIO_PUT=1AC0,5
6.4.24. AT+GPIO_LEVEL
FunctionRead remote/local GPIO input and output mode Formatconfigure
sendAT+GPIO_LEVEL=addr,gpiox,level
return+OK<CR><LF> Parameter:addr 0000~FFF8 remote short address device FFFF local device gpiox (0~9) GPIO local device level 0 High level 1 Low level 2 turn Example:AT+GPIO_LEVEL=1AC0,5,2
Page 28
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 27
6.4.25. AT+RGPIO_LEVEL
FunctionRead remote/local GPIO input and output mode Format: read
sendAT+RGPIO_LEVEL=addr,gpiox
returnRGPIO_LEVEL=addr,input,level<CR><LF> Example:addr 0000~FFF8 remote short address device FFFF local device gpiox (0~9) GPIO port number
input
0 Output state
1 Input state level 0 High Level 1 Low Level Example:AT+RGPIO_LEVEL=1AC0,5
6.4.26. AT+PWM
Function:Configure remote/local PWM input and output modes Format: Configure
sendAT+PWM= addr,period,duty1, duty2,duty3,duty4,duty5
return+OK<CR><LF> Parameters:addr 0000~FFF8 remote short address device FFFF local device period (Unit 1 = 62.5ns) 0~65535 cycle duty1
0 turn off Others Channel 1 is a square wave with a 50% duty cycle
duty2~ duty5 0~65535 Unit 1 = 62.5ns
The PWM of the channel is closed when the pulse width time of the corresponding channel number is 0 or
greater than the period.
Example:AT+ PWM=1AC0,1000,1,500,500,0,500
6.4.27. AT+RPWM
Function:Read remote/local PWM input and output mode Format: read
sendAT+RPWM=addr
returnRPWM=addr,period,duty1,duty2,duty3,duty4,duty5<CR><LF> Parameter:addr 0000~FFF8 remote short address device FFFF local device period (unit 1 = 62.5ns) 0~65535 cycle
Page 29
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 28
duty1
0 turn off Others Channel 1 is a square wave with a 50% duty cycle
duty2~ duty5 0~65535 Unit 1 = 62.5ns
The PWM of the channel is closed when the pulse width time of the corresponding channel number is 0 or greater
than the period.
Example:AT+RPWM=1AC0
6.4.28. AT+ADC
Function:Read remote/local ADC input Format: read
sendAT+ADC=addr,adcx
returnADC=addr,val<CR><LF> Parameter:addr 0000~FFF8 remote short address device FFFF local device adcx 0~6 ADC channel val 0~3300 Current acquisition voltage value in mV (millivolts)
ExampleAT+ADC=1AC0,5
7. User's Notes
7.1. ZigBee Network Role and Notices
No.
Description
1
This module uses ZigBee network, which consists of a coordinator and any other devices (routers and terminals).
2
It features self-organization, self-routing and multi-hop network. (Default support network depth is 5, total number of sub-nodes is 20, number of sub-routing nodes is 6)
3
The parent node (coordinator and router) can save data for the sleep terminal. The save time can be set by the user (default 30s, range 0~120s).
4
Only the terminal device has a sleep function within 250. The user can set it by itself, and the default is 0 (sleep mode is off). Note: It is recommended that the sleep time must be less than the parent node data save time, otherwise it will affect data reception.
5
Short Address is used in network communication. Note: Short address is randomly allocated when the device joins the network. The long address of the device Mac Address is the only fixed one. If the device does not know the short address, it can search the Short Address in the network through the corresponding instructions according to Mac Address, then to carry out point-to-point communication.
6
The coordinator is unique in the network and the short address is fixed at 0000.
7
If the point broadcast address is FFFF, FFFD, or FFFC, it corresponds to three broadcast modes.
8
When the network parameter PANID is FFFF, it is automatically allocated. If the device PANID is different, it cannot be networked.
9
It cannot join the network if the network key are different. The network keys are all open, users cannot get correct air data through software capture.
10
All devices in the network have broadcasting function on. Multiple devices broadcasting at the same time or broadcasting at a higher frequency of a single device may cause serious network congestion. Please try to avoid this situation.
11
Modules do not need to join this group when group broadcast, and the group broadcast to any group directly according to the communication method. After the group broadcast, the local group number won’t be changed because of different group broadcast number.
12
The PWM function and sleep mode in the network cannot be used at the same time. Please turn off the sleep mode before turning on the pwm function.
13
It can be awaken by serial port after the sleep mode. Remark: In the sleep state, the first frame data awoken by the serial port is invalid.
14
In the ZigBee network communication, the single-packet data transmission period can not be too fast (generally recommended to be more than 1 second), or it may cause data loss. if there’s too much nodes in the network, the too fast broadcast cycle may case the unstable network.
Remark: Please refer to the E18_Software_Datasheet_CN_V2.0Communication Protocol Specificationfor detailed function parameters.
Page 30
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 29
7.2. Network structure
The network structure of this module is a mesh network structure.MESH
The network of the MESH topology has powerful functions. The network can communicate by means of “multi-level hopping”; the topology can also form an extremely complex network; the network also has self-organizing and self-healing functions;
8. Practical applications
Ebyte data Transmitter is suitable for all kinds of point-to-point, point-to-multipoint wireless data transmission systems, such as smart home, IoT renovation, power load monitoring, distribution automation, hydrology and water condition monitoring, water pipe network monitoring, urban street lamp monitoring, air defense alarm control, railway signal monitoring, railway water supply centralized control, oil supply and gas pipeline network monitoring, GPS positioning system, remote meter reading, electronic hanging scale, automatic target reporting, seismic forecasting, fire prevention, environmental monitoring and other industrial automation systems. As shown below:
Page 31
Copyright ©2012–2017, Chengdu Ebyte Electronic Technology Co.,Ltd 30
9. Notice for Usage
1. In some flammable places (such as coal mines) or near explosive dangerous objects (such as detonators for detonation), this
product should not be operated.
2. Suitable DC regulated power supply should be selected, requiring strong anti-high frequency interference ability, small ripple,
and sufficient carrying capacity; it is better to have over-current, over-voltage protection and lightning protection functions to ensure the normal operation of the product..
3. Do not use in working environment beyond the environmental characteristics of product, such as high temperature, humidity,
low temperature, strong electromagnetic field or large dust environment.
4. Don't let the product continuously be in full load state, otherwise it may burn the transmitter.
5. The ground wire of the product should be well connected with the ground wire of the external device (such as PC, PLC, etc.)
and the power supply. Otherwise, it is easy to burn out the communication interface; do not plug or unplug the serial port.
6. When testing the product, it must be connected with a matching antenna or a 50Ω dummy load, otherwise it will easily
damage the transmitter; if the antenna is connected, the distance between the human body and the antenna should preferably exceed 2 meters to avoid injury; do not touch the antenna when transmitting.
7. In different environment it has different transmission distance, which affected by temperature, humidity, obstacle density,
obstacle volume, electromagnetic environment; In order to ensure stable communication, it is recommended to reserve more than 50% communication distance margin.
8. If the measured communication distance is not ideal, it is suggested to improve the communication distance by analyzing the
antenna quality and the installation mode of the antenna. You can also contact support@cdebyte.com for help.
9. When selecting the power supply, pls note to keep 50% of the current margin and the ripple should not exceed 100mV.
10. Important Statement
1. All rights to interpret and modify this manual belong to Ebyte.
2. This manual will be updated based on the upgrade of firmware and hardware, please refer to the latest version.
3. Please refer to our website for new product information.
Technical supportsupport@cdebyte.com Documents and RF Setting download linkhttp://www.ebyte.com/en/ Tel+86-28-61399028 Ext. 812 Fax028-64146160 Webwww.cdebyte.com/en/
AddressInnovation Center B333-D347, 4# XI-XIN Road,Chengdu, Sichuan, China
Loading...