Ebyte Z2530-2G4-20 User Instruction Manual
Ebyte Z2530-2G4-20 User Instruction Manual

Ebyte Z2530-2G4-20 User Instruction Manual

Wireless data transceiver

Advertisement

EBYTE Wireless Data Transceiver
E800-DTU(Z2530-2G4-20)
ZigBee Ad Hoc Network
User Instruction Manual
This manual may change with the continuous improvement of the product. Please refer to the latest version of the instruction.
Chengdu Ebyte Electronic Technology Co., Ltd. reserves all rights of final interpretation and modification of this manual.
1

Advertisement

Table of Contents
loading

Summary of Contents for Ebyte Z2530-2G4-20

  • Page 1 User Instruction Manual This manual may change with the continuous improvement of the product. Please refer to the latest version of the instruction. Chengdu Ebyte Electronic Technology Co., Ltd. reserves all rights of final interpretation and modification of this manual.
  • Page 2: Brief Introduction

    1. Introduction 1.1 Brief introduction E800-DTU(Z2530-2G4-20) is a wireless data transceiver based on ZigBee technology with function of transparent transmission, protocol transmission, AT configuration, etc. Wireless data transceiver working as a communication medium, as well as the fiber, microwave, the same line, has a certain scope of application: it provides some special conditions in the...
  • Page 3 networking end device and the router automatically searches and joins the network. Automatically reconnect when losing network. When intermediate node in network is lost, other networks automatically join or maintain the original network. (Isolated nodes automatically join the Network original network, non-isolated nodes maintain the original network.) self-healing When the coordinator is lost and non-isolated nodes exist in the original network, the coordinator can join the network again or coordinator of the original network PAN_ID set by the same user join...
  • Page 4: Installation Dimension

    2. Installation Dimension 2.1 Pin description Pin NO. Name Function Description UART interface/ Standard RS-232&485 interface/ 3.81mm terminal block Power supply interface Screwing power supply interface PWR-LED Power LED Red, lit when the power is on TX-LED Transmit LED Yellow, blinks when sending data RX-LED Receive LED Yellow, blinks when reveiving data...
  • Page 5 2.2 Dimension...
  • Page 6: Power Interface Definition

    3. Interface definition 3.1 Power interface definition Users can choose ① the VCC and GND terminal power supply, E800-DTU(Z2530-2G4-20) can use 8~ 28V DC power supply, but it is recommended to use 12V or 24V DC power supply. 3.2 RS485 interface definition E800-DTU(Z2530-2G4-20) uses RS485 as communication protocol.
  • Page 7: Function Module

    4. Function module 4.1. Operating mode Data communication Mode Node type Description display mode Data format can be Coordinator Serial data will be transmitted to modules not in sheep by broadcasting. configured by command: Mode 1 1 Display Mac address of (Transparent Router Serial data will be transmitted to coordinators by point to point.
  • Page 8: Quick Start

    5. Quick Start ★ Note: programming can only be carried on in a specific mode(see above), if fails, please confirm the work mode. Notes 【Construct network】: ①.Connect Zigbee ad hoc module via USB to UART converter. ②.Open host computer software “Zigbee_Setting_V1.1”, select Com port and set baud rate as 115200(default), then open port;...
  • Page 9 ④.Select node type as coordinator, write in parameter. Wait the coordinator to start constructing network and users can check module parameter. Set network parameter:(when PAN ID is FFFF, it is automatic PAN ID) Read parameter when network is constructed:...
  • Page 10 ⑤.Select another module, set it as the router or end device following the same steps (module is set as end device when leave factory (default),no need to set again, in this experiment it is end device )。...
  • Page 11 【Communication test】: ①.Click “fixed networking”of the coordinator and end device of the host computer. Corresponding info. is available to be viewed. Coordinator: End device: ②. For users’ convenience to observe, in this experiment it is HEX transmitting mode. If the device address is unknown, please input corresponding mac address and click get network address. The short address of coordinator is 0.
  • Page 12 ③.Input random content in these 3 modes, click start. Transparent transmission: From coordinator to end device: From end device to coordinator: Network address: From coordinator to end device:...
  • Page 13 From end device to coordinator: MAC address: From coordinator to end device: From end device to coordinator: Multicast:...
  • Page 14 6. User Command Set For the convenience of users, E800-DTU(Z2530-2G4-20) has two command formats, AT and HEX, default HEX. In this mode, user can transmit “+++” with serial port assistant to be in temporary AT command mode, then can configure with AT command and exit AT command mode by transmitting “AT+EXIT”.
  • Page 15 6.1 HEX command Set Description Format Example Transmit:FE 01 01 FF Transmit:FE 01 01 FF Read device type Return:FB dev_type Return:FB 02 Transmit:FE 01 02 FF Transmit:FE 01 02 FF Read network state Return:FB nwk_state Return:FB 01 Transmit:FE 01 03 FF Transmit:FE 01 03 FF Read network PAN_ID Return:FB pan_id...
  • Page 16 Description Format Example Command:FE 04 22 addr 22 FF Read remote /local PWM Return:FB 22 addr period duty1 FE 04 22 FFFF 22 FF state duty2 duty3 duty4 duty5 Read remote /local ADC Command:FE 04 23 addr pin FF FE 04 23 FF FF 01 FF state Return:FB 23 addr adc_value 6.2 HEX Parameter Description...
  • Page 17 Network group no. group: 1~99(default 1) Network chananel channel: 11~26(default 11) Transmission power txpower: txpower contrast with PA / without PA txpower power (dBm) txpower power (dBm) -3 / 16 2.5 / 20 -1.5 / 17 4.5 / 20 (default) 0 / 19 Serial baudrate baud:...
  • Page 18 GPIO contrast gpiox GPIO P0_0 P0_1 P0_2 P0_3 P0_4 P0_5 P0_6 P2_0 P2_1 P2_2 For example: When gpio parameter is 2,the pin is P0_2 When gpio parameter is 8,the pin is P2_1 (2)GPIO input/output state in/out: input output (3)GPIO state value(configuration input state invalid) level:...
  • Page 19 Peripherals addr parameter Peripherals address (1) addr: FFFF inquire/configure local info 0~FFF8 inquire/configure info of whose network address is addr FFFE、FFFD、FFFC inquire/configure info of which received broadcasting data ---FFFE broadcast to all modules ---FFFD broadcast to free modules(except sleeping modules) ---FFFC broadcast to coordinators and routers All information (1)all_info:...
  • Page 20 HEX communication description Command format description (Note:It is applicable only to the nodes in mode 3 or coordinator in mode 2) Command(COM)1Byte Length(LEN)1Byte Data(DATA) DATA Parameter description DATA parameter description: (1)Broadcasting data(content to be sent) command:01+type+data parameter description:type 01:mode 1 ——broadcast to all modules 02:mode 2 ——broadcast to free modules(except sleeping modules)...
  • Page 21 transmit:AT+DEV=? return:DEV= type<CR><LF> Parameter: type C coordinator R router E terminal e.g:AT+DEV=C Default:DEV=E AT+EXIT Function:exit temporary AT command(valid when pull low P1_6 pin to be in AT mode) Format: configure transmit:AT+EXIT return:+OK<CR><LF> e.g:AT+EXIT AT+MODE Function:inquire /configure operating mode Format: Inquire transmit:AT+MODE=? return:MODE=type<CR><LF>...
  • Page 22 0bit :transmitter‘s Mac address’ 1bit :transmitter‘s short address’ 2bit :RSSI value of message shortest path e.g:AT+RMODE=0 default:RMODE=0 AT+NWK Function:inquire network state Format: inquire transmit:AT+NWK=? return:NWK=nwk_state<CR><LF> Parameter:nwk_state 0 no network 1 existing network e.g:AT+NWK=? AT+PANID Function:inquire /configure network PANID Format: inquire transmit:AT+PANID=? return:PANID=panid<CR><LF>...
  • Page 23 AT+SHORT_ADDR Function:inquire /configure local network address Format: inquiry transmit:AT+SHORT_ADDR =? return:SHORT_ADDR=shortaddr<CR><LF> Parameter:shortaddr 0000-FFFF network short address e.g:AT+SHORT_ADDR=? AT+MAC_ADDR Function:inquiry/configure network PANID Format: inquiry transmit:AT+MAC_ADDR=? return:MAC_ADDR=macaddr<CR><LF> Parameter:macaddr 8 Byte MAC address(unique IEEE ID) e.g:AT+MAC_ADDR=? AT+COOR_SHORT_ADDR Function:inquiry father node network short address Format:...
  • Page 24 Format: inquiry transmit:AT+GET_SHORT_ADDR=macaddr return:GET_SHORT_ADDR=shoraddr<CR><LF> Parameter:macaddr 8 Byte MAC address(unique IEEE ID) shoraddrt short address e.g:AT+GET_SHORT_ADDR=4B805A3D25741200 AT+GROUP Function:inquiry/configure network group no. Format: inquiry transmit:AT+GROUP=? return:GROUP=group<CR><LF> configure transmit:AT+GROUP=group return:+OK<CR><LF> Parameter:group(0~99) Local group no. e.g:AT+GROUP=group Default:GROUP=1 AT+CH Function:inquiry/configure communication channel Format: inquiry transmit:AT+CH=? return:CH=ch<CR><LF>...
  • Page 25 configure transmit:AT+TXPOWER=txpower return:+OK<CR><LF> Parameter:txpower(0~4) transmission power e.g:AT+TXPOWER=4 Default:TXPOWER=4 AT+UART Function:inquiry/configure baudrate Format: inquiry transmit:AT+UART=? return:UART=baud<CR><LF> configure transmit:AT+UART=baud return:+OK<CR><LF> Parameter:baud(0~15) serial baudrate e.g:AT+UART=9 Default:UART=9 AT+SLEEP Function:inquiry/configure sleep mode (valid for terminal) Format: inquiry transmit:AT+SLEEP=? return:SLEEP=sleep<CR><LF> configure transmit:AT+SLEEP=sleep return:+OK<CR><LF> Parameter:sleep 0 close sleep mode 1~250 open sleep mode,time is 1~250 seconds e.g:AT+SLEEP=0 Default:SLEEP=0...
  • Page 26 transmit:AT+SLEEP=data_time return:+OK<CR><LF> Parameter:data_time 0~120 data storage time,unit: second e.g:AT+DATA_TIME=30 Default:DATA_TIME=30 AT+SOFT_ID Function:inquiry/configure soft id Format:inquiry transmit:AT+SOFT_ID=? return:SOFT_ID=soft_id<CR><LF> Parameter:soft_id software id e.g:AT+SOFT_ID=? AT+RESET Function:reset Format:configure transmit:AT+RESET return:+OK<CR><LF> e.g:AT+ RESET=? AT+RESTORE Function:restore factory settings Format:configure transmit:AT+RESTORE return:+OK<CR><LF> e.g:AT+RESTORE=? AT+GPIO_PUT Function:configure remote/local GPIO input/output mode Format:configure transmit:AT+GPIO_PUT=addr,gpiox,inout return:+OK<CR><LF>...
  • Page 27 e.g:AT+GPIO_PUT=1AC0,5,0 AT+RGPIO_PUT Function:read remote/local GPIO input/output mode Format: configure transmit:AT+RGPIO_PUT=addr,gpiox return:RGPIO_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 e.g:AT+RGPIO_PUT=1AC0,5 AT+GPIO_LEVEL Function:read remote/local GPIO input/output mode Format: configure transmit:AT+GPIO_LEVEL=addr,gpiox,level return:+OK<CR><LF>...
  • Page 28 gpiox (0~9) GPIO port number input 0 output number 1 input number level 0 high level 1 low level e.g:AT+RGPIO_LEVEL=1AC0,5 AT+PWM Function:configure remote/local GPIO input/output mode Format: configure transmit:AT+PWM= addr,period,duty1, duty2,duty3,duty4,duty5 return:+OK<CR><LF> Parameter:addr 0000~FFF8 remote short address device FFFF local device period (unit 1 = 62.5ns) 0~65535 cycle duty1...
  • Page 29: User Instruction

    AT+ADC Function:read remote/local ADC input amount Format: read transmit:AT+ADC=addr,adcx return:ADC=addr,val<CR><LF> Parameter:addr 0000~FFF8 remte short address device FFFF local device adcx (0~6) ADC channel val (0~3300) current acquisition voltage value,unit: mV e.g:AT+ADC=1AC0,5 7. User Instruction 7.1.Network role and notice Description Module uses Zigbee ad hoc networking, consisting of one coordinator and random other devices(routers and end-devices) It has self-organization, self-routing and network multi-hopping function (By default the network depth is 5, there are 20 son nodes and 6 son router nodes in total)
  • Page 30: Network Structure

    When network keys are not the same the network can not be joined. The module network key of the module remains open, the user can not get the correct air data via software packet capture . All devices in the network have opened broadcast function. Multiple devices broadcasting at the same time or a single device broadcasting at a higher frequency will lead to a serious network congestion.
  • Page 31 8. Practical application Fields The data transceiver of CDEBYTE is applied for all kinds of point to point, one point to multiple points wireless data transmission system, such as smart home, Internet of things transformation, power load monitoring, distribution network automation, hydrological and hydrological forecasting, water pipe network monitoring, urban street lamps Monitoring, air defense alarm control, railway signal monitoring, centralized control of railway water supply, oil supply pipe network monitoring, GPS system, remote meter reading, electronic crane, automatic reporting, seismic forecasting, fire prevention,...
  • Page 32 9. Note 1. Please keep the warranty card of the equipment which includes the factory number (and important technical parameters) and is important for user's future maintenance and new equipment. 2. Transceiver during the warranty period, if the quality of the product itself rather than man-made damage or lightning and other natural disasters caused by damage, enjoys free warranty;...
  • Page 33: Important Statement

    10. Important statement 1. CDEBYTE reserves the right of final interpretation and modification of all the contents of this manual. 2. As the hardware and software products continuously improving, this manual may subject to change without notice, please refer to the latest version. 3.

This manual is also suitable for:

E800-dtu

Table of Contents