Closed xtrinch closed 2 years ago
Okay, so I manually assigned the winusb driver to the vendor class interface (it was ofcourse not recognizing it on its own), then I downgraded the winusb driver: From: WINUSB (v10.0.19041.1) To: WinUSB (v6.1.7600.16385) With Zadig tool,
and now it magically works.
What could possibly go wrong with the latest driver?
I dont know what can be wrong with that. WinUSB should work without need to use zadig or change any drivers. The only problem with winusb is that i had to use it together with CDC. Without CDC windows wont recognize it and adding CDC magically fixing it. There is one more thing that i am not sure, but ive heard that windows has issue with MSC + CDC when adding endpoints order is wrong (but that may be related to arduino-esp32 endpoints numbers).
Hi,
I have a rather strange problem with my webusb + CDC setup. Below are the usb descriptors generated with this library.
The web usb part is working without issues on Linux (Ubuntu 20.04), I can connect to it, send it characters, receive characters, the whole thing. On windows however, I can see it in chrome and can connect to it, but cannot claim the webusb interface. (Note that I am testing with the same website on linux/windows). Below is the code I am using. I'd be inclined to think I'm doing something wrong in javascript, if the exact same code wasn't working fine on Linux. I even tested with the nightly build of chrome to see if it is some random chrome bug. The code just stalls at
claimInterface
and never returns. No errors, just never returns.What could possibly be the cause of this?
Javascript code:
USB descriptors: