Google chrome chrome.usb.getDevices找不到CH340(FTDI)串行适配器

Google chrome chrome.usb.getDevices找不到CH340(FTDI)串行适配器,google-chrome,google-chrome-app,Google Chrome,Google Chrome App,我有arduino纳米连接到计算机,一个使用CH340芯片。 从chrome我可以看到串行端口(从chrome.serial.getDevices),但从chrome.usb.getDevices我找不到。我正在寻找获取连接/断开连接消息的方法。 这是可能的,因为它在BetaLight配置程序中使用,但有不同的处理器 manifest.json "permissions": [ "serial", "usb", { "usbDevices": [ { "v

我有arduino纳米连接到计算机,一个使用CH340芯片。 从chrome我可以看到串行端口(从chrome.serial.getDevices),但从chrome.usb.getDevices我找不到。我正在寻找获取连接/断开连接消息的方法。 这是可能的,因为它在BetaLight配置程序中使用,但有不同的处理器

manifest.json
"permissions": [
  "serial", "usb",
  {
  "usbDevices": [
      {
        "vendorId": 6790,
        "productId": 29987
      } 
  ]}
]

and js code
function onDeviceFound(devices) {
  this.devices=devices;
  if (devices) {
    if (devices.length > 0) {
      console.log("Device(s) found: "+devices.length);
      console.log(devices[0]);
    } else {
      console.log("Device could not be found");
    }
  } else {
    console.log("Permission denied.");
  }
}
chrome.usb.getDevices({"vendorId": 6790, "productId": 29987}, onDeviceFound);

关于串行端口的信息确认数据是正确的{displayName:“USB-serial CH340”,路径:“COM3”,产品ID:29987,vendorId:6790}Chrome USB很挑剔,需要特定的USB驱动程序,我不记得具体是哪个。