Chrome App usb DigitalPersona fingerprinted reader not found

狂风中的少年 提交于 2020-01-02 13:58:21

问题


I'm trying develop Google Chrome App(or extension, not sure) to use DigitalPersona fingerprint reader on Windows.

Following : 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);

Result is "App was granted the 'usbDevices' permission, but device not found". p.s. the usb information above was found in windows device manager.

Don't know why this happened. Does Google Chrome not support DigitalPersona fingerprint reader?

p.s. Chrome://inspect said "No devices detected."

The content of manifest.json is the same as the example of knob, but vendorId and 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}]}]
}

回答1:


As noted on the 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 or findDevice doesn't work for you, you can try to use a generic low level driver instead.

This theory was confirmed by chiahao, as installing a generic low-level USB driver with the Zadig tool resolved the problem.



来源:https://stackoverflow.com/questions/24377895/chrome-app-usb-digitalpersona-fingerprinted-reader-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!