linuxcommand-linebluetoothbluez

Linux command line howto accept pairing for bluetooth device without pin


Is there a way to pair a device in linux without requiring a pin(for testing purposes so I need it to be done w/out human interaction, assuming you have root access)?

bluez-simple-agent seems to require a pin except with some simple devices such as mice.


Solution

  • Try setting security to none in /etc/bluetooth/hcid.conf

    http://linux.die.net/man/5/hcid.conf

    This will probably only work for HCI devices (mouse, keyboard, spaceball, etc.). If you have a different kind of device, there's probably a different but similar setting to change.