2017-05-16 11:42:47

by Krasi Georgiev

[permalink] [raw]
Subject: How to use GattProfile1

Hi all

Can you give me a quick example with a pseudo code (or using qdbus) for =
workflow steps how to setup an auto connect to a device that supports =
given UUID service (0000180f-0000-1000-8000-00805f9b34fb - Battery =
Service)

=46rom what I understand all I need to do is send a call to the sytembus =
to register the hci0 adapter to auto connect

org.bluez.ProfileManager1.RegisterProfile , /org/bluez/Test (ObjPath), =
"00001802-0000-1000-8000-00805f9b34fb=E2=80=9D (service UUID)

and if the discovery finds a device with such service it should auto =
connect right ?


I am not sure what is the ObjPath parameter for and when i introspect I =
don=E2=80=99t even see the /org/bluez/GattProfile1

I am using bluez Version 5.45 on a Raspberry Pi zero
Linux 4.4.50+ armv6l


I tried making the call using with gdbus, but couldn=E2=80=99t figure =
out how to structure the osa{sv} paramters
also tried dbus-send , but the tool doesn=E2=80=99t seem to support this =
structures (no nesting)


I am using golang godbus bindings and the call gets executed without an =
error , but the bluetooth adapter doesn=E2=80=99t auto connect


here is the gist
=
https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328f=
038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go

go get github.com/godbus/dbus
wget =
https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328f=
038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
go run main.go


I would really appreciate some useful info.
Thanks=


Subject: RE: How to use GattProfile1

SGksDQoNCkkgYW0gd2l0aCB0aGUgc2FtZSBwcm9ibGVtIGFzIEtyYXNpICwgaW1wb3NzaWJsZSB0
byBnZXQgYXV0byBjb25uZWN0aW9uIHdpdGggbXkgZGV2aWNlcy4NCg0KRXZlcnl0aGluZyB3YXMg
d29ya2luZyBmaW5lIHVwIHRvIGJsdWV6IDUuNDEgZnJvbSBibHVleiA1LjQyIEkgaGF2ZSBubyBh
dXRvIGNvbm5lY3Rpb24gd2l0aCB0aGUgZGV2aWNlcy4NCg0KSSByZXZlcnRlZCAgY29tbWl0IDg5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bnN1YnNjcmliZSBsaW51eC1ibHVl
dG9vdGgiIGluIHRoZSBib2R5IG9mIGEgbWVzc2FnZSB0byBtYWpvcmRvbW9Admdlci5rZXJuZWwu
b3JnIE1vcmUgbWFqb3Jkb21vIGluZm8gYXQgIGh0dHA6Ly92Z2VyLmtlcm5lbC5vcmcvbWFqb3Jk
b21vLWluZm8uaHRtbA0K

2017-05-25 13:01:49

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hi Krasi,

On Thu, May 25, 2017 at 3:56 PM, Krasi Georgiev <[email protected]> wrot=
e:
> I can=E2=80=99t see it, where did you send it , maybe forgot to attach it=
?

http://marc.info/?l=3Dlinux-bluetooth&m=3D149570864001640&w=3D2

--=20
Luiz Augusto von Dentz

2017-05-25 12:56:48

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

I can=E2=80=99t see it, where did you send it , maybe forgot to attach =
it?

2017-05-25 11:16:57

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hi Krasi,

On Thu, May 25, 2017 at 11:37 AM, Krasi Georgiev <[email protected]> wrote:
> ok I will try on another debian machine.
>
> Ideally I would like to make it work on the raspberry pi as well.
>
> Would it be too much hassle to give me an example how can I register this object mentioned in the video using dbus calls?
>

Take a look at the fix I just send, that should enable you to register
UUIDs with register-application command.


--
Luiz Augusto von Dentz

2017-05-25 08:37:39

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

ok I will try on another debian machine.

Ideally I would like to make it work on the raspberry pi as well.

Would it be too much hassle to give me an example how can I register =
this object mentioned in the video using dbus calls?



2017-05-25 08:32:53

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hi Krasi,

On Thu, May 25, 2017 at 11:13 AM, Krasi Georgiev <[email protected]> wro=
te:
> Hm=E2=80=A6
> The first I checked is the kernel and it is 4.4 so not sure why it behave=
s like this then
> Linux r1 4.4.50+ #970 Mon Feb 20 19:12:50 GMT 2017 armv6l GNU/Linux
>
> This is Raspbian, but the distro shouldn=E2=80=99t matter
>
> did you watch the video minute 24
> https://youtu.be/VMDyebKT5c4?t=3D1439
>
> Does bluetoothctl creates this gat object mentioned in the video ?
> If I understand correctly bluetoothd won=E2=80=99t try to reconnect witho=
ut it.

It doesn't create, though usually it is not required if other profiles
match, still it is a good idea to register the profile properly, you
can check bluetoothd logs when you register it shall print something
in the logs.

Regarding the kernel, 4.4 should definitely have auto connect feature,
does or perhaps Raspbain is using some backport? Btw, you could try
running in a traditional distro like ubuntu or fedora.


--=20
Luiz Augusto von Dentz

2017-05-25 08:13:21

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hm=E2=80=A6
The first I checked is the kernel and it is 4.4 so not sure why it =
behaves like this then
Linux r1 4.4.50+ #970 Mon Feb 20 19:12:50 GMT 2017 armv6l GNU/Linux

This is Raspbian, but the distro shouldn=E2=80=99t matter

did you watch the video minute 24
https://youtu.be/VMDyebKT5c4?t=3D1439

Does bluetoothctl creates this gat object mentioned in the video ?
If I understand correctly bluetoothd won=E2=80=99t try to reconnect =
without it.



2017-05-25 08:02:15

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hi Krasi,

On Thu, May 25, 2017 at 10:48 AM, Krasi Georgiev <[email protected]> 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.

2017-05-25 07:48:49

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

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:37:09 r1 bluetoothd[521]: src/agent.c:agent_ref() 0x12ebea0: =
ref=3D1
May 25 10:37:09 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:37:39 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:37:09 r1 bluetoothd[521]: src/agent.c:register_agent() agent =
:1.7
May 25 10:37:11 r1 bluetoothd[521]: src/adapter.c:start_discovery() =
sender :1.7
May 25 10:37:11 r1 bluetoothd[521]: =
src/adapter.c:update_discovery_filter()
May 25 10:37:11 r1 bluetoothd[521]: =
src/adapter.c:discovery_filter_to_mgmt_cp()
May 25 10:37:11 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:37:11 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:37:12 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:37:12 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:37:12 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:37:12 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:37:12 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-78 flags 0x0000 eir_len 32
May 25 10:37:12 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:37:12 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -78
May 25 10:37:12 r1 bluetoothd[521]: src/device.c:device_set_tx_power() =
tx_power 0
May 25 10:37:12 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:37:22 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:37:22 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:37:22 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:37:25 r1 bluetoothd[521]: src/device.c:device_connect_le() =
Connection attempt to: FF:FF:50:00:53:B6
May 25 10:37:25 r1 bluetoothd[521]: src/adapter.c:connected_callback() =
hci0 device FF:FF:50:00:53:B6 connected eir_len 14
May 25 10:37:28 r1 kernel: [ 94.856198] NET: Registered protocol =
family 38
May 25 10:37:28 r1 bluetoothd[521]: attrib/gattrib.c:g_attrib_ref() =
0x12edae8: g_attrib_ref=3D1
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_gatt_db() =
Restoring FF:FF:50:00:53:B6 gatt database from file
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_service() loading =
service: 0x0001, end: 0x0005, uuid: 00001800-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_service() loading =
service: 0x0006, end: 0x0008, uuid: 0000180f-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_service() loading =
service: 0x0009, end: 0x000b, uuid: 00001802-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_service() loading =
service: 0x000c, end: 0x000e, uuid: 0000ffe0-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_chrc() loading =
characteristic handle: 0x0002, value handle: 0x0003, properties 0x0012 =
uuid: 00002a00-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_chrc() loading =
characteristic handle: 0x0004, value handle: 0x0005, properties 0x0002 =
uuid: 00002a01-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_chrc() loading =
characteristic handle: 0x0007, value handle: 0x0008, properties 0x0012 =
uuid: 00002a19-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_chrc() loading =
characteristic handle: 0x000a, value handle: 0x000b, properties 0x001c =
uuid: 00002a06-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:load_chrc() loading =
characteristic handle: 0x000d, value handle: 0x000e, properties 0x0012 =
uuid: 0000ffe1-0000-1000-8000-00805f9b34fb
May 25 10:37:28 r1 bluetoothd[521]: profiles/gap/gas.c:gap_accept() GAP =
profile accept (FF:FF:50:00:53:B6)
May 25 10:37:28 r1 bluetoothd[521]: src/service.c:change_state() =
0x12f5b70: device FF:FF:50:00:53:B6 profile gap-profile state changed: =
disconnected -> connected (0)
May 25 10:37:28 r1 bluetoothd[521]: =
src/gatt-client.c:btd_gatt_client_connected() Device connected.
May 25 10:37:28 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:37:28 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:37:28 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:37:28 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:37:28 r1 bluetoothd[521]: src/device.c:gatt_debug() MTU =
exchange complete, with MTU: 23
May 25 10:37:29 r1 bluetoothd[521]: =
profiles/gap/gas.c:read_device_name_cb() GAP Device Name: iTAG
May 25 10:37:29 r1 bluetoothd[521]: =
profiles/gap/gas.c:read_appearance_cb() GAP Appearance: 0x0000
May 25 10:37:31 r1 bluetoothd[521]: src/device.c:gatt_debug() Primary =
services found: 4
May 25 10:37:31 r1 bluetoothd[521]: src/device.c:gatt_debug() start: =
0x0001, end: 0x0005, uuid: 00001800-0000-1000-8000-00805f9b34fb
May 25 10:37:31 r1 bluetoothd[521]: src/device.c:gatt_debug() start: =
0x0006, end: 0x0008, uuid: 0000180f-0000-1000-8000-00805f9b34fb
May 25 10:37:31 r1 bluetoothd[521]: src/device.c:gatt_debug() start: =
0x0009, end: 0x000b, uuid: 00001802-0000-1000-8000-00805f9b34fb
May 25 10:37:31 r1 bluetoothd[521]: src/device.c:gatt_debug() start: =
0x000c, end: 0x000e, uuid: 0000ffe0-0000-1000-8000-00805f9b34fb
May 25 10:37:31 r1 bluetoothd[521]: src/device.c:gatt_client_ready_cb() =
status: success, error: 10
May 25 10:37:31 r1 bluetoothd[521]: =
src/gatt-client.c:btd_gatt_client_ready() GATT client ready
May 25 10:37:31 r1 bluetoothd[521]: src/gatt-client.c:create_services() =
Exporting objects for GATT services: FF:FF:50:00:53:B6
May 25 10:37:31 r1 bluetoothd[521]: src/gatt-client.c:service_create() =
Exported GATT service: /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service0006
May 25 10:37:31 r1 bluetoothd[521]: =
src/gatt-client.c:characteristic_create() Exported GATT characteristic: =
/org/bluez/hci0/dev_FF_FF_50_00_53_B6/service0006/char0007
May 25 10:37:31 r1 bluetoothd[521]: src/gatt-client.c:service_create() =
Exported GATT service: /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service0009
May 25 10:37:31 r1 bluetoothd[521]: =
src/gatt-client.c:characteristic_create() Exported GATT characteristic: =
/org/bluez/hci0/dev_FF_FF_50_00_53_B6/service0009/char000a
May 25 10:37:31 r1 bluetoothd[521]: src/gatt-client.c:service_create() =
Exported GATT service: /org/bluez/hci0/dev_FF_FF_50_00_53_B6/service000c
May 25 10:37:31 r1 bluetoothd[521]: =
src/gatt-client.c:characteristic_create() Exported GATT characteristic: =
/org/bluez/hci0/dev_FF_FF_50_00_53_B6/service000c/char000d
May 25 10:37:31 r1 bluetoothd[521]: src/device.c:device_svc_resolved() =
/org/bluez/hci0/dev_FF_FF_50_00_53_B6 err 0
May 25 10:37:38 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:37:38 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:37:38 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:37:44 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:37:44 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:38:14 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:37:44 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:37:44 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:37:44 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:37:51 r1 kernel: [ 117.904072] w1_master_driver =
w1_bus_master1: Family 0 for 00.400000000000.46 is not registered.
May 25 10:37:54 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:37:54 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:37:54 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:38:00 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:38:00 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:38:00 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:38:00 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:38:07 r1 bluetoothd[521]: src/adapter.c:dev_disconnected() =
Device FF:FF:50:00:53:B6 disconnected, reason 1
May 25 10:38:07 r1 bluetoothd[521]: =
src/adapter.c:adapter_remove_connection()
May 25 10:38:07 r1 bluetoothd[521]: plugins/policy.c:disconnect_cb() =
reason 1
May 25 10:38:07 r1 bluetoothd[521]: =
src/adapter.c:bonding_attempt_complete() hci0 bdaddr FF:FF:50:00:53:B6 =
type 1 status 0xe
May 25 10:38:07 r1 bluetoothd[521]: =
src/device.c:device_bonding_complete() bonding (nil) status 0x0e
May 25 10:38:07 r1 bluetoothd[521]: src/device.c:device_bonding_failed() =
status 14
May 25 10:38:07 r1 bluetoothd[521]: src/adapter.c:resume_discovery()
May 25 10:38:07 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
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
May 25 10:38:07 r1 bluetoothd[521]: attrib/gattrib.c:g_attrib_unref() =
0x12edae8: g_attrib_unref=3D0
May 25 10:38:10 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:38:10 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:38:10 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:38:16 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:38:16 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:38:16 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:38:46 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:38:16 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:38:16 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:38:17 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-87 flags 0x0000 eir_len 32
May 25 10:38:17 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:38:17 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -87 delta 9
May 25 10:38:17 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:38:26 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:38:26 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:38:26 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:38:32 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:38:32 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:38:32 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:38:32 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:38:32 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-77 flags 0x0000 eir_len 32
May 25 10:38:32 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:38:32 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -77 delta 10
May 25 10:38:32 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:38:38 r1 kernel: [ 165.274531] w1_master_driver =
w1_bus_master1: Family 0 for 00.c00000000000.ca is not registered.
May 25 10:38:42 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:38:42 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:38:42 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:38:48 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:38:48 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:39:18 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:38:48 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:38:48 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:38:48 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:38:48 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-71 flags 0x0000 eir_len 32
May 25 10:38:48 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:38:48 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:38:58 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:38:58 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:38:58 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:39:04 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:39:04 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:39:04 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:39:04 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:39:04 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-74 flags 0x0000 eir_len 32
May 25 10:39:04 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:39:04 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:39:14 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:39:14 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:39:14 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:39:20 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:39:20 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:39:50 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:39:20 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:39:20 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:39:20 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:39:20 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-72 flags 0x0000 eir_len 32
May 25 10:39:20 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:39:20 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:39:30 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:39:30 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:39:30 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:39:36 r1 systemd[1]: Starting Session c3 of user root.
May 25 10:39:36 r1 systemd[1]: Started Session c3 of user root.
May 25 10:39:36 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:39:36 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:39:36 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:39:36 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:39:38 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-75 flags 0x0000 eir_len 32
May 25 10:39:38 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:39:38 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:39:46 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:39:46 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:39:46 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:39:50 r1 kernel: [ 236.654808] w1_master_driver =
w1_bus_master1: Family 0 for 00.200000000000.23 is not registered.
May 25 10:39:50 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:40:20 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:39:52 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:39:52 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:39:52 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:39:52 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:39:54 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-72 flags 0x0000 eir_len 32
May 25 10:39:54 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:39:54 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:40:02 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:40:02 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:40:02 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:40:08 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:40:08 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:40:08 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:40:08 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:40:12 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-74 flags 0x0000 eir_len 32
May 25 10:40:12 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:40:12 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:40:18 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:40:18 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:40:18 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:40:24 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:40:24 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:40:24 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:40:54 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:40:24 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:40:24 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:40:29 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-56 flags 0x0000 eir_len 14
May 25 10:40:29 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:40:29 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -56 delta 21
May 25 10:40:29 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:40:34 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:40:34 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:40:34 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:40:40 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:40:40 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:40:40 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:40:40 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:40:45 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-60 flags 0x0000 eir_len 14
May 25 10:40:45 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:40:45 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:40:50 r1 kernel: [ 296.889635] w1_master_driver =
w1_bus_master1: Family 0 for 00.a00000000000.af is not registered.
May 25 10:40:50 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:40:50 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:40:50 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:40:55 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:41:25 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:40:56 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:40:56 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:40:56 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:40:56 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:40:57 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-75 flags 0x0000 eir_len 32
May 25 10:40:57 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:40:57 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -75 delta 19
May 25 10:40:57 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:41:06 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:41:06 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:41:06 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:41:12 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:41:12 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:41:12 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:41:12 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:41:15 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-74 flags 0x0000 eir_len 32
May 25 10:41:15 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:41:15 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:41:22 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:41:22 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:41:22 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:41:26 r1 kernel: [ 332.965857] w1_master_driver =
w1_bus_master1: Family 0 for 00.600000000000.65 is not registered.
May 25 10:41:26 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:42:26 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:41:28 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:41:28 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:41:28 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:41:28 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:41:33 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-66 flags 0x0000 eir_len 14
May 25 10:41:33 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:41:33 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -66 delta 9
May 25 10:41:33 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:41:38 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:41:38 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:41:38 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:41:44 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:41:44 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:41:44 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:41:44 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:41:45 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-76 flags 0x0000 eir_len 32
May 25 10:41:45 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:41:45 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -76 delta 10
May 25 10:41:45 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:41:54 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:41:54 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:41:54 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:42:00 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:42:00 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:42:00 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:42:00 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:42:03 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-74 flags 0x0000 eir_len 32
May 25 10:42:03 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:42:03 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:42:04 r1 kernel: [ 370.930206] w1_master_driver =
w1_bus_master1: Family 0 for 00.e00000000000.e9 is not registered.
May 25 10:42:10 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:42:10 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:42:10 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:42:16 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:42:16 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:42:16 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:42:16 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:42:21 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-75 flags 0x0000 eir_len 32
May 25 10:42:23 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:42:23 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:42:26 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:42:26 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:42:26 r1 rsyslogd-2007: action 'action 17' suspended, next =
retry is Thu May 25 10:43:26 2017 [try http://www.rsyslog.com/e/2007 ]
May 25 10:42:26 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:42:32 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:42:32 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:42:32 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:42:32 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:42:37 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-61 flags 0x0000 eir_len 14
May 25 10:42:37 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:42:37 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -61 delta 15
May 25 10:42:37 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:42:42 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:42:42 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:42:42 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:42:48 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:42:48 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:42:48 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:42:48 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:42:53 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-62 flags 0x0000 eir_len 14
May 25 10:42:53 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:42:53 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:42:58 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:42:58 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:42:58 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()
May 25 10:43:04 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout()
May 25 10:43:04 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_timeout() =
adapter->current_discovery_filter =3D=3D 0
May 25 10:43:04 r1 bluetoothd[521]: =
src/adapter.c:start_discovery_complete() status 0x00
May 25 10:43:04 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 1 method 0
May 25 10:43:06 r1 kernel: [ 433.030777] w1_master_driver =
w1_bus_master1: Family 0 for 00.100000000000.9d is not registered.
May 25 10:43:09 r1 bluetoothd[521]: =
src/adapter.c:device_found_callback() hci0 addr FF:FF:50:00:53:B6, rssi =
-75 flags 0x0000 eir_len 32
May 25 10:43:14 r1 bluetoothd[521]: src/device.c:device_set_legacy() =
legacy 0
May 25 10:43:14 r1 bluetoothd[521]: =
src/device.c:device_set_rssi_with_delta() rssi -75 delta 14
May 25 10:43:14 r1 bluetoothd[521]: src/device.c:device_set_flags() =
flags 5
May 25 10:43:14 r1 bluetoothd[521]: src/adapter.c:discovering_callback() =
hci0 type 7 discovering 0 method 0
May 25 10:43:14 r1 bluetoothd[521]: =
src/adapter.c:trigger_start_discovery()
May 25 10:43:14 r1 bluetoothd[521]: =
src/adapter.c:cancel_passive_scanning()

2017-05-24 12:02:21

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hi Krasi,

On Tue, May 23, 2017 at 10:36 PM, Krasi Georgiev <[email protected]> wro=
te:
> Are you sure about this? I am a bit confused. I have manually connected t=
o few devices but none will auto-connect when I switch it off/on or remove =
if from the range and than bring back in.
>
> Szymon=E2=80=99s video suggests that I need to create an object that impl=
ements a Gatt profile
> https://youtu.be/VMDyebKT5c4?t=3D1439
> minute 24
>
> I tried but can=E2=80=99t find out the correct dbus calls sequence.
>
> If anyone can give me a simple example (using dbus calls) that would be a=
mazing.

Have you actually tried using bluetoothctl? Do you have the bluetoothd
logs when connecting to these devices?

--=20
Luiz Augusto von Dentz

2017-05-23 19:36:38

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

Are you sure about this? I am a bit confused. I have manually connected =
to few devices but none will auto-connect when I switch it off/on or =
remove if from the range and than bring back in.

Szymon=E2=80=99s video suggests that I need to create an object that =
implements a Gatt profile=20
https://youtu.be/VMDyebKT5c4?t=3D1439
minute 24

I tried but can=E2=80=99t find out the correct dbus calls sequence.

If anyone can give me a simple example (using dbus calls) that would be =
amazing.=

2017-05-23 18:14:30

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hi Krasi,

On Tue, May 23, 2017 at 8:55 PM, Krasi Georgiev <[email protected]> wrot=
e:
>
> Great talk from Szymon by the way I learned a lot combined with with read=
ing the docs.
> I really hope my question is not too stupid.
> I am stuck at this step in my app and can=E2=80=99t continue.

Usually, once it is connected once it will automatically be added to
auto connect list, so perhaps the device is not advertising as
connectable? Note the very first you must connect manually as that is
what indicate to bluetoothd you want to use the device.

--=20
Luiz Augusto von Dentz

2017-05-23 17:55:37

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1


Great talk from Szymon by the way I learned a lot combined with with =
reading the docs.
I really hope my question is not too stupid.=20
I am stuck at this step in my app and can=E2=80=99t continue.=

2017-05-19 13:01:39

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

Thanks Luiz

I think we are getting off track here so let me explain again :)

I am writing an application to autoconnect to a bluetooth iTag - =
http://www.bestfixcy.com/how-to/how-to-itag-bluetooth-tracker/

The tag has few GATT profiles and I can=E2=80=99t understand the logical =
steps how to setup to auto-connect when it is in range.=20

I will be using golang (godbus package- dbus bindings), but that is not =
important. I was hoping someone to give a very language agnostic code =
workflow example with direct dbus calls.

make a call to dbus=E2=80=A6. to register local profile using these =
parameters, than register the auto connect by making a call t dbus=E2=80=A6=


=46rom al videos and readings I understand that I need to register a =
local profile and than register that profile using =
org.bluez.ProfileManager1.RegisterProfile with the UUID to which service =
I want to auto connect , but can=E2=80=99t find figure out any =
specifics.




2017-05-19 12:46:17

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hi,


On Thu, May 18, 2017 at 8:00 PM, Krasi Georgiev <[email protected]> wrot=
e:
> Thanks
>
> I watched this video 3 times, but he talks about profile registration and=
the auto connect very briefly so I tried everything that comes to mind, bu=
t can=E2=80=99t make it to work
>
> If you have done it can you post some pseudo code for the code execution =
?
>
> I am sure it is not very complicated , just still too new to the whole co=
ncept.

So what is the role you want the system to assume?

