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.

CC2652R: Detect end device lost from coordinator - Zigbee/ Z-Stack

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

In a star network, the end devices keep sending the keep-alive (data request packet) to the coordinator.

When the coordinator is lost (power-off/ down), the end devices get a parent lost notification from the z-stack if 3 data request packet doesn't receives ACK.

Similarly is there a way to identify from the coordinator if the end-device is lost? (Not sending the keep-alive packet for certain time)

Once end-device is lost, attempting to send a command to it will give a failed response. But without sending any commands, can the last seen time of nodes retrieved from stack?

  • Hi Piramma,

    Such a feature is not automatically implemented by the stack, you can use poll control clusters (as described in this SimpleLink Academy Lab) or use the AssocCount API to keep track of the number of associated devices.

    Regards,
    Ryan

  • Since your end devices keep sending the keep-alive (data request packet) to the coordinator, you can implement  your own application logic to keep a record of last seen time of nodes and report end-device lost when any device doesn't send the keep-alive packet for certain time.

  • But the keep-alive is at stack level, I am expecting some notification or api to fetch the status in the coordinator.

    At the end-device, it is the stack which notifies the application.

  • keep-alive is at stack level??? I don’t think Z-Stack has keep-alive at stack level.

  • Piramma is talking about MAC Data Polling, YK may be referring to a method similar to Poll Control Checkins.  Z-Stack currently supports MAC data poll (in the form of a data request) for keepalives by default but indication of MAC data request reception is not accessible from the Z-Stack application.

    Regards,
    Ryan

  • Yes Ryan, I am taking about MAC data polling.

    I found a way to get the associated devices status using AssocGetWithShort(<Network Address>)

    After X min of inactivity the stack will remove the node from associated table. (X configured by End Device Timeout)

    The application can call this to know the end-node status.