background image

E180-ZG120B User Manual

EFR32 2.4GHz ZigBee

SoC wireless module

Summary of Contents for E180-ZG120B

Page 1: ...E180 ZG120B User Manual EFR32 2 4GHz ZigBee SoC wireless module ...

Page 2: ...Configuration mode 11 4 3 Mode switch 11 4 3 1 Command switch 11 4 3 2 Pin switching 11 5 Transmission mode 11 5 1 Data transmission mode 11 5 1 1 Broadcast mode 11 5 1 2 Multicast mode 12 5 1 3 Unicast Mode 12 5 2 Receive data output method 12 5 2 1 Transparent output 12 5 2 2 Data short address 12 5 2 3 Data Long address 12 5 2 4 Data RSSI 12 5 2 5 Data short address RSSI 13 5 2 6 Data long addr...

Page 3: ...ting Power 23 6 6 13 Buad rate 23 6 6 14 Sleep time 24 6 6 15 Storage time of father nodes 24 6 6 16 Centralized network opening time 24 6 6 17 Period of network reconnection after loss of parent node 24 6 6 18 The maximum number of attempts to reconnect 24 6 6 19 Wireless remote configuration ID 24 6 6 20 User gpio parameter 24 6 6 21 User pwm parameter 25 6 6 22 User adc parameter 25 6 6 23 Conf...

Page 4: ...icast in long address form between end device and coordinator 34 7 3 2 Multicast testing 36 7 3 3 Broadcast test 37 8 Secondary development design reference 39 8 1 Mechanical dimensions and pin definitions 39 8 2 Schematic design 41 8 3 Development 41 8 4 Hardware design 41 8 5 Software Programming 42 9 FAQ 43 9 1 Communication range is too short 43 9 2 Module is easy to damage 43 9 3 Bit error ra...

Page 5: ...ital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference in a residential installation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful interference to radio communications However there is no guarantee that interfer...

Page 6: ...uch as ZHA and ZLL Large capacity 256K flash 32K RAM network nodes can be extended to more than 100 Role switch Users can switch freely between the coordinator router end device and sleep end device via UART command TOUCHLINK Support TOUCHLINK network protocol it is mainly used in lighting control which simplifies ZigBee network form It can also establish a simple and stable ZigBee network without...

Page 7: ...evice 1 3 1 End Device The main task of the device is to send and receive messages and other nodes are not allowed to connect with the devices The End device is always in working state and can receive and transmit data at any time The standby current of this device type is about 4 mA 1 3 2 Sleep End Device The Sleep End Device enters the sleep state when there is no data receiving and sending and ...

Page 8: ...to join the network storing network information and having all the functions of routing equipment It s main task is to manage the network record the information of sub nodes forward messages and at the same time the coordinator needs to identify the authority of the end device requesting access to the network 1 4 Application Smart home and industrial sensors Security system and positioning system ...

Page 9: ... 135 Instant power consumption RX current mA 10 Sleep current μA 2 5 Instant power consumption Air data rate bps 250k Air data rate is 250kbps Main parameter Description Remark Distance for reference 1300m Between two points ZigBee network supports routing multi hop function and the transmission distance can be extended by increasing the router Crystal frequency 38 4MHz Protocol Zigbee 3 0 Standar...

Page 10: ...ate a ZLL network or join request 4 PD14 Input The WAKE pin is mainly used to wake up the sleeping terminal It is high level when power is on When the pin is pulled low externally the sleeping terminal device will be woken up 5 PA0 TX Output UART TX pin 6 PA1 RX Input UART RX pin 7 PA2 Input Output Reserve 8 PA4 Input Output Reserve 9 PB11 Input Working mode switching pin When the pull down time i...

Page 11: ...2 Input Output GPIO input output port 2 20 PC7 GPIO3 Input Output GPIO input output port 3 21 PC8 ADC1 Input ADC Detection port 1 22 PC9 ADC2 Input ADC Detection port 2 23 PC10 ADC3 Input ADC Detection port 3 24 PC11 ADC4 Input ADC Detection port 4 25 SWCLK Input Output DBG_SWCLKTCK 26 SWDIO Input Output DBG_SWDIOTMS 27 PF2 PWM0 Output PWM output port 0 28 PF4 PWM2 Output PWM output port 2 29 PF5 ...

