Replies
I also just encountered this issue with RPi 4 trying to use NrfConnect or LightBlue on iOS. Have you been able to resolve this issue? I am stuck as well
One cause of this is that Linux tries to read the battery state from the iPhone, which triggers the pairing request. You can configure bluez to prevent this. One of my colleagues at Ditto wrote some docs to fix it, which the forum won't let me link directly, but I will copy-paste the main instructions here.
To disable auto Battery reading
- Open the bluetooth service file
/usr/lib/systemd/system/bluetooth.service, or/etc/systemd/system/bluetooth.target.wants/bluetooth.servicein a text editor. You may needsudopermission to write to this file. - Add
-P batteryto the end of theExecStartline to disable the Battery feature inbluetoothd. YourExecStartshould look something likeExecStart=/usr/lib/bluetooth/bluetoothd -P batterynow. - Save the file.
- Run
systemctl daemon-reloadandsystemctl restart bluetoothto apply the changes to the Bluetooth service
-
Thanks thombles, you're a lifesaver.
-
Unfortunately, this solution stopped working. Maybe there's something else making requests?
Edit: It works again after I removed my phone from the device list on the Pi. I guess if it ever paired, then it needs to be removed.
Thank you so much thombles, this seems to have resolved the issue