Return-Path: MIME-Version: 1.0 In-Reply-To: References: <20160302204223.GA18853@kurtmc.Eroad.local> Date: Thu, 3 Mar 2016 12:20:07 +0100 Message-ID: Subject: Re: GATT server example issues in BlueZ From: Ivan Deviatkin To: Luiz Augusto von Dentz Cc: Kurt McAlpine , "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Luiz, > On 3 March 2016 at 10:34, Luiz Augusto von Dentz wrote: > Do you guys remember that you have to advertise to be able to connect: > > ... > > Even with this I couldn't manage to connect using Android, even though > it can find it but there is nothing set as a name (possible a bug in > our end), if I do enable BR/EDR than it attempts to connect over it > (priceless!) instead of LE where it got the advertisement. > I have setup my Bluetooth dongle via: " # activate bluetooth sudo hciconfig hci0 up sudo hciconfig hci0 pscan # set advertise data: "hello world" sudo hcitool -i hci0 cmd 0x08 0x0008 48 45 4c 4c 4f 57 4f 52 4c 44 # start advertising as connectable sudo hciconfig hci0 leadv " And it works OK (pairing, retrieveing of services list) for BlueZ 5.27 in connection to my Android phone, except issues with name of services. Is anything missed or should be done additionally for latest BlueZ?