Je ne veux pas utiliser BlueZ 5 et sa nouvelle interface DBus pour GATT Server. Je veux utiliser BlueZ 4.101 et c'est le plugin gatt-example pour Bluetoothd. Sur une nouvelle installation d'Ubuntu 14.04, je téléchargé un tarball propre de BlueZ 4,101 et configuré pour l'activation du GATT, et lancé avec les commandes suivantes:Comment lancer BlueZ 4.101 Plugin GATT sur Ubuntu
sudo ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --disable-systemd --enable-experimental --enable-maintainer-moden --enable-gatt --enable-test
sudo make all
sudo make install
sudo hciconfig hci0 up
sudo hcitool -i hci0 cmd 0x08 0x0008 48 45 4c 4c 4f 57 4f 52 4c 44
sudo hciconfig hci0 leadv 0
sudo src/bluetoothd -d -n
Cependant, quand il exécute arrive à la partie où il devrait charger les plug-ins et les erreurs suivantes « GATT est désactivé » sont imprimés:
bluetoothd[30917]: src/plugin.c:plugin_init() Loading plugins /usr/lib/bluetooth/plugins
bluetoothd[30917]: src/plugin.c:add_plugin() Loading external_dummy plugin
bluetoothd[30917]: plugins/service.c:register_interface() path /org/bluez/30917/any
bluetoothd[30917]: plugins/service.c:register_interface() Registered interface org.bluez.Service on path /org/bluez/30917/any
bluetoothd[30917]: DIS cannot start: GATT is disabled
bluetoothd[30917]: Failed to init deviceinfo plugin
bluetoothd[30917]: proximity/main.c:proximity_init() GATT is disabled
bluetoothd[30917]: Failed to init proximity plugin
bluetoothd[30917]: time/main.c:time_init() GATT is disabled
bluetoothd[30917]: Failed to init time plugin
bluetoothd[30917]: alert/main.c:alert_init() GATT is disabled
bluetoothd[30917]: Failed to init alert plugin
bluetoothd[30917]: thermometer/main.c:thermometer_init() GATT is disabled
bluetoothd[30917]: Failed to init thermometer plugin
bluetoothd[30917]: network/manager.c:read_config() Config options: Security=true
bluetoothd[30917]: Parsing /etc/bluetooth/input.conf failed: No such file or directory
bluetoothd[30917]: Parsing /etc/bluetooth/audio.conf failed: No such file or directory
bluetoothd[30917]: plugins/external-dummy.c:dummy_init()
bluetoothd[30917]: plugins/hciops.c:hciops_init()
bluetoothd[30917]: plugins/gatt-example.c:gatt_example_init() GATT is disabled
bluetoothd[30917]: Failed to init gatt_example plugin
bluetoothd[30917]: Bluetooth Management interface initialized
Comment puis-je exécuter avec succès ces plug-ins avec BlueZ 4,101? Merci.