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.

LAUNCHXL-CC2640R2: BTool unrecognized event

Part Number: LAUNCHXL-CC2640R2

I am trying to use BTool with my CC2640R2 running the host_test app from simplelink_cc2640r2_sdk_4_10_00_10, i have loaded the .hex from the blestack folder.

I am initialising the device as peripheral + central and then make the device discoverable and connectable.

My other device is scanning and connecting to it. So far all good.

After the connection is established I can see some events coming from the device that BTool is not able to decode.

Could you please help me to understand where these events are coming from, what they mean and how i could stop them? 

[23] : <Rx> - 03:27:15.229
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x03 (3) bytes(s)
Event : 0x0603 (1539) (GAP_MakeDiscoverable)
Status : 0x00 (0) (Success)
Dump(Rx):
0000:04 FF 03 03 06 00 ......
--------------------------------------------------------------------
[24] : <Info> - 03:27:30.571
Device Connected
Handle = 0x0000
Addr Type = 0x00 (Public)
BDAddr = 00:1A:7D:DA:71:0A
--------------------------------------------------------------------
[25] : <Rx> - 03:27:30.488
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x14 (20) bytes(s)
Event : 0x0605 (1541) (GAP_EstablishLink)
Status : 0x00 (0) (Success)
DevAddrType : 0x00 (0) (Public)
DevAddr : 00:1A:7D:DA:71:0A
ConnHandle : 0x0000 (0)
ConnRole : 0x04 (4) (Peripheral)
ConnInterval : 0x0006 (6)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x0C80 (3200)
ClockAccuracy : 0x01 (1)
Dump(Rx):
0000:04 FF 14 05 06 00 00 0A 71 DA 7D 1A 00 00 00 04 ........q.}.....
0010:06 00 00 00 80 0C 01 .......
--------------------------------------------------------------------
[26] : <Error> - 03:27:33.563
Could Not Convert Some Of The Data In The Following Message
(A Specific Message Handler Is Needed To Process The Data)
--------------------------------------------------------------------
[27] : <Warning> - 03:27:33.573
The Last 9 Bytes In The Following Message Were Not Decoded
(Message Has More Than The Expected Number Of Data Bytes)
--------------------------------------------------------------------
[28] : <Rx> - 03:27:33.561
-Type : 0x04 (Event)
-EventCode : 0x003E (HCI_LE_SpecialMetaDataEvent)
-Data Length : 0x09 (9) bytes(s)
Raw : 81 00 00 1E F8 FF FF FF 1F
Dump(Rx):
0000:04 3E 09 81 00 00 1E F8 FF FF FF 1F .>..........
--------------------------------------------------------------------
[29] : <Error> - 03:27:45.584
Could Not Convert Some Of The Data In The Following Message
(A Specific Message Handler Is Needed To Process The Data)
--------------------------------------------------------------------
[30] : <Warning> - 03:27:45.590
The Last 9 Bytes In The Following Message Were Not Decoded
(Message Has More Than The Expected Number Of Data Bytes)
--------------------------------------------------------------------
[31] : <Rx> - 03:27:45.584
-Type : 0x04 (Event)
-EventCode : 0x003E (HCI_LE_SpecialMetaDataEvent)
-Data Length : 0x09 (9) bytes(s)
Raw : 81 00 00 0C 00 F8 FE FF 1F
Dump(Rx):
0000:04 3E 09 81 00 00 0C 00 F8 FE FF 1F .>..........
--------------------------------------------------------------------
[32] : <Info> - 03:28:03.500
Device Disconnected
Handle = 0x0000
Addr Type = 0x00 (Public)
BDAddr = 00:1A:7D:DA:71:0A
--------------------------------------------------------------------
[33] : <Rx> - 03:28:03.498
-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 : 0x13 (19) (Peer Requested)
Dump(Rx):
0000:04 FF 06 06 06 00 00 00 13 .........
--------------------------------------------------------------------

Many thanks

Regards

Carlo

  • Hi Carlo!

    I will look into this and get back to you as soon as possible!

    Regards,

    Jan

  • Hi Carlo!

    According to the log you have provided, the board running host_test is receiving those messages from your second board. It appears something is causing the program on the second board to send that message.I would like to attempt to reproduce this issue. Are you running one of our sample projects on the second board? If so, can you clarify which one?

    Regards,

    Jan

  • Hi Jan,

    I am actually only creating a connection with a CSR bluetooth dongle, sending an HCI create connection. No other interactions with the dongle until disconnection.

    I might get access to a sniffer soon and try to capture what is going on on air.

    Thanks

    Carlo

  • Hi Carlo!

    Would you be able to provide a sniffer log to us? That might help us narrow down the issue. It seems that the dongle is sending messages that bTool is unfamiliar with. The sniffer log may provide further insight.

    Regards,

    Jan

  • Hi Jan,

    i have sniffed it and found the dongle is sending LLCP channel map indication messages. 

    is it correct that the event goes all the way to the host? perhaps I can filter it setting the LE event mask.

    I have tried to attach the sniff but the system is returning an error and is not allowing me to post this reply when it's attached

    Regards

    Carlo

  • Hi Carlo!

    According to the bTool log provided, the host_test device is receiving that message and attempting to decode it. Which indicates that the event is reaching the host. You may be able to modify the host_test code to learn more about that message. Does the same message appear if you use the ble5 version of host_test and bTool?

    Regards,

    Jan

  • Hi Jan,

    I haven't tried the ble5 version. I might try at some point, I just wanted to figure out what the event was.

    I think we call this resolved.

    Thanks

    Carlo