Emulates USB Devices using USBIP in Python or c
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 16 commits ahead of smulikHakipod:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
c cdc-acm bug fix Sep 16, 2016
doc c version Feb 3, 2016
python GET_STATUS update Feb 11, 2016
README.md c hid-keyboard implementation Feb 4, 2016


USBIP hardware emulation (Virtual USB device)

Hack fixes for mouse hid work with Linux 4.2 (and Windows 10)

keyboard hid added.

in Linux use:
python hid-xxxx.py for python version
./hid-xxxx for c version
usbip attach -r -b 1-1
(remember to load kernel modules usbip-core and vhci-hcd)

for list device use:
usbip list -r

More details on:

This code uses the USB/IP project: http://usbip.sourceforge.net/ to emulate usb devices.
In this example I showed how to emulate HID mouse device.
This code can be easily changed to support any usb device.
This code is very experimental, use with care.
In the HID example there is a bug with USB/IP driver that causes blue screen on de-attach:
It doesnt happen with other devices I tested.