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@xxxxxxxxxxxxxxx
[mailto:linux-bluetooth-owner@xxxxxxxxxxxxxxx] De la part de Jérémie
Scheer
Envoyé : vendredi 12 juin 2015 17:26
À : linux-bluetooth@xxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html