Chrome “无法在”USB设备“上执行”打开“:拒绝访问,”

kgsdhlau  于 2022-12-06  发布在  Go
关注(0)|答案(1)|浏览(1362)

Windows 8操作系统
我尝试了Wemos D1 R32和ESP32 UWB,但无法使用WEBUSB打开设备
我的密码是

document.getElementById('getDevices').addEventListener('click', (event) => {
      navigator.usb.requestDevice({
        filters: []
      }).then(function (device) {
        console.log(device);
        return device.open(); // Begin
      })
      .catch(error => {
        console.error(error);
     });
});

出现设备,然后选择错误

DOMException: Failed to execute 'open' on 'USBDevice': Access denied.

它当前使用的是"Silicon Labs CP210x USB转UART桥"设备驱动程序。
我按照这个question上的说明操作,但是当我更新设备驱动程序软件指向this inf文件时,我得到了这样的消息

---------------------------
Select Device
---------------------------
The folder you specified doesn't contain a compatible software driver for your device. If the folder contains a driver, make sure it is designed to work with Windows for x64-based systems.
iyfjxgzm

iyfjxgzm1#

由于您的系统已经安装了正确的UART驱动程序,请尝试使用Web Serial API,而不是尝试使用WebUSB API。

相关问题