Q: FAQ: Using the AF DATA CONFIRM CMD system event in the Z-stack to track acknowledgements (ZigBee

Using the AF_DATA_CONFIRM_CMD system event in the Z-stackTM to track acknowledgements.

The AF_DATA_CONFIRM_CMD system event is received at the application layer when 1 of 3 conditions occur:

  1. When an APS ACK is received (if APS ACK service is being used by passing in AF_ACK_REQUEST as a value for the options field)
  2. When a MAC acknowledgement (next hop acknowledgement) is received
  3. Transmission failed

The acknowledgement is not propagated up to the AF layer, only the event that one is received in the cases of 1) and 2) as mentioned above.

As part of the data confirm structure, the user has access to the endpoint and transaction ID members. The application developer can load the transID parameter as part of the AF_DataRequest() and use the transaction ID from the confirm to track acknowledgements.