Hi,
I have created a project based on "simple_peripheral_oad_onchip" example project and i am using bTool to connect and start OAD.
Tools used:
SDK: SimpleLink CC2640R2 SDK version 2_30_00_28
CCS: CCS-8.2.0.0
The device possesses OAD reset characteristics and i have a need to write 32-byte to OAD reset characteristics in order to start OAD.
In order to send 32-bytes, i perform the following with the bTool.
i. Connect to the device and send "GATT_ExchangeMTU" command to set the MTU to 251.
ii. Write a 32-byte value to the the OAD reset characteristics.
After doing so, what i could see is that only 30 bytes are properly received at the client end although the length is 32 bytes.
Am i missing something here or is there any option that need to be selected in bTool in order to send more bytes?
I have performed the same test with an android application and it works fine where 32-bytes written to OAD reset characteristics is completely available.
-------------------------------------------------------------------- [199] : <Rx> - 02:06:40.782 -Type : 0x04 (Event) -EventCode : 0x000E (HCI_CommandCompleteEvent) -Data Length : 0x06 (6) bytes(s) Packets : 0x01 (1) OpCode : 0x2022 (HCI_LE_SetDataLength) Status : 0x00 (0) (SUCCESS) Handle : 0x0000 (0) Dump(Rx): 0000:04 0E 06 01 22 20 00 00 00 ...." ... -------------------------------------------------------------------- [200] : <Info> - 02:06:40.891 Device Connected Handle = 0x0000 Addr Type = 0x00 (ADDRTYPE_PUBLIC) BDAddr = F0:F8:F2:CB:72:6D -------------------------------------------------------------------- [201] : <Rx> - 02:06:40.891 -Type : 0x04 (Event) -EventCode : 0x003E (HCI_LE_GenericReportEvent) -Data Length : 0x0B (11) bytes(s) LE Event Code : 0x07 (7) (HCI_LE_DataLengthChangeEvent) LE Event Code : 0x07 (7) (HCI_LE_DataLengthChangeEvent) Handle : 0x0000 (0) MaxTxOctets : 0x00FB (251) MaxTxTime : 0x0848 (2120) MaxRxOctets : 0x001B (27) MaxRxTime : 0x0148 (328) Dump(Rx): 0000:04 3E 0B 07 00 00 FB 00 48 08 1B 00 48 01 .>......H...H. -------------------------------------------------------------------- [202] : <Tx> - 02:07:10.965 -Type : 0x01 (Command) -OpCode : 0xFD82 (GATT_ExchangeMTU) -Data Length : 0x04 (4) byte(s) ConnHandle : 0x0000 (0) ClientRxMTU : 0x00FB (251) Dump(Tx): 0000:01 82 FD 04 00 00 FB 00 ........ -------------------------------------------------------------------- [203] : <Rx> - 02:07:11.012 -Type : 0x04 (Event) -EventCode : 0x00FF (HCI_LE_ExtEvent) -Data Length : 0x06 (6) bytes(s) Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus) Status : 0x00 (0) (SUCCESS) OpCode : 0xFD82 (GATT_ExchangeMTU) DataLength : 0x00 (0) Dump(Rx): 0000:04 FF 06 7F 06 00 82 FD 00 ......... -------------------------------------------------------------------- [204] : <Rx> - 02:07:11.200 -Type : 0x04 (Event) -EventCode : 0x00FF (HCI_LE_ExtEvent) -Data Length : 0x08 (8) bytes(s) Event : 0x0503 (1283) (ATT_ExchangeMTURsp) Status : 0x00 (0) (SUCCESS) ConnHandle : 0x0000 (0) PduLen : 0x02 (2) ServerRxMTU : 0x00F7 (247) Dump(Rx): 0000:04 FF 08 03 05 00 00 00 02 F7 00 ........... -------------------------------------------------------------------- [205] : <Rx> - 02:07:11.215 -Type : 0x04 (Event) -EventCode : 0x00FF (HCI_LE_ExtEvent) -Data Length : 0x08 (8) bytes(s) Event : 0x057F (1407) (ATT_MtuUpdatedEvt) Status : 0x00 (0) (SUCCESS) ConnHandle : 0x0000 (0) PduLen : 0x02 (2) MTU : 0x00F7 (247) Dump(Rx): 0000:04 FF 08 7F 05 00 00 00 02 F7 00 ........... -------------------------------------------------------------------- [206] : <Tx> - 02:07:32.050 -Type : 0x01 (Command) -OpCode : 0xFD96 (GATT_WriteLongCharValue) -Data Length : 0x26 (38) byte(s) ConnHandle : 0x0000 (0) Handle : 0x001E (30) Offset : 0x0000 (0) Value : 01:02:03:04:05:06:07:08:09:10:11:12:13:14:15:16: 17:18:19:20:21:22:23:24:25:26:27:28:29:30:31:32 Dump(Tx): 0000:01 96 FD 26 00 00 1E 00 00 00 01 02 03 04 05 06 ...&............ 0010:07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 ............. !" 0020:23 24 25 26 27 28 29 30 31 32 #$%&'()012 -------------------------------------------------------------------- [207] : <Rx> - 02:07:32.081 -Type : 0x04 (Event) -EventCode : 0x00FF (HCI_LE_ExtEvent) -Data Length : 0x06 (6) bytes(s) Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus) Status : 0x00 (0) (SUCCESS) OpCode : 0xFD96 (GATT_WriteLongCharValue) DataLength : 0x00 (0) Dump(Rx): 0000:04 FF 06 7F 06 00 96 FD 00 ......... -------------------------------------------------------------------- [208] : <Rx> - 02:07:52.357 -Type : 0x04 (Event) -EventCode : 0x00FF (HCI_LE_ExtEvent) -Data Length : 0x06 (6) bytes(s) Event : 0x0519 (1305) (ATT_ExecuteWriteRsp) Status : 0x14 (20) (bleNotConnected) ConnHandle : 0x0000 (0) PduLen : 0x00 (0) Dump(Rx): 0000:04 FF 06 19 05 14 00 00 00 ......... --------------------------------------------------------------------
Thanks,
Arul Christopher