CN116700802A - Control method and control device of fingerprint module - Google Patents

Control method and control device of fingerprint module Download PDF

Info

Publication number
CN116700802A
CN116700802A CN202211423002.2A CN202211423002A CN116700802A CN 116700802 A CN116700802 A CN 116700802A CN 202211423002 A CN202211423002 A CN 202211423002A CN 116700802 A CN116700802 A CN 116700802A
Authority
CN
China
Prior art keywords
fingerprint module
fingerprint
module
chip
state
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.)
Granted
Application number
CN202211423002.2A
Other languages
Chinese (zh)
Other versions
CN116700802B (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211423002.2A priority Critical patent/CN116700802B/en
Publication of CN116700802A publication Critical patent/CN116700802A/en
Application granted granted Critical
Publication of CN116700802B publication Critical patent/CN116700802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Image Input (AREA)

Abstract

The application provides a control method and a control device of a fingerprint module, and the control method can be applied to terminal equipment. The control method may include: the terminal equipment reads a chip identifier of a chip where the fingerprint module is located; if the number of continuous failure times of reading the chip identification is greater than or equal to the first preset number of times, the terminal equipment performs power-down operation on the fingerprint module. According to the control method provided by the application, when the fingerprint module is abnormal, the fingerprint module can be subjected to abnormal processing, so that the control method can be suitable for various different scenes and is beneficial to reducing the risk of scalding users.

Description

Control method and control device of fingerprint module
Technical Field
The application relates to the technical field of terminals, in particular to a control method and a control device of a fingerprint module.
Background
Typically, the terminal device may include a fingerprint module to provide a user with a fingerprint unlocking function. If the fingerprint module of the terminal equipment is damaged in a collision or drop scene of the terminal equipment, the chip where the fingerprint module is located is short-circuited, so that the temperature of the fingerprint module is increased, and the risk of scalding a user exists.
Aiming at the problems, the terminal field provides the following method: detecting the current in the chip by the chip where the fingerprint module is positioned, and outputting an overcurrent protection (over current protection, OCP) interrupt signal if the current is overlarge; after the main control chip of the terminal equipment detects the OCP interrupt signal, the fingerprint module is subjected to exception handling, and the fingerprint module is subjected to power-down operation.
However, the above method has the following problems: under the scene that the OCP interrupt signal cannot be generated and output due to damage of the chip where the fingerprint module is located, the main control chip of the terminal equipment cannot know the abnormality of the chip where the fingerprint module is located to perform corresponding abnormality processing, and the risk of scalding a user still exists.
Disclosure of Invention
The application provides a control method and a control device for a fingerprint module, which can be used for carrying out exception handling on the fingerprint module when the fingerprint module is in an exception, thereby being beneficial to reducing the risk of scalding users.
In a first aspect, a control method of a fingerprint module is provided, which can be applied to a terminal device. The method comprises the following steps: the terminal equipment reads a chip identifier of a chip where the fingerprint module is located; if the number of continuous failure times of reading the chip identification is greater than or equal to the first preset number of times, the terminal equipment performs power-down operation on the fingerprint module.
The chip identifier of the chip where the fingerprint module is located can be stored in a register of the chip where the fingerprint module is located, and the terminal equipment can read the chip identifier from the register.
The terminal device can periodically or continuously read the chip identification of the chip where the fingerprint module is located for a plurality of times in a fixed time. If the number of continuous failure times of reading the chip identification is greater than or equal to the first preset number of times, the terminal equipment performs power-down operation on the fingerprint module. The number of times that the terminal device reads the chip identifier of the chip where the fingerprint module is located may be greater than or equal to the first preset number of times. The first preset times are preset in the terminal equipment after the calibration of the developer. The first preset number of times may be 3 times, 4 times, 5 times, 6 times, etc., which is not limited by the present application.
For example, if the number of times the terminal device reads the chip identifier is the same as the first preset number of times and equal to 3, the terminal device may read the chip identifier of the chip where the fingerprint module is located once every 1 second, and continuously read 3 times. Or the terminal equipment reads the chip identification of the chip where the fingerprint module is located once in 1 st second, 5 th second and 60 th second in 1 minute.
If the number of continuous failure times of reading the chip identification is greater than or equal to the first preset number of times, the terminal equipment performs power-down operation on the fingerprint module.
If the number of times that the terminal device reads the chip identifier is the same as the first preset number of times, the terminal device fails to read each time, and it can be explained that the fingerprint module is abnormal, and the terminal device performs the power-down operation on the fingerprint module. The number of times the terminal device reads the chip identifier is the same as the first preset number of times in the examples shown in the method 300, the method 500 and the method 700 in the specific embodiment of the present application. The number of times the terminal device reads the chip identifier may also be referred to as a first preset number of times.
If the number of times of reading the chip identifier by the terminal device is greater than the first preset number of times, and the number of times of reading the chip identifier by the terminal device is 6, and the first preset number of times is 3, if the continuous 3 times of reading failures exist in the 6 times of reading results, it can be stated that the fingerprint module is abnormal, and the terminal device performs the power-down operation on the fingerprint module.
It should be noted that, the terminal device reads the chip identifier, and the application is not limited to this, where the display screen of the terminal device is in a bright screen state, or where the display screen of the terminal device is in a dead screen state.
According to the control method of the fingerprint module, provided by the application, the chip identifier of the chip where the fingerprint module is located is read, if the number of continuous reading failures is greater than or equal to the first preset number, the fingerprint module is determined to be abnormal, and the fingerprint module is powered down, so that the temperature of the fingerprint module is prevented from rising, and the risk of scalding a user is reduced.
With reference to the first aspect, in some implementation manners of the first aspect, the reading, by the terminal device, a chip identifier of a chip where the fingerprint module is located includes: if the display screen of the terminal equipment is in a bright screen state and the fingerprint module is in an input state, an authentication state, a cancel state or an idle state, the terminal equipment reads the chip identification.
The terminal device includes a display screen, which may be in a bright screen state or an off screen state. When the display screen is in a screen-off state, the terminal equipment can detect that the display screen is in a screen-off state.
The fingerprint module may include an entry state (Enroll), an authentication state (authentication), a Cancel state (Cancel), an Idle state (Idle), and a Sleep state (Sleep). The input state, the authentication state and the cancellation state are states when the fingerprint module inputs the fingerprint for authentication. The sleep state refers to a low power consumption state. The idle state is the default state after the fingerprint module is powered on or reset. When the fingerprint module is in an idle state, the terminal device can switch the fingerprint module to any other state through a command. It should be noted that, all the states of the fingerprint module must be switched to the idle state and then to other modes.
It should be further noted that the fingerprint module may be in an input state, an authentication state, a cancel state, an idle state, or a sleep state, and may also be referred to as an input mode, an authentication mode, a cancel mode, an idle mode, or a sleep mode.
Before the terminal device reads the chip identifier, the state of the display screen and the fingerprint module can be obtained. When the display screen is in a bright screen state and the fingerprint module is in an input state, an authentication state or an idle state, the terminal equipment can read the chip identification.
According to the control method of the fingerprint module, when the display screen is in the bright screen state and the fingerprint module is in the input state, the authentication state or the idle state, the chip identification is read, so that the control method can be suitable for different scenes and has higher flexibility.
With reference to the first aspect, in some implementation manners of the first aspect, the reading, by the terminal device, a chip identifier of a chip where the fingerprint module is located includes: if the display screen of the terminal equipment is in a bright screen state and the fingerprint module is in a dormant state, the terminal equipment wakes up the fingerprint module first and reads the chip identifier.
The fingerprint module is in a dormant state, and then enters a low-power consumption state, and the terminal equipment can wake up the fingerprint module through a command or a chip where the fingerprint module is reset. And after the fingerprint module is awakened, entering an idle state. At this time, the display screen of the terminal device is in a bright screen state and the fingerprint module is in an idle state, so that the terminal device can read the chip identifier.
According to the control method of the fingerprint module, when the display screen is in the bright screen state, if the fingerprint module is in the dormant state, the fingerprint module can be awakened, the chip identification is read after the fingerprint module enters the idle state, and the control method can be suitable for dormant scenes of the fingerprint module.
With reference to the first aspect, in some implementation manners of the first aspect, the reading, by the terminal device, a chip identifier of a chip where the fingerprint module is located includes: if the display screen of the terminal equipment is in a screen-off state and the fingerprint module stores fingerprint information, the terminal equipment reads the chip identification.
The terminal device includes a display screen, which may be in a bright screen state or an off screen state. When the display screen is in a screen-off state, the terminal equipment can detect that the display screen is in a screen-off state.
The fingerprint module can gather fingerprint information, then fingerprint module can be including recording fingerprint information and not recording the two kinds of circumstances of fingerprint information. If the fingerprint module is recorded with the fingerprint of the user, the terminal device can detect that the fingerprint module records fingerprint information.
If the display screen of the terminal equipment is in a screen-off state and the fingerprint module stores fingerprint information, the terminal equipment can read the chip identification. At this time, the state of the fingerprint module may be an authentication state, a cancel state, an idle state or a sleep state, which is not limited by the present application.
According to the control method of the fingerprint module, the chip identification is read when the display screen is in the screen-off state and the fingerprint module is in the scene with the fingerprint information recorded.
With reference to the first aspect, in some implementation manners of the first aspect, the reading, by the terminal device, a chip identifier of a chip where the fingerprint module is located includes: if the display screen of the terminal equipment is in a screen-off state, the fingerprint module does not store fingerprint information, and the fingerprint module is in an idle state, the terminal equipment reads the chip identification.
Under the condition that the display screen is in a screen-off state and the fingerprint module is recorded with fingerprint information, the fingerprint module can comprise an idle state and a dormant state. If the fingerprint module is in an idle state, the terminal equipment reads the chip identification of the chip where the fingerprint module is located.
According to the control method of the fingerprint module, the chip identification is read under the scene that the display screen is in the screen-off state, the fingerprint module does not store fingerprint information and the fingerprint module is in the idle state.
With reference to the first aspect, in some implementation manners of the first aspect, the reading, by the terminal device, a chip identifier of a chip where the fingerprint module is located includes: if the display screen of the terminal equipment is in the screen-off state, the fingerprint module does not store the fingerprint information and the fingerprint module is in the dormant state, the terminal equipment wakes up the fingerprint module first and then reads the chip identification.
Under the condition that the display screen is in a screen-off state and the fingerprint module is recorded with fingerprint information, the fingerprint module can comprise an idle state and a dormant state. If the fingerprint module is in a dormant state, the terminal equipment can wake up the fingerprint module first and then read the chip identifier.
According to the control method of the fingerprint module, when the display screen is in the screen-off state and the fingerprint module records fingerprint information, if the fingerprint module is in the dormant state, the fingerprint module can be awakened, and the chip identification is read after the fingerprint module enters the idle state, so that the control method is applicable to dormant scenes of the fingerprint module.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes: the terminal equipment performs power-on operation on the fingerprint module; the terminal equipment re-reads the chip identification; if the number of continuous failure times of reading the chip identification is greater than or equal to a second preset number of times, the terminal equipment performs power-down operation on the fingerprint module, and the second preset number of times is greater than or equal to the first preset number of times.
If the number of continuous failure times of reading the chip identification is greater than or equal to the first preset number of times, the terminal equipment can also perform power-on operation after performing power-off operation on the fingerprint module. The terminal device may perform the power-up operation on the fingerprint module immediately after performing the power-down operation on the fingerprint module, or may perform the power-up operation on the fingerprint module after waiting for a period of time after performing the power-down operation on the fingerprint module.
After the fingerprint module is electrified, the terminal equipment can read the chip identification again periodically or continuously for a plurality of times in fixed time. The terminal device may read the chip identifier again more than or equal to the second preset number of times. The second preset number may be 3 times, 4 times, 5 times, 6 times, etc., which is not limited by the present application. The second preset times may be the same as or different from the first preset times, which is not limited in the present application.
For example, if the number of times the terminal device reads the chip identifier is the same as the second preset number of times and equal to 6, the terminal device may read the chip identifier of the chip where the fingerprint module is located once every 1 second, and continuously read 6 times.
If the number of continuous failure times of reading the chip identification is greater than or equal to a second preset number of times, the terminal equipment performs power-down operation on the fingerprint module, and the second preset number of times is greater than or equal to the first preset number of times.
If the number of times that the terminal device re-reads the chip identifier is the same as the second preset number of times, the terminal device fails to read each time, which can indicate that the fingerprint module is abnormal, and the terminal device performs the power-down operation on the fingerprint module. The number of times the terminal device re-reads the chip identifier is the same as the second preset number of times in the examples shown in the method 300, the method 500 and the method 700 in the specific embodiment of the present application. The number of times the terminal device re-reads the chip identity may also be referred to as a second preset number of times.
If the number of times of re-reading the chip identifier by the terminal device is greater than the second preset number of times, and the number of times of reading the chip identifier by the terminal device is 10, and the second preset number of times is 6, if the continuous 6 times of reading failures exist in the 10 times of reading results, it can be stated that the fingerprint module is abnormal, and the terminal device performs the power-down operation on the fingerprint module.
According to the control method of the fingerprint module, the fingerprint module is powered down and then powered up, whether the chip identification of the chip where the fingerprint module is located can be read is judged again, if the number of continuous reading failures is greater than or equal to the second preset number, the fingerprint module is determined to be abnormal, the identification accuracy can be improved, and the risk of misjudgment is reduced.
In a second aspect, a control device for a fingerprint module is provided, the device includes: a reading module and a processing module. Wherein, the reading module is used for: reading a chip identifier of a chip where the fingerprint module is located; the processing module is used for: if the number of continuous failure times of reading the chip identification is greater than or equal to the first preset number of times, powering down the fingerprint module.
With reference to the second aspect, in some implementations of the second aspect, the reading module is further configured to: if the display screen of the control device is in a bright screen state and the fingerprint module is in an input state, an authentication state, a cancel state or an idle state, the chip identification is read.
With reference to the second aspect, in some implementations of the second aspect, if the display screen of the control device is in a bright screen state and the fingerprint module is in a dormant state, waking up the fingerprint module; the reading module is further used for: and reading the chip identification.
With reference to the second aspect, in some implementations of the second aspect, the reading module is further configured to: if the display screen of the control device is in a screen-off state and the fingerprint module stores fingerprint information, the chip identification is read.
With reference to the second aspect, in some implementations of the second aspect, the reading module is further configured to: if the display screen of the control device is in a screen-off state, the fingerprint module does not store fingerprint information and the fingerprint module is in an idle state, reading the chip identification of the chip where the fingerprint module is located.
With reference to the second aspect, in certain implementations of the second aspect, the processing module is further configured to: if the display screen of the control device is in a screen-off state, the fingerprint module does not store fingerprint information and the fingerprint module is in a dormant state, waking up the fingerprint module; the reading module is further used for: and reading the chip identification.
With reference to the second aspect, in certain implementations of the second aspect, the processing module is further configured to: powering up the fingerprint module; the reading module is further used for: re-reading the chip identification; the processing module is also used for: if the number of continuous failure times of the reading chip identification is larger than or equal to the second preset number of times, powering down the fingerprint module, wherein the second preset number of times is larger than or equal to the first preset number of times.
In a third aspect, the present application provides a control device for a fingerprint module, the control device comprising: a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored in the memory to cause the control apparatus to perform a method as in the first aspect.
In a fourth aspect, the present application provides a terminal device, which may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. The terminal device may be a mobile phone, a smart television, a wearable device, a tablet (Pad), a computer with wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self-driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), or the like.
The terminal device includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored in the memory to cause the terminal device to perform a method as in the first aspect.
In a fifth aspect, the application provides a computer readable storage medium storing a computer program which when executed by a processor performs a method as in the first aspect.
In a sixth aspect, the application provides a computer program product comprising a computer program which, when run, causes a computer to perform the method as in the first aspect.
In a seventh aspect, the present application provides a chip comprising a processor for invoking a computer program in memory to perform the method according to the first aspect.
It should be understood that the second to seventh aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the advantages obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated.
Drawings
FIG. 1 is a schematic diagram of detecting an abnormality of a fingerprint module;
FIG. 2 is a block diagram of a software architecture of a terminal device to which embodiments of the present application are applicable;
FIG. 3 is a schematic flow chart of a control method of a fingerprint module provided by an embodiment of the application;
FIG. 4 is a schematic diagram of a fingerprint module state;
FIG. 5 is a schematic flow chart of another control method of a fingerprint module according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another fingerprint module status;
FIG. 7 is a schematic flow chart of a control method of a fingerprint module according to another embodiment of the present application;
FIG. 8 is a schematic flow chart of another control method of a fingerprint module according to an embodiment of the present application;
FIG. 9 is a schematic flow chart of a control method of a fingerprint module according to another embodiment of the present application;
fig. 10 is a schematic block diagram of a control device of a fingerprint module according to an embodiment of the present application;
fig. 11 is a schematic block diagram of a control device of another fingerprint module according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
The terminal device may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), etc. The terminal device may be a mobile phone, a smart television, a wearable device, a tablet (Pad), a computer with wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self-driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), or the like.
Typically, the terminal device may include a fingerprint module to provide a user with a fingerprint unlocking function. If the fingerprint module of the terminal equipment is damaged in a collision or drop scene of the terminal equipment, the chip where the fingerprint module is located is short-circuited, so that the temperature of the fingerprint module is increased, and the risk of scalding a user exists.
The terminal device may be a mobile phone, for example. When the fingerprint module is embedded into the power key and is positioned at the side edge of the mobile phone, the probability of damage in a terminal equipment collision or drop scene is high. If the fingerprint module damages the chip short circuit that causes fingerprint module to locate, can lead to fingerprint module temperature to rise, when the user touches the power key position and carries out fingerprint unblock or press the power key, scald user's probability is great.
Aiming at the problems, the terminal field provides the following method: detecting the current in the chip by the chip where the fingerprint module is positioned, and outputting an overcurrent protection (over current protection, OCP) interrupt signal if the current is overlarge; after the main control chip of the terminal equipment detects the OCP interrupt signal, the fingerprint module is subjected to exception handling, and the fingerprint module is subjected to power-down operation.
Illustratively, fig. 1 shows a schematic diagram for detecting an abnormality of a fingerprint module. The chip on which the fingerprint module is located may include a local current selector (domain current selector) that detects the current in the chip. The area current selector may also be referred to as an over-current protection device, which is not limited by the embodiments of the present application. The fingerprint module may include a register that may be used to store data.
When the area current selector detects that the current of the chip is excessive, an OCP interrupt signal may be generated and an overcurrent interrupt flag may be written into the register. The main control chip of the terminal equipment detects the OCP interrupt signal, can read the overcurrent interrupt mark in the register, and performs power-down operation on the fingerprint module.
However, in this implementation manner shown in fig. 1, when the chip where the fingerprint module is located is seriously damaged, there is a case that the area current selector cannot generate the OCP interrupt signal, or the terminal device cannot read and write the register, which may cause the terminal device to fail to perform the power-down operation on the fingerprint module, and still there is a risk of scalding the user.
In view of this, an embodiment of the present application provides a control method and a control device for a fingerprint module, where the identity of a chip where the fingerprint module is located is read multiple times, if the fingerprint module fails to be read multiple times, it is determined that the fingerprint module is abnormal, and a power-down operation is performed on the fingerprint module, so as to prevent the temperature of the fingerprint module from rising, and reduce the risk of scalding a user.
The method provided by the embodiment of the application can be applied to any terminal equipment comprising a fingerprint module. For example, wearable terminal devices such as a mobile phone, a tablet PC, a personal computer (personal computer, PC), and a smart watch may be various teaching aids (e.g., learning machine, early education machine), smart toys, portable robots, personal digital assistants (personal digital assistant, PDA), augmented reality (augmented reality, AR) devices, virtual Reality (VR) devices, etc., devices with mobile office functions, devices with smart home functions, devices with video and audio entertainment functions, devices supporting smart travel, etc. It should be understood that the embodiment of the present application does not limit the specific technology and the specific device configuration adopted by the terminal device.
The software system of the terminal device can adopt a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture or a cloud architecture. In the embodiment of the application, an Android system with a layered architecture is taken as an example, and the software structure of terminal equipment is illustrated.
Fig. 2 is a block diagram of a software structure of a terminal device to which the embodiment of the present application is applicable. The layered architecture divides the software system of the terminal device into a plurality of layers, each layer having a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into five layers, an application layer (applications), an application framework layer (application framework), an Zhuoyun rows (Android run) and system libraries, a hardware abstraction layer (hardware abstract layer, HAL), and a kernel layer (kernel), respectively.
The application layer may include a series of application packages that run applications by calling an application program interface (application programming interface, API) provided by the application framework layer. As shown in FIG. 2, the application packages may include camera, gallery, calendar, talk, and map applications.
The application framework layer provides APIs and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 2, the application framework layer may include a window manager, a content provider, and a view system, among others.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The android runtime includes a core library and virtual machines. And the android running time is responsible for scheduling and managing an android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like. The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), and three-dimensional graphics processing Libraries (e.g., openGL ES), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The hardware abstraction layer may include a plurality of library modules, for example, a camera library module. The Android system can load a corresponding library module for the equipment hardware, so that the purpose of accessing the equipment hardware by an application program framework layer is achieved. The device hardware may include, for example, a camera in the terminal device, etc. The hardware abstraction layer can also comprise a fingerprint module abnormal identification module, wherein the fingerprint module abnormal identification module is used for reading the chip identification of the chip where the fingerprint module is located so as to determine whether the fingerprint module is abnormal or not. The fingerprint module abnormal recognition module can also receive an interrupt signal generated by the fingerprint module due to fingerprint collection so as to inform the fingerprint processing module in the kernel layer to process the collected fingerprint. The fingerprint module anomaly identification module may also be referred to as a fingerprint HAL layer module, which is not limited in this embodiment of the present application.
The kernel layer is a layer between hardware and software. The kernel layer is used for driving the hardware so that the hardware works. The kernel layer at least includes a display driver, a fingerprint driver, etc., which is not limited in this embodiment of the present application. The kernel layer also comprises a power management module and a fingerprint processing module. Wherein the display driver may be used to detect a bright-dark state of a display screen of the terminal device. The fingerprint driver can be used for receiving a power-down instruction of the fingerprint module abnormal recognition module, notifying the power management module to perform power-down operation on the fingerprint module based on the power-down instruction, and can also be used for receiving a power-up instruction of the fingerprint module abnormal recognition module, and notifying the power management module to perform power-up operation on the fingerprint module based on the power-up instruction. The notification power management module can be used for carrying out power-on operation or power-off operation on the fingerprint module based on the instruction of fingerprint driving. The fingerprint processing module is used for receiving the fingerprint collected by the fingerprint module and recording or authenticating the fingerprint. The fingerprint processing module may also be referred to as a fingerprint trusted application (trusted application, TA) module, and embodiments of the present application are not limited in this regard.
In order to clearly describe the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be implemented independently or combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 3 shows a schematic flow chart of a control method 300 of a fingerprint module. The method 300 may be performed by a terminal device, such as a cell phone. The terminal device may include a display screen and a fingerprint module. The software of the terminal device may have a software structure as shown in fig. 2, but the embodiment of the present application is not limited thereto.
As shown in fig. 3, the method 300 may include the steps of:
s301, detecting that the display screen is in a bright screen state.
The display screen may also be referred to as a screen, and embodiments of the present application are not limited in this regard. The terminal device includes a display screen, which may be in a bright screen state or an off screen state. When the display screen is on, the terminal device can detect that the display screen is on.
Illustratively, the on-off state of the display screen may be represented by a binary symbol. The bright screen may be represented by a binary 0 and the dark screen may be represented by a binary 1. When the terminal device detects a binary 0, the terminal device may detect that the display screen is in a bright screen state.
S302, judging whether the fingerprint module is in a dormant state.
The fingerprint module can gather fingerprint information, then fingerprint module can be including recording fingerprint information and not recording the two kinds of circumstances of fingerprint information. The fingerprint module may be in different states in these two cases, respectively.
Illustratively, fig. 4 shows a schematic diagram of a fingerprint module state. As shown in fig. 4, in the case that the display screen is in the bright screen state, if the fingerprint module records fingerprint information, the fingerprint module may include an entry state (end), an authentication state (authentication), a Cancel state (Cancel), an Idle state (Idle), and a Sleep state (Sleep). The input state, the authentication state and the cancellation state are states when the fingerprint module inputs the fingerprint for authentication. If the fingerprint module has no fingerprint information recorded, the fingerprint module may include an Idle state (Idle) and a Sleep state (Sleep).
The terminal device may determine whether the fingerprint module is in a dormant state, where the dormant state may be a dormant state when the fingerprint module records fingerprint information, or may be a dormant state when the fingerprint module does not record fingerprint information.
If the fingerprint module is in the sleep state, the terminal device may wake up the fingerprint module, that is, execute S303; if the fingerprint module is not in the sleep state, the terminal device can directly read the chip identifier of the chip where the fingerprint module is located, and then S304 is executed. It can be appreciated that if the fingerprint module is not in the sleep state, the fingerprint module may be in the enter state, the authentication state, the cancel state, or the idle state.
S303, if the fingerprint module is in the dormant state, waking up the fingerprint module.
The fingerprint module is in a dormant state, and then enters a low-power consumption state, and the terminal equipment can wake up the fingerprint module through a command or a chip where the fingerprint module is reset. And after the fingerprint module is awakened, entering an idle state.
The idle state is the default state after the fingerprint module is powered on or reset. When the fingerprint module is in an idle state, the terminal device can switch the fingerprint module to any other state through a command. It should be noted that, all the states of the fingerprint module must be switched to the idle state and then to other modes.
It should be further noted that, the fingerprint module may be in an input state, an authentication state, a cancel state, an idle state, or a sleep state, and may also be referred to as an input mode, an authentication mode, a cancel mode, an idle mode, or a sleep mode.
S304, continuously reading a chip identity (chip ID) of a chip where the fingerprint module is located for a plurality of times.
The terminal device can periodically or continuously read the chip identification of the chip where the fingerprint module is located for a plurality of times in a fixed time. The number of times that the terminal device reads the chip identifier of the chip where the fingerprint module is located can be called a first preset number of times, and the number of times is preset in the terminal device after the developer marks the number of times. The first preset number of times may be 3 times, 4 times, 5 times, 6 times, or the like, which is not limited in the embodiment of the present application.
For example, the terminal device may read the chip identifier of the chip on which the fingerprint module is located every 1 second, and continuously read 3 times. Or the terminal equipment reads the chip identification of the chip where the fingerprint module is located once in the 1 st second, the 5 th second and the 60 th second in one minute.
S305, judging whether all the reading fails.
The terminal equipment judges whether the reading fails each time.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 3 times, the terminal device may determine whether all of the 3 times of reading fails.
If the terminal device fails to read each time, the terminal device may execute S307. If the terminal device fails to read every time, that is, there is at least one successful reading, the terminal device may execute S306.
S306, if the fingerprint module fails to be read uniformly, the terminal equipment can determine that the fingerprint module is abnormal.
If the terminal device fails to read every time, it can be stated that the fingerprint module is not abnormal, and the terminal device can determine that the fingerprint module is not abnormal.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 3 times, and all the 3 times of reading fails, the terminal device may determine that the fingerprint module is not abnormal.
S307, if all the reading fails, the terminal equipment can determine that the fingerprint module is abnormal.
If the terminal equipment fails to read every time, the fingerprint module is abnormal, the terminal equipment can determine that the fingerprint module is abnormal, and the terminal equipment can perform power-down operation on the fingerprint module.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 3 times, and all the 3 times of reading fail, the terminal device may determine that the fingerprint module is abnormal.
According to the control method of the fingerprint module, provided by the embodiment of the application, under the state that the display screen is on, the chip identifier of the chip where the fingerprint module is located is read for multiple times, if the fingerprint module fails to be read for multiple times, the fingerprint module is determined to be abnormal, and the fingerprint module is powered down, so that the temperature of the fingerprint module is prevented from rising, and the risk of scalding a user is reduced.
Fig. 5 shows a schematic flow chart of another control method 500 of a fingerprint module. The method 500 may be performed by a terminal device, such as a cell phone. The terminal device may include a display screen and a fingerprint module. The software of the terminal device may have a software structure as shown in fig. 2, but the embodiment of the present application is not limited thereto.
As shown in fig. 5, the method 500 may include the steps of:
S501, detecting that the display screen is in a screen-off state.
The terminal device includes a display screen, which may be in a bright screen state or an off screen state. When the display screen is in a screen-off state, the terminal equipment can detect that the display screen is in a screen-off state.
Illustratively, the on-off state of the display screen may be represented by a binary symbol. The bright screen may be represented by a binary 0 and the dark screen may be represented by a binary 1. When the terminal device detects a binary 1, the terminal device may detect that the display screen is in a screen-off state.
S502, judging whether the fingerprint module is recorded with fingerprint information.
The fingerprint module can gather fingerprint information, then fingerprint module can be including recording fingerprint information and not recording the two kinds of circumstances of fingerprint information. If the fingerprint module does not enter the fingerprint of the user, the terminal device may detect that the fingerprint module does not record fingerprint information, and may continue to execute S503. If the fingerprint module inputs the fingerprint of the user, the terminal device may detect that the fingerprint module records fingerprint information, and may continue to execute S505.
S503, if the fingerprint module is not recorded with fingerprint information, judging whether the fingerprint module is in a dormant state.
Under the condition that the fingerprint module records fingerprint information, the fingerprint module can comprise an idle state and a dormant state.
Illustratively, fig. 6 shows a schematic diagram of a fingerprint module state. As shown in fig. 6, in the case that the display screen is in the off-screen state, if the fingerprint module records fingerprint information, the fingerprint module may include an authentication state (authentication), a Cancel state (Cancel), an Idle state (Idle), and a Sleep state (Sleep). If the fingerprint module has no fingerprint information recorded, the fingerprint module may include an Idle state (Idle) and a Sleep state (Sleep).
The terminal device can determine whether the fingerprint module is in a sleep state. If the fingerprint module is in the sleep state, the terminal device may wake up the fingerprint module, that is, execute S504; if the fingerprint module is not in the sleep state, the terminal device can directly read the chip identifier of the chip where the fingerprint module is located, and then S505 is executed. It can be appreciated that if the fingerprint module is not in the sleep state, the fingerprint module may be in the idle state.
S504, if the fingerprint module is not recorded with fingerprint information and is in a dormant state, waking up the fingerprint module.
The fingerprint module is in a dormant state, and then enters a low-power consumption state, and the terminal equipment can wake up the fingerprint module through a command or a chip where the fingerprint module is reset. And after the fingerprint module is awakened, entering an idle state.
The idle state is the default state after the fingerprint module is powered on or reset. When the fingerprint module is in an idle state, the terminal device can switch the fingerprint module to any other state through a command. It should be noted that, all the states of the fingerprint module must be switched to the idle state and then to other modes.
It should be further noted that, the fingerprint module may be in an input state, an authentication state, a cancel state, an idle state, or a sleep state, and may also be referred to as an input mode, an authentication mode, a cancel mode, an idle mode, or a sleep mode.
S505, continuously reading the chip identification of the chip where the fingerprint module is located for a plurality of times.
The terminal device can periodically or continuously read the chip identification of the chip where the fingerprint module is located for a plurality of times in a fixed time. The number of times that the terminal device reads the chip identifier of the chip where the fingerprint module is located can be called a first preset number of times, and the number of times is preset in the terminal device after the developer marks the number of times. The first preset number of times may be 3 times, 4 times, 5 times, 6 times, or the like, which is not limited in the embodiment of the present application.
For example, the terminal device may read the chip identifier of the chip on which the fingerprint module is located every 1 second, and continuously read 3 times. Or the terminal equipment reads the chip identification of the chip where the fingerprint module is located once in the 1 st second, the 5 th second and the 60 th second in one minute.
S506, judging whether all the reading fails.
The terminal equipment judges whether the reading fails each time.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 3 times, the terminal device may determine whether all of the 3 times of reading fails.
If the terminal device fails to read each time, the terminal device may execute S508. If the terminal device fails to read every time, that is, there is at least one successful reading, the terminal device may execute S507.
S507, if the reading fails, the terminal equipment can determine that the fingerprint module is abnormal.
If the terminal device fails to read every time, it can be stated that the fingerprint module is not abnormal, and the terminal device can determine that the fingerprint module is not abnormal.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 3 times, and the 3 times are not all the reading failures, the terminal device may determine that the fingerprint module is not abnormal.
S508, if all the reading fails, the terminal equipment can determine that the fingerprint module is abnormal.
If the terminal equipment fails to read every time, the fingerprint module is abnormal, the terminal equipment can determine that the fingerprint module is abnormal, and the terminal equipment can perform power-down operation on the fingerprint module.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 3 times, and all the 3 times of reading fail, the terminal device may determine that the fingerprint module is abnormal.
According to the control method of the fingerprint module, provided by the embodiment of the application, under the state that the display screen is turned off, the identification of the chip where the fingerprint module is located is read for a plurality of times, if the reading for a plurality of times fails, the fingerprint module is determined to be abnormal, and the fingerprint module is powered down, so that the temperature of the fingerprint module is prevented from rising, and the risk of scalding a user is reduced.
In the screen-off scene, the embodiment of the application also provides a control method of the fingerprint module.
Illustratively, fig. 7 shows a schematic flow chart of a control method 700 of a further fingerprint module. As shown in fig. 7, the method 700 may include S501-S506 described above.
After S506, the method 700 further comprises the steps of:
s701, detecting that the chip identification of the chip where the fingerprint module is located is failed.
S702, performing power-on operation after performing power-off operation on the fingerprint module.
The terminal device may perform the power-up operation on the fingerprint module immediately after performing the power-down operation on the fingerprint module, or may perform the power-up operation on the fingerprint module after waiting for a period of time after performing the power-down operation on the fingerprint module.
S703, reading the chip identification of the chip where the fingerprint module is located again and again.
The terminal device can read the chip identification of the chip where the fingerprint module is located again periodically or continuously for a plurality of times in a fixed time. The number of times that the terminal device re-reads the chip identifier of the chip where the fingerprint module is located may be referred to as a second preset number of times, which is preset in the terminal device after the developer marks. The second preset number of times may be 3 times, 4 times, 5 times, 6 times, or the like, which is not limited in the embodiment of the present application. The second preset times may be the same as or different from the first preset times, which is not limited in the embodiment of the present application.
S704, judging whether all the reading fails.
The terminal equipment judges whether the reading fails each time.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 6 times, the terminal device may determine whether all of the 6 times of reading fails.
If the terminal device fails to read each time, the terminal device may execute S706. If the terminal device fails to read every time, that is, there is at least one successful reading, the terminal device may execute S705.
And S705, if the reading fails, the terminal equipment can determine that the fingerprint module has no abnormality.
If the terminal device fails to read every time, it can be stated that the fingerprint module is not abnormal, and the terminal device can determine that the fingerprint module is not abnormal.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 6 times, and all the 6 times of reading fail, the terminal device may determine that the fingerprint module is not abnormal.
S706, if all the reading fails, the terminal equipment can determine that the fingerprint module is abnormal.
If the terminal equipment fails to read every time, the fingerprint module is abnormal, the terminal equipment can determine that the fingerprint module is abnormal, and the terminal equipment can perform power-down operation on the fingerprint module.
For example, if the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located 6 times, and all the 6 times of reading fail, the terminal device may determine that the fingerprint module is abnormal.
According to the control method of the fingerprint module, in the display screen failure state, if the fingerprint module fails to be read for many times, the fingerprint module can be powered on after being powered off, whether the chip identification of the chip where the fingerprint module is located can be read is judged again, and when the fingerprint module fails to be read again, the fingerprint module is determined to be abnormal, so that the risk of misjudgment is reduced.
In the above method 300, method 500 and method 700, the terminal device continuously reads the chip identifier of the chip where the fingerprint module is located multiple times, and determines whether the fingerprint module is abnormal according to the multiple results, which is just one possible implementation manner. The embodiment of the application also provides another possible implementation mode, and after the terminal equipment reads the chip identifier of the chip where the fingerprint module is located, whether the reading fails or not is judged; if the reading fails, the terminal equipment judges whether the number of continuous reading failures exceeds a first preset number; if the number of continuous reading failures does not exceed the first preset number, the terminal equipment can re-read the chip identification of the chip where the fingerprint module is located, and re-judge whether the reading is successful or not. If the number of continuous reading failures exceeds the first preset number, the terminal equipment can determine that the fingerprint module is abnormal. It can be understood that if the terminal device can read successfully, the terminal device determines that the fingerprint module is not abnormal.
As an alternative embodiment, the method 300, the method 500, or the method 700 may further include: if the terminal equipment reads the overcurrent protection interrupt mark, the terminal equipment determines that the fingerprint module is damaged at one stage; or if the terminal equipment does not read the overcurrent protection interrupt mark, the terminal equipment determines that the fingerprint module is damaged in the second stage, and the damage level of the second stage is higher than that of the first stage.
In the existing hardware detection scheme, as shown in fig. 1, when the input current of the fingerprint module is too large, the terminal device may generate an overcurrent protection interrupt flag and write the overcurrent protection interrupt flag into the register. In the method provided by the embodiment of the application, the terminal equipment determines that the fingerprint module is abnormal, and if the terminal equipment also reads the overcurrent protection interrupt mark in the register, the terminal equipment can determine that the fingerprint module is damaged at one stage. The terminal equipment determines that the fingerprint module is abnormal, and if the terminal equipment does not read the overcurrent protection interrupt mark in the register, the terminal equipment can determine that the fingerprint module is damaged in the second stage.
According to the control method of the fingerprint module, provided by the embodiment of the application, on the basis that the abnormality of the fingerprint module is determined without reading the chip identifier, the damage degree of the fingerprint module can be determined by reading the overcurrent protection interrupt mark, information can be provided for subsequent maintenance, and the efficiency of the subsequent maintenance is improved.
The method provided by the embodiment of the application can be executed by a power management module, a display driver, a fingerprint module abnormal identification module and a fingerprint processing module in the terminal equipment.
Illustratively, fig. 8 shows a schematic flow chart of a control method 800 of a fingerprint module. As shown in fig. 8, the method 800 may include the steps of:
S801, the display driver detects that the display screen is in a bright screen state.
When the display screen is in a bright screen state, the user can enter fingerprint information, namely, save the fingerprint information.
S802, acquiring fingerprint information of a user through a fingerprint module by the fingerprint module abnormality identification module.
When the fingerprint module is not abnormal, fingerprint information of a user can be acquired. After the fingerprint module collects fingerprint information, the fingerprint information can be sent to the fingerprint module abnormal recognition module, and correspondingly, the fingerprint module abnormal recognition module can receive the fingerprint information of a user.
S803, the fingerprint module anomaly identification module sends fingerprint information of the user to the fingerprint processing module, and correspondingly, the fingerprint processing module receives the fingerprint information of the user.
The fingerprint processing module is used for processing fingerprint information, and the fingerprint module abnormal recognition module sends the fingerprint information of the user to the fingerprint processing module so as to process the fingerprint information of the user.
S804, the fingerprint processing module inputs fingerprint information based on the fingerprint information.
The fingerprint processing module may perform the input of the received fingerprint information, i.e. save the fingerprint information of the user, based on the input operation of the user, in response to the input operation.
S805, the fingerprint processing module returns an input result to the fingerprint module abnormal recognition module.
The input result is input success or input failure. The fingerprint processing module returns the input result to the fingerprint module abnormal recognition module so as to feed back the result to the user, know the input progress with the user and improve the user experience.
S806, the display driver detects that the fingerprint module is in a dormant state.
S807, the display driver sends wake-up indication information to the fingerprint module abnormal recognition module, and correspondingly, the fingerprint module abnormal recognition module receives the wake-up indication information, wherein the wake-up indication information is used for indicating the fingerprint module abnormal recognition module to wake up the fingerprint module.
S808, the fingerprint module abnormality recognition module wakes up the fingerprint module based on the wake-up indication information.
S809, the display driver sends indication information of the read chip identifier to the fingerprint module abnormal identification module, correspondingly, the fingerprint module abnormal identification module receives the indication information of the read chip identifier, and the indication information of the read chip identifier is used for indicating the fingerprint module abnormal identification module to read the chip identifier of the chip where the fingerprint module is located.
S810, the fingerprint module abnormality recognition module creates a thread for reading the chip identifier based on the indication information of the chip identifier.
The fingerprint module abnormality recognition module can independently create a thread based on the indication information of the read chip identifier, and is specially used for reading the chip identifier of the chip where the fingerprint module is located.
In the implementation mode, a thread is independently created for reading the chip identifier, and other operation threads of the terminal equipment in the bright screen state can not be changed, so that the normal operation of the terminal equipment is facilitated.
S811, the fingerprint module abnormality identification module operates a thread for reading the chip identification, and obtains an operation result.
The fingerprint module abnormal identification module reads the chip identification of the chip where the fingerprint module is located by running a thread for reading the chip identification. If the chip identification is read, the operation result can be that the reading is successful; if the chip identifier is not read, the operation result may be a read failure.
If the reading is successful, it can be indicated that the fingerprint module has no abnormality. If the reading fails, it can be indicated that there may be an abnormality in the fingerprint module.
And S812, if the operation result is that the reading fails, the fingerprint module abnormal identification module judges whether the number of continuous reading failures is larger than or equal to a first preset number.
The first preset number of times may be 3 times, but the embodiment of the present application is not limited thereto.
If the operation result is the reading failure, the fingerprint module abnormal recognition module judges that the number of times of the reading failure is greater than or equal to a first preset number of times, if the number of times of the reading failure is smaller than the first preset number of times, the fingerprint module abnormal recognition module can continue to operate the thread for reading the chip identifier and obtain the operation result, and if the operation result is the reading failure, the fingerprint module abnormal recognition module continues to judge whether the number of times of the continuous reading failure is greater than or equal to the first preset number of times until the number of times of the continuous reading failure is greater than or equal to the first preset number of times.
If the operation result is that the reading is successful, the fingerprint module abnormality identification module can determine that the fingerprint module has no abnormality.
And S813, if the number of continuous reading failures is greater than or equal to the first preset number, the fingerprint module abnormal identification module sends power-down indication information to the fingerprint driving module, correspondingly, the fingerprint driving module receives the power-down indication information, and the power-down indication module is used for indicating the power management module to perform power-down operation on the fingerprint module.
If the number of continuous reading failures is greater than or equal to the first preset number, the fingerprint module abnormality identification module can determine that the fingerprint module is abnormal and send power-down indication information to the fingerprint driving module.
S814, the fingerprint driving module sends the power-down indication information to the power management module, correspondingly, the power management module receives the power-down indication information and performs power-down operation on the fingerprint module based on the power-down indication information.
According to the control method for the fingerprint module, in the state that the display screen is on, the newly built thread reads the identification of the chip where the fingerprint module is located, if the number of continuous reading failures is greater than or equal to the first preset number, the fingerprint module is determined to be abnormal, and the fingerprint module is powered down, so that the temperature of the fingerprint module is prevented from rising, and the risk of scalding a user is reduced.
Fig. 9 shows a schematic flow chart of another control method 900 of a fingerprint module. As shown in fig. 9, the method 900 may include the steps of:
s901, detecting that a display screen is in a screen-off state by display driving.
When the display screen is in the off-screen state, the terminal equipment is in a low-power consumption state.
S902, acquiring fingerprint information of a user through a fingerprint module by the fingerprint module abnormality identification module.
When the fingerprint module is not abnormal, fingerprint information of a user can be acquired. After the fingerprint module collects fingerprint information, the fingerprint information can be sent to the fingerprint module abnormal recognition module, and correspondingly, the fingerprint module abnormal recognition module can receive the fingerprint information of a user.
S903, the fingerprint module abnormality recognition module sends fingerprint information of the user to the fingerprint processing module, and correspondingly, the fingerprint processing module receives the fingerprint information of the user.
The fingerprint processing module is used for processing fingerprint information, and the fingerprint module abnormal recognition module sends the fingerprint information of the user to the fingerprint processing module so as to process the fingerprint information of the user.
S904, the fingerprint processing module verifies the fingerprint information based on the fingerprint information.
When the display screen is in the off-screen state, the user can unlock the display screen through fingerprints so as to use the terminal equipment.
The fingerprint processing module may verify the received fingerprint information in response to an unlocking operation of the user to determine whether to unlock.
Illustratively, the fingerprint processing module may pre-process fingerprint information, extract features, and match based on features.
S905, the fingerprint processing module returns a verification result to the fingerprint module abnormal recognition module.
The verification result is verification success or verification failure. The fingerprint processing module returns a verification result to the fingerprint module abnormal recognition module so as to feed back the result to the user, know the verification progress with the user and improve user experience.
S906, the display driver detects that the fingerprint module is in a dormant state without recording fingerprint information.
The display driver can detect whether the fingerprint module is recorded with fingerprint information or not, and can also detect the state of the fingerprint module. If the fingerprint module is not recorded with fingerprint information and is in a dormant state, the display driver can detect that the fingerprint module is in the dormant state and is not recorded with fingerprint information.
S907, the display driver sends wake-up indication information to the fingerprint module abnormal recognition module, and correspondingly, the fingerprint module abnormal recognition module receives the wake-up indication information, wherein the wake-up indication information is used for indicating the fingerprint module abnormal recognition module to wake up the fingerprint module.
S908, the fingerprint module abnormality recognition module wakes up the fingerprint module based on the wake-up indication information.
S909, displaying and driving to send indication information of the read chip identifier to the fingerprint module abnormal identification module, correspondingly, receiving the indication information of the read chip identifier by the fingerprint module abnormal identification module, wherein the indication information of the read chip identifier is used for indicating the fingerprint module abnormal identification module to read the chip identifier of the chip where the fingerprint module is located.
S910, the fingerprint module abnormality recognition module reads the chip identifier based on the indication information of the read chip identifier.
In the screen-off state, the fingerprint module abnormal identification module does not need a newly built thread to read the chip identifier. The developer can add the code for reading the chip identification into the existing thread and preset the code in the terminal equipment. After the fingerprint module abnormal identification module receives the indication information of the read chip identifier, the code of the read chip identifier is operated based on the indication information of the read chip identifier, and the new thread is not needed to read the chip identifier, so that the terminal equipment is in a low-power consumption operation mode as much as possible.
S911, if the reading fails, the fingerprint module abnormal recognition module judges whether the number of continuous reading failures is larger than or equal to a first preset number.
The first preset number of times may be 3 times, but the embodiment of the present application is not limited thereto.
If the operation result is that the reading fails, the fingerprint module abnormal identification module judges that the number of times of the reading failure is larger than or equal to a first preset number of times, and if the number of times of the reading failure is smaller than the first preset number of times, the fingerprint module abnormal identification module can continue to read the chip identification. If the continuous reading is failed, the fingerprint module abnormal identification module judges whether the number of continuous reading failures is larger than or equal to a first preset number of times or not until the number of continuous reading failures is larger than or equal to the first preset number of times.
If the operation result is that the reading is successful, the fingerprint module abnormality identification module can determine that the fingerprint module has no abnormality.
S912, if the number of times of the reading failure is greater than or equal to the first preset number of times, the fingerprint module abnormal recognition module sends power-down indication information to the fingerprint driving module, correspondingly, the fingerprint driving module receives the power-down indication information, and the power-down indication module is used for indicating the power management module to perform power-down operation on the fingerprint module.
If the number of continuous reading failures is greater than or equal to the first preset number, the fingerprint module abnormality identification module can approximately determine that the fingerprint module is abnormal and send power-down indication information to the fingerprint driving module.
And S913, the fingerprint driving module sends the power-down indication information to the power management module, correspondingly, the power management module receives the power-down indication information and performs power-down operation on the fingerprint module based on the power-down indication information.
S914, the fingerprint module abnormality recognition module sends power-on indication information to the fingerprint driving module, correspondingly, the fingerprint driving module receives the power-on indication information, and the power-on indication module is used for indicating the power management module to perform power-on operation on the fingerprint module.
In order to ensure that the fingerprint module is indeed abnormal, the fingerprint module abnormal identification module can send power-on indication information to indicate the power management module to perform power-on operation on the fingerprint module, and whether the fingerprint module can be successfully read can be judged again so as to improve the identification accuracy.
S915, the fingerprint driving module sends the power-on indication information to the power management module, correspondingly, the power management module receives the power-on indication information and performs power-on operation on the fingerprint module based on the power-on indication information.
S916, the fingerprint module abnormality identification module re-reads the chip identification.
S917, if the reading fails, the fingerprint module abnormal recognition module judges whether the number of continuous reading failures is greater than or equal to a second preset number.
The first preset number of times may be 6 times, but the embodiment of the present application is not limited thereto.
If the operation result is that the reading fails, the fingerprint module abnormal identification module judges that the number of times of the reading failure is greater than or equal to a second preset number of times, and if the number of times of the reading failure is smaller than the second preset number of times, the fingerprint module abnormal identification module can continue to read the chip identification. If the continuous reading is failed, the fingerprint module abnormal identification module judges whether the number of continuous reading failures is larger than or equal to a second preset number of times or not until the number of continuous reading failures is larger than or equal to the second preset number of times.
S918, if the number of continuous reading failures is greater than or equal to a second preset number, the fingerprint module abnormal recognition module sends power-down indication information to the fingerprint driving module, correspondingly, the fingerprint driving module receives the power-down indication information, and the power-down indication module is used for indicating the power management module to perform power-down operation on the fingerprint module.
If the number of continuous reading failures is greater than or equal to the second preset number, the fingerprint module abnormality identification module can determine that the fingerprint module is abnormal and send power-down indication information to the fingerprint driving module.
S919, the fingerprint driving module sends the power-down indication information to the power management module, correspondingly, the power management module receives the power-down indication information and performs power-down operation on the fingerprint module based on the power-down indication information.
According to the control method of the fingerprint module, provided by the embodiment of the application, under the state that the display screen is turned off, the identification of the chip where the fingerprint module is located is read, if the number of continuous reading failures is greater than or equal to the first preset number, the fingerprint module is determined to be abnormal, and the fingerprint module is powered down, so that the temperature of the fingerprint module is prevented from rising, and the risk of scalding a user is reduced. In addition, the embodiment of the application can further electrify the fingerprint module after electrifying the fingerprint module, judge whether the chip identification of the chip where the fingerprint module is located can be read again, and if the number of continuous reading failures is greater than or equal to the second preset number of times, determine that the fingerprint module is abnormal, thereby improving the identification accuracy and being beneficial to reducing the risk of misjudgment.
The sequence numbers of the processes in the above embodiments do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic, and should not limit the implementation process of the embodiments of the present application.
The method provided by the embodiment of the present application is described in detail above with reference to fig. 1 to 9, and the apparatus provided by the embodiment of the present application will be described in detail below with reference to fig. 10 and 11.
Fig. 10 is a schematic block diagram of a control device 1000 of a fingerprint module according to an embodiment of the present application. The control device 1000 of the fingerprint module includes: a reading module 1010 and a processing module 1020. Wherein, the reading module 1010 is configured to: reading a chip identifier of a chip where the fingerprint module is located; the processing module 1020 is configured to: if the number of continuous failure times of reading the chip identification is greater than or equal to the first preset number of times, powering down the fingerprint module.
Optionally, the reading module 1010 is further configured to: if the display screen of the control device 1000 is in the bright screen state and the fingerprint module is in the input state, the authentication state, the cancel state or the idle state, the chip identifier is read.
Optionally, if the display screen of the control device 1000 is in a bright screen state and the fingerprint module is in a dormant state, waking up the fingerprint module; the reading module 1010 is further configured to: and reading the chip identification.
Optionally, the reading module 1010 is further configured to: if the display screen of the control device 1000 is in the off-screen state and the fingerprint module stores fingerprint information, the chip identifier is read.
Optionally, the reading module 1010 is further configured to: if the display screen of the control device 1000 is in the off-screen state, the fingerprint module does not store fingerprint information, and the fingerprint module is in the idle state, the chip identifier of the chip where the fingerprint module is located is read.
Optionally, the processing module 1020 is further configured to: if the display screen of the control device 1000 is in a screen-off state, the fingerprint module does not store fingerprint information, and the fingerprint module is in a dormant state, waking up the fingerprint module; the reading module 1010 is further configured to: and reading the chip identification.
Optionally, the processing module 1020 is further configured to: powering up the fingerprint module; the reading module 1010 is further configured to: re-reading the chip identification; the processing module 1020 is further configured to: if the number of continuous failure times of the reading chip identification is larger than or equal to the second preset number of times, powering down the fingerprint module, wherein the second preset number of times is larger than or equal to the first preset number of times.
It should be understood that the control device 1000 herein is embodied in the form of functional modules. The term module herein may refer to an application specific integrated circuit (application specific integrated circuit, ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor, etc.) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an alternative example, it will be understood by those skilled in the art that the control apparatus 1000 may be specifically a terminal device in the foregoing method embodiment, or the functions of the terminal device in the foregoing method embodiment may be integrated in the control apparatus 1000, and the control apparatus 1000 may be configured to execute each flow and/or step corresponding to the terminal device in the foregoing method embodiment, which is not repeated herein for avoiding repetition.
The control device 1000 has a function of implementing the corresponding steps executed by the terminal device in the method embodiment; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In an embodiment of the present application, the control device 1000 in fig. 10 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 11 is a schematic block diagram of another control device 1100 of a fingerprint module according to an embodiment of the present application. The control device 1100 includes: a processor 1110, a transceiver 1120, and a memory 1130. Wherein the processor 1110, the transceiver 1120 and the memory 1130 are in communication with each other through an internal connection path, the memory 1130 is configured to store instructions, and the processor 1110 is configured to execute the instructions stored in the memory 1130 to control the transceiver 1120 to transmit signals and/or receive signals.
It should be understood that the control apparatus 1100 may be specifically a terminal device in the foregoing method embodiment, or the functions of the terminal device in the foregoing method embodiment may be integrated in the control apparatus 1100, and the control apparatus 1100 may be configured to execute each step and/or flow corresponding to the terminal device in the foregoing method embodiment. Alternatively, the memory 1130 may include read only memory and random access memory, and provide instructions and data to the control device 1100. A portion of memory 1130 may also include non-volatile random access memory. For example, the memory 1130 may also store information of the type of device. The processor 1110 may be configured to execute instructions stored in the memory 1130, and when the processor 1110 executes the instructions, the processor 1110 may perform the steps and/or processes corresponding to the terminal device in the above-described method embodiments.
It is to be appreciated that in embodiments of the present application, the processor 1110 may be a central processing unit (central processing unit, CPU), the processor 1110 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein.
The application also provides a computer readable storage medium, which stores a computer program for implementing the method corresponding to the terminal device in the method embodiment.
The application also provides a chip system which is used for supporting the terminal equipment to realize the functions shown in the embodiment of the application in the embodiment of the method.
The present application also provides a computer program product comprising a computer program (which may also be referred to as code, or instructions) which, when run on a computer, is adapted to perform the method corresponding to the terminal device shown in the above-mentioned method embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific implementation of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art may easily think about changes or substitutions within the technical scope of the embodiments of the present application, and all changes and substitutions are included in the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method of a fingerprint module, which is applied to a terminal device, the method comprising:
the terminal equipment reads a chip identifier of a chip where the fingerprint module is located;
and if the number of continuous failure times of reading the chip identification is greater than or equal to a first preset number of times, the terminal equipment performs power-down operation on the fingerprint module.
2. The method of claim 1, wherein the terminal device reads a chip identifier of a chip on which the fingerprint module is located, including:
and if the display screen of the terminal equipment is in a bright screen state and the fingerprint module is in an input state, an authentication state, a cancel state or an idle state, the terminal equipment reads the chip identification.
3. The method according to claim 1 or 2, wherein the terminal device reads the chip identifier of the chip on which the fingerprint module is located, including:
and if the display screen of the terminal equipment is in a bright screen state and the fingerprint module is in a dormant state, the terminal equipment wakes up the fingerprint module first and then reads the chip identification.
4. A method according to any one of claims 1 to 3, wherein the terminal device reads a chip identifier of a chip on which the fingerprint module is located, including:
And if the display screen of the terminal equipment is in a screen-off state and the fingerprint module stores fingerprint information, the terminal equipment reads the chip identifier.
5. The method according to any one of claims 1 to 4, wherein the terminal device reads a chip identifier of a chip on which the fingerprint module is located, including:
and if the display screen of the terminal equipment is in a screen-off state, the fingerprint module does not store fingerprint information and the fingerprint module is in an idle state, the terminal equipment reads the chip identifier.
6. The method according to any one of claims 1 to 5, wherein the terminal device reads a chip identifier of a chip on which the fingerprint module is located, including:
if the display screen of the terminal equipment is in a screen-off state, the fingerprint module does not store fingerprint information, and the fingerprint module is in a dormant state, the terminal equipment wakes up the fingerprint module first, and then reads the chip identification.
7. The method according to any one of claims 4 to 6, further comprising:
the terminal equipment performs power-on operation on the fingerprint module;
the terminal equipment re-reads the chip identifier;
If the number of continuous failure times of reading the chip identification is greater than or equal to a second preset number of times, the terminal equipment performs power-down operation on the fingerprint module, and the second preset number of times is greater than or equal to the first preset number of times.
8. The utility model provides a controlling means of fingerprint module, its characterized in that includes: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory to cause the control apparatus to perform the method of any one of claims 1 to 7.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program which, when run, causes a computer to perform the method of any one of claims 1 to 7.
CN202211423002.2A 2022-11-15 2022-11-15 Control method and control device of fingerprint module Active CN116700802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211423002.2A CN116700802B (en) 2022-11-15 2022-11-15 Control method and control device of fingerprint module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211423002.2A CN116700802B (en) 2022-11-15 2022-11-15 Control method and control device of fingerprint module

