Skip to content

lcgamboa/USBIP-Virtual-USB-Device

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 18 commits ahead of smulikHakipod:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
February 3, 2016 20:30
February 11, 2016 00:26
February 4, 2016 15:01

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
or
./hid-xxxx for c version
and
usbip attach -r 127.0.0.1 -b 1-1
(remember to load kernel modules usbip-core and vhci-hcd)

for list device use:
usbip list -r 127.0.0.1

More details on:
http://breaking-the-system.blogspot.com/2014/08/emulating-usb-devices-in-python-with-no.html

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:
http://sourceforge.net/p/usbip/discussion/418507/thread/7ff86875/?page=0
It doesnt happen with other devices I tested.

About

Emulates USB Devices using USBIP in Python or c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 66.3%
  • Python 33.1%
  • Makefile 0.6%