Page 12: ...will return 7A 7D 7E character In configuration mode when the serial port of the module receives 2F 2C 2B character the module exits the configuration mode enters the transmission mode and returns 7F 7C 7B character after entering the transmission mode successfully 4 3 2 Pin switching Working mode switch pin PB11 internal configuration pull up resistance input mode power on default high level in a...

Page 13: ...icate that the data has been received after receiving the data 5 2 Receive data output method The receiving data output mode refers to a manner in which the serial port outputs data after the module receives the wireless data 5 2 1 Transparent output If the output mode of the configuration device is transparent output the module will output the original data through the serial port after receiving...

Page 14: ...KE pin is mainly used to wake up the dormant terminal It defaults to a high level when it is powered on When the pin is externally pulled down the dormant terminal device will continue to be awakened When the pin is released externally it will return to high level and enter sleep Sleep time is determined by the duration of the external pull down of this pin for non sleeping devices this pin is mea...

Page 15: ...on 6 3 1 Touch link Introduction Touch link belongs to the standard networking mechanism in ZigBee Light Link ZLL protocol Touch link is a contact connection When two modules are close to each other within a certain range touch link is activated by button or command A ZigBee communication network is established between the two modules The touch link of the ZLL protocol defines an initiator and a t...

Page 16: ...000 0xFFFF The PANID is the network identifier of ZIGBEE 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 end device or router is configured as 0xFFFF it can join any network that already exists on the same channel Local network address Read 0x0000 0xFFFF It is used to distinguish each node in network Each de...

Page 17: ...ger the cycle is the lower the overall power consumption is but the greater the delay of receiving data is Network opening time Read Write 10 2540s It is used to configure the opening and closing of network security During the opening period the device can join the network and during the closing period the device cannot join Lost parent node reconnection period Read Write 1 255 minutes When the pa...

Page 18: ... DATA CMD Actual named ID DATA Actual parameter FF Command terminator Configuration return FA CMD FA fixed head CMD Command ID Return when reading configuring access F7 FF does not exist the information reading configuration format failed Wireless remote reading configuration format add the wireless configuration ID before the instruction format of local serial port mode The default is A8 8A The v...

Page 19: ...t MAC address of father nodes 08 Send FE 08 08 FF Return FB 08 Coor _Mac_Addr Send FE 08 08 FF Return FB 08 0C 46 0C FE FF 9F FD 90 Read network group number 09 Send FE 01 09 FF Return FB 09 group Send FE 01 09 FF Return FB 09 01 Read communication channel 0A Send FE 01 0A FF Return FB 0A channel Send FE 01 0A FF Return FB 0A 0B Read Send power 0B Send FE 01 0B FF Return FB 0B txpower Send FE 01 0...

Page 20: ...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 Read remote local GPIO level 20 Send FE 03 20 GpioId FF Return FB 20 GpioId In Out level Send FE 03 20 00 FF Return FB 20 00 01 01 Read remote local PWM state 21 Command FE 06 21 PWMId FF Return FB 21 PWMId start stop Period Period duty duty Send FE 06 21 00 FF Return FB 21 00 01 0A 3E 63 50 Read local remote...

Page 21: ...nel FF Return FA 0A Send FD 01 0A 0B FF Return FA 0A Configure transmit power Send FD 01 0B txpower FF Return FA 0B Send FD 01 0B 0A FF Return FA 0B Configure serial port baud rate Send FD 01 0C baud FF Return FA 0C Send FD 01 0C 09 FF Return FA 0C Configure sleep time end device valid Send FD 01 0D sleep_time FF Return FA 0D Send FD 01 0D 54 FF Return FA 0D Configure the target network short addr...

Page 22: ...FA 21 Send FD 06 21 00 FF 03 65 02 48 FF Return FA 21 Device restart Send FD 00 12 FF Return FA 12 Send FD 01 12 FF Return FA 12 Restore factory settings Send FD 00 13 FF Return FA 13 Send FD 01 13 FF Return FA 13 Read the delayed printing time of AUX wake up external MCU serial port in wireless receiving state Send FD 01 35 AUX_delaytime FF Return FA 35 Send FD 01 35 04 FF Return FA 35 Read UART ...

