Τετάρτη 26 Δεκεμβρίου 2012

Adding a KeySonic bluetooth keyboard to Raspberry-Pi

This post explains how to connect a Bluetooth keyboard to raspberry pi.


Bluez installation

First of all install the Linux’s Bluez Bluetooth stack. In raspberry this is as easy as type :
apt-get install bluez bluez-utils bluez-compat bluez-hcidump



Bluetooth daemon

Modify the /etc/default/bluetooth file changing:

BLUETOOTH_ENABLED=1
HID2HCI_ENABLED=1
HID2HCI_UNDO=0

Restart bluetooth:
#> invoke-rc.d bluetooth restart 



Scan for the available devices

Scan for the available devices. Make sure your keyboard is in discoverable mode (push the button) before running the scan command. This provides with the device ID, similar to the MAC address of a network card. 



Pairing using the bluetooth Agent

Start bluetooth-agent (as root), giving an arbitrary PIN, such as 1234

Connect to the device

connect to the device using the command hidd --connect XX:XX:XX:XX:XX:XX


Request authentication from the device

Request the device to authenicate using the command hcitool auth XX:XX:XX:XX:XX:XX. Enter the PIN from your keyboard pressing at the end.


Relative Links:

http://wiki.debian.org/BluetoothUser




Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου