Questions tagged [webusb]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Unable to Print to Zebra ZQ620 Printer Using WebUSB API and Python Libraries

I am working on a project that involves connecting to a Zebra Technologies printer (Model: ZEBRA ZQ620) via USB. I want to be able to print information using JavaScript because I making a Extensions ...
NoNam4's user avatar
  • 447
0 votes
1 answer
36 views

WebUSB/transferIn: how to reuse memory?

transferIn seems allocate memory each function call, is there any way to reuse it? My goal is to get lots of data from device, with a dedicated web worker and this advice, performance still not good ...
mingpepe's user avatar
  • 489
0 votes
1 answer
62 views

WebUSB doesn't recognize Windows device

I'm trying to make communication between my Android phone and Windows PC via WebUSB. My PC can see my phone withput any troubles, but my phone can't. Code I'm using, actually it's part of a function ...
pepa z depa's user avatar
1 vote
0 answers
37 views

microbit is unable to flash board with a Windows ARM64 laptop

When using a Windows 11 ARM64 laptop, I encounter difficulties flashing my microbit program to the board. Could you please advise if there are any plans to support the Windows ARM64 platform in ...
Gary Hu's user avatar
  • 11
0 votes
0 answers
67 views

It is possible to change USB device class from mass storage to serial?

I have a USB device, that works as a mass storage device. The access is blocked on Chrome browser through WebUSB because it's a mass storage device. The device also supports raw access as a block ...
Timo's user avatar
  • 26
0 votes
0 answers
87 views

USB Scale not showing up using WebHID

I have a USB scale of type Mettler/Toledo PS60 which I'm trying to connect to using the WebHID API in order to receive scale values for my web app. However it doesn't show up in the list of devices ...
Gunnar Berg's user avatar
0 votes
1 answer
50 views

How can i interact with Chrome pop-up for USB connection in Python/Selenium?

i'm developing a Test Automation framework in Python using Selenium, Appium and Behave/Gherkin. I'm developing the test of a device that is needed to be paired to Web App. In particular, the Web App ...
ShinjiruPP's user avatar
0 votes
1 answer
129 views

Can webusb automatically connect without user-gesture, when device has no serial number?

I am writing a web-app, where my users use, a DS2490 ibutton reader, zebra scanner, zebra printer and Loadstar di1000 Loadcell. I run chrome os flex on the devices, that run this webapp, and i manage ...
Mads Fagerlund's user avatar
0 votes
1 answer
149 views

Failed to claim interface WebUSB API

After obtaining access to my usb device, I am trying to claim interface 0 on the device and get the error: Uncaught (in promise) DOMException: Failed to execute 'claimInterface' on 'USBDevice': Unable ...
AleksiiKyryk's user avatar
3 votes
0 answers
97 views

The requested interface implements a protected class

I want to read NFC card's data the ACR1252 using reader through the browser. the reader is successfully seen by the browser, but it does not allow me to access the interface to implement authorization ...
Dominik's user avatar
  • 31
0 votes
1 answer
45 views

Custom Request Type

I am trying to develop a basic Proof of Concept for a Fingerprint reader with WebUSB. I can connect to the device, and the basic functions work. Using Wireshark, I managed to sniff the USB packets and ...
Brian Wong's user avatar
0 votes
0 answers
796 views

Failed to execute 'open' on 'USBDevice': Access denied

I am trying to access a smart card reader on the client with the Web USB API in order to establish a connection with the server and be able to send commands to the smart card, but it fails to execute ...
alberman's user avatar
0 votes
1 answer
543 views

Error when trying to claim interface for WebUSB

I am trying to use WebUSB in order to read data from a physical ID scanner on a website. However, when I try to claim the interface I get the following error: Uncaught (in promise) DOMException: ...
Spectre's user avatar
  • 41
0 votes
0 answers
118 views

Exclusive WebHID access within Electron app

I'm trying to write an electron app which uses an USB Volume knob for very special operations. The device is recognized in Ubuntu and Windows as HID Device. I was able to connect my electron app with ...
cwngg's user avatar
  • 1
0 votes
2 answers
272 views

WebUSB API, for pushing commands/configuration to the device through webApp

I am doing some research on the WebUSB API for our company because we are going to start to manufacture devices in house. Our current device manufacture comes with an application so the team can plug ...
Phil Lucks's user avatar
  • 2,826
0 votes
0 answers
223 views

How to write a file to a device paired via the WebUSB API

