MarkBryanMilligan / LanternPowerMonitor

The Lantern Power Monitor is a Raspberry Pi service, Java Web Service, and Android application that allow you to monitor every electrical breaker in your house, regardless of how many panels or breakers you have.
GNU General Public License v3.0
82 stars 26 forks source link

Issue with bluetooth #42

Open beamsjr opened 1 year ago

beamsjr commented 1 year ago

When installing image 1.1.1 I was not able to connect to the hub. I connected into the pi and did sudo systemctl status bluetooth which gave me

`May 04 23:02:47 raspberrypi systemd[1]: Starting Bluetooth service... May 04 23:02:47 raspberrypi bluetoothd[577]: Bluetooth daemon 5.55 May 04 23:02:47 raspberrypi systemd[1]: Started Bluetooth service. May 04 23:02:47 raspberrypi bluetoothd[577]: Starting SDP server May 04 23:02:47 raspberrypi bluetoothd[577]: Bluetooth management interface 1.21 initialized May 04 23:02:47 raspberrypi bluetoothd[577]: profiles/sap/server.c:sap_server_register() Sap driver initialization fail> May 04 23:02:47 raspberrypi bluetoothd[577]: sap-server: Operation not permitted (1) May 04 23:02:47 raspberrypi bluetoothd[577]: Failed to set privacy: Rejected (0x0b) May 04 23:04:28 raspberrypi bluetoothd[577]: src/device.c:load_gatt_db() No cache for 57:EA:B1:E1:12:5C

I took the following steps to get it to work, not sure if all were necessary or not.

added pi user to the bluetooth group

sudo usermod -G bluetooth -a pi

open sudo nano /etc/systemd/system/bluetooth.target.wants/bluetooth.service Change:

ExecStart=/usr/lib/bluetooth/bluetoothd

To

ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap

Then restart

$ sudo shutdown -r now

Hopefully this helps someone else that has this issue.