[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

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 PDF

Info

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
log data
abnormal
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
Application number
CN201611032435.XA
Other languages
Chinese (zh)
Inventor
孙孝文
黄长江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Publication of CN106681906A publication Critical patent/CN106681906A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Collating Specific Patterns (AREA)

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

Fingerprint module work abnormity detection method and device and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a method and a device for detecting working abnormity of a fingerprint module and terminal equipment.
Background
With the development of mobile communication technology, mobile terminals are continuously updated. Fingerprint recognition functions have been widely used in mobile terminals. The user can perform fingerprint pressing operation in the appointed key operation area of the terminal. After the terminal identifies the fingerprint pressing operation, the fingerprint identification result is converted into an operation instruction so as to finish the specified operation aiming at the terminal.
In modern life, people use electronic products, especially hand-held mobile terminals such as mobile phones and pads, more and more frequently. These electronic products are usually integrated with fingerprint recognition function. People can carry out terminal unblock through the fingerprint identification function and carry out password setting etc. on various APPs through the fingerprint.
In the process of implementing the invention, the inventor finds that the prior art has the following defects: when the user has an abnormal fingerprint identification function on the terminal, a quick and effective method for detecting and determining the reason of the abnormality is not available.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting working abnormity of a fingerprint module and terminal equipment, which can quickly detect whether the fingerprint module on a terminal works abnormally.
In order to achieve the above object, in one aspect, an embodiment of the present invention provides a method for detecting a working abnormality of a fingerprint module, where the method is applied to a terminal, and includes: extracting log data of the fingerprint pressing interrupt signal from a log file; the fingerprint pressing interrupt signal is generated when the fingerprint module identifies a fingerprint pressing operation and is reported to a hardware abstraction layer HAL; and determining whether the fingerprint module is abnormal or not according to the extracted log data.
On the other hand, an embodiment of the present invention provides a device for detecting an abnormal operation of a fingerprint module, where the device is applied to a terminal and includes: the extraction module is used for extracting the log data of the fingerprint pressing interrupt signal from the log file; the fingerprint pressing interrupt signal is generated when the fingerprint module identifies a fingerprint pressing operation and is reported to a hardware abstraction layer HAL; and the detection module is used for determining whether the fingerprint module is abnormal or not according to the extracted log data.
In another aspect, an embodiment of the present invention provides a terminal device, including: fingerprint module and fingerprint module abnormal detection device as above-mentioned; the fingerprint module is used for identifying fingerprint pressing operation, generating a fingerprint pressing interrupt signal and reporting the fingerprint pressing interrupt signal to the hardware abstraction layer HAL; the terminal device forms log data about operations in the hardware abstraction layer HAL in real time and stores the log data in a log file.
In another aspect, an embodiment of the present invention provides a terminal device, including a memory, one or more processors, and one or more programs, where the one or more programs, when executed by the one or more processors, perform the following operations: extracting log data of the fingerprint pressing interrupt signal from a log file; the fingerprint pressing interrupt signal is generated when the fingerprint module identifies a fingerprint pressing operation and is reported to a hardware abstraction layer HAL; and determining whether the fingerprint module is abnormal or not according to the extracted log data.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium having computer-executable instructions stored thereon, which, in response to execution of a detection apparatus that causes a fingerprint module to work abnormally, perform operations including: extracting log data of the fingerprint pressing interrupt signal from a log file; the fingerprint pressing interrupt signal is generated when the fingerprint module identifies a fingerprint pressing operation and is reported to a hardware abstraction layer HAL; and determining whether the fingerprint module is abnormal or not according to the extracted log data.
According to the detection method, the detection device and the terminal equipment for the working abnormity of the fingerprint module, disclosed by the embodiment of the invention, when the fingerprint module in the detection terminal identifies the fingerprint pressing operation, a fingerprint pressing interrupt signal is reported to a behavior of a hardware abstraction layer HAL, and log data correspondingly generated by the behavior is extracted from a log file in the terminal; then, whether the fingerprint pressing operation is really identified by the fingerprint module is judged through the extracted log data, and whether the fingerprint module is abnormal is further judged.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Fig. 1 is a flowchart of a method for detecting abnormal operation of a fingerprint module according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for detecting abnormal operation of a fingerprint module according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for detecting abnormal operation of a fingerprint module according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for detecting abnormal operation of a fingerprint module according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a detection module according to an embodiment of the present invention;
fig. 6 is another schematic structural diagram of a device for detecting abnormal operation of a fingerprint module according to an embodiment of the present invention;
FIG. 7 is a schematic view of another exemplary embodiment of a fingerprint module malfunction detection apparatus;
fig. 8 is a schematic structural diagram of an extraction module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an embodiment of a terminal device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an embodiment of a computer program product for detecting a fingerprint module working anomaly according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Fig. 1 is a flowchart of a method for detecting working abnormality of a fingerprint module according to an embodiment of the present invention, where an execution subject of the method may be a terminal device with a fingerprint identification function, such as a mobile phone, a personal computer, or the like, or an apparatus integrated in the terminal or the device. As shown in fig. 1, the method for detecting the abnormal operation of the fingerprint module includes the following steps:
s110, extracting the log data of the fingerprint pressing interrupt signal in the log file. The fingerprint pressing interrupt signal is generated when the fingerprint module identifies the fingerprint pressing operation and is reported to the hardware abstraction layer HAL.
In the existing terminal with fingerprint identification, after a fingerprint module located at the bottom layer of terminal hardware identifies a fingerprint pressing operation, an interrupt signal generated by identification is usually directly transmitted to a corresponding bottom layer driver or a driver circuit, and is not reported to a system layer of a terminal system. When the fingerprint module is abnormal and cannot perform fingerprint identification, no fingerprint is pressed to interrupt signals to subsequent driving equipment to execute and complete subsequent operation. Because above-mentioned operation all takes place at the chip layer of system, the unable perception of system's aspect, consequently, when carrying out at the terminal and accomplish through fingerprint identification operation failures such as terminal unblock, APP password affirmation, the system's aspect can not know, and it is unusual to appear in the fingerprint module, still the follow-up drive that it caused appears when operating.
The embodiment senses and transmits the behavior of the fingerprint module for identifying the fingerprint pressing operation by means of a Hardware Abstraction Layer (HAL) in the terminal system, wherein the Hardware Abstraction Layer is arranged at the bottom Layer of a chip and an intermediate Layer of a system Layer.
For example, a functional unit that reports a fingerprint pressing interrupt signal to the hardware abstraction layer HAL may be added to the existing fingerprint module, and the functional unit is connected to a read thread of the fingerprint pressing interrupt signal located in the HAL layer through a netlink interface, so as to report the generated fingerprint pressing interrupt signal to the fingerprint module when the fingerprint module identifies a fingerprint pressing operation. Meanwhile, a reading thread for reading the fingerprint pressing operation is additionally arranged on the HAL layer, and the reading thread can periodically read the fingerprint pressing interrupt signal reported to the HAL layer when the fingerprint pressing operation is identified by the fingerprint module. And in the process that the reading thread receives the fingerprint pressing interrupt signal reported by the fingerprint reading module, the system layer can normally record the behavior of the reading thread in the HAL layer, and generate corresponding log data to be stored in a log file in the terminal. By searching and extracting the log data generated by reporting the fingerprint pressing interrupt signal to the hardware abstraction layer HAL when the fingerprint module in the terminal identifies the fingerprint pressing operation in the log file, the behavior of the fingerprint module generating the interrupt signal can be known.
And S120, determining whether the fingerprint module is abnormal or not according to the extracted log data.
Specifically, according to whether log data generated by reporting a fingerprint pressing interrupt signal to the hardware abstraction layer HAL when the fingerprint module in the terminal identifies a fingerprint pressing operation is included in the log file, whether the fingerprint module successfully identifies the fingerprint pressing operation performed on the terminal or not and a correct interrupt signal generated by the fingerprint module can be known, and whether the fingerprint module is abnormal or not is further determined.
For example, if the log data contains data of the fingerprint pressing interrupt signal, the fingerprint pressing operation on the terminal can be normally identified by the fingerprint characterization module, so that the fingerprint module is determined to be abnormal;
if the log data does not contain the data of the fingerprint pressing interrupt signal, the fingerprint pressing operation on the terminal cannot be normally identified by the fingerprint module, and therefore the fingerprint module is determined to be abnormal.
Furthermore, if the extracted log data contains data of the fingerprint pressing interrupt signal and the fingerprint module identifies the terminal operation abnormality caused after the fingerprint pressing operation, it is determined that the equipment executing the terminal operation is abnormal.
For example, when a terminal is detected to perform fingerprint unlocking operation, if a fingerprint module is extracted from a log file in the terminal to identify fingerprint pressing operation and report a fingerprint pressing interrupt signal to log data generated by a hardware abstraction layer HAL, but the terminal is not successfully unlocked, it indicates that a module unit executing a terminal unlocking function is abnormal and cannot normally operate.
The method for detecting the working abnormity of the fingerprint module comprises the steps of reporting a fingerprint pressing interrupt signal to a hardware abstraction layer HAL (hardware abstraction layer) by detecting the behavior of the fingerprint module in a terminal when the fingerprint module identifies the fingerprint pressing operation, and extracting log data correspondingly generated by the behavior from a log file in the terminal; then, whether the fingerprint pressing operation is really identified by the fingerprint module is judged through the extracted log data, and whether the fingerprint module is abnormal is further judged.
Example two
Fig. 2 is a flowchart of another method for detecting a working anomaly of a fingerprint module according to an embodiment of the present invention, which can be regarded as a specific implementation manner of the embodiment of the method shown in fig. 1. As shown in fig. 2, the method for detecting abnormal operation of the fingerprint module further includes the following steps based on the embodiment of the method shown in fig. 1:
s210, monitoring a fingerprint pressing interrupt signal reported to the hardware abstraction layer HAL by the fingerprint module.
Specifically, a monitoring function unit for monitoring a read thread that reads a fingerprint pressing interrupt signal in the HAL layer may be disposed in the user system layer, and when the read thread receives the fingerprint pressing interrupt signal, the interrupt signal is reported to the monitoring function unit for subsequent processing.
And S220, if the fingerprint pressing interruption signal is monitored, determining that the fingerprint module is not abnormal.
If the monitoring function unit receives the fingerprint pressing interrupt signal, the characterization fingerprint module can normally perform fingerprint identification and generate the interrupt signal, and the system layer senses and determines that the fingerprint module is not abnormal.
In an actual application scenario, if the terminal system layer does not monitor the fingerprint pressing interrupt signal, step S110 is executed, and a processing step of extracting log data of the fingerprint pressing interrupt signal is performed in a log file. .
Specifically, if the monitoring function unit does not receive the fingerprint pressing interrupt signal, the characterization fingerprint module may be abnormal, and cannot perform fingerprint identification, and thus cannot generate the interrupt signal; or, the fingerprint pressing interrupt signal cannot be normally reported to the system layer when the read thread is abnormal. Based on the two uncertain factors, the system layer cannot sense whether the fingerprint module is abnormal or not. At this time, whether the fingerprint module has abnormal operation can be finally detected by continuing to execute the steps of the embodiment of the method shown in fig. 1.
Before the method of the embodiment shown in fig. 1 is executed, a fingerprint pressing interrupt signal reported to a hardware abstraction layer HAL when a fingerprint pressing operation is identified by a monitoring fingerprint module; it is then determined whether it is necessary to perform the contents of the embodiment of the method shown in fig. 1 based on the monitoring result. If the fingerprint pressing interruption signal is monitored, the fingerprint module is proved to work normally, and the working behavior of the fingerprint module is not required to be judged by extracting log data, so that the processing step of judging whether the fingerprint module works abnormally by extracting the log data is saved, and the flow of the method is simplified.
EXAMPLE III
Fig. 3 is a flowchart of another method for detecting a fingerprint module working anomaly according to an embodiment of the present invention, which can be regarded as another specific implementation manner after the method embodiments shown in fig. 1 or fig. 1 and fig. 2 are combined. As shown in fig. 3, the method for detecting the abnormal operation of the fingerprint module based on the embodiment of the method shown in fig. 1 includes the following steps:
s310, in the log file, extracting the log data of all the interrupt signals reported to the hardware abstraction layer HAL by the fingerprint module.
The log file stored in the terminal only contains simple behavior identification information for marking the terminal behavior, and the identification information also comprises behavior identification information for reporting an interrupt signal when the fingerprint module identifies the fingerprint pressing operation. In this embodiment, when the fingerprint pressing interrupt signal is extracted from the log file, the log data generated corresponding to all the interrupt signals reported by the fingerprint module in the detection process is extracted, and then the subsequent identification is performed.
And S320, calculating and identifying the log data of all the interrupt signals according to a preset algorithm to obtain the event content corresponding to each interrupt signal.
After extracting the log data of all the interrupt signals reported by the fingerprint module, calculating and identifying the identifiers representing the types of the interrupt signals according to a preset algorithm, thereby determining the specific category of each interrupt signal, namely the event content corresponding to the interrupt signal. For example, the interrupt signal generated for fingerprint recognition may be defined as an image capture interrupt signal, and further according to two processes of pressing and lifting the finger, the corresponding interrupt signals include an interrupt signal generated by pressing the fingerprint and an interrupt signal generated by lifting the fingerprint.
The log data corresponding to the terminal signal is calculated by a pre-established algorithm and the event content is restored to the prior art, which is not described in detail in this embodiment.
S330, determining an interrupt signal corresponding to the content of the event of the fingerprint pressing operation identified by the fingerprint module as a fingerprint pressing interrupt signal.
And after the extracted log data of all the interrupt signals are calculated and identified according to a preset algorithm to obtain event contents corresponding to all the interrupt signals, determining the event contents as interrupt signals generated by pressing the fingerprint and interrupt signals generated by lifting the fingerprint as the fingerprint pressing interrupt signals.
The steps S310 to S330 can be regarded as the refinement step of the step S110.
And S340, determining whether the fingerprint module is abnormal or not according to the extracted log data. Step S340 is similar to the foregoing step S120.
In addition, when the fingerprint module is judged to be abnormal, although log data of the fingerprint pressing interrupt signal exists, the fingerprint pressing operation behavior reflected by the log data does not accord with the actual pressing operation behavior. For example, the sequence of fingerprint pressing and fingerprint lifting of the detector is inconsistent with the operation behaviors of fingerprint pressing and fingerprint lifting reflected by log data. In this case, it is also determined that the fingerprint module is malfunctioning.
Therefore, after step S340, especially after step S230, the following steps may be further performed to further determine whether the fingerprint module is abnormal.
And S350, outputting a detection result whether the fingerprint module is abnormal or not.
The monitoring result can include a result identifier for primarily judging whether the fingerprint module is abnormal or not, and can also output information data related to the detection process or the result.
For example, as a specific way of outputting a detection result of whether an abnormality occurs in the fingerprint module, log data of the fingerprint pressing interrupt signal may be printed and/or displayed while outputting the result identification.
Specifically, an output software interface for displaying the abnormal detection result of the fingerprint module can be set in the system layer of the terminal, and the abnormal detection result can be displayed through the display function of the terminal. Meanwhile, whether the fingerprint module is judged to be abnormal preliminarily or not, the log data corresponding to the fingerprint pressing interrupt signal reported by the fingerprint module can be printed and/or displayed from a log file output by the terminal, so that a detector can perform subsequent analysis and processing, and whether the fingerprint module is abnormal or not is judged further.
According to the method for detecting the working abnormity of the fingerprint module, which is provided by the embodiment of the invention, on the basis of the embodiment of the method, the step of extracting the log data of the fingerprint module reporting the fingerprint pressing interruption signal is refined. Meanwhile, after the result of whether the fingerprint module is abnormal is preliminarily obtained, the corresponding log data is printed and/or displayed so that a detector can further judge whether the fingerprint module is abnormal, and the accuracy of the detection result is improved.
Example four
Fig. 4 is a schematic structural diagram of a device for detecting abnormal operation of a fingerprint module according to an embodiment of the present invention, which can be used to execute the method steps shown in fig. 1. As shown in fig. 4, the apparatus for detecting abnormal operation of a fingerprint module includes: an extraction module 410 and a detection module 420, wherein:
an extracting module 410, configured to extract log data of the fingerprint pressing interrupt signal from a log file; the fingerprint pressing interrupt signal is generated when the fingerprint module identifies the fingerprint pressing operation and is reported to the hardware abstraction layer HAL; and the detection module 420 is configured to determine whether the fingerprint module is abnormal according to the extracted log data.
Further, as shown in fig. 5, the detecting module 420 may specifically include: a first detection unit 421 and a second detection unit 422, wherein:
the first detecting unit 421 is configured to determine that the fingerprint module is not abnormal if the log data includes data of the fingerprint pressing interrupt signal; the second detecting unit 422 is configured to determine that the fingerprint module is abnormal if the log data does not include data of the fingerprint pressing interrupt signal.
Further, as shown in fig. 5, the detecting module 420 further includes: the third detecting unit 423 is configured to determine that a device executing the terminal operation is abnormal if the extracted log data includes data of the fingerprint pressing interrupt signal and the fingerprint module identifies the terminal operation abnormality caused after the fingerprint pressing operation.
According to the detection device for the abnormal working of the fingerprint module, provided by the embodiment of the invention, the behavior that the fingerprint pressing interrupt signal is reported to the hardware abstraction layer HAL when the fingerprint module in the terminal identifies the fingerprint pressing operation is detected, and the log data correspondingly generated by the behavior is extracted from the log file in the terminal; then, whether the fingerprint pressing operation is really identified by the fingerprint module is judged through the extracted log data, and whether the fingerprint module is abnormal is further judged.
EXAMPLE five
Fig. 6 is a schematic structural diagram of another detection apparatus for detecting abnormal operation of a fingerprint module according to an embodiment of the present invention, which can be regarded as a refinement structure of the apparatus shown in fig. 4, and can be used to execute the method steps shown in fig. 2, as shown in fig. 6, the detection apparatus further includes, on the basis of the structure shown in fig. 4: a monitoring module 430, wherein:
and the monitoring module 430 is configured to monitor a fingerprint pressing interrupt signal reported to the hardware abstraction layer HAL by the fingerprint module.
The detecting module 420 is further configured to determine that the fingerprint module is not abnormal if the monitoring module 430 monitors the fingerprint pressing interrupt signal; if the fingerprint pressing interrupt signal is not monitored, the extraction module 410 is triggered to execute the processing step of extracting the log data of the fingerprint pressing interrupt signal in the log file.
On the basis of the structure of the embodiment shown in fig. 4, the detection device for detecting the working abnormality of the fingerprint module according to the embodiment of the present invention monitors the fingerprint pressing interrupt signal reported to the hardware abstraction layer HAL by the fingerprint module; it is then determined whether it is necessary to perform the contents of the embodiment of the method shown in fig. 1 based on the monitoring result. If the fingerprint pressing interruption signal reported by the fingerprint module is monitored, the fingerprint module is proved to work normally, and the working behavior of the fingerprint module is not required to be judged by extracting log data, so that the processing step of judging whether the fingerprint module works abnormally by extracting the log data is saved, and the process flow of the method is simplified.
EXAMPLE six
Fig. 7 is a schematic structural diagram of another detection apparatus for detecting abnormal operation of a fingerprint module according to an embodiment of the present invention, which can be regarded as a refined structure of the apparatus embodiment shown in fig. 4 or after fig. 4 and fig. 5 are combined, and can be used to execute the method steps shown in fig. 3, as shown in fig. 7, based on the structure of the detection apparatus for abnormal operation of a fingerprint module, further including: the output module 440 is configured to output a detection result indicating whether the fingerprint module is abnormal.
Further, the output module 440 is specifically configured to print and/or display log data of the fingerprint pressing interruption signal.
Further, as shown in fig. 8, the extracting module 410 specifically includes:
an extracting unit 411, configured to extract, from the log file, log data of all interrupt signals reported to the hardware abstraction layer HAL by the fingerprint module; the identification unit 412 is configured to calculate and identify log data of all the interrupt signals according to a pre-established algorithm to obtain event content corresponding to each interrupt signal; a determining unit 413, configured to determine an interrupt signal corresponding to the event content of the fingerprint pressing operation identified by the fingerprint module as a fingerprint pressing interrupt signal.
The detection device for the fingerprint module working abnormity provided by the embodiment of the invention refines the extraction module on the basis of the embodiment of the device. Meanwhile, after the result of whether the fingerprint module is abnormal is preliminarily obtained, the corresponding log data is printed and/or displayed through the output module, so that a detector can further judge whether the fingerprint module is abnormal, and the accuracy of the detection result is improved.
Further, an embodiment of the present invention further provides a terminal device, including: the fingerprint module and the detection device for the abnormal operation of the fingerprint module in the embodiment are provided; the fingerprint module is used for identifying fingerprint pressing operation, generating a fingerprint pressing interrupt signal and reporting the fingerprint pressing interrupt signal to the hardware abstraction layer HAL; the terminal device forms log data on operations within the hardware abstraction layer HAL in real time and stores in a log file.
The terminal equipment provided by the embodiment of the invention can quickly detect whether the fingerprint module on the terminal works abnormally.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of an embodiment of a terminal device provided in the present invention. As shown in fig. 9, the terminal device according to the embodiment of the present invention includes: memory 91, one or more processors 92, and one or more programs 93.
Wherein the one or more programs 93, when executed by the one or more processors 92, perform the following:
s110, extracting the log data of the fingerprint pressing interrupt signal in the log file.
And S120, determining whether the fingerprint module is abnormal or not according to the extracted log data.
According to the terminal equipment provided by the embodiment of the invention, the behavior that the fingerprint pressing interrupt signal is reported to the hardware abstraction layer HAL when the fingerprint pressing operation is identified by the fingerprint module in the detection terminal is detected, and the log data correspondingly generated by the behavior is extracted from the log file in the terminal; then, whether the fingerprint pressing operation is really identified by the fingerprint module is judged through the extracted log data, and whether the fingerprint module is abnormal is further judged.
Example eight
FIG. 10 is a block diagram of an embodiment of a computer program product for detecting an abnormal operation of a fingerprint module according to the present invention. As shown in FIG. 10, a computer program product 101 for detection of fingerprint module operational anomalies according to embodiments of the present invention may include a signal bearing medium 102. The signal bearing medium 102 may include one or more instructions 103, which when executed by, for example, a processor, the processor may provide the functionality described above with respect to fig. 1-9. For example, instructions 103 may include: one or more instructions for extracting log data of the fingerprint press interrupt signal in a log file; one or more instructions for determining whether an anomaly has occurred with the fingerprint module based on the extracted log data. Thus, for example, with reference to fig. 4, the means for detecting a fingerprint module malfunction may perform one or more of the steps shown in fig. 1 in response to the instructions 103.
In some implementations, the signal bearing medium 102 may include a computer readable medium 104, such as, but not limited to, a hard disk drive, a Compact Disc (CD), a Digital Versatile Disc (DVD), a digital tape, a memory, and the like. In some implementations, the signal bearing medium 102 may include a recordable medium 105 such as, but not limited to, a memory, a read/write (R/W) CD, a R/W DVD, and the like. In some implementations, the signal bearing medium 102 may include a communication medium 106, such as, but not limited to, a digital and/or analog communication medium (e.g., a fiber optic cable, a waveguide, a wired communications link, a wireless communication link, etc.). Thus, for example, the computer program product 101 may be conveyed to one or more modules of a multi-finger swipe gesture recognition apparatus via an RF signal-bearing medium 102, where the signal-bearing medium 102 is conveyed by a wireless communication medium (e.g., a wireless communication medium conforming to the IEEE 802.11 standard).
According to the computer program product provided by the embodiment of the invention, the log data of the fingerprint pressing interrupt signal is extracted from the log file; and determining whether the fingerprint module is abnormal or not according to the extracted log data. The computer program product of the embodiment of the invention ensures that the user can trigger corresponding operation of fingerprint identification by detecting the fingerprint module.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (17)

1. A method for detecting abnormal working of a fingerprint module is applied to a terminal, and is characterized by comprising the following steps:
extracting log data of the fingerprint pressing interrupt signal from a log file; the fingerprint pressing interrupt signal is a signal which is generated when the fingerprint module identifies a fingerprint pressing operation and is reported to the hardware abstraction layer HAL;
and determining whether the fingerprint module is abnormal or not according to the extracted log data.
2. The method of claim 1, wherein extracting log data of the fingerprint pressing interruption signal in a log file comprises:
extracting log data of all interrupt signals reported to the hardware abstraction layer HAL by the fingerprint module from the log file;
calculating and identifying the log data of all the interrupt signals according to a preset algorithm to obtain event contents corresponding to all the interrupt signals;
and determining an interrupt signal corresponding to the event content of the fingerprint pressing operation identified by the fingerprint module as the fingerprint pressing interrupt signal.
3. The method of claim 1, wherein determining whether the fingerprint module is anomalous from the extracted log data comprises:
if the log data contains the data of the fingerprint pressing interrupt signal, determining that the fingerprint module is not abnormal;
and if the log data does not contain the data of the fingerprint pressing interrupt signal, determining that the fingerprint module is abnormal.
4. The method of claim 3, further comprising:
and if the extracted log data contains the data of the fingerprint pressing interrupt signal and the fingerprint module identifies the terminal operation abnormity caused after the fingerprint pressing operation, determining that the equipment for executing the terminal operation is abnormal.
5. The method of claim 1, further comprising:
monitoring the fingerprint pressing interrupt signal reported to a hardware abstraction layer HAL by the fingerprint module;
and if the fingerprint pressing interruption signal is monitored, determining that the fingerprint module is not abnormal.
6. The method of claim 5, further comprising:
and if the fingerprint pressing interrupt signal is not monitored, extracting the log data of the fingerprint pressing interrupt signal from the log file.
7. The method according to any one of claims 1-6, further comprising:
and outputting a detection result of whether the fingerprint module is abnormal or not.
8. The method according to claim 7, wherein outputting the detection result of whether the fingerprint module is abnormal comprises:
and printing and/or displaying log data of the fingerprint pressing interruption signal.
9. The utility model provides a detection device of fingerprint module abnormal operation, detection device is applied to the terminal, its characterized in that includes:
the extraction module is used for extracting the log data of the fingerprint pressing interrupt signal from the log file; the fingerprint pressing interrupt signal is generated when the fingerprint module identifies a fingerprint pressing operation and is reported to a hardware abstraction layer HAL;
and the detection module is used for determining whether the fingerprint module is abnormal or not according to the extracted log data.
10. The apparatus of claim 9, wherein the extraction module comprises:
an extracting unit, configured to extract log data of all interrupt signals reported to the hardware abstraction layer HAL by the fingerprint module from the log file;
the identification unit is used for calculating and identifying the log data of all the interrupt signals according to a preset algorithm to obtain event contents corresponding to all the interrupt signals;
the determining unit is used for determining an interrupt signal corresponding to the event content of the fingerprint pressing operation identified by the fingerprint module as the fingerprint pressing interrupt signal.
11. The apparatus of claim 9, wherein the detection module comprises:
the first detection unit is used for determining that the fingerprint module is not abnormal if the log data contains the data of the fingerprint pressing interrupt signal;
and the second detection unit is used for determining that the fingerprint module is abnormal if the log data does not contain the data of the fingerprint pressing interrupt signal.
12. The apparatus of claim 11, wherein the detection module further comprises:
and the third detection unit is used for determining that the equipment for executing the terminal operation is abnormal if the extracted log data contains the data of the fingerprint pressing interrupt signal and the fingerprint module identifies the terminal operation abnormity caused after the fingerprint pressing operation.
13. The apparatus of claim 9, further comprising:
the monitoring module is used for monitoring the fingerprint pressing interrupt signal reported to the hardware abstraction layer HAL by the fingerprint module;
the detection module is further used for determining that the fingerprint module is not abnormal if the monitoring module monitors that the fingerprint pressing interruption signal is generated.
14. The apparatus according to claim 13, wherein the monitoring module is further configured to trigger the extracting module to perform the processing step of extracting log data of the fingerprint pressing interrupt signal from the log file if the fingerprint pressing interrupt signal is not monitored.
15. The apparatus according to any one of claims 9-14, wherein the apparatus further comprises:
and the output module is used for outputting the detection result whether the fingerprint module is abnormal or not.
16. The apparatus according to claim 15, wherein the output module is specifically configured to print and/or display log data of the fingerprint press interrupt signal.
17. A terminal device, comprising: a fingerprint module and a detection device for a fingerprint module according to any one of claims 9-16 operating abnormally; wherein,
the fingerprint module is used for identifying fingerprint pressing operation, generating a fingerprint pressing interrupt signal and reporting the fingerprint pressing interrupt signal to the hardware abstraction layer HAL; the terminal device forms log data about operations in the hardware abstraction layer HAL in real time and stores the log data in a log file.
CN201611032435.XA 2016-06-24 2016-11-16 Method and device for detecting abnormal operation of fingerprint module and terminal device Pending CN106681906A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610474952 2016-06-24
CN2016104749526 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)

