英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论