https://github.com/mikerr/pihidproxy
Bridge Bluetooth keyboard and mouse to USB (hid proxy) using Raspberry Pi Zero
https://github.com/mikerr/pihidproxy
bluetooth hid usb-hid
Last synced: 6 months ago
JSON representation
Bridge Bluetooth keyboard and mouse to USB (hid proxy) using Raspberry Pi Zero
- Host: GitHub
- URL: https://github.com/mikerr/pihidproxy
- Owner: mikerr
- Created: 2018-05-09T14:43:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-17T14:49:14.000Z (about 8 years ago)
- Last Synced: 2023-10-20T21:48:51.911Z (over 2 years ago)
- Topics: bluetooth, hid, usb-hid
- Language: C
- Homepage:
- Size: 25.4 KB
- Stars: 124
- Watchers: 14
- Forks: 23
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pihidproxy
Bridge Bluetooth keyboard and mouse to USB (hid proxy)

If you have a bluetooth keyboard, you can't access BIOS or OS without a BT stack.
This project acts as a bridge so the PC only sees a USB keyboard and so works without drivers.
It works by copying keypresses from the bluetooth keyboard to the piZero's USB.
Requirements:
Raspberry Pi Zero
Bluetooth keyboard
Initial setup:
echo "dtoverlay=dwc2" | sudo tee -a /boot/config.txt
echo "dwc2" | sudo tee -a /etc/modules
echo "libcomposite" | sudo tee -a /etc/modules
put the following in /etc/rc.local
pair.sh
setuphid.sh
keys.py
pair.sh - bash script to pair & connect bluetooth on boot.
setuphid.sh - installs the USB keybaord driver
keys.py - reads keyboard (e.g. bluetooth) and translates keycodes, then sends it over USB.