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 to UART Bridge”设备驱动程序。
我按照这个问题的说明进行操作,但是当我更新设备驱动程序软件以指向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.
不要尝试使用 WebUSB API,因为您的系统已经安装了正确的 UART 驱动程序,请尝试使用 Web Serial API。
使用zadig软件: