This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
1.2.2a的协议栈提供了两种aging 的方法,一种是发orphan 一种是发data request。 取决于父节点上zgNwkParentInformation 的取值
zgNwkParentInformation = NWK_PARENT_INFO_MAC_DATA_POLL 使用 data request
zgNwkParentInformation = NWK_PARENT_INFO_ORPHAN_NOTIFICATION; 使用 orphan notification
默认使用orphan notification
在ZGlobals.c 中 有一段代码 注释,上面讲得很详细:
//======= 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.