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.

CC2540EMK-USB: BTool Establish link fails intermittently with (Message Is Missing Bytes to Process)

Part Number: CC2540EMK-USB
Other Parts Discussed in Thread: CC2540, CC2640R2F

I have (had) been successfully using BTool v1.41.16  for OAD testing for several days. I don't think I changed anything, but started fighting a failure to establish a link with BTool for several hours, so I started to write this post.

The error was:  

--------------------------------------------------------------------

[10] : <Error> - 10:48:00.002
Could Not Convert All The Data In The Following Message
(Message Is Missing Data Bytes To Process)
--------------------------------------------------------------------

In order to provide a clean log, I cleared the log, (re)scanned, (re)established a link, but Establish Link succeeded.

Today it failed again. Clearing the log is not helping...

Successful link Log:

[1] : <Tx> - 04:42:11.264
-Type : 0x01 (Command)
-OpCode : 0xFE04 (GAP_DeviceDiscoveryRequest)
-Data Length : 0x03 (3) byte(s)
Mode : 0x03 (3) (All)
ActiveScan : 0x01 (1) (Enable)
WhiteList : 0x00 (0) (All)
Dump(Tx):
0000:01 04 FE 03 03 01 00 .......
--------------------------------------------------------------------
[2] : <Rx> - 04:42:11.273
-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 : 0xFE04 (GAP_DeviceDiscoveryRequest)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 04 FE 00 .........
--------------------------------------------------------------------
[3] : <Rx> - 04:42:21.518
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x04 (4) bytes(s)
Event : 0x0601 (1537) (GAP_DeviceDiscoveryDone)
Status : 0x00 (0) (Success)
NumDevs : 0x00 (0)
Dump(Rx):
0000:04 FF 04 01 06 00 00 .......
--------------------------------------------------------------------
[4] : <Tx> - 04:42:24.525
-Type : 0x01 (Command)
-OpCode : 0xFE09 (GAP_EstablishLinkRequest)
-Data Length : 0x09 (9) byte(s)
HighDutyCycle : 0x00 (0) (Disable)
WhiteList : 0x00 (0) (Disable)
AddrTypePeer : 0x00 (0) (Public)
PeerAddr : B0:B4:48:D7:C9:04
Dump(Tx):
0000:01 09 FE 09 00 00 00 04 C9 D7 48 B4 B0 ..........H..
--------------------------------------------------------------------
[5] : <Rx> - 04:42:24.547
-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 : 0xFE09 (GAP_EstablishLinkRequest)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 09 FE 00 .........
-----------------------------------------------------------

Today it failed again...
Dump(Rx):
0000:04 FF 06 7F 06 00 05 FE 00                      .........
--------------------------------------------------------------------
[6] : <Rx> - 10:47:59.079
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x04 (4) bytes(s)
 Event          : 0x0601 (1537) (GAP_DeviceDiscoveryDone)
 Status         : 0x30 (48) (The User Canceled The Task)
 NumDevs        : 0x00 (0)
Dump(Rx):
0000:04 FF 04 01 06 30 00                            .....0.
--------------------------------------------------------------------
[7] : <Tx> - 10:47:59.121
-Type           : 0x01 (Command)
-OpCode         : 0xFE09 (GAP_EstablishLinkRequest)
-Data Length    : 0x09 (9) byte(s)
 HighDutyCycle  : 0x00 (0) (Disable)
 WhiteList      : 0x00 (0) (Disable)
 AddrTypePeer   : 0x00 (0) (Public)
 PeerAddr       : B0:B4:48:D7:C9:04
Dump(Tx):
0000:01 09 FE 09 00 00 00 04 C9 D7 48 B4 B0          ..........H..
--------------------------------------------------------------------
[8] : <Rx> - 10:47:59.170
-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         : 0xFE09 (GAP_EstablishLinkRequest)
 DataLength     : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 09 FE 00                      .........
--------------------------------------------------------------------
[9] : <Info> - 10:47:59.980
Device Connected
Handle = 0x0000
Addr Type = 0x00 (Public)
BDAddr = B0:B4:48:D7:C9:04
--------------------------------------------------------------------
[10] : <Error> - 10:48:00.002
Could Not Convert All The Data In The Following Message
(Message Is Missing Data Bytes To Process)
--------------------------------------------------------------------
[11] : <Rx> - 10:47:59.972
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x13 (19) bytes(s)
 Event          : 0x0605 (1541) (GAP_EstablishLink)
 Status         : 0x00 (0) (Success)
 DevAddrType    : 0x00 (0) (Public)
 DevAddr        : B0:B4:48:D7:C9:04
 ConnHandle     : 0x0000 (0)
 ConnRole       : 0x06 (6) (Observer Peripheral)
 ConnInterval   : 0x0000 (0)
 ConnLatency    : 0xE800 (59392)
 ConnTimeout    : 0x0003 (3)
Dump(Rx):
0000:04 FF 13 05 06 00 00 04 C9 D7 48 B4 B0 00 00 06 ..........H.....
0010:00 00 00 E8 03 00                               ......
--------------------------------------------------------------------
[12] : <Info> - 10:48:00.033
Device Disconnected
Handle = 0x0000
Addr Type = 0x00 (Public)
BDAddr = B0:B4:48:D7:C9:04
--------------------------------------------------------------------
[13] : <Rx> - 10:48:00.028
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x06 (6) bytes(s)
 Event          : 0x0606 (1542) (GAP_TerminateLink)
 Status         : 0x00 (0) (Success)
 ConnHandle     : 0x0000 (0)
 Reason         : 0x3E (62) (Failed To Establish)
Dump(Rx):
0000:04 FF 06 06 06 00 00 00 3E                      ........>
--------------------------------------------------------------------

Any clues for the clueless.

  • Hello Scott,

    I've notified our BTool development team with the log and will update when I hear back.

    Best wishes
  • Hi,

    The latest BLE stack uses BTool v1.41.17. Do you have another CC2640R2F LaunchPad that you can flash HostTest project to use with BTOOL instead of the CC2540 dongle?

    Here is the User Guide (after downloading the SDK) for using the latest BTOOL:
    file:///C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/docs/blestack/btool_user_guide/BTool_Users_Guide/index.html#creating-a-connection-between-the-cc2640r2f-launchpad-and-a-peripheral-device

    Best wishes