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.

CC2650MODA: Connection gets disconnected when using android

Part Number: CC2650MODA


Hi,

I've compiled and load 'host_test' project into CC2650MODA.

Central role works OK using BTool.

However, when I change to Peripheral role (also using Btool) and connect using my android phone (Moto E4 plus android 7.1.1) it gets disconnected after 30 seconds (aprox.)

BLE stack: ble_sdk_2_02_01_18

compiling with GATT_DB_OFF_CHIP or not makes no difference.

This is the HCI Btool output please note the red marked lines:

--------------------------------------------------------------------
[10] : <Tx> - 03:49:37.333
-Type           : 0x01 (Command)
-OpCode         : 0xFE06 (GAP_MakeDiscoverable)
-Data Length    : 0x0A (10) byte(s)
 EventType      : 0x00 (0) (Connectable Undirect Advertisement)
 InitAddrType   : 0x00 (0) (Public)
 InitAddrs      : 00:00:00:00:00:00
 ChannelMap     : 0x07 (7) (Channel 37
                  Channel 38
                  Channel 39)
 FilterPolicy   : 0x00 (0) (Allow Scan Requests From Any, Allow
                  Connect Request From Any.)
Dump(Tx):
0000:01 06 FE 0A 00 00 00 00 00 00 00 00 07 00       ..............
--------------------------------------------------------------------
[11] : <Rx> - 03:49:37.366
-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         : 0xFE06 (GAP_MakeDiscoverable)
 DataLength     : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 06 FE 00                      .........
--------------------------------------------------------------------
[12] : <Rx> - 03:49:37.382
-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                               ......
--------------------------------------------------------------------
[13] : <Info> - 03:49:44.771
Device Connected
Handle = 0x0000
Addr Type = 0x01 (Static)
BDAddr = 74:5E:BA:AE:C1:98
--------------------------------------------------------------------
[14] : <Rx> - 03:49:44.750
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x14 (20) bytes(s)
 Event          : 0x0605 (1541) (GAP_EstablishLink)
 Status         : 0x00 (0) (Success)
 DevAddrType    : 0x01 (1) (Random)
 DevAddr        : 74:5E:BA:AE:C1:98
 ConnHandle     : 0x0000 (0)
 ConnRole       : 0x04 (4) (Peripheral)
 ConnInterval   : 0x0027 (39)
 ConnLatency    : 0x0000 (0)
 ConnTimeout    : 0x07D0 (2000)
 ClockAccuracy  : 0x05 (5)
Dump(Rx):
0000:04 FF 14 05 06 00 01 98 C1 AE BA 5E 74 00 00 04 ...........^t...
0010:27 00 00 00 D0 07 05                            '......
--------------------------------------------------------------------
[15] : <Error> - 03:49:45.065
Could Not Convert Some Of The Data In The Following Message
(A Specific Message Handler Is Needed To Process The Data)
--------------------------------------------------------------------
[16] : <Warning> - 03:49:45.072
The Last 10 Bytes In The Following Message Were Not Decoded
(Message Has More Than The Expected Number Of Data Bytes)
--------------------------------------------------------------------
[17] : <Rx> - 03:49:45.060
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x0D (13) bytes(s)
 Event          : 0x0612 (1554) (Unknown Op Code)
 Status         : 0x00 (0) (Success)
 Raw            : 00 00 00 06 00 06 00 00 00 D0 07
Dump(Rx):
0000:04 FF 0D 12 06 00 00 00 06 00 06 00 00 00 D0 07 ................
--------------------------------------------------------------------
[18] : <Info> - 03:50:45.029
Device Disconnected
Handle = 0x0000
Addr Type = 0x01 (Static)
BDAddr = 74:5E:BA:AE:C1:98
--------------------------------------------------------------------
[19] : <Rx> - 03:50:45.020
-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         : 0x08 (8) (Supervisor Timeout)
Dump(Rx):
0000:04 FF 06 06 06 00 00 00 08                      .........
--------------------------------------------------------------------

This is the exact issue that I am seeing:

e2e.ti.com/.../677607

with some differences I am seeing the 'Could Not Convert Some Of The Data In The Following Message' error, 'The Last 10 Bytes In The Following Message Were Not Decoded' warning and also Im not seeing the GAP_LinkParamUpdateRequest in HCI log.

How can I send GAP_UpdateLinkParamReqReply() using BTool and how can i remove above error and warning? is this error and warning are related to not replying the update link param req? how can i observer 'GAP_LinkParamUpdateRequest' properly?

Thanks in advance,

  • Hi,
    If the GAP command isn't available as a command on BTool, you can always send a raw command with the correct byte order as defined by the spec.
    I'm assigning this thread to the same person responding to the previous post, for additional follow-up.
  • Hi,

    The unknown message is as you say GAP_LinkParamUpdateRequest, with parameters connHandle 0, minInterval: 6 (7.5ms), maxInterval: 6, latency: 0, timeout: 2000 (20 sec)

    Not sure why your BTool doesn't understand the message, perhaps you are using an older version? If this is in fact the version in the SDK then perhaps try BTool from a slightly newer SDK.

    Should you want to send a reply with raw bytes, those would probably be 01 12 fe 0c 00 00 06 00 06 00 00 00 d0 07 01, alternatively generic command opcode 0xfe12, data 00 00 06 00 06 00 00 00 d0 07 01 with the last 01 being ACCEPTED.

    Best regards,
    Aslak
  • Thanks guys. I'm using Btool 1.41.11 this is the one that is shipped with 'ble_sdk_2_02_01_18'. Not sure what is the latest version or if this could be downloaded separately.