Publications (2)

Publication Number Publication Date
CN116700802A true CN116700802A (en) 2023-09-05
CN116700802B CN116700802B (en) 2024-07-30

Family

ID=87843996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211423002.2A Active CN116700802B (en) 2022-11-15 2022-11-15 Control method and control device of fingerprint module

Country Status (1)

Country Link
CN (1) CN116700802B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111103963A (en) * 2019-12-10 2020-05-05 惠州Tcl移动通信有限公司 Fingerprint module starting method and device, storage medium and terminal
CN111814586A (en) * 2020-06-18 2020-10-23 维沃移动通信有限公司 Fingerprint module control method and device, electronic equipment and readable storage medium
CN112560645A (en) * 2020-12-11 2021-03-26 维沃移动通信有限公司 State control method and device and electronic equipment
CN114168395A (en) * 2021-11-12 2022-03-11 天固信息安全系统(深圳)有限公司 Chip power-on control method, control device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111103963A (en) * 2019-12-10 2020-05-05 惠州Tcl移动通信有限公司 Fingerprint module starting method and device, storage medium and terminal
CN111814586A (en) * 2020-06-18 2020-10-23 维沃移动通信有限公司 Fingerprint module control method and device, electronic equipment and readable storage medium
CN112560645A (en) * 2020-12-11 2021-03-26 维沃移动通信有限公司 State control method and device and electronic equipment
CN114168395A (en) * 2021-11-12 2022-03-11 天固信息安全系统(深圳)有限公司 Chip power-on control method, control device and storage medium

Also Published As

Publication number Publication date
CN116700802B (en) 2024-07-30

Similar Documents

Publication Publication Date Title
CN107885534B (en) Screen locking method, terminal and computer readable medium
CN103294161B (en) Electronic device
CN103703454A (en) On-demand tab rehydration
CN108563968B (en) Card reading method, payment terminal and terminal equipment
CN104731593A (en) Information processing method and electronic equipment
US20240264915A1 (en) Data storage method and apparatus, and electronic device and readable storage medium
CN116320147B (en) Awakening method and electronic equipment
CN116501399B (en) Awakening method and electronic equipment
CN106021024B (en) A kind of user terminal stops response reminding method and user terminal
CN116700802B (en) Control method and control device of fingerprint module
JP2019523466A (en) Method and apparatus for unlocking terminal screen
CN104123512A (en) Method and device for switching between intelligent secrete key equipment modes
CN104516472A (en) Processor and data processing method
CN117130834A (en) Method for preventing magnetic field from interfering operation of electronic equipment and electronic equipment
CN108132803B (en) Timing keep-alive and awakening method, system, terminal and medium based on mobile terminal
CN106293796B (en) A kind of information processing method and electronic equipment
CN112988540B (en) Primitive replacement method, system, computer readable storage medium and terminal device
CN108009039A (en) Recording method, device, storage medium and the electronic equipment of end message
WO2017050056A1 (en) Application security protection processing method and device, and terminal equipment
CN114816031A (en) Power saving method of terminal device, terminal device and medium
CN105607727B (en) Information display method and device and electronic equipment
US20160283718A1 (en) Information processing device and information processing method
CN106803902B (en) Electric quantity display method and display device of infrared remote control device
CN117631793B (en) Reset method, reset device, computer equipment and storage medium
CN117435259B (en) VPU configuration method and device, electronic equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant