Return-Path: Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: How to use GattProfile1 From: Krasi Georgiev In-Reply-To: Date: Fri, 16 Jun 2017 17:25:24 +0300 Cc: Luiz Augusto von Dentz , Barry Byford <31baz66@gmail.com>, Bluez mailing list Message-Id: References: <4CF902B9-8221-45E7-9868-52BF18A5EC5D@gmail.com> <969738CC-B335-4E2F-BF3C-441110279871@gmail.com> <4AE62BC6-BD11-44C7-9A0E-BC3159ED80DF@gmail.com> <4C907B25-D8E4-462C-89FA-AB312A27CBE9@gmail.com> <5CDE162E-4828-4485-BF95-50C67DB93B77@gmail.com> <758C2FAB-DBF1-4B88-866D-F036B23B3C95@gmail.com> <3290BB41-234F-4D7B-BF37-0CC2966CB416@gmail.com> <5D01EC8C-E51B-4F89-8F9B-5D7946674116@gmail.com> <329D353B-8799-434A-9049-AE8904429A78@gmail.com> <39cb9ea22f14454d83b6e62e59bdc955@sjbsvr074.groupe.local> <8D8EB08D-CA68-400C-A987-8ADA4B45E2C2@gmail.com> To: Boris Passerat de la chapelle Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 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 = 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:krasi.root@gmail.com]=20 > Envoy=C3=A9 : jeudi 15 juin 2017 22:44 > =C3=80 : Boris Passerat de la chapelle > Cc : Luiz Augusto von Dentz ; Barry Byford = <31baz66@gmail.com>; Bluez mailing list = > 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 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