Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropped bulk transfer ZLP writes through WSL2 #924

Open
kairotronix opened this issue Apr 19, 2024 · 2 comments
Open

Dropped bulk transfer ZLP writes through WSL2 #924

kairotronix opened this issue Apr 19, 2024 · 2 comments

Comments

@kairotronix
Copy link

I recently spent time reverse engineering the USB protocol for some test equipment so I could control it via Linux.

The protocol in question has the host send a command word through a bulk endpoint, then the host sends a zero length packet through the same endpoint so the device knows to begin processing what is in the buffer.

After emulating the protocol above in PyUSB the device would work in Windows while overwriting the libusb driver, and it would work in native Linux, but it would not work in Windows using USB passthrough to WSL2.

I used Wireshark to analyze the USB packets and noticed that the zero length packets were being dropped when the device was being forwarded to WSL2.

I am not certain it is a usbipd issue, but it seems plausible.

@dorssel
Copy link
Owner

dorssel commented Apr 19, 2024

Can you make a capture following https://github.com/dorssel/usbipd-win/wiki/Troubleshooting#usb-capture?
And perhaps (considering you seem to know what you are doing) simultaneously a WSL-side USB capture (see #300 (comment))?

@kairotronix
Copy link
Author

I can do the USB capture when I get access to the hardware again on Monday. Unsure if I will have time to do the WSL-side, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants