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.

RTOS/CC2652R: Optimized z-stack 2_20_00_06, use the ZDP Data Confirm in TI-RTOS.

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

Tool/software: TI-RTOS

1,fix "zstack.h" and "zstacktask.c", add member "zstack_zdoSendCnf_t" to every "ZDO Interface Request Structures". This member contains a AF-Data-Confirm callback function and its parameter pointer.

/*
 * Structure of ZDO Send
 */
typedef struct _zstack_zdoSendCnf_t
{
    /** Function pointer of zdo send confirm callback,added by Luoyiming **/
    zstack_AfCnfCb_t* afCnfCB;
    /** param of confirm callback,added by Luoyiming **/
    void *param;
}zstack_zdoSendCnf_t;

2, add member "transID" and "seqNum" into "ZDO Interface Request Structures". After calls ZDP send fuction such as "Zstackapi_ZdoSimpleDescReq" or "Zstackapi_ZdoActiveEndpointReq" in file "zstackapi.h", the transID and ZDP_SeqNum will be written back to "ZDO Interface Request Structures".

  • If don't want to set AF Data Confirm callback. set afCnfCB = NULL.
  • Hey Aries,

    Thanks for sharing recommendations for optimizing and creating the best Zigbee solution possible with the TI community. We've noticed some deficiencies for the AF data confirmation and are actively trying to optimize this for our customers. I have forwarded this to our software development team, and will evaluate these changes in determining if this should be something we will use and implement into future Z-Stack versions.

    Best,
    Sean
  • Thanks,

    In TI-RTOS, zigbee device can be maked by Endpoint. Every Endpoint can be considered as Process/Task/Thread. Every Endpoint could send its own ZDP Command and wait its response. It could also wait ZDO Response after receives SUCCESS message from ZDO's AFdata confirm.