Setup bluetooth mini keyboard

Install Bluetooth

# apt-get install bluetooth bluez-utils blueman

Plug bluetooth dongle, then check if it is installed

pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 006: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 005: ID 045e:0772 Microsoft Corp. LifeCam Studio


pi@raspberrypi ~ $ hcitool scan
Scanning ...
        CC:C5:0A:0F:CA:1E       Bluetooth 3.0 Macro Keyboard


# sudo bluez-simple-agent hci0  CC:C5:0A:0F:CA:1E

It aks you a PIN Code. Enter 0000

RequestPinCode (/org/bluez/2192/hci0/dev_CC_C5_0A_0F_CA_1E)
Enter PIN Code: 0000

On the keyboard, blindly press 0000 + enter, it should display

New device (/org/bluez/2192/hci0/dev_CC_C5_0A_0F_CA_1E)

Definitly add the keyboard

# sudo bluez-test-device trusted CC:C5:0A:0F:CA:1E yes
# sudo bluez-test-input connect CC:C5:0A:0F:CA:1E

Raphaël has written 45 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>