WO2020163976A1 - Data processing method, smart lock system, and storage medium - Google Patents

Data processing method, smart lock system, and storage medium Download PDF

Info

Publication number
WO2020163976A1
WO2020163976A1 PCT/CN2019/074768 CN2019074768W WO2020163976A1 WO 2020163976 A1 WO2020163976 A1 WO 2020163976A1 CN 2019074768 W CN2019074768 W CN 2019074768W WO 2020163976 A1 WO2020163976 A1 WO 2020163976A1
Authority
WO
WIPO (PCT)
Prior art keywords
fingerprint
processing
user operation
module
acquisition device
Prior art date
Application number
PCT/CN2019/074768
Other languages
French (fr)
Chinese (zh)
Inventor
曾鑫澄
李庆斌
Original Assignee
深圳市汇顶科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to PCT/CN2019/074768 priority Critical patent/WO2020163976A1/en
Priority to CN201980000280.7A priority patent/CN109983512A/en
Publication of WO2020163976A1 publication Critical patent/WO2020163976A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1365Matching; Classification
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00563Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys using personal physical data of the operator, e.g. finger prints, retinal images, voicepatterns

Abstract

A data processing method, a smart lock system, and a storage medium, the method comprising: a processing apparatus receives a user operation request, the user operation request being used for indicating that the working state of a fingerprint processing module is a target working state corresponding to the user operation request (21); on the basis of the user operation request, generating a user operation command (22); and the processing apparatus controls the fingerprint processing module to interact in the target working state with a fingerprint acquisition apparatus in order to implement the operation corresponding to the user operation command and obtain a processing result (23). The processing apparatus can control the fingerprint processing module to interact with the fingerprint acquisition apparatus and implement unified management of the command operation, increasing the stability of the smart lock system and enhancing the user experience.

Description