As central:

bluetoothctl> scan on
*** Wait for the device you want to connect to show up ***
bluetoothctl> connect <address>
bluetoothctl> select-attribute <path or uuid>

For peripheral:

GATT application is not supported yet by bluetoothctl, but I have some
plans to include support for it at some point (patch are of course
welcome), in case you are looking for a C example you can find it
here:

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/tools/gatt-service.=
c

tools/gatt-service:

gatt-service unique name: :1.152
Registered service: /service1
Get Primary: True
Get UUID: 00001802-0000-1000-8000-00805f9b34fb
Exist Includes: 00001802-0000-1000-8000-00805f9b34fb
Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value")
Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value")
Get Primary: True
Get UUID: 00001802-0000-1000-8000-00805f9b34fb
Exist Includes: 00001802-0000-1000-8000-00805f9b34fb
Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value")
Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value")
Get Primary: True
Get UUID: 00001802-0000-1000-8000-00805f9b34fb
Exist Includes: 00001802-0000-1000-8000-00805f9b34fb
Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value")
Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value")
RegisterApplication: OK
RegisterApplication: OK

bluetoothctl> advertise on

>
>> On 18 May 2017, at 18:41, Barry Byford <[email protected]> wrote:
>>
>> Szymon Janc talks through using BlueZ for BLE on this video:
>> https://youtu.be/VMDyebKT5c4
>> Slides at:
>> http://events.linuxfoundation.org/sites/events/files/slides/Doing%20Blue=
tooth%20Low%20Energy%20on%20Linux.pdf
>>
>> Should be helpful for you to understand the logic.
>>
>>
>> On 17 May 2017 at 11:35, Krasi Georgiev <[email protected]> wrote:
>>> 3 hours later and still no luck :(
>>>
>>> I am reading all api documents over and over again and can=E2=80=99t un=
derstand the logic.
>>>
>>> I think I need to register an object that implements the org.bluez.Gatt=
Profile1 interface, but what should be the bus name and object path for thi=
s object I am completely unsure...
>>>
>>> Desperate for any useful info so thanks in advance :)
>>>
>>>> On 16 May 2017, at 23:31, Krasi Georgiev <[email protected]> wrote:
>>>>
>>>> Thanks
>>>> I already looked at these, but they don=E2=80=99t cover what I need an=
d also a but high level with the dbus python package which hides most of th=
e important details.
>>>>
>>>> Anyway I think I got a better idea now. I think I need to register the=
org.bluez.GattProfile1 interface in the dbus and then call org.bluez.Pro=
fileManager1.RegisterProfile , will test it tomorrow and hopefully I will g=
et it going.
>>>>
>>>>
>>>>> On 16 May 2017, at 22:08, Barry Byford <[email protected]> wrote:
>>>>>
>>>>> Hello Krasi,
>>>>>
>>>>>
>>>>> On 16 May 2017 at 12:42, Krasi Georgiev <[email protected]> wrote:
>>>>>> Hi all
>>>>>>
>>>>>> Can you give me a quick example with a pseudo code (or using qdbus) =
for workflow steps how to setup an
>>>>>> auto connect to a device that supports given UUID service (0000180f-=
0000-1000-8000-00805f9b34fb - Battery Service)
>>>>>
>>>>> The examples for BlueZ are in the test directory. The ones you might
>>>>> find useful are:
>>>>> https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-dis=
covery
>>>>> https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-=
gatt-client
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> From what I understand all I need to do is send a call to the sytemb=
us to register the hci0 adapter to auto connect
>>>>>>
>>>>>> org.bluez.ProfileManager1.RegisterProfile , /org/bluez/Test (ObjPath=
), "00001802-0000-1000-8000-00805f9b34fb=E2=80=9D (service UUID)
>>>>>>
>>>>>> and if the discovery finds a device with such service it should auto=
connect right ?
>>>>>>
>>>>>>
>>>>>> I am not sure what is the ObjPath parameter for and when i introspec=
t I don=E2=80=99t even see the /org/bluez/GattProfile1
>>>>>>
>>>>>> I am using bluez Version 5.45 on a Raspberry Pi zero
>>>>>> Linux 4.4.50+ armv6l
>>>>>>
>>>>>>
>>>>>> I tried making the call using with gdbus, but couldn=E2=80=99t figur=
e out how to structure the osa{sv} paramters
>>>>>> also tried dbus-send , but the tool doesn=E2=80=99t seem to support =
this structures (no nesting)
>>>>>>
>>>>>>
>>>>>> I am using golang godbus bindings and the call gets executed without=
an error , but the bluetooth adapter doesn=E2=80=99t auto connect
>>>>>>
>>>>>>
>>>>>> here is the gist
>>>>>> https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa8=
3c328f038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>>>>>
>>>>>> go get github.com/godbus/dbus
>>>>>> wget https://gist.githubusercontent.com/krasi-georgiev/56f88cd188935=
78fa83c328f038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>>>>> go run main.go
>>>>>>
>>>>>>
>>>>>> I would really appreciate some useful info.
>>>>>> Thanks--
>>>>>> To unsubscribe from this list: send the line "unsubscribe linux-blue=
tooth" in
>>>>>> the body of a message to [email protected]
>>>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-bluetoo=
th" in
>>> the body of a message to [email protected]
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html



--=20
Luiz Augusto von Dentz

2017-05-18 17:00:33

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

Thanks

I watched this video 3 times, but he talks about profile registration =
and the auto connect very briefly so I tried everything that comes to =
mind, but can=E2=80=99t make it to work

If you have done it can you post some pseudo code for the code execution =
?

I am sure it is not very complicated , just still too new to the whole =
concept.


> On 18 May 2017, at 18:41, Barry Byford <[email protected]> wrote:
>=20
> Szymon Janc talks through using BlueZ for BLE on this video:
> https://youtu.be/VMDyebKT5c4
> Slides at:
> =
http://events.linuxfoundation.org/sites/events/files/slides/Doing%20Blueto=
oth%20Low%20Energy%20on%20Linux.pdf
>=20
> Should be helpful for you to understand the logic.
>=20
>=20
> On 17 May 2017 at 11:35, Krasi Georgiev <[email protected]> wrote:
>> 3 hours later and still no luck :(
>>=20
>> I am reading all api documents over and over again and can=E2=80=99t =
understand the logic.
>>=20
>> I think I need to register an object that implements the =
org.bluez.GattProfile1 interface, but what should be the bus name and =
object path for this object I am completely unsure...
>>=20
>> Desperate for any useful info so thanks in advance :)
>>=20
>>> On 16 May 2017, at 23:31, Krasi Georgiev <[email protected]> =
wrote:
>>>=20
>>> Thanks
>>> I already looked at these, but they don=E2=80=99t cover what I need =
and also a but high level with the dbus python package which hides most =
of the important details.
>>>=20
>>> Anyway I think I got a better idea now. I think I need to register =
the org.bluez.GattProfile1 interface in the dbus and then call =
org.bluez.ProfileManager1.RegisterProfile , will test it tomorrow and =
hopefully I will get it going.
>>>=20
>>>=20
>>>> On 16 May 2017, at 22:08, Barry Byford <[email protected]> wrote:
>>>>=20
>>>> Hello Krasi,
>>>>=20
>>>>=20
>>>> On 16 May 2017 at 12:42, Krasi Georgiev <[email protected]> =
wrote:
>>>>> Hi all
>>>>>=20
>>>>> Can you give me a quick example with a pseudo code (or using =
qdbus) for workflow steps how to setup an
>>>>> auto connect to a device that supports given UUID service =
(0000180f-0000-1000-8000-00805f9b34fb - Battery Service)
>>>>=20
>>>> The examples for BlueZ are in the test directory. The ones you =
might
>>>> find useful are:
>>>> =
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-discover=
y
>>>> =
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-gatt-=
client
>>>>=20
>>>>=20
>>>>=20
>>>>>=20
>>>>> =46rom what I understand all I need to do is send a call to the =
sytembus to register the hci0 adapter to auto connect
>>>>>=20
>>>>> org.bluez.ProfileManager1.RegisterProfile , /org/bluez/Test =
(ObjPath), "00001802-0000-1000-8000-00805f9b34fb=E2=80=9D (service UUID)
>>>>>=20
>>>>> and if the discovery finds a device with such service it should =
auto connect right ?
>>>>>=20
>>>>>=20
>>>>> I am not sure what is the ObjPath parameter for and when i =
introspect I don=E2=80=99t even see the /org/bluez/GattProfile1
>>>>>=20
>>>>> I am using bluez Version 5.45 on a Raspberry Pi zero
>>>>> Linux 4.4.50+ armv6l
>>>>>=20
>>>>>=20
>>>>> I tried making the call using with gdbus, but couldn=E2=80=99t =
figure out how to structure the osa{sv} paramters
>>>>> also tried dbus-send , but the tool doesn=E2=80=99t seem to =
support this structures (no nesting)
>>>>>=20
>>>>>=20
>>>>> I am using golang godbus bindings and the call gets executed =
without an error , but the bluetooth adapter doesn=E2=80=99t auto =
connect
>>>>>=20
>>>>>=20
>>>>> here is the gist
>>>>> =
https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328f=
038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>>>>=20
>>>>> go get github.com/godbus/dbus
>>>>> wget =
https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328f=
038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>>>> go run main.go
>>>>>=20
>>>>>=20
>>>>> I would really appreciate some useful info.
>>>>> Thanks--
>>>>> To unsubscribe from this list: send the line "unsubscribe =
linux-bluetooth" in
>>>>> the body of a message to [email protected]
>>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>=20
>>=20
>> --
>> To unsubscribe from this list: send the line "unsubscribe =
linux-bluetooth" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html


2017-05-18 15:41:53

by Barry Byford

[permalink] [raw]
Subject: Re: How to use GattProfile1

Szymon Janc talks through using BlueZ for BLE on this video:
https://youtu.be/VMDyebKT5c4
Slides at:
http://events.linuxfoundation.org/sites/events/files/slides/Doing%20Bluetoo=
th%20Low%20Energy%20on%20Linux.pdf

Should be helpful for you to understand the logic.


On 17 May 2017 at 11:35, Krasi Georgiev <[email protected]> wrote:
> 3 hours later and still no luck :(
>
> I am reading all api documents over and over again and can=E2=80=99t unde=
rstand the logic.
>
> I think I need to register an object that implements the org.bluez.GattPr=
ofile1 interface, but what should be the bus name and object path for this =
object I am completely unsure...
>
> Desperate for any useful info so thanks in advance :)
>
>> On 16 May 2017, at 23:31, Krasi Georgiev <[email protected]> wrote:
>>
>> Thanks
>> I already looked at these, but they don=E2=80=99t cover what I need and =
also a but high level with the dbus python package which hides most of the =
important details.
>>
>> Anyway I think I got a better idea now. I think I need to register the =
org.bluez.GattProfile1 interface in the dbus and then call org.bluez.Profi=
leManager1.RegisterProfile , will test it tomorrow and hopefully I will get=
it going.
>>
>>
>>> On 16 May 2017, at 22:08, Barry Byford <[email protected]> wrote:
>>>
>>> Hello Krasi,
>>>
>>>
>>> On 16 May 2017 at 12:42, Krasi Georgiev <[email protected]> wrote:
>>>> Hi all
>>>>
>>>> Can you give me a quick example with a pseudo code (or using qdbus) fo=
r workflow steps how to setup an
>>>> auto connect to a device that supports given UUID service (0000180f-00=
00-1000-8000-00805f9b34fb - Battery Service)
>>>
>>> The examples for BlueZ are in the test directory. The ones you might
>>> find useful are:
>>> https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-disco=
very
>>> https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-ga=
tt-client
>>>
>>>
>>>
>>>>
>>>> From what I understand all I need to do is send a call to the sytembus=
to register the hci0 adapter to auto connect
>>>>
>>>> org.bluez.ProfileManager1.RegisterProfile , /org/bluez/Test (ObjPath),=
"00001802-0000-1000-8000-00805f9b34fb=E2=80=9D (service UUID)
>>>>
>>>> and if the discovery finds a device with such service it should auto c=
onnect right ?
>>>>
>>>>
>>>> I am not sure what is the ObjPath parameter for and when i introspect =
I don=E2=80=99t even see the /org/bluez/GattProfile1
>>>>
>>>> I am using bluez Version 5.45 on a Raspberry Pi zero
>>>> Linux 4.4.50+ armv6l
>>>>
>>>>
>>>> I tried making the call using with gdbus, but couldn=E2=80=99t figure =
out how to structure the osa{sv} paramters
>>>> also tried dbus-send , but the tool doesn=E2=80=99t seem to support th=
is structures (no nesting)
>>>>
>>>>
>>>> I am using golang godbus bindings and the call gets executed without a=
n error , but the bluetooth adapter doesn=E2=80=99t auto connect
>>>>
>>>>
>>>> here is the gist
>>>> https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c=
328f038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>>>
>>>> go get github.com/godbus/dbus
>>>> wget https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578=
fa83c328f038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>>> go run main.go
>>>>
>>>>
>>>> I would really appreciate some useful info.
>>>> Thanks--
>>>> To unsubscribe from this list: send the line "unsubscribe linux-blueto=
oth" in
>>>> the body of a message to [email protected]
>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html

2017-05-17 10:35:28

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

3 hours later and still no luck :(

I am reading all api documents over and over again and can=E2=80=99t =
understand the logic.=20

I think I need to register an object that implements the =
org.bluez.GattProfile1 interface, but what should be the bus name and =
object path for this object I am completely unsure...

Desperate for any useful info so thanks in advance :)

> On 16 May 2017, at 23:31, Krasi Georgiev <[email protected]> wrote:
>=20
> Thanks=20
> I already looked at these, but they don=E2=80=99t cover what I need =
and also a but high level with the dbus python package which hides most =
of the important details.
>=20
> Anyway I think I got a better idea now. I think I need to register the =
org.bluez.GattProfile1 interface in the dbus and then call =
org.bluez.ProfileManager1.RegisterProfile , will test it tomorrow and =
hopefully I will get it going.
>=20
>=20
>> On 16 May 2017, at 22:08, Barry Byford <[email protected]> wrote:
>>=20
>> Hello Krasi,
>>=20
>>=20
>> On 16 May 2017 at 12:42, Krasi Georgiev <[email protected]> wrote:
>>> Hi all
>>>=20
>>> Can you give me a quick example with a pseudo code (or using qdbus) =
for workflow steps how to setup an
>>> auto connect to a device that supports given UUID service =
(0000180f-0000-1000-8000-00805f9b34fb - Battery Service)
>>=20
>> The examples for BlueZ are in the test directory. The ones you might
>> find useful are:
>> =
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-discover=
y
>> =
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-gatt-=
client
>>=20
>>=20
>>=20
>>>=20
>>> =46rom what I understand all I need to do is send a call to the =
sytembus to register the hci0 adapter to auto connect
>>>=20
>>> org.bluez.ProfileManager1.RegisterProfile , /org/bluez/Test =
(ObjPath), "00001802-0000-1000-8000-00805f9b34fb=E2=80=9D (service UUID)
>>>=20
>>> and if the discovery finds a device with such service it should auto =
connect right ?
>>>=20
>>>=20
>>> I am not sure what is the ObjPath parameter for and when i =
introspect I don=E2=80=99t even see the /org/bluez/GattProfile1
>>>=20
>>> I am using bluez Version 5.45 on a Raspberry Pi zero
>>> Linux 4.4.50+ armv6l
>>>=20
>>>=20
>>> I tried making the call using with gdbus, but couldn=E2=80=99t =
figure out how to structure the osa{sv} paramters
>>> also tried dbus-send , but the tool doesn=E2=80=99t seem to support =
this structures (no nesting)
>>>=20
>>>=20
>>> I am using golang godbus bindings and the call gets executed without =
an error , but the bluetooth adapter doesn=E2=80=99t auto connect
>>>=20
>>>=20
>>> here is the gist
>>> =
https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328f=
038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>>=20
>>> go get github.com/godbus/dbus
>>> wget =
https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328f=
038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>> go run main.go
>>>=20
>>>=20
>>> I would really appreciate some useful info.
>>> Thanks--
>>> To unsubscribe from this list: send the line "unsubscribe =
linux-bluetooth" in
>>> the body of a message to [email protected]
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>=20


