linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jérémie Scheer" <j.scheer@albus.fr>
To: Boris Passerat de La Chapelle <boris.passerat@davidson.fr>,
	linux-bluetooth@vger.kernel.org
Subject: Re: Error on executing compiled bluetoothd with plugins
Date: Mon, 15 Jun 2015 15:58:51 +0200	[thread overview]
Message-ID: <557EDA1B.3050700@albus.fr> (raw)
In-Reply-To: <557E998C.6080300@albus.fr>

I finally found the answer to my problem : it is due to the fact that 
most of the plugins and profiles uses src/attrib-server.h, that is 
deprecated, instead of the new src/gatt-database.c. So all plugins that 
still use attrib-server.h don't function anymore.

But there is one tool that can be used as an example : 
tools/btgatt-server.c.

Jérémie

Le 15/06/2015 11:23, Jérémie Scheer a écrit :
>
>
> Le 15/06/2015 11:12, Jérémie Scheer a écrit :
>> Hi Boris,
>>
>> Le 12/06/2015 17:52, Boris Passerat de La Chapelle a écrit :
>>> Hi Jérémie
>>>
>>> -----Message d'origine-----
>>> De : linux-bluetooth-owner@vger.kernel.org 
>>> [mailto:linux-bluetooth-owner@vger.kernel.org] De la part de Jérémie 
>>> Scheer
>>> Envoyé : vendredi 12 juin 2015 17:26
>>> À : linux-bluetooth@vger.kernel.org
>>> Objet : Error on executing compiled >bluetoothd with plugins
>>>
>>>> Hello,
>>>>
>>>> I downloaded Bluez 5.30 sources and compiled it against a Debian 
>>>> Jessie (Linux 3.16).
>>>>
>>>> When I try to execute it, I receive the following errors :
>>>> bluetoothd[819]: Bluetooth daemon 5.30
>>>> bluetoothd[819]: Starting SDP server
>>>> bluetoothd[819]: Ignoring (cli) hostname
>>>> bluetoothd[819]: Ignoring (cli) wiimote
>>>> bluetoothd[819]: Ignoring (cli) autopair
>>>> bluetoothd[819]: Ignoring (cli) policy
>>>> bluetoothd[819]: Ignoring (cli) gatt_example
>>>> bluetoothd[819]: Ignoring (cli) neard
>>>> bluetoothd[819]: Ignoring (cli) sap
>>>> bluetoothd[819]: Ignoring (cli) a2dp
>>>> bluetoothd[819]: Ignoring (cli) avrcp
>>>> bluetoothd[819]: Ignoring (cli) network
>>>> bluetoothd[819]: Ignoring (cli) input
>>>> bluetoothd[819]: Ignoring (cli) hog
>>>> bluetoothd[819]: Ignoring (cli) health
>>>> bluetoothd[819]: Ignoring (cli) gap
>>>> bluetoothd[819]: Ignoring (cli) scanparam
>>>> bluetoothd[819]: Ignoring (cli) deviceinfo
>>>> bluetoothd[819]: Ignoring (cli) alert
>>>> bluetoothd[819]: Ignoring (cli) proximity
>>>> bluetoothd[819]: Ignoring (cli) thermometer
>>>> bluetoothd[819]: Ignoring (cli) heartrate
>>>> bluetoothd[819]: Ignoring (cli) cyclingspeed
>>>> bluetoothd[819]: Ignoring (cli) external_dummy
>>>> bluetoothd[819]: Bluetooth management interface 1.6 initialized
>>>> bluetoothd[819]: Failed to obtain handles for "Service Changed"
>>>> characteristic
>>>> bluetoothd[819]: Failed to register org.bluez.LEAdvertisingManager1
>>>> bluetoothd[819]: Failed to register LEAdvertisingManager1 interface 
>>>> for adapter
>>>> bluetoothd[819]: Not enough free handles to register service
>>>> bluetoothd[819]: Current Time Service could not be registered
>>>> bluetoothd[819]: gatt-time-server: Input/output error (5)
>>>> bluetoothd[819]: hci0 Load Connection Parameters failed: Unknown 
>>>> Command
>>>> (0x01)
>>>> So when I reset my Bluetooth device hci0 and try to advertise LE, I 
>>>> can't see nothing on an iPad for instance.
>>>> When compiling Bluez, I configured it with this command :
>>>> ./configure CFLAGS="$CFLAGS --Wno-sign-compare" --disable-udev 
>>>> --prefix=$PWD --enable-experimental ->-enable-maintainer-mode
>>>> Is there something I missed ?
>>>> Jérémie
>>> I had the same issue after activating all plugins. You can disable 
>>> plugin started with bluetoothd with the option --noplugin= hostname, 
>>> wiimote... and then it should work !
>> In fact I would like to activate time plugin or another one to be 
>> able to create my own peripheral from an existing plugin.
>>
>> But now I've another problem : there are always the same error 
>> messages but when I advertise Bluetooth LE with "hciconfig hci0 
>> leadv", and after the client is connected and has discover services, 
>> bluetoothd tells me that :
>> Can't store info for private addressed device 
>> /org/bluez/hci0/dev_59_57_7C_B6_E5_5F
>> Can't store services for private addressed device 
>> /org/bluez/hci0/dev_59_57_7C_B6_E5_5F
>> Unable to register GATT service with handle 0x0001 for device 
>> 59_57_7C_B6_E5_5F
>> Unable to register GATT service with handle 0x0006 for device 
>> 59_57_7C_B6_E5_5F
>> Unable to register GATT service with handle 0x000a for device 
>> 59_57_7C_B6_E5_5F
>> ....
> In fact it happens just after the client has been connected to my 
> peripheral, before he even tries to discover services. So when he 
> tries to discover services, there is nothing for him to discover.
>>
>> So the client doesn't see any services or characteristics.
>>
>> I tried to run bluetoothd with these commands :
>> ./src/bluetoothd --plugin=time -n
>> ./src/bluetoothd -n
>>>
>>> Boris
>>>
>>> -- 
>>> To unsubscribe from this list: send the line "unsubscribe 
>>> linux-bluetooth" in
>>> the body of a message to majordomo@vger.kernel.org
>>> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


      reply	other threads:[~2015-06-15 13:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-12 15:26 Error on executing compiled bluetoothd with plugins Jérémie Scheer
2015-06-12 15:52 ` Boris Passerat de La Chapelle
2015-06-15  9:12   ` Jérémie Scheer
2015-06-15  9:23     ` Jérémie Scheer
2015-06-15 13:58       ` Jérémie Scheer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=557EDA1B.3050700@albus.fr \
    --to=j.scheer@albus.fr \
    --cc=boris.passerat@davidson.fr \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).