-
Notifications
You must be signed in to change notification settings - Fork 148
Bluetooth PIN
Nico Kaiser edited this page Apr 2, 2021
·
2 revisions
To enable pairing with a PIN code instead of Simple Secure Pairing mode, the following steps are required:
- Change
sspmode 1
tosspmode 0
in/etc/systemd/system/bthelper@.service.d/override.conf
- Add
--pin /etc/bluetooth/pin.conf
to theExecStart
line in/etc/systemd/system/bthelper@.service.d/override.conf
- Add a file
/etc/bluetooth/pin.conf
which contains PIN code for the devices:
AA:BB:CC:DD:EE:FF 1234
(replace AA:BB:CC:DD:EE:FF
with your Bluetooth devices's Mac address or *
to use PIN 1234
for all devices)
- This does not work with iOS devices. iOS refuses to pair with devices that do not support SSP. So sspmode needs to be on
- Even with sspmode=1 and a PIN file, iOS would not connect at all
- macOS allows pairing with devices with sspmode=0 (and a PIN configured on the Pi). When sspmode=1, macOS decides upon a PIN and either the Pi has a fixed PIN list (which does not match => connection refused), or requires keyboard input on the Pi (which is not desired for a headless device).
So you need to try yourself if this works with your setup.