Re: bug report - bluetoothctl ble connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Seulki,

On Wed, Jun 29, 2016 at 10:09 AM, Seulki Shin <sskcorea@xxxxxxxxx> wrote:
> * test envrionment:
> Fedora release 22 (Twenty Two)
> Kernel 4.1.15-00035-gd1a75bb on an armv7l (ttyAMA3)
> [root@localhost ~]# bluetoothctl -v
> 5.39
>
>> Hi Bluez,
>>
>> I found a pairing/connection bug in bluetoothctl.
>>
>> * Steps to reproduce:
>>
>> [bluetoothctl] scan on
>> [bluetoothctl] pair ble_device
>> [bluetoothctl] connect ble_device
>> [bluetoothctl] exit
>>
>> Right after exiting from bluetoothctl, Disconnect happens like below.
>>
>> < HCI Command: Disconnect (0x01|0x0006) plen 3                [hci0] 156.978499
>>         Handle: 128
>>         Reason: Remote User Terminated Connection (0x13)
>>> HCI Event: Command Status (0x0f) plen 4                     [hci0] 156.995345
>>       Disconnect (0x01|0x0006) ncmd 1
>>         Status: Success (0x00)
>>> HCI Event: Disconnect Complete (0x05) plen 4                [hci0] 157.005387
>>         Status: Success (0x00)
>>         Handle: 128
>>         Reason: Connection Terminated By Local Host (0x16)
>> @ Device Disconnected: 00:22:D0:8D:22:6D (1) reason 2
>>
>> * My observation1:
>> This is not the case of the hcitool. It works.

This works as intended as we track down the requester of connection
attempt if it exits before the connection is made we would stop
connecting.

>> * My observation2:
>> Right after receiving GATT services, bluez does some more work.
>> But the Value doesn't look like normal.
>>
>> ......
>>
>>> ACL Data RX: Handle 128 flags 0x02 dlen 22                  [hci0] 132.295271
>>       ATT: Read Response (0x0b) len 17
>>         Value: 506f6c6172204837203844323236443146
>> ......

Well this is a response to a read, if there is something wrong with
the value then either the attribute handle is not correct or it is the
remote fault.

>> * I attached full hci logs.
>>
>> Thanks,
>> Seulki
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux