webusb

Webusb to scan documents

久未见 提交于 2019-12-07 11:57:10
问题 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. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 1 bMaxPacketSize0 64 idVendor 0x1083 Canon Electronics, Inc. idProduct 0x163e bcdDevice 2.02 iManufacturer 1 CANON

WebUSB API protected interface class error

北城以北 提交于 2019-12-06 01:41:24
问题 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 messages are as follows: DOMException: The requested interface implements a protected class. and An attempt to claim a USB device interface has been blocked because it implements a protected interface class. window.setInterval(function() { navigator

Webusb to scan documents

拈花ヽ惹草 提交于 2019-12-05 19:57:52
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. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 1 bMaxPacketSize0 64 idVendor 0x1083 Canon Electronics, Inc. idProduct 0x163e bcdDevice 2.02 iManufacturer 1 CANON iProduct 2 CANON DR-M160 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9

Failed to claim interface 0: Device or resource busy

放肆的年华 提交于 2019-12-03 18:14:23
问题 I am trying to communicate with usb device using WEBUSB API . BUT when I am trying to claim Interface it shows "DOMException: Unable to claim interface" the bConfigurationvalue is 1 and interface number is 0 . I am adding the output of command lsusb -v below ~$ lsusb -v Bus 001 Device 005: ID 0930:6544 Toshiba Corp. TransMemory-Mini / Kingston DataTraveler 2.0 Stick (2GB) Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0

Webusb: Access Denied trying to open printer on Windows

本小妞迷上赌 提交于 2019-12-01 10:40:36
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 StarMicronics. I have also tried it with a completely empty filter. It works great on the Mac computers I have tested it on, but the problem is on Windows. When I click the print button, Chrome opens up the connection window, my device is listed and I can select it and click Connect. So navigator.usb.getDevices() is working great. When I refresh the

Webusb: Access Denied trying to open printer on Windows

試著忘記壹切 提交于 2019-12-01 08:25:38
问题 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 StarMicronics. I have also tried it with a completely empty filter. It works great on the Mac computers I have tested it on, but the problem is on Windows. When I click the print button, Chrome opens up the connection window, my device is listed

Failed to claim interface 0: Device or resource busy

谁都会走 提交于 2019-11-29 16:56:53
I am trying to communicate with usb device using WEBUSB API . BUT when I am trying to claim Interface it shows "DOMException: Unable to claim interface" the bConfigurationvalue is 1 and interface number is 0 . I am adding the output of command lsusb -v below ~$ lsusb -v Bus 001 Device 005: ID 0930:6544 Toshiba Corp. TransMemory-Mini / Kingston DataTraveler 2.0 Stick (2GB) Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0930 Toshiba Corp. idProduct 0x6544 TransMemory-Mini /

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

感情迁移 提交于 2019-11-28 10:29:56
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 permissions)" message. Is it really a permission problem ? Or is it some windows service I am not aware of