You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/tools/hid-bridge
Pavol Rusnak fb8d6fe820
tools: add hid-bridge by Ondrej Vejpustek
5 years ago
..
50-hid-bridge.rules tools: add hid-bridge by Ondrej Vejpustek 5 years ago
README.md tools: add hid-bridge by Ondrej Vejpustek 5 years ago
hid-bridge tools: add hid-bridge by Ondrej Vejpustek 5 years ago
hid_interface.py tools: add hid-bridge by Ondrej Vejpustek 5 years ago
logger.py tools: add hid-bridge by Ondrej Vejpustek 5 years ago
udp_interface.py tools: add hid-bridge by Ondrej Vejpustek 5 years ago
uhid.py tools: add hid-bridge by Ondrej Vejpustek 5 years ago

README.md

hid-bridge

Creates a virtual hid device which can be controlled by a user driver via a UDP port.

Installation

You need Python 3.5 or higher.

The uhid driver is required. If it is build as a module and not loaded, load it by modprobe uhid.

You must have read/write permission to the /dev/uhid/ device as same as to the newly created /dev/hidraw* device. This may be accomplished by copying 50-hid-bridge.rules into /dev/udev/rules.d/. You may need to reload the driver.

Usage

Run TREZOR emulator and ./hid-bridge.

Known issues

Does not work with Firefox. Firefox closes hid devices on the lost of the focus.

Does not work with the emulator in the debug mode sice emulator doesn't start hid interface.