CN106681906A - Method and device for detecting abnormal operation of fingerprint module and terminal device - Google Patents
Method and device for detecting abnormal operation of fingerprint module and terminal device Download PDFInfo
- Publication number
- CN106681906A CN106681906A CN201611032435.XA CN201611032435A CN106681906A CN 106681906 A CN106681906 A CN 106681906A CN 201611032435 A CN201611032435 A CN 201611032435A CN 106681906 A CN106681906 A CN 106681906A
- Authority
- CN
- China
- Prior art keywords
- fingerprint
- module
- interrupt signal
- daily record
- record data
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
Abstract
The embodiment of the invention provides a method and device for detecting abnormal operation of a fingerprint module and a terminal device, and relates to the technical field of terminals. The method is applied to the terminals and comprises the steps that in a log file, log data of fingerprint pressing interrupt signals is extracted, wherein the fingerprint pressing interrupt signals are generated when the fingerprint module identifies fingerprint pressing operation and reported to a hardware abstract layer HAL; according to the extracted log data, whether the fingerprint module is abnormal or not is determined. By means of the method and device and the terminal device, whether the abnormal operation of the fingerprint module on the terminal appears or not can be quickly detected.
Description
Technical field
The present embodiments relate to field of terminal technology, more particularly to a kind of detection method of fingerprint module operation irregularity,
Device and terminal device.
Background technology
With the development of mobile communication technology, mobile terminal also regenerate by continuous updating.Fingerprint identification function is in mobile terminal
In be widely used.User can carry out fingerprint pressing operation in the specified button operating space of terminal.Terminal is in identification
To after fingerprint pressing operation, fingerprint recognition result is converted to into operational order, to complete the assigned operation for terminal.
The modern life, people use electronic product, particularly hand-held mobile terminal such as mobile phone, pad etc. more and more frequent.This
Generally fingerprint identification function is all integrated with a little electronic products.People can by fingerprint identification function carry out terminal unlocking, with
And password setting etc. is carried out on various APP by fingerprint.
Inventor has found that prior art has following defect during the present invention is realized:When user it is enterprising in terminal
When row fingerprint identification function occurs abnormal, fast and effectively method does not go that abnormal cause is detected and determined.
The content of the invention
The embodiment of the present invention provides a kind of detection method of fingerprint module operation irregularity, device and terminal device, can be fast
Fingerprint module whether operation irregularity in fast detection terminal.
To reach above-mentioned purpose, on the one hand, embodiments provide a kind of detection side of fingerprint module operation irregularity
Method, methods described is applied to terminal, including:In journal file, the daily record data of the pressing interrupt signal that takes the fingerprint;The finger
Line pressing interrupt signal is to produce when the fingerprint module recognizes fingerprint pressing operation, and reports to hardware abstraction layer HAL;According to
The daily record data for extracting determines whether the fingerprint module exception occurs.
On the other hand, the embodiment of the present invention provides a kind of detection means of fingerprint module operation irregularity, the detection means
Terminal is applied to, including:Extraction module, for the daily record data of the pressing interrupt signal that in journal file, takes the fingerprint;It is described
Fingerprint pressing interrupt signal is to produce when the fingerprint module recognizes fingerprint pressing operation, and reports to hardware abstraction layer HAL;Inspection
Module is surveyed, for determining whether the fingerprint module exception occurs according to the daily record data for extracting.
On the other hand, the embodiment of the present invention provides a kind of terminal device, including:Fingerprint module and fingerprint mould as above
The detection means of block operation irregularity;Wherein, the fingerprint module is used to recognize fingerprint pressing operation that letter to be interrupted in generation fingerprint pressing
Number, and fingerprint pressing interrupt signal is reported to into hardware abstraction layer HAL;The terminal device is formed in real time with regard to described hard
The daily record data of operation in part level of abstraction HAL, and be stored in journal file.
On the other hand, the embodiment of the present invention provides a kind of terminal device, including memory, one or more processors and
One or more programs, wherein, one or more of programs perform following when by one or more of computing devices
Operation:In journal file, the daily record data of the pressing interrupt signal that takes the fingerprint;The fingerprint pressing interrupt signal is the finger
Produce during line module identification fingerprint pressing operation, and report to hardware abstraction layer HAL;Determined according to the daily record data for extracting
Whether the fingerprint module there is exception.
On the other hand, the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage medium
Be stored with computer executable instructions in matter, and the computer executable instructions cause fingerprint module operation irregularity in response to performing
Detection means perform operation, the operation includes:In journal file, the daily record data of the pressing interrupt signal that takes the fingerprint;
The fingerprint pressing interrupt signal is to produce when the fingerprint module recognizes fingerprint pressing operation, and reports to hardware abstraction layer
HAL;The daily record data according to extracting determines whether the fingerprint module exception occurs.
Refer in the detection method of the fingerprint module operation irregularity of the embodiment of the present invention, device and terminal device, detection terminal
Fingerprint is reported to press the behavior of interrupt signal to hardware abstraction layer HAL during line module identification fingerprint pressing operation, in terminal
The daily record data that behavior correspondence is produced is extracted in journal file;Then by the daily record data for extracting, judge that fingerprint module is
It is no really to recognize fingerprint pressing operation, and then judge whether fingerprint module exception occurs.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
Fig. 1 is one method flow diagram of detection method of fingerprint module operation irregularity provided in an embodiment of the present invention;
Fig. 2 is another method flow diagram of the detection method of fingerprint module operation irregularity provided in an embodiment of the present invention;
Fig. 3 is another method flow diagram of the detection method of fingerprint module operation irregularity provided in an embodiment of the present invention;
Fig. 4 is one structural representation of detection means of fingerprint module operation irregularity provided in an embodiment of the present invention;
Fig. 5 is the structural representation of detection module provided in an embodiment of the present invention;
Fig. 6 is another structural representation of the detection means of fingerprint module operation irregularity provided in an embodiment of the present invention;
Fig. 7 is another structural representation of the detection means of fingerprint module operation irregularity provided in an embodiment of the present invention;
Fig. 8 is the structural representation of extraction module provided in an embodiment of the present invention;
Fig. 9 is the structural representation of terminal device one embodiment provided in an embodiment of the present invention;
Figure 10 is the computer program one of the detection for fingerprint module operation irregularity provided in an embodiment of the present invention
The structural representation of individual embodiment.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Embodiment one
Fig. 1 is one method flow diagram of detection method of fingerprint module operation irregularity provided in an embodiment of the present invention, the party
The executive agent of method can be the such as mobile phone with fingerprint identification function, PC terminal device, or be integrated in these ends
Device in end or equipment.As shown in figure 1, the detection method of the fingerprint module operation irregularity includes that step is as follows:
S110, in journal file, the daily record data of the pressing interrupt signal that takes the fingerprint.Fingerprint pressing interrupt signal is finger
Produce during line module identification fingerprint pressing operation, and report to hardware abstraction layer HAL.
In the existing terminal with fingerprint recognition, the fingerprint module positioned at terminal hardware bottom is in identification fingerprint pressing operation
Afterwards, the fingerprint pressing interrupt signal for generally producing identification is conveyed directly in corresponding bsp driver or drive circuit,
Do not report to the system layer of terminal system.When fingerprint module occurs exception cannot carry out fingerprint recognition, can cause not refer to
Line pressing interrupt signal goes execution to complete subsequent operation to follow-up driving equipment.Because there is the core in system in aforesaid operations
Lamella, system level cannot be perceived, therefore, when carrying out completing such as terminal unlocking, APP password confirmings in terminal by fingerprint recognition
Deng operation failure when, system level can not know, it is abnormal to be that fingerprint module occurs, or its subsequent drive for causing is in operation
When occur it is abnormal.
The present embodiment on the basis of existing technology, by terminal system between chip bottom and the centre of system layer
Layer such as hardware abstraction layer (Hardware Abstraction Layer, HAL) is pressed to perceive and transmit fingerprint module identification fingerprint
The behavior of press operation.
For example, the function of reporting fingerprint to press interrupt signal to hardware abstraction layer HAL can be increased in existing fingerprint module
Unit, the functional unit by netlink interfaces be located at HAL layers fingerprint pressing interrupt signal reading thread be connected, with
During fingerprint module identification fingerprint pressing operation, to it produced fingerprint pressing interrupt signal is reported.Meanwhile, increase in HAL layers
One reading thread for being used to read fingerprint pressing operation is set, and the reading thread can periodically read fingerprint module identification fingerprint and press
The fingerprint pressing interrupt signal of HAL layers is reported to during press operation.The fingerprint pressing that reading fingerprint module is reported is received thread is read
During interrupt signal, system layer will read the behavior of thread in normal recordings HAL layer, and produce corresponding daily record data storage
In journal file in terminal.By the way that in journal file, fingerprint module identification fingerprint pressing in search and extraction terminal is grasped
As when report fingerprint pressing interrupt signal to hardware abstraction layer HAL produced by daily record data, it is possible to learn fingerprint module produce
The behavior of raw interrupt signal.
S120, determines whether fingerprint module exception occurs according to the daily record data for extracting.
Specifically, according in journal file, if report finger during fingerprint module identification fingerprint pressing operation comprising in terminal
Daily record data produced by line pressing interrupt signal to hardware abstraction layer HAL, can learn whether fingerprint module successfully recognizes
The fingerprint pressing operation carried out in terminal, and the correct interrupt signal for producing therefrom, and then judge that fingerprint module is
It is no exception occur.
For example, if pressing the data of interrupt signal in daily record data comprising fingerprint, characterizing fingerprint module can normally recognize
Fingerprint pressing operation in terminal, thereby determines that exception does not occur in fingerprint module;
If pressing the data of interrupt signal in daily record data not comprising fingerprint, characterizing fingerprint module can not normally recognize end
Fingerprint pressing operation on end, thereby determines that fingerprint module occurs abnormal.
Further, if pressing the data of interrupt signal in the daily record data for extracting comprising fingerprint, and fingerprint module is recognized
The terminal operation exception caused after fingerprint pressing operation, it is determined that perform the unit exception of terminal operation.
For example, when the detection of unlocked by fingerprint operation is carried out to terminal, if extracted in the journal file from terminal
Fingerprint module recognizes fingerprint pressing operation and reports the daily record number produced by fingerprint pressing interrupt signal to hardware abstraction layer HAL
According to, and terminal is not unlocked successfully, then show that the modular unit for performing terminal unlocking function occurs abnormal, it is impossible to normal work
Make.
The detection method of the fingerprint module operation irregularity of the embodiment of the present invention, is referred to by fingerprint module identification in detection terminal
Report fingerprint to press the behavior of interrupt signal to hardware abstraction layer HAL during line pressing operation, carry in the journal file in terminal
Take the daily record data that behavior correspondence is produced;Then by the daily record data for extracting, judge whether fingerprint module really recognizes
Fingerprint pressing operation, and then judge whether fingerprint module exception occurs.
Embodiment two
Fig. 2 is another method flow diagram of the detection method of fingerprint module operation irregularity provided in an embodiment of the present invention, should
Method can be considered the specific implementation of embodiment of the method shown in Fig. 1.As shown in Fig. 2 the inspection of above-mentioned fingerprint module operation irregularity
Survey method also includes that step is as follows on the basis of embodiment of the method shown in Fig. 1:
S210, monitors the fingerprint pressing interrupt signal that fingerprint module reports to hardware abstraction layer HAL.
Specifically, can be provided for monitor in custom system layer and read in HAL layers the reading that fingerprint presses interrupt signal
The monitoring function unit of thread, the interrupt signal can be reported to the monitoring work(after reading thread receives fingerprint pressing interrupt signal
Energy unit carries out subsequent treatment.
S220, if monitoring, fingerprint presses interrupt signal, it is determined that exception does not occur in fingerprint module.
If monitoring function unit receives fingerprint pressing interrupt signal, characterizing fingerprint module can be normally carried out fingerprint knowledge
Not and interrupt signal is not produced, then system layer is perceived and determines that exception does not occur in fingerprint module.
In practical application scene, if terminal system layer do not monitor fingerprint press interrupt signal, execution step S110,
In journal file, the process step of the daily record data of the pressing interrupt signal that takes the fingerprint..
Specifically, if monitoring function unit does not receive fingerprint pressing interrupt signal, characterizing fingerprint module may go out
It is now abnormal, it is impossible to carry out fingerprint recognition, and then interrupt signal can not be produced;Or, it is to read thread exception occur, it is impossible to normal
Fingerprint is reported to press interrupt signal to system layer.Based on both uncertain factors, whether it is fingerprint mould that system layer cannot be perceived
Block occurs abnormal.Now, can by continuing executing with embodiment of the method shown in Fig. 1 the step of content, finally to detect fingerprint module
Whether operation irregularity is occurred.
The detection method of the fingerprint module operation irregularity of the embodiment of the present invention, perform embodiment illustrated in fig. 1 method it
Before, the fingerprint that hardware abstraction layer HAL is reported to during by monitoring fingerprint module and recognize fingerprint pressing operation presses interrupt signal;So
Determined whether afterwards to be necessary the content of embodiment of the method shown in execution Fig. 1 according to monitoring result.If in monitoring fingerprint pressing
Break signal, then prove that fingerprint module is working properly, without the need for the work behavior for again fingerprint module being judged by extraction daily record data,
The fingerprint module whether process step of operation irregularity is judged so as to save by extracting daily record data, method stream is simplified
Journey.
Embodiment three
Fig. 3 is another method flow diagram of the detection method of fingerprint module operation irregularity provided in an embodiment of the present invention, should
Method can be considered Fig. 1 or Fig. 1 combined with embodiment of the method shown in Fig. 2 after another specific implementation.As shown in figure 3, on
State the detection method of fingerprint module operation irregularity includes that step is as follows on the basis of embodiment of the method shown in Fig. 1:
S310, in journal file, the module that takes the fingerprint reports to the daily record of all interrupt signals of hardware abstraction layer HAL
Data.
In the journal file of tag memory storage, the simple behavior identification information of mark terminal behavior is generally contains only, this
The behavior identification information of reporting interruption signal when also including that fingerprint module recognizes fingerprint pressing operation in a little identification informations.This enforcement
Example when pressing interrupt signal is taken the fingerprint from journal file, be first by detection process, fingerprint module report it is all in
The corresponding daily record data for producing of break signal is extracted, and is then subsequently being recognized.
S320, calculating identification is carried out by the daily record data of all interrupt signals by prefabricated algorithm, obtains each interrupt signal pair
The event content answered.
After the daily record data for extracting all interrupt signals that fingerprint module is reported, to wherein characterizing interrupt signal type
Mark, calculating identification is carried out by prefabricated algorithm, so that it is determined that the corresponding thing of the specific category of each interrupt signal, i.e. interrupt signal
Part content.For example, the interrupt signal for producing for fingerprint recognition may be defined as IMAQ interrupt signal, and further according to hand
Two processes are pressed and lifted to finger, and the interrupt signal and fingerprint that corresponding interrupt signal presses generation including fingerprint again is lifted and produced
Raw interrupt signal.
It is prior art that event content is calculated the corresponding daily record data of terminal signaling and reduced by prefabricated algorithm,
The present embodiment does not elaborate.
S330, recognizes that the corresponding interrupt signal of event content of fingerprint pressing operation is defined as fingerprint pressing by fingerprint module
Interrupt signal.
The daily record data of all interrupt signals extracted is being carried out into calculating identification by prefabricated algorithm, each interrupt signal is being obtained
After corresponding event content, event content is pressed into the interrupt signal of generation for fingerprint, and fingerprint lifts produced interruption
Signal is defined as above-mentioned fingerprint pressing interrupt signal.
Step S310~330 can be considered the refinement step of above-mentioned steps S110.
S340, determines whether fingerprint module exception occurs according to the daily record data for extracting.Step S340 and abovementioned steps
The content of S120 is similar.
In addition, when judging whether fingerprint module occurs abnormal, it may appear that although there is the day that fingerprint presses interrupt signal
Will data, but the fingerprint pressing operation behavior of daily record data reflection do not correspond with actual pressing operation behavior.For example, tester
The order that fingerprint is pressed and fingerprint is lifted is pressed with the fingerprint that daily record data reflects, the operation behavior that fingerprint is lifted is inconsistent.This
It is also the situation for being judged to fingerprint module operation irregularity in the case of kind.
Therefore, after step S340, particularly can also continue to perform following steps to enter one after abovementioned steps S230
Step judges fingerprint module whether operation irregularity.
Whether S350, output fingerprint module there is abnormal testing result.
The whether abnormal result mark of preliminary judgement fingerprint module can be included in the monitoring result, at the same also it is exportable with
The related information data of detection process or result.
For example, whether occur the concrete mode of abnormal testing result as output fingerprint module, can be in output result mark
While knowledge, print and/or show that fingerprint presses the daily record data of interrupt signal.
Specifically, the system layer in terminal can arrange show fingerprint module whether occur abnormal testing result output it is soft
Part interface, and represented by the display function of terminal.Meanwhile, no matter whether preliminary judgement fingerprint module exception occurs,
Can be from the journal file of terminal output, the daily record data corresponding to fingerprint pressing interrupt signal that fingerprint module is reported is carried out
Print and/or show, so that tester carries out subsequent analysis process, further to judge it is different whether fingerprint module really occurs
Often.
The detection method of fingerprint module operation irregularity provided in an embodiment of the present invention, in the base of above-mentioned shown embodiment of the method
On plinth, the extraction step that the daily record data of fingerprint pressing interrupt signal is reported to fingerprint module is refined.Meanwhile, preliminary
Obtain whether fingerprint module occurs after abnormal result, corresponding daily record data being printed and/or being shown, for tester
Further judge whether fingerprint module really occurs abnormal, improve the accuracy of testing result.
Example IV
Fig. 4 is one structural representation of detection means of fingerprint module operation irregularity provided in an embodiment of the present invention, can be with
For performing method and step as shown in Figure 1.As shown in figure 4, the detection means of the fingerprint module operation irregularity includes:Extract mould
Block 410 and detection module 420, wherein:
Extraction module 410, for the daily record data of the pressing interrupt signal that in journal file, takes the fingerprint;Fingerprint is pressed
Interrupt signal is to produce when fingerprint module recognizes fingerprint pressing operation, and reports to hardware abstraction layer HAL;Detection module 420, uses
According to extract daily record data determine whether fingerprint module exception occurs.
Further, as shown in figure 5, above-mentioned detection module 420 may particularly include:First detector unit 421 and the second inspection
Unit 422 is surveyed, wherein:
First detector unit 421, if for the data that interrupt signal is pressed comprising fingerprint in daily record data, it is determined that fingerprint
There is not exception in module;Second detector unit 422, if for the data that interrupt signal is pressed not comprising fingerprint in daily record data,
Then determine that fingerprint module occurs abnormal.
Further, as shown in figure 5, also including in above-mentioned detection module 420:3rd detector unit 423, if for extracting
Daily record data in comprising fingerprint press interrupt signal data, and fingerprint module identification fingerprint pressing operation after cause terminal
Operation exception, it is determined that perform the unit exception of terminal operation.
The detection means of fingerprint module operation irregularity provided in an embodiment of the present invention, is known by fingerprint module in detection terminal
Fingerprint is reported to press the behavior of interrupt signal to hardware abstraction layer HAL, the journal file in terminal during other fingerprint pressing operation
It is middle to extract the daily record data that behavior correspondence is produced;Then by the daily record data for extracting, judge whether fingerprint module is really known
Fingerprint pressing operation is clipped to, and then judges whether fingerprint module exception occurs.
Embodiment five
Fig. 6 is another structural representation of the detection means of fingerprint module operation irregularity provided in an embodiment of the present invention, can
It is considered as the refinement structure of Fig. 4 shown device embodiments, can be used to perform method and step as shown in Figure 2, as shown in fig. 6, in Fig. 4
Also include on the basis of shown structure:Monitoring modular 430, wherein:
Monitoring modular 430, for monitoring the fingerprint pressing interrupt signal that fingerprint module reports to hardware abstraction layer HAL.
Above-mentioned detection module 420 is additionally operable to, if monitoring modular 430 monitors that fingerprint presses interrupt signal, it is determined that fingerprint
There is not exception in module;If not monitoring, fingerprint presses interrupt signal, and triggering extraction module 410 is performed in journal file,
The process step of the daily record data of the pressing interrupt signal that takes the fingerprint.
The detection means of fingerprint module operation irregularity provided in an embodiment of the present invention, in the base of embodiment illustrated in fig. 4 structure
On plinth, the fingerprint that hardware abstraction layer HAL is reported to by monitoring fingerprint module presses interrupt signal;Then it is true according to monitoring result
The fixed content for whether being necessary to perform embodiment of the method shown in Fig. 1.If monitoring that the fingerprint pressing that fingerprint module is reported is interrupted
Signal, then prove that fingerprint module is working properly, without the need for by extracting daily record data judging the work behavior of fingerprint module again, from
And save by extracting daily record data to judge the fingerprint module whether process step of operation irregularity, simplify method flow.
Embodiment six
Fig. 7 is another structural representation of the detection means of fingerprint module operation irregularity provided in an embodiment of the present invention, can
It is considered as the refinement structure of the shown device embodiment after Fig. 4 or Fig. 4 is combined with Fig. 5, can be used to perform method step as shown in Figure 3
Suddenly, as shown in fig. 7, also including on the basis of the structure of the detection means of above-mentioned shown fingerprint module operation irregularity:Output mould
Block 440, for exporting whether fingerprint module abnormal testing result occurs.
Further, output module 440 is specifically for printing and/or showing that fingerprint presses the daily record data of interrupt signal.
Further, as shown in figure 8, said extracted module 410 is specifically included:
Extraction unit 411, for the module that in journal file, takes the fingerprint report to hardware abstraction layer HAL it is all in
The daily record data of break signal;Recognition unit 412, for the daily record data of all interrupt signals to be carried out into calculating knowledge by prefabricated algorithm
Not, the corresponding event content of each interrupt signal is obtained;Determining unit 413, for fingerprint module to be recognized into fingerprint pressing operation
The corresponding interrupt signal of event content is defined as fingerprint pressing interrupt signal.
The detection means of fingerprint module operation irregularity provided in an embodiment of the present invention, in the base of above-mentioned shown device embodiment
On plinth, extraction module is refined.Meanwhile, tentatively obtaining after whether fingerprint module abnormal result occur, by defeated
Go out module corresponding daily record data is printed and/or shown, so that tester further judges whether fingerprint module is genuine
There is exception, improve the accuracy of testing result.
Further, the embodiment of the present invention additionally provides a kind of terminal device, including:Fingerprint module and an institute is performed as described above
The detection means of the fingerprint module operation irregularity stated;Wherein, fingerprint module is used to recognize fingerprint pressing operation, generation fingerprint pressing
Interrupt signal, and fingerprint pressing interrupt signal is reported to into hardware abstraction layer HAL;Terminal device is formed with regard to hardware abstraction in real time
The daily record data of operation in layer HAL, and be stored in journal file.
Terminal device provided in an embodiment of the present invention, being capable of fingerprint module whether operation irregularity in quick detection terminal.
Embodiment seven
The structural representation of terminal device one embodiment that Fig. 9 is provided for the present invention.As shown in figure 9, the present invention is implemented
The terminal device of example includes:Memory 91, one or more processors 92 and one or more programs 93.
Wherein, one or more of programs 93 perform operations described below when being performed by one or more processors 92:
S110, in journal file, the daily record data of the pressing interrupt signal that takes the fingerprint.
S120, determines whether fingerprint module exception occurs according to the daily record data for extracting.
The terminal device of the embodiment of the present invention, when recognizing fingerprint pressing operation by fingerprint module in detection terminal finger is reported
Line presses the behavior of interrupt signal to hardware abstraction layer HAL, extracts what behavior correspondence was produced in the journal file in terminal
Daily record data;Then by the daily record data for extracting, judge that whether fingerprint module really recognizes fingerprint pressing operation, and then sentence
Whether disconnected fingerprint module there is exception.
Embodiment eight
Figure 10 is one enforcement of computer program of the detection provided by the present invention for fingerprint module operation irregularity
The structural representation of example.As shown in Figure 10, the computer journey of the detection for fingerprint module operation irregularity of the embodiment of the present invention
Sequence product 101, can include signal bearing medium 102.Signal bearing medium 102 can include one or more instructions 103,
When by such as computing device, processor can provide the function above in relation to Fig. 1-9 descriptions for the instruction 103.For example, instruct
103 can include:For one or more instructions of the daily record data of the pressing interrupt signal that in journal file, takes the fingerprint;
For determining whether fingerprint module one or more abnormal instructions occurs according to the daily record data for extracting.Thus, for example, reference
Fig. 4, the detection means of fingerprint module operation irregularity can in response to instruction 103 to carry out shown in Fig. 1 the step of in one
Or more.
In some implementations, signal bearing medium 102 can include computer-readable medium 104, such as, but not limited to firmly
Disk drive, compact disk (CD), digital universal disc (DVD), number tape, memory etc..In some implementations, signal bearing medium
102 can include recordable media 105, such as, but not limited to memory, read/write (R/W) CD, R/W DVD etc..In some realizations
In, (for example, signal bearing medium 102 can include communication media 106, such as, but not limited to numeral and/or analogue communication medium
Optical fiber cable, waveguide, wired communications links, wireless communication link etc.).Thus, for example, computer program 101 can lead to
One or more modules that RF signal bearing mediums 102 send the identifying device for referring to slip gesture more to are crossed, wherein, signaling bearer
Medium 102 is transmitted by wireless communication medium (for example, meeting the wireless communication medium of the standards of IEEE 802.11).
The computer program of the embodiment of the present invention, in journal file, the daily record of the pressing interrupt signal that takes the fingerprint
Data;Daily record data according to extracting determines whether fingerprint module exception occurs.The computer program of the embodiment of the present invention,
By detecting to fingerprint module, it is ensured that user can trigger fingerprint recognition and operate accordingly.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realize by the mode of software plus required general hardware platform, naturally it is also possible to by hardware.Based on such understanding, on
Stating the part that technical scheme substantially contributes in other words to prior art can be embodied in the form of software product, should
Computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Order is used so that a computer equipment (can be personal computer, server, or network equipment etc.) performs each enforcement
Method described in some parts of example or embodiment.
Finally it should be noted that:Various embodiments above only to illustrate technical scheme, rather than a limitation;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, either which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, do not make the essence disengaging various embodiments of the present invention technology of appropriate technical solution
The scope of scheme.
Claims (17)
1. a kind of detection method of fingerprint module operation irregularity, methods described is applied to terminal, it is characterised in that include:
In journal file, the daily record data of the pressing interrupt signal that takes the fingerprint;The fingerprint pressing interrupt signal is the finger
The signal of hardware abstraction layer HAL is produced and reported to during line module identification fingerprint pressing operation;
The daily record data according to extracting determines whether the fingerprint module exception occurs.
2. letter is interrupted in method according to claim 1, it is characterised in that described in journal file, the pressing that takes the fingerprint
Number daily record data, including:
In the journal file, the extraction fingerprint module reports to all interrupt signals of the hardware abstraction layer HAL
Daily record data;
The daily record data of all interrupt signals is carried out into calculating identification by prefabricated algorithm, each interrupt signal correspondence is obtained
Event content;
The corresponding interrupt signal of the event content that the fingerprint module recognizes fingerprint pressing operation is defined as into the fingerprint
Pressing interrupt signal.
3. method according to claim 1, it is characterised in that described that the finger is determined according to the daily record data for extracting
Whether line module there is exception, including:
If the data of interrupt signal are pressed in the daily record data comprising the fingerprint, it is determined that the fingerprint module does not occur different
Often;
If the data of interrupt signal are pressed in the daily record data not comprising the fingerprint, it is determined that the fingerprint module occurs different
Often.
4. method according to claim 3, it is characterised in that methods described also includes:
If the data of interrupt signal are pressed in the daily record data of the extraction comprising the fingerprint, and the fingerprint module is known
The terminal operation exception caused after other fingerprint pressing operation, it is determined that perform the unit exception of the terminal operation.
5. method according to claim 1, it is characterised in that methods described also includes:
Monitor the fingerprint pressing interrupt signal that the fingerprint module reports to hardware abstraction layer HAL;
If monitoring the fingerprint pressing interrupt signal, it is determined that exception does not occur in the fingerprint module.
6. method according to claim 5, it is characterised in that methods described also includes:
If not monitoring the fingerprint pressing interrupt signal, in the journal file, take the fingerprint pressing interrupt signal
Daily record data.
7. the method according to any one of claim 1-6, it is characterised in that methods described also includes:
Export whether the fingerprint module abnormal testing result occurs.
8. method according to claim 7, it is characterised in that whether the output fingerprint module abnormal inspection occurs
Result is surveyed, including:
Print and/or show that the fingerprint presses the daily record data of interrupt signal.
9. a kind of detection means of fingerprint module operation irregularity, the detection means is applied to terminal, it is characterised in that include:
Extraction module, for the daily record data of the pressing interrupt signal that in journal file, takes the fingerprint;The fingerprint pressing is interrupted
Signal is to produce when the fingerprint module recognizes fingerprint pressing operation, and reports to hardware abstraction layer HAL;
Detection module, for determining whether the fingerprint module exception occurs according to the daily record data for extracting.
10. device according to claim 9, it is characterised in that the extraction module includes:
Extraction unit, in the journal file, extracting the institute that the fingerprint module reports to the hardware abstraction layer HAL
There is the daily record data of interrupt signal;
Recognition unit, for the daily record data of all interrupt signals to be carried out into calculating identification by prefabricated algorithm, obtains each institute
State the corresponding event content of interrupt signal;
Determining unit, the corresponding interrupt signal of the event content for the fingerprint module to be recognized fingerprint pressing operation is true
It is set to the fingerprint pressing interrupt signal.
11. devices according to claim 9, it is characterised in that the detection module includes:
First detector unit, if for the data that interrupt signal is pressed comprising the fingerprint in the daily record data, it is determined that institute
State fingerprint module and exception do not occur;
Second detector unit, if for the data that interrupt signal is pressed not comprising the fingerprint in the daily record data, it is determined that
The fingerprint module occurs abnormal.
12. devices according to claim 11, it is characterised in that the detection module also includes:
3rd detector unit, if for the number that interrupt signal is pressed comprising the fingerprint in the daily record data of the extraction
According to, and the terminal operation exception caused after fingerprint module identification fingerprint pressing operation, it is determined that perform the terminal operation
Unit exception.
13. devices according to claim 9, it is characterised in that described device also includes:
Monitoring modular, for monitoring the fingerprint pressing interrupt signal that the fingerprint module reports to hardware abstraction layer HAL;
The detection module is additionally operable to, if the monitoring module monitors press interrupt signal to the fingerprint, it is determined that the finger
There is not exception in line module.
14. devices according to claim 13, it is characterised in that the monitoring modular is additionally operable to, if not monitoring described
Fingerprint presses interrupt signal, then trigger described in the extraction module execution in journal file, and take the fingerprint pressing interrupt signal
Daily record data process step.
15. devices according to any one of claim 9-14, it is characterised in that described device also includes:
Output module, for exporting whether the fingerprint module abnormal testing result occurs.
16. devices according to claim 15, it is characterised in that the output module is specifically for printing and/or showing
The fingerprint presses the daily record data of interrupt signal.
17. a kind of terminal devices, it is characterised in that include:Fingerprint module and the finger as any one of claim 9-16
The detection means of line module operation irregularity;Wherein,
The fingerprint module is used to recognize fingerprint pressing operation that generation fingerprint to press interrupt signal, and during the fingerprint is pressed
Break signal reports to hardware abstraction layer HAL;The terminal device forms in real time the day with regard to operating in the hardware abstraction layer HAL
Will data, and be stored in journal file.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2016104749526 | 2016-06-24 | ||
CN201610474952 | 2016-06-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106681906A true CN106681906A (en) | 2017-05-17 |
Family
ID=58867216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611032435.XA Pending CN106681906A (en) | 2016-06-24 | 2016-11-16 | Method and device for detecting abnormal operation of fingerprint module and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106681906A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107466369A (en) * | 2017-06-15 | 2017-12-12 | 深圳市汇顶科技股份有限公司 | Fingerprint chip detecting method, apparatus and system |
CN110390230A (en) * | 2018-04-20 | 2019-10-29 | 比亚迪股份有限公司 | Fingerprint identification module abnormality determination method, device, storage medium and electronic equipment |
CN113254292A (en) * | 2021-05-20 | 2021-08-13 | 广州绿怡信息科技有限公司 | Distance sensing function detection method and device |
CN113254293A (en) * | 2021-05-28 | 2021-08-13 | 广州绿怡信息科技有限公司 | Fingerprint function detection method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104751105A (en) * | 2013-12-29 | 2015-07-01 | 中国移动通信集团公司 | Fingerprint data verification method, fingerprint data verification device, related equipment and system |
EP3010238A2 (en) * | 2014-10-16 | 2016-04-20 | Samsung Electronics Co., Ltd. | Method of providing information and electronic device implementing the same |
-
2016
- 2016-11-16 CN CN201611032435.XA patent/CN106681906A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104751105A (en) * | 2013-12-29 | 2015-07-01 | 中国移动通信集团公司 | Fingerprint data verification method, fingerprint data verification device, related equipment and system |
EP3010238A2 (en) * | 2014-10-16 | 2016-04-20 | Samsung Electronics Co., Ltd. | Method of providing information and electronic device implementing the same |
Non-Patent Citations (1)
Title |
---|
罗锦文: "一种文件安全存储系统的研究与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107466369A (en) * | 2017-06-15 | 2017-12-12 | 深圳市汇顶科技股份有限公司 | Fingerprint chip detecting method, apparatus and system |
CN110390230A (en) * | 2018-04-20 | 2019-10-29 | 比亚迪股份有限公司 | Fingerprint identification module abnormality determination method, device, storage medium and electronic equipment |
CN110390230B (en) * | 2018-04-20 | 2022-03-18 | 比亚迪半导体股份有限公司 | Fingerprint identification module abnormity determination method and device, storage medium and electronic equipment |
CN113254292A (en) * | 2021-05-20 | 2021-08-13 | 广州绿怡信息科技有限公司 | Distance sensing function detection method and device |
CN113254293A (en) * | 2021-05-28 | 2021-08-13 | 广州绿怡信息科技有限公司 | Fingerprint function detection method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106681906A (en) | Method and device for detecting abnormal operation of fingerprint module and terminal device | |
CN110210512B (en) | Automatic log anomaly detection method and system | |
CN104317709B (en) | software performance testing method and system | |
CN107577545B (en) | Method and device for detecting and repairing fault disk | |
CN104424094A (en) | Method and device for obtaining abnormal information and intelligent terminal device | |
CN101840233B (en) | Equipment failure detection device and method | |
CN109660533B (en) | Method and device for identifying abnormal flow in real time, computer equipment and storage medium | |
CN110221979A (en) | Performance test methods, device, equipment and the storage medium of application program | |
CN111898661A (en) | Method and device for monitoring working state of turnout switch machine | |
CN111368824A (en) | Instrument identification method, mobile device and storage medium | |
CN104123212A (en) | System test method of USB chip | |
CN107861980A (en) | A kind of vehicle identification method and its terminal | |
CN112132220A (en) | Self-training method, system, device, electronic equipment and storage medium | |
US11669206B2 (en) | System and method for detecting imperfections in a screen | |
CN104424096B (en) | A kind of automatization test system and method to the equipment based on Android platform | |
CN115437901A (en) | Computer user identification management system and method based on big data | |
CN116128823A (en) | Gold spot detection method and device for IC carrier plate and electronic equipment | |
CN111309584A (en) | Data processing method and device, electronic equipment and storage medium | |
CN107111762A (en) | Fingerprint identification method and device | |
CN109145609A (en) | A kind of data processing method and device | |
WO2018198315A1 (en) | Computer system, equipment abnormal sound determination method and program | |
US6535146B1 (en) | Method of detecting short-circuits of keyboard Matrix | |
CN114741690A (en) | Network security monitoring method, device, equipment and computer storage medium | |
CN112860527A (en) | Fault monitoring method and device of application server | |
CN107515821A (en) | Components testing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170517 |