应用场景如下:
移动设备1集成了协调器1,PANID为0x001,移动设备2集成了协调器2,PANID也是0x001,
因为他们两个PAN不在同一地点,所以组网的时候并没有产生PANID冲突事件。
但是由于某种原因,我拿着移动设备1走动,移动到了移动设备2的PAN范围内了,这时候,
两个网络通信互通了,因为我们发送数据是依据PANID和网络地址的,用长地址通信除外,
而且正好他们的子设备也有相同的网络地址,因此我必须给移动设备1下的协调器更新一下
PANID,但是我改变了PANID之后其子设备就由于有同步检测,检测到丢失协调器成为孤儿节点。
问题1:
怎么让子设备还是加入到原来的协调器网络中(改变PANID后)
问题2:
成为孤儿节点后怎么让其加入到其他网络
因为我调试发现是不能再加入其它PAN网络的,除非你之前的协调器恢复了,
ZDO_StartDevice函数代码中有这段注释:
// For devices with RxOnWhenIdle equals to FALSE, any network channel
// change will not be recieved. On these devices or routers that have
// lost the network, an active scan shall be conducted on the Default
// Channel list using the extended PANID to find the network. If the
// extended PANID isn't found using the Default Channel list, an scan
// should be completed using all channels.
// When ApsUseExtendedPanID is commissioned to a non zero value via
// application specific means, the device shall conduct an active scan
// on the Default Channel list and join the PAN with the same
// ExtendedPanID. If the PAN is not found, an scan should be completed
// on all channels.
// When devices rejoin the network and the PAN is not found from