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

Android host -> Windows client: This device cannot start. (code 10) #62

Open
brandonros opened this issue Feb 4, 2024 · 5 comments
Open

Comments

@brandonros
Copy link

brandonros commented Feb 4, 2024

You and I spoke a bit about this in a previous issue that I opened with an unrelated topic.

I am not 100% sure whether the issue is in:

the implementation in this code (Widows, client)

the implementation in the code of the driver (Windows, that I sort of kind of don't really have/don't have logs into)

the implementation in the code of the host (Android APK running https://github.com/jiegec/usbip)

Would you be willing to help me understand how to get as many trace level logs as possible to understand what is going wrong? I'm trying to forward what is basically a simple USB CDC serial device (I tested that if I replace the driver with the usbser driver and forward traffic around as COM7 port, it works great)

I could just use your help/guidance in understanding where to look in driver level trace logs to see what the issue is/understanding how this driver (usbip-win2) interfaces with the driver on the device it is virtualizing. Best case scenario: we'd find some logs that reveal in issue in this codebase that can be fixed.

I'll start posting stuff below. I verified the driver was built against WDK 10 and will post proof as well. Windows -> Windows works fine.

@brandonros
Copy link
Author

One complex thing about this device is it has multiple interfaces. aka, you plug one device in physically and you get

  1. https://en.wikipedia.org/wiki/Network_Driver_Interface_Specification (which I don't care about/am not trying to forward)
  2. what is really just usbser/CDC device (doesn't work well with WinUSB at all for some reason; unable to claim interface or read/write from the endpoints) that has its own driver

I would say this is atypical and could potentially be root of the issue.

@vadimgrn
Copy link
Owner

vadimgrn commented Feb 4, 2024

https://github.com/vadimgrn/usbip-win2?tab=readme-ov-file#obtaining-usbip-logs-on-windows
You will get the most verbose logs from the filter driver and UDE driver.

@brandonros brandonros changed the title This device cannot start. (code 10) Android host -> Windows client: This device cannot start. (code 10) Feb 4, 2024
@brandonros
Copy link
Author

brandonros commented Feb 4, 2024

android to windows failure:

usbip-flt.txt
usbip-ude.txt

windows to windows success:

usbip-flt.txt
usbip-ude.txt

Do you need the .etl files too?

ftl logs comparison:

image

@vadimgrn
Copy link
Owner

vadimgrn commented Feb 4, 2024

04x! !FUNC!:vhci aa944698, fobj aa68cda8
TRACE_FORMAT_PREFIX was set not correctly.

@brandonros
Copy link
Author

Updated. It was the %% .cmd problem.

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