Re: usb 1-3: Product: BBC micro:bit CMSIS-DAP not recognised

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 22, 2022 at 04:24:55PM -0500, Alan Stern wrote:
> A bit off to the side from the main point of this thread, but...
> 
> On Thu, Dec 22, 2022 at 10:32:09AM +0000, Dima Pasechnik wrote:
> > 
> > 
> > On 20 December 2022 19:57:05 WET, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> > >> USB Interfaces: MSD, CDC, HID, WebUSB
> > >
> > >Which agrees with the information on the web site.  I have no idea what 
> > >WebUSB is supposed to be.
> > 
> > WebUSB is a JavaScript API, supported by Chromium -derived browsers (Firefox not there yet)
> > 
> > https://en.wikipedia.org/wiki/WebUSB
> 
> The Wikipedia article agrees with you that WebUSB is a JavaScript API.  
> As such, it is used for communication between web browsers and 
> JavaScript programs.

No, it's used by browsers (which  run JavaScript code in them) to
communicate with USB hardware. Or, if you like,
standalone JavaScript programs to communicate with USB hardware. 
Let me copy from the wiki here:

---------------------------------
A Universal Serial Bus, or a USB is an industry standard [...]
WebUSB is a set of API calls that enable access to these hardware
devices from web pages. WebUSB is developed by the World Wide Web
Consortium(W3C).[1] The webUSB API provides a safe, and developer
familiar means of communication to edges devices from web pages. The
webUSB API integrates into existing USB libraries and shortens the
development cycle for integrating new devices into the web environment
by not needing to wait for browser support for these devices.

Early versions of webUSB came out around as an alternative to Flash,
Chrome Serial, and other custom approaches to connecting browsers to
hardware. WebUSB aims to solve the four goals of any interface being;
fast to make, cross platform, look good, accessibility.

>  Not for communication between programs and USB 
> devices.  So I don't understand why a USB device needs to be concerned 
> about it.

I hope the above explains.

HTH
Dmitrii

> 
> Alan Stern



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux