Transferred from:InZigBeeHow can I re-join the network after power-saving and power-failure?
Recently encountered a problem inZigBeeIn the network, when the terminal device is powered off, it cannot join the network again.
We can see that a friend on the APBI forum has encountered a problem where the Coordinator is powered off and the terminal device cannot access the network.The reason is as follows:
After the Network Group is complete, turn off the coordinator, and the router will not be added to the Coordinator again. Because of the different panids, The vro is already an independent network (after the network is created by the Coordinator, it is also a common co-vro ). If you re-power on the Coordinator, the panid and the vro cannot establish a network and can only create a network on the other panid, then the two devices are not one network, so the device you 've been on does not respond, because they are not in a network anymore.
Solution: add the NV-RESTORE compilation option.
From this we get a little inspiration, this should be related to the pan ID and NV-RESTORE compilation options.
Therefore, the solution is as follows:
1. Set the pan ID to a fixed value, and add the NV-RESTORE compilation option to power on all device trials;
2. method 1 is not supported. The router device will test the terminal separately. If it can be added, it will be associated with the routing device.
The above two methods are waiting for the experiment and then updated...
Supplement:Nv_initDifferences from nv_restore
Nv_initThe content stored in NV is mainly the configuration parameters of the network or node. during the running of the node, these parameters are rarely changed or almost never changed.Nv_initAll parameters saved by the option can be viewed in the structure zgitemtable.
The content saved by the nv_restore option is mainly the number of statuses during the running of the node. With this feature, the node can be restored to the previous network connection status without radio communication after power loss or reset. Nv_restore stores network-layer database nib, device Association Table, binding table, and route table.