Questions tagged [webusb]

WebUSB is a USB API for the web. Use this tag for questions about using the WebUSB API on any browser.

WebUSB is a USB API for the web. Use this tag for questions about using the WebUSB API on any browser.

Resources

206 questions
0
votes
2 answers

Unable to Claim WebUSB Interface(device or resource busy 16) from Android Tablet. Windows works fine

I'm trying to connect a USB Thermal Printer to my Android Tablet (Samsung Galaxy Tab S4, Android 9) via WEBUSB but I'm getting this error when trying to claim the interface: "Failed to claim interface 0: Device or resource busy (16)" I'm posting the…
0
votes
1 answer

Possible to Use Nodejs in the browser with WebUSB?

I have found https://github.com/thegecko/webusb - an implementation of WebUSB for nodejs I haven't quite got my head around how to get this working in the browser?
Martin Thompson
  • 3,415
  • 10
  • 38
  • 62
0
votes
1 answer

WebUSB will not connect because another device is using the same interface

So I'm trying to connect to openEEG upon running the claimInterface() function I get NetworkError: Unable to claim interface lsusb shows this problem is likely because some MSI driver is running on the same driver Output of lsusb -v -s4 Bus 002…
gus
  • 1,678
  • 2
  • 12
  • 11
0
votes
0 answers

WebUSB reading data from a serial port not responding

I am using WEBUSB to read data from a weighing machine. The device is returning with status: stall when data is sent on the control transfer . The Serial port from the weighing machine has been connected to RS232 USB to Serial port converter (BAFO…
Haresh
  • 207
  • 1
  • 4
  • 11
0
votes
1 answer

DOMException claiming WebUSB interfaces

I've read similar questions others have had in using FTDI (CDC Class) and WebUSB, however none of the suggested answers have worked for me. I'm trying to communicate to an Arudino Mega via: this.device_.selectConfiguration(1) …
Ben Nguyen
  • 33
  • 6
0
votes
1 answer

Is speed 1.2 mb/sec normal on WebUsb?

I am making a communication web app that connects the usb device using stm32 mcu to the Chrome browser. When I run the code I wrote, I'm fetching data at a rate of about 1.2 mbytes / sec. This is based on the execution speed of the pure "transferIn"…
Reddol18
  • 57
  • 5
0
votes
1 answer

How exactly Chrome (Chromium) handle landing page in WebUSB protocol?

I'm trying to understand function of the landing page. According to specification: The iLandingPage field, when non-zero, indicates a landing page which the device manufacturer would like the user to visit in order to control their device. The UA…
0
votes
1 answer

WebUSB detect if web page is being opened

I am looking for some mechanism that would switch USB device to failsoft mode when connection to the site is broken (i.e. browser crashed, user closed tab with the site that communicates to the device or simply network connection is down). One of…
0
votes
1 answer

How to access methods and properties in java-script class from DART

Not sure if its a compiler limitation or something I don't understand (likely the last :-)) I'm trying to access a "DataView" structure buried in an native java-script class. I got it to work in debug mode; however, when compiled for deployment, the…
Bas E
  • 96
  • 1
  • 7
0
votes
2 answers

WEBUSB getting serial data PL2303

I am trying to get a reading from a weighing scale which communicates through RS-232 serial communication, value into a web application using WebUsb API. I am getting the data but after decoding it is coming like this �. I am getting the correct…
Haresh
  • 207
  • 1
  • 4
  • 11
0
votes
1 answer

WebUSB and U3 enabled flash drives

I'm curious if the WebUSB API is capable of working with a U3 enabled flash drive. The U3 flashdrives have a hidden, read-only partition that contains a small ISO file that acts as a physical CD ROM drive when inserted into a Windows computer and…
0
votes
3 answers

Google Chrome WebUSB API requestDevices() doesn't see barcode scanner Voyager 1450g

I'm trying to access a Voyager 1450g barcode scanner that is connected via USB, but navigator.usb.requestDevices() doesn't see this device. let button = document.getElementById('request-device'); button.addEventListener('click', async () =>…
Alexander
  • 169
  • 1
  • 1
  • 9
0
votes
1 answer

WebUSB Flash Drive Serial Number

So I want to use a flash drive as an option for 2FA on my website(using the devices serial umber). I am using WebUSB, but the flash drive won't show up in the device selection window. I have seen that web USB can't read/write files, so can it even…
Lgfhhh
  • 3
  • 5
0
votes
1 answer

Accessing WebUSB of Chrome through AngularJS

I am having an issue while using WebUSB APIs for chrome through angularJS. This is a project where I need to access an esc/pos thermal printer for printing invoice. In normal javascript: HTML:
Sudip dey
  • 7
  • 9
0
votes
1 answer

DART Chrome.USB throws exception when used in front-end Angular web-application

Im trying to use DART's chrome.usb API in a angular-4 dart web-application. But it keeps throwing an exception as _usb is null. if (_usb == null) _throwNotAvailable(); As a workaround, I wrote a DART wrapper around a javascript library (inspired by…
1 2 3
13
14