我正在尝试开发 Google Chrome 应用程序(或扩展程序,不确定)以在 Windows 上使用 DigitalPersona 指纹识别器。
以下: https://developer.chrome.com/apps/usb https://github.com/GoogleChrome/chrome-app-samples/tree/master/usb
var DEVICE_INFO = {
"vendorId": 1466, //0x05BA
"productId": 10 //0x000A
};
chrome.usb.findDevices(DEVICE_INFO, call_method);
结果是“应用程序被授予‘usbDevices’权限,但未找到设备”。 附:上面的usb信息是在windows设备管理器中找到的。
不知道为什么会这样。 Google Chrome 浏览器不支持 DigitalPersona 指纹读取器吗?
附注Chrome://inspect 说“未检测到设备”。
manifest.json的内容和knob的例子一样,只是vendorId和productId:
{
"name": "USB Spinner Sample",
"version": "0.3",
"manifest_version": 2,
"minimum_chrome_version": "23",
"app": {
"background": {
"scripts": ["background.js"]
}
},
"permissions": ["usb"],
"optional_permissions": [ {"usbDevices": [{"vendorId": 1466, "productId": 10}]}]
}
最佳答案
如 usb-label-printer sample Chrome App 中所述:
Some Windows device drivers take ownership of the device and don't allow Chrome to connect to them. If
openDevice
orfindDevice
doesn't work for you, you can try to use a generic low level driver instead.
这一理论得到了 chiahao 的证实,因为安装了一个通用的低级 USB 驱动程序与 Zadig工具解决了问题。
关于usb - 找不到 Chrome 应用 USB DigitalPersona 指纹读取器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24377895/