0

I need a Pi to pair promiscuously with anything with a Bluetooth antenna, because we need to use it headless, in the field, with no desktop, to pair to a Brand X tablet.

Here's the existing literature on headless pairing. Even after I upgraded it to use modern commands, it is fragile and inconsistent:

https://www.raspberrypi.org/forums/viewtopic.php?t=170353

Now other literature recommends this to turn on discovery:

sudo bt-adapter --set Discoverable 1

The bluez-tools package provides bt-adapter? man bt-adapter does not discuss automatic pairing. Should I run bt-agent as a daemon and allow it to pair with anyone with the correct passkey?


Another problem: When I activated the network-over-Bluetooth system, PAN, it destroyed autopairing from both the old and new systems...

Phlip
  • 318
  • 6
  • 15

1 Answers1

1

Looks like it's just

sudo hciconfig hci0 piscan
sudo hciconfig hci0 sspmode 1

per Automatically accept bluetooth pairings

Phlip
  • 318
  • 6
  • 15