Fingerprint module control method, device, electronic device and readable storage medium
By receiving user input in the electronic device and obtaining and resetting the working status of the fingerprint module when it does not receive information, the problem that the fingerprint module is susceptible to interference in the side layout is solved, and the success rate of fingerprint entry and the safety of the device are improved. reliability.
Patent Information
- Application Number
- CN202010561230.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-18
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-09-17
AI Technical Summary
The existing fingerprint module layout in the side area of the electronic device is susceptible to static electricity and electromagnetic interference, resulting in a high fingerprint entry failure rate and an increased risk of module jamming.
By receiving user input, the fingerprint module is controlled to enter the fingerprint entry state, and the working status of the module is obtained when fingerprint information is not received within the preset time. If abnormal, it is reset and reset to the fingerprint entry state to avoid interruption and Reduce the risk of jamming.
It effectively reduces the fingerprint entry failure rate and the risk of module stuck, ensuring the continuity and success rate of the fingerprint entry process.
Smart Images

Figure CN111814586B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a fingerprint module control method, a fingerprint module control device, an electronic device and a readable storage medium. Background Art
[0002] With the development of electronic devices, electronic devices are generally equipped with fingerprint modules for fingerprint recognition. Currently, fingerprint modules can be placed below the main screen of the electronic device, i.e., the front fingerprint module, and in the middle area of the back screen, i.e., the rear fingerprint module. With the popularization of full-screen devices, considering that the front fingerprint module and the rear fingerprint module damage the integrity of the main screen and the back screen of the electronic device, they also have a certain impact on the appearance of the electronic device.
[0003] Therefore, in order to make electronic devices support full screen, it has become a trend in related technologies to set the fingerprint module in the side area of the electronic device, namely the side fingerprint module. However, the side area of the electronic device is configured with physical buttons such as the power off button and the volume button, and the space in the side area is narrow, which limits the wiring space of the side fingerprint module, resulting in the anti-static and anti-electromagnetic interference capabilities of the side fingerprint module being poorer than the above-mentioned front fingerprint module and rear fingerprint module.
[0004] Therefore, the fingerprint module is susceptible to static electricity and electromagnetic interference, resulting in a high fingerprint entry failure rate and the risk of the fingerprint module being stuck by the above interference. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a fingerprint module control method, a fingerprint module control device, an electronic device and a readable storage medium, which can solve the problem in the related art that the fingerprint module is susceptible to static electricity and electromagnetic interference, resulting in a high fingerprint entry failure rate and the risk of the fingerprint module being stuck by the above-mentioned interference.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a fingerprint module control method, which is applied to an electronic device, wherein the electronic device is configured with a fingerprint module, and the method includes:
[0008] receiving a first input from a user;
[0009] In response to the first input, controlling the fingerprint module to enter a fingerprint entry state;
[0010] If the fingerprint information collected by the fingerprint module is not received within a preset time period, obtaining the working status of the fingerprint module;
[0011] When the working state of the fingerprint module is abnormal, the fingerprint module is reset and the working state of the reset fingerprint module is set to the fingerprint entry state.
[0012] In a second aspect, an embodiment of the present application provides a fingerprint module control device, which is applied to an electronic device, wherein the electronic device is equipped with a fingerprint module, and the device includes:
[0013] A receiving module, used for receiving a first input from a user;
[0014] A control module, configured to control the fingerprint module to enter a fingerprint entry state in response to the first input;
[0015] An acquisition module, used for acquiring the working state of the fingerprint module when the fingerprint information collected by the fingerprint module is not received within a preset time period;
[0016] The setting module is used for resetting the fingerprint module and setting the working state of the reset fingerprint module to the fingerprint entry state when the working state of the fingerprint module is abnormal.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0020] In an embodiment of the present application, a first input from a user can be received, and in response to the first input, the fingerprint module can be controlled to enter a fingerprint entry state, so that the fingerprint module can collect fingerprint information in this fingerprint entry state. If the fingerprint information collected by the fingerprint module is not received within a preset time period, it means that the fingerprint module is likely to be subject to electrostatic or electromagnetic interference, resulting in an abnormal working state. Therefore, in order to avoid interruption of fingerprint entry by the fingerprint module and reduce the risk of the fingerprint module being stuck, the working state of the fingerprint module can be obtained. If the working state is abnormal, it means that the fingerprint module has indeed changed its state due to the above-mentioned interference. Therefore, the fingerprint module can be reset, and the working state of the reset fingerprint module can be set to the fingerprint entry state, so that the fingerprint module can continue to collect fingerprints to complete the fingerprint entry work, avoid interruption of fingerprint entry, reduce the fingerprint entry failure rate, and further reduce the risk of the fingerprint module being stuck by the above-mentioned interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of a fingerprint module control method according to an embodiment of the present application;
[0022] Figure 2 is a flow chart of a fingerprint module control method according to another embodiment of the present application;
[0023] Figure 3 is a block diagram of a fingerprint module control device according to an embodiment of the present application;
[0024] Figure 4 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
[0025] Figure 5 It is a schematic diagram of the hardware structure of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0028] The fingerprint module control method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0029] Reference Figure 1 , shows a flow chart of a fingerprint module control method according to an embodiment of the present application, which is applied to an electronic device, wherein the electronic device is equipped with a fingerprint module.
[0030] The fingerprint module can be configured in the main screen area, the back screen area, or the side area of the electronic device.
[0031] The fingerprint module may be affected by static electricity or electromagnetic interference. In particular, when the fingerprint module is set in the above-mentioned side area, the wiring space of the fingerprint module is limited due to the narrow side area. Therefore, when the user enters the fingerprint through the fingerprint module, the fingerprint module is more likely to be affected by static electricity or electromagnetic interference, which may easily cause the fingerprint module to work abnormally and the fingerprint data entry to be interrupted, resulting in a high fingerprint entry failure rate and a high risk of the fingerprint module being stuck by the above-mentioned interference.
[0032] Therefore, the present application embodiment provides Figure 1 The method shown in the embodiment of the present application can be used to solve the above technical problems. In addition, in order to facilitate understanding of the method of the embodiment of the present application, readers can also refer to Figure 2 The flowchart shown in FIG. 1 is used to understand the technical solution of the embodiment of the present application. Figure 1 As shown, the method may specifically include the following steps:
[0033] Step 101, receiving a first input from a user;
[0034] In various application scenarios, the user may have a need to enter a fingerprint, so the first input is used to represent an input requesting to enter fingerprint information.
[0035] For example, when the electronic device is initialized for the first time, the owner's fingerprint needs to be recorded. Then the input of requesting fingerprint recording triggered by the user on the interface of recording the owner's fingerprint of the electronic device can be an example of the first input.
[0036] In addition, when the user needs to unlock the screen of the electronic device, the user is required to enter the fingerprint. Therefore, the user can trigger the unlock input on the lock screen interface of the electronic device or touch the fingerprint module to trigger the above-mentioned first input;
[0037] In addition, when the user needs to use the fingerprint for the mobile payment function, the user can trigger the input of using the fingerprint for payment verification on the mobile payment interface of the electronic device, which is also an example of the above-mentioned first input.
[0038] Step 102, in response to the first input, controlling the fingerprint module to enter a fingerprint entry state;
[0039] Wherein, the fingerprint module in the fingerprint entry state is used to collect fingerprint information;
[0040] Among them, after controlling the fingerprint module to enter the fingerprint entry state, after the finger touches the fingerprint sensor of the fingerprint module, the fingerprint module can collect fingerprint information. However, if the fingerprint module is subject to electromagnetic interference and its working state changes, so that the working state of the fingerprint module is not the preset fingerprint entry state, even if the finger touches the fingerprint module, the fingerprint module cannot collect fingerprint information.
[0041] In an example, the electronic device may include not only the fingerprint module mentioned above, but also a CPU module. The CPU module may control the fingerprint module to enter a fingerprint entry state in response to the first input.
[0042] It should be noted that the fingerprint module can support multiple states, such as fingerprint entry state and sleep state, while the fingerprint module can only be in one state. The fingerprint module can switch between the multiple states according to different working modes or requirements.
[0043] Here, the CPU module is mainly used to control the fingerprint module to enter the fingerprint entry state. For example, the fingerprint entry state is state 1, and when the fingerprint module is in state 1, the fingerprint module can collect fingerprint information; however, when the fingerprint module is in other states, such as the dormant state represented by state 2, even if the user touches the fingerprint sensor of the fingerprint module with a finger, the fingerprint module cannot collect fingerprint information.
[0044] In one example, if Figure 2As shown, when the CPU module controls the fingerprint module to enter the fingerprint recording state (i.e., the fingerprint recording state), the CPU module starts the countdown for the preset time, and the fingerprint module starts to collect fingerprint information after entering the fingerprint recording state. If the fingerprint module collects fingerprint information, an interrupt signal including the collected fingerprint information can be sent to the CPU module. Therefore, Figure 2 As shown, within the countdown time, the CPU module can collect fingerprint input data from the fingerprint module and determine whether the collected fingerprint input data contains fingerprint data; if so, for example, the CPU module receives fingerprint information collected by the fingerprint module from the fingerprint module within the preset time, the CPU module resets the countdown to zero, restarts the countdown for the preset time, and continues to input the next set of data, that is, returns to the step of collecting fingerprint input data: collecting fingerprint input data from the fingerprint module and determining whether the collected fingerprint input data contains fingerprint data;
[0045] Among them, due to the difference in fingerprint entry time in different fingerprint entry scenarios, for example, in the scenario of identity verification by entering fingerprints, since the fingerprints have been entered in advance, the fingerprint module is faster and takes less time to collect fingerprint data. Therefore, it is easy for the CPU module to obtain fingerprint data through the fingerprint module before the countdown is reset;
[0046] On the contrary, if no, for example, the CPU module does not receive the fingerprint information collected by the fingerprint module from the fingerprint module, it can be determined whether the countdown has timed out, that is, whether the countdown has reached the preset time length;
[0047] If the countdown has timed out, that is, the countdown of the preset time has ended and the CPU module has not received the fingerprint information collected by the fingerprint module from the fingerprint module, it means that the CPU module has not received the fingerprint information collected by the fingerprint module from the fingerprint module within the preset time. Therefore, it can go to execute the following step 103.
[0048] Optionally, the method according to an embodiment of the present invention may further include: in response to a first input, when the countdown of a preset time period has not ended and the fingerprint information collected by the fingerprint module has not been received, detecting whether the fingerprint entry of the fingerprint module is completed within the preset time period; if not completed, continuing to detect whether the fingerprint module has collected fingerprint information within the preset time period of this countdown; if completed, ending the process.
[0049] In one example, if Figure 2As shown, if the countdown does not time out and the CPU module does not receive the collected fingerprint information from the fingerprint module, the CPU module responds to the first input and detects whether the fingerprint entry of the fingerprint module is completed within the preset time, that is, determines whether the data collection is completed;
[0050] Among them, due to the difference in fingerprint entry time in different fingerprint entry scenarios, for example, when a user uses the fingerprint entry function for the first time, he needs to enter fingerprint information for identity authentication (such as edge fingerprints, middle area fingerprints, etc.). Then the entry time of this fingerprint information is significantly longer than the fingerprint entry time for the above-mentioned identity verification. Therefore, in this scenario, the countdown may not time out, but the CPU module has not received the collected fingerprint information from the fingerprint module.
[0051] If the data collection is not completed, the fingerprint module continues to detect whether it has collected fingerprint information within the preset time. Since the countdown has not ended, it is only necessary to continue to the step of collecting fingerprints and entering data.
[0052] If the data collection is completed, it ends, and the CPU module controls the fingerprint module to exit the fingerprint entry state.
[0053] Step 103, when no fingerprint information collected by the fingerprint module is received within a preset time period, obtaining the working state of the fingerprint module;
[0054] In one example, after step 102, a countdown of a preset duration begins. If no interrupt signal carrying fingerprint information is received from the fingerprint module within the preset duration, it means that the fingerprint module may be affected by static electricity or electromagnetic interference, which causes the fingerprint module to work abnormally. The working state of the fingerprint module changes due to interference and is no longer in the fingerprint entry state. Therefore, the CPU module can obtain the current working state of the fingerprint module from the fingerprint module, that is, a working state among the multiple states supported by the fingerprint module.
[0055] That is to say, if the CPU module cannot collect the fingerprint information entered by the fingerprint module for a long time, the current working state of the fingerprint module can be directly read.
[0056] Step 104: when the working state of the fingerprint module is abnormal, the fingerprint module is reset and the working state of the reset fingerprint module is set to the fingerprint entry state.
[0057] The CPU module may determine whether the current working state of the fingerprint module is the working state that the CPU module controls the fingerprint module to enter in step 102, wherein the state is the fingerprint entry state;
[0058] If the working state is not the fingerprint entry state that the CPU module originally controlled the fingerprint module to enter, it means that the fingerprint module has been disturbed, causing its working state to change, indicating that the working state of the fingerprint module is abnormal. Therefore, in order to ensure the continuation of fingerprint entry, the CPU module can control the fingerprint module to restart, and reset the working state of the restarted fingerprint module to the fingerprint entry state, so that the fingerprint module can continue to collect fingerprint data in the fingerprint entry state.
[0059] In an embodiment of the present application, a first input from a user can be received, and in response to the first input, the fingerprint module can be controlled to enter a fingerprint entry state, so that the fingerprint module can collect fingerprint information in this fingerprint entry state. If the fingerprint information collected by the fingerprint module is not received within a preset time period, it means that the fingerprint module is likely to be subject to electrostatic or electromagnetic interference, resulting in an abnormal working state. Therefore, in order to avoid interruption of fingerprint entry by the fingerprint module and reduce the risk of the fingerprint module being stuck, the working state of the fingerprint module can be obtained. If the working state is abnormal, it means that the fingerprint module has indeed changed its state due to the above-mentioned interference. Therefore, the fingerprint module can be reset, and the working state of the reset fingerprint module can be set to the fingerprint entry state, so that the fingerprint module can continue to collect fingerprints to complete the fingerprint entry work, avoid interruption of fingerprint entry, reduce the fingerprint entry failure rate, and further reduce the risk of the fingerprint module being stuck by the above-mentioned interference.
[0060] Optionally, when executing step 102, the fingerprint module may be controlled to enter a fingerprint entry state by sending a control command to the fingerprint module;
[0061] Each of the multiple states supported by the fingerprint module is pre-configured with a corresponding code, and different states correspond to different codes, so the CPU module can obtain a preset code (such as 02) that matches the fingerprint entry state. The preset code is used to represent the fingerprint entry state.
[0062] The control command is used to instruct the fingerprint module to enter the fingerprint entry state, and is used to set the value of the preset register of the fingerprint module to the preset code matching the fingerprint entry state;
[0063] It should be noted that the working state of the fingerprint module is consistent with the working state represented by the value in the preset register of the fingerprint module. For example, if the value of the preset register is 01, it means that the working state of the fingerprint module is the working state corresponding to code 01.
[0064] In one example, after receiving the first input, the CPU module may send a control command to the fingerprint module in response to the first input, and the control command may control the fingerprint module to enter a fingerprint entry state.
[0065] After receiving the above control command, the fingerprint module can set the working state of the fingerprint module to the fingerprint entry state, and set the value of the preset register of the fingerprint module to the preset code.
[0066] Since the fingerprint module has multiple states, and each state is controlled by the CPU module, the CPU module can store the correspondence between the above-mentioned states and the codes representing the states. Then the CPU module can send control commands corresponding to different working states based on the correspondence.
[0067] Accordingly, when executing step 103, the working state of the fingerprint module can be obtained by obtaining the current value of the preset register;
[0068] For example, in Figure 2 In the example, the CPU module can read the value of a specific register of the fingerprint module (i.e., the fingerprint module), and then determine whether the value is correct, where the so-called correctness means whether the value is a preset code. If so, it is correct, and if not, it is wrong.
[0069] Among them, if the current value is not the preset code, it means that although the CPU module notifies the fingerprint module to set the state to the fingerprint entry state, the fingerprint module is subject to electromagnetic interference, resulting in a change in the working state of the fingerprint module originally set to the fingerprint entry state, causing the fingerprint module to modify the value of the preset register, and the value of the preset register is consistent with the working state of the fingerprint module. Therefore, if the current value is not the preset code, it can be determined that the working state of the fingerprint module is not the fingerprint entry state, that is, the working state is abnormal.
[0070] exist Figure 2 In the example of , if the register value is wrong, "reset the fingerprint and then enter the recording state", that is, step 104 resets the fingerprint module and sets the working state of the reset fingerprint module to the fingerprint recording state.
[0071] Optionally, if the current value is the preset code, it is determined that the working state of the fingerprint module is the fingerprint entry state.
[0072] exist Figure 2 In the example, if the timeout (i.e., the countdown ends) and the register value is correct, it means that the fingerprint module is not interfered by electromagnetic or static electricity, but the CPU module does not receive the collected fingerprint information from the fingerprint module, which means that the user may have actively interrupted when entering the fingerprint, causing the entry time to time out and no fingerprint information was collected. Therefore, it can be determined whether the fingerprint data collection is completed. If not, continue to jump to the step of collecting fingerprint entry data and continue to enter the fingerprint; if completed, the fingerprint module is controlled to exit the fingerprint entry state.
[0073] In the embodiment of the present application, a control command can be sent to the fingerprint module to instruct the fingerprint module to enter the fingerprint entry state, and the value of the preset register of the fingerprint module can be set to the preset code that matches the fingerprint entry state. Then, when the fingerprint information fed back by the fingerprint module is not received for a long time, the current value of the preset register can be obtained to determine whether the current value is the above preset code, thereby determining whether the working state of the fingerprint module is abnormal. If the current value is not the preset code, it means that the fingerprint module is subject to electromagnetic or static interference, which causes its working state to change and is no longer in the fingerprint entry state, that is, its working state is abnormal. Therefore, in order to avoid fingerprint entry interruption, the fingerprint module can be reset and the working state of the reset fingerprint module can be set to the fingerprint entry state, so that the fingerprint module can collect fingerprint information again in the fingerprint entry state, reduce the fingerprint entry failure rate, and reduce the risk of the fingerprint module being stuck due to the above interference.
[0074] Optionally, in one embodiment, when executing step 104 to set the working state of the reset fingerprint module to the fingerprint entry state, the working state of the reset fingerprint module can be set to the fingerprint entry state by sending the control command to the reset fingerprint module again.
[0075] Specifically, the CPU module can control the fingerprint module to restart, and then, by sending the above-mentioned control command again, the fingerprint module can be controlled to set the working state to the fingerprint entry state. After the fingerprint module receives the control command again, the working state of the fingerprint module can be set to the fingerprint entry state, and the value of the preset register of the fingerprint module can be set to the preset code matching the fingerprint entry state.
[0076] Alternatively, optionally, in one embodiment, when executing step 104 to set the working state of the reset fingerprint module to the fingerprint entry state, the working state of the reset fingerprint module can also be set to the fingerprint entry state by setting the value of the preset register to the preset code.
[0077] Specifically, in order to avoid the problem that when a control command is sent to the fingerprint module again, if the fingerprint module is subject to electromagnetic interference, the working state of the fingerprint module cannot be switched to the fingerprint entry state due to the control command, in this embodiment, the CPU module can directly modify the value of the preset register of the fingerprint module and modify its value to the preset code, so that the fingerprint module after the register value is modified can automatically reset its working state to the fingerprint entry state according to the modified value (i.e., the preset code).
[0078] In the embodiment of the present application, since the fingerprint module is subject to electromagnetic or static interference, its working state becomes abnormal, resulting in fingerprint entry interruption, and there is a high risk of the fingerprint module being stuck due to the above interference. Therefore, in the embodiment of the present application, in order to solve this problem, the fingerprint module can be reset to restart the fingerprint module, and then the control command is sent to the fingerprint module again; or, the value of the preset register is set to the preset code, and the working state of the fingerprint module is reset to the fingerprint entry state, so that the fingerprint module can re-collect fingerprint information in the fingerprint entry state to complete the fingerprint entry work, thereby reducing the fingerprint entry failure rate and the risk of the fingerprint module being stuck.
[0079] Optionally, the electronic device is further configured with a distance sensor arranged adjacent to the fingerprint module.
[0080] The distance sensor is also arranged in the side area of the electronic device.
[0081] In one example, the distance sensor may be a SAR (Sodium Adsorption Rate) sensor, which may be used to sense the proximity of an external object.
[0082] In this embodiment, when executing step 104, if the distance sensor detects an external object and the working state of the fingerprint module is abnormal, the fingerprint module can be reset and the working state of the reset fingerprint module can be set to the fingerprint entry state.
[0083] In the embodiment of the present application, since the distance sensor is arranged adjacent to the fingerprint module, when the hand approaches or touches the fingerprint module, it will also approach the distance sensor. Therefore, if the distance sensor detects an external object, it means that there is an external object approaching or touching the fingerprint module, and it is very likely that the user's finger is touching the fingerprint module for fingerprint entry. Therefore, when the user enters the fingerprint, but the fingerprint module is not in the fingerprint entry state (that is, the working state is abnormal), the fingerprint module can be reset and the working state of the reset fingerprint module can be set to the fingerprint entry state. In this way, when there is a fingerprint entry requirement, the fingerprint module whose fingerprint entry is interrupted due to static electricity and electromagnetic interference can be restored to the fingerprint entry state in a timely manner to meet the user's fingerprint entry requirement.
[0084] In the above embodiment of the present application, when the user is entering a fingerprint, if the fingerprint module is interfered and stuck, the method of the embodiment of the present application can monitor the working state of the fingerprint module when the CPU cannot detect the fingerprint data entry for a long time, such as the CPU reading the value of a specific register of the fingerprint module. If an abnormality is detected, such as the value is not a preset code corresponding to the fingerprint entry state, the fingerprint module is reset and the fingerprint module is re-entered into the fingerprint entry state, so that the fingerprint entry function of the fingerprint module continues and fingerprint information continues to be collected. The problem of fingerprint module stuck and the problem of fingerprint module stuck and high fingerprint entry failure rate during user fingerprint entry caused by limited space and poor anti-interference ability of the side fingerprint solution are solved, and the user experience is improved.
[0085] It should be noted that the fingerprint module control method provided in the embodiment of the present application can be executed by a fingerprint module control device, or a control module (such as a CPU module) in the fingerprint module control device for executing the fingerprint module control method. In the embodiment of the present application, the fingerprint module control device provided in the embodiment of the present application is described by taking the fingerprint module control method executed by the fingerprint module control device as an example.
[0086] Reference Figure 3 , shows a block diagram of a fingerprint module control device according to an embodiment of the present application, which is applied to an electronic device, wherein the electronic device is equipped with a fingerprint module, and the device comprises:
[0087] The receiving module 31 is used to receive a first input from a user;
[0088] A control module 32, configured to control the fingerprint module to enter a fingerprint entry state in response to the first input;
[0089] The acquisition module 33 is used to acquire the working state of the fingerprint module when the fingerprint information collected by the fingerprint module is not received within a preset time period;
[0090] The setting module 34 is used for resetting the fingerprint module and setting the working state of the reset fingerprint module to the fingerprint entry state when the working state of the fingerprint module is abnormal.
[0091] Optionally, the control module 32 includes:
[0092] A first sending submodule, used for sending a control command to the fingerprint module, wherein the control command is used for instructing the fingerprint module to enter the fingerprint entry state and for setting the value of a preset register to a preset code matching the fingerprint entry state;
[0093] The acquisition module 33 includes:
[0094] An acquisition submodule, used to acquire the current value of the preset register;
[0095] If the current value is not the preset code, it is determined that the working state of the fingerprint module is abnormal.
[0096] Optionally, the setting module 34 includes:
[0097] A second sending submodule, used for sending the control command to the fingerprint module again;
[0098] The setting submodule is used to set the value of the preset register to the preset code.
[0099] Optionally, the electronic device is further configured with a distance sensor disposed adjacent to the fingerprint module;
[0100] The setting module 34 is further configured to reset the fingerprint module and set the working state of the reset fingerprint module to the fingerprint entry state when the distance sensor detects an external object and the working state of the fingerprint module is abnormal.
[0101] In an embodiment of the present application, a first input from a user can be received, and in response to the first input, the fingerprint module can be controlled to enter a fingerprint entry state, so that the fingerprint module can collect fingerprint information in this fingerprint entry state. If the fingerprint information collected by the fingerprint module is not received within a preset time period, it means that the fingerprint module is likely to be subject to electrostatic or electromagnetic interference, resulting in an abnormal working state. Therefore, in order to avoid interruption of fingerprint entry by the fingerprint module and reduce the risk of the fingerprint module being stuck, the working state of the fingerprint module can be obtained. If the working state is abnormal, it means that the fingerprint module has indeed changed its state due to the above-mentioned interference. Therefore, the fingerprint module can be reset, and the working state of the reset fingerprint module can be set to the fingerprint entry state, so that the fingerprint module can continue to collect fingerprints to complete the fingerprint entry work, avoid interruption of fingerprint entry, reduce the fingerprint entry failure rate, and further reduce the risk of the fingerprint module being stuck by the above-mentioned interference.
[0102] The fingerprint module control device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0103] The fingerprint module control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0104] The fingerprint module control device provided in the embodiment of the present application can achieve Figure 1 to Figure 2 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0105] Alternatively, if Figure 4As shown, the embodiment of the present application also provides an electronic device 2000, including a processor 2002, a memory 2001, and a program or instruction stored in the memory 2001 and executable on the processor 2002. When the program or instruction is executed by the processor 2002, each process of the above-mentioned fingerprint module control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0106] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0107] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application is provided, wherein the electronic device is provided with a fingerprint module.
[0108] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0109] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0110] The user input unit 1007 is used to receive a first input from a user;
[0111] Processor 1010 is used to control the fingerprint module to enter the fingerprint entry state in response to the first input; obtain the working state of the fingerprint module when no fingerprint information collected by the fingerprint module is received within a preset time period; and reset the fingerprint module and set the working state of the reset fingerprint module to the fingerprint entry state when the working state of the fingerprint module is abnormal.
[0112] In an embodiment of the present application, a first input from a user can be received, and in response to the first input, the fingerprint module can be controlled to enter a fingerprint entry state, so that the fingerprint module can collect fingerprint information in this fingerprint entry state. If the fingerprint information collected by the fingerprint module is not received within a preset time period, it means that the fingerprint module is likely to be subject to electrostatic or electromagnetic interference, resulting in an abnormal working state. Therefore, in order to avoid interruption of fingerprint entry by the fingerprint module and reduce the risk of the fingerprint module being stuck, the working state of the fingerprint module can be obtained. If the working state is abnormal, it means that the fingerprint module has indeed changed its state due to the above-mentioned interference. Therefore, the fingerprint module can be reset, and the working state of the reset fingerprint module can be set to the fingerprint entry state, so that the fingerprint module can continue to collect fingerprints to complete the fingerprint entry work, avoid interruption of fingerprint entry, reduce the fingerprint entry failure rate, and further reduce the risk of the fingerprint module being stuck by the above-mentioned interference.
[0113] Optionally, the processor 1010 is also used to send a control command to the fingerprint module, wherein the control command is used to instruct the fingerprint module to enter the fingerprint entry state, and to set the value of the preset register to a preset code matching the fingerprint entry state; obtain the current value of the preset register; wherein, if the current value is not the preset code, it is determined that the working state of the fingerprint module is abnormal.
[0114] In the embodiment of the present application, a control command can be sent to the fingerprint module to instruct the fingerprint module to enter the fingerprint entry state, and the value of the preset register of the fingerprint module can be set to the preset code that matches the fingerprint entry state. Then, when the fingerprint information fed back by the fingerprint module is not received for a long time, the current value of the preset register can be obtained to determine whether the current value is the above preset code, thereby determining whether the working state of the fingerprint module is abnormal. If the current value is not the preset code, it means that the fingerprint module is subject to electromagnetic or static interference, which causes its working state to change and is no longer in the fingerprint entry state, that is, its working state is abnormal. Therefore, in order to avoid fingerprint entry interruption, the fingerprint module can be reset and the working state of the reset fingerprint module can be set to the fingerprint entry state, so that the fingerprint module can collect fingerprint information again in the fingerprint entry state, reduce the fingerprint entry failure rate, and reduce the risk of the fingerprint module being stuck due to the above interference.
[0115] Optionally, the processor 1010 is further configured to send the control command to the fingerprint module again; or set the value of the preset register to the preset code.
[0116] In the embodiment of the present application, since the fingerprint module is subject to electromagnetic or static interference, its working state becomes abnormal, resulting in fingerprint entry interruption, and there is a high risk of the fingerprint module being stuck due to the above interference. Therefore, in the embodiment of the present application, in order to solve this problem, the fingerprint module can be reset to restart the fingerprint module, and then the control command is sent to the fingerprint module again; or, the value of the preset register is set to the preset code, and the working state of the fingerprint module is reset to the fingerprint entry state, so that the fingerprint module can re-collect fingerprint information in the fingerprint entry state to complete the fingerprint entry work, thereby reducing the fingerprint entry failure rate and the risk of the fingerprint module being stuck.
[0117] Optionally, the electronic device 1000 is further configured with a distance sensor disposed adjacent to the fingerprint module;
[0118] The processor 1010 is further configured to reset the fingerprint module and set the working state of the reset fingerprint module to the fingerprint entry state when the distance sensor detects an external object and the working state of the fingerprint module is abnormal.
[0119] In the embodiment of the present application, since the distance sensor is arranged adjacent to the fingerprint module, when the hand approaches or touches the fingerprint module, it will also approach the distance sensor. Therefore, if the distance sensor detects an external object, it means that there is an external object approaching or touching the fingerprint module, and it is very likely that the user's finger is touching the fingerprint module for fingerprint entry. Therefore, when the user enters the fingerprint, but the fingerprint module is not in the fingerprint entry state (that is, the working state is abnormal), the fingerprint module can be reset and the working state of the reset fingerprint module can be set to the fingerprint entry state. In this way, when there is a fingerprint entry requirement, the fingerprint module whose fingerprint entry is interrupted due to static electricity and electromagnetic interference can be restored to the fingerprint entry state in a timely manner to meet the user's fingerprint entry requirement.
[0120] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0121] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned fingerprint module control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0122] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0123] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned fingerprint module control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0124] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0125] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0127] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A fingerprint module control method, characterized in that: Applied to an electronic device, the electronic device is equipped with a fingerprint module, and the method comprises: receiving a first input from a user; In response to the first input, controlling the fingerprint module to enter a fingerprint entry state; If the fingerprint information collected by the fingerprint module is not received within a preset time period, obtaining the working status of the fingerprint module; When the working state of the fingerprint module is abnormal, resetting the fingerprint module and setting the working state of the reset fingerprint module to the fingerprint entry state; The electronic device further includes a CPU module, and in response to the first input, controlling the fingerprint module to enter a fingerprint entry state includes: After the CPU module controls the fingerprint module to enter the fingerprint entry state, a countdown of a preset time length begins; The fingerprint module starts to collect fingerprint information after entering the fingerprint entry state, and if the fingerprint module collects fingerprint information, an interrupt signal including the collected fingerprint information is sent to the CPU module; The CPU module collects fingerprint input data from the fingerprint module and determines whether there is fingerprint data in the collected fingerprint input data; if there is fingerprint data in the fingerprint input data, the CPU module clears the current countdown, restarts the countdown for a preset time, and continues to input the next set of fingerprint data; if there is no fingerprint data in the fingerprint input data, it determines whether the current countdown reaches the preset time; The abnormal working state of the fingerprint module includes: the working state of the fingerprint module is not the fingerprint entry state entered by the fingerprint module controlled by the CPU module.
2. The method according to claim 1, characterized in that The controlling the fingerprint module to enter a fingerprint entry state includes: Sending a control command to the fingerprint module, wherein the control command is used to instruct the fingerprint module to enter the fingerprint entry state and to set the value of a preset register to a preset code matching the fingerprint entry state; The obtaining the working status of the fingerprint module includes: Obtaining the current value of the preset register; If the current value is not the preset code, it is determined that the working state of the fingerprint module is abnormal.
3. The method according to claim 2, characterized in that The step of setting the working state of the fingerprint module after reset to the fingerprint entry state includes: Sending the control command to the fingerprint module again; or, The value of the preset register is set to the preset code.
4. The method according to claim 1, characterized in that: The electronic device is further configured with a distance sensor arranged adjacent to the fingerprint module, and when the working state of the fingerprint module is abnormal, resetting the fingerprint module and setting the working state of the reset fingerprint module to the fingerprint entry state includes: When the distance sensor detects an external object and the working state of the fingerprint module is abnormal, the fingerprint module is reset and the working state of the reset fingerprint module is set to the fingerprint entry state.
5. A fingerprint module control device, characterized in that: Applied to an electronic device, the electronic device is equipped with a fingerprint module, and the device comprises: A receiving module, used for receiving a first input from a user; A control module, configured to control the fingerprint module to enter a fingerprint entry state in response to the first input; An acquisition module, used for acquiring the working state of the fingerprint module when the fingerprint information collected by the fingerprint module is not received within a preset time period; A setting module, used for resetting the fingerprint module and setting the working state of the reset fingerprint module to the fingerprint entry state when the working state of the fingerprint module is abnormal; The electronic device further comprises a CPU module, After the CPU module controls the fingerprint module to enter the fingerprint entry state, a countdown of a preset time length begins; The fingerprint module starts to collect fingerprint information after entering the fingerprint entry state, and if the fingerprint module collects fingerprint information, an interrupt signal including the collected fingerprint information is sent to the CPU module; The CPU module collects fingerprint input data from the fingerprint module and determines whether there is fingerprint data in the collected fingerprint input data; if there is fingerprint data in the fingerprint input data, the CPU module clears the current countdown, restarts the countdown for a preset time, and continues to input the next set of fingerprint data; if there is no fingerprint data in the fingerprint input data, it determines whether the current countdown reaches the preset time; The abnormal working state of the fingerprint module includes: the working state of the fingerprint module is not the fingerprint entry state entered by the fingerprint module controlled by the CPU module.
6. The device according to claim 5, characterized in that The control module comprises: A first sending submodule, used for sending a control command to the fingerprint module, wherein the control command is used for instructing the fingerprint module to enter the fingerprint entry state and for setting the value of a preset register to a preset code matching the fingerprint entry state; The acquisition module comprises: An acquisition submodule, used to acquire the current value of the preset register; If the current value is not the preset code, it is determined that the working state of the fingerprint module is abnormal.
7. The device according to claim 6, characterized in that The setting module includes: A second sending submodule, used for sending the control command to the fingerprint module again; The setting submodule is used to set the value of the preset register to the preset code.
8. The device according to claim 5, characterized in that The electronic device is also equipped with a distance sensor disposed adjacent to the fingerprint module; The setting module is further used for resetting the fingerprint module and setting the working state of the reset fingerprint module to the fingerprint entry state when the distance sensor detects an external object and the working state of the fingerprint module is abnormal.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the fingerprint module control method as claimed in any one of claims 1 to 4.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the fingerprint module control method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Anti-interference method and device for key
CN106055455A
Method for controlling fingerprint identification module and mobile terminal
CN106951850A
Fingerprint identification chip driving circuit, and fingerprint identification chip driving method and apparatus
CN106959877A
Fingerprint module arrangement method and device
CN108446663A
Vehicle diagnosis system and method
US20170084092A1
