zigbee 更换协调器后终端不能直接加入网络
时间:10-02
整理:3721RD
点击:
cc2530 跑的TI的2.5.1a 协议栈,终端和协调器 panid 写死了,信道 组号也是固定的,有A、B两个协调器,程序完全一样都有NV_RESTORE,首先,只给A 上电,那么终端(有NV_RESTORE)很快加入网络中。但此时若把A 断电,B上电后(PANID与A相同),终端不会自动连接上B,重启后可以连上B。求解,再这样的情况下,不重启,怎么让终端加入B协调器。
编译了NV_RESTORE之后,节点断电后会保存之前的网络信息
若是您想加入B协调器,则需要清除NV保存的网络信息。根据官网的说明
"If the application would like to force a "new" join, the application should set the ZCD_STARTOPT_DEFAULT_NETWORK_STATE bit in the ZCD_NV_STARTUP_OPTION NV item before calling this function. "New" join means to not restore the network state of the device. Use zgWriteStartupOptions() to set these options
[zgWriteStartupOptions(ZG_STARTUP_SET, ZCD_STARTOPT_DEFAULT_NETWORK_STATE);]
