当前位置:网站首页>ZigBee networking has never been so simple!

ZigBee networking has never been so simple!

2022-06-09 18:01:00 Guoguo

Want to use ZigBee, Want to network , I don't want to see what to do with complex networking protocols ? It's enough to read this one !

ZigBee The predecessor was 1998 Year by year INTEL、lBM And other industrial giants “Homer flite” technology , As China's Internet of things is entering the fast lane of development ,ZigBee It is gradually accepted by more and more users in China . But there are still many challenges in development , For example, how to maximize ZigBee Networking advantages ?

ZigBee The main feature of the technology is its strong ability to support ad hoc networks , Strong self recovery ability , therefore , For downhole positioning , Parking lot location , Outdoor temperature and humidity collection , Applications such as pollution collection are very attractive .

chart 1 ZigBee In smart parking applications

Build a complete ZigBee The network consists of two steps : Network initialization 、 Nodes join the network . There are two steps to join the network : Connect to the network through the coordinator and connect to the network through the existing parent node .

chart 2 ZigBee Network topology

1、 Network initialization process :

● Determine the network coordinator ;

●  Perform the channel scanning process ;

●  Setting up network ID.

2、 Nodes join the network through the coordinator :

●  Find the network coordinator ;

●  Send association request command (Associaterequest command);

●  Wait for the coordinator to process ;

●  Send data request command ;

●  Reply to the networking confirmation .

3、 Nodes join the network through existing nodes

ZLG Zhiyuan electronics is based on Silicon Lab EFR32MG Chip design ZM32 series ZigBee modular , Give full play to ZigBee Protocol advantages , combination ZLG Zhiyuan electronics has accumulated innovation in the wireless industry , Three different networking modes can be provided for customers .

Manual networking

chart 3 Manual networking flow chart

Configure network parameters :

●  Select work type : The coordinator should first save the configuration parameters , Become the first physical device in the network ;

●  Configure channel number ;

●  Configure the network number (PAN ID);

chart 4 Set module configuration submission and saving respectively

When the local address of the device becomes non 0xFFFF when , The device is successfully connected to the network .

chart 5 The routing and terminal equipment are successfully connected to the network

chart 6 Test case

Common ad hoc network

chart 7 General ad hoc network flow chart of master and slave modules

chart 8 Configure the module work type

chart 9 Enable the ad hoc networking function

Control coordinator networking

Where the coordinator is located DEMO Board Found on the S2, Press at least 3 Seconds later , Then observe DEMO Board On STATE LED Whether from flashing 4 Next , Turn to blink 2 Next ;( If it still flashes 4 Next , Please press again S2 3 second );

Where the coordinator is located DEMO Board Found on the S3, Keep pressing and don't let go ,STATE LED From flashing 2 Next , Turn to blink 1 Next ; At this point, the coordinator allows new devices to join the network ;

chart 10 The control coordinator allows network access

Use the configuration tool to obtain device information , The coordinator has automatically set the unique network number information ;

chart 11 The coordinator sets up the network PAN ID

chart 12 Control routing / Terminal equipment networking

  • ●  On route / Where the terminal equipment is located DEMO Board Found on the S3, Press at least 100ms Let go ;

  • ●  Observe DEMO Board On STATE LED Whether from flashing 4 Next , To blink 3 Next , Last blink 2 Next ;

  • ●  If it still flashes 4 Next , Check that the coordinator keeps pressing the button S3;

chart 13 Module information of successful network establishment

here , Use the configuration tool to obtain device information , The local address has been automatically set , Indicates that the network is successfully established .

The user only needs to modify the target network address as required , The data will be sent to the device corresponding to the address .

chart 14 Common self-service network test example

Fast ad hoc network

chart 15 Master and slave module fast ad hoc network flow chart

chart 16 Configure the module work type and enable fast ad hoc networking

chart 17 The coordinator allows new devices to join the network

  • ●  At this time, the coordinator is required to Demo Board Find the button on the S3;

  • ●  If you keep pressing the coordinator's S3, You can always allow new devices to join the network , Release the button , Routing devices and terminal devices cannot join the network ;

  • ●  When the coordinator is allowed to join , Both routing and terminal can join the network , Wait until the local address becomes non 0xFFFF when , This indicates that the device is successfully connected to the network ;

chart 18 Network information generation , The network is built

By reading the information, it is found that the coordinator has issued the network number to the intra network routing and terminal module , The enabling module generates a locally unique address , Fast ad hoc network completion .

chart 19 Test case

Different networking methods have their own advantages and disadvantages , Different networking operation modes have certain differences , With the help of ZLG Zhiyuan electronics provides interface configuration software , It can help users quickly realize networking operation .

ZM32 It also has a variety of communication parties 、 Data encryption and other advantages , At present, the supporting Evaluation Kit has been fully stocked , Data transmission test can be realized quickly 、 Networking test 、 Customer concerns such as distance testing , Help customers quickly evaluate selected solutions .

原网站

版权声明
本文为[Guoguo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206091737474535.html