Is it possible to write a file to a USBDevice object after it has been paired in browser? Specifically when the device is mass storage such as a USB Flash Drive or SD card, and a compatible browser (...
Bryce's user avatar
  • 51
2 votes
1 answer
181 views

USB reset in WebUSB on MacOS not working?

I'm working in Chrome for MacOS (108.0.5359.124) and Microsoft Edge (107.0.1418.62) on MacOS 12.6.1 (though confirmed the same issue on 13.0.1 as well), and the reset() method of WebUSB does not seem ...
riz94107's user avatar
0 votes
0 answers
213 views

Is there a hack/workaround to communicate from Firefox to a USB device without the Gamepad API?

I am developing the hard- & software for a keyboard, and I'd like to make a web-based configurator (something like the (chrome-only) Wootility for the Wooting keyboards). Support for Chromium ...
lxhom's user avatar
  • 670
0 votes
0 answers
31 views

ESC/POS printer device Unable to claim interface [duplicate]

I try to use WebUSB api to connect to print characters to my POS printer with this code: <html> <body> <textarea id="printContent"></textarea> <input type="...
David Yappeter's user avatar
1 vote
1 answer
1k views

WebUSB: device.open() on any device causing "Failed to execute 'open' on 'USBDevice': Access denied"

I'm playing with a thermal printer to work with WebUSB. Here is the minimal Glitch demo (please note this demo may show your connected usb devices): preview: https://canary-adjoining-garlic.glitch.me ...
Wajahath's user avatar
  • 2,946
0 votes
0 answers
59 views

How to use Web USB API in Odoo?

I found this Web USB API and I think I want to try it in Odoo by implementing it in a button on click in a form. How to achieve such task in Odoo?
holydragon's user avatar
  • 6,248
2 votes
2 answers
6k views

"Failed to execute 'open' on 'USBDevice': Access denied."

Windows 8 I have tried both a Wemos D1 R32 and a ESP32 UWB, but I can't open a device using WEBUSB My code is document.getElementById('getDevices').addEventListener('click', (event) => { ...
CarbonMan's user avatar
  • 4,350
0 votes
0 answers
1k views

Failed to execute 'transferOut' on 'USBDevice': The specified endpoint is not part of a claimed and selected alternate interface

I am having some difficulty with the transferOut to my Star TSP thermal printer. My code is working on one PC but on another I am getting the error: 'Failed to execute 'transferOut' on 'USBDevice': ...
Spitfire5793's user avatar
0 votes
1 answer
345 views

webAPI - Serial Device via USB converter

I am experimenting with connecting devices via webAPI for the first time. I am in the process of purchasing a set of scales which has weight indicator. The plan is to connect it my webApp and use ...
Ka Tech's user avatar
  • 9,007
0 votes
1 answer
659 views

WebUSB API - Unable to listen to device events

I am playing with WebUSB API for the first time. I use angular 9+ and right now I am just trying to connect to my USB mouse and listen to events when I move the mouse. I can successfully request the ...
Ka Tech's user avatar
  • 9,007
0 votes
1 answer
158 views

Angular: Convert a service function into an observable

Having spent some time trying to get my head around using observable's on service functions, I have decided to ask the question on here. I have a service which is designed around WebUSB in order to ...
Jim Grant's user avatar
  • 1,128
0 votes
1 answer
146 views

The "size" argument must be of type number

I've got a problem with sending a transferOut to my USB device in my Electron application. Here is the code where the problem occurs: async sendDataToDevice(device) { const data = new Uint16Array(...
rychtaradam's user avatar
0 votes
0 answers
261 views

Get UID tag in WebUSB in node - Reader ACR122u

I am building a node application, which should read information from an NFC reader connected through USB. I´m able to power up the device, I can read ATR, but unable to read UID of a card, when the ...
Jarda Hrbacek's user avatar
0 votes
1 answer
868 views

Reading NFC into web application

I am building a web application, which should read information from an NFC reader connected through USB. It is supposed to work on windows desktop and linux. I need a method similar to Web NFC API, ...
Jarda Hrbacek's user avatar
2 votes
2 answers
203 views

Wait for WebHID response to be ready [closed]

I'm sending data to the target device using device.sendReport(reportID, dataBuffer) of WebHID, but trying to read the response before it gets ready (i.e) the response takes time to be generated. For ...
Hema's user avatar
  • 31
1 vote
1 answer
577 views

WebUsb cutting Thermal print receipt

I'm working on a point-of-sale web application I was able to detect and print from the web using this code <html> <body> <textarea id="printContent"></textarea> &...
Fathy's user avatar
  • 387
1 vote
1 answer
87 views

Intercept navigator.usb.requestDevice dialog with puppeteer

Is it possible to intercept the dialog created after requesting a usb device via navigator.usb.requestDevice? I tried page.on("dialog", dialog => () from the puppeteer script and ...
ealfonso's user avatar
  • 6,672
2 votes
1 answer
180 views

Enable webUSB across cross-origin iframes without sharing permissions

I'm trying to work with webUSB on a page that contains sandboxed iframes from different origins. My goal is that the top level page and each of the embedded contexts can all use webUSB, but don't ...
Matt Bierner's user avatar
  • 58.5k
1 vote
0 answers
794 views

WebUSB: can't open device

I am trying to open a device through WebUSB on Chromium but device.open fails with DOMException: Access denied.. Looking at chrome://device-log, this errors seems to come from chrome being denied file ...
Nino Filiu's user avatar
  • 16.8k
-1 votes
1 answer
112 views

Can webusb connect a website to a Kmtronic Usb one relay device in a ChromeOs chromebox?

Hi I am trying to give a website direct on/off control of a usb relay on a chrome os device. In the past I just used some terminal scripts to run on start-up on a ubuntu device but chrome os is giving ...
user19182644's user avatar
3 votes
1 answer
3k views

access web serial api in android chrome browser

using web serial API in windows, mac os, and Linux chrome browser I can receive and send data. but in the android chrome browser, I am not able to send or receive data from a serial device. so which ...
Tejas Chauhan's user avatar
2 votes
1 answer
695 views

Can Chrome extensions communicate with USB-devices?

Chrome Apps can use the Chrome.usb and Chrome.hid apis. These are deprecated, when writing Chrome extensions. Is it possible to use web.usb or web.hid in the popup html? In my popup.js this if ("...
Bendt Campus 10's user avatar
0 votes
1 answer
202 views

WebUSB navigator.usb.getDevices() empty after coming from the system prompt

On my hardware I defined the landing page URL, so my OS shows the little prompt directly when I plug it in and when I click on it, it opens the URL. So far so good. But now on the landing page I need ...
Nico Martin's user avatar
  • 1,268
1 vote
2 answers
3k views

WebHID: no compatible device found, but device shows up in Chrome device log?

For starters I used navigator.hid.requestDevice without any filters. So I can see which devices are available before adding a custom filter, but my device doesn't show up in the HID browser device ...
karamazovbros's user avatar
1 vote
1 answer
2k views

Chrome WebUSB controlTransferOut Results in "Transfer failed: A device attached to the system is not functioning. (0x1F)"

I'm developing a consumer USB device that will be configured via a web interface. The first interface is a HID Gamepad. The second is a vendor interface where configuration will be handled. Running ...
NessDan's user avatar
  • 1,137
0 votes
1 answer
730 views

Connecting thermal printer on clients side via webusbapi and zadig

I'm trying to connect thermal printer on clients side through web app. (Frontend angular, backend c#) First I got Access denied, and then after Zadig I managed to open connection to thermal printer, ...
user3746480's user avatar
0 votes
1 answer
828 views

web serial api readable stream code not work well

while (true) { let { value, done } = await reader.read(); if (done) { // |reader| has been canceled. console.log("brack"); break; } console.log(value); ...
Tejas Chauhan's user avatar
0 votes
1 answer
663 views

access mass storage device on web browser with WEBUSB API

how to display all mass storage device (e.g.-pen drive, etc..) data in a web browser. I have successfully accessed comport device in the browser using serial API, but how to access the mass storage ...
Tejas Chauhan's user avatar
1 vote
2 answers
361 views

Understanding the WebUSB connection workflow

I am working on an Chrome webapp that uses WebUSB running on an Android device, and am trying to understand how the connection management works. If I am reading the spec right, if you don't already ...
Polly's user avatar
  • 549
1 vote
1 answer
147 views

Nano Ledger S in Angular

Today I ran into a problem while trying to connect my NANO Ledger S to my angular app. I've tried installing this package yet it does not seem to work due to the package throwing some errors. Module '&...
Patrick Cerny's user avatar
0 votes
1 answer
5k views

Read USB serial port data with web serial api in javascript

-I work on temperature and humidity reading device development. we have our own temperature and humidity reader device(USB-based COM(serial) port device). currently, we fetch the with standalone ...
Tejas Chauhan's user avatar
-1 votes
1 answer
245 views

WebUSB for connecting to custom hardware

I would like to talk to a custom piece of hardware via my web application using WebUSB The hardware is already able to communicate to a python script running on a laptop via USB Now I have 2 questions ...
Kevin Reuss's user avatar
0 votes
1 answer
213 views

WebUSB `USBTransferInResult`s seem to contain partial interrupt transfers

I'm using the WebUSB API in Chrome. I can pair with the device, claim an interface, and begin listening to an inbound interrupt endpoint that transfers three bytes every time I press a button, and ...
user avatar
0 votes
1 answer
578 views

There is no prompt to select USB device using navigator.usb.requestDevice() on Zebra Enterprise Browser

I am trying to use Web USB API to communicate with USB relay. The web page is running on Zebra device. It is working fine in Chromium. I am getting a prompt to select USB device. device = await ...
fzhou's user avatar
  • 1
-1 votes
1 answer
1k views

WebUSB access mass storage USB serial number

I am trying to access a USB mass storage device using the WebUSB interface. I have read that USB mass storage devices cannot be accessed: "For example, if the device is a USB mass storage device ...
user3691763's user avatar

1
2 3 4 5