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.

[参考译文] CC2640:Cc2640使用2.2.1sdk 发送超过20个字节的数据失败

Guru**** 2461320 points
Other Parts Discussed in Thread: CC2640

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/588459/cc2640-cc2640-uses-2-2-1sdk-to-send-more-than-20-bytes-of-data-failed

器件型号:CC2640

BLE 2.2.1协议栈能否发送多达251字节的用户数据?
我看到了#define MAX_PDU_SIZE 27宏、但现在我只发送21个字节将不起作用、或者发送20个字节。

,cc2640 发送 maxbyte 为20byte?

 最大有效载荷27。 在协议的第六章中、L2CAP 的头端、4个字节、其余23个字节 MTU。  ATT 层将使用1个字节的运算代码、属性字节2的句柄、剩余的20。 剩余的20个字节就是我们所说的20个字节数据的发送。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    尊敬的陈艾文:
    您需要设置 MAX_PDU_SIZE 248并相应地调整堆大小、以便可以发送大于20字节数据的数据包。

    谢谢、
    Sravan