D2106-THGN01 User Manual ZigBee Wireless Module 0
D2106-THGN01_User Manual Contents 1. General introduction........................................................................................................................................................... 1 1.1 Brief introduction......................................................................................................................................................1 1.2 Characteristic function...............................................................................................
D2106-THGN01_User Manual 8.4.23 AT+RGPIO_PUT...................................................................................................................................28 8.4.24 AT+GPIO_LEVEL.................................................................................................................................. 28 8.4.25 AT+RGPIO_LEVEL............................................................................................................................... 28 8.4.26 AT+PWM.......
1. General introduction 1.1 Brief introduction D2106-THGN01 is a small-sized 2.405GHz SMD wireless modules.The space between each pin is 1.27mm. D2106-THGN01 have been put into stable bulk production, they are applicable for various applications (especially smart home). D2106-THGN01 adopts the original CC2530 RF chip of TI, the chip is integrated with 8051 MCU and wireless transceiver. Built-in PA+LNA,the modules are applicable for ZigBee design and 2.405GHz IEEE 802.15.4 protocol.
D2106-THGN01_User Manual and prevent monitoring. Users can change the network key by themselves. Only devices with the same network key can start normal networking communication. Support UART configuration: Module has built-in UART commands, the user can configure (view) the parameters and functions of module via UART command . Communication for various types of data: Support broadcasting, multicasting and unicasting in the entire network.
D2106-THGN01_User Manual The main functions of the router: to allow other devices to join the network, multi-hop routing and to assist communication of its own battery-powered son node end-devices. Typically, the router is expected to remain active, so it must use the main power supply. However, when using the tree group network mode, it allows the routing operate once at an interval of a certain cycle, so battery can be used for power supply.
D2106-THGN01_User Manual down Working temperature(℃) -40 - 85 Frequency(GHz) 2.405 - 2.480 Power consumption TX current(mA) 500 RX current(mA) 33 Sleep current (μA) 2.4 Software is shut down 24.8 25.0 25.4 Receiving sensitivity(dBm) -98 -99 -100 Description Distance for reference 2500 m Protocol ZigBee Packing SMD Connector 1.27mm IC CC2530F256RHAT/QFN40 FLASH 256 KB RAM 8 KB Core 8051 MCU Size 16.0 * 22.
D2106-THGN01_User Manual 3. Mechanical characteristics Pin No. Pin item Pin direction Application 1 GND Ground, connecting to power source referential ground 2 VCC Power supply, must be 2.5-3.6V 3 GPIO9 Input /Output User Control Function Pin GPIO9 4 GPIO8 Input /Output User Control Function Pin GPIO8 5 GPIO7 Input /Output User Control Function PinGPIO7 Used to restore the serial port baud rate.
D2106-THGN01_User Manual Indicate the module access status, low level means the module joins 13 NWK_LED Output 14 NC N.C 15 NC N.C 16 NC N.
D2106-THGN01_User Manual 3, broadcast mode 3 - the message is broadcasted to all full-functional devices (router and coordinator). 2 3 Multicast When joining the network, the user can multicast all the devices (not in sleep) in the entire network.
D2106-THGN01_User Manual P0_5 GPIO5/ADC5/PWM3 User controlled function pin GPIO5/ADC5/PWM3 I/O P0_6 GPIO6/ADC6/PWM4 User controlled function pin GPIO6/ADC6/PWM4 I/O P2_0 GPIO7 User controlled function pin GPIO7 I/O P2_1 GPIO8 User controlled function pin GPIO8 I/O P2_2 GPIO9 User controlled function pin GPIO9 I/O P1_2 NWK_LED To indicate module network joining state, low level O means that module joins network, high level means no network.
D2106-THGN01_User Manual 7.Quick start The ZigBee ad hoc network module is easy to use. In order to allow users to be quickly familiar with modules,this section will guide users to achieve configuration and communication in various modes via a simple configuration. The working mode is mode 3 (protocol mode). The user can pull down the P1.6 pin and conduct the HEX instruction set.
D2106-THGN01_User Manual ④.Select node type as coordinator, write in parameter. Wait the coordinator to start constructing network and users can check module parameter.
D2106-THGN01_User Manual ⑤. 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 )。 2 【Communication test】: ①.Click “fixed networking”of the coordinator and end device of the host computer. Corresponding info is available to be viewed.
D2106-THGN01_User Manual 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.
D2106-THGN01_User Manual ③.Input random content in these 3 modes, click start.
D2106-THGN01_User Manual Transmitter network short address 【Network address】 From end device to coordinator 【MAC address】 From coordinator to end device: Transmitter network short address 【MAC From end device to coordinator】 Transmitter MAC short address 14
D2106-THGN01_User Manual 【Multicast】: Broadcast :broadcast only conduct Mode 1, the entire network conduct broadcast mode experiment, other modes test by themselves ) Data function transmission needs to reflect its own characteristics in the case of multi-node network, the users can test by themselves! 8. User instruction set In order to facilitate user use, D2106-THGN01 ZigBee module uses two instruction formats, namely AT instruction format and HEX instruction format.
D2106-THGN01_User Manual 4 Module device without or lost network will prompt information HEX instruction mode :FF 00 AT instruction mode:No network 5 :0x0D 6 :0x0A 8.
D2106-THGN01_User Manual Command description Command format Command example Read data storage time of the node(valid for Send:FE 01 0E FF Send:FE 01 0E FF router and coordinator) Return:FB 1E Return:FB 1E Read all device data Send:FE 01 FE FF Send:FE 01 FE FF Return:FB all_info 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 Acquire short address of random MAC Send:FE 09 10 Mac_Addr FF Send:FE 0
D2106-THGN01_User Manual 8.2.5. Network short address 8.2.6. MAC address :2 Byte address shortAddr :8 Byte address Mac_Addr 8.2.7 Short address of father nodes Coor_shortAddr 8.2.8. MAC address of father nodes Coor_Mac_Addr: 8.2.11. Power :8 Byte address :range from 1~99(default 1) 8.2.9. Network group number group 8.2.10. Channel :2 Byte address :range from 11~26(default 11) channel txpower table(default 0dBm): txpower power (dBm) txpower power (dBm) 00 -3 03 2.5 01 -1.5 04 4.
D2106-THGN01_User Manual (1)gpio portal table GPIO P0_0 P0_1 P0_2 P0_3 P0_4 P0_5 P0_6 P2_0 P2_1 P2_2 HEX 00 01 02 03 04 05 06 07 08 09 (2)gpio input/output state In/Out: 1 input state 0 output state (3)gpio state value( invalid for input state configuration) level 0 low level 1 high level 2 switch 8.2.16. pwm parameter (1)pwm portal table pwmx duty1 duty2 duty3 duty4 duty5 GPIO P0_2 P0_3 P0_4 P0_5 P0_6 (2)period: period (3)dutyx: unit 62.
D2106-THGN01_User Manual 8.2.19.
D2106-THGN01_User Manual Short address of father nodes: 00 00(Short Address=0X0000) MAC address of father nodes: 20 39 EA 0A 00 4B 12 00 Network group number: 01 Network channel: 0B (channel 11) Transmit power: 04 (transmit power 4.5dBm) Baud rate: Sleep time: 09 (baud rate 115200) 05 (sleep mode starts,sleep time is 5s ) (Notes:Father node reserve time is not listed here, please use corresponding command for configuration and examination.) 8.3. HEX command data communication format 8.3.1.
D2106-THGN01_User Manual 3) Unicast data Command:03+ type +addr+data Parameter description: type 01:transparent transmission mode(no carry message) 02:short address mode(carry message is short address) 03:MAC address mode(carry message is MAC address) Parameter description:addr: network short address valid unicast address 0x0000—0xFFF8) Example:FC 07 03 01 AB CD 31 32 33 Example explanation:HEX data with short address to devices with 0XADCD network address: 0X31 0X32 0X33 8.4 AT Command 8.4.
D2106-THGN01_User Manual Parameters:mode 1 mode 1 (transparent mode) 2 mode 2 (half transparent mode) 3 mode 3 (protocol mode) Example:AT+MODE=3 Default:MODE=3 8.4.4 AT+RMODE Function:Inquire/Configure communication display mode Format:Inquire Send:AT+RMODE=? Return:RMODE=type Configure Send:AT+RMODE=type Return:+OK Parameter: rmode(1:on, 0:off ;Range:0-7 ) 0bit :MAC address 1bit :Short address 2bit :RSSI value of message shortest path Example:AT+RMODE=0 Default:RMODE=0 8.4.
D2106-THGN01_User Manual 0000-FFFE Fixed PANID FFFF Random PANID Example:AT+ PANID=0XA1B2 8.4.7 AT+KEY Function:Inquire/ Configure network key Format:Inquire Send:AT+KEY=? Return:KEY=key Configure Send:AT+PANID=mode Return:+OK Parameter:key 16 Byte network key Example:AT+ KEY=01030507090B0D0F00020406080A0C0D Default:KEY=01030507090B0D0F00020406080A0C0D 8.4.
D2106-THGN01_User Manual Format:Inquire Send:AT+COOR_MAC_ADDR=? Return:COOR_MAC_ADDR=macaddr Parameter:macaddr 8 Byte MAC short address(unique IEEE ID) Example:AT+COOR_MAC_ADDR=? 8.4.12 AT+GET_SHORT_ADDR Function:Inquire the network short addresses of any MAC device Format:Inquire Send:AT+GET_SHORT_ADDR=macaddr Return:GET_SHORT_ADDR=shoraddr Parameter:macaddr 8 Byte MAC Length address(Unique IEEE ID) shoraddrt Short address of inquired device Example:AT+GET_SHORT_ADDR=4B805A3D25741200 8.
D2106-THGN01_User Manual Format:Inquire Send:AT+TXPOWER=? Return:CH=txpower Configure Send:AT+TXPOWER=txpower Return:+OK Parameter:txpower(0~4) Transmitting power Example:AT+TXPOWER=4 Default:TXPOWER=4 8.4.16 AT+UART Function:Inquire/Configure serial port baud rate Format:Inquire Send:AT+UART=? Return:UART=baud Configure Send:AT+UART=baud Return:+OK Parameter:baud(0~15) Serial Port Baud Rate Example:AT+UART=9 Default:UART=9 8.4.
D2106-THGN01_User Manual Send:AT+SLEEP=data_time Return:+OK Parameter:data_time 0~120 Data retention time,Unit:S Example:AT+DATA_TIME=30 Default:DATA_TIME=30 8.4.19 AT+SOFT_ID Function:Inquire software version number Format:Inquire Send:AT+SOFT_ID=? Return:SOFT_ID=soft_id Parameter:soft_id software version number Example:AT+SOFT_ID=? 8.4.20 AT+RESET Function:Device reset Format:Configure Send:AT+RESET Return:+OK Example:AT+ RESET=? 8.4.
D2106-THGN01_User Manual 8.4.23 AT+RGPIO_PUT Function:Read remote/local GPIO input/output mode Format:Configure Send:AT+RGPIO_PUT=addr,gpiox Return:RGPIO_PUT=addr,input 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 8.4.
D2106-THGN01_User Manual 0 High level 1 Low level Example:AT+RGPIO_LEVEL=1AC0,5 8.4.26 AT+PWM Function:Configure remote/local PWM input/output mode Format:Configure Send:AT+PWM= addr,period,duty1, duty2,duty3,duty4,duty5 Return:+OK Parameter:addr 0000~FFF8 Remote short address device FFFF Local device period (1 = 62.5ns) 0~65535 周期 duty1 0 Close Other channel 1 is square wave with duty cycle of 50%. duty2~ duty5 (0~65535 1 = 62.
D2106-THGN01_User Manual Return:ADC=addr,val Parameter:addr 0000~FFF8 Remote short address device FFFF Local device adcx (0~6) ADC Channel val (0~3300) Current acquisition voltage, unit mV (millivolt) Example:AT+ADC=1AC0,5 30
D2106-THGN01_User Manual 9.User instruction 9.1 ZigBee networking role and notice No. Description 1 Module uses Zigbee ad hoc networking, consisting of one coordinator and random other devices(routers and end-devices) 2 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). 3 The father node device (coordinator and router) can save data for the end-devices in sleep.
D2106-THGN01_User Manual MESH network topology network has a powerful function, the network can communicate via "multi-level hopping"; the topology can also form a very complex network; network also has self-organization, self-healing function. Network structure diagram 10. Hardware design It is recommended to use a DC stabilized power supply. The power supply ripple factor is as small as possible,and the module needs to be reliably grounded.
D2106-THGN01_User Manual If necessary, appropriate isolation and shielding can be done. If the communication line uses a 5V level, a 1k-5.1k resistor must be connected in series (not recommended, there is still a risk of damage); Try to stay away from some physical layers such as TTL protocol at 2.4GHz , for example: USB3.0; The mounting structure of antenna has a great influence on the performance of the module.
D2106-THGN01_User Manual Thermal insulation area: temperature is 150~190℃, time is 60~90s,maximum temperature rise is 2.5℃/s; Reflowing area: maximum temperature is 235~245℃, time for above 217℃ is 40~80s; Cooling area: maximum temperature drop is 4℃/s. 12.2 Reflow soldering curve 13. Antenna information Antenna Manufacturer: Shenzhen Raintenna Technology Co.,Ltd Antenna Model: YC-TH-2.
D2106-THGN01_User Manual 14. Product packaging figure This module has been tested and found to comply with part 15.247 requirements for Modular Approval. This module is intended for OEM integrator. The OEM integrator is responsible for the compliance to all the rules that apply to module is integrated.Additional testing and certification may be necessary when multiple modules are used.
D2106-THGN01_User Manual accept any interference received, including interference that may cause undesired operation. FCC RF Radiation Exposure Statement: 1. This Transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. 2. This equipment complies with RF radiation exposure limits set forth for an uncontrolled environment. 3.This equipment should be installed and operated with minimum distance 20cm between the radiator& your body.