Page 23: ...ocol multicast the first byte in the transmission mode is the target network group number 6 6 2 Receiving data output mode 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 Note the maximum package length is 72 6 6 3 Network node type dev_type 0x01 Coordinator 0x02 Router 0x03 End device...

Page 24: ...ical address is fixed 6 6 8 Short address of father nodes Coor_shortAddr 2 Byte Short address of the parent node of the current node If coordinator should be 0x0000 6 6 9 MAC address of father nodes Coor_Mac_Addr 8 Byte The parent node s long address of the current node 6 6 10 Network group number group group Group number range 0x01 0xFF default 0 means no group system default broadcast 6 6 11 Net...

Page 25: ...5 0 Indicates that the terminal will not perform automatic reconnection after losing its parent node 255 Indicates that the network will always be reconnected to restore the previous network and the network clear operation will not be performed Note After the maximum number of rejoin attempts if the previous network has not been restored the previous network information will be cleared The power c...

Page 26: ...04 PF6 Port start stop Start stop channel PWM output 0xFF Start PWM 0x00 Stop PWM period pwm period time Unit 1 1ms Recommended setting range 0x0A 0xFFFF Period1 High 8 bits of period Period2 Low 8 bits of period If period 0x0352 Then Period1 0x03 Period2 0x52 duty pwm duty cycle time Unit 1 1ms Can be set from 0x0A 0xFFFF duty1 Indicates the upper 8 bits of duty cycle duty2 Indicates the lower 8 ...

Page 27: ...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 Node type 03 Network status 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 01 Channel 0B Transmitting power 0A Baud rate 09...

Page 28: ...s data first pull down the AUX pin to wake up the external MCU and then delay 4ms to output the serial port data to the external MCU 6 6 28 Configure serial port wake up hold time Uart_holdtime The unit of 1 255 is 10ms the default parameter is 100 that is the serial port will keep waking up for 100 10ms after waking up and then going to sleep after 1000ms 6 6 29 Configure endpoint information End...

Page 29: ...firmware version number Firmware_version EF 32 02 EF 32 means EFR32 chip 02 means firmware version number 7 Quick start 7 1 Quickly build ZigBee network Quickly and easily establish a ZigBee network via PC software The steps are as follows 1 Connect Zigbee ad hoc module via USB to UART converter Open host computer software E180 ZG120B Setting select Com port and set baud rate as 115200 default the...

Page 30: ... the coordinator node so the factory default end device node type needs to be changed to the coordinator before establishing the network 4 After the node type is successfully written modify the ZigBee network required for establishing some network parameters you can also use the default value without modifying the parameters Modify the channel network PANID and transmit power After modifying the p...

Page 31: ...e Restart and the message box prompts Module restart successful 6 After the module restarts the transfer mode is entered by default At this time click Enter Configuration Mode again the message box prompts Enter the configuration status successfully read parameters successfully It can be seen that the parameters read out are the previously modified parameters indicating that the network parameters...

Page 32: ...2 Quickly join a ZigBee network 1 Open software E180 ZG120B Setting choose port number and set the serial port baud rate open the serial port 2 After the serial port is opened first click Enter Configuration Mode the message box prompts Enter the configuration status successfully read parameters successfully The main network parameters include the node type defaults to the end device the channel 1...

Page 33: ...to be joined click Write network parameters The message box prompts Write parameters successfully 4 Click Module Restart the message box prompts Module restart is successful click Enter configuration mode the message box prompts Enter configuration status is successful read parameters successfully confirm whether the read PAN ID and transmit channel parameters are Modified value before 5 Select th...

Page 34: ...ew ZigBee network 7 3 ZigBee Network communication test 7 3 1 Unicast test 7 3 1 1 Unicast between end device and coordinator in the form of short address Enter the configuration mode configure the target network address and modify the target network address of the coordinator to the local short address 0xFCFA of the end device The destination network address of the end device is 0 by default 0 is...

