CN107423593B - Fingerprint unlocking control method and device - Google Patents

Fingerprint unlocking control method and device Download PDF

Info

Publication number
CN107423593B
CN107423593B CN201710129011.3A CN201710129011A CN107423593B CN 107423593 B CN107423593 B CN 107423593B CN 201710129011 A CN201710129011 A CN 201710129011A CN 107423593 B CN107423593 B CN 107423593B
Authority
CN
China
Prior art keywords
power key
state
pressed
timer
timer expires
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.)
Active
Application number
CN201710129011.3A
Other languages
Chinese (zh)
Other versions
CN107423593A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710129011.3A priority Critical patent/CN107423593B/en
Publication of CN107423593A publication Critical patent/CN107423593A/en
Application granted granted Critical
Publication of CN107423593B publication Critical patent/CN107423593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Abstract

The invention provides a fingerprint unlocking control method and a fingerprint unlocking control device, wherein the method comprises the following steps: judging whether the fingerprint comparison is successful, if so, lightening a screen and unlocking, and starting a first timer; if the state of the power key is detected to be pressed, judging whether the first timer is in the running state; if the first timer is in the running state, saving the state that the power key is pressed; if the state of the power key is detected to be lifted before the first timer expires, the saved state of the power key is cleared, and the operation corresponding to the pressed state of the power key is not executed. When a finger of a user is placed on the fingerprint sensor and the power key is pressed simultaneously, when the fingerprint comparison is successful, the situation that the terminal screen is immediately closed when the fingerprint comparison is successful and the detected power key lifting interrupt signal is cleared when the power key lifting is detected before the first timer expires is determined.

Description

