vadimgrn / usbip-win2

USB/IP Client for Windows
GNU General Public License v3.0
469 stars 40 forks source link

some hid devices do not work immediately after attaching #54

Closed comsyspro closed 9 months ago

comsyspro commented 11 months ago

i hope getting more infos here also concerning the linux usbip server implementation. i have similar problems with some hid devices as described here in usbipd-win project, where they fixed the issue with a timeout: https://github.com/dorssel/usbipd-win/issues/659#issuecomment-1677977801

after attaching the devices, they are shown in a connected state but will not work immediately. only after detaching and reattaching 1 to 3 times then the usb devices come to work correctly. so could this be a similar driver issue in linux server usbip or timeout issue? i would like to also mention that these kind of hid devices mostly have 2 bNumInterfaces and this differs from other devices which normally have only 1 bNumInterfaces and perhaps this could also be the reason. any advice or ideas?

vadimgrn commented 11 months ago

You can do almost nothing with linux usbip implementation. Someone should fix this issue and make a pull request. If maintainer of this subsystem approve it, the pull request will be merged into the kernel.

I don't like some things in the usbip protocol that complicate client implementation on Windows, but can do nothing with that.

comsyspro commented 11 months ago

i also asked this at the developer of usbipd-win project and you can also find some further usbmon captures of the hid device; https://github.com/dorssel/usbipd-win/issues/816#issuecomment-1870343829

do you know if this is the right place to address this issue? https://github.com/torvalds/linux/tree/master/tools/usb/usbip

vadimgrn commented 11 months ago

https://github.com/torvalds/linux/tree/master/drivers/usb/usbip