未能获取接口 WebUSB API。

huangapple go评论70阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月15日 16:51:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76480756.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定