Part Number:CC2650STK
Tool/software: Code Composer Studio
Hi, everyone
I am using CC2650STK with BLE_SDK_2.2.2.25. My program is based on simple_peripheral. And I can't send packets with length more then 22 bytes.
I made all the changes as recommended in "SWRU393_CC2640_BLE_Software_Developer's_Guide.pdf":
MAX_PDU_SIZE 255
MAX_NUM_PDU 5
-DBLE_V42_FEATURES=EXT_DATA_LEN_CFG
And I use HCI_LE_WriteSuggestedDefaultDataLenCmd(APP_SUGGESTED_PDU_SIZE , APP_SUGGESTED_TX_TIME);
and HCI_LE_SetDataLenCmd.
Client device (Android) execute GATT_ExchangeMTU().
In BT logs on Android I see, that MTUReq is 251 but MTUResp from Sensortag is 23... It is imaged on attached picture.
And one important thing else, HCI_LE_WriteSuggestedDefaultDataLenCmd return 0x01 (failed)... I don't know why...
Earlier HCI_LE_WriteSuggestedDefaultDataLenCmd returned 0x04 (MSG_BUFFER_NOT_AVAIL), when I used AUTOHEAPSIZE. But now I use HEAPMGR_SIZE=6300.
Why return this function this error? What am I doing wrong?
Thanks in advance,
Karlin Egor