Usb-Hid Driver

crates.io Documentation

This is an implementation of usb-device using USBIP server.

Note

This crate is not intended to be used in production ever. It's purpose is to ease development of new UsbClass or UsbDevice implementations or to emulate USB devices for easier embedded application development.

Usage

The usbip client can be stared in the following way:

bash sudo apt-get install linux-tools-generic

Then, start the application.

bash cargo run --example serial_echo

and then start the USBIP client.

```bash // Start the vhci driver sudo modprobe vhci-hcd

// List available devices usbip list -r "localhost"

// Attach USB device usbip attach -r "localhost" -b "1-1"

// List connected devices usbip port

// Detach device usbip detach -p "port" ```

Known Bugs

This is a very alpha software, which still has a lot of quirks to be worked out.

License

Apache-2.0 or MIT.