使能CHILD AGING后ZED周期性发出OrphanNotification是正常的吗?
协议栈:Z-Stack Home 1.2.2a
CPU:CC2530
请问,使能CHILD AGING后ZED周期性发出OrphanNotification是正常的吗?为什么呢?
(sniff文件见附件)
谢谢
正常的,可以研究下协议栈下面的这段话。
//======= 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
根据这段解释请问我该如何去刷新age域呢?让终端发送ORPHAN_NOTIFICATION?为什么要用这种机制呢?按我的理解只要父节点收到终端的data request就会自动更新该终端的age域吧