zephyr.js icon indicating copy to clipboard operation
zephyr.js copied to clipboard

WebUSB device can't be found on windows platform

Open brianjjones opened this issue 6 years ago • 2 comments

Issue description WebUSB device can't be found on windows platform

Current behavior Board can't be found after connected windows PC.

Expected behavior Device can be found.

Steps to reproduce

Build and flash images into board. Start WebIDE and connect board. win

brianjjones avatar Apr 18 '18 21:04 brianjjones

But works okay on Linux? Works okay with an older ZJS build?

grgustaf avatar Apr 27 '18 16:04 grgustaf

@grgustaf Yes its ZJS related, it got introduced with @zolkis new webusb PR. There is some needed Windows key descriptor in order for chrome to recognize it. If you look at src/ashell/term-webusb.c (before it got deleted by the webusb PR) it contains ms_os_20_descriptor_set, which does that work. I tried adding that to src/ashell/webusb_driver.c but it still didn't work, so its a little more complex than that I guess. Anyway, yes it works on any earlier build before the webusb change, and yes it still works on Linux.

brianjjones avatar Apr 27 '18 16:04 brianjjones