Callback on non ZCL commands like leave and link status

Hi,

I'm trying to use two nRF52840DK as Zigbee routers.
I have the following setup,

Software

  • Application: Home Assistant
  • SDK:           nRF5 SDK for Thread and Zigbee v4.1.0

The network contains two routers R1 and R2. At some point, I remove R1 with a leave request. Then R1 leaves the network sending a "leave" message to the broadcast address.

I would like to trigger a callback when the broadcasted leave message is received by R2.
In general, I would like to be able to parse commands that are not ZCL commands. The problem is that the endpoint specific and device callbacks are able to parse only ZCL commands. The "zigbee_default_signal_handler(bufid)" provides the signal "ZB_ZDO_SIGNAL_LEAVE_INDICATION", but unfortunately, it's called only when R1 is a child of R2.

Do you have any suggestions on how to proceed?

Best regards,
Valerio

Parents
  • Hello Valerio,

    Unfortunately, as you say, the ZB_ZFO_SIGNAL_LEAVE_INDICATION only triggers if the node that is leaving is the child of the node you are monitoring. 

    I believe that the only way to figure out whether a node is still part of the network or not is to parse the neighbour table of all nodes, and see what nodes that are missing from the last time you checked.

    Best regards,

    Edvin

Reply
  • Hello Valerio,

    Unfortunately, as you say, the ZB_ZFO_SIGNAL_LEAVE_INDICATION only triggers if the node that is leaving is the child of the node you are monitoring. 

    I believe that the only way to figure out whether a node is still part of the network or not is to parse the neighbour table of all nodes, and see what nodes that are missing from the last time you checked.

    Best regards,

    Edvin

Children
No Data
Related