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.

CC2530: CC2530 with Z-Stack

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

I'm using Z-Stack 3.0 for CC2530. Please tell me how to Coordinator demands End Device send KeepAlive message to it?

  • There is no specific KeepAlive message for ZED in Zigbee spec. Do you mean to config polling rate?
  • I'm not sure about that function. My purpose is Parent device periodic checks End Device is alive or not. I see a mode is NWK_PARENT_INFO_MAC_DATA_POLL which uses the end device's MAC POLL request as the keep-alive notification. So could you tell me more detail about this mode?
  • You can find some information about NWK_PARENT_INFO_MAC_DATA_POLL in ZGlobals.c as the followings:

    //======= 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_RTR_TYPE )
    uint8 zgNwkParentInformation = NWK_PARENT_INFO_MAC_DATA_POLL;
    #else
    uint8 zgNwkParentInformation = NWK_PARENT_INFO_UNDEFINED;
    #endif
  • Yes i read it but i don't see any function process that relate to this mode. So could you tell me how this mode work?
  • Polling is ZED does data request to its parent node and NWK_PARENT_INFO_MAC_DATA_POLL means parent node would use polling as acknowledge that ZED is alive. This is handled in Z-Stack kernel and application developer cannot access it.
  • The parent ages out the child after NWK_END_DEV_TIMEOUT_DEFAULT (or END_DEV_TIMEOUT_VALUE from End Device Timeout Request from the child) in zglobals.h and the child stays alive with POLL_RATE from f8wconfig.cfg

    Regards,
    Ryan