找不到Chrome应用USB usb DigitalPersona指纹读取器 [英] Chrome App usb DigitalPersona fingerprinted reader not found

查看:171
本文介绍了找不到Chrome应用USB usb DigitalPersona指纹读取器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发Google Chrome应用(或扩展程序,不确定)以在Windows上使用DigitalPersona指纹读取器.

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

以下内容: 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'权限,但未找到设备". p.s.在Windows设备管理器中找到了上面的usb信息.

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

不知道为什么会这样. Google Chrome浏览器不支持DigitalPersona指纹读取器吗?

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

p.s. Chrome://inspect表示未检测到设备".

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

manifest.json的内容与旋钮示例相同,但是vendorId和productId:

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}]}]
}

推荐答案

usb-label-printer示例Chrome应用:

某些Windows设备驱动程序拥有该设备的所有权,并且不允许Chrome连接到它们.如果openDevicefindDevice对您不起作用,则可以尝试使用通用的低级驱动程序.

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.

chiahao证实了这一理论,即使用解决了 Zadig 工具的通用低级USB驱动程序问题.

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

这篇关于找不到Chrome应用USB usb DigitalPersona指纹读取器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