Re: How to use GattProfile1

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

 



Hi Krasi,

On Thu, May 25, 2017 at 10:48 AM, Krasi Georgiev <krasi.root@xxxxxxxxx> wrote:
> Just tried it again to double check
>
> connected to the iTag, than turned it off and turned it back on, but nothing in the bluetoothd logs shows that it is trying to reconnect.
>
>
> [bluetooth]# scan on
> Discovery started
> [CHG] Controller B8:27:EB:D5:54:1C Discovering: yes
> [CHG] Device FF:FF:50:00:53:B6 RSSI: -78
> [CHG] Device FF:FF:50:00:53:B6 TxPower: 0
> [CHG] Device FF:FF:50:00:53:B6 AdvertisingFlags: 0x05
> [bluetooth]# devices
> Device 34:31:11:00:CD:7A Samsung Galaxy S IV
> Device 04:52:C7:57:85:84 Bose Mini II SoundLink
> Device FF:FF:50:00:53:B6 iTAG
> [bluetooth]# connect FF:FF:50:00:53:B6
> Attempting to connect to FF:FF:50:00:53:B6
> [CHG] Device FF:FF:50:00:53:B6 Connected: yes
> Connection successful
> [CHG] Device FF:FF:50:00:53:B6 Icon is nil
> [CHG] Device FF:FF:50:00:53:B6 Appearance is nil
> [NEW] Primary Service
>         /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service0006
>         0000180f-0000-1000-8000-00805f9b34fb
>         Battery Service
> [NEW] Characteristic
>         /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service0006/char0007
>         00002a19-0000-1000-8000-00805f9b34fb
>         Battery Level
> [NEW] Primary Service
>         /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service0009
>         00001802-0000-1000-8000-00805f9b34fb
>         Immediate Alert
> [NEW] Characteristic
>         /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service0009/char000a
>         00002a06-0000-1000-8000-00805f9b34fb
>         Alert Level
> [NEW] Primary Service
>         /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service000c
>         0000ffe0-0000-1000-8000-00805f9b34fb
>         Unknown
> [NEW] Characteristic
>         /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service000c/char000d
>         0000ffe1-0000-1000-8000-00805f9b34fb
>         Unknown
> [CHG] Device FF:FF:50:00:53:B6 ServicesResolved: yes
>
> [iTAG            ]# select-attribute 0000180f-0000-1000-8000-00805f9b34fb
> [CHG] Device FF:FF:50:00:53:B6 ServicesResolved: no
> [CHG] Device FF:FF:50:00:53:B6 Connected: no
> [CHG] Device FF:FF:50:00:53:B6 RSSI: -87
> [CHG] Device FF:FF:50:00:53:B6 Appearance: 0x03c1
> [CHG] Device FF:FF:50:00:53:B6 Icon: input-keyboard
> [CHG] Device FF:FF:50:00:53:B6 RSSI: -77
> [bluetooth]# devices
> Device 34:31:11:00:CD:7A Samsung Galaxy S IV
> Device 04:52:C7:57:85:84 Bose Mini II SoundLink
> Device FF:FF:50:00:53:B6 iTAG
> [CHG] Device FF:FF:50:00:53:B6 RSSI: -56
> [CHG] Device FF:FF:50:00:53:B6 RSSI: -75
> [CHG] Device FF:FF:50:00:53:B6 RSSI: -66
> [CHG] Device FF:FF:50:00:53:B6 RSSI: -76
>
>
>
>

May 25 10:38:07 r1 bluetoothd[521]: src/adapter.c:cancel_passive_scanning()
May 25 10:38:07 r1 bluetoothd[521]: src/device.c:att_disconnected_cb()
May 25 10:38:07 r1 bluetoothd[521]: src/device.c:att_disconnected_cb()
Connection timed out (110)
May 25 10:38:07 r1 bluetoothd[521]: src/service.c:change_state()
0x12f5b70: device FF:FF:50:00:53:B6 profile gap-profile state changed:
connected -> disconnecting (0)
May 25 10:38:07 r1 bluetoothd[521]: src/service.c:change_state()
0x12f5b70: device FF:FF:50:00:53:B6 profile gap-profile state changed:
disconnecting -> disconnected (0)
May 25 10:38:07 r1 bluetoothd[521]:
src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected.
Cleaning up.
May 25 10:38:07 r1 bluetoothd[521]: src/device.c:att_disconnected_cb()
Automatic connection disabled

Looks like it is disabling the automatic connection, this is probably
because the only matched service appear to be GAP:

May 25 10:38:07 r1 bluetoothd[521]: src/service.c:change_state()
0x12f5b70: device FF:FF:50:00:53:B6 profile gap-profile state changed:
connected -> disconnecting (0)
May 25 10:38:07 r1 bluetoothd[521]: src/service.c:change_state()
0x12f5b70: device FF:FF:50:00:53:B6 profile gap-profile state changed:
disconnecting -> disconnected (0)

Btw, it appears your kernel is too only since bluetoothd is doing
passive scanning in userspace which was not very reliable, iirc the
passive scanning feature was introduced in 3.17.
--
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