指纹扫描仪与WebUSB

huangapple go评论89阅读模式
英文:

Finger print scanner with webusb

问题

可以使用WebUSB(https://wicg.github.io/webusb)连接/配对USB指纹扫描仪吗?

我有Digital Persona U.are.U 4500,并希望在浏览器(Chrome)中使用React.js进行连接,获取图像文件并进行图像比较。

英文:

Is possible to connected/paired usb finger print scanner with webusb (https://wicg.github.io/webusb)?

I have digital persona U.are.U 4500 and want to connect to browser (chrome) with react.js and get image file and can compare image

答案1

得分: 4

WebUSB是用于与USB设备通信的通用API,因此支持特定设备需要了解与设备通信所使用的数据协议。制造商可能提供或者不提供用于此协议的公共文档,因此通常需要通过观察设备与闭源驱动程序之间的通信来进行逆向工程。在存在开源驱动程序的情况下,可以将其作为构建JavaScript应用程序以控制设备的参考。

在DigitalPersona U.are.U 4500的情况下,似乎开源的libfprint库包含了这一系列设备的驱动程序:https://gitlab.freedesktop.org/libfprint/libfprint/blob/master/libfprint/drivers/uru4000.c

这将是理解如何与该设备通信的良好起点。

英文:

WebUSB is a generic API for communicating with USB devices and so supporting any particular device requires knowledge of the data protocol used to communicate with the device. Manufacturers may or may not provide public documentation for this protocol and so it is often necessary to reverse engineer it by observing the communication between the device and a closed-source driver. In the cases where an open-source driver is available then that can be a reference for building a Javascript application to control the device.

In the case of the DigitalPersona U.are.U 4500 it appears that the open-source libfprint library includes a driver for this series of devices: https://gitlab.freedesktop.org/libfprint/libfprint/blob/master/libfprint/drivers/uru4000.c

This would be a good starting point for understanding how to communicate with the device.

huangapple
  • 本文由 发表于 2020年1月3日 17:47:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/59576300.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定