2017-05-16 20:31:26

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

Thanks=20
I already looked at these, but they don=E2=80=99t cover what I need and =
also a but high level with the dbus python package which hides most of =
the important details.

Anyway I think I got a better idea now. I think I need to register the =
org.bluez.GattProfile1 interface in the dbus and then call =
org.bluez.ProfileManager1.RegisterProfile , will test it tomorrow and =
hopefully I will get it going.


> On 16 May 2017, at 22:08, Barry Byford <[email protected]> wrote:
>=20
> Hello Krasi,
>=20
>=20
> On 16 May 2017 at 12:42, Krasi Georgiev <[email protected]> wrote:
>> Hi all
>>=20
>> Can you give me a quick example with a pseudo code (or using qdbus) =
for workflow steps how to setup an
>> auto connect to a device that supports given UUID service =
(0000180f-0000-1000-8000-00805f9b34fb - Battery Service)
>=20
> The examples for BlueZ are in the test directory. The ones you might
> find useful are:
> =
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-discover=
y
> =
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-gatt-=
client
>=20
>=20
>=20
>>=20
>> =46rom what I understand all I need to do is send a call to the =
sytembus to register the hci0 adapter to auto connect
>>=20
>> org.bluez.ProfileManager1.RegisterProfile , /org/bluez/Test =
(ObjPath), "00001802-0000-1000-8000-00805f9b34fb=E2=80=9D (service UUID)
>>=20
>> and if the discovery finds a device with such service it should auto =
connect right ?
>>=20
>>=20
>> I am not sure what is the ObjPath parameter for and when i introspect =
I don=E2=80=99t even see the /org/bluez/GattProfile1
>>=20
>> I am using bluez Version 5.45 on a Raspberry Pi zero
>> Linux 4.4.50+ armv6l
>>=20
>>=20
>> I tried making the call using with gdbus, but couldn=E2=80=99t figure =
out how to structure the osa{sv} paramters
>> also tried dbus-send , but the tool doesn=E2=80=99t seem to support =
this structures (no nesting)
>>=20
>>=20
>> I am using golang godbus bindings and the call gets executed without =
an error , but the bluetooth adapter doesn=E2=80=99t auto connect
>>=20
>>=20
>> here is the gist
>> =
https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328f=
038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>>=20
>> go get github.com/godbus/dbus
>> wget =
https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328f=
038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>> go run main.go
>>=20
>>=20
>> I would really appreciate some useful info.
>> Thanks--
>> To unsubscribe from this list: send the line "unsubscribe =
linux-bluetooth" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html


2017-05-16 19:08:40

by Barry Byford

[permalink] [raw]
Subject: Re: How to use GattProfile1

Hello Krasi,


On 16 May 2017 at 12:42, Krasi Georgiev <[email protected]> wrote:
> Hi all
>
> Can you give me a quick example with a pseudo code (or using qdbus) for =
workflow steps how to setup an
> auto connect to a device that supports given UUID service (0000180f-0000-=
1000-8000-00805f9b34fb - Battery Service)

The examples for BlueZ are in the test directory. The ones you might
find useful are:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-discovery
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-gatt-c=
lient



>
> From what I understand all I need to do is send a call to the sytembus to=
register the hci0 adapter to auto connect
>
> org.bluez.ProfileManager1.RegisterProfile , /org/bluez/Test (ObjPath), "0=
0001802-0000-1000-8000-00805f9b34fb=E2=80=9D (service UUID)
>
> and if the discovery finds a device with such service it should auto conn=
ect right ?
>
>
> I am not sure what is the ObjPath parameter for and when i introspect I d=
on=E2=80=99t even see the /org/bluez/GattProfile1
>
> I am using bluez Version 5.45 on a Raspberry Pi zero
> Linux 4.4.50+ armv6l
>
>
> I tried making the call using with gdbus, but couldn=E2=80=99t figure out=
how to structure the osa{sv} paramters
> also tried dbus-send , but the tool doesn=E2=80=99t seem to support this =
structures (no nesting)
>
>
> I am using golang godbus bindings and the call gets executed without an e=
rror , but the bluetooth adapter doesn=E2=80=99t auto connect
>
>
> here is the gist
> https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa83c328=
f038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
>
> go get github.com/godbus/dbus
> wget https://gist.githubusercontent.com/krasi-georgiev/56f88cd18893578fa8=
3c328f038479d6/raw/25f11f2fd7b55d82590732fa8f253febda623645/main.go
> go run main.go
>
>
> I would really appreciate some useful info.
> Thanks--
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html

Subject: RE: How to use GattProfile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DA6NTM6QjYgU2VydmljZXNSZXNvbHZlZDoNCj4+PiB5ZXMNCj4+PiBbaVRBRyAgICAgICAgICAg
IF0jDQo+PiANCj4gDQoNCg==

2017-06-18 11:23:26

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

Thanks
yes it works even the latest HEAD with bluetoothctl
=
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=3D2179f571e1=
94c2c4635f3501d448a8a934c2c998


I was testing with=20
=
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=3Df585e7ac8d=
a3ba20fc465e3c255d2a88b7390977
client: Fix using RegisterProfile
and this one didn=E2=80=99t work, so something after that fixed the =
problem.


> On 16 Jun 2017, at 17:54, Boris Passerat de la chapelle =
<[email protected]> wrote:
>=20
>> Strange
>=20
>> I compiled bluetoothctl after the patch that should fix it.
>=20
>> Did you do the steps similar to my bluetoothctl logs?=20
>=20
> I did not use bluetoothctl as RegisterApplication was not available =
yet.
> In my application I have these steps :
>=20
> 0. - RegisterApplication with UUID
> 1. - scan device
> 2. - pair wanted device
> 3. - once services resolved do some actions=20
> 4. - device disconnect
> 5. - device power up and here I have automatic reconnection=20
>=20
>> What device did you auto connect to ?
>=20
> I connect medical devices as :
> =
http://www.andonline.com/medical/products/details.php?catname=3DBlood_Pres=
sure&product_num=3DUA-651BLE
> =
http://www.andonline.com/medical/products/details.php?catname=3DScales&pro=
duct_num=3DUC-350BLE
> and 5 or 6 other devices
>=20
> =46rom 5.41 I have to revert this commit on bluez : =
89ca735e57417ec296a41d8c31d0d0d5c66ce2a9
>=20
>=20
>=20
>> On 16 Jun 2017, at 09:16, Boris Passerat de la chapelle =
<[email protected]> wrote:
>>=20
>> It is working on my system with a small patch on bluez 5.45.
>> I got it working without patch up to bluez 5.41 .
>>=20
>>=20
>>=20
>>=20
>> -----Message d'origine-----
>> De : Krasi Georgiev [mailto:[email protected]] Envoy=C3=A9 : jeudi =
15=20
>> juin 2017 22:44 =C3=80 : Boris Passerat de la chapelle =
<[email protected]>=20
>> Cc : Luiz Augusto von Dentz <[email protected]>; Barry Byford=20
>> <[email protected]>; Bluez mailing list=20
>> <[email protected]> Objet : Re: How to use GattProfile1
>>=20
>> Can someone else try if the auto connect works, or am I doing it =
incorrectly ?
>>=20
>>> On 4 Jun 2017, at 16:15, Krasi Georgiev <[email protected]> =
wrote:
>>>=20
>>> just tried with the latest master and I still can=E2=80=99t get it =
to auto=20
>>> connect
>>>=20
>>>=20
>>> Here is what happens so let me know if I am doing in the correct=20
>>> sequence
>>>=20
>>>=20
>>> [bluetooth]# devices
>>> Device 34:31:11:00:CD:7A Samsung Galaxy S IV Device =
04:52:C7:57:85:84=20
>>> Bose Mini II SoundLink Device FF:FF:50:00:53:B6 iTAG
>>>=20
>>> [bluetooth]# power on
>>> Changing power on succeeded
>>> [CHG] Controller B8:27:EB:D5:54:1C Powered: yes [bluetooth]# connect
>>> FF:FF:50:00:53:B6 Attempting to connect to FF:FF:50:00:53:B6 [CHG]=20=

