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.

CC1352P: How many bytes is the application layer data length supported by Z-stack?

Part Number: CC1352P


Hi TI,

I'm using 1352p to test sending custom data through AF_DataRequest() API, I found that the maximum length of application layer custom data that can be sent is 79 bytes. I want to know the maximum length of custom data supported by z-statck and how it is limited.

SDK:simplelink_cc13x2_26x2_sdk_5_20_00_52

demo: zc_doorlockcontroller_CC1352P_4_LAUNCHXL_tirtos_ccs

           zr_doorlock_CC1352P_4_LAUNCHXL_tirtos_ccs

Best Regards,

Siemin

  • Hi Siemin,

    The MAX_DATA_PACKET_LEN is defined as (MAX_MAC_FRAME_SIZE - MAC_HEADER_FRAME_SIZE - MAC_FOOTER_FRAME_SIZE) in the nwk.h file due to Zigbee IEEE Specifcations.  This equates to 127 - 9 - 2 = 116.  After a further NWK header (8 bytes), NWK AUX header (14 bytes), APS header (8 bytes), and NWK MIC (4 bytes) there are 82 bytes remaining.  If the ZCL header (3 bytes) is removed from custom data then that brings down the number to 79 bytes per packet.  This is a quick estimation, however it shows how and why the data length is limited for each Zigbee message.

    Regards,
    Ryan

  • Hi Ryan,

    Great! I see.

    Thank you for your detailed explanation!

    Regards,

    Siemin