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.

Linux/CC2564C: CC2564C BLE connect error in Linux

Part Number: CC2564C

Tool/software: Linux

Hi e2e,

our customer is using CC2564C in Linux, the classic BT is working fine, but the BLE has issues as below, need your support.

thanks in advance.

There is problem when It is used to connect to a “Temperature Logger” from corporation “ZenMeasure” (http://www.zenmeasure.com).

 

TIInit_6.12.26.bts is used with BlueZ. Standard Bluetooth with PC works correctly. But there is problem when use BLE to connect to other device.

 

Following is operation information:

 

hciattach /dev/ttyS4 texas 115200 noflow

 

killall -9 bluetoothd

/usr/libexec/bluetooth/bluetoothd -E &

hciconfig hci0 name sensorgw_le

 

 

root@sensorgw-imx6q:~# hcitool lescan

LE Scan ...

70:5B:07:94:1C:8D (unknown)

70:5B:07:94:1C:8D (unknown)

FE:97:18:09:13:44 (unknown)           # This is the Temperature device

6B:E6:2C:6B:B0:C8 (unknown)

 

root@sensorgw-imx6q:~#

root@sensorgw-imx6q:~#

root@sensorgw-imx6q:~# gatttool -b FE:97:18:09:13:44 -I

[FE:97:18:09:13:44][LE]> connect

Attempting to connect to FE:97:18:09:13:44

< HCI Command: LE Add Device To White List (0x08|0x0011) plen 7

  0000: 00 44 13 09 18 97 fe                              .D.....

> HCI Event: Command Complete (0x0e) plen 4

    LE Add Device To White List (0x08|0x0011) ncmd 1

    status 0x00

< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7

    type 0x00 (passive)

    interval 60.000ms window 30.000ms

    own address: 0x00 (Public) policy: white list only

> HCI Event: Command Complete (0x0e) plen 4

    LE Set Scan Parameters (0x08|0x000b) ncmd 1

    status 0x00

< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2

    value 0x01 (scanning enabled)

    filter duplicates 0x01 (enabled)

> HCI Event: Command Complete (0x0e) plen 4

    LE Set Scan Enable (0x08|0x000c) ncmd 1

    status 0x00

[FE:97:18:09:13:44][LE]> > HCI Event: LE Meta Event (0x3e) plen 43

    LE Advertising Report

      ADV_IND - Connectable undirected advertising (0)

      bdaddr FE:97:18:09:13:44 (Public)

      Flags: 0x06

      Shortened service classes: 0x1809

      Unknown type 0x16 with 22 bytes data

      RSSI: -54

< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2

    value 0x00 (scanning disabled)

    filter duplicates 0x00 (disabled)

> HCI Event: Command Complete (0x0e) plen 4

    LE Set Scan Enable (0x08|0x000c) ncmd 1

    status 0x00

< HCI Command: LE Create Connection (0x08|0x000d) plen 25

    bdaddr FE:97:18:09:13:44 type 0

    interval 96 window 96 initiator_filter 0

    own_bdaddr_type 0 min_interval 40 max_interval 56

    latency 0 supervision_to 42 min_ce 0 max_ce 0

> HCI Event: Command Status (0x0f) plen 4

    LE Create Connection (0x08|0x000d) status 0x00 ncmd 1

< HCI Command: LE Create Connection Cancel (0x08|0x000e) plen 0

> HCI Event: Command Complete (0x0e) plen 4

    LE Create Connection Cancel (0x08|0x000e) ncmd 1

    0000: 00                                                .

> HCI Event: LE Meta Event (0x3e) plen 19

    LE Connection Complete

      status 0x02 handle 65535, role master

      bdaddr FE:97:18:09:13:44 (Public)

Error: connect error: Transport endpoint is not connected (107)