intel / zephyr.js

JavaScript* Runtime for Zephyr* OS
Other
180 stars 64 forks source link

WebUSB device can't be found on windows platform #1872

Open brianjjones opened 6 years ago

brianjjones commented 6 years ago

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

grgustaf commented 6 years ago

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

brianjjones commented 6 years ago

@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.