英文:
Failed to claim interface WebUSB API
问题
获得对我的USB设备的访问权限后,我试图在设备上声明接口0并出现错误:
Uncaught (in promise) DOMException: Failed to execute 'claimInterface' on 'USBDevice': Unable to claim interface.
在 chrome://device-log/
中,我可以看到以下错误:
Interface 0 uses driver "silabser" instead of WinUSB.
我正在运行Windows 10。
我尝试重新连接设备,重新安装驱动程序以使Windows识别设备。
英文:
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 to claim interface.
In chrome://device-log/
I can see the following error:
Interface 0 uses driver "silabser" instead of WinUSB.
I am running on Windows 10.
I tried reconnecting the device, reinstalling the driver for windows to recognize the device.
答案1
得分: 0
silibaser
驱动程序是一个 USB 串口驱动程序。如果您不需要在 USB 级别上控制此设备,您可以使用 Web Serial API 来访问通过现有驱动程序连接的设备。
如果您需要发送自定义的 USB 命令,则需要使用类似 Zadig 这样的工具,将 silabser
驱动程序替换为 winusb
驱动程序。
英文:
The silabser
driver is a USB serial driver. If you don't need USB-level control over this device you can use the Web Serial API instead to access the device through the existing driver.
If you need to send custom USB commands then you will need to replace the silabser
driver with the winusb
driver using a tool like Zadig.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论