数据处理方法、智能锁系统及存储介质Data processing method, smart lock system and storage medium 技术领域Technical field
本申请涉及信息安全技术领域,尤其涉及一种数据处理方法、智能锁系统及存储介质。This application relates to the field of information security technology, and in particular to a data processing method, smart lock system and storage medium.
背景技术Background technique
随着智能锁技术的迅速发展,快速普及,智能门锁逐渐进入到广大消费者的视线。尤其是具有指纹功能的智能锁,由于具有安全性高、使用方便、精确度高、美观时尚等特点,深受消费者的喜爱。With the rapid development and rapid popularization of smart lock technology, smart door locks have gradually entered the sight of consumers. Especially the smart lock with fingerprint function, because of its high security, easy to use, high precision, beautiful and fashionable, etc., it is deeply loved by consumers.
现有技术中,带指纹功能的智能锁系统主要包括处理器、指纹外设。具体的,处理器可以从指纹外设接收操作指令并进行相应的处理,例如,实现指纹识别、指纹注册、指纹删除等功能。In the prior art, a smart lock system with fingerprint function mainly includes a processor and fingerprint peripherals. Specifically, the processor may receive operation instructions from the fingerprint peripheral and perform corresponding processing, for example, to implement functions such as fingerprint identification, fingerprint registration, and fingerprint deletion.
然而,在上述智能锁系统中,处理器只能简单和指纹外设交互实现相应的操作,可操作性差,导致系统的稳定性差,用户体验不好。However, in the above-mentioned smart lock system, the processor can only simply interact with the fingerprint peripheral to implement corresponding operations, which has poor operability, resulting in poor system stability and poor user experience.
发明内容Summary of the invention
本申请提供一种数据处理方法、智能锁系统及存储介质,用于解决现有智能锁系统存在的系统稳定性差,用户体验不好的技术问题。The present application provides a data processing method, a smart lock system, and a storage medium, which are used to solve the technical problems of poor system stability and poor user experience in the existing smart lock system.
本申请第一方面提供一种数据处理方法,应用于智能锁系统,所述智能锁系统包括:处理装置和指纹获取装置,所述方法包括:The first aspect of the present application provides a data processing method, which is applied to a smart lock system. The smart lock system includes a processing device and a fingerprint acquisition device, and the method includes:
所述处理装置接收用户操作请求,所述用户操作请求用于指示指纹处理模块的工作状态为与所述用户操作请求对应的目标工作状态,所述处理装置包括指纹处理模块;The processing device receives a user operation request, the user operation request is used to indicate that the working state of the fingerprint processing module is a target working state corresponding to the user operation request, and the processing device includes a fingerprint processing module;
所述处理装置根据所述用户操作请求生成用户操作指令,所述用户操作指令用于指示所述指纹处理模块和所述指纹获取装置执行所述用户操作指令对应的操作;The processing device generates a user operation instruction according to the user operation request, where the user operation instruction is used to instruct the fingerprint processing module and the fingerprint acquisition device to perform an operation corresponding to the user operation instruction;
所述处理装置控制所述指纹处理模块在所述目标工作状态下与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果。The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the target working state, completes the operation corresponding to the user operation instruction, and obtains the processing result.
在第一方面的一种可能设计中,在所述处理装置根据所述用户操作请求生成用户操作指令之前,所述方法还包括:In a possible design of the first aspect, before the processing device generates a user operation instruction according to the user operation request, the method further includes:
若所述指纹处理模块的当前工作状态不是所述目标工作状态,所述处理装置控制所述指纹处理模块的工作状态切换为所述目标工作状态。If the current working state of the fingerprint processing module is not the target working state, the processing device controls the working state of the fingerprint processing module to switch to the target working state.
在第一方面的另一种可能设计中,所述方法还包括:In another possible design of the first aspect, the method further includes:
所述处理装置保存所述处理结果,以及控制所述指纹处理模块的工作状态切换至默认工作状态。The processing device saves the processing result, and controls the working state of the fingerprint processing module to switch to a default working state.
在本实施例中,指纹处理模块默认工作在识别状态,其通过周期性向指纹获取装置发送识别指令,使得指纹获取装置在接收到用户识别请求时直接执行指纹识别,无需上报,节省了识别时间,提高了用户体验。In this embodiment, the fingerprint processing module works in the recognition state by default. It periodically sends recognition instructions to the fingerprint acquisition device, so that the fingerprint acquisition device directly performs fingerprint recognition when receiving a user recognition request, without reporting, which saves recognition time. Improve the user experience.
在第一方面的上述可能设计中,所述指纹处理模块的工作状态包括:识别状态、注册状态和空闲状态;In the foregoing possible design of the first aspect, the working state of the fingerprint processing module includes: an identification state, a registration state, and an idle state;
其中,所述识别状态为所述指纹处理模块的默认工作状态,所述识别状态与所述注册状态、所述空闲状态之间能够相互切换;Wherein, the recognition state is a default working state of the fingerprint processing module, and the recognition state, the registered state, and the idle state can be switched mutually;
所述指纹处理模块在所述识别状态下与所述指纹获取装置执行指纹识别操作,所述指纹处理模块在所述注册状态下与所述指纹获取装置执行指纹注册操作,所述指纹处理模块在所述空闲状态下与所述指纹获取装置执行的操作至少包括如下一种:指纹删除、指纹查询、指纹优先级设置。The fingerprint processing module performs a fingerprint recognition operation with the fingerprint acquisition device in the recognition state, the fingerprint processing module performs a fingerprint registration operation with the fingerprint acquisition device in the registration state, and the fingerprint processing module is The operations performed with the fingerprint acquisition device in the idle state include at least one of the following: fingerprint deletion, fingerprint query, and fingerprint priority setting.
可选的,所述用户操作请求为指纹识别请求,所述指纹识别请求对应的目标工作状态为所述识别状态;Optionally, the user operation request is a fingerprint identification request, and the target working state corresponding to the fingerprint identification request is the identification state;
所述处理装置根据所述用户操作请求生成用户操作指令,包括:The processing device generates a user operation instruction according to the user operation request, including:
所述处理装置根据所述指纹识别请求生成指纹识别指令;The processing device generates a fingerprint identification instruction according to the fingerprint identification request;
所述处理装置控制所述指纹处理模块在所述目标工作状态下与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果,包括:The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the target working state, completes the operation corresponding to the user operation instruction, and obtains the processing result, including:
所述处理装置控制所述指纹处理模块在所述识别状态下与所述指纹获取装置进行交互,完成所述指纹识别指令对应的指纹识别操作,得到识别结果。The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the recognition state, completes the fingerprint recognition operation corresponding to the fingerprint recognition instruction, and obtains the recognition result.
可选的,所述用户操作请求为指纹注册请求,所述指纹注册请求对应的目标工作状态为所述注册状态;Optionally, the user operation request is a fingerprint registration request, and the target work status corresponding to the fingerprint registration request is the registration status;
所述处理装置根据所述用户操作请求生成用户操作指令,包括:The processing device generates a user operation instruction according to the user operation request, including:
所述处理装置根据所述指纹注册请求生成指纹注册指令;The processing device generates a fingerprint registration instruction according to the fingerprint registration request;
所述处理装置控制所述指纹处理模块在所述目标工作状态下与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果,包括:The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the target working state, completes the operation corresponding to the user operation instruction, and obtains the processing result, including:
所述处理装置控制所述指纹处理模块在所述注册状态下基于所述指纹注册指令与所述指纹获取装置进行至少N次交互,获取包括N个有效指纹信息的注册结果,其中,N为正整数。The processing device controls the fingerprint processing module to perform at least N interactions with the fingerprint acquisition device based on the fingerprint registration instruction in the registration state, and acquire registration results including N valid fingerprint information, where N is positive Integer.
在第一方面的再一种可能设计中,所述方法还包括:In yet another possible design of the first aspect, the method further includes:
所述处理装置检测所述指纹处理模块是否出现故障;The processing device detects whether the fingerprint processing module is faulty;
若确定所述指纹处理模块出现故障,所述处理装置对所述指纹处理模块和所述指纹获取装置进行复位操作;If it is determined that the fingerprint processing module is faulty, the processing device performs a reset operation on the fingerprint processing module and the fingerprint acquisition device;
在所述指纹处理模块和所述指纹获取装置重新运行后,所述处理装置从所述指纹获取装置获取指纹信息集,并将所述指纹信息集存储至所述处理装置包括的存储单元中。After the fingerprint processing module and the fingerprint acquisition device are re-run, the processing device acquires the fingerprint information set from the fingerprint acquisition device, and stores the fingerprint information set in the storage unit included in the processing device.
在第一方面的又一种可能设计中,所述处理装置检测所述指纹处理模块是否出现故障,包括:In yet another possible design of the first aspect, the processing device detecting whether the fingerprint processing module is faulty includes:
所述处理装置在向所述指纹获取装置发送所述用户操作指令后,检测是否在预设时限内接收到所述指纹获取装置反馈的处理结果;After sending the user operation instruction to the fingerprint acquisition device, the processing device detects whether the processing result fed back by the fingerprint acquisition device is received within a preset time limit;
若未在所述预设时限内接收到所述指纹获取装置反馈的处理结果,所述处理装置确定所述指纹处理模块出现故障。If the processing result fed back by the fingerprint acquisition device is not received within the preset time limit, the processing device determines that the fingerprint processing module is faulty.
在第一方面的又一种可能设计中,所述处理装置检测所述指纹处理模块是否出现故障,包括:In yet another possible design of the first aspect, the processing device detecting whether the fingerprint processing module is faulty includes:
所述处理装置检测是否接收到所述指纹获取装置周期性发送的等待消息;The processing device detects whether a waiting message periodically sent by the fingerprint acquisition device is received;
若未接收到所述指纹获取装置周期性发送的等待消息,所述处理装置确定所述指纹处理模块出现故障。If the waiting message periodically sent by the fingerprint acquisition device is not received, the processing device determines that the fingerprint processing module is faulty.
在第一方面的又一种可能设计中,所述处理装置控制所述指纹处理模块在所述目标工作状态下与所述指纹获取装置块进行交互,完成所述用户操作指令对应的操作,得到处理结果,包括:In another possible design of the first aspect, the processing device controls the fingerprint processing module to interact with the fingerprint acquisition device block in the target working state, and completes the operation corresponding to the user operation instruction to obtain Processing results, including:
所述处理装置基于通用异步收发传输器UART协议对所述用户操作指令进行处理,得到目标指令数据包;The processing device processes the user operation instruction based on the universal asynchronous receiver transmitter UART protocol to obtain a target instruction data packet;
所述处理装置将所述目标指令数据包发送给所述指纹获取装置;The processing device sends the target instruction data packet to the fingerprint acquisition device;
所述指纹获取装置对接收到的所述目标指令数据包进行解析,获取所述用户操作指令;The fingerprint acquisition device parses the received target instruction data packet to acquire the user operation instruction;
所述指纹获取装置执行所述用户操作指令对应的操作,得到操作结果;The fingerprint acquisition device executes the operation corresponding to the user operation instruction to obtain the operation result;
所述指纹获取装置基于所述UART协议对所述操作结果进行处理,得到所述处理结果;The fingerprint acquisition device processes the operation result based on the UART protocol to obtain the processing result;
所述处理装置接收所述指纹获取装置返回的所述处理结果。The processing device receives the processing result returned by the fingerprint acquisition device.
在第一方面的上述可能设计中,所述目标指令数据包包括:位于第一区域的协议头、位于第二区域的加密后的随机数、位于第三区域的加密后的用户操作指令以及位于第四区域的数据包校验值;In the foregoing possible design of the first aspect, the target instruction data packet includes: a protocol header located in the first area, an encrypted random number located in the second area, an encrypted user operation instruction located in the third area, and The data packet check value of the fourth area;
相应的,所述处理装置基于通用异步收发传输器UART协议对所述用户操作指令进行处理,得到目标指令数据包,包括:Correspondingly, the processing device processes the user operation instruction based on the universal asynchronous receiver transmitter UART protocol to obtain the target instruction data packet, including:
所述处理装置向所述指纹获取装置发送随机数获取请求,所述随机数获取请求用于指示所述指纹获取装置产生第一随机数;The processing device sends a random number acquisition request to the fingerprint acquisition device, where the random number acquisition request is used to instruct the fingerprint acquisition device to generate a first random number;
所述指纹获取装置将生成的所述第一随机数发送给所述处理装置;Sending, by the fingerprint acquisition device, the generated first random number to the processing device;
所述处理装置对接收到的所述第一随机数和自身产生的第二随机数进行函数运算,得到第三随机数;The processing device performs a function operation on the received first random number and the second random number generated by itself to obtain a third random number;
所述处理装置对所述第三随机数进行加密处理,得到所述加密后的随机数;The processing device performs encryption processing on the third random number to obtain the encrypted random number;
所述处理装置利用所述第二随机数对所述用户操作指令进行循环冗余校验CRC校验,得到指令校验值;The processing device uses the second random number to perform a cyclic redundancy check CRC check on the user operation instruction to obtain an instruction check value;
所述处理装置将所述指令校验值置于所述用户操作指令的前面,并对所述指令校验值和所述用户操作指令进行加密处理,得到所述加密后的用户操作指令;The processing device puts the instruction check value in front of the user operation instruction, and performs encryption processing on the instruction check value and the user operation instruction to obtain the encrypted user operation instruction;
所述处理装置对所述协议头、所述加密后的随机数以及所述加密后的用户操作指令进行CRC校验,得到所述数据包校验值。The processing device performs a CRC check on the protocol header, the encrypted random number, and the encrypted user operation instruction to obtain the data packet check value.
在第一方面的又一种可能设计中,所述处理装置接收用户操作请求,包括:In yet another possible design of the first aspect, the processing device receiving a user operation request includes:
所述处理装置接收所述指纹获取装置发送的所述用户操作请求,所述用户操作请求是所述指纹获取装置基于获取到的用户按压控制按钮操作生成的;The processing device receives the user operation request sent by the fingerprint acquisition device, where the user operation request is generated by the fingerprint acquisition device based on the acquired operation of pressing the control button by the user;
或者or
所述处理装置接收用户操作请求,包括:The processing device receiving a user operation request includes:
所述处理装置接收终端设备发送的所述用户操作请求,所述用户操作请求是所述终端设备基于获取到的用户输入操作生成的。The processing device receives the user operation request sent by the terminal device, where the user operation request is generated by the terminal device based on the acquired user input operation.
本申请第二方面提供一种智能锁系统,包括:处理装置和指纹获取装置;The second aspect of the present application provides a smart lock system, including: a processing device and a fingerprint acquisition device;
所述处理装置包括:第一收发模块、第二收发模块、生成模块、控制模块和指纹处理模块;The processing device includes: a first transceiver module, a second transceiver module, a generation module, a control module, and a fingerprint processing module;
所述第一收发模块,用于接收用户操作请求,所述用户操作请求用于指示所述指纹处理模块的工作状态为与所述用户操作请求对应的目标工作状态;The first transceiver module is configured to receive a user operation request, the user operation request is used to indicate that the working state of the fingerprint processing module is a target working state corresponding to the user operation request;
所述生成模块,用于根据所述第一收发模块接收到的所述用户操作请求生成用户操作指令,所述用户操作指令用于指示所述指纹处理模块和所述指纹获取装置执行所述用户操作指令对应的操作;The generating module is configured to generate a user operation instruction according to the user operation request received by the first transceiver module, and the user operation instruction is used to instruct the fingerprint processing module and the fingerprint acquisition device to execute the user The operation corresponding to the operation instruction;
所述控制模块,用于控制所述指纹处理模块在所述目标工作状态下通过所述第二收发模块与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果。The control module is configured to control the fingerprint processing module to interact with the fingerprint acquisition device through the second transceiver module in the target working state, complete the operation corresponding to the user operation instruction, and obtain a processing result.
在第二方面的一种可能设计中,所述控制模块,还用于在所述生成模块根据所述用户操作请求生成用户操作指令之前,若确定所述指纹处理模块的当前工作状态不是所述目标工作状态,则控制所述指纹处理模块的工作状态切换为所述目标工作状态。In a possible design of the second aspect, the control module is further configured to, before the generation module generates a user operation instruction according to the user operation request, if it is determined that the current working state of the fingerprint processing module is not the The target working state is controlled to switch the working state of the fingerprint processing module to the target working state.
在第二方面的另一种可能设计中,所述控制模块,还用于保存所述处理结果,以及控制所述指纹处理模块的工作状态切换至默认工作状态。In another possible design of the second aspect, the control module is further configured to save the processing result and control the working state of the fingerprint processing module to switch to the default working state.
在第二方面的上述可能设计中,所述指纹处理模块的工作状态包括:识别状态、注册状态和空闲状态;In the foregoing possible design of the second aspect, the working state of the fingerprint processing module includes: an identification state, a registration state, and an idle state;
其中,所述识别状态为所述指纹处理模块的默认工作状态,所述识别状态与所述注册状态、所述空闲状态之间能够相互切换;Wherein, the recognition state is a default working state of the fingerprint processing module, and the recognition state, the registered state, and the idle state can be switched mutually;
所述指纹处理模块在所述识别状态下与所述指纹获取装置执行指纹识别操作,所述指纹处理模块在所述注册状态下与所述指纹获取装置执行指纹注册操作,所述指纹处理模块在所述空闲状态下与所述指纹获取装置执行的操作至少包括如下一种:指纹删除、指纹查询、指纹优先级设置。The fingerprint processing module performs a fingerprint recognition operation with the fingerprint acquisition device in the recognition state, the fingerprint processing module performs a fingerprint registration operation with the fingerprint acquisition device in the registration state, and the fingerprint processing module is The operations performed with the fingerprint acquisition device in the idle state include at least one of the following: fingerprint deletion, fingerprint query, and fingerprint priority setting.
可选的,所述用户操作请求为指纹识别请求,所述指纹识别请求对应的 目标工作状态为所述识别状态;Optionally, the user operation request is a fingerprint identification request, and the target working state corresponding to the fingerprint identification request is the identification state;
所述生成模块,具体用于根据所述指纹识别请求生成指纹识别指令;The generating module is specifically configured to generate a fingerprint recognition instruction according to the fingerprint recognition request;
所述控制模块,具体用于控制所述指纹处理模块在所述识别状态下通过所述第二收发模块与所述指纹获取装置进行交互,完成所述指纹识别指令对应的指纹识别操作,得到识别结果。The control module is specifically configured to control the fingerprint processing module to interact with the fingerprint acquisition device through the second transceiver module in the recognition state, complete the fingerprint recognition operation corresponding to the fingerprint recognition instruction, and obtain recognition result.
可选的,所述用户操作请求为指纹注册请求,所述指纹注册请求对应的目标工作状态为所述注册状态;Optionally, the user operation request is a fingerprint registration request, and the target work status corresponding to the fingerprint registration request is the registration status;
所述生成模块,具体用于根据所述指纹注册请求生成指纹注册指令;The generating module is specifically configured to generate a fingerprint registration instruction according to the fingerprint registration request;
所述控制模块,具体用于控制所述指纹处理模块在所述注册状态下基于所述指纹注册指令通过所述第二收发模块与所述指纹获取装置进行至少N次交互,获取包括N个有效指纹信息的注册结果,其中,N为正整数。The control module is specifically configured to control the fingerprint processing module to perform at least N interactions with the fingerprint acquisition device through the second transceiver module based on the fingerprint registration instruction in the registration state, and acquire including N valid The registration result of fingerprint information, where N is a positive integer.
在第二方面的再一种可能设计中,所述处理装置还包括:检测模块、确定模块和获取模块;In still another possible design of the second aspect, the processing device further includes: a detection module, a determination module, and an acquisition module;
所述检测模块,用于基于所述第二收发模块与所述指纹获取装置的交互检测所述指纹处理模块是否出现故障;The detection module is configured to detect whether the fingerprint processing module is faulty based on the interaction between the second transceiver module and the fingerprint acquisition device;
所述控制模块,还用于在所述确定模块确定所述指纹处理模块出现故障时,对所述指纹处理模块和所述指纹获取装置进行复位操作;The control module is further configured to perform a reset operation on the fingerprint processing module and the fingerprint acquisition device when the determining module determines that the fingerprint processing module is faulty;
所述获取模块,用于在所述指纹处理模块和所述指纹获取装置重新运行后,从所述指纹获取装置获取指纹信息集;The acquiring module is configured to acquire a fingerprint information set from the fingerprint acquiring device after the fingerprint processing module and the fingerprint acquiring device are re-run;
所述控制模块,还用于将所述获取模块获取到的所述指纹信息集存储至所述处理装置包括的存储单元中。The control module is further configured to store the fingerprint information set acquired by the acquisition module in a storage unit included in the processing device.
在第二方面的又一种可能设计中,所述检测模块,具体用于在所述第二收发模块向所述指纹获取装置发送所述用户操作指令后,检测所述第二收发模块是否在预设时限内接收到所述指纹获取装置反馈的处理结果;In another possible design of the second aspect, the detection module is specifically configured to detect whether the second transceiver module is in operation after the second transceiver module sends the user operation instruction to the fingerprint acquisition device. Receiving the processing result fed back by the fingerprint acquisition device within a preset time limit;
所述确定模块,用于在所述第二收发模块未在所述预设时限内接收到所述指纹获取装置反馈的处理结果时,确定所述指纹处理模块出现故障。The determining module is configured to determine that the fingerprint processing module is faulty when the second transceiver module does not receive the processing result fed back by the fingerprint acquisition device within the preset time limit.
在第二方面的又一种可能设计中,所述检测模块,具体用于检测所述第二收发模块是否接收到所述指纹获取装置周期性发送的等待消息;In another possible design of the second aspect, the detection module is specifically configured to detect whether the second transceiver module receives a waiting message periodically sent by the fingerprint acquisition device;
所述确定模块,用于在所述第二收发模块未接收到所述指纹获取装置周期性发送的等待消息时,确定所述指纹处理模块出现故障。The determining module is configured to determine that the fingerprint processing module is faulty when the second transceiver module does not receive the waiting message periodically sent by the fingerprint acquisition device.
在第二方面的又一种可能设计中,所述控制模块,用于控制所述指纹处理模块在所述目标工作状态下通过所述第二收发模块与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果,具体为:In another possible design of the second aspect, the control module is configured to control the fingerprint processing module to interact with the fingerprint acquisition device through the second transceiver module in the target working state to complete all Describe the operation corresponding to the user operation instruction to obtain the processing result, specifically:
所述指纹处理模块,用于基于通用异步收发传输器UART协议对所述用户操作指令进行处理,得到目标指令数据包;The fingerprint processing module is configured to process the user operation instruction based on the universal asynchronous receiver transmitter UART protocol to obtain a target instruction data packet;
所述第二收发模块,用于将所述目标指令数据包发送给所述指纹获取装置;The second transceiver module is configured to send the target instruction data packet to the fingerprint acquisition device;
所述指纹获取装置,用于对接收到的所述目标指令数据包进行解析,获取所述用户操作指令,并执行所述用户操作指令对应的操作,得到操作结果,以及基于所述UART协议对所述操作结果进行处理,得到所述处理结果;The fingerprint acquisition device is configured to parse the received target instruction data packet, acquire the user operation instruction, and execute the operation corresponding to the user operation instruction to obtain the operation result, and pair based on the UART protocol Processing the operation result to obtain the processing result;
所述第二收发模块,还用于接收所述指纹获取装置返回的所述处理结果。The second transceiver module is also configured to receive the processing result returned by the fingerprint acquisition device.
在第二方面的上述可能设计中,所述目标指令数据包包括:位于第一区域的协议头、位于第二区域的加密后的随机数、位于第三区域的加密后的用户操作指令以及位于第四区域的数据包校验值;In the above possible design of the second aspect, the target instruction data packet includes: a protocol header located in the first area, an encrypted random number located in the second area, an encrypted user operation instruction located in the third area, and The data packet check value of the fourth area;
相应的,所述收发模块,具体用于向所述指纹获取装置发送随机数获取请求,所述随机数获取请求用于指示所述指纹获取装置产生第一随机数;Correspondingly, the transceiver module is specifically configured to send a random number acquisition request to the fingerprint acquisition device, and the random number acquisition request is used to instruct the fingerprint acquisition device to generate a first random number;
所述指纹获取装置,用于将生成的所述第一随机数发送给所述指纹处理模块;The fingerprint acquisition device is configured to send the generated first random number to the fingerprint processing module;
所述指纹处理模块,用于对接收到的所述第一随机数和自身产生的第二随机数进行函数运算,得到第三随机数,对所述第三随机数进行加密处理,得到所述加密后的随机数,利用所述第二随机数对所述用户操作指令进行循环冗余校验CRC校验,得到指令校验值,以及将所述指令校验值置于所述用户操作指令的前面,并对所述指令校验值和所述用户操作指令进行加密处理,得到所述加密后的用户操作指令,以及对所述协议头、所述加密后的随机数以及所述加密后的用户操作指令进行CRC校验,得到所述数据包校验值。The fingerprint processing module is configured to perform a function operation on the received first random number and a second random number generated by itself to obtain a third random number, and perform encryption processing on the third random number to obtain the The encrypted random number uses the second random number to perform a cyclic redundancy check CRC check on the user operation instruction to obtain an instruction check value, and place the instruction check value in the user operation instruction And encrypt the command check value and the user operation command to obtain the encrypted user operation command, as well as the protocol header, the encrypted random number, and the encrypted The CRC check is performed on the user operation instruction of, and the check value of the data packet is obtained.
在第二方面的又一种可能设计中,所述第一收发模块,具体用于接收所述指纹获取装置发送的所述用户操作请求,所述用户操作请求是所述指纹获取装置基于获取到的用户按压控制按钮操作生成的;In another possible design of the second aspect, the first transceiver module is specifically configured to receive the user operation request sent by the fingerprint acquisition device, and the user operation request is based on the fingerprint acquisition device acquiring Generated by the user pressing the control button;
或者or
所述第一收发模块,具体用于接收终端设备发送的所述用户操作请求, 所述用户操作请求是所述终端设备基于获取到的用户输入操作生成的。The first transceiver module is specifically configured to receive the user operation request sent by a terminal device, where the user operation request is generated by the terminal device based on the acquired user input operation.
本申请第三方面提供一种存储介质,所述存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面以及第一方面各实施例所述的方法。A third aspect of the present application provides a storage medium in which instructions are stored, which when run on a computer, cause the computer to execute the method described in the first aspect and the embodiments of the first aspect.
本申请实施例提供的数据处理方法、智能锁系统及存储介质,通过处理装置接收用户操作请求,该用户操作请求用于指示指纹处理模块的工作状态为目标工作状态,根据该用户操作请求生成用户操作指令,控制指纹处理模块在目标工作状态下与指纹获取装置进行交互,完成该用户操作指令对应的操作。该技术方案,处理装置可以控制指纹处理模块与指纹获取装置进行交互,实现了指令操作的统一管理,提高了智能锁系统的稳定性,提升了用户体验。The data processing method, smart lock system, and storage medium provided by the embodiments of the present application receive a user operation request through the processing device, and the user operation request is used to indicate that the working state of the fingerprint processing module is the target working state, and the user is generated according to the user operation request The operation instruction controls the fingerprint processing module to interact with the fingerprint acquisition device in the target working state to complete the operation corresponding to the user operation instruction. In this technical solution, the processing device can control the fingerprint processing module to interact with the fingerprint acquisition device, realize the unified management of instruction operations, improve the stability of the smart lock system, and enhance the user experience.
附图说明Description of the drawings
图1为本申请实施例提供的一种智能锁系统的结构示意图;FIG. 1 is a schematic structural diagram of a smart lock system provided by an embodiment of the application;
图2为本申请实施例提供的数据处理方法实施例一的流程示意图;2 is a schematic flowchart of Embodiment 1 of a data processing method provided by an embodiment of this application;
图3为本申请实施例提供的数据处理方法实施例二的流程示意图;3 is a schematic flowchart of Embodiment 2 of the data processing method provided by an embodiment of this application;
图4为本申请实施例提供的数据处理方法实施例三的流程示意图;4 is a schematic flowchart of Embodiment 3 of the data processing method provided by an embodiment of the application;
图5为本申请实施例提供的数据处理方法实施例四的流程示意图;5 is a schematic flowchart of Embodiment 4 of a data processing method provided by an embodiment of this application;
图6为目标指令数据包的组成结构示意图;Figure 6 is a schematic diagram of the structure of the target instruction data packet;
图7为本申请实施例提供的智能锁系统实施例一的结构示意图;FIG. 7 is a schematic structural diagram of Embodiment 1 of a smart lock system provided by an embodiment of this application;
图8为本申请实施例提供的智能锁系统实施例二的结构示意图。FIG. 8 is a schematic structural diagram of Embodiment 2 of a smart lock system provided by an embodiment of this application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of this application.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用 的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。本文所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of this application. The terms used in the specification of the application herein are only for the purpose of describing specific embodiments, and are not intended to limit the application. The term "and/or" as used herein includes any and all combinations of one or more related listed items. Hereinafter, some embodiments of the present application will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
本申请下述各实施例提供的数据处理方法,可应用于智能锁系统中。图1为本申请实施例提供的一种智能锁系统的结构示意图。如图1所示,该智能锁系统可以包括:相互连接的处理装置11和指纹获取装置12。The data processing methods provided in the following embodiments of this application can be applied to smart lock systems. Fig. 1 is a schematic structural diagram of a smart lock system provided by an embodiment of the application. As shown in FIG. 1, the smart lock system may include: a processing device 11 and a fingerprint acquisition device 12 connected to each other.
其中,该处理装置11是智能锁系统的主控部件,其不仅可以与智能锁系统外部的终端设备进行通信,而且可以与指纹获取装置12进行交互以完成相应的操作。Among them, the processing device 11 is the main control component of the smart lock system, which can not only communicate with terminal devices outside the smart lock system, but also interact with the fingerprint acquisition device 12 to complete corresponding operations.
示例性的,该处理装置11可以包括:指纹处理模块111、处理器112、存储单元113。可选的,该指纹处理模块111可以独立于处理器112运行,在处理器112的辅助作用下执行相应的处理,该指纹处理模块111也可以集成在处理器112内部,通过处理器112实现对应的功能。该存储单元113可以集成在处理器112上,也可以归属于指纹处理模块111的一部分。Exemplarily, the processing device 11 may include: a fingerprint processing module 111, a processor 112, and a storage unit 113. Optionally, the fingerprint processing module 111 can run independently of the processor 112, and perform corresponding processing with the assistance of the processor 112. The fingerprint processing module 111 can also be integrated inside the processor 112, and the processor 112 can implement corresponding processing. Function. The storage unit 113 may be integrated on the processor 112, or may be a part of the fingerprint processing module 111.
示例性的,图1所示的实施例以指纹处理模块111集成在处理器112内部,存储单元113集成在指纹处理模块111上进行举例说明。对于指纹处理模块111、存储单元113以及处理器112的具体位置关系,本申请实施例并不对其进行限定。Exemplarily, in the embodiment shown in FIG. 1, the fingerprint processing module 111 is integrated in the processor 112, and the storage unit 113 is integrated in the fingerprint processing module 111 for illustration. The specific positional relationship of the fingerprint processing module 111, the storage unit 113, and the processor 112 is not limited in the embodiment of the present application.
可选的,在本申请实施例中,该指纹处理模块111可以维护其可以运行的工作状态和存储单元113保存的数据,该指纹处理模块111可以为该处理装置11提供对外的接口服务,例如,处理装置11可以通过该接口服务与终端设备上的应用进行通信,参照图1所示。Optionally, in this embodiment of the present application, the fingerprint processing module 111 can maintain its operational working status and the data stored in the storage unit 113, and the fingerprint processing module 111 can provide external interface services for the processing device 11, such as The processing device 11 can communicate with the application on the terminal device through the interface service, as shown in FIG. 1.
示例性的,如图1所示,该指纹处理模块111还可以为处理装置11支持的其他模块110(例如,近场通信(near field communication,NFC)、键盘)提供对外的接口服务,在保证兼容性的前提下,提供了多个可扩展功能,例如,可扩展功能1和可扩展功能2。Exemplarily, as shown in FIG. 1, the fingerprint processing module 111 may also provide external interface services for other modules 110 (for example, near field communication (NFC), keyboard) supported by the processing device 11, and guarantee Under the premise of compatibility, multiple extensible functions are provided, for example, extensible function 1 and extensible function 2.
可选的,该存储单元113既可以存储从指纹获取装置12获取到的指纹信息,还可以存储处理装置11的处理结果和指纹处理模块111的工作状态信息。可选的,在实际应用中,该存储单元113可以在硬件上通过随机存取存 储器RAM实现,在软件上通过数据库实现,对于存储单元113的具体实现形式,本申请实施例并不对其进行限定。Optionally, the storage unit 113 may not only store the fingerprint information acquired from the fingerprint acquisition device 12, but also store the processing result of the processing device 11 and the working status information of the fingerprint processing module 111. Optionally, in practical applications, the storage unit 113 can be implemented in hardware through a random access memory RAM, and in software through a database. The specific implementation form of the storage unit 113 is not limited in the embodiment of this application. .
示例性的,该指纹获取装置12相对于处理装置11可以认为是位于底层的指纹模组外设,该指纹获取装置12包括控制器121、非易失性(Flash)的存储器122以及指纹传感器123。在本实施例中,该指纹传感器123可以直接与用户交互,例如,为用户提供选择功能和检测用户的按压操作,并将获取到的用户操作请求传输给控制器121,由控制器121实现与处理装置11的通信。该存储器122可以存储固件程序和指纹信息,在指纹获取装置12掉电或者复位时,存储在该存储器122中的数据不会丢失。Exemplarily, with respect to the processing device 11, the fingerprint acquisition device 12 can be regarded as a fingerprint module peripheral located at the bottom layer. The fingerprint acquisition device 12 includes a controller 121, a non-volatile (Flash) memory 122, and a fingerprint sensor 123. . In this embodiment, the fingerprint sensor 123 can directly interact with the user, for example, to provide the user with a selection function and detect the user's pressing operation, and transmit the obtained user operation request to the controller 121, and the controller 121 realizes the interaction with the user. Processing device 11 communication. The memory 122 can store firmware programs and fingerprint information. When the fingerprint acquisition device 12 is powered off or reset, the data stored in the memory 122 will not be lost.
可选的,该固件程序也即是可在指纹获取装置12上运行的一段固化的程序,控制器122是基于此固件程序进行工作的。在指纹获取装置12上电时,控制器122可以从存储器122中将固件程序记载到控制器121的内存中运行。Optionally, the firmware program is also a solidified program that can be run on the fingerprint acquisition device 12, and the controller 122 operates based on this firmware program. When the fingerprint acquisition device 12 is powered on, the controller 122 can record the firmware program from the memory 122 into the memory of the controller 121 to run.
示例性的,该处理装置11与指纹获取装置12之间可以通过第一预设协议进行通信,该第一预设协议包括但不局限于通用异步收发传输器(universal asynchronous receiver/transmitter,UART)协议,其可以根据指纹处理模块111与指纹获取装置12的加密方式确定,此处不再赘述。Exemplarily, the processing device 11 and the fingerprint acquisition device 12 may communicate through a first preset protocol, and the first preset protocol includes but is not limited to a universal asynchronous receiver/transmitter (UART) The protocol, which can be determined according to the encryption method of the fingerprint processing module 111 and the fingerprint acquisition device 12, will not be repeated here.
可选的,参照图1所示,在本实施例中,该处理装置11可以与终端设备上安装的应用程序进行通信。在本实施例中,对于该智能锁系统,终端设备上安装与智能锁系统有关的应用程序称为上层应用,该上层应用例如可以是低功耗蓝牙(bluetooth low energy,BLE)应用,也可以是窄带物联网(narrowband-internet of things,NB-IoT)应用,该上层应用还可以是其他类型的应用程序,本实施例并不对其进行限定。Optionally, referring to FIG. 1, in this embodiment, the processing device 11 may communicate with an application program installed on the terminal device. In this embodiment, for the smart lock system, an application related to the smart lock system installed on the terminal device is called an upper layer application. The upper layer application may be, for example, a Bluetooth low energy (BLE) application or It is a narrowband-internet of things (NB-IoT) application, and the upper layer application may also be other types of applications, which is not limited in this embodiment.
示例性的,在本实施例中,终端设备上的上层应用可以调用指纹处理模块111对外提供的接口服务,并通过第二预设协议与智能锁系统中的处理装置11进行通信。示例性的,该第二预设协议可以是受限制的应用协议(constrained application protocol,CoAP),也可以是消息队列遥测传输(message queuing telemetry transport,MQTT)协议,还可以是其他的协议,本实施例对此并不限定。Exemplarily, in this embodiment, the upper-layer application on the terminal device may call the interface service provided by the fingerprint processing module 111 to the outside, and communicate with the processing device 11 in the smart lock system through the second preset protocol. Exemplarily, the second preset protocol may be a restricted application protocol (CoAP), a message queue telemetry transmission (message queuing telemetry transport, MQTT) protocol, or other protocols. The embodiment does not limit this.
本申请实施例提供一种数据处理方法应用于上述图1所示的智能锁系统中,通过处理装置接收用户操作请求,该用户操作请求用于指示指纹处理模 块的工作状态为与该用户操作请求对应的目标工作状态,根据该用户操作请求生成用户操作指令,控制指纹处理模块在目标工作状态下与指纹获取装置进行交互,完成该用户操作指令对应的操作。该技术方案,处理装置可以控制指纹处理模块与指纹获取装置进行交互,实现了指令操作的统一管理,提高了智能锁系统的稳定性,提升了用户体验。The embodiment of the application provides a data processing method applied to the above-mentioned smart lock system shown in FIG. 1. A user operation request is received through a processing device, and the user operation request is used to indicate that the fingerprint processing module is working in accordance with the user operation request The corresponding target work state generates a user operation instruction according to the user operation request, and controls the fingerprint processing module to interact with the fingerprint acquisition device in the target work state to complete the operation corresponding to the user operation instruction. In this technical solution, the processing device can control the fingerprint processing module to interact with the fingerprint acquisition device, realize the unified management of instruction operations, improve the stability of the smart lock system, and enhance the user experience.
下面,通过具体实施例对本申请的技术方案进行详细说明。需要说明的是,下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。Hereinafter, the technical solution of the present application will be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
图2为本申请实施例提供的数据处理方法实施例一的流程示意图。本申请实施例提供的数据处理方法应用于图1所述的智能锁系统。参照上述图1所示,该智能锁系统包括:处理装置和指纹获取装置,该处理装置包括指纹处理模块。FIG. 2 is a schematic flowchart of Embodiment 1 of a data processing method provided by an embodiment of this application. The data processing method provided by the embodiment of the present application is applied to the smart lock system described in FIG. 1. 1, the smart lock system includes a processing device and a fingerprint acquisition device, and the processing device includes a fingerprint processing module.
示例性的,如图2所示,该方法可以包括如下步骤:Exemplarily, as shown in FIG. 2, the method may include the following steps:
步骤21:处理装置接收用户操作请求,该用户操作请求用于指示指纹处理模块的工作状态为与该用户操作请求对应的目标工作状态。Step 21: The processing device receives a user operation request, and the user operation request is used to indicate that the working state of the fingerprint processing module is a target working state corresponding to the user operation request.
示例性的,在本实施例中,智能锁系统的指纹处理模块可以基于嵌入式实时操作系统集成在处理装置的处理器中,也即,在处理器中建立独立的指纹处理线程任务,由该指纹处理模块处理与指纹处理线程任务相关的操作,维护指纹处理模块的工作状态,保存指纹处理线程任务的处理结果和指纹状态集。Exemplarily, in this embodiment, the fingerprint processing module of the smart lock system may be integrated in the processor of the processing device based on the embedded real-time operating system, that is, an independent fingerprint processing thread task is established in the processor, and the The fingerprint processing module processes operations related to fingerprint processing thread tasks, maintains the working status of the fingerprint processing module, and saves the processing results of the fingerprint processing thread tasks and the fingerprint status set.
可选的,通过在处理装置中添加指纹处理模块为其他应用提供相应的接口服务,这样处理装置不仅可以接收指纹获取装置的返回的处理结果,还可以接收用户通过终端设备上的应用程序下发的用户操作请求,以控制该指纹处理模块工作在与该用户操作请求对应的目标工作状态。Optionally, by adding a fingerprint processing module to the processing device to provide corresponding interface services for other applications, the processing device can not only receive the processing results returned by the fingerprint acquisition device, but also receive the user's delivery through the application on the terminal device To control the fingerprint processing module to work in a target working state corresponding to the user operation request.
可选的,处理装置接收用户操作请求至少可以通过如下两种方式实现:Optionally, the processing device can receive the user operation request in at least the following two ways:
作为一种示例,该处理装置接收指纹获取装置发送的该用户操作请求,该用户操作请求是指纹获取装置基于获取到的用户按压控制按钮操作生成的。As an example, the processing device receives the user operation request sent by the fingerprint acquisition device, and the user operation request is generated by the fingerprint acquisition device based on the acquired operation of pressing the control button by the user.
在本实施例中,当用户对指纹获取装置进行例如按压等操作时,该指纹获取装置会生成用户操作请求,并将其发送给处理装置。In this embodiment, when the user performs an operation such as pressing on the fingerprint acquisition device, the fingerprint acquisition device generates a user operation request and sends it to the processing device.
例如,用户按压指纹获取装置上的注册按钮、删除按钮、查询按钮或指 纹优先级设置按钮等,则会触发指纹获取装置对应的生成指纹注册请求、指纹删除请求、指纹查询请求或指纹优先级设置请求等。For example, if the user presses the registration button, delete button, query button or fingerprint priority setting button on the fingerprint acquisition device, it will trigger the fingerprint acquisition device to generate a fingerprint registration request, fingerprint deletion request, fingerprint query request or fingerprint priority setting Request etc.
值得说明的是,指纹获取装置生成上述用户操作请求的操作并不需要指纹获取装置的控制器参与,在感应到用户按压控制按钮等操作时,便会直接生成用户操作请求,并发送给处理装置。It is worth noting that the operation of the fingerprint acquisition device to generate the above user operation request does not require the participation of the controller of the fingerprint acquisition device. When the user presses the control button and other operations, it will directly generate the user operation request and send it to the processing device. .
作为另一种示例,该处理装置接收终端设备发送的所述用户操作请求,所述用户操作请求是所述终端设备基于获取到的用户输入操作生成的。As another example, the processing apparatus receives the user operation request sent by the terminal device, where the user operation request is generated by the terminal device based on the acquired user input operation.
在本实施例中,若用户通过终端设备的用户交互界面点击注册按钮、查询按钮、删除按钮或指纹优先级设置按钮时,则会触发终端设备生成对应的指纹注册请求、指纹删除请求、指纹查询请求或指纹优先级设置请求等。In this embodiment, if the user clicks the registration button, query button, delete button, or fingerprint priority setting button through the user interaction interface of the terminal device, the terminal device will be triggered to generate the corresponding fingerprint registration request, fingerprint deletion request, fingerprint query Request or fingerprint priority setting request, etc.
示例性的,在本实施例中,该指纹处理模块的工作状态可以包括:识别状态、注册状态和空闲状态。Exemplarily, in this embodiment, the working state of the fingerprint processing module may include: recognition state, registration state, and idle state.
其中,识别状态为指纹处理模块的默认工作状态,识别状态在注册状态、空闲状态之间可以相互切换。Among them, the recognition state is the default working state of the fingerprint processing module, and the recognition state can be switched between the registered state and the idle state.
相应的,该指纹处理模块在识别状态下与指纹获取装置执行指纹识别操作,在注册状态下与指纹获取装置执行指纹注册操作,在空闲状态下与指纹获取装置执行的操作至少包括如下一种:指纹删除、指纹查询、指纹优先级设置。Correspondingly, the fingerprint processing module performs fingerprint recognition operations with the fingerprint acquisition device in the recognition state, performs fingerprint registration operations with the fingerprint acquisition device in the registration state, and performs at least one of the following operations with the fingerprint acquisition device in the idle state: Fingerprint deletion, fingerprint query, fingerprint priority setting.
因而,在本实施例中,上述用户操作请求可以是指纹识别请求、指纹注册请求、指纹删除请求、指纹查询请求以及指纹优先级设置请求中的至少一种。相应的,该指纹识别请求用于指示指纹处理模块的工作状态为识别状态,指纹注册请求用于指示指纹处理模块的工作状态为注册状态,指纹删除请求、指纹查询请求、指纹优先级设置请求等指示指纹处理模块的工作状态为空闲状态。Therefore, in this embodiment, the aforementioned user operation request may be at least one of a fingerprint identification request, a fingerprint registration request, a fingerprint deletion request, a fingerprint query request, and a fingerprint priority setting request. Correspondingly, the fingerprint recognition request is used to indicate that the working status of the fingerprint processing module is the recognition state, and the fingerprint registration request is used to indicate that the working state of the fingerprint processing module is the registered state, fingerprint deletion request, fingerprint query request, fingerprint priority setting request, etc. Indicates that the working state of the fingerprint processing module is idle.
值得说明的是,指纹处理模块在默认工作状态下时会周期性向指纹获取装置发送识别指令,以使指纹获取装置在接收到用户识别请求时,可以直接执行识别操作,而无需向处理装置上报指纹识别请求,以提高识别效率。It is worth noting that when the fingerprint processing module is in the default working state, it will periodically send identification instructions to the fingerprint acquisition device, so that the fingerprint acquisition device can directly perform the identification operation when receiving a user identification request without reporting the fingerprint to the processing device. Identify the request to improve the efficiency of identification.
可选的,在本实施例中,空闲状态是指纹处理模块除识别状态、注册状态之外的一种工作状态,指纹处理模块在该空闲状态下,可以执行指纹删除指令、指纹查询指令、指纹优先级设置指令等在执行过程中不需要与用户交 互的用户操作指令。该空闲状态并不简单的指指纹处理模块不工作,而是说指纹处理模块可以在该状态下完成一些不需要与用户交互也能处理的操作,这些操作是非阻塞的,处理装置可以控制指纹获取装置直接完成相应的操作。Optionally, in this embodiment, the idle state is a working state of the fingerprint processing module in addition to the identification state and the registration state. In the idle state, the fingerprint processing module can execute fingerprint deletion instructions, fingerprint query instructions, and fingerprints Priority setting instructions and other user operation instructions that do not require interaction with the user during execution. The idle state does not simply mean that the fingerprint processing module is not working, but that the fingerprint processing module can complete some operations that can be processed without interacting with the user in this state. These operations are non-blocking and the processing device can control fingerprint acquisition The device directly completes the corresponding operation.
值得说明的是,在本申请实施例中,处理装置可以接收或获取到的用户操作请求并不局限于上述几种,其可以根据实际情况进行确定。It is worth noting that, in this embodiment of the present application, the user operation requests that can be received or acquired by the processing device are not limited to the foregoing ones, and can be determined according to actual conditions.
步骤22:根据上述用户操作请求生成用户操作指令。Step 22: Generate a user operation instruction according to the above user operation request.
其中,用户操作指令用于指示指纹处理模块和指纹获取装置执行该用户操作指令对应的操作。The user operation instruction is used to instruct the fingerprint processing module and the fingerprint acquisition device to perform the operation corresponding to the user operation instruction.
可选的,在本实施例中,处理装置接收到上述用户操作请求后,触发该指纹处理模块生成对应的用户操作指令。例如,根据指纹识别请求生成指纹识别指令,根据指纹注册请求生成指纹注册指令,根据指纹删除请求生成指纹删除指令,根据指纹查询请求生成指纹查询指令,根据指纹优先级设置请求生成指纹优先级设置指令等。Optionally, in this embodiment, after receiving the above-mentioned user operation request, the processing device triggers the fingerprint processing module to generate a corresponding user operation instruction. For example, generate fingerprint recognition instructions based on fingerprint recognition requests, generate fingerprint registration instructions based on fingerprint registration requests, generate fingerprint deletion instructions based on fingerprint deletion requests, generate fingerprint query instructions based on fingerprint query requests, and generate fingerprint priority setting instructions based on fingerprint priority setting requests Wait.
示例性的,该用户操作指令可以用于指示指纹处理模块和指纹获取装置执行对应的操作,以实现指纹识别、指纹注册、指纹删除、指纹查询等多种服务,进行实现对指纹处理结果和指纹状态集的更新。Exemplarily, the user operation instruction can be used to instruct the fingerprint processing module and the fingerprint acquisition device to perform corresponding operations to implement various services such as fingerprint identification, fingerprint registration, fingerprint deletion, fingerprint query, etc., and perform fingerprint processing results and fingerprints Update of the state set.
步骤23:处理装置控制该指纹处理模块在目标工作状态下与指纹获取装置进行交互,完成用户操作指令对应的操作,得到处理结果。Step 23: The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the target working state, completes the operation corresponding to the user operation instruction, and obtains the processing result.
可选的,在本实施例中,当指纹处理模块的工作状态为目标工作状态时,该处理装置可以控制该指纹处理模块与指纹获取装置进行信息交互以执行与上述用户操作指令对应的操作,相应的在目标工作状态完成对应的操作,最终得到处理结果。Optionally, in this embodiment, when the working state of the fingerprint processing module is the target working state, the processing device may control the fingerprint processing module to interact with the fingerprint acquiring device to perform the operation corresponding to the above-mentioned user operation instruction, Correspondingly complete the corresponding operation in the target working state, and finally get the processing result.
示例性的,该处理结果可以包括操作完成信息和更新的指纹状态集等。Exemplarily, the processing result may include operation completion information, an updated fingerprint status set, and the like.
例如,若该用户操作指令为指纹注册指令,该处理结果可以是指纹处理模块和指纹获取装置进行交互操作后指纹注册操作的完成信息和注册的指纹信息。可选的,假设每个注册操作包括N次(其中,N为正整数)采集指纹步骤,则该处理结果包括N次的采集结果(采集成功或采集失败,若为采集失败,则包括采集失败的原因)和N次采集到的指纹信息。For example, if the user operation instruction is a fingerprint registration instruction, the processing result may be the completion information of the fingerprint registration operation and the registered fingerprint information after the fingerprint processing module and the fingerprint acquisition device interact. Optionally, assuming that each registration operation includes N times (where N is a positive integer) fingerprint collection steps, the processing result includes N times collection results (successful collection or collection failure, if it is a collection failure, it includes collection failure The reason) and the fingerprint information collected N times.
可选的,若该用户操作指令为指纹识别指令,则处理结果包括识别成功或识别失败的识别完成信息,以及识别失败的识别失败原因等信息。Optionally, if the user operation instruction is a fingerprint identification instruction, the processing result includes identification completion information of successful identification or identification failure, and identification failure reason of identification failure.
可选的,若该用户操作指令为指纹删除指令,则处理结果包括删除成功或删除失败的删除完成信息,以及删除失败时的删除失败原因等信息。Optionally, if the user operation instruction is a fingerprint deletion instruction, the processing result includes deletion completion information for deletion success or deletion failure, and deletion failure reason when the deletion fails.
对于其他处于空闲状态下的指纹查询指令或指纹优先级设置指令等,处理结果与指纹删除指令的处理结果类似,此处不再赘述。For other fingerprint query instructions or fingerprint priority setting instructions in the idle state, the processing result is similar to the processing result of the fingerprint deletion instruction, and will not be repeated here.
值得说明的是,关于该步骤23的具体实现方式可以参见下述图5所示的实施例,此处不再赘述。It is worth noting that, for the specific implementation of step 23, refer to the embodiment shown in FIG. 5 below, which will not be repeated here.
在本实施例中,处理装置作为智能锁系统的控制核心,以及终端设备与指纹获取装置的中间层,其既可以与底层的指纹获取装置进行信息交互,也可以为上层的终端设备应用提供对外接口服务、数据查询、状态查询及通知服务,提高了处理装置的兼容性,为开发智能锁系统的可扩展功能提供了实现条件。In this embodiment, the processing device serves as the control core of the smart lock system and the intermediate layer between the terminal device and the fingerprint acquisition device. It can not only interact with the fingerprint acquisition device at the bottom level, but also provide external services for the upper terminal device application. Interface services, data query, status query and notification services improve the compatibility of processing devices and provide implementation conditions for the development of expandable functions of the smart lock system.
本申请实施例提供的数据处理方法,处理装置接收用户操作请求,该用户操作请求用于指示指纹处理模块的工作状态为目标工作状态,根据该用户操作请求生成用户操作指令,控制指纹处理模块在目标工作状态下与指纹获取装置进行交互,完成该用户操作指令对应的操作。该技术方案,处理装置可以控制指纹处理模块与指纹获取装置进行交互,实现了指令操作的统一管理,提高了智能锁系统的稳定性,提升了用户体验。In the data processing method provided by the embodiment of the application, the processing device receives a user operation request, and the user operation request is used to indicate that the working state of the fingerprint processing module is the target working state, and the user operation instruction is generated according to the user operation request to control the fingerprint processing module to operate Interact with the fingerprint acquisition device in the target working state to complete the operation corresponding to the user operation instruction. In this technical solution, the processing device can control the fingerprint processing module to interact with the fingerprint acquisition device, realize the unified management of instruction operations, improve the stability of the smart lock system, and enhance the user experience.
示例性的,在上述实施例的基础上,图3为本申请实施例提供的数据处理方法实施例二的流程示意图。如图3所示,在上述步骤22之前,该方法还可以包括如下步骤:Exemplarily, on the basis of the foregoing embodiment, FIG. 3 is a schematic flowchart of Embodiment 2 of a data processing method provided in an embodiment of this application. As shown in Fig. 3, before the above step 22, the method may further include the following steps:
步骤31:若该指纹处理模块的当前工作状态不是目标工作状态时,处理装置控制该指纹处理模块的工作状态切换为目标工作状态。Step 31: If the current working state of the fingerprint processing module is not the target working state, the processing device controls the working state of the fingerprint processing module to switch to the target working state.
可选的,在本实施例中,当处理装置接收到用户操作请求时,首先判断该指纹处理模块的当前工作状态是否为用户操作请求指示的目标工作状态。若指纹处理模块的当前工作状态是目标工作状态,则生成用户操作指令,并控制该指纹处理模块和指纹获取装置进行交互以执行该用户操作指令对应的操作。若指纹处理模块的当前工作状态不是该目标工作状态,则需要首先控制该指纹处理模块的工作状态切换为目标工作状态,再执行相应的操作。Optionally, in this embodiment, when the processing device receives a user operation request, it first determines whether the current working state of the fingerprint processing module is the target working state indicated by the user operation request. If the current working state of the fingerprint processing module is the target working state, a user operation instruction is generated, and the fingerprint processing module and the fingerprint acquisition device are controlled to interact to perform the operation corresponding to the user operation instruction. If the current working state of the fingerprint processing module is not the target working state, it is necessary to first control the working state of the fingerprint processing module to switch to the target working state, and then perform the corresponding operation.
示例性的,假设该用户操作请求为指纹注册请求,而该指纹处理模块的当前工作状态为识别状态,则首先将指纹处理模块的工作状态切换为注册状 态,然后再执行相应的操作。Exemplarily, assuming that the user operation request is a fingerprint registration request, and the current working state of the fingerprint processing module is the recognition state, first switch the working state of the fingerprint processing module to the registered state, and then perform the corresponding operation.
同理,当用户操作请求为指纹删除请求、指纹查询请求、指纹优先级设置请求时,指纹处理模块的工作状态切换与上述指纹注册指令的操作类似,此处不再赘述。In the same way, when the user operation request is a fingerprint deletion request, a fingerprint query request, or a fingerprint priority setting request, the switching of the working state of the fingerprint processing module is similar to the operation of the above fingerprint registration instruction, and will not be repeated here.
可选的,在本实施例中,参照图3所示,在上述步骤23之后,该方法还可以包括如下步骤:Optionally, in this embodiment, referring to FIG. 3, after step 23, the method may further include the following steps:
步骤32:处理装置保存该处理结果,以及控制指纹处理模块的工作状态切换至默认工作状态。Step 32: The processing device saves the processing result, and controls the working state of the fingerprint processing module to switch to the default working state.
可选的,在本实施例中,处理装置可以保存上述步骤得到的处理结果。具体的,在本实施例的智能锁系统中,该处理装置可以包括存储单元,而该存储单元可以集成在指纹处理模块中。因而,处理装置可以将得到的处理结果保存到存储单元中,以使该处理装置在接收到其他操作请求时可以提高响应速度,进而提高智能锁系统的稳定性。Optionally, in this embodiment, the processing device may save the processing result obtained in the foregoing steps. Specifically, in the smart lock system of this embodiment, the processing device may include a storage unit, and the storage unit may be integrated in the fingerprint processing module. Therefore, the processing device can save the obtained processing result in the storage unit, so that the processing device can increase the response speed when receiving other operation requests, thereby improving the stability of the smart lock system.
基于智能锁系统的主要用途是指纹识别开锁,在本实施例中,可以将指纹处理模块的识别状态设定为默认工作状态。The main purpose of the smart lock system is fingerprint identification and unlocking. In this embodiment, the identification state of the fingerprint processing module can be set as the default working state.
示例性的,若指纹处理模块的工作状态不是默认工作状态,可以在处理装置完成目标工作状态对应的操作且得到处理结果后,控制该指纹处理模块的工作状态自动切换至默认工作状态,即识别状态,以提高智能锁系统的智能化和用户体验。Exemplarily, if the working state of the fingerprint processing module is not the default working state, after the processing device completes the operation corresponding to the target working state and the processing result is obtained, the working state of the fingerprint processing module can be controlled to automatically switch to the default working state, that is, identification Status to improve the intelligence and user experience of the smart lock system.
下面给出一个具体实例进行说明:A specific example is given below for illustration:
通常情况下,指纹处理模块在正常工作过程中的默认工作状态是识别状态,即在未接收到上层应用或指纹获取装置发送的除指纹识别请求之外的其他请求时,可以控制该指纹处理模块处于识别状态,这时指纹处理模块会周期性向指纹获取装置发送识别指令,以使指纹获取装置处于等待接受用户按压操作的状态,以便指纹获取装置可以随时接受用户的按压操作,并向指纹处理模块发送指纹识别请求,以使指纹处理模块和指纹获取装置协作完成指纹识别操作。Normally, the default working state of the fingerprint processing module in the normal working process is the recognition state, that is, the fingerprint processing module can be controlled when it has not received other requests than the fingerprint recognition request sent by the upper application or the fingerprint acquisition device In the recognition state, the fingerprint processing module will periodically send recognition instructions to the fingerprint acquisition device so that the fingerprint acquisition device is in a state of waiting to accept the user's pressing operation, so that the fingerprint acquisition device can accept the user's pressing operation at any time and send it to the fingerprint processing module Send a fingerprint identification request so that the fingerprint processing module and the fingerprint acquisition device cooperate to complete the fingerprint identification operation.
可选的,当用户通过终端设备上的应用或者指纹获取装置上的注册按钮触发终端设备向处理装置发送指纹注册请求时,处理装置首先控制指纹处理模块取消当前的识别状态,切换到空闲(IDLE)状态。Optionally, when the user triggers the terminal device to send a fingerprint registration request to the processing device through the application on the terminal device or the registration button on the fingerprint acquisition device, the processing device first controls the fingerprint processing module to cancel the current recognition state and switch to IDLE )status.
该指纹处理模块根据该指纹注册请求生成指纹注册指令,并将该指纹注册指令发送给指纹获取装置,使得指纹获取装置根据该指纹注册指令转入注册状态,此时,用户可以通过按压指纹传感器进行指纹注册操作。可选的,每个注册操作可以采集N个有效指纹信息。其中,N为正整数;可选的,为了提高后续识别的准确度,N可以等于8。The fingerprint processing module generates a fingerprint registration instruction according to the fingerprint registration request, and sends the fingerprint registration instruction to the fingerprint acquisition device, so that the fingerprint acquisition device switches to the registration state according to the fingerprint registration instruction. At this time, the user can press the fingerprint sensor to perform Fingerprint registration operation. Optionally, each registration operation can collect N valid fingerprint information. Among them, N is a positive integer; optionally, in order to improve the accuracy of subsequent recognition, N can be equal to 8.
可选的,在注册操作过程中,指纹获取装置每采集完一个有效指纹信息,都会将采集结果和指纹信息发送给处理装置,相应的,该处理装置可以保存每次接收到的采集结果和指纹信息,例如,将其保存至存储单元中。值得说明的是,在某些特殊场景下,处理装置也可以及时将获取到的采集结果和指纹信息反馈给终端设备上的智能锁应用。Optionally, during the registration operation, the fingerprint acquisition device will send the collection result and fingerprint information to the processing device every time it collects a valid fingerprint information. Accordingly, the processing device can save the collection result and fingerprint received each time Information, for example, save it to a storage unit. It is worth noting that in some special scenarios, the processing device can also feed back the acquired collection results and fingerprint information to the smart lock application on the terminal device in time.
在本实施例中,当指纹处理模块和指纹获取装置顺利完成每个注册操作(顺利采集到一个手指的N个指纹信息),或者当用户取消该注册操作时,该处理装置的指纹处理模块会自动切换为默认的识别状态。In this embodiment, when the fingerprint processing module and the fingerprint acquisition device successfully complete each registration operation (the N fingerprint information of a finger is successfully collected), or when the user cancels the registration operation, the fingerprint processing module of the processing device will Automatically switch to the default recognition state.
值得说明的是,当处理装置获取到指纹删除请求、指纹查询请求或指纹优先级设置请求时,处理装置可以控制指纹处理模块使其工作状态由识别状态切换至空闲状态,进而在指纹处理模块处于空闲状态时,并根据指纹删除请求、指纹查询请求或指纹优先级设置请求生成对应的指纹删除指令、指纹查询指令或指纹优先级设置指令,以及控制指纹处理模块和指纹获取装置进行相应的处理,并在处理完成后切换回识别状态。It is worth noting that when the processing device obtains the fingerprint deletion request, fingerprint query request or fingerprint priority setting request, the processing device can control the fingerprint processing module to switch its working state from the recognition state to the idle state, and then the fingerprint processing module is in In idle state, it generates corresponding fingerprint deletion instruction, fingerprint inquiry instruction or fingerprint priority setting instruction according to fingerprint deletion request, fingerprint inquiry request or fingerprint priority setting request, and controls the fingerprint processing module and fingerprint acquisition device to perform corresponding processing, And switch back to the recognition state after processing.
可以理解的是,处理装置作为控制核心,可以与指纹获取装置进行数据通信,并在处理装置运行的过程中由指纹处理模块维护用户操作指令的处理结果。同时,在处理装置上电或处理装置在其他工作状态完成相应的操作时,该指纹处理模块的工作状态均可以自动切换到默认的识别状态。It can be understood that, as the control core, the processing device can perform data communication with the fingerprint acquisition device, and the fingerprint processing module maintains the processing result of the user operation instruction during the operation of the processing device. At the same time, when the processing device is powered on or the processing device completes corresponding operations in other working states, the working state of the fingerprint processing module can be automatically switched to the default recognition state.
例如,处理装置的指纹处理模块可以在处理装置内部维护指纹操作与工作状态。默认情况下,指纹处理模块工作在识别状态;当指纹获取装置确定指纹传感器有手指按压时,执行指纹识别,并将识别结果发送给处理装置进行存储。当接收到其他请求时,将取消当前识别状态,切入空闲状态或注册状态,生成对应的命令并将其发送指纹获取装置进行相应操作。For example, the fingerprint processing module of the processing device can maintain the fingerprint operation and working status inside the processing device. By default, the fingerprint processing module works in the recognition state; when the fingerprint acquisition device determines that the fingerprint sensor is pressed by a finger, it performs fingerprint recognition and sends the recognition result to the processing device for storage. When other requests are received, the current recognition state will be cancelled, the idle state or the registered state will be switched to, and the corresponding command will be generated and sent to the fingerprint acquisition device for corresponding operations.
本申请实施例提供的数据处理方法,在指纹处理模块的当前工作状态不是用户操作指令指示的目标工作状态时,处理装置可以控制该指纹处理模块 的工作状态切换为目标工作状态,并保存上述处理结果,以及控制指纹处理模块的工作状态切换至默认工作状态。该技术方案提高了处理装置的智能化程度,提高了识别效率,减少了智能锁系统的响应时间,提高了用户体验。In the data processing method provided by the embodiments of the application, when the current working state of the fingerprint processing module is not the target working state indicated by the user operation instruction, the processing device can control the working state of the fingerprint processing module to switch to the target working state, and save the above processing As a result, and control the working state of the fingerprint processing module to switch to the default working state. This technical solution improves the intelligence of the processing device, improves the recognition efficiency, reduces the response time of the smart lock system, and improves the user experience.
下面结合上述实施例对于用户操作请求分别为指纹识别请求和指纹注册请求时的数据处理方法进行解释说明。In the following, the data processing method when the user operation request is a fingerprint identification request and a fingerprint registration request will be explained in conjunction with the above embodiment.
在本实施例的一种可能设计中,上述用户操作请求为指纹识别请求,指纹识别请求对应的目标工作状态为识别状态。In a possible design of this embodiment, the aforementioned user operation request is a fingerprint identification request, and the target working state corresponding to the fingerprint identification request is the identification state.
相应的,上述步骤21可以通过如下步骤实现:Correspondingly, the above step 21 can be implemented through the following steps:
该处理装置根据该指纹识别请求生成指纹识别指令。The processing device generates a fingerprint identification instruction according to the fingerprint identification request.
上述步骤23可以通过如下步骤实现:The above step 23 can be achieved through the following steps:
该处理装置控制指纹处理模块在该识别状态下与指纹获取装置进行交互,完成该指纹识别指令对应的指纹识别操作,得到识别结果。The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the recognition state, completes the fingerprint recognition operation corresponding to the fingerprint recognition instruction, and obtains the recognition result.
在本实施例中,指纹处理模块工作在识别状态时,处理装置可以将该指纹识别指令发送给指纹获取装置,以使指纹获取装置进行指纹识别,并接收指纹获取装置发送的识别结果,完成指纹识别过程。In this embodiment, when the fingerprint processing module is working in the recognition state, the processing device can send the fingerprint recognition instruction to the fingerprint acquisition device so that the fingerprint acquisition device performs fingerprint recognition, and receives the recognition result sent by the fingerprint acquisition device to complete the fingerprint Identification process.
在实际应用中,指纹处理模块在识别状态下,可以周期性向指纹获取装置发送识别指令,以使指纹获取装置工作在等待用户进行识别的状态(例如,用户按压指纹传感器),在指纹获取装置获取到指纹识别请求并执行指纹识别操作后将得到的识别结果发送给处理装置,或者,指纹获取装置超时未检测到用户指纹按压操作,则向指纹处理模块返回手指未按压的结果,这时处理装置再自动重新向指纹获取装置发送一条新的识别指令,以使指纹获取装置继续等待用户的识别请求。In practical applications, the fingerprint processing module can periodically send identification instructions to the fingerprint acquisition device in the recognition state to make the fingerprint acquisition device work in a state of waiting for the user to recognize (for example, the user presses the fingerprint sensor), and the fingerprint acquisition device acquires After the fingerprint recognition request is received and the fingerprint recognition operation is performed, the obtained recognition result is sent to the processing device, or the fingerprint acquisition device does not detect the user's fingerprint pressing operation after a timeout, and returns the result that the finger is not pressed to the fingerprint processing module, then the processing device Then automatically send a new identification instruction to the fingerprint acquisition device so that the fingerprint acquisition device continues to wait for the user's identification request.
在本实施例的另一种可能设计中,上述用户操作请求为指纹注册请求,该指纹注册请求对应的目标工作状态为注册状态。In another possible design of this embodiment, the aforementioned user operation request is a fingerprint registration request, and the target working state corresponding to the fingerprint registration request is the registration state.
相应的,上述步骤21可以通过如下步骤实现:Correspondingly, the above step 21 can be implemented through the following steps:
该处理装置根据该指纹注册请求生成指纹注册指令。The processing device generates a fingerprint registration instruction according to the fingerprint registration request.
上述步骤23可以通过如下步骤实现:The above step 23 can be achieved through the following steps:
处理装置控制该指纹处理模块在注册状态下基于该指纹注册指令与指纹获取装置进行至少N次交互,获取包括N个有效指纹信息的注册结果。The processing device controls the fingerprint processing module to perform at least N interactions with the fingerprint acquisition device based on the fingerprint registration instruction in the registration state, and acquire a registration result including N valid fingerprint information.
其中,N为正整数。Among them, N is a positive integer.
在本实施例中,在指纹处理模块工作在注册状态时,处理装置控制指纹处理模块持续工作在注册状态,直到指纹获取装置将采集到的N个有效指纹信息发送给处理装置,在处理装置确定该N个有效指纹信息符合预设的要求时,确定该注册过程结束。In this embodiment, when the fingerprint processing module is working in the registered state, the processing device controls the fingerprint processing module to continue to work in the registered state until the fingerprint acquisition device sends the collected N valid fingerprint information to the processing device, and the processing device determines When the N valid fingerprint information meets the preset requirements, it is determined that the registration process ends.
可选的,在指纹处理装置与指纹获取装置的交互过程中,处理装置首先将该指纹注册指令发送给指纹获取装置,指纹获取装置每采集1个指纹信息,将采集到的指纹是否有效及无效时的原因等发送给指纹处理模块,直到该指纹获取装置采集到N个有效指纹信息。Optionally, during the interaction between the fingerprint processing device and the fingerprint acquisition device, the processing device first sends the fingerprint registration instruction to the fingerprint acquisition device, and the fingerprint acquisition device collects one piece of fingerprint information, whether the collected fingerprint is valid and invalid The reason for the time is sent to the fingerprint processing module until the fingerprint acquisition device collects N valid fingerprint information.
示例性的,在上述任一实施例的基础上,图4为本申请实施例提供的数据处理方法实施例三的流程示意图。如图4所示,在本实施例中,该方法还可以包括如下步骤:Exemplarily, on the basis of any of the foregoing embodiments, FIG. 4 is a schematic flowchart of Embodiment 3 of the data processing method provided in an embodiment of this application. As shown in Figure 4, in this embodiment, the method may further include the following steps:
步骤41:处理装置检测指纹处理模块是否出现故障。Step 41: The processing device detects whether the fingerprint processing module is faulty.
可选的,在本实施例中,处理装置相比于现有技术中的处理器增加了故障检测和故障处理机制。因而,该处理装置可以检测指纹处理模块是否出现故障。具体的可以通过两种方式进行检测,但并不限定下述检测方式。Optionally, in this embodiment, the processing device adds a fault detection and fault handling mechanism compared to the processor in the prior art. Therefore, the processing device can detect whether the fingerprint processing module is malfunctioning. Specifically, the detection can be performed in two ways, but the following detection methods are not limited.
在本实施例的一种可能设计中,该步骤41可以通过如下方式实现:In a possible design of this embodiment, this step 41 can be implemented in the following manner:
处理装置在向指纹获取装置发送用户操作指令后,检测是否在预设时限内接收到指纹获取装置反馈的处理结果;若未在预设时限内接收到指纹获取装置反馈的处理结果,该处理装置可以确定该指纹处理模块出现故障。After sending a user operation instruction to the fingerprint acquiring device, the processing device detects whether the processing result fed back by the fingerprint acquiring device is received within a preset time limit; if the processing result fed back by the fingerprint acquiring device is not received within the preset time limit, the processing device It can be determined that the fingerprint processing module is faulty.
通常情况下,处理装置向指纹获取装置发送用户操作指令后,指纹获取装置执行相应的操作后会反馈一个处理结果。因而,根据处理装置发送用户操作指令与接收处理结果的统计时长,在本实施例的处理装置中可以设定一个预设时限,以利用该统计时长与预设时长的关系判定指纹处理模块是否出现故障。需要说明的是,该预设时限的时长大于上述统计时长。Generally, after the processing device sends a user operation instruction to the fingerprint acquisition device, the fingerprint acquisition device will feed back a processing result after performing the corresponding operation. Therefore, according to the statistical duration of the processing device sending user operation instructions and receiving the processing result, a preset time limit can be set in the processing device of this embodiment to determine whether the fingerprint processing module is present by using the relationship between the statistical duration and the preset duration malfunction. It should be noted that the duration of the preset time limit is greater than the aforementioned statistical duration.
示例性的,若处理装置向指纹获取装置发送用户操作指令之后的预设时限内均未接收到指纹获取装置反馈的处理结果,则可以确定该指纹处理模块出现故障,否则,确定该指纹处理模块未出现故障。Exemplarily, if the processing device does not receive the processing result fed back by the fingerprint acquisition device within the preset time limit after sending the user operation instruction to the fingerprint acquisition device, it may be determined that the fingerprint processing module is faulty, otherwise, the fingerprint processing module may be determined No failure occurred.
可选的,在本实施例中,该处理结果可以是正确的响应信息,正确的响应信息即指纹获取装置根据接收到的用户操作指令反馈的结果。Optionally, in this embodiment, the processing result may be correct response information. The correct response information is the result fed back by the fingerprint acquisition device according to the received user operation instruction.
在本实施例的另一种可能设计中,该步骤41还可以通过如下方式实现:In another possible design of this embodiment, this step 41 can also be implemented in the following manner:
处理装置检测是否接收到指纹获取装置周期性发送的等待消息;若未接收到指纹获取装置周期性发送的等待消息,该处理装置确定指纹处理模块出现故障。The processing device detects whether a waiting message periodically sent by the fingerprint acquiring device is received; if the waiting message periodically sent by the fingerprint acquiring device is not received, the processing device determines that the fingerprint processing module is faulty.
在本实施例中,在处理装置等待接收用户操作指令的过程中,可以通过设置使得指纹获取装置周期性向指纹处理模块发送等待消息。本申请实施例并不限定两个周期的时间间隔,其可以根据实际情况确定。In this embodiment, while the processing device is waiting to receive a user operation instruction, the fingerprint acquisition device may be configured to periodically send a waiting message to the fingerprint processing module. The embodiment of the present application does not limit the time interval between two cycles, which can be determined according to actual conditions.
示例性的,若该处理装置未接收到指纹获取装置周期性发送的等待消息,也即,处理装置未检测到指纹处理模块周期性接收等待消息,此时可以确定该指纹处理模块出现故障,否则,确定该指纹处理模块未出现故障。Exemplarily, if the processing device does not receive the waiting message periodically sent by the fingerprint acquisition device, that is, the processing device does not detect that the fingerprint processing module periodically receives the waiting message, then it can be determined that the fingerprint processing module is faulty, otherwise , Confirm that the fingerprint processing module is not faulty.
步骤42:若确定该指纹处理模块出现故障,处理装置对该指纹处理模块和指纹获取装置进行复位操作。Step 42: If it is determined that the fingerprint processing module is faulty, the processing device performs a reset operation on the fingerprint processing module and the fingerprint acquisition device.
可选的,在本实施例中,若处理装置确定指纹处理模块出现故障,处理装置可以对指纹处理模块进行内部状态复位以及对指纹获取装置进行复位操作。例如,处理装置可以通过对指纹获取装置进行断电再重新上电等操作,以实现对指纹获取装置进行复位操作。Optionally, in this embodiment, if the processing device determines that the fingerprint processing module is faulty, the processing device may reset the internal state of the fingerprint processing module and reset the fingerprint acquisition device. For example, the processing device may perform operations such as powering off and powering on the fingerprint acquiring device to reset the fingerprint acquiring device.
步骤43:在该指纹处理模块和指纹获取装置重新运行后,该处理装置从指纹获取装置获取指纹信息集,并将该指纹信息集存储至处理装置包括的存储单元中。Step 43: After the fingerprint processing module and the fingerprint acquisition device are re-run, the processing device acquires the fingerprint information set from the fingerprint acquisition device, and stores the fingerprint information set in the storage unit included in the processing device.
示例性的,处理装置对该指纹处理模块和指纹获取装置进行复位操作后,指纹处理模块、存储单元以及指纹获取装置在前一次操作过程中的临时数据均丢失,而由于指纹获取装置的存储器是非易失性的存储器,因而,保存在该存储器中的指纹集信息不会丢失。所以,在该指纹处理模块和指纹获取装置重新运行后,该处理装置可以从指纹获取装置的存储器中获取已注册的指纹信息集,并将该指纹信息集存储至存储单元中。Exemplarily, after the processing device resets the fingerprint processing module and the fingerprint acquisition device, the fingerprint processing module, the storage unit, and the temporary data of the fingerprint acquisition device during the previous operation are all lost, and the fingerprint acquisition device’s memory is not Volatile memory, therefore, the fingerprint set information stored in the memory will not be lost. Therefore, after the fingerprint processing module and the fingerprint acquisition device are re-run, the processing device can acquire the registered fingerprint information set from the memory of the fingerprint acquisition device, and store the fingerprint information set in the storage unit.
值得说明的是,在该指纹处理模块和指纹获取装置重新运行后,指纹处理模块的工作状态自动切换为识别状态,等待用户的手指按压操作或者等待终端设备的上层应用触发的其他请求。It is worth noting that after the fingerprint processing module and fingerprint acquisition device are re-run, the working state of the fingerprint processing module is automatically switched to the recognition state, waiting for the user's finger pressing operation or waiting for other requests triggered by the upper layer application of the terminal device.
在本实施例中,处理装置具备超时检测与故障处理机制,若确定指纹处理模块故障,则复位指纹处理模块和指纹获取装置,提高了智能锁系统的稳定性。In this embodiment, the processing device has a timeout detection and failure handling mechanism. If it is determined that the fingerprint processing module is faulty, the fingerprint processing module and the fingerprint acquisition device are reset, which improves the stability of the smart lock system.
本申请实施例提供的数据处理方法,处理装置检测该指纹处理模块是否出现故障,并在确定指纹处理模块出现故障时,对指纹处理模块和指纹获取装置进行复位操作,以及在指纹处理模块和指纹获取装置重新运行后,从指纹获取装置获取指纹信息集,并将该指纹信息集存储至处理装置的存储单元中。该技术方案中,该处理装置有故障检测机制,当确定指纹处理模块出现故障时,可以将指纹处理模块和指纹获取装置进行复位操作,以使整个指纹处理模块重新运行,避免卡死,提高了智能锁系统的自适应性和稳定性。In the data processing method provided by the embodiment of the application, the processing device detects whether the fingerprint processing module is faulty, and when it is determined that the fingerprint processing module is faulty, resets the fingerprint processing module and the fingerprint acquisition device, and performs a reset operation on the fingerprint processing module and the fingerprint After the obtaining device re-runs, the fingerprint information set is obtained from the fingerprint obtaining device, and the fingerprint information set is stored in the storage unit of the processing device. In this technical solution, the processing device has a fault detection mechanism. When it is determined that the fingerprint processing module is faulty, the fingerprint processing module and the fingerprint acquisition device can be reset to make the entire fingerprint processing module run again, avoiding jamming, and improving The adaptability and stability of the smart lock system.
示例性的,在上述任一实施例的基础上,图5为本申请实施例提供的数据处理方法实施例四的流程示意图。如图5所示,在本实施例中,上述步骤23可以通过如下步骤实现:Exemplarily, on the basis of any of the foregoing embodiments, FIG. 5 is a schematic flowchart of Embodiment 4 of the data processing method provided in an embodiment of this application. As shown in Figure 5, in this embodiment, the above step 23 can be implemented through the following steps:
步骤51:处理装置基于UART协议对用户操作指令进行处理,得到目标指令数据包。Step 51: The processing device processes the user operation instruction based on the UART protocol to obtain the target instruction data packet.
可选的,在本实施例中,为了提高处理装置和指纹获取装置的通信安全性,处理装置和指纹获取装置之间可以基于预设协议进行通信。Optionally, in this embodiment, in order to improve the communication security between the processing device and the fingerprint acquisition device, the processing device and the fingerprint acquisition device may communicate based on a preset protocol.
示例性的,该预设协议可以是UART协议。这样,处理装置在生成用户操作指令后,可以首先基于UART协议的格式通过对用户操作指令进行加密处理得到目标指令数据包。Exemplarily, the preset protocol may be a UART protocol. In this way, after the processing device generates the user operation instruction, it can first obtain the target instruction data packet by encrypting the user operation instruction based on the format of the UART protocol.
示例性的,图6为目标指令数据包的组成结构示意图。如图6所示,基于UART协议生成的目标指令数据包可以包括:位于第一区域的协议头、位于第二区域的加密后的随机数、位于第三区域的加密后的用户操作指令以及位于第四区域的数据包校验值。因而,在本实施例中,该步骤51具体可以通过如下步骤实现:Exemplarily, FIG. 6 is a schematic diagram of the composition structure of the target instruction data packet. As shown in FIG. 6, the target instruction data packet generated based on the UART protocol may include: a protocol header located in the first area, an encrypted random number located in the second area, an encrypted user operation instruction located in the third area, and The data packet check value of the fourth area. Therefore, in this embodiment, step 51 can be specifically implemented through the following steps:
步骤A1:该处理装置向指纹获取装置发送随机数获取请求。Step A1: The processing device sends a random number acquisition request to the fingerprint acquisition device.
其中,该随机数获取请求用于指示指纹获取装置产生第一随机数。Wherein, the random number acquisition request is used to instruct the fingerprint acquisition device to generate the first random number.
具体的,终端设备上的应用程序等上层应用可以调用处理装置对外提供的服务接口(例如,指纹注册命令接口),处理装置可以首先组织一条获取随机数的命令(也即,随机数获取请求),以使处于底层的指纹获取装置中的控制器产生第一随机数。Specifically, upper-layer applications such as applications on the terminal device can call the service interface provided by the processing device (for example, a fingerprint registration command interface), and the processing device can first organize a random number acquisition command (that is, a random number acquisition request) , So that the controller in the fingerprint acquisition device at the bottom layer generates the first random number.
值得说明的是,该随机数获取请求是明文命令,处理装置不需要对其进行加密处理。It is worth noting that the random number acquisition request is a plain text command, and the processing device does not need to perform encryption processing on it.
步骤A2:指纹获取装置将生成的第一随机数发送给处理装置。Step A2: The fingerprint acquisition device sends the generated first random number to the processing device.
在本实施例中,指纹获取装置可以根据接收到随机数获取请求生成一个随机数,本实施例中称为第一随机数,然后将该第一随机数发送给处理装置,同时,该指纹获取装置也会暂时保存该第一随机数,为后续对接收到的目标指令数据包进行解析奠定基础。In this embodiment, the fingerprint acquisition device may generate a random number according to the received random number acquisition request, which is called the first random number in this embodiment, and then send the first random number to the processing device, and at the same time, the fingerprint acquisition The device will also temporarily store the first random number to lay a foundation for subsequent analysis of the received target command data packet.
步骤A3:处理装置对接收到的第一随机数和自身产生的第二随机数进行函数运算,得到第三随机数。Step A3: The processing device performs a function operation on the received first random number and the second random number generated by itself to obtain a third random number.
示例性的,处理装置向指纹获取装置请求第一随机数时,自身也会产生一个随机数,本实施例中称为第二随机数。处理装置可以对第一随机数和第二随机数进行函数运算,得到第三随机数。Exemplarily, when the processing device requests the first random number from the fingerprint acquisition device, it will also generate a random number, which is called the second random number in this embodiment. The processing device may perform a function operation on the first random number and the second random number to obtain the third random number.
示例性的,该函数运算可以包括:异或、移位。关于函数运算的具体形式可以根据处理装置与指纹获取装置的约定确定,本实施例并不对其进行限定。Exemplarily, the function operation may include exclusive OR and shift. The specific form of the function operation can be determined according to the agreement between the processing device and the fingerprint acquisition device, which is not limited in this embodiment.
步骤A4:处理装置对第三随机数进行加密处理,得到加密后的随机数。Step A4: The processing device performs encryption processing on the third random number to obtain an encrypted random number.
示例性的,为了进一步提高通信安全性,处理装置可以基于预设加密算法对得到的第三随机数进行加密处理,得到加密后的随机数,并将其填充到图6所示目标指令数据包的第二区域中。Exemplarily, in order to further improve communication security, the processing device may perform encryption processing on the obtained third random number based on a preset encryption algorithm to obtain the encrypted random number, and fill it into the target instruction data packet shown in FIG. 6 In the second area.
可选的,上述预设加密算法可以是标准的AES加密算法,也可以是其他的加密算法,本实施例对不对预设加密算法的具体形式进行限定。Optionally, the foregoing preset encryption algorithm may be a standard AES encryption algorithm, or other encryption algorithms, and this embodiment does not limit the specific form of the preset encryption algorithm.
步骤A5:处理装置利用该第二随机数对用户操作指令进行循环冗余校验CRC校验,得到指令校验值。Step A5: The processing device uses the second random number to perform a cyclic redundancy check CRC check on the user operation command to obtain the command check value.
可选的,处理装置对用户操作指令加密之前,可以首先利用自身产生的第二随机数对上述用户操作指令进行CRC校验处理得到指令校验值。关于CRC校验的具体实现原理是现有技术,此处不再赘述。Optionally, before the processing device encrypts the user operation instruction, it may first use the second random number generated by itself to perform CRC check processing on the user operation instruction to obtain the instruction check value. The specific implementation principle of the CRC check is based on the prior art, and will not be repeated here.
步骤A6:处理装置将上述指令校验值置于用户操作指令的前面,并对该指令校验值和用户操作指令进行加密处理,得到加密后的用户操作指令。Step A6: The processing device puts the above-mentioned command check value in front of the user operation command, and encrypts the command check value and the user operation command to obtain the encrypted user operation command.
示例性的,处理装置为了保证用户操作指令在通信过程中不会被截取,首先可以将步骤A5得到的指令校验值置于用户操作指令的前面;其次对该指令校验值和用户操作指令的整体内容基于预设加密算法进行加密处理,从而得到加密后的用户操作指令;最后将加密后的用户操作指令填充到图6所示目标指令数据包的第三区域中。Exemplarily, in order to ensure that the user operation instruction will not be intercepted during the communication process, the processing device may first place the instruction check value obtained in step A5 before the user operation instruction; secondly, the instruction check value and the user operation instruction The entire content of is encrypted based on a preset encryption algorithm to obtain an encrypted user operation instruction; finally, the encrypted user operation instruction is filled into the third area of the target instruction data packet shown in FIG. 6.
可选的,该预设加密算法可以是上述步骤A4中的预设加密算法。Optionally, the preset encryption algorithm may be the preset encryption algorithm in step A4.
步骤A7:处理装置对协议头、加密后的随机数以及加密后的用户操作指令进行CRC校验,得到数据包校验值。Step A7: The processing device performs a CRC check on the protocol header, the encrypted random number, and the encrypted user operation instruction to obtain a data packet check value.
在本实施例中,处理装置对UART协议数据包的前三个区域中的内容进行多项式运算的CRC校验可以得到数据包校验值,将该数据包校验值置于图6所示目标指令数据包的第四区域中,进而得到完成的目标指令数据包。In this embodiment, the processing device performs a polynomial CRC check on the contents in the first three areas of the UART protocol data packet to obtain the data packet check value, which is placed in the target shown in FIG. 6 In the fourth area of the instruction data packet, the completed target instruction data packet is obtained.
在本实施例中,处理装置将得到的目标指令数据包发送给指纹获取装置,指纹获取装置也可以执行相应的加密算法,可以保证用户操作指令传输的正确性和完整性。In this embodiment, the processing device sends the obtained target instruction data packet to the fingerprint acquisition device, and the fingerprint acquisition device can also execute the corresponding encryption algorithm, which can ensure the correctness and integrity of the transmission of the user operation instruction.
步骤52:处理装置将该目标指令数据包发送给指纹获取装置。Step 52: The processing device sends the target instruction data packet to the fingerprint acquiring device.
在本实施例中,若处理装置是基于UART协议生成的目标指令数据包,则处理装置和指纹获取装置可以通过UART协议总线进行通信,所以,处理装置通过UART协议总线将生成的目标指令数据包发送给指纹获取装置。In this embodiment, if the processing device is a target instruction data packet generated based on the UART protocol, the processing device and the fingerprint acquisition device can communicate through the UART protocol bus. Therefore, the processing device will generate the target instruction data packet through the UART protocol bus. Send to the fingerprint acquisition device.
步骤53:指纹获取装置对接收到的目标指令数据包进行解析,获取上述用户操作指令。Step 53: The fingerprint acquisition device parses the received target instruction data packet to acquire the above-mentioned user operation instruction.
示例性的,在本实施例中,指纹获取装置可以通过UART协议总线接收处理装置发送的目标指令数据包,对接收到的目标指令数据包进行解析,从目标指令数据包中解析得到用户操作指令。Exemplarily, in this embodiment, the fingerprint acquisition device may receive the target instruction data packet sent by the processing device through the UART protocol bus, analyze the received target instruction data packet, and parse the target instruction data packet to obtain the user operation instruction .
在本实施例中,指纹获取装置可以基于上述步骤51中对用户操作指令进行的加密过程,执行与步骤51相逆的解密过程,依次解析出协议头、加密后的随机数、加密后的用户操作指令,再对加密后的随机数和加密后的用户操作指令进行加密,最后得到用户操作指令。In this embodiment, the fingerprint acquisition device may perform the decryption process reverse to step 51 based on the encryption process of the user operation instruction in step 51, and sequentially parse out the protocol header, the encrypted random number, and the encrypted user The operation instruction, and then encrypt the encrypted random number and the encrypted user operation instruction, and finally obtain the user operation instruction.
步骤54:指纹获取装置执行该用户操作指令对应的操作,得到操作结果。Step 54: The fingerprint acquisition device executes the operation corresponding to the user operation instruction to obtain the operation result.
在本实施例中,若指纹获取装置获取到的用户操作指令为指纹注册指令,则该指纹获取装置执行注册操作,具体的,在该注册操作过程中,指纹获取装置将每次通过指纹传感器采集到的指纹信息以及采集成功/失败结果及失败原因均发送给处理装置,直到预设的N个有效指纹信息采集完毕。In this embodiment, if the user operation instruction acquired by the fingerprint acquisition device is a fingerprint registration instruction, the fingerprint acquisition device executes the registration operation. Specifically, during the registration operation, the fingerprint acquisition device will collect each time through the fingerprint sensor. The received fingerprint information, the collection success/failure result and the failure reason are all sent to the processing device, until the preset N valid fingerprint information are collected.
示例性的,指纹获取装置在采集N个有效指纹信息的注册操作过程中得到的指纹信息以及采集成功/失败结果及失败原因统称为注册结果。Exemplarily, the fingerprint information obtained by the fingerprint acquisition device during the registration operation process of collecting N valid fingerprint information, the collection success/failure result and the failure reason are collectively referred to as the registration result.
可选的,若指纹获取装置获取到的用户操作指令为指纹识别指令或指纹 删除指令或指纹查询指令或指纹优先级设置指令,则指令获取装置执行上述指纹识别指令或指纹删除指令或指纹查询指令或指纹优先级设置指令得到识别成功/失败及失败原因或删除成功/失败及失败原因或指纹优先级设置成功/失败及失败原因等识别结果或删除结果或指纹优先级设置结果。Optionally, if the user operation instruction acquired by the fingerprint acquisition device is a fingerprint identification instruction or a fingerprint deletion instruction or a fingerprint query instruction or a fingerprint priority setting instruction, the instruction acquisition device executes the aforementioned fingerprint identification instruction or fingerprint deletion instruction or fingerprint query instruction Or the fingerprint priority setting instruction obtains the recognition result or the deletion result or the fingerprint priority setting result such as the recognition success/failure and the reason for the failure or the success/failure and the reason for the deletion or the success/failure and the reason for the fingerprint priority setting.
在本实施例中,指纹获取装置执行对应的操作得到的注册结果或识别结果或删除结果或指纹优先级设置结果,统称为操作结果。In this embodiment, the registration result, recognition result, deletion result, or fingerprint priority setting result obtained by the fingerprint acquisition device performing the corresponding operation is collectively referred to as the operation result.
步骤55:指纹获取装置基于上述UART协议对操作结果进行处理,得到上述处理结果。Step 55: The fingerprint acquisition device processes the operation result based on the above UART protocol to obtain the above processing result.
在本实施例中,指纹获取装置还需要将得到的操作结果反馈给处理装置。由于处理装置基于UART协议向指纹获取装置发送加密得到的目标指令数据包,所以,指纹获取装置也需要基于相同的协议规范(UART协议)对得到的操作结果进行处理,得到处理结果,以使指纹获取装置在反馈处理结果时也符合相同的加密规范。In this embodiment, the fingerprint acquisition device also needs to feed back the obtained operation result to the processing device. Since the processing device sends the encrypted target instruction data packet to the fingerprint acquisition device based on the UART protocol, the fingerprint acquisition device also needs to process the obtained operation result based on the same protocol specification (UART protocol) to obtain the processing result to make the fingerprint The acquisition device also complies with the same encryption specification when feeding back the processing result.
步骤56:处理装置接收该指纹获取装置返回的处理结果。Step 56: The processing device receives the processing result returned by the fingerprint acquisition device.
示例性的,指纹获取装置将得到的处理结果发送给处理装置,处理装置可以对其解析得到指纹获取装置和处理装置交互得到的操作结果,并将其存储至存储单元中,以便用户通过终端设备按需进行操作。Exemplarily, the fingerprint acquisition device sends the obtained processing result to the processing device, and the processing device can parse it to obtain the operation result obtained by the interaction between the fingerprint acquisition device and the processing device, and store it in the storage unit so that the user can use the terminal device Operate as needed.
本申请实施例提供的数据处理方法,处理装置基于UART协议对用户操作指令进行处理,得到目标指令数据包,并将其发送给指纹获取装置,指纹获取装置对接收到的目标指令数据包进行解析获取上述用户操作指令,并执行用户操作指令对应的操作得到操作结果,以及基于UART协议对操作结果进行处理得到处理结果,处理装置接收指纹获取装置返回的处理结果。该技术方案中,处理装置与指纹获取装置之间采用特定的通信协议规范进行通信,提高了处理装置与指纹获取装置之间的交互安全性。In the data processing method provided by the embodiment of the application, the processing device processes the user operation instructions based on the UART protocol to obtain the target instruction data packet, and sends it to the fingerprint acquisition device, and the fingerprint acquisition device analyzes the received target instruction data packet Obtain the above-mentioned user operation instruction, execute the operation corresponding to the user operation instruction to obtain the operation result, and process the operation result based on the UART protocol to obtain the processing result, and the processing device receives the processing result returned by the fingerprint acquisition device. In this technical solution, the processing device and the fingerprint acquisition device adopt a specific communication protocol specification for communication, which improves the security of interaction between the processing device and the fingerprint acquisition device.
进一步的,在本实施例中,处理装置作为上层终端设备与底层指纹获取装置的中间层,不仅具有指纹信息与状态管理服务,而且还可以为上层应用(例如,终端设备上的BLE/NB-IOT或其他一系列上层应用)提供接口服务,提高了处理装置的可扩展性与兼容性,同时,本实施例的分层设计也为智能锁系统的不同模块间(如NFC/键盘等)提供了高内聚、低耦合的特性,提高了用户体验。Further, in this embodiment, the processing device serves as an intermediate layer between the upper-layer terminal device and the bottom-layer fingerprint acquisition device. It not only has fingerprint information and status management services, but also can be an upper-layer application (for example, BLE/NB- IOT or a series of other upper-layer applications) provide interface services to improve the scalability and compatibility of the processing device. At the same time, the layered design of this embodiment also provides for the different modules of the smart lock system (such as NFC/keyboard, etc.) With the characteristics of high cohesion and low coupling, the user experience is improved.
下述为本申请系统实施例,可以用于执行本申请方法实施例。对于本申请系统实施例中未披露的细节,请参照本申请方法实施例。The following are system embodiments of this application, which can be used to implement the method embodiments of this application. For details not disclosed in the system embodiment of this application, please refer to the method embodiment of this application.
图7为本申请实施例提供的智能锁系统实施例一的结构示意图。如图7所示,该系统可以包括:处理装置71和指纹获取装置72,该处理装置71包括:第一收发模块710、第二收发模块711、生成模块712、控制模块713和指纹处理模块714。FIG. 7 is a schematic structural diagram of Embodiment 1 of a smart lock system provided by an embodiment of the application. As shown in FIG. 7, the system may include: a processing device 71 and a fingerprint acquisition device 72. The processing device 71 includes: a first transceiver module 710, a second transceiver module 711, a generation module 712, a control module 713, and a fingerprint processing module 714 .
其中,该第一收发模块710,用于接收用户操作请求,该用户操作请求用于指示该指纹处理模块714的工作状态为与所述用户操作请求对应的目标工作状态;Wherein, the first transceiver module 710 is configured to receive a user operation request, and the user operation request is used to indicate that the working state of the fingerprint processing module 714 is a target working state corresponding to the user operation request;
该生成模块712,用于根据该第一收发模块710接收到的用户操作请求生成用户操作指令,该用户操作指令用于指示指纹处理模块714和指纹获取装置72执行该用户操作指令对应的操作;The generating module 712 is configured to generate a user operation instruction according to the user operation request received by the first transceiver module 710, and the user operation instruction is used to instruct the fingerprint processing module 714 and the fingerprint acquisition device 72 to perform an operation corresponding to the user operation instruction;
该控制模块713,用于控制该指纹处理模块714在所述目标工作状态下通过所述第二收发模块711与指纹获取装置72进行交互,完成所述用户操作指令对应的操作,得到处理结果。The control module 713 is configured to control the fingerprint processing module 714 to interact with the fingerprint acquisition device 72 through the second transceiver module 711 in the target working state, complete the operation corresponding to the user operation instruction, and obtain the processing result.
示例性的,在本实施例的一种可能设计中,该控制模块713,还用于在生成模块712根据所述用户操作请求生成用户操作指令之前,若确定所述指纹处理模块714的当前工作状态不是所述目标工作状态,则控制所述指纹处理模块714的工作状态切换为所述目标工作状态。Exemplarily, in a possible design of this embodiment, the control module 713 is further configured to determine the current work of the fingerprint processing module 714 before the generation module 712 generates a user operation instruction according to the user operation request If the state is not the target working state, control the working state of the fingerprint processing module 714 to switch to the target working state.
示例性的,在本实施例的另一种可能设计中,所述控制模块713,还用于保存所述处理结果,以及控制所述指纹处理模块714的工作状态切换至默认工作状态。Exemplarily, in another possible design of this embodiment, the control module 713 is further configured to save the processing result and control the working state of the fingerprint processing module 714 to switch to the default working state.
可选的,所述指纹处理模块714的工作状态包括:识别状态、注册状态和空闲状态;Optionally, the working status of the fingerprint processing module 714 includes: recognition status, registration status, and idle status;
其中,所述识别状态为所述指纹处理模块714的默认工作状态,所述识别状态与所述注册状态、所述空闲状态之间能够相互切换;Wherein, the recognition state is the default working state of the fingerprint processing module 714, and the recognition state, the registered state, and the idle state can be switched mutually;
该指纹处理模块714在所述识别状态下与所述指纹获取装置72执行指纹识别操作,所述指纹处理模块714在所述注册状态下与所述指纹获取装置72执行指纹注册操作,所述指纹处理模块714在所述空闲状态下与所述指纹获取装置72执行的操作至少包括如下一种:指纹删除、指纹查询、指纹优先 级设置。The fingerprint processing module 714 performs a fingerprint recognition operation with the fingerprint acquisition device 72 in the recognition state, and the fingerprint processing module 714 performs a fingerprint registration operation with the fingerprint acquisition device 72 in the registration state. The operations performed by the processing module 714 with the fingerprint acquisition device 72 in the idle state include at least one of the following: fingerprint deletion, fingerprint query, and fingerprint priority setting.
可选的,所述用户操作请求为指纹识别请求,所述指纹识别请求对应的目标工作状态为所述识别状态;Optionally, the user operation request is a fingerprint identification request, and the target working state corresponding to the fingerprint identification request is the identification state;
该生成模块712,具体用于根据所述指纹识别请求生成指纹识别指令;The generating module 712 is specifically configured to generate a fingerprint recognition instruction according to the fingerprint recognition request;
该控制模块713,具体用于控制所述指纹处理模块在所述识别状态下通过所述第二收发模块711与所述指纹获取装置72进行交互,完成所述指纹识别指令对应的指纹识别操作,得到识别结果。The control module 713 is specifically configured to control the fingerprint processing module to interact with the fingerprint acquisition device 72 through the second transceiver module 711 in the recognition state to complete the fingerprint recognition operation corresponding to the fingerprint recognition instruction, Get the recognition result.
可选的,所述用户操作请求为指纹注册请求,所述指纹注册请求对应的目标工作状态为所述注册状态;Optionally, the user operation request is a fingerprint registration request, and the target work status corresponding to the fingerprint registration request is the registration status;
该生成模块712,具体用于根据所述指纹注册请求生成指纹注册指令;The generating module 712 is specifically configured to generate a fingerprint registration instruction according to the fingerprint registration request;
该控制模块713,具体用于控制所述指纹处理模块714在所述注册状态下基于所述指纹注册指令通过所述第二收发模块711与所述指纹获取装置72进行至少N次交互,获取包括N个有效指纹信息的注册结果,其中,N为正整数。The control module 713 is specifically configured to control the fingerprint processing module 714 to perform at least N interactions with the fingerprint acquisition device 72 through the second transceiver module 711 based on the fingerprint registration instruction in the registration state, and the acquisition includes The registration result of N valid fingerprint information, where N is a positive integer.
示例性的,在上述实施例的基础上,图8为本申请实施例提供的智能锁系统实施例二的结构示意图。如图8所示,该处理装置71还包括:检测模块715、确定模块716和获取模块717。Exemplarily, on the basis of the foregoing embodiment, FIG. 8 is a schematic structural diagram of Embodiment 2 of a smart lock system provided by an embodiment of this application. As shown in FIG. 8, the processing device 71 further includes: a detection module 715, a determination module 716, and an acquisition module 717.
其中,该检测模块715,用于基于所述第二收发模块711与所述指纹获取装置72的交互检测所述指纹处理模块714是否出现故障;Wherein, the detection module 715 is configured to detect whether the fingerprint processing module 714 is faulty based on the interaction between the second transceiver module 711 and the fingerprint acquisition device 72;
该控制模块713,还用于在所述确定模块716确定所述指纹处理模块714出现故障时,对所述指纹处理模块714和所述指纹获取装置72进行复位操作;The control module 713 is also configured to perform a reset operation on the fingerprint processing module 714 and the fingerprint acquisition device 72 when the determining module 716 determines that the fingerprint processing module 714 is faulty;
该获取模块717,用于在所述指纹处理模块714和所述指纹获取装置72重新运行后,从所述指纹获取装置72获取指纹信息集;The acquiring module 717 is configured to acquire a fingerprint information set from the fingerprint acquiring device 72 after the fingerprint processing module 714 and the fingerprint acquiring device 72 are re-run;
该控制模块713,还用于将所述获取模块717获取到的所述指纹信息集存储至所述处理装置71的存储单元中。The control module 713 is also configured to store the fingerprint information set obtained by the obtaining module 717 in the storage unit of the processing device 71.
示例性的,作为一种示例,该检测模块715,具体用于在所述第二收发模块711向所述指纹获取装置72发送所述用户操作指令,检测所述第二收发模块711是否在预设时限内接收到所述指纹获取装置72反馈的处理结果;Exemplarily, as an example, the detection module 715 is specifically configured to send the user operation instruction to the fingerprint acquisition device 72 in the second transceiver module 711 to detect whether the second transceiver module 711 is in advance. The processing result fed back by the fingerprint acquisition device 72 is received within the set time limit;
该确定模块716,用于在所述第二收发模块711未在所述预设时限内接 收到所述指纹获取装置72反馈的处理结果时,确定所述指纹处理模块714出现故障。The determining module 716 is configured to determine that the fingerprint processing module 714 is faulty when the second transceiver module 711 does not receive the processing result fed back by the fingerprint acquiring device 72 within the preset time limit.
示例性的,作为另一种示例,该检测模块715,具体用于检测第二收发模块711是否接收到所述指纹获取装置72周期性发送的等待消息;Exemplarily, as another example, the detection module 715 is specifically configured to detect whether the second transceiver module 711 receives a waiting message periodically sent by the fingerprint acquisition device 72;
该确定模块716,用于在所述第二收发模块711未接收到所述指纹获取装置72周期性发送的等待消息时,确定所述指纹处理模块714出现故障。The determining module 716 is configured to determine that the fingerprint processing module 714 is faulty when the second transceiver module 711 does not receive the waiting message periodically sent by the fingerprint acquiring device 72.
示例性的,在本实施例的又一种可能设计中,该控制模块713,用于控制所述指纹处理模块714在所述目标工作状态下通过所述第二收发模块711与所述指纹获取装置72进行交互,完成所述用户操作指令对应的操作,得到处理结果,具体为:Exemplarily, in another possible design of this embodiment, the control module 713 is configured to control the fingerprint processing module 714 to acquire the fingerprint through the second transceiver module 711 in the target working state. The device 72 interacts, completes the operation corresponding to the user operation instruction, and obtains the processing result, specifically:
该指纹处理模块714,用于基于通用异步收发传输器UART协议对所述用户操作指令进行处理,得到目标指令数据包;The fingerprint processing module 714 is configured to process the user operation instruction based on the universal asynchronous receiver transmitter UART protocol to obtain the target instruction data packet;
该第二收发模块711,用于将所述目标指令数据包发送给所述指纹获取装置72;The second transceiver module 711 is configured to send the target instruction data packet to the fingerprint acquiring device 72;
该指纹获取装置72,用于对接收到的所述目标指令数据包进行解析,获取所述用户操作指令,根据所述用户操作指令完成所述目标工作状态对应的处理,得到操作结果,以及基于所述UART协议对所述操作结果进行处理,得到所述处理结果;The fingerprint acquisition device 72 is configured to parse the received target instruction data packet, acquire the user operation instruction, complete the processing corresponding to the target work state according to the user operation instruction, obtain the operation result, and The UART protocol processes the operation result to obtain the processing result;
该第二收发模块711,还用于接收所述指纹获取装置72返回的所述处理结果。The second transceiver module 711 is also configured to receive the processing result returned by the fingerprint acquiring device 72.
在本实施例的上述可能实现方式中,目标指令数据包包括:位于第一区域的协议头、位于第二区域的加密后的随机数、位于第三区域的加密后的用户操作指令以及位于第四区域的数据包校验值;In the foregoing possible implementation of this embodiment, the target instruction data packet includes: a protocol header located in the first area, an encrypted random number located in the second area, an encrypted user operation instruction located in the third area, and an encrypted user operation instruction located in the third area. Data packet check value of four areas;
相应的,该第二收发模块711,具体用于向所述指纹获取装置72发送随机数获取请求,所述随机数获取请求用于指示所述指纹获取装置72产生第一随机数;Correspondingly, the second transceiver module 711 is specifically configured to send a random number acquisition request to the fingerprint acquisition device 72, and the random number acquisition request is used to instruct the fingerprint acquisition device 72 to generate a first random number;
该指纹获取装置72,用于将生成的所述第一随机数发送给所述指纹处理模块714;The fingerprint acquisition device 72 is configured to send the generated first random number to the fingerprint processing module 714;
该指纹处理模块714,用于对接收到的所述第一随机数和自身产生的第二随机数进行函数运算,得到第三随机数,对所述第三随机数进行加密处理, 得到所述加密后的随机数,利用所述第二随机数对所述用户操作指令进行循环冗余校验CRC校验,得到指令校验值,以及将所述指令校验值置于所述用户操作指令的前面,并对所述指令校验值和所述用户操作指令进行加密处理,得到所述加密后的用户操作指令,以及对所述协议头、所述加密后的随机数以及所述加密后的用户操作指令进行CRC校验,得到所述数据包校验值。The fingerprint processing module 714 is configured to perform functional operations on the received first random number and the second random number generated by itself to obtain a third random number, and perform encryption processing on the third random number to obtain the The encrypted random number uses the second random number to perform a cyclic redundancy check CRC check on the user operation instruction to obtain an instruction check value, and place the instruction check value in the user operation instruction And encrypt the command check value and the user operation command to obtain the encrypted user operation command, as well as the protocol header, the encrypted random number, and the encrypted The CRC check is performed on the user operation instruction of, and the check value of the data packet is obtained.
示例性的,在本实施例的又一种可能设计中,该第一收发模块710,具体用于接收该指纹获取装置72发送的所述用户操作请求,所述用户操作请求是所述指纹获取装置72基于获取到的用户按压控制按钮操作生成的;Exemplarily, in another possible design of this embodiment, the first transceiver module 710 is specifically configured to receive the user operation request sent by the fingerprint acquisition device 72, and the user operation request is the fingerprint acquisition The device 72 is generated based on the acquired operation of pressing the control button by the user;
或者or
该第一收发模块710,具体用于接收终端设备发送的所述用户操作请求,所述用户操作请求是所述终端设备基于获取到的用户输入操作生成的。The first transceiver module 710 is specifically configured to receive the user operation request sent by the terminal device, where the user operation request is generated by the terminal device based on the acquired user input operation.
本申请实施例提供的智能锁系统,可用于执行图2至图5所示实施例中的方法,其实现原理和技术效果类似,在此不再赘述。The smart lock system provided by the embodiments of the present application can be used to implement the methods in the embodiments shown in FIG. 2 to FIG. 5, and its implementation principles and technical effects are similar, and will not be repeated here.
需要说明的是,应理解以上装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块通过处理元件调用软件的形式实现,部分模块通过硬件的形式实现。例如,确定模块可以为单独设立的处理元件,也可以集成在上述装置的某一个芯片中实现,此外,也可以以程序代码的形式存储于上述装置的存储器中,由上述装置的某一个处理元件调用并执行以上确定模块的功能。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be implemented in the form of hardware; some modules can be implemented in the form of calling software by processing elements, and some of the modules can be implemented in the form of hardware. For example, the determination module may be a separately established processing element, or it may be integrated into a certain chip of the above-mentioned device for implementation. In addition, it may also be stored in the memory of the above-mentioned device in the form of program code, and a certain processing element of the above-mentioned device Call and execute the functions of the above-identified module. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together or implemented independently. The processing element described here may be an integrated circuit with signal processing capability. In the implementation process, each step of the above method or each of the above modules can be completed by hardware integrated logic circuits in the processor element or instructions in the form of software.
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它 可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuit (ASIC), or one or more microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (FPGA), etc. For another example, when one of the above modules is implemented in the form of processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
本申请实施例还提供一种存储介质,所述存储介质中存储有指令,当所述指令在计算机上运行时,使得计算机执行上述图2至图5所示实施例中的方法。An embodiment of the present application also provides a storage medium, in which instructions are stored, and when the instructions are run on a computer, the computer is caused to execute the method in the embodiments shown in FIGS. 2 to 5 above.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中,a,b,c可以是单个,也可以是多个。In this application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, both A and B exist, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects before and after are in an "or" relationship; in the formula, the character "/" indicates that the associated objects before and after are in a "division" relationship. "The following at least one item (a)" or similar expressions refers to any combination of these items, including any combination of a single item (a) or plural items (a). For example, at least one item (a) of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple One.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。It can be understood that the various numerical numbers involved in the embodiments of the present application are only for easy distinction for description, and are not used to limit the scope of the embodiments of the present application.
可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that, in the embodiments of this application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not be implemented in this application. The implementation process of the example constitutes any limitation.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: It is still possible to modify the technical solutions described in the foregoing embodiments, or equivalently replace some or all of the technical features; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the application. range.

