After installing bluez and bluez-utils, the dongle and device to be paired are found:
Code: Select all
hciconfig hci0 up
hcitool scan
> Scanning ...
00:19:5D:EE:3E:04 OmniTek_Bluetooth
Code: Select all
[bluetooth]# pair 00:19:5D:EE:3E:04
Attempting to pair with 00:19:5D:EE:3E:04
[CHG] Device 00:19:5D:EE:3E:04 Paired: yes
[CHG] Device 00:19:5D:EE:3E:04 Connected: yes
Pairing successful
[CHG] Device 00:19:5D:EE:3E:04 Paired: no
[CHG] Device 00:19:5D:EE:3E:04 Connected: no
[bluetooth]# connect 00:19:5D:EE:3E:04
Attempting to connect to 00:19:5D:EE:3E:04
Failed to connect: org.bluez.Error.NotAvailable
[bluetooth]#
I have run the help command in bluetoothcfg and cannot see any option to specify the pairing key.
How can I pair a device that has a passkey set using bluetoothctl ?