* Cited by examiner, † Cited by third party
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
CN113254293A (en) * 2021-05-28 2021-08-13 广州绿怡信息科技有限公司 Fingerprint function detection method and device
CN113254292A (en) * 2021-05-20 2021-08-13 广州绿怡信息科技有限公司 Distance sensing function detection method and device

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
罗锦文: "一种文件安全存储系统的研究与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN113254293B (en) * 2021-05-28 2024-12-10 广州绿怡信息科技有限公司 Fingerprint function detection method and device

Similar Documents

Publication Publication Date Title
US11360842B2 (en) Fault processing method, related apparatus, and computer
CN113918376B (en) Fault detection method, device, equipment and computer readable storage medium
CN106681906A (en) Method and device for detecting abnormal operation of fingerprint module and terminal device
CN113220537B (en) Software monitoring method, device, equipment and readable storage medium
US20180210774A1 (en) Image based fault state determination
EP4276741A1 (en) Analysis device, analysis system, analysis program, and analysis method
CN111693089A (en) Product quality control method, device, equipment and storage medium for assembly line
CN115878430A (en) PCIE equipment fault monitoring method and device, communication equipment and storage medium
CN114461534A (en) Software performance testing method and system, electronic equipment and readable storage medium
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN112822440A (en) Biological sample preparation monitoring method, application server, system and storage medium
CN111898661A (en) Method and device for monitoring working state of turnout switch machine
WO2018227475A1 (en) Fingerprint chip detection method, device and system
CN116738091A (en) Page monitoring method and device, electronic equipment and storage medium
CN116501637A (en) Printing test method and device, electronic equipment and storage medium
CN104579825A (en) Method and device for monitoring server of application in real time and computer equipment
CN115525499A (en) Data analysis method and device for hard disk, electronic equipment and storage medium
CN115879697A (en) Data processing method, system, equipment and storage medium for industrial internet
CN114036012A (en) Terminal testing method and device, electronic equipment and readable storage medium
US20190281208A1 (en) Image sensor system, image sensor, data generation method of image sensor in image sensor system, and non-transitory computer-readable recording medium
US11068381B2 (en) Program analysis device, program analysis system, program analysis method and computer readable medium
CN111510432A (en) Safety monitoring method, device and equipment for website abnormity
KR102372556B1 (en) Mobile service control method and system based on mobile remote control technology
KR20140120200A (en) Early warning system and method for database error
CN112699705B (en) Information acquisition method, fault positioning method, device and electronic equipment

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