Pairing BlueTooth keyboard

August 10th, 2017 Categories: Linux

I’m going to pair my bluetooth keyboard+touchpad (Bluetooth iPazzPort), i’ll use the bluetoothctl tool.

  1. First we’ll install the required packages with the folllowing command:
    sudo apt-get install pi-bluetooth bluez bluez-tools
  2. We’ll start bluetoothctl -a in order to enter the program. Here i had a problem with the bluetooth daemon (the systemctl status bluetooth command returned an execution error), so i had to change permissions to this file with the following command:
    sudo chmod +x /usr/lib/bluetooth/bluetoothd
  3. Now we’ll execute all these commands:
    • power on <- Powering on the controller
    • agent KeyboardOnly <- Setting the pairing mode
    • default-agent <- Setting the default agent
    • pairable on <- Viewable and pairable
    • scan on <- Enabling scanning
    • pair XX:XX:XX:XX:XX:XX <- Pairing with XX:XX:XX:XX:XX:XX
    • trust XX:XX:XX:XX:XX:XX <- Trusting XX:XX:XX:XX:XX:XX
    • connect XX:XX:XX:XX:XX:XX <- Connecting to XX:XX:XX:XX:XX:XX
    • quit <- Exiting

If the device gets disconnected, we can connect again with hciconfig and hcitool
hciconfig hci0 up
hcitool cc XX:XX:XX:XX:XX:XX

BlueTooth iPazzPort

Tags: , , , , ,
No comments yet.

Leave a Comment

Solve this *