webusb

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

你。 提交于 2020-08-02 07:27:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 months ago . Improve this question 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 researches I

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

不打扰是莪最后的温柔 提交于 2020-01-06 04:34:11
问题 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 () => { let device; try { device = await navigator.usb.requestDevice({ filters: [{}]}); } catch (err) { // No device was selected. console.log('Error:', err); } I will be grateful for any ideas. 回答1: I have a Honeywell Voyagar 1202g barcode scanner that I

WebUSB and RFID readers

与世无争的帅哥 提交于 2019-12-21 17:04:07
问题 I was wondering if anyone had any experience getting RFID readers to work through WebUSB. The reader I'm using is the https://www.parallax.com/product/28340 . From what I've read, I'd have to write a driver to read from the device. I was just wondering if anyone has done any work regarding this and what they ended up doing. The goal here is to read RFID tags without using another application to feed it to the web application. Thanks! 回答1: The USB variant of that RFID reader uses an FTDI

SmartCard reader “Access denied” while claiming interface with Webusb on chrome

不问归期 提交于 2019-12-17 19:00:33
问题 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 interface. I tried to run chrome as an administrator, disable smart card services / CCID drivers on windows in case those were claiming the interface, but nothing does it. I keep having the "Failed to claim interface: Access denied (insufficient

WebUSB with FT230x serial chip

大憨熊 提交于 2019-12-11 15:13:24
问题 I'm hoping to use the newly released WebUSB API to communicate with a device i developed. This devices uses a FT230X USB to serial chip. The drivers of this chip are installed on most devices and communicating with it using minicom works smoothly. Now i want to try communicate with it through the browser. I started by downloading this example for arduino: webusb arduino. I set the filter to { 'vendorId': 0x0403, 'productId': 0x6015 } which shows the device. I'm able to find the device but

Connecting to Serial USB device via WebUSB

社会主义新天地 提交于 2019-12-11 05:00:57
问题 I have hardware which is connected to the mac or windows via USB Serial Mode. Currently, I have a nodejs application which sends and receive messages to this hardware using "serial" node module. I am trying to connect to the hardware from WebPage. I used WebUSB serial.js. I am able to see the device and guess it is connecting. But when I try to send/receive the message - it says unable to claim the interface. I would like to know can I use the WebUSB for USB with serial support? 回答1: The

USB device interface has been blocked

杀马特。学长 韩版系。学妹 提交于 2019-12-10 18:26:52
问题 I am trying to use USB RFID reader in our website. by using navigator.usb.getDevices() i am selecting my device. open() and selectConfiguration(1) is working. but device.claimInterface(0); is giving me following error. An attempt to claim a USB device interface has been blocked because it implements a protected interface class. 回答1: Chrome prevents certain interfaces from being accessed for security reasons. These interfaces are the following: audio HID mass storage smart card video audio

Google Chrome WebUSB API error while trying to claim interface

白昼怎懂夜的黑 提交于 2019-12-08 16:49:11
问题 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: Device or resource busy" It appears that my OS (linux mint) has accessed this device and doesn't allow the operator to have access. Any suggestions how to overcome this? EDIT: When I unbind the driver, I get the following error: "Failed to claim