Hi,
I'm trying to use libusb in a Qt WebAssembly app via the Emscripten port.
It's a port of driver that works under Linux & Windows. The first call to
libusb_get_device_list() is failing with the console message:
DOMException: Failed to execute 'controlTransferIn' on 'USBDevice': A
transfer error has occurred.
On Windows 11 using Chrome, Edge and Opera.
Tracing through the code, in emscripten_webusb.cpp
makeControlTransferPromise() calls controlTransferIn with "request_type":
"standard", "recipient": "device", "request": 6, "wValue": 0x100, "wIndex":
0, "wLength": 0x12 before this error.
Any idea why this might be failing? If I perform the same controlTransfer in
JavaScript, it works OK.
Thanks,
Jon
|