Read the AW516x zigbee self-organizing network function

The contest in the wireless network is mainly the realization of the networking function, the size of the speed, the length of the distance, etc., we want to be able to low power consumption, long distance, and can quickly set up and deploy? The following tells you the rapid networking of the zigbee network protocol.

The standard zigbee network protocol includes a coordinator, a router, and a terminal node, and establishing a zigbee network requires only a router or a terminal node in addition to a coordinator.

However, different application scenarios require different types of networking structures: point-to-point, star, relay routing, hybrid, and so on. Therefore, it is fast, efficient, stable, convenient and flexible, which is a higher requirement for the networking protocol.

Read the AW516x zigbee self-organizing network function

Figure 1 zigbee network topology

First, the Fastzigbee Agreement

In other words, if any node on the network has peer-to-peer data transmission functions and does not need a coordinator to manage the network, then any node in the network can actively transmit data, so users do not need to pay attention to the specific network structure, obviously will be more easy to use.

Based on this, ZLG Zhiyuan Electronics has accumulated the Fastzigbee transparent transmission peer-to-peer network protocol based on the zigbee protocol stack based on years of practical experience. Its characteristics are as follows:

Start zero delay without waiting for network access

Large node capacity, theoretically, the node capacity is up to 65535

3-wire serial port full transparent transmission mode, customizable data format

Quickly implement dynamic configuration and self-organizing network functions without secondary development

Quickly add routing, a ready-to-use intelligent routing algorithm to quickly recover communications.

Read the AW516x zigbee self-organizing network function

Figure 2 Fastzigbee protocol features

Second, self-organizing network implementation

The Fastzigbee protocol has provided a good foundation for networking, so can you provide better support in deployment and construction?

Of course, ZLG Zhiyuan Electronics has added self-organizing network functions in the Fastzigbee protocol to simplify the complicated development process of wireless products. The following takes the AW516x series transparent transmission module as an example to provide engineers with two ways to achieve it.

In the self-organizing mode, the host module automatically selects the PANID and channel number that are not used to form a separate network, and can automatically assign a unique local network address to the slave module. When the slave module is used, no configuration operation is required after the self-organizing network function is enabled. The slave module can communicate with the host after joining the network.

1, hardware I / O control

(1) The host module has two workflows, which are controlled by the JOIN pin (IO1) and the DETECT pin (IO2).

1 When the JOIN pin is low, the host module works in networking mode. At this time, the host module allows the slave module to join the network. When the JOIN pin goes high, the host module enters the normal working process. Modules can no longer join the network.

2 When the module detects that the DETECT pin has a low level greater than 3S, the host module works in the reacquisition network parameter mode. At this time, the host module will randomly generate a new PANID (0x0000~0xFFFF) and channel number (11~26). And detect whether the newly generated PANID and channel number have been used by other networks. If there is already a network in use, regenerate. After the host module regenerates the PANID and channel number, all the slaves under the host need to be required. Perform network access operations.

Read the AW516x zigbee self-organizing network function

Figure 3 Host module networking workflow

(2) The slave module has two working modes, one is the network application, and the other is the network application, and the working mode is determined by the level state of the JOIN pin.

1 When the JOIN pin is low level and the low level duration is below 3S (short low level), the slave module works in the network application state;

2 When the JOIN pin is low level and the low level duration is above 3S (long and low level), the slave module works in the unwinding application state; if the JOIN pin is high, the slave module uses the storage. The PANID and channel number enter the normal working state.

Read the AW516x zigbee self-organizing network function

Figure 4 Slave module network access process

2, software instruction configuration

In addition to the IO port control host, the host module allows the slave to join the network. You can also use the command to enable the host to allow the slave to join the network.

Table 1 Host allows the slave to join the network command 1

3 bytes (protocol flag) 1 byte 2 bytes 1 byte (end of frame)

AB BC CDE6 allows to join the network open window time (S) AA

The window time allowed to join the network is that after the host is allowed to join the network command, the host starts accepting the network access request from the slave. After the window is reached, the host no longer accepts the network access request from the slave. After the window time is over, the host Enter normal working conditions.

In addition, the instruction can also query the slave information stored by the host module, query the status of the master and slave, and so on.

Third, the test case

All of the following operations are based on the zigbee evaluation board of Guangzhou Zhiyuan Electronics Co., Ltd.: AW516x Demo Board

Read the AW516x zigbee self-organizing network function

Figure 5 zigbee evaluation kit

step:

(1) The evaluation board 1 is used as a host module, and the evaluation board 2 is used as a slave module;

(2) Pull the JOIN pin (IO2) of the evaluation board 1 to a low level, and the host is in a state of allowing the slave to join;

(3) Touch the short part of the JOIN pin (IO2) of the evaluation board 2 to a low level, and the low level duration is below 3S. The slave module works in the network application state. If there are multiple slave boards, they can be short. Connect to IO2 for network access.

(4) After the network is completed, the slave returns to the normal high-level working state, and the JOIN pin (IO2) of the evaluation board 1 is pulled back to the high level, and the host module enters the normal working process.

Communication test:

Connect to the PC and open two serial port debugging assistants for transparent data transmission.

Read the AW516x zigbee self-organizing network function

Figure 6 communication test

Vitamin B12 E-cigarette

This is a kind of healthy vape, zero nic, and is beneficial for the body.

Features of Disposable Vitamin B12 E-cigarette
1. Mini Colorful charming disposable pen;
2. Various flavors for your choice;
3. Could also use for thin and medium CBD oil;
4. Custom logo & Package;
5. No leaking, no burning
6. Top Filling by hand and oil filling machine

vitamin b12 vape pens no nic, vitamin e cig b12, vitamin b12 vape pens, vitamin e-cigarette kit, vitamin e-cigarette without nic

Ningbo Autrends International Trade Co.,Ltd. , https://www.supervapebar.com