Socket
Book a DemoInstallSign in
Socket

fingerprint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fingerprint-plugin

a fingerprint plugin for ifreezer

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

指纹识别插件

安装

cordova plugin add fingerprint-plugin

使用

1.打开指纹

fingerprintPlugin.openFingerprint(param, successCallback, errorCallback);

2.关闭指纹

fingerprintPlugin.closeFingerprint(successCallback, errorCallback);

3.读取指纹模块数据

fingerprintPlugin.readFingerprint(successCallback, errorCallback);

4.中断指令

fingerprintPlugin.interrupt(successCallback, errorCallback);

5.查询手指状态

fingerprintPlugin.checkFingerStatus(successCallback, errorCallback);

6.注册指纹

fingerprintPlugin.registerFinger(param, successCallback, errorCallback);

7.匹配指纹

fingerprintPlugin.matchFinger(param, successCallback, errorCallback);

8.删除指纹

fingerprintPlugin.deleteFinger(param, successCallback, errorCallback);

示例

onDeviceReady: function() {
    fingerprintPlugin.openFingerprint(["/dev/ttysWK1", 115200], function(success) {
        alert(success);
        fingerprintPlugin.readFingerprint(function(data){
            alert(data);
        }, function(error) {
            alert(error);
        })
    }, function(error) {
        alert(error);
    });
},

字段说明

type	--	0x00 中断指令
		--	0x02 查询手指状态
		--	0x03 注册指纹
		--	0x04 匹配指纹
		--	0x05 删除指纹
		
reply	--	0x00 成功
		--	0x8F01 XOR校验错误
		--	0x8F02 SUM校验错误
		--	0x8F03 指令错误
		--	0x8F04 参数错误
		--	0x8F06 无系统文件
		--	0x8F07 系统错误
		--	0x8101 传感器初始化失败
		--	0x8102 传感器校正失败
		--	0x8201 手指检测超时
		--	0x8301 指纹已注册
		--	0x8304 指纹注册满
		--	0x8401 无注册指纹
		--	0x8402 匹配失败
		--	0x8501 删除指定的指纹模板失败
		
result	--	查询手指状态时 0-有手指 1-无手指
		--	注册指纹时(第三次) 注册的指纹ID
		--	匹配指纹时 匹配的指纹ID

Keywords

fingerprint

FAQs

Package last updated on 26 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.