Page 35: ...nsmission mode can the communication be realized Input the data to be sent in the sending area click send and the received data can be seen in the end device node message box 3 Similarly End device unicast to Coordinator 7 3 1 2 Unicast in long address form between end device and coordinator 1 Before communication enter the configuration mode first configure the target MAC address The coordinator ...

Page 36: ...s is configured the transmission mode needs to be configured Change the network address short address to MAC address and then write the parameters again At this time the target address is configured to unicast in the form of MAC address 3 After completing the above parameter configuration click to enter the transmission mode communicate in the transmission mode ...

Page 37: ...roup ID 5 is assigned to the end device 2 For example if the coordinator is the sender click enter configuration mode to enter the fixed point networking select the multicast mode and the message box will prompt under multicast mode all nodes with the same group number in the network will receive multicast data modify the target group number to 5 and then write the parameter and the message box wi...

Page 38: ...nges the network group number to 4 and writes the parameter At this time because the network group number is not 5 the coordinator multicast data cannot be received 7 3 3 Broadcast test 1 For example when the coordinator broadcasts click enter configuration mode enter fixed point networking select broadcast mode and then write parameters The message box prompts write parameters successfully ...

Page 39: ...t 2012 2020 Chengdu Ebyte Electronic Technology Co Ltd 38 2 Enter the transmission mode the message box will prompt enter the transmission mode successfully and then broadcast data communication at this time all nodes in the network will receive data including the sending node ...

Page 40: ... Output Configurable general IO port See EFR32MG1 datasheet 5 PA0 Input Output Configurable general IO port See EFR32MG1 datasheet 6 PA1 Input Output Configurable general IO port See EFR32MG1 datasheet 7 PA2 Input Output Configurable general IO port See EFR32MG1 datasheet 8 PA4 Input Output Configurable general IO port See EFR32MG1 datasheet 9 PB11 Input Output Configurable general IO port See EFR...

Page 41: ... IO port See EFR32MG1 datasheet 24 PC11 Input Output Configurable general IO port See EFR32MG1 datasheet 25 SWCLK Input Output DBG_SWCLKTCK configurable general IO port See EFR32MG1 datasheet 26 SWDIO Input Output DBG_SWDIOTMS configurable general IO port See EFR32MG1 datasheet 27 PF2 Input Output Configurable general IO port See EFR32MG1 datasheet 28 PF4 Input Output Configurable general IO port ...

Page 42: ...nce Users can download our compiled hex files directly or change and implement their own functions based on the original code Program download interface definition Pin J LINK Interface VCC VCC PF0 SWCLK PF1 SWDIO GND GND 2 Test board There is no test board yet 8 4 Hardware design It is recommended to use a DC stabilized power supply The power supply ripple factor is as small as possible and the mo...

Page 43: ...c interference around the module that will greatly affect the performance It is recommended to keep them away from the module according to the strength of the interference If necessary appropriate isolation and shielding can be done Assume that there are traces with large electromagnetic interference high frequency digital high frequency analog power traces around the module that will greatly affe...

Page 44: ...wer Due to antenna quality or poor matching between antenna and module 9 2 Module is easy to damage Please check the power supply source ensure it is 2 0V 3 6V voltage higher than 3 6V will damage the module Please check the stability of power source the voltage cannot fluctuate too much Please make sure antistatic measure are taken when installing and using high frequency devices have electrostat...

Page 45: ...2020 Chengdu Ebyte Electronic Technology Co Ltd 44 About us Technical support support cdebyte com Documents and RF Setting download link www ebyte com Tel 86 28 61399028 Fax 028 64146160 Address BuildingB5 MouldIndustrialPark 199 XiquAve WestHigh techZone Chengdu 611731 Sichuan China ...

Page 46: ...en the radiator your body 2 7 Antennas This radio transmitter E180 ZG120B has been approved by Federal Communications Commission to operate with the antenna types listed below with the maximum permissible gain indicated Antenna types not included in this list that have a gain greater than the maximum gain indicated for any type listed are strictly prohibited for use with this device Antenna No Ope...

Reviews: