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.

CC2530使用AF_DataRequest发送数据,每次发送数据的长度最大是多少?

我在终端通过AF_DataRequest( &SampleApp_Periodic_DstAddr, &SampleApp_epDesc,SAMPLEAPP_PERIODIC_CLUSTERID, 10 , ((uint8 *)&(uartbuf2)),  &SampleApp_TransID,  AF_DISCV_ROUTE, AF_DEFAULT_RADIUS ) == afStatus_SUCCESS )这个函数发送uartbuf[]这个数组,但是只有当数组长度小于20时,才能发送成功,请问是否可以设置每次发送数据包的大小,如果可以,请问在哪里设置?

  • 您可以查看之前的帖子  https://www.deyisupport.com/question_answer/wireless_connectivity/zigbee/f/104/t/51309.aspx

    ZigBee芯片物理层单次能够发到空中的数据最长是127个字节,那么处于PHY和MAC和NWK的帧头帧尾,留给应用层也就80几个字节,如果需要加密的话就更少了。如果长度超过单帧能放下的payload的时候,协议栈会自动帮你做分包发送。