jiegec / usbip

A Rust library to run a USB/IP server
MIT License
255 stars 25 forks source link

Unknown command when listing devices from Windows USB/IP client #33

Open scob7 opened 9 months ago

scob7 commented 9 months ago

Trying to use usb/ip to share a gaming steering wheel from a new macbook to a windows machine. I installed this rust usbip server on my m2 macbook and started the host example:

% env RUST_LOG=debug cargo run --example host Finished dev [unoptimized + debuginfo] target(s) in 0.03s Running target/debug/examples/host [2023-09-19T22:20:06Z INFO usbip] Got connection from Ok(192.168.2.99:40304) [2023-09-19T22:20:06Z WARN usbip] Got unknown command [1, 6, 128, 5] [2023-09-19T22:20:06Z WARN usbip] Got unknown command [0, 0, 0, 0]

But I get the above warning and no response when I try to list the devices from Windows using the usb/ip client (v0.2..0 or v0.1.0) this command: usbip --list 192.168.2.168

Should this be a supported configuration?

jiegec commented 9 months ago

The code intends to support a large range of usb devices, however due to lack of test, there are many incompatibilities issues. If you are interested, you are welcomed to fix it and make a contribution.