Skip to content

dominiccooney/CloveTree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Clove Tree

Makes a Raspberry Pi emulate a bluetooth keyboard. This is based on Emulating a Bluetooth Keyboard with Raspberry Pi and Python.

Prerequisites

Run raspi-config and disable the serial-over-Bluetooth UART thing in interfaces.

$ sudo cp btkeyboard/dbus/org.yaptb.btkkbservice.conf /etc/dbus-1/system.d
$ sudo apt-get install python3-pip python3-bluez python3-pyqt4 python3-dbus.mainloop.qt
$ pip3 install evdev

Set up Bluetooth:

$ sudo hciconfig hci0 up

Run hciconfig and copy the the Bluetooth MAC address and edit the MY_ADDRESS binding in btkeyboard/server/btk_server.py.

TODO: Pull the address from the interface itself.

Pairing:

$ sudo /usr/bin/bluetoothctl
> agent on
> default-agent
> scan on
> discoverable on

Pair from the host computer; type yes to accept the pairing request on the pi.

Running

Run the bluetooth daemon attached to a console with only the "time" plugin:

$ sudo /etc/init.d/bluetooth stop
$ sudo /usr/sbin/bluetoothd --nodetach --debug -p time

How to restart Bluetooth:

sudo systemctl daemon-reload; sudo systemctl restart bluetooth; systemctl status bluetooth -l

TODO

  • Bluetooth config to disable plugins:

  • OS X not responding to keystrokes

  • Automatic connections, see here or here.

About

Adapts a USB keyboard to be a Bluetooth keyboard using a Raspberry Pi. Derived from https://github.com/yaptb/BlogCode.git

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%