WICG / webusb

Connecting hardware to the web.
https://wicg.github.io/webusb/
Other
1.3k stars 126 forks source link

Some questions for using WebUSB #180

Closed myjimmy closed 4 years ago

myjimmy commented 4 years ago

Hello Mr. @reillyeon I'm very interested in WebUSB API. I have seen many articles including "Building a Device for WebUSB" written by you. I have some questions for WebUSB.

  1. How can I know whether any commercial USB device supports WebUSB? I'm going to integrate the web app and a server application for users to use the USB devices in remote computers with WebUSB. The USB devices are most commercial products such as a printer, webcam, and scanner. The remote hosts are running on Windows 10 or Windows Server 2019.

  2. If many commercial USB devices don't support WebUSB, what shall I do for supporting WebUSB in those USB devices? My knowledge for supporting WebUSB in those USB devices follow as below:

    • Create winusb.sys files for the USB devices and register those files in Windows system.
    • Develop each javascript driver to communicate with those USB devices through WebUSB API.
  3. In the above circumstance, when I use the commercial USB devices in Windows platform, do I need only winusb.sys file or do I need winusb.sys with the drivers provided by manufacturer? That's, I want to know whether the drivers of the USB devices provided by manufacturers need to be installed in the operating system (windows) for creating each winusb.sys file and using the USB devices in any web apps.

I hope your advice.

Best regards.

reillyeon commented 4 years ago

Closing this issue. According to the issue template, questions like this should be asked on Stack Overflow.