>>> Device FF:FF:50:00:53:B6 Connected: yes Connection successful [NEW]=20=

>>> 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 UUIDs:=20
>>> 00001800-0000-1000-8000-00805f9b34fb
>>> [CHG] Device FF:FF:50:00:53:B6 UUIDs:=20
>>> 00001802-0000-1000-8000-00805f9b34fb
>>> [CHG] Device FF:FF:50:00:53:B6 UUIDs:=20
>>> 0000180f-0000-1000-8000-00805f9b34fb
>>> [CHG] Device FF:FF:50:00:53:B6 UUIDs:=20
>>> 0000ffe0-0000-1000-8000-00805f9b34fb
>>> [CHG] Device FF:FF:50:00:53:B6 ServicesResolved: yes [CHG] Device
>>> FF:FF:50:00:53:B6 Icon is nil [CHG] Device FF:FF:50:00:53:B6=20
>>> Appearance is nil
>>>=20
>>> [iTAG ]# register-application =
0000180f-0000-1000-8000-00805f9b34fb
>>> Application registered
>>> [CHG] Device FF:FF:50:00:53:B6 ServicesResolved: no [CHG] Device
>>> FF:FF:50:00:53:B6 Connected: no
>>>=20
>>>=20
>>> Here i power cycled the iTag and waited few minutes but bluetoothctl =
didn=E2=80=99t reconnect so I did it manually.
>>>=20
>>>=20
>>> [bluetooth]# info FF:FF:50:00:53:B6
>>> Device FF:FF:50:00:53:B6
>>> Name: iTAG
>>> Alias: iTAG
>>> Paired: no
>>> Trusted: yes
>>> Blocked: no
>>> Connected: no
>>> LegacyPairing: no
>>> UUID: Generic Access Profile =
(00001800-0000-1000-8000-00805f9b34fb)
>>> UUID: Immediate Alert =
(00001802-0000-1000-8000-00805f9b34fb)
>>> UUID: Battery Service =
(0000180f-0000-1000-8000-00805f9b34fb)
>>> UUID: Unknown =
(0000ffe0-0000-1000-8000-00805f9b34fb)
>>> [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=20
>>> Connection successful [CHG] Device FF:FF:50:00:53:B6 =
ServicesResolved:
>>> yes
>>> [iTAG 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DAwLTgwMDAtMDA4MDVmOWIzNGZiKQ0KPj4gCVVVSUQ6IFVua25v
d24gICAgICAgICAgICAgICAgICAgKDAwMDBmZmUwLTAwMDAtMTAwMC04MDAwLTAwODA1ZjliMzRm
YikNCj4+IFtibHVldG9vdGhdIyBjb25uZWN0IEZGOkZGOjUwOjAwOjUzOkI2IEF0dGVtcHRpbmcg
dG8gY29ubmVjdCB0bw0KPj4gRkY6RkY6NTA6MDA6NTM6QjYgW0NIR10gRGV2aWNlIEZGOkZGOjUw
OjAwOjUzOkI2IENvbm5lY3RlZDogeWVzIA0KPj4gQ29ubmVjdGlvbiBzdWNjZXNzZnVsIFtDSEdd
IERldmljZSBGRjpGRjo1MDowMDo1MzpCNiBTZXJ2aWNlc1Jlc29sdmVkOg0KPj4geWVzDQo+PiBb
aVRBRyAgICAgICAgICAgIF0jDQo+IA0KDQo=

2017-06-16 14:25:24

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

Strange

I compiled bluetoothctl after the patch that should fix it.

Did you do the steps similar to my bluetoothctl logs?=20

What device did you auto connect to ?


> On 16 Jun 2017, at 09:16, Boris Passerat de la chapelle =
<[email protected]> wrote:
>=20
> It is working on my system with a small patch on bluez 5.45.
> I got it working without patch up to bluez 5.41 .
>=20
>=20
>=20
>=20
> -----Message d'origine-----
> De : Krasi Georgiev [mailto:[email protected]]=20
> Envoy=C3=A9 : jeudi 15 juin 2017 22:44
> =C3=80 : Boris Passerat de la chapelle <[email protected]>
> Cc : Luiz Augusto von Dentz <[email protected]>; Barry Byford =
<[email protected]>; Bluez mailing list =
<[email protected]>
> Objet : Re: How to use GattProfile1
>=20
> Can someone else try if the auto connect works, or am I doing it =
incorrectly ?
>=20
>> On 4 Jun 2017, at 16:15, Krasi Georgiev <[email protected]> wrote:
>>=20
>> just tried with the latest master and I still can=E2=80=99t get it to =
auto=20
>> connect
>>=20
>>=20
>> Here is what happens so let me know if I am doing in the correct=20
>> sequence
>>=20
>>=20
>> [bluetooth]# devices
>> Device 34:31:11:00:CD:7A Samsung Galaxy S IV Device 04:52:C7:57:85:84=20=

>> Bose Mini II SoundLink Device FF:FF:50:00:53:B6 iTAG
>>=20
>> [bluetooth]# power on
>> Changing power on succeeded
>> [CHG] Controller B8:27:EB:D5:54:1C Powered: yes [bluetooth]# connect=20=

>> FF:FF:50:00:53:B6 Attempting to connect to FF:FF:50:00:53:B6 [CHG]=20
>> Device FF:FF:50:00:53:B6 Connected: yes Connection successful [NEW]=20=

>> 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 UUIDs:=20
>> 00001800-0000-1000-8000-00805f9b34fb
>> [CHG] Device FF:FF:50:00:53:B6 UUIDs:=20
>> 00001802-0000-1000-8000-00805f9b34fb
>> [CHG] Device FF:FF:50:00:53:B6 UUIDs:=20
>> 0000180f-0000-1000-8000-00805f9b34fb
>> [CHG] Device FF:FF:50:00:53:B6 UUIDs:=20
>> 0000ffe0-0000-1000-8000-00805f9b34fb
>> [CHG] Device FF:FF:50:00:53:B6 ServicesResolved: yes [CHG] Device=20
>> FF:FF:50:00:53:B6 Icon is nil [CHG] Device FF:FF:50:00:53:B6=20
>> Appearance is nil
>>=20
>> [iTAG ]# register-application =
0000180f-0000-1000-8000-00805f9b34fb
>> Application registered
>> [CHG] Device FF:FF:50:00:53:B6 ServicesResolved: no [CHG] Device=20
>> FF:FF:50:00:53:B6 Connected: no
>>=20
>>=20
>> Here i power cycled the iTag and waited few minutes but bluetoothctl =
didn=E2=80=99t reconnect so I did it manually.
>>=20
>>=20
>> [bluetooth]# info FF:FF:50:00:53:B6
>> Device FF:FF:50:00:53:B6
>> Name: iTAG
>> Alias: iTAG
>> Paired: no
>> Trusted: yes
>> Blocked: no
>> Connected: no
>> LegacyPairing: no
>> UUID: Generic Access Profile =
(00001800-0000-1000-8000-00805f9b34fb)
>> UUID: Immediate Alert =
(00001802-0000-1000-8000-00805f9b34fb)
>> UUID: Battery Service =
(0000180f-0000-1000-8000-00805f9b34fb)
>> UUID: Unknown =
(0000ffe0-0000-1000-8000-00805f9b34fb)
>> [bluetooth]# connect FF:FF:50:00:53:B6 Attempting to connect to=20
>> FF:FF:50:00:53:B6 [CHG] Device FF:FF:50:00:53:B6 Connected: yes=20
>> Connection successful [CHG] Device FF:FF:50:00:53:B6 =
ServicesResolved:=20
>> yes
>> [iTAG ]#
>=20


Subject: RE: How to use GattProfile1

SXQgaXMgd29ya2luZyBvbiBteSBzeXN0ZW0gd2l0aCBhIHNtYWxsIHBhdGNoIG9uIGJsdWV6IDUu
NDUuDQpJIGdvdCBpdCB3b3JraW5nIHdpdGhvdXQgcGF0Y2ggdXAgdG8gYmx1ZXogNS40MSAuDQoN
Cg0KDQoNCi0tLS0tTWVzc2FnZSBkJ29yaWdpbmUtLS0tLQ0KRGXCoDogS3Jhc2kgR2VvcmdpZXYg
W21haWx0bzprcmFzaS5yb290QGdtYWlsLmNvbV0gDQpFbnZvecOpwqA6IGpldWRpIDE1IGp1aW4g
MjAxNyAyMjo0NA0Kw4DCoDogQm9yaXMgUGF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ZTAtMDAwMC0xMDAwLTgwMDAtMDA4MDVmOWIzNGZiKQ0KPiBbYmx1ZXRvb3RoXSMgY29ubmVj
dCBGRjpGRjo1MDowMDo1MzpCNiBBdHRlbXB0aW5nIHRvIGNvbm5lY3QgdG8gDQo+IEZGOkZGOjUw
OjAwOjUzOkI2IFtDSEddIERldmljZSBGRjpGRjo1MDowMDo1MzpCNiBDb25uZWN0ZWQ6IHllcyAN
Cj4gQ29ubmVjdGlvbiBzdWNjZXNzZnVsIFtDSEddIERldmljZSBGRjpGRjo1MDowMDo1MzpCNiBT
ZXJ2aWNlc1Jlc29sdmVkOiANCj4geWVzDQo+IFtpVEFHICAgICAgICAgICAgXSMNCg0K

2017-06-15 20:43:51

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

Can someone else try if the auto connect works, or am I doing it =
incorrectly ?

> On 4 Jun 2017, at 16:15, Krasi Georgiev <[email protected]> wrote:
>=20
> just tried with the latest master and I still can=E2=80=99t get it to =
auto connect
>=20
>=20
> Here is what happens so let me know if I am doing in the correct =
sequence
>=20
>=20
> [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
>=20
> [bluetooth]# power on
> Changing power on succeeded
> [CHG] Controller B8:27:EB:D5:54:1C Powered: yes
> [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
> [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 UUIDs: =
00001800-0000-1000-8000-00805f9b34fb
> [CHG] Device FF:FF:50:00:53:B6 UUIDs: =
00001802-0000-1000-8000-00805f9b34fb
> [CHG] Device FF:FF:50:00:53:B6 UUIDs: =
0000180f-0000-1000-8000-00805f9b34fb
> [CHG] Device FF:FF:50:00:53:B6 UUIDs: =
0000ffe0-0000-1000-8000-00805f9b34fb
> [CHG] Device FF:FF:50:00:53:B6 ServicesResolved: yes
> [CHG] Device FF:FF:50:00:53:B6 Icon is nil
> [CHG] Device FF:FF:50:00:53:B6 Appearance is nil
>=20
> [iTAG ]# register-application =
0000180f-0000-1000-8000-00805f9b34fb
> Application registered
> [CHG] Device FF:FF:50:00:53:B6 ServicesResolved: no
> [CHG] Device FF:FF:50:00:53:B6 Connected: no
>=20
>=20
> Here i power cycled the iTag and waited few minutes but bluetoothctl =
didn=E2=80=99t reconnect so I did it manually.
>=20
>=20
> [bluetooth]# info FF:FF:50:00:53:B6
> Device FF:FF:50:00:53:B6
> Name: iTAG
> Alias: iTAG
> Paired: no
> Trusted: yes
> Blocked: no
> Connected: no
> LegacyPairing: no
> UUID: Generic Access Profile =
(00001800-0000-1000-8000-00805f9b34fb)
> UUID: Immediate Alert =
(00001802-0000-1000-8000-00805f9b34fb)
> UUID: Battery Service =
(0000180f-0000-1000-8000-00805f9b34fb)
> UUID: Unknown =
(0000ffe0-0000-1000-8000-00805f9b34fb)
> [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 ServicesResolved: yes
> [iTAG ]#


2017-06-04 13:15:03

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

just tried with the latest master and I still can=E2=80=99t get it to =
auto connect


Here is what happens so let me know if I am doing in the correct =
sequence


[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]# power on
Changing power on succeeded
[CHG] Controller B8:27:EB:D5:54:1C Powered: yes
[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
[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 UUIDs: =
00001800-0000-1000-8000-00805f9b34fb
[CHG] Device FF:FF:50:00:53:B6 UUIDs: =
00001802-0000-1000-8000-00805f9b34fb
[CHG] Device FF:FF:50:00:53:B6 UUIDs: =
0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device FF:FF:50:00:53:B6 UUIDs: =
0000ffe0-0000-1000-8000-00805f9b34fb
[CHG] Device FF:FF:50:00:53:B6 ServicesResolved: yes
[CHG] Device FF:FF:50:00:53:B6 Icon is nil
[CHG] Device FF:FF:50:00:53:B6 Appearance is nil

[iTAG ]# register-application =
0000180f-0000-1000-8000-00805f9b34fb
Application registered
[CHG] Device FF:FF:50:00:53:B6 ServicesResolved: no
[CHG] Device FF:FF:50:00:53:B6 Connected: no


Here i power cycled the iTag and waited few minutes but bluetoothctl =
didn=E2=80=99t reconnect so I did it manually.


[bluetooth]# info FF:FF:50:00:53:B6
Device FF:FF:50:00:53:B6
Name: iTAG
Alias: iTAG
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile =
(00001800-0000-1000-8000-00805f9b34fb)
UUID: Immediate Alert =
(00001802-0000-1000-8000-00805f9b34fb)
UUID: Battery Service =
(0000180f-0000-1000-8000-00805f9b34fb)
UUID: Unknown =
(0000ffe0-0000-1000-8000-00805f9b34fb)
[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 ServicesResolved: yes
[iTAG ]#=

2017-06-04 13:14:09

by Krasi Georgiev

[permalink] [raw]
Subject: Re: How to use GattProfile1

just tried with the latest master and I still can=E2=80=99t get it to =
auto connect


Here is what happens so let me know if I am doing in the correct =
sequence


[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]# power on
Changing power on succeeded
[CHG] Controller B8:27:EB:D5:54:1C Powered: yes
[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
[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 UUIDs: =
00001800-0000-1000-8000-00805f9b34fb
[CHG] Device FF:FF:50:00:53:B6 UUIDs: =
00001802-0000-1000-8000-00805f9b34fb
[CHG] Device FF:FF:50:00:53:B6 UUIDs: =
0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device FF:FF:50:00:53:B6 UUIDs: =
0000ffe0-0000-1000-8000-00805f9b34fb
[CHG] Device FF:FF:50:00:53:B6 ServicesResolved: yes
[CHG] Device FF:FF:50:00:53:B6 Icon is nil
[CHG] Device FF:FF:50:00:53:B6 Appearance is nil

[iTAG ]# register-application =
0000180f-0000-1000-8000-00805f9b34fb
Application registered
[CHG] Device FF:FF:50:00:53:B6 ServicesResolved: no
[CHG] Device FF:FF:50:00:53:B6 Connected: no


Here i power cycled the iTag and waited few minutes but bluetoothctl =
didn=E2=80=99t reconnect so I did it manually.


[bluetooth]# info FF:FF:50:00:53:B6
Device FF:FF:50:00:53:B6
Name: iTAG
Alias: iTAG
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile =
(00001800-0000-1000-8000-00805f9b34fb)
UUID: Immediate Alert =
(00001802-0000-1000-8000-00805f9b34fb)
UUID: Battery Service =
(0000180f-0000-1000-8000-00805f9b34fb)
UUID: Unknown =
(0000ffe0-0000-1000-8000-00805f9b34fb)
[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 ServicesResolved: yes
[iTAG ]#