Claims (25)

  1. 一种数据处理方法,应用于智能锁系统,其特征在于,所述智能锁系统包括:处理装置和指纹获取装置,所述方法包括:A data processing method applied to a smart lock system, characterized in that the smart lock system includes a processing device and a fingerprint acquisition device, and the method includes:
    所述处理装置接收用户操作请求,所述用户操作请求用于指示指纹处理模块的工作状态为与所述用户操作请求对应的目标工作状态,所述处理装置包括指纹处理模块;The processing device receives a user operation request, the user operation request is used to indicate that the working state of the fingerprint processing module is a target working state corresponding to the user operation request, and the processing device includes a fingerprint processing module;
    所述处理装置根据所述用户操作请求生成用户操作指令,所述用户操作指令用于指示所述指纹处理模块和所述指纹获取装置执行所述用户操作指令对应的操作;The processing device generates a user operation instruction according to the user operation request, where the user operation instruction is used to instruct the fingerprint processing module and the fingerprint acquisition device to perform an operation corresponding to the user operation instruction;
    所述处理装置控制所述指纹处理模块在所述目标工作状态下与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果。The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the target working state, completes the operation corresponding to the user operation instruction, and obtains the processing result.
  2. 根据权利要求1所述的方法,其特征在于,在所述处理装置根据所述用户操作请求生成用户操作指令之前,所述方法还包括:The method according to claim 1, wherein, before the processing device generates a user operation instruction according to the user operation request, the method further comprises:
    若所述指纹处理模块的当前工作状态不是所述目标工作状态,所述处理装置控制所述指纹处理模块的工作状态切换为所述目标工作状态。If the current working state of the fingerprint processing module is not the target working state, the processing device controls the working state of the fingerprint processing module to switch to the target working state.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    所述处理装置保存所述处理结果,以及控制所述指纹处理模块的工作状态切换至默认工作状态。The processing device saves the processing result, and controls the working state of the fingerprint processing module to switch to a default working state.
  4. 根据权利要求3所述的方法,其特征在于,所述指纹处理模块的工作状态包括:识别状态、注册状态和空闲状态;The method according to claim 3, wherein the working status of the fingerprint processing module includes: recognition status, registration status and idle status;
    其中,所述识别状态为所述指纹处理模块的默认工作状态,所述识别状态与所述注册状态、所述空闲状态之间能够相互切换;Wherein, the recognition state is a default working state of the fingerprint processing module, and the recognition state, the registered state, and the idle state can be switched mutually;
    所述指纹处理模块在所述识别状态下与所述指纹获取装置执行指纹识别操作,所述指纹处理模块在所述注册状态下与所述指纹获取装置执行指纹注册操作,所述指纹处理模块在所述空闲状态下与所述指纹获取装置执行的操作至少包括如下一种:指纹删除、指纹查询、指纹优先级设置。The fingerprint processing module performs a fingerprint recognition operation with the fingerprint acquisition device in the recognition state, the fingerprint processing module performs a fingerprint registration operation with the fingerprint acquisition device in the registration state, and the fingerprint processing module is The operations performed with the fingerprint acquisition device in the idle state include at least one of the following: fingerprint deletion, fingerprint query, and fingerprint priority setting.
  5. 根据权利要求4所述的方法,其特征在于,所述用户操作请求为指纹识别请求,所述指纹识别请求对应的目标工作状态为所述识别状态;The method according to claim 4, wherein the user operation request is a fingerprint recognition request, and the target working state corresponding to the fingerprint recognition request is the recognition state;
    所述处理装置根据所述用户操作请求生成用户操作指令,包括:The processing device generates a user operation instruction according to the user operation request, including:
    所述处理装置根据所述指纹识别请求生成指纹识别指令;The processing device generates a fingerprint identification instruction according to the fingerprint identification request;
    所述处理装置控制所述指纹处理模块在所述目标工作状态下与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果,包括:The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the target working state, completes the operation corresponding to the user operation instruction, and obtains the processing result, including:
    所述处理装置控制所述指纹处理模块在所述识别状态下与所述指纹获取装置进行交互,完成所述指纹识别指令对应的指纹识别操作,得到识别结果。The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the recognition state, completes the fingerprint recognition operation corresponding to the fingerprint recognition instruction, and obtains the recognition result.
  6. 根据权利要求4所述的方法,其特征在于,所述用户操作请求为指纹注册请求,所述指纹注册请求对应的目标工作状态为所述注册状态;The method according to claim 4, wherein the user operation request is a fingerprint registration request, and the target working state corresponding to the fingerprint registration request is the registration state;
    所述处理装置根据所述用户操作请求生成用户操作指令,包括:The processing device generates a user operation instruction according to the user operation request, including:
    所述处理装置根据所述指纹注册请求生成指纹注册指令;The processing device generates a fingerprint registration instruction according to the fingerprint registration request;
    所述处理装置控制所述指纹处理模块在所述目标工作状态下与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果,包括:The processing device controls the fingerprint processing module to interact with the fingerprint acquisition device in the target working state, completes the operation corresponding to the user operation instruction, and obtains the processing result, including:
    所述处理装置控制所述指纹处理模块在所述注册状态下基于所述指纹注册指令与所述指纹获取装置进行至少N次交互,获取包括N个有效指纹信息的注册结果,其中,N为正整数。The processing device controls the fingerprint processing module to perform at least N interactions with the fingerprint acquisition device based on the fingerprint registration instruction in the registration state, and acquire registration results including N valid fingerprint information, where N is positive Integer.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    所述处理装置检测所述指纹处理模块是否出现故障;The processing device detects whether the fingerprint processing module is faulty;
    若确定所述指纹处理模块出现故障,所述处理装置对所述指纹处理模块和所述指纹获取装置进行复位操作;If it is determined that the fingerprint processing module is faulty, the processing device performs a reset operation on the fingerprint processing module and the fingerprint acquisition device;
    在所述指纹处理模块和所述指纹获取装置重新运行后,所述处理装置从所述指纹获取装置获取指纹信息集,并将所述指纹信息集存储至所述处理装置包括的存储单元中。After the fingerprint processing module and the fingerprint acquisition device are re-run, the processing device acquires the fingerprint information set from the fingerprint acquisition device, and stores the fingerprint information set in the storage unit included in the processing device.
  8. 根据权利要求7所述的方法,其特征在于,所述处理装置检测所述指纹处理模块是否出现故障,包括:8. The method according to claim 7, wherein the processing device detecting whether the fingerprint processing module is malfunctioning, comprises:
    所述处理装置在向所述指纹获取装置发送所述用户操作指令后,检测是否在预设时限内接收到所述指纹获取装置反馈的处理结果;After sending the user operation instruction to the fingerprint acquisition device, the processing device detects whether the processing result fed back by the fingerprint acquisition device is received within a preset time limit;
    若未在所述预设时限内接收到所述指纹获取装置反馈的处理结果,所述处理装置确定所述指纹处理模块出现故障。If the processing result fed back by the fingerprint acquisition device is not received within the preset time limit, the processing device determines that the fingerprint processing module is faulty.
  9. 根据权利要求7所述的方法,其特征在于,所述处理装置检测所述指纹处理模块是否出现故障,包括:8. The method according to claim 7, wherein the processing device detecting whether the fingerprint processing module is malfunctioning, comprises:
    所述处理装置检测是否接收到所述指纹获取装置周期性发送的等待消息;The processing device detects whether a waiting message periodically sent by the fingerprint acquisition device is received;
    若未接收到所述指纹获取装置周期性发送的等待消息,所述处理装置确定所述指纹处理模块出现故障。If the waiting message periodically sent by the fingerprint acquisition device is not received, the processing device determines that the fingerprint processing module is faulty.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述处理装置控制所述指纹处理模块在所述目标工作状态下与所述指纹获取装置块进行交互,完成所述用户操作指令对应的操作,得到处理结果,包括:The method according to any one of claims 1-9, wherein the processing device controls the fingerprint processing module to interact with the fingerprint acquisition device block in the target working state to complete the user operation The operation corresponding to the instruction to obtain the processing result, including:
    所述处理装置基于通用异步收发传输器UART协议对所述用户操作指令进行处理,得到目标指令数据包;The processing device processes the user operation instruction based on the universal asynchronous receiver transmitter UART protocol to obtain a target instruction data packet;
    所述处理装置将所述目标指令数据包发送给所述指纹获取装置;The processing device sends the target instruction data packet to the fingerprint acquisition device;
    所述指纹获取装置对接收到的所述目标指令数据包进行解析,获取所述用户操作指令;The fingerprint acquisition device parses the received target instruction data packet to acquire the user operation instruction;
    所述指纹获取装置执行所述用户操作指令对应的操作,得到操作结果;The fingerprint acquisition device executes the operation corresponding to the user operation instruction to obtain the operation result;
    所述指纹获取装置基于所述UART协议对所述操作结果进行处理,得到所述处理结果;The fingerprint acquisition device processes the operation result based on the UART protocol to obtain the processing result;
    所述处理装置接收所述指纹获取装置返回的所述处理结果。The processing device receives the processing result returned by the fingerprint acquisition device.
  11. 根据权利要求10所述的方法,其特征在于,所述目标指令数据包包括:位于第一区域的协议头、位于第二区域的加密后的随机数、位于第三区域的加密后的用户操作指令以及位于第四区域的数据包校验值;The method according to claim 10, wherein the target instruction data packet comprises: a protocol header located in the first area, an encrypted random number located in the second area, and an encrypted user operation located in the third area Instruction and data packet check value located in the fourth area;
    相应的,所述处理装置基于通用异步收发传输器UART协议对所述用户操作指令进行处理,得到目标指令数据包,包括:Correspondingly, the processing device processes the user operation instruction based on the universal asynchronous receiver transmitter UART protocol to obtain the target instruction data packet, including:
    所述处理装置向所述指纹获取装置发送随机数获取请求,所述随机数获取请求用于指示所述指纹获取装置产生第一随机数;The processing device sends a random number acquisition request to the fingerprint acquisition device, where the random number acquisition request is used to instruct the fingerprint acquisition device to generate a first random number;
    所述指纹获取装置将生成的所述第一随机数发送给所述处理装置;Sending, by the fingerprint acquisition device, the generated first random number to the processing device;
    所述处理装置对接收到的所述第一随机数和自身产生的第二随机数进行函数运算,得到第三随机数;The processing device performs a function operation on the received first random number and the second random number generated by itself to obtain a third random number;
    所述处理装置对所述第三随机数进行加密处理,得到所述加密后的随机数;The processing device performs encryption processing on the third random number to obtain the encrypted random number;
    所述处理装置利用所述第二随机数对所述用户操作指令进行循环冗余校验CRC校验,得到指令校验值;The processing device uses the second random number to perform a cyclic redundancy check CRC check on the user operation instruction to obtain an instruction check value;
    所述处理装置将所述指令校验值置于所述用户操作指令的前面,并对所 述指令校验值和所述用户操作指令进行加密处理,得到所述加密后的用户操作指令;The processing device puts the instruction check value in front of the user operation instruction, and performs encryption processing on the instruction check value and the user operation instruction to obtain the encrypted user operation instruction;
    所述处理装置对所述协议头、所述加密后的随机数以及所述加密后的用户操作指令进行CRC校验,得到所述数据包校验值。The processing device performs a CRC check on the protocol header, the encrypted random number, and the encrypted user operation instruction to obtain the data packet check value.
  12. 根据权利要求1所述的方法,其特征在于,所述处理装置接收用户操作请求,包括:The method according to claim 1, wherein the processing device receiving a user operation request comprises:
    所述处理装置接收所述指纹获取装置发送的所述用户操作请求,所述用户操作请求是所述指纹获取装置基于获取到的用户按压控制按钮操作生成的;The processing device receives the user operation request sent by the fingerprint acquisition device, where the user operation request is generated by the fingerprint acquisition device based on the acquired operation of pressing the control button by the user;
    或者or
    所述处理装置接收用户操作请求,包括:The processing device receiving a user operation request includes:
    所述处理装置接收终端设备发送的所述用户操作请求,所述用户操作请求是所述终端设备基于获取到的用户输入操作生成的。The processing device receives the user operation request sent by the terminal device, where the user operation request is generated by the terminal device based on the acquired user input operation.
  13. 一种智能锁系统,其特征在于,包括:处理装置和指纹获取装置;An intelligent lock system, characterized by comprising: a processing device and a fingerprint acquisition device;
    所述处理装置包括:第一收发模块、第二收发模块、生成模块、控制模块和指纹处理模块;The processing device includes: a first transceiver module, a second transceiver module, a generation module, a control module, and a fingerprint processing module;
    所述第一收发模块,用于接收用户操作请求,所述用户操作请求用于指示所述指纹处理模块的工作状态为与所述用户操作请求对应的目标工作状态;The first transceiver module is configured to receive a user operation request, the user operation request is used to indicate that the working state of the fingerprint processing module is a target working state corresponding to the user operation request;
    所述生成模块,用于根据所述第一收发模块接收到的所述用户操作请求生成用户操作指令,所述用户操作指令用于指示所述指纹处理模块和所述指纹获取装置执行所述用户操作指令对应的操作;The generating module is configured to generate a user operation instruction according to the user operation request received by the first transceiver module, and the user operation instruction is used to instruct the fingerprint processing module and the fingerprint acquisition device to execute the user The operation corresponding to the operation instruction;
    所述控制模块,用于控制所述指纹处理模块在所述目标工作状态下通过所述第二收发模块与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果。The control module is configured to control the fingerprint processing module to interact with the fingerprint acquisition device through the second transceiver module in the target working state, complete the operation corresponding to the user operation instruction, and obtain a processing result.
  14. 根据权利要求13所述的系统,其特征在于,所述控制模块,还用于在所述生成模块根据所述用户操作请求生成用户操作指令之前,若所述指纹处理模块的当前工作状态不是所述目标工作状态,则控制所述指纹处理模块的工作状态切换为所述目标工作状态。The system according to claim 13, wherein the control module is further configured to, before the generation module generates a user operation instruction according to the user operation request, if the current working state of the fingerprint processing module is not The target working state is controlled to switch the working state of the fingerprint processing module to the target working state.
  15. 根据权利要求13所述的系统,其特征在于,所述控制模块,还用于保存所述处理结果,以及控制所述指纹处理模块的工作状态切换至默认工作状态。The system according to claim 13, wherein the control module is further configured to save the processing result and control the working state of the fingerprint processing module to switch to a default working state.
  16. 根据权利要求15所述的系统,其特征在于,所述指纹处理模块的工作状态包括:识别状态、注册状态和空闲状态;The system according to claim 15, wherein the working status of the fingerprint processing module includes: recognition status, registration status and idle status;
    其中,所述识别状态为所述指纹处理模块的默认工作状态,所述识别状态与所述注册状态、所述空闲状态之间能够相互切换;Wherein, the recognition state is a default working state of the fingerprint processing module, and the recognition state, the registered state, and the idle state can be switched mutually;
    所述指纹处理模块在所述识别状态下与所述指纹获取装置执行指纹识别操作,所述指纹处理模块在所述注册状态下与所述指纹获取装置执行指纹注册操作,所述指纹处理模块在所述空闲状态下与所述指纹获取装置执行的操作至少包括如下一种:指纹删除、指纹查询、指纹优先级设置。The fingerprint processing module performs a fingerprint recognition operation with the fingerprint acquisition device in the recognition state, the fingerprint processing module performs a fingerprint registration operation with the fingerprint acquisition device in the registration state, and the fingerprint processing module is The operations performed with the fingerprint acquisition device in the idle state include at least one of the following: fingerprint deletion, fingerprint query, and fingerprint priority setting.
  17. 根据权利要求16所述的系统,其特征在于,所述用户操作请求为指纹识别请求,所述指纹识别请求对应的目标工作状态为所述识别状态;The system according to claim 16, wherein the user operation request is a fingerprint identification request, and the target working state corresponding to the fingerprint identification request is the identification state;
    所述生成模块,具体用于根据所述指纹识别请求生成指纹识别指令;The generating module is specifically configured to generate a fingerprint recognition instruction according to the fingerprint recognition request;
    所述控制模块,具体用于控制所述指纹处理模块在所述识别状态下通过所述第二收发模块与所述指纹获取装置进行交互,完成所述指纹识别指令对应的指纹识别操作,得到识别结果。The control module is specifically configured to control the fingerprint processing module to interact with the fingerprint acquisition device through the second transceiver module in the recognition state, complete the fingerprint recognition operation corresponding to the fingerprint recognition instruction, and obtain recognition result.
  18. 根据权利要求16所述的系统,其特征在于,所述用户操作请求为指纹注册请求,所述指纹注册请求对应的目标工作状态为所述注册状态;The system according to claim 16, wherein the user operation request is a fingerprint registration request, and the target working state corresponding to the fingerprint registration request is the registration state;
    所述生成模块,具体用于根据所述指纹注册请求生成指纹注册指令;The generating module is specifically configured to generate a fingerprint registration instruction according to the fingerprint registration request;
    所述控制模块,具体用于控制所述指纹处理模块在所述注册状态下基于所述指纹注册指令通过所述第二收发模块与所述指纹获取装置进行至少N次交互,获取包括N个有效指纹信息的注册结果,其中,N为正整数。The control module is specifically configured to control the fingerprint processing module to perform at least N interactions with the fingerprint acquisition device through the second transceiver module based on the fingerprint registration instruction in the registration state, and acquire including N valid The registration result of fingerprint information, where N is a positive integer.
  19. 根据权利要求13所述的系统,其特征在于,所述处理装置还包括:检测模块和获取模块;The system according to claim 13, wherein the processing device further comprises: a detection module and an acquisition module;
    所述检测模块,用于基于所述第二收发模块与所述指纹获取装置的交互检测所述指纹处理模块是否出现故障;The detection module is configured to detect whether the fingerprint processing module is faulty based on the interaction between the second transceiver module and the fingerprint acquisition device;
    所述控制模块,还用于在所述检测模块确定所述指纹处理模块出现故障时,对所述指纹处理模块和所述指纹获取装置进行复位操作;The control module is further configured to perform a reset operation on the fingerprint processing module and the fingerprint acquisition device when the detection module determines that the fingerprint processing module is faulty;
    所述获取模块,用于在所述指纹处理模块和所述指纹获取装置重新运行后,从所述指纹获取装置获取指纹信息集;The acquiring module is configured to acquire a fingerprint information set from the fingerprint acquiring device after the fingerprint processing module and the fingerprint acquiring device are re-run;
    所述控制模块,还用于将所述获取模块获取到的所述指纹信息集存储至所述处理装置包括的存储单元中。The control module is further configured to store the fingerprint information set acquired by the acquisition module in a storage unit included in the processing device.
  20. 根据权利要求19所述的系统,其特征在于,所述检测模块,具体用于在所述第二收发模块向所述指纹获取装置发送所述用户操作指令后,检测所述第二收发模块是否在预设时限内接收到所述指纹获取装置反馈的处理结果;The system according to claim 19, wherein the detection module is specifically configured to detect whether the second transceiver module sends the user operation instruction to the fingerprint acquisition device Receiving the processing result fed back by the fingerprint acquisition device within a preset time limit;
    所述确定模块,用于在所述第二收发模块未在所述预设时限内接收到所述指纹获取装置反馈的处理结果时,确定所述指纹处理模块出现故障。The determining module is configured to determine that the fingerprint processing module is faulty when the second transceiver module does not receive the processing result fed back by the fingerprint acquisition device within the preset time limit.
  21. 根据权利要求19所述的系统,其特征在于,所述检测模块,具体用于检测所述第二收发模块是否接收到所述指纹获取装置周期性发送的等待消息;The system according to claim 19, wherein the detection module is specifically configured to detect whether the second transceiver module receives a waiting message periodically sent by the fingerprint acquisition device;
    所述确定模块,用于在所述第二收发模块未接收到所述指纹获取装置周期性发送的等待消息时,确定所述指纹处理模块出现故障。The determining module is configured to determine that the fingerprint processing module is faulty when the second transceiver module does not receive the waiting message periodically sent by the fingerprint acquisition device.
  22. 根据权利要求13-21任一项所述的系统,其特征在于,所述控制模块,用于控制所述指纹处理模块在所述目标工作状态下通过所述第二收发模块与所述指纹获取装置进行交互,完成所述用户操作指令对应的操作,得到处理结果,具体为:The system according to any one of claims 13-21, wherein the control module is configured to control the fingerprint processing module to acquire the fingerprint through the second transceiver module and the fingerprint in the target working state. The device interacts, completes the operation corresponding to the user operation instruction, and obtains the processing result, specifically:
    所述指纹处理模块,用于基于通用异步收发传输器UART协议对所述用户操作指令进行处理,得到目标指令数据包;The fingerprint processing module is configured to process the user operation instruction based on the universal asynchronous receiver transmitter UART protocol to obtain a target instruction data packet;
    所述第二收发模块,用于将所述目标指令数据包发送给所述指纹获取装置;The second transceiver module is configured to send the target instruction data packet to the fingerprint acquisition device;
    所述指纹获取装置,用于对接收到的所述目标指令数据包进行解析,获取所述用户操作指令,并执行所述用户操作指令对应的操作,得到操作结果,以及基于所述UART协议对所述操作结果进行处理,得到所述处理结果;The fingerprint acquisition device is configured to parse the received target instruction data packet, acquire the user operation instruction, and execute the operation corresponding to the user operation instruction to obtain the operation result, and pair based on the UART protocol Processing the operation result to obtain the processing result;
    所述第二收发模块,还用于接收所述指纹获取装置返回的所述处理结果。The second transceiver module is also configured to receive the processing result returned by the fingerprint acquisition device.
  23. 根据权利要求22所述的系统,其特征在于,所述目标指令数据包包括:位于第一区域的协议头、位于第二区域的加密后的随机数、位于第三区域的加密后的用户操作指令以及位于第四区域的数据包校验值;The system according to claim 22, wherein the target instruction data packet comprises: a protocol header located in the first area, an encrypted random number located in the second area, and an encrypted user operation located in the third area Instruction and data packet check value located in the fourth area;
    相应的,所述第二收发模块,具体用于向所述指纹获取装置发送随机数获取请求,所述随机数获取请求用于指示所述指纹获取装置产生第一随机数;Correspondingly, the second transceiver module is specifically configured to send a random number acquisition request to the fingerprint acquisition device, and the random number acquisition request is used to instruct the fingerprint acquisition device to generate a first random number;
    所述指纹获取装置,用于将生成的所述第一随机数发送给所述指纹处理模块;The fingerprint acquisition device is configured to send the generated first random number to the fingerprint processing module;
    所述指纹处理模块,用于对接收到的所述第一随机数和自身产生的第二随机数进行函数运算,得到第三随机数,对所述第三随机数进行加密处理,得到所述加密后的随机数,利用所述第二随机数对所述用户操作指令进行循环冗余校验CRC校验,得到指令校验值,以及将所述指令校验值置于所述用户操作指令的前面,并对所述指令校验值和所述用户操作指令进行加密处理,得到所述加密后的用户操作指令,以及对所述协议头、所述加密后的随机数以及所述加密后的用户操作指令进行CRC校验,得到所述数据包校验值。The fingerprint processing module is configured to perform a function operation on the received first random number and a second random number generated by itself to obtain a third random number, and perform encryption processing on the third random number to obtain the The encrypted random number uses the second random number to perform a cyclic redundancy check CRC check on the user operation instruction to obtain an instruction check value, and place the instruction check value in the user operation instruction And encrypt the command check value and the user operation command to obtain the encrypted user operation command, as well as the protocol header, the encrypted random number, and the encrypted The CRC check is performed on the user operation instruction of, and the check value of the data packet is obtained.
  24. 根据权利要求13所述的系统,其特征在于,The system according to claim 13, wherein:
    所述第一收发模块,具体用于接收所述指纹获取装置发送的所述用户操作请求,所述用户操作请求是所述指纹获取装置基于获取到的用户按压控制按钮操作生成的;The first transceiver module is specifically configured to receive the user operation request sent by the fingerprint acquisition device, where the user operation request is generated by the fingerprint acquisition device based on the acquired user pressing a control button;
    或者or
    所述第一收发模块,具体用于接收终端设备发送的所述用户操作请求,所述用户操作请求是所述终端设备基于获取到的用户输入操作生成的。The first transceiver module is specifically configured to receive the user operation request sent by the terminal device, and the user operation request is generated by the terminal device based on the acquired user input operation.
  25. 一种存储介质,其特征在于,所述存储介质中存储有指令,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1-12任一项所述的方法。A storage medium, characterized in that instructions are stored in the storage medium, and when the instructions are run on a computer, the computer executes the method according to any one of claims 1-12.