Fingerprint unlocking control method and device
Technical Field
The invention relates to the technical field of terminals, in particular to a fingerprint unlocking control method and a fingerprint unlocking control device.
Background
With the development of terminal technology, fingerprint technology has been widely applied to terminals. A fingerprint sensor can be arranged on the terminal, and the terminal is unlocked in a fingerprint comparison mode.
In the prior art, on the terminal, from the perspective of saving space and function definition, the fingerprint sensor and the power key are attached, so that the fingerprint sensor and the power key are overlapped. Pressing down a fingerprint sensor on the terminal by the finger of the user, so that the fingerprint sensor can collect the fingerprint of the user and perform fingerprint comparison; if the fingerprint comparison is successful, lightening a terminal screen and unlocking; if the fingerprint comparison fails, the screen-off state is kept and vibration is short to indicate that unlocking fails.
However, in the prior art, because fingerprint sensor and power key coincidence set up, when user's finger placed fingerprint sensor on, the condition of having pressed the power key simultaneously appeared easily to compare at the fingerprint this moment successfully and light the terminal screen, can close the terminal screen immediately, and then produce the maloperation.
Disclosure of Invention
The invention provides a fingerprint unlocking control method and a fingerprint unlocking control device, which can solve the problem that in the prior art, when a finger of a user is placed on a fingerprint sensor, the situation that a power key is pressed simultaneously is easy to occur, so that a terminal screen is immediately closed when the fingerprint comparison is successful and the terminal screen is lightened, and further misoperation is caused.
One aspect of the present invention provides a fingerprint unlocking control method, including:
judging whether the fingerprint comparison is successful, if so, lightening a screen and unlocking, and starting a first timer;
detecting the state of a power key, wherein the state of the power key comprises being pressed or lifted;
if the state of the power key is detected to be pressed, judging whether the first timer is in the running state;
if the first timer is in the running state, saving the pressed state of the power key;
continuing to detect a state of the power key before expiration of the first timer,
and if the state of the power key is detected to be lifted before the first timer expires, clearing the saved state of the power key pressed, and not executing the operation corresponding to the state of the power key pressed.
Another aspect of the present invention provides a fingerprint unlocking control device, which is applied to a terminal where a fingerprint sensor is attached to a power key, and includes:
the first judgment module is used for judging whether the fingerprint comparison is successful, if so, lightening the screen and unlocking, and starting a first timer;
the first detection module is used for detecting the state of a power key, wherein the state of the power key comprises being pressed or lifted;
the second judgment module is used for judging whether the first timer is in the running state or not if the state of the power key is detected to be pressed;
the saving module is used for saving the pressed state of the power key if the first timer is in the running state;
a second detection module for continuing to detect the state of the power key before the first timer expires;
and the first clearing module is used for clearing the saved pressed state of the power key and not executing the operation corresponding to the pressed state of the power key if the state of the power key is detected to be lifted before the first timer expires.
Still another aspect of the present invention is to provide a terminal, wherein the terminal is provided with the fingerprint unlocking control device.
The technical effects of the invention at least comprise the following aspects: in this embodiment, when the fingerprint comparison of the user on the terminal is successful, the first timer is started, and when the state of the power key is detected to be pressed and the first timer is in the running state, if the state of the power key is detected to be lifted before the first timer expires, the pressed state of the power key can be detected in the initial state, and the operation corresponding to the state is not executed. Therefore, when a finger of a user is placed on the fingerprint sensor and the power key is pressed simultaneously, when the fingerprint comparison is successful, the situation that the terminal screen is immediately closed when the fingerprint comparison is successful and the terminal screen is lightened is avoided by determining that the detected power key lifts up an interrupt signal before the first timer expires and detecting that the power key lifts up. Therefore, when a finger of a user is placed on the fingerprint sensor and the power key is pressed simultaneously, when the fingerprint comparison is successful, the situation that the terminal screen is immediately closed when the fingerprint comparison is successful and the terminal screen is lightened is avoided by determining that the detected power key lifts up an interrupt signal before the first timer expires and detecting that the power key lifts up.
Drawings
Fig. 1 is a flowchart of a fingerprint unlocking control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a fingerprint unlocking control method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a fingerprint unlocking control method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a fingerprint unlocking control device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a fingerprint unlocking control device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a fingerprint unlocking control device according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a fingerprint unlocking control method according to an embodiment of the present invention, and as shown in fig. 1, the method according to the embodiment includes:
step 101, judging whether the fingerprint comparison is successful.
In this embodiment, specifically, the method provided in this embodiment is applied to a terminal, and the terminal is a terminal with a fingerprint sensor attached to a power key, such as a Mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Mobile Internet Device (MID), a wearable Device, and the like.
The fingerprint sensor and the power key are attached to the terminal, and the terminal allows the fingerprint sensor to wake up the system of the terminal. When a finger of a user is placed on the fingerprint sensor, the terminal triggers a fingerprint comparison process to judge whether the fingerprint comparison is successful.
And step 108, if the fingerprint comparison fails, keeping the screen-off state of the terminal and carrying out short vibration to prompt the user that the fingerprint comparison fails.
In this embodiment, specifically, if the fingerprint comparison fails, the current screen-off state of the terminal needs to be maintained, and meanwhile, the terminal performs short-time vibration, and the time and frequency of the vibration are set according to different terminals or different environmental scenes without specific limitation, so as to prompt a user that the result of the fingerprint comparison fails at this time. Step 103-step 107 are not performed at this time.
And 102, if the fingerprint comparison is successful, lightening the screen, unlocking and starting a first timer.
In this embodiment, specifically, if the fingerprint comparison is successful, the terminal determines to light the terminal screen and unlock the terminal, and the terminal starts a first timer1 once. The definition of the setting time a of the first timer1 can be set according to practical situations, and the embodiment is not limited. For example, the first timer1 may be a 2 second timer. Then after step 102, q8u performs steps 103-107.
Step 103, detecting the state of the power key, wherein the state of the power key comprises being pressed or lifted.
In this embodiment, specifically, in the fingerprint comparison process of step 101, since the user may press the power key of the terminal at the same time, the terminal needs to detect the state of the power key. The state of the power key comprises being pressed or being lifted, when the state of the power key is pressed, the terminal can detect that the power key presses an interrupt signal, and when the state of the power key is lifted, the terminal can detect that the power key lifts the interrupt signal.
And 104, judging whether the first timer is in the running state or not if the state of the power key is detected to be pressed.
In this embodiment, specifically, if the terminal detects that the power key is pressed, and at this time, the terminal needs to determine whether the first timer1 is in the running state.
And 105, if the first timer is in the running state, saving the state that the power key is pressed.
In this embodiment, specifically, if the terminal detects that the first timer1 is in the running state, it is determined that the time interval from the finger touching the fingerprint sensor to the power key physically triggering the interrupt signal is greater than or equal to the sum of the fingerprint collection time and the comparison time, but is less than the set time a of the first timer1, that is, it is determined that the power key is pressed at a slower speed. The terminal needs to first save the state in which the power key detected in step 104 is pressed. For example, the terminal establishes a temporary storage area to store the state in which the power key detected in step 104 is pressed.
And 106, continuously detecting the state of the power key before the first timer expires.
In this embodiment, specifically, since the first timer1 has not expired, the terminal still needs to continuously detect whether the status of the power key is pressed or lifted before the first timer1 expires.
Step 107, if it is detected that the power key is in the raised state before the expiration of the first timer, the saved power key is cleared from the pressed state, and the operation corresponding to the pressed state of the power key is not executed.
In this embodiment, specifically, when the terminal detects the power key up interrupt signal before the expiration of the first timer1, it indicates that the user is no longer pressing the power key, and the state of the power key is up at this time, and the terminal needs to clear the information of the state of the power key pressed stored in step 105 without executing the operation corresponding to the state of the power key pressed detected in step 103. At this time, since the terminal does not perform the operation corresponding to the state in which the power key detected in step 103 is pressed, it is possible to avoid a situation in which the terminal screen is immediately turned off when the terminal screen is lit up due to the successful fingerprint comparison.
In this embodiment, when the fingerprint comparison of the user on the terminal is successful, the first timer is started, and when the state of the power key is detected to be pressed and the first timer is in the running state, if the state of the power key is detected to be lifted before the first timer expires, the pressed state of the power key can be detected in the initial state, and the operation corresponding to the state is not executed. Therefore, when a finger of a user is placed on the fingerprint sensor and the power key is pressed simultaneously, when the fingerprint comparison is successful, the situation that the terminal screen is immediately closed when the fingerprint comparison is successful and the terminal screen is lightened is avoided by determining that the detected power key lifts up an interrupt signal before the first timer expires and detecting that the power key lifts up.
Fig. 2 is a flowchart of a fingerprint unlocking control method according to a second embodiment of the present invention, where on the basis of the first embodiment, as shown in fig. 2, the method according to the present embodiment further includes:
step 201, if the state of the power key is detected to be still pressed before the first timer expires, the state of the power key is detected when the first timer expires.
In this embodiment, specifically, after step 106 of the first embodiment, the terminal continues to detect the state of the power key before the first timer1 expires, and if the power key press interrupt signal is detected, it indicates that the state of the power key is still pressed. At this time, step 107 is not performed. As the first timer1 is operated, it is necessary that the terminal detects whether the state of the power key is lifted or pressed when the first timer1 expires.
Step 202, if the state of the power key is detected to be lifted when the first timer expires, clearing the saved state of the power key pressed, and not executing the operation corresponding to the state of the power key pressed.
In this embodiment, specifically, after step 201, when the terminal detects that the power key is lifted up and the power key is not pressed by the user when the first timer1 expires, the power key lifted up interrupt signal is detected. Then, the terminal needs not to perform an operation corresponding to the state in which the power key is pressed in step 103, while clearing the information of the state in which the power key has been pressed saved in step 105. In this way, similarly, since the terminal does not perform the operation corresponding to the state in which the power key detected in step 103 is pressed, it is possible to avoid a situation in which the terminal screen is immediately turned off when the terminal screen is lit up due to successful fingerprint comparison.
Step 203, if the state of the power key is detected to be pressed when the first timer expires, starting a second timer.
In this embodiment, specifically, after step 201, when the terminal expires the first timer1, if the power key press interrupt signal is detected, it indicates that the power key is still pressed, and at this time, the user still presses the power key of the terminal. Then, the terminal may start a first second timer2, and the definition of the set time B of the second timer2 may be set according to practical situations, which is not limited in this embodiment. For example, the second timer1 may be a 2 second timer.
Step 202 is not performed at this point and then step 204 needs to be performed.
And step 204, continuing to detect the state of the power key before the second timer expires.
In this embodiment, specifically, after step 203, during the running time of the second timer2, the terminal needs to continue to detect the status signal of the power key before the second timer2 expires, so as to determine the status of the power key.
In step 205, if it is detected that the power key is in the raised state before the second timer expires, the saved power key is cleared from the pressed state, and the operation corresponding to the pressed power key is not executed.
In this embodiment, specifically, after step 204, if the terminal detects the power key up interrupt signal before the second timer expires, it indicates that the power key is no longer pressed, and at this time, the state of the power key is up. Then, the terminal does not need to perform an operation corresponding to the state where the power key is pressed in step 103, and also needs to clear the information of the state where the power key is pressed, which has been saved in step 105. That is, similarly to steps 107 and 202, the operation corresponding to the state where the power key is pressed in step 103 is not executed.
Step 206, if it is detected that the power key is still pressed before the second timer expires, the status of the power key is detected when the second timer expires.
In this embodiment, specifically, after step 204, if the terminal still continuously detects that the power key is pressed down before the second timer expires, it indicates that the power key is still pressed down by the user, and the state of the power key is still pressed down. Then the terminal still needs to detect the status signal of the power key, i.e. detect the status of the power key, when the second timer2 expires. Step 205 is not performed at this point, and after step 206, step 207 or step 208 needs to be performed.
Step 207, when the second timer expires and the power key is detected to be lifted, clearing the saved power key pressed state and not executing the operation corresponding to the power key pressed state.
In this embodiment, specifically, after step 206, if the terminal detects the power key press interrupt signal when the second timer2 expires, it indicates that the user no longer presses the power key of the terminal, and the power key is in a raised state. Then, the terminal does not need to perform the operation corresponding to the state where the power key is pressed in step 103, and also needs to clear the information of the state where the power key has been pressed, which has been saved in step 105.
And step 208, if the state of the power key is detected to be still in a pressed state when the second timer expires, triggering a power key long-press action response.
In this embodiment, specifically, after step 206, when the second timer2 expires, the terminal still continuously detects that the power key is pressed down, which indicates that the power key is still pressed by the user and the status of the power key is still pressed down. The terminal may then trigger a power key long press action response. Wherein the power key long press action response may include: if the terminal screen is in a screen-off state, lightening the terminal screen; and if the terminal screen is in a bright screen state, displaying an operation interface of shutdown and restart.
In this embodiment, when the fingerprint comparison of the user on the terminal is successful, the first timer is started, and when the state of the power key is detected to be pressed and the first timer is in the running state, if the state of the power key is detected to be lifted before the first timer expires, the pressed state of the power key can be detected in the initial state, and the operation corresponding to the state is not executed. At this time, when the first timer expires, if the power key is detected to be lifted, the detected power key lifting interrupt signal is cleared, so that the condition that the terminal screen is immediately closed when the terminal screen is lightened due to successful fingerprint comparison is avoided. Then, if the first timer expires and the state of the power key is detected to be pressed, starting a second timer, and similarly, before the second timer expires, if the state of the power key is detected to be lifted, not executing the operation corresponding to the state of the power key pressed; when the second timer expires, if the state of the power key is detected to be lifted, the operation corresponding to the state that the power key is pressed is not executed; and triggering a power key long-press action response if the state of the power key is detected to be still in a pressed state when the second timer expires. By setting the way that the second timer is matched with the first timer, the situation that the power key is pressed at a slower speed during the timer1 and lifted up during the timer2 or both the timer1 and the timer2 keep pressed states can be identified, so that under the condition of being pressed and lifted slowly, the operation corresponding to the pressed state of the power key is not executed, the condition that the terminal screen is closed immediately when the fingerprint comparison is successful and the terminal screen is lightened is ensured to be avoided, under the condition that the terminal screen is pressed down during both the timer1 and the timer2, the long-press response of the terminal is triggered, and through the matching of the two timers, different power key operations of a user can be carried out, and under the condition that the false triggering is avoided, the corresponding logic response is made.
Fig. 3 is a flowchart of a fingerprint unlocking control method provided by a third embodiment of the present invention, and on the basis of the first embodiment, as shown in fig. 3, the method of the present embodiment further includes:
step 301, if the first timer is not in the running state, starting a third timer.
In this embodiment, specifically, after step 104 of the first embodiment, if the terminal detects that the first timer1 is not in the running state, at this time, the first timer may be in an unopened state or in a passed state, and may be determined to be currently in accordance with one of several states, where the first state is a time interval from when the finger contacts the fingerprint sensor to when the power key physically triggers the interrupt signal, and is less than a sum of fingerprint collection and comparison time, where the sum of fingerprint collection and comparison time is generally within 500ms, and in this case, it indicates that the power key is pressed down quickly; the second state is that the time interval from the finger touch sensor to the power key physically triggering the interrupt signal is equal to or greater than the set time a of the first timer1, in which case it indicates that the power key is slowly pressed; the third state is that the fingerprint comparison fails, and at this time, the first timer1 is not started; the fourth state is that the first timer1 has run to the end. Determining that the first timer1 is not running, i.e., determining that the first timer1 is in an un-activated or expired state, indicates that the power key is pressed quickly, or very slowly, or that the fingerprint comparison fails, then a third timer3 needs to be activated. Step 105 and step 107 are not performed at this time.
Step 302, before the third timer expires, the status of the power key continues to be detected.
In this embodiment, specifically, after step 301, the terminal continuously detects the status signal of the power key during the operation of the third timer3, and further continuously detects whether the status of the power key is pressed or lifted before the third timer3 expires. After step 302, either step 303 or step 304 may be performed.
And step 303, triggering a power key short-press action response if the power key is detected to be lifted before the third timer expires.
In this embodiment, specifically, after step 302, before the third timer3 expires, if the terminal detects the power key up interrupt signal, it indicates that the user is no longer pressing the power key, and the power key is in a raised state. The terminal can then trigger a power key short press response. Wherein, the power key short-press action response may include: if the terminal screen is in a screen-off state, lightening the terminal screen; and if the terminal screen is in a bright screen state, the fingerprint comparison is successful before, and then the terminal screen is closed.
Step 304, if it is detected that the state of the power key is still pressed before the third timer expires, then the state of the power key is detected when the third timer expires.
In this embodiment, specifically, after step 302, if the terminal still continuously detects that the power key is pressed down before the third timer3 expires, it indicates that the power key is in a pressed state, and at this time, the power key is still in a pressed state. The terminal still needs to detect the status signal of the power key, i.e., to detect whether the status of the power key is lifted or pressed, when the third timer3 expires. Then, step 305 or step 306 needs to be performed.
And 305, triggering a power key short-press action response when the state of the power key is detected to be lifted when the third timer expires.
In this embodiment, specifically, after step 304, if the terminal detects the power key up interrupt signal when the third timer3 expires, it indicates that the user is no longer pressing the power key, and the power key is in a raised state. The terminal can then trigger a power key short press response.
Step 306, if it is detected that the power key is still pressed when the third timer expires, triggering a power key long-press action response.
In this embodiment, specifically, after the step 304, if the terminal still continuously detects that the power key is pressed down and the interrupt signal is still detected when the third timer3 expires, it indicates that the user still presses the power key, and the status of the power key is still pressed at this time. The terminal may then trigger a power key long press response. Wherein the power key long press action response may include: if the terminal screen is in a screen-off state, lightening the terminal screen; if the terminal screen is in a bright screen state, the fingerprint comparison is successful before, and then a shutdown and restart operation interface is displayed, so that a user is prompted to execute shutdown and restart actions.
In the embodiment, when the fingerprint comparison of the user on the terminal is successful, a first timer is started, and when the power key is detected to be pressed and the first timer is not in the running state, a third timer is started; before the third timer expires, triggering a power key short-press action response if the power key is detected to be lifted; before the third timer expires, detecting that the state of the power key is still pressed, when the third timer expires, detecting that the state of the power key is lifted, and then triggering a short pressing action response of the power key, wherein the response is slow compared with the previous short pressing action response; when the third timer expires and the state of the power key is detected to be still pressed, a power key long-press action response is triggered and the power key is pressed very slowly. Through the cooperation of the third timer and the first timer that set for, to the terminal of power key and the laminating of fingerprint sensor, the operation of pressing of discernment user different grade type power key (for example, press rapidly, press slowly, press very slowly), optimize the processing logic that the screen was put out to the terminal bright of power key and fingerprint sensor, operate the correct response to the different grade type, and then guarantee that the power key is not touched by user's mistake and produce some unnecessary operations.
Further, on the basis of the above embodiment, before the step 101, if the fingerprint comparison is successful, lighting the screen and unlocking the screen, and starting the first timer, the method further includes:
judging whether the third timer is in the running state;
if the third timer is determined not to be in the running state, the step 101 of lighting the screen and unlocking if the fingerprint comparison is successful and starting the first timer is executed;
and if the third timer is determined to be in the running state, the step of lighting the screen and unlocking if the fingerprint comparison in the step 101 is successful is not executed, and the step of starting the first timer is directly executed for unlocking.
Specifically, since the third timer3 may have been started before the first timer1 is started, it is necessary to determine whether the third timer3 is running or not after the fingerprint comparison in step 101 is successful, and then determine whether the third timer3 is in a running state. If the terminal determines that the third timer3 is not in the running state, and the third timer3 may not be started or has run to the end, the terminal may perform the process of determining that the fingerprint comparison is successful, lighting the screen of the terminal and unlocking the terminal, and starting the first timer1, and then perform the steps after step 103. If the terminal determines that the third timer3 is still in the running state, the terminal does not need to perform the process of determining that the fingerprint comparison is successful, lighting up the screen of the terminal and unlocking, and starting the first timer1, at which time, the terminal can perform the steps in the third embodiment.
Fig. 4 is a schematic structural view of a fingerprint unlocking control device according to a fourth embodiment of the present invention, as shown in fig. 4, the device according to the present embodiment is applied to a terminal where a fingerprint sensor is attached to a power key, and the device according to the present embodiment includes:
the first judging module 41 is configured to judge whether the fingerprint comparison is successful, and if the fingerprint comparison is successful, light up the screen and unlock the screen, and start a first timer;
a first detecting module 42, configured to detect a status of the power key, where the status of the power key includes being pressed or lifted;
a second judging module 43, configured to judge whether the first timer is in an operating state if it is detected that the power key is pressed;
a saving module 44, configured to save a state where the power key is pressed if the first timer is in an operating state;
a second detection module 45, configured to continue to detect the status of the power key before the first timer expires;
and a first clearing module 46, configured to clear the saved state in which the power key is pressed if the power key is detected to be lifted before the first timer expires, and not perform an operation corresponding to the state in which the power key is pressed.
The fingerprint unlocking control device of this embodiment can execute the fingerprint unlocking control method provided in the first embodiment of the present invention, and the implementation principles are similar, and are not described herein again.
In this embodiment, when the fingerprint comparison of the user on the terminal is successful, the first timer is started, and when the state of the power key is detected to be pressed and the first timer is in the running state, if the state of the power key is detected to be lifted before the first timer expires, the pressed state of the power key can be detected in the initial state, and the operation corresponding to the state is not executed. Therefore, when a finger of a user is placed on the fingerprint sensor and the power key is pressed simultaneously, when the fingerprint comparison is successful, the situation that the terminal screen is immediately closed when the fingerprint comparison is successful and the terminal screen is lightened is avoided by determining that the detected power key lifts up an interrupt signal before the first timer expires and detecting that the power key lifts up.
Fig. 5 is a schematic structural diagram of a fingerprint unlocking control device according to a fifth embodiment of the present invention, and based on the fourth embodiment, as shown in fig. 5, the device according to the present embodiment further includes:
a third detecting module 51, configured to be connected to the second detecting module 45, and detect the state of the power key when the first timer expires if the state of the power key is still pressed before the first timer expires;
and a second clearing module 52, connected to the third detecting module 51, for clearing the saved status of the power key pressed if the first timer expires and the status of the power key is detected to be lifted, and not executing the operation corresponding to the status of the power key pressed.
A first starting module 53, configured to connect to the third detecting module 51, and start a second timer if the first timer expires and the power key is detected to be pressed;
a fourth detecting module 54, configured to connect to the first starting module 53, and continue to detect the status of the power key before the second timer expires;
a third clearing module 55, configured to connect to the fourth detecting module 54, and if the state of the power key is detected to be lifted before the second timer expires, clear the saved state in which the power key is pressed, and not perform an operation corresponding to the state in which the power key is pressed;
a fifth detecting module 56, configured to be connected to the fourth detecting module 54, and detect the state of the power key when the second timer expires if it is detected that the state of the power key is still pressed before the second timer expires;
a sixth detecting module 57, connected to the fifth detecting module 56, for clearing the saved status of the power key pressed if the status of the power key is detected to be lifted when the second timer expires, and not executing the operation corresponding to the status of the power key pressed;
and a first triggering module 58, configured to connect to the fifth detecting module 56, and trigger a power key long-press action response if it is detected that the status of the power key is still pressed when the second timer expires.
The fingerprint unlocking control device of this embodiment can execute the fingerprint unlocking control method provided by the second embodiment of the present invention, and the implementation principles are similar, and are not described herein again.
In this embodiment, when the fingerprint comparison of the user on the terminal is successful, the first timer is started, and when the state of the power key is detected to be pressed and the first timer is in the running state, if the state of the power key is detected to be lifted before the first timer expires, the pressed state of the power key can be detected in the initial state, and the operation corresponding to the state is not executed. At this time, when the first timer expires, if the power key is detected to be lifted, the detected power key lifting interrupt signal is cleared, so that the condition that the terminal screen is immediately closed when the terminal screen is lightened due to successful fingerprint comparison is avoided. Then, if the first timer expires and the state of the power key is detected to be pressed, starting a second timer, and similarly, before the second timer expires, if the state of the power key is detected to be lifted, not executing the operation corresponding to the state of the power key pressed; when the second timer expires, if the state of the power key is detected to be lifted, the operation corresponding to the state that the power key is pressed is not executed; and triggering a power key long-press action response if the state of the power key is detected to be still in a pressed state when the second timer expires. By setting the way that the second timer is matched with the first timer, the situation that the power key is pressed at a slower speed during the timer1 and lifted up during the timer2 or both the timer1 and the timer2 keep pressed states can be identified, so that under the condition of being pressed and lifted slowly, the operation corresponding to the pressed state of the power key is not executed, the condition that the terminal screen is closed immediately when the fingerprint comparison is successful and the terminal screen is lightened is ensured to be avoided, under the condition that the terminal screen is pressed down during both the timer1 and the timer2, the long-press response of the terminal is triggered, and through the matching of the two timers, different power key operations of a user can be carried out, and under the condition that the false triggering is avoided, the corresponding logic response is made.
Fig. 6 is a schematic structural diagram of a fingerprint unlocking control device according to a sixth embodiment of the present invention, and on the basis of the fourth embodiment and the fifth embodiment, as shown in fig. 6, the device according to the present embodiment further includes:
a second starting module 61, configured to connect to the second determining module 43, and start a third timer if the first timer is not in an operating state;
a seventh detecting module 62, configured to connect to the second starting module 61, and continue to detect the status of the power key before the third timer expires;
and the second triggering module 63 is connected to the seventh detecting module 62, and is configured to trigger a power key short-press action response if the power key is detected to be lifted before the third timer expires.
An eighth detecting module 64, configured to be connected to the seventh detecting module 62, and detect the state of the power key when the third timer expires if it is detected that the state of the power key is still pressed before the third timer expires;
a third triggering module 65, configured to be connected to the eighth detecting module 64, and trigger a power key short-press action response if the power key is detected to be lifted when the third timer expires;
and a fourth triggering module 66, configured to connect to the eighth detecting module 64, and trigger a power key long-press action response if it is detected that the power key is still pressed when the third timer expires.
The first determining module 41 is further configured to:
if the fingerprint comparison is successful, lightening the screen and unlocking, and judging whether the third timer is in the running state or not before starting the first timer;
if the third timer is determined not to be in the running state, the steps of lighting the screen and unlocking if the fingerprint comparison is successful and starting the first timer are executed;
and if the third timer is determined to be in the running state, the steps of lighting the screen and unlocking if the fingerprint comparison is successful, starting the first timer and directly unlocking.
The fingerprint unlocking control device of the embodiment can execute the fingerprint unlocking control method provided by the third embodiment of the invention, the implementation principles are similar, and details are not repeated here.
In the embodiment, when the fingerprint comparison of the user on the terminal is successful, a first timer is started, and when the power key is detected to be pressed and the first timer is not in the running state, a third timer is started; before the third timer expires, triggering a power key short-press action response if the power key is detected to be lifted; before the third timer expires, detecting that the state of the power key is still pressed, when the third timer expires, detecting that the state of the power key is lifted, and then triggering a short pressing action response of the power key, wherein the response is slow compared with the previous short pressing action response; when the third timer expires and the state of the power key is detected to be still pressed, a power key long-press action response is triggered and the power key is pressed very slowly. Through the cooperation of the third timer and the first timer that set for, to the terminal of power key and the laminating of fingerprint sensor, the operation of pressing of discernment user different grade type power key (for example, press rapidly, press slowly, press very slowly), optimize the processing logic that the screen was put out to the terminal bright of power key and fingerprint sensor, operate the correct response to the different grade type, and then guarantee that the power key is not touched by user's mistake and produce some unnecessary operations.
The seventh embodiment of the invention provides a terminal, wherein the terminal is provided with the fingerprint unlocking control device provided in the above embodiment.
In this embodiment, specifically, the fingerprint unlocking control device provided in the fourth embodiment, the fifth embodiment and the sixth embodiment is provided on the terminal.
The fingerprint unlocking control device of this embodiment can execute the fingerprint unlocking control devices provided in the fourth, fifth and sixth embodiments of the present invention, and the implementation principles thereof are similar, and are not described herein again.
In this embodiment, when the fingerprint comparison of the user on the terminal is successful, the first timer is started, and when the state of the power key is detected to be pressed and the first timer is in the running state, if the state of the power key is detected to be lifted before the first timer expires, the pressed state of the power key can be detected in the initial state, and the operation corresponding to the state is not executed. Therefore, when a finger of a user is placed on the fingerprint sensor and the power key is pressed simultaneously, when the fingerprint comparison is successful, the situation that the terminal screen is immediately closed when the fingerprint comparison is successful and the terminal screen is lightened is avoided by determining that the detected power key lifts up an interrupt signal before the first timer expires and detecting that the power key lifts up.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. The fingerprint unlocking control method is applied to a terminal with a fingerprint sensor attached to a power key, and comprises the following steps:
judging whether the fingerprint comparison is successful, if so, lightening a screen and unlocking, and starting a first timer;
detecting the state of a power key, wherein the state of the power key comprises being pressed or lifted;
if the state of the power key is detected to be pressed, judging whether the first timer is in the running state;
if the first timer is in the running state, saving the pressed state of the power key;
continuing to detect the status of the power key before the first timer expires;
and if the state of the power key is detected to be lifted before the first timer expires, clearing the saved state of the power key pressed, and not executing the operation corresponding to the state of the power key pressed.
2. The method of claim 1, further comprising:
if the state of the power key is still pressed before the first timer expires, detecting the state of the power key when the first timer expires;
and if the state of the power key is detected to be lifted when the first timer expires, clearing the saved state of the power key pressed, and not executing the operation corresponding to the state of the power key pressed.
3. The method of claim 2, further comprising:
if the state of the power key is detected to be pressed when the first timer expires, starting a second timer;
continuing to detect the status of the power key before the second timer expires;
if the state of the power key is detected to be lifted before the second timer expires, clearing the saved state of the power key pressed, and not executing the operation corresponding to the state of the power key pressed;
if the state of the power key is still pressed before the second timer expires, detecting the state of the power key when the second timer expires;
if the state of the power key is detected to be lifted when the second timer expires, clearing the saved state of the power key pressed, and not executing the operation corresponding to the state of the power key pressed;
and if the state of the power key is detected to be still in a pressed state when the second timer expires, triggering a power key long-time pressing action response.
4. The method according to any one of claims 1-3, further comprising:
if the first timer is not in the running state, starting a third timer;
continuing to detect the status of the power key before the third timer expires;
and triggering a power key short-press action response if the state of the power key is detected to be lifted before the third timer expires.
5. The method of claim 4, further comprising:
if the state of the power key is still pressed before the third timer expires, detecting the state of the power key when the third timer expires;
if the state of the power key is detected to be lifted when the third timer expires, triggering a power key short-press action response;
and if the state of the power key is still pressed when the third timer expires, triggering a power key long-time pressing action response.
6. The method of claim 4, wherein before the step of lighting up the screen and unlocking the screen and starting the first timer if the fingerprint comparison is successful, the method further comprises:
judging whether the third timer is in an operating state;
if the third timer is determined not to be in the running state, the step of lighting the screen and unlocking if the fingerprint comparison is successful and starting the first timer is executed;
and if the third timer is determined to be in the running state, the step of lighting the screen and unlocking if the fingerprint comparison is successful is not executed, and the step of starting the first timer is used for unlocking.
7. The utility model provides a fingerprint unblock controlling means which characterized in that is applied to the terminal of fingerprint sensor and power key laminating, includes:
the first judgment module is used for judging whether the fingerprint comparison is successful, if so, lightening the screen and unlocking, and starting a first timer;
the first detection module is used for detecting the state of a power key, wherein the state of the power key comprises being pressed or lifted;
the second judgment module is used for judging whether the first timer is in the running state or not if the state of the power key is detected to be pressed;
the saving module is used for saving the pressed state of the power key if the first timer is in the running state;
a second detection module for continuing to detect the state of the power key before the first timer expires;
and the first clearing module is used for clearing the saved pressed state of the power key and not executing the operation corresponding to the pressed state of the power key if the state of the power key is detected to be lifted before the first timer expires.
8. The apparatus of claim 7, further comprising:
a third detection module, configured to be connected to the second detection module, and detect the state of the power key when the first timer expires if it is detected that the state of the power key is still pressed before the first timer expires;
and the second clearing module is connected with the third detection module, and is used for clearing the saved state of the power key pressed if the state of the power key is detected to be lifted when the first timer expires, and not executing the operation corresponding to the state of the power key pressed.
9. The apparatus of claim 8, further comprising:
the first starting module is used for being connected with the third detection module, and starting a second timer if the state of the power key is detected to be pressed when the first timer expires;
the fourth detection module is connected with the first starting module and is used for continuously detecting the state of the power key before the second timer expires;
a third clearing module, configured to be connected to the fourth detecting module, and if it is detected that the state of the power key is lifted before the second timer expires, clear the saved state in which the power key is pressed, and not perform an operation corresponding to the state in which the power key is pressed;
a fifth detecting module, configured to be connected to the fourth detecting module, and detect the state of the power key when the second timer expires if it is detected that the state of the power key is still pressed before the second timer expires;
a sixth detection module, configured to be connected to the fifth detection module, and if it is detected that the state of the power key is lifted when the second timer expires, clear the saved state in which the power key is pressed, and not perform an operation corresponding to the state in which the power key is pressed;
and the first triggering module is used for being connected with the fifth detection module, and triggering the long-press action response of the power key if the state of the power key is detected to be still pressed when the second timer expires.
10. The apparatus according to any one of claims 7-9, further comprising:
the second starting module is used for being connected with the second judging module, and if the first timer is not in the running state, a third timer is started;
a seventh detecting module, configured to connect to the second starting module, and continue to detect the status of the power key before the third timer expires;
and the second triggering module is used for being connected with the seventh detection module, and triggering the short-press action response of the power key if the state of the power key is detected to be lifted before the third timer expires.
11. The apparatus of claim 10, further comprising:
an eighth detecting module, configured to be connected to the seventh detecting module, and detect the state of the power key when the third timer expires if it is detected that the state of the power key is still pressed before the third timer expires;
the third triggering module is used for being connected with the eighth detecting module, and triggering a short-press action response of the power key if the state of the power key is detected to be lifted when the third timer expires;
and the fourth triggering module is used for being connected with the eighth detecting module, and triggering a long-time pressing action response of the power key if the state of the power key is still pressed when the third timer expires.
12. The apparatus of claim 10, wherein the first determining module is further configured to: before the first timer is started after the screen is lightened and unlocked if the fingerprint comparison is successful,
judging whether the third timer is in an operating state;
if the third timer is determined not to be in the running state, the step of lighting the screen and unlocking if the fingerprint comparison is successful and starting the first timer is executed;
and if the third timer is determined to be in the running state, the step of lighting the screen and unlocking if the fingerprint comparison is successful is not executed, and the step of starting the first timer is used for unlocking.
CN201710129011.3A 2017-03-06 2017-03-06 Fingerprint unlocking control method and device Active CN107423593B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710129011.3A CN107423593B (en) 2017-03-06 2017-03-06 Fingerprint unlocking control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710129011.3A CN107423593B (en) 2017-03-06 2017-03-06 Fingerprint unlocking control method and device

