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:
    1. $ 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:

    1. $ rkfill list
    2. Soft blocked: yes # <--
    3. Hard blocked: no
    4. $ sudo rfkill unblock bluetooth
    5. $ rkfill list
    6. 9: hci0: Bluetooth
    7. Soft blocked: no # <--
    1. $ bluetoothctl
    2. [bluetooth]# scan on
    3. [bluetooth]# agent on
    4. [bluetooth]# pair 20:16:05:XX:XX:XX
    5. [CHG] Device 20:16:05:XX:XX:XX Connected: yes
    6. Request PIN code
    7. [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.

    1. $ sudo rfcomm release 0