PCT/CN2019/074768 2019-02-11 2019-02-11 Data processing method, smart lock system, and storage medium WO2020163976A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/074768 WO2020163976A1 (en) 2019-02-11 2019-02-11 Data processing method, smart lock system, and storage medium
CN201980000280.7A CN109983512A (en) 2019-02-11 2019-02-11 Data processing method, intelligent lock system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/074768 WO2020163976A1 (en) 2019-02-11 2019-02-11 Data processing method, smart lock system, and storage medium

Publications (1)

Publication Number Publication Date
WO2020163976A1 true WO2020163976A1 (en) 2020-08-20

Family

ID=67073957

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/074768 WO2020163976A1 (en) 2019-02-11 2019-02-11 Data processing method, smart lock system, and storage medium

Country Status (2)

Country Link
CN (1) CN109983512A (en)
WO (1) WO2020163976A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115311766A (en) * 2022-08-08 2022-11-08 广东汇泰龙科技股份有限公司 Intelligent lock control method, system and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025048A (en) * 2016-02-01 2017-08-08 上海思立微电子科技有限公司 Application startup method, device and terminal based on fingerprint
US20180173862A1 (en) * 2015-08-19 2018-06-21 Huawei Technologies Co., Ltd. Fingerprint Recognition Method and Mobile Terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180173862A1 (en) * 2015-08-19 2018-06-21 Huawei Technologies Co., Ltd. Fingerprint Recognition Method and Mobile Terminal
CN107025048A (en) * 2016-02-01 2017-08-08 上海思立微电子科技有限公司 Application startup method, device and terminal based on fingerprint

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LIU, MENGMENG ET AL.: "Non-official translation: Principle and Design of Independent Fingerprint Identification System", ELECTRONIC TECHNOLOGY, no. 7, 31 July 2005 (2005-07-31), DOI: 20191030161441Y *
SHI, HUAIBIN: "Non-official translation: Design and Implementation of Fingerprint Lock System based on ADSP", ELECTRONIC TECHNOLOGY & INFORMATION SCIENCE, CHINA MASTER’S THESES FULL-TEXT DATABASE, no. 04, 15 April 2011 (2011-04-15), DOI: 20191030161343Y *

