有人成功配置了 webusb 来扫描文档吗?我能够连接到 USB 扫描仪,但无法找到有关扫描文档的命令的任何文档:
$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
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 98mA
Interface Descriptor:
bLength 9 …Run Code Online (Sandbox Code Playgroud)