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.

CC2640R2F: 如何一次传输100个字节的数据?

Part Number: CC2640R2F

simplelink_cc2640r2_sdk_5_30_00_03

CCS V11.1

使用blestack中的simple_peripheral例程,默认一次只能传输最大20字节的数据,想传输100个字节,如何设置?

已做过如下设置,没有成功。

1、调整MAX_PDU_SIZE的值 :   

#define MAX_PDU_SIZE 251

2、调整建议PDU的值:

 #define APP_SUGGESTED_PDU_SIZE 251 //default is 27 octets(TX)

 #define APP_SUGGESTED_TX_TIME 2120 //default is 328us(TX)

并调用

HCI_LE_WriteSuggestedDefaultDataLenCmd(APP_SUGGESTED_PDU_SIZE, APP_SUGGESTED_TX_TIME);