Bluetooth ne fonctionne pas avec Raspbian Stretch et Raspberry Pi 3


10

Sur une nouvelle installation de Raspbian Stretch, connectez-vous et avec la première commande de systemctl status bluetooth, j'obtiens:

$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2017-08-18 01:37:37 UTC; 1s ago
     Docs: man:bluetoothd(8)
 Main PID: 667 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─667 /usr/lib/bluetooth/bluetoothd

Aug 18 01:37:37 raspberrypi systemd[1]: Starting Bluetooth service...
Aug 18 01:37:37 raspberrypi bluetoothd[667]: Bluetooth daemon 5.43
Aug 18 01:37:37 raspberrypi systemd[1]: Started Bluetooth service.
Aug 18 01:37:37 raspberrypi bluetoothd[667]: Starting SDP server
Aug 18 01:37:38 raspberrypi bluetoothd[667]: Bluetooth management interface 1.14 initialized
Aug 18 01:37:38 raspberrypi bluetoothd[667]: Failed to obtain handles for "Service Changed" characteristic
Aug 18 01:37:38 raspberrypi bluetoothd[667]: Sap driver initialization failed.
Aug 18 01:37:38 raspberrypi bluetoothd[667]: sap-server: Operation not permitted (1)

Par conséquent, bluetoothctlne détecte aucun appareil.

Cela ne s'est pas produit avec Raspbian Jessie. Des conseils sur la façon de résoudre ce problème?


Remarque: Il semble y avoir une entrée de bogue en attente au dépôt bluez pour Échec d'obtention des descripteurs pour la caractéristique "Service modifié"
Besi

Réponses:


7

Je viens de toucher le même problème. Les erreurs du service Bluetooth sont des harengs rouges. Le problème (pour moi, en tout cas) était que les autorisations requises pour accéder au service via DBus ont changé.

En tant qu'utilisateur régulier:

pi@raspberrypi:~ $ busctl tree org.bluez
Failed to introspect object / of service org.bluez: Access denied
No objects discovered.

En tant que root:

pi@raspberrypi:~ $ sudo busctl tree org.bluez
└─/org
  └─/org/bluez
    └─/org/bluez/hci0

Vérifié /etc/dbus-1/system.d/bluetooth.conf , qui indique que les utilisateurs doivent être dans le groupe bluetooth .

Ajouter un utilisateur au groupe:

pi@raspberrypi:~ $ sudo adduser pi bluetooth
Adding user `pi' to group `bluetooth' ...
Adding user pi to group bluetooth
Done.
pi@raspberrypi:~ $ newgrp bluetooth

Maintenant ça marche:

pi@raspberrypi:~ $ busctl tree org.bluez
└─/org
  └─/org/bluez
    └─/org/bluez/hci0
pi@raspberrypi:~ $ bluetoothctl 
[NEW] Controller 43:43:A1:12:1F:AC raspberrypi [default]

l'avez-vous fait travailler sur kodi? Il semble que cela ne fonctionne que sur le navigateur Chrome
answerSeeker
En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.