Publications (2)

Publication Number Publication Date
CN107423593A CN107423593A (en) 2017-12-01
CN107423593B true CN107423593B (en) 2020-07-10

Family

ID=60423432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710129011.3A Active CN107423593B (en) 2017-03-06 2017-03-06 Fingerprint unlocking control method and device

Country Status (1)

Country Link
CN (1) CN107423593B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951759A (en) * 2017-03-07 2017-07-14 青岛海信移动通信技术股份有限公司 Unlocked by fingerprint control method and device
CN108897476A (en) * 2018-06-12 2018-11-27 平安科技(深圳)有限公司 screen locking method and device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793878A (en) * 2014-01-22 2015-07-22 南京步步高通信科技有限公司 Method for achieving quick screen blacking and locking of mobile terminal by long press of touch screen
CN105487631A (en) * 2014-09-19 2016-04-13 联想(北京)有限公司 Information processing method and electronic device
CN106056012A (en) * 2016-06-15 2016-10-26 惠州Tcl移动通信有限公司 Terminal power key control method and system
CN106200879A (en) * 2016-07-25 2016-12-07 深圳市万普拉斯科技有限公司 A kind of fingerprint authentication method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9197637B2 (en) * 2011-07-08 2015-11-24 Research Foundation Of The City University Of New York Method of comparing private data without revealing the data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793878A (en) * 2014-01-22 2015-07-22 南京步步高通信科技有限公司 Method for achieving quick screen blacking and locking of mobile terminal by long press of touch screen
CN105487631A (en) * 2014-09-19 2016-04-13 联想(北京)有限公司 Information processing method and electronic device
CN106056012A (en) * 2016-06-15 2016-10-26 惠州Tcl移动通信有限公司 Terminal power key control method and system
CN106200879A (en) * 2016-07-25 2016-12-07 深圳市万普拉斯科技有限公司 A kind of fingerprint authentication method and electronic equipment