Also Published As

Publication number Publication date
CN109983512A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN112714193B (en) Community data processing system, method, device and equipment based on Internet of things platform
KR20220079958A (en) Blockchain message processing method and device, computer and readable storage medium
CN113162848B (en) Method, device, gateway and medium for realizing block chain gateway
CN111258723B (en) Transaction processing method, device, system, medium and equipment of distributed system
WO2012171349A1 (en) Method, apparatus and system for implementing distributed auto-incrementing counting
US9629091B2 (en) Wireless personal area network device
US20070192431A1 (en) Method and apparatus for service oriented architecture infrastructure switch
WO2020163976A1 (en) Data processing method, smart lock system, and storage medium
WO2020098266A1 (en) Abnormal response method and device
CN108400913B (en) Medical institution intelligent access system with timed task function
CN114090483A (en) Protocol-based RDMA (remote direct memory Access) communication method and device and storage medium
CN112532470B (en) Method and system for actively reporting log information by BMC
CN113364857A (en) Service data processing method and device and server
CN113010498A (en) Data synchronization method and device, computer equipment and storage medium
CN111756836B (en) Information sending method and device based on event management model
CN114661762A (en) Query method and device for embedded database, storage medium and equipment
CN110677465B (en) Control method and device of distributed lock
CN115129708A (en) Data processing method, data processing device, storage medium and electronic equipment
US20220137720A1 (en) Communication link based on activity on a keyboard
JP3776706B2 (en) Data communication apparatus, data communication method, and computer-readable recording medium recording data communication program
CN115525935B (en) Concurrent data operation method, device and equipment for multiple security chips and storage medium
US20240020290A1 (en) System B-Tree Change Notification System Using Lock Value Blocks
CN112016115B (en) Event subscription system based on block chain
WO2024001507A1 (en) Data processing method, system and apparatus, device, and storage medium
CN115543610A (en) Method, device, equipment and storage medium for processing message

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19915448

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19915448

Country of ref document: EP

Kind code of ref document: A1