Linux
First, your laptop’s Bluetooth transceiver may be OFF. Check its status with and turn itON if necessary:
- On systemd based Linux distributions, use:
$ sudo systemctl start bluetooth
- On Ubuntu (or upstart based Linux distributions), use:
You may also need to unblock your Bluetooth, depending on what rfkill list
says:
$ rkfill list
Soft blocked: yes # <--
Hard blocked: no
$ sudo rfkill unblock bluetooth
$ rkfill list
9: hci0: Bluetooth
Soft blocked: no # <--
$ bluetoothctl
[bluetooth]# scan on
[bluetooth]# agent on
[bluetooth]# pair 20:16:05:XX:XX:XX
[CHG] Device 20:16:05:XX:XX:XX Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
Because we used 0
as an argument to bind
, /dev/rfcomm0
will be the device file assigned to ourBluetooth module.
$ sudo rfcomm release 0