Problem initiating a connection to WICED Sense using bluez gattool

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I tried to connect to a the WICED Sense tag using the bluez gattool on ubuntu 14.04 LTS and have consistently gotten a failure indicating that device is busy,  even though there are no other connections.  Attached is the hcidump output.   Any insight would be appreciated.  Thanks!

HCI sniffer - Bluetooth packet analyzer ver 2.5

device: hci0 snap_len: 1500 filter: 0xffffffffffffffff

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

    bdaddr 00:10:18:01:25:B9 type 0

    interval 96 window 48 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 2

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

    LE Connection Complete

      status 0x00 handle 3585, role master

      bdaddr 00:10:18:01:25:B9 (Public)

> ACL data: handle 3585 flags 0x02 dlen 16

    L2CAP(d): cid 0x0005 len 12 [psm 0]

      0000: 12 01 08 00 40 00 60 00  00 00 f4 01              ....@.`.....

< ACL data: handle 3585 flags 0x00 dlen 10

    L2CAP(d): cid 0x0005 len 6 [psm 0]

      0000: 13 01 02 00 00 00                                 ......

< HCI Command: LE Connection Update (0x08|0x0013) plen 14

  0000: 01 0e 40 00 60 00 00 00  f4 01 00 00 00 00        ..@.`.........

> ACL data: handle 3585 flags 0x02 dlen 6

    SMP: Security Request (0x0b)

      auth req 0x01

< ACL data: handle 3585 flags 0x00 dlen 11

    SMP: Pairing Request (0x01)

      capability 0x03 oob 0x00 auth req 0x01

      max key size 0x10 init key dist 0x05 resp key dist 0x05

      Capability: NoInputNoOutput (OOB data not present)

      Authentication: Bonding (No MITM Protection)

      Initiator Key Distribution:  LTK  CSRK

      Responder Key Distribution:  LTK  CSRK

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

    LE Connection Update (0x08|0x0013) status 0x00 ncmd 2

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 3585 packets 1

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 3585 packets 1

> ACL data: handle 3585 flags 0x02 dlen 11

    SMP: Pairing Response (0x02)

      capability 0x03 oob 0x00 auth req 0x01

      max key size 0x10 init key dist 0x05 resp key dist 0x05

      Capability: NoInputNoOutput (OOB data not present)

      Authentication: Bonding (No MITM Protection)

      Initiator Key Distribution:  LTK  CSRK

      Responder Key Distribution:  LTK  CSRK

< ACL data: handle 3585 flags 0x00 dlen 21

    SMP: Pairing Confirm (0x03)

      key b70b609c96505b47605bd9b5d703f0b2

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 3585 packets 1

> ACL data: handle 3585 flags 0x02 dlen 21

    SMP: Pairing Confirm (0x03)

      key 3a0aa66d48c9a061df3375f9b3dbe012

< ACL data: handle 3585 flags 0x00 dlen 21

    SMP: Pairing Random (0x04)

      random 0a952700f91dc309a6c2100559defabd

> HCI Event: Number of Completed Packets (0x13) plen 5

    handle 3585 packets 1

> ACL data: handle 3585 flags 0x02 dlen 21

    SMP: Pairing Random (0x04)

      random 956d3be0bad5c2aea3d726bde39dbcab

< HCI Command: LE Start Encryption (0x08|0x0019) plen 28

  0000: 01 0e 00 00 00 00 00 00  00 00 00 00 37 70 04 3c  ............7p.<

  0010: 2d 36 ee f4 b0 22 29 c7  1a fc f1 31              -6...")....1

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

    LE Start Encryption (0x08|0x0019) status 0x3a ncmd 1

    Error: Controller Busy

< HCI Command: Disconnect (0x01|0x0006) plen 3

    handle 3585 reason 0x05

    Reason: Authentication Failure

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

    Disconnect (0x01|0x0006) status 0x00 ncmd 1

> HCI Event: Disconn Complete (0x05) plen 4

    status 0x00 handle 3585 reason 0x16

    Reason: Connection Terminated by Local Host

0 Likes
1 Solution
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

You may want to reinstall Bluez with the latest version (5.33). It claimed to have some bugfixes on the GATT as well as LE.

View solution in original post

0 Likes
2 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

You may want to reinstall Bluez with the latest version (5.33). It claimed to have some bugfixes on the GATT as well as LE.

0 Likes
Anonymous
Not applicable

lwaleung any updates?

0 Likes