Also Published As

Publication number Publication date
CN107423593A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
US10776003B2 (en) Information processing device, information processing method and computer-readable recording medium
US10296140B2 (en) Information processing method for avoidance of a mis-touch and electronic device thereof
EP3355222B1 (en) Fingerprint identification terminal screen unlocking method and terminal
KR101242620B1 (en) Method for processing a touch signal by the touch sensor controller and apparatus thereof
WO2015120727A1 (en) Touch screen communication terminal and touch response method and system in call state thereof
CN106485124B (en) Operation control method of mobile terminal and mobile terminal
US20100013778A1 (en) Portable electronis device and the mode switching method thereof
CN104899029A (en) Screen control method and apparatus
US20140189604A1 (en) Method and system for unlocking a touchscreen of an electronic device
KR101909805B1 (en) Method, system for processing figerprint input information and mobile terminal
CN108055405B (en) Terminal and method for awakening same
CN105550640A (en) Information processing method and electronic equipment
CN105468217A (en) Mobile terminal for replacing power button by capacitive sensor and relation method of mobile terminal
CN104102453A (en) Waking-up method and system based on mobile terminal touch screen
CN105843499A (en) Display state switching method and terminal
CN103064614A (en) Mobile terminal and rapid recording method thereof
CN104571839A (en) Terminal and processing method and device thereof
CN107423593B (en) Fingerprint unlocking control method and device
CN105898055B (en) Dormancy method and device of mobile terminal and mobile terminal
CN104102444A (en) Gesture-based alarm clock control method and intelligent terminal
CN103425432A (en) Quick response method of LCD (liquid crystal display) and mobile terminal
CN104102534B (en) A kind of method and mobile terminal for preventing touch-screen mistaken touch
CN107346169B (en) OLED display panel and control method thereof
CN110989820A (en) Method and device for controlling power consumption of processor, processor and electronic device
CN103677551A (en) Information processing method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.