微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI Zigbee设计交流 > 求解!关于child aging 的问题

求解!关于child aging 的问题

时间:10-02 整理:3721RD 点击:

1》终端挂在一个路由上 终端掉线,然后路由那边 nwkNotMyChild_t这个结构体会存储掉线终端的设备信息,可是为什么路由那边读出这个结构体读取不出来,什么原因呢

2》现在1终端,2路由,1协调器  两个路由分别挂在路由那边  终端挂在其中一个路由上,协调器要获取终端设备是否在线

然后终端由于外界因素更换了父节点,我想知道路由那边应该怎么处理终端是否在线更合理   

3》谢谢

1,看你对终端设备掉线时间的设置?

另外你要看下你是通过什么方式对child aging进行计时的。

//======= Child Aging PARENT ROUTER (ZR/ZC) configuration ========
// You can setup a router to support Child Table Aging in 1 of 2 modes of
// operation. The first mode is NWK_PARENT_INFO_ORPHAN_NOTIFICATION and it
// expects end devices to use orphan scan periodically as a means of a keep-alive
// notification to the parent. The other mode is NWK_PARENT_INFO_MAC_DATA_POLL
// which uses the end device's MAC POLL request as the keep-alive notification.
// The first method is preferred for new devices, where the end devices provide
// support for it (which will be manditory in future Zigbee Home Automation
// Specifications).
// The second method is compatible with older end devices without the need for
// specific child aging support.
//
// The method supported by the router (or coordinator) is determined at build time
// by setting zgNwkParentInformation to either NWK_PARENT_INFO_ORPHAN_NOTIFICATION
// or NWK_PARENT_INFO_MAC_DATA_POLL.
//
// End device built with Child Table Aging support both methods, the method is
// determined by the parent and communicated at run-time.
#if ( ZG_BUILD_ENDDEVICE_TYPE )
uint8 zgNwkParentInformation = NWK_PARENT_INFO_UNDEFINED;
#else
uint8 zgNwkParentInformation = NWK_PARENT_INFO_ORPHAN_NOTIFICATION;
#endif

2,更换父设备以后会发送device announce的,协调器应该可以收到。或者节点在重新连接父设备以后发送应用层的数据给协调器,比方说电池电量上报。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top