我想在Windows上使用带有libusbK的WebUSB。
看起来WebUSB只能与WinUSB驱动一起工作。我不能让它和libusbK一起工作。
我搜索了一篇详细的论文,但什么也找不到。
我在https://wicg.github.io/webusb/上没有看到任何关于这方面的信息
在Windows上可以将WebUSB与libusbK一起使用吗?
我有FTDI型FT232H芯片,我使用libusbK驱动它。
下面是代码
<!DOCTYPE html>
<html>
<body>
<button type="button" id="request-device">click me to list connected usb devices</button>
<script>
'use strict';
let button = document.getElementById('request-device');
button.addEventListener('click', async () => {
let device;
let e;
let filters;
await navigator.usb.requestDevice({filters: []})
.then(device => {
console.log("vendorId:" + device.vendorId.toString(16) +
" productId:" + device.productId.toString(16));
})
.catch(e => {
console.log("There is no device. " + e);
});
});
</script>
</body>
</html>Chrome会打开一个弹出窗口,里面有不存在的设备,但我的设备不在列表中。我重新安装了驱动程序到WinUSb的扎迪格。重新启动计算机。启动我的代码。我在列表中看到了我的设备。
WebUSB只能与WinUSB驱动程序一起使用吗?
发布于 2020-01-08 08:51:43
Chrome并不正式支持libusb0或libusbK驱动程序,只支持WinUSB驱动程序。
https://stackoverflow.com/questions/59176781
复制相似问题