1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-10 09:58:59 +00:00
trezor-firmware/core/tools/hid-bridge
2019-04-15 19:14:40 +02:00
..
50-hid-bridge.rules MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
hid_interface.py MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
hid-bridge MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
logger.py MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
README.md MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
udp_interface.py MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
uhid.py MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00

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.