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
16
votes
8 answers

USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection error with ChromeDriver v87 / Chrome v87 using Selenium on Windows10

We recently upgraded our Windows 10 test environment with ChromeDriver v87.0.4280.20 and Chrome v87.0.4280.66 (Official Build) (64-bit) and after the up-gradation even the minimal program is producing this ERROR…
11
votes
0 answers

How to Access Smart Card from a Chrome browser using WebUSB API and PC/SC?

I'm trying to write a web application which needs to exchange messages with a local Smart Card. Currently I'm trying to use WebUSB API to connect the Chrome with the smart card reader, but I'm struggling to use the PC/SC specification. In my…
Cauê Aruã
  • 111
  • 1
  • 4
10
votes
1 answer

WebUSB getDevices empty list

Running Chrome 56.0.2924.76 (64-bit) on Windows 10 PRO Version 1511 (OS Build 10586.753). Have enabled experimental-web-platform-features on chrome, running it with flag --disable-webusb-security and as administrator. I try to get USB device list on…
Tauri28
  • 888
  • 1
  • 18
  • 30
10
votes
1 answer

How to claim interface using WebUSB?

After obtaining access to an attached device using navigator.usb.requestDevice I'm trying to open a connection with an attached device as follows: device.open() .then(() => device.selectConfiguration(1)) .then(() =>…
Joris Blaak
  • 398
  • 2
  • 10
9
votes
1 answer

Google Chrome WebUSB API error while trying to claim interface

I'm trying to use Google Chrome webUSB api to access a card reader connected to my computer via USB. Following the instructions here, everything is okay up until I try to claim the interface which gives me an error: "Failed to claim interface 0:…
jdrake
  • 333
  • 4
  • 17
8
votes
2 answers

Windows 10 WebUSB printing issues with Zebra LP2844 DOMException: Access denied

In a project I'm trying to use the WebUSB API available in Chrome to print using a Zebra LP2844 printer. I succeeded on OSX without issues and eventually on Ubuntu and on ChromeOS thanks to this post that talked about unbinding the kernel driver so…
jmrodriguez
  • 151
  • 2
  • 9
7
votes
1 answer

WebUSB: The requested interface implements a protected class

I'm trying to use a card reader (https://www.ewent-online.com/tcpdf/pdf/ew/p/EW1052/) to read a Health Card. This is the code (copy-pasted from the official doc: https://developers.google.com/web/updates/2016/03/access-usb-devices-on-the-web): var…
Alex Ferreli
  • 548
  • 1
  • 7
  • 14
6
votes
1 answer

WebUSB API protected interface class error

I'm trying to use the WebUSB api with Chrome 67. The following code was working a month ago. I'm not sure if something is changed or if I missing something. The error I'm getting now is occurring when I'm trying to claim the interface. The error…
Jon
  • 333
  • 2
  • 8
6
votes
4 answers

Webusb to scan documents

Anybody had successfully configured webusb to scan a document ? I am able to connect to the usb scanner but wasn't able to find any documentation on commands to scan documents : $lsusb -v Bus 001 Device 007: ID 1083:163e Canon Electronics, Inc.…
Hatem
  • 200
  • 1
  • 10
6
votes
0 answers

Read NFC tag UID with WebUSB API and acr122u external NFC reader

I'm trying to read NFC Tag UID by utilizing external USB NFC Reader acr122u and WebUSB API I'm able to authorize USB device, turn off/on buzzer, change led color etc., but unable to read Tag UID. var usbd = {}; let device; let deviceEndpoint =…
Alex X
  • 63
  • 1
  • 5
6
votes
2 answers

Webusb: Access Denied trying to open printer on Windows

I am trying to allow a POS web app to print directly to a StarMicronics (or any receipt printer, for that matter) using the Chrome webusb API. I am using the example here almost exactly except I have modified the vendorId filter to the Vendor ID of…
reblevins
  • 99
  • 1
  • 8
5
votes
1 answer

Web Serial API - Uncaught (in promise) DOMException: Failed to open serial port / required member baudRate is undefined

The code below works on my Xubuntu machine, but now I'm on Kubuntu and it isn't working anymore - it won't open the port. The Arduino IDE works fine (can write code to the board) and I'm able to select the device (Arduino Uno) in Chrome, but the…
uber
  • 4,163
  • 5
  • 26
  • 55
5
votes
0 answers

Web usb transfer data from device to browser not working

Above is my device configuration.I am trying to get data from it ,I am using below code to to get the data document.getElementById("request").onclick = function() { navigator.usb.requestDevice({ filters: [{ vendorId: 1659 }] …
gANDALF
  • 360
  • 4
  • 21
5
votes
1 answer

Can I access an USB HID in Chrome without an App?

I want to use an USB HID from a website. The website will only be accessed by Chrome browsers. The solution should require a minimum amount of extra software and setup for the website user to work. The USB device presents itself as USB HID to the OS…
5
votes
2 answers

SmartCard reader "Access denied" while claiming interface with Webusb on chrome

I am developing a javascript library to perform smart card operations using the CCID protocol over chrome webusb API. Everything goes well when I plug the smart card reader on Linux and MacOS, however I get stuck on windows when I try to claim the…
lmeunier
  • 53
  • 1
  • 4
1
2 3
13 14