Fingerprint unlocking method, electronic equipment, readable storage medium and chip
Patent Information
- Application Number
- CN202380055781.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-07-29
- Filing Date
- 2023-04-19
- Publication Date
- 2025-03-14
AI Technical Summary
In the existing technology, the initialization time of the LCD screen during the fingerprint unlocking process is long, resulting in low fingerprint unlocking efficiency, and when the backlight is turned on, the entire screen needs to be turned on, which is power-consuming and unnecessary.
By directly sending an interrupt command during a touch operation, the touch screen module detects whether the touch area reaches the threshold, and lights the backlight when the threshold is reached, shortening the initialization time, improving unlocking efficiency, and selectively lighting the backlight to save power. .
It shortens the fingerprint unlocking time, improves the unlocking efficiency, avoids unnecessary power consumption, and enhances the diversity of backlight functions and the reliability of fingerprint recognition.
Smart Images

Figure CN119631042A_ABST
Abstract
Description
Fingerprint unlocking method, electronic device, readable storage medium and chip
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on July 29, 2022, with application number 202210908805.0 and application name “Fingerprint unlocking method, electronic device, readable storage medium and chip”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a fingerprint unlocking method, electronic device, readable storage medium and chip. Background Art
[0003] As people become increasingly dependent on electronic devices, more and more user information is recorded in these devices. This user information is related to users' property and privacy. As a result, users have increasingly high expectations for the security of electronic devices. To ensure the security of electronic devices, various unlocking verification methods are usually set up for electronic devices, such as fingerprint unlocking verification.
[0004] During fingerprint unlocking, the electronic device needs to illuminate the liquid crystal display (LCD) screen, collect fingerprint information within the fingerprint recognition area, perform fingerprint recognition verification based on the fingerprint information, and unlock the device after the fingerprint verification is successful. Improving the efficiency of fingerprint unlocking has become a pressing issue for this series of operations.
[0005] Summary of the Invention
[0006] This application provides a fingerprint unlocking method, electronic device, readable storage medium, and chip, which can solve the problem of how to improve the efficiency of fingerprint unlocking in related technologies. The technical solution is as follows:
[0007] In a first aspect, a fingerprint unlocking method is provided, which is applied to an electronic device, and the method includes:
[0008] In response to a touch operation on a fingerprint recognition area of a touch screen of the electronic device, generating an interrupt instruction and detecting a touch area of the touch operation;
[0009] In response to the interrupt instruction, controlling the touch screen to perform an initialization operation;
[0010] When the touch screen is initialized and the touch area is greater than or equal to the area threshold, lighting up the backlight of the electronic device;
[0011] When the backlight is turned on, the electronic device is controlled to perform a fingerprint unlocking operation.
[0012] In this way, during the fingerprint unlocking process, when a touch operation is detected, the touch screen can be directly responded to by the interrupt instruction and controlled to perform the initialization operation, so that the initialization operation of the touch screen and the operation of detecting the touch area are performed at the same time, thereby shortening the fingerprint unlocking time and improving the fingerprint unlocking efficiency.
[0013] As an example of the present application, when the touch screen is initialized and the touch area is greater than or equal to the area threshold, lighting up the backlight of the electronic device includes:
[0014] When the touch screen is initialized and the touch area is greater than or equal to the area threshold, the backlight in the preset area is turned on, where the preset area is at least one of the fingerprint recognition area and the border area of the electronic device.
[0015] In this way, by selectively lighting the backlight of the electronic device, the diversity of the backlight functions is improved, and since there is no need to light the screen of the electronic device, power waste is saved.
[0016] As an example of the present application, the electronic device includes a touch screen touch module and a touch screen controller;
[0017] The step of generating an interrupt instruction and detecting a touch area of the touch operation in response to a touch operation on a fingerprint recognition area of the touch screen of the electronic device includes:
[0018] In response to a touch operation on the fingerprint recognition area of the touch screen, the touch screen touch module generates the interrupt instruction and detects the touch area of the touch operation;
[0019] The touch screen touch control module sends the interrupt instruction to the touch screen controller.
[0020] In this way, the touch module of the touch screen can send an interrupt instruction to the touch screen controller when a touch operation is detected, thereby advancing the timing of sending the interrupt instruction and accelerating the unlocking speed.
[0021] As an example of the present application, in response to the interrupt instruction, controlling the touch screen to perform an initialization operation includes:
[0022] When the touch screen controller receives the interruption instruction, it responds to the interruption instruction and performs an initialization operation on the touch screen.
[0023] In this way, the touch screen controller can simultaneously perform the touch screen initialization operation while the touch screen touch module detects whether the touch area is greater than or equal to the area threshold, thereby shortening the waiting time for the touch screen initialization operation and speeding up the fingerprint unlocking speed.
[0024] As an example of the present application, after generating an interrupt instruction and detecting the touch area of the touch operation in response to a touch operation on the fingerprint recognition area of the touch screen of the electronic device, the method further includes:
[0025] When the touch area is smaller than the area threshold, the touch control module of the touch screen sends a touch failure message to the touch screen controller;
[0026] When the touch screen controller receives the touch failure message, if the initialization operation on the touch screen is not completed, the touch screen controller stops the initialization operation on the touch screen.
[0027] In this way, by sending a touch failure message to the touch screen controller, fingerprint recognition is avoided in the case of an accidental touch by the user, thereby improving the reliability of fingerprint recognition.
[0028] As an example of the present application, the electronic device further includes a fingerprint module and a display module;
[0029] When the touch screen is initialized and the touch area is greater than or equal to the area threshold, lighting up the backlight of the electronic device includes:
[0030] When the touch screen is initialized, the touch screen controller sends an initialization completion message to the display module;
[0031] When the touch area is greater than or equal to the area threshold, the touch screen touch module sends a touch completion message to the display module through the fingerprint module;
[0032] The display module lights up the backlight when receiving the initialization completion message and the touch completion message.
[0033] In this way, by responding to the initialization completion message and the touch completion message, the backlight is turned on, thereby ensuring that the backlight is turned on when the touch operation is not a misoperation and the touch screen meets the fingerprint recognition conditions, thereby improving the reliability of fingerprint recognition.
[0034] As an example of the present application, after generating an interrupt instruction and detecting the touch area of the touch operation in response to a touch operation on the fingerprint recognition area of the touch screen of the electronic device, the method further includes:
[0035] When the touch area is smaller than the area threshold, the touch screen touch control module sends a touch failure message to the touch screen controller and the fingerprint module respectively;
[0036] When the touch screen controller receives the touch failure message, if the initialization operation on the touch screen is not completed, stopping the initialization operation on the touch screen;
[0037] When the fingerprint module receives the touch failure message, it does not make any response.
[0038] In this way, by sending touch failure messages to the touch screen controller and the fingerprint module respectively, it is ensured that fingerprint recognition can be avoided in the case of user accidental touch in different ways, thereby improving the reliability of preventing fingerprint misidentification.
[0039] As an example of the present application, when the backlight is turned on, controlling the electronic device to perform a fingerprint unlocking operation includes:
[0040] When the backlight is turned on, collecting fingerprint information in the fingerprint recognition area;
[0041] Performing fingerprint verification according to the fingerprint information;
[0042] When the fingerprint verification is passed, the electronic device is controlled to perform the operation corresponding to the fingerprint unlocking function according to the current state of the electronic device.
[0043] In this way, by controlling the electronic device to perform different operations when the electronic device is in different states, the application scope and application richness of fingerprint unlocking are improved.
[0044] As an example of the present application, before collecting the fingerprint information in the fingerprint recognition area when the backlight is turned on, the method further includes:
[0045] Identifying the type of the touch operation;
[0046] When the type of the touch operation is a touch operation for performing fingerprint recognition, the operation of collecting fingerprint information in the fingerprint recognition area while lighting the backlight is performed.
[0047] In this way, by determining whether the touch operation is a touch operation for fingerprint recognition, misoperation of fingerprint recognition is avoided and the reliability of fingerprint recognition is improved.
[0048] As an example of the present application, when the fingerprint verification is passed, performing the operation corresponding to the fingerprint unlocking function according to the current state of the electronic device includes:
[0049] If the fingerprint verification is passed, if the electronic device is currently in a screen unlocking state, unlocking the screen of the electronic device;
[0050] When the fingerprint verification is passed, if the electronic device is currently in a resource waiting payment state, the resource payment operation is performed;
[0051] If the fingerprint verification is passed, if the electronic device is currently in the account login state, the account login operation is performed;
[0052] If the fingerprint verification is passed, if the electronic device is currently in the application lock to be unlocked state, the application lock of the target application is unlocked to display the application interface of the target application. The target application is any application installed on the electronic device. The target application is set with the application lock and is currently in the waiting state. The application lock is used to encrypt the startup of the target application.
[0053] In this way, through fingerprint unlocking, the screen unlocking function, resource payment function, account login function and application lock function of the electronic device can be realized, thereby improving the application scope and application richness of fingerprint unlocking.
[0054] As an example of the present application, detecting the touch area of the touch operation includes:
[0055] Detecting the number of touch sensors touched by the touch operation in the fingerprint recognition area;
[0056] When the number of the touch sensors is greater than or equal to a number threshold, it is determined that the touch area of the touch operation is greater than or equal to the area threshold.
[0057] In this way, by detecting the number of touch sensors triggered in the fingerprint recognition area, it is possible to determine whether the touch area is greater than or equal to the area threshold, thereby reducing the complexity of detecting the touch area and improving detection efficiency.
[0058] In a second aspect, an electronic device is provided, wherein the structure of the electronic device includes a processor and a memory, wherein the memory is used to store a program that supports the electronic device to execute the fingerprint unlocking method provided by the first aspect, and to store data involved in implementing the fingerprint unlocking method described in the first aspect. The processor is configured to execute the program stored in the memory. The electronic device may further include a communication bus, which is used to establish a connection between the processor and the memory. The processor is configured to:
[0059] In response to a touch operation on a fingerprint recognition area of a touch screen of the electronic device, generating an interrupt instruction and detecting a touch area of the touch operation;
[0060] In response to the interrupt instruction, controlling the touch screen to perform an initialization operation;
[0061] When the touch screen is initialized and the touch area is greater than or equal to the area threshold, lighting up the backlight of the electronic device;
[0062] When the backlight is turned on, the electronic device is controlled to perform a fingerprint unlocking operation.
[0063] As an example of the present application, the processor is further configured to:
[0064] When the touch screen is initialized and the touch area is greater than or equal to the area threshold, the backlight in the preset area is turned on, where the preset area is at least one of the fingerprint recognition area and the border area of the electronic device.
[0065] As an example of the present application, the electronic device includes a touch screen touch module and a touch screen controller; the processor is further configured to:
[0066] In response to a touch operation on the fingerprint recognition area of the touch screen, the touch screen touch module generates the interrupt instruction and detects the touch area of the touch operation;
[0067] The touch screen touch control module sends the interrupt instruction to the touch screen controller.
[0068] As an example of the present application, the processor is further configured to:
[0069] When the touch screen controller receives the interruption instruction, it responds to the interruption instruction and performs an initialization operation on the touch screen.
[0070] As an example of the present application, the processor is further configured to:
[0071] When the touch area is smaller than the area threshold, the touch control module of the touch screen sends a touch failure message to the touch screen controller;
[0072] When the touch screen controller receives the touch failure message, if the initialization operation on the touch screen is not completed, the touch screen controller stops the initialization operation on the touch screen.
[0073] As an example of the present application, the electronic device further includes a fingerprint module and a display module;
[0074] The processor is further configured to:
[0075] When the touch screen is initialized, the touch screen controller sends an initialization completion message to the display module;
[0076] When the touch area is greater than or equal to the area threshold, the touch screen touch module sends a touch completion message to the display module through the fingerprint module;
[0077] The display module lights up the backlight when receiving the initialization completion message and the touch completion message.
[0078] As an example of the present application, the processor is further configured to:
[0079] When the touch area is smaller than the area threshold, the touch screen touch control module sends a touch failure message to the touch screen controller and the fingerprint module respectively;
[0080] When the touch screen controller receives the touch failure message, if the initialization operation on the touch screen is not completed, stopping the initialization operation on the touch screen;
[0081] When the fingerprint module receives the touch failure message, it does not make any response.
[0082] As an example of the present application, the processor is further configured to:
[0083] When the backlight is turned on, collecting fingerprint information in the fingerprint recognition area;
[0084] Performing fingerprint verification according to the fingerprint information;
[0085] When the fingerprint verification is passed, the electronic device is controlled to perform the operation corresponding to the fingerprint unlocking function according to the current state of the electronic device.
[0086] As an example of the present application, the processor is further configured to:
[0087] Identifying the type of the touch operation;
[0088] When the type of the touch operation is a touch operation for performing fingerprint recognition, the operation of collecting fingerprint information in the fingerprint recognition area while lighting the backlight is performed.
[0089] As an example of the present application, the processor is further configured to:
[0090] If the fingerprint verification is passed, if the electronic device is currently in a screen unlocking state, unlocking the screen of the electronic device;
[0091] When the fingerprint verification is passed, if the electronic device is currently in a resource waiting payment state, the resource payment operation is performed;
[0092] If the fingerprint verification is passed, if the electronic device is currently in the account login state, the account login operation is performed;
[0093] If the fingerprint verification is passed, if the electronic device is currently in the application lock to be unlocked state, the application lock of the target application is unlocked to display the application interface of the target application. The target application is any application installed on the electronic device. The target application is set with the application lock and is currently in the waiting state. The application lock is used to encrypt the startup of the target application.
[0094] As an example of the present application, the processor is further configured to:
[0095] Detecting the number of touch sensors touched by the touch operation in the fingerprint recognition area;
[0096] When the number of the touch sensors is greater than or equal to a number threshold, it is determined that the touch area of the touch operation is greater than or equal to the area threshold.
[0097] In a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is run on a computer, the computer executes the fingerprint unlocking method described in the first aspect.
[0098] In a fourth aspect, a chip is provided, comprising a processor, wherein the processor is configured to call a computer program in a memory to execute the fingerprint unlocking method described in the first aspect.
[0099] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the fingerprint unlocking method described in the first aspect above.
[0100] The technical effects obtained by the above-mentioned second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0101] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0102] FIG2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0103] FIG3 is a schematic diagram showing a software framework of an electronic device according to an exemplary embodiment;
[0104] FIG4 is a schematic diagram showing a fingerprint unlocking application scenario according to an exemplary embodiment;
[0105] FIG5 is a schematic diagram showing a fingerprint unlocking application scenario according to another exemplary embodiment;
[0106] FIG6 is a schematic diagram showing a fingerprint unlocking application scenario according to another exemplary embodiment;
[0107] FIG7 is a schematic diagram showing a fingerprint unlocking application scenario according to another exemplary embodiment;
[0108] FIG8 is a schematic diagram showing a flow chart of a fingerprint unlocking method according to an exemplary embodiment;
[0109] FIG9 is a schematic flow chart showing a fingerprint unlocking method according to another exemplary embodiment;
[0110] FIG10 is a schematic flow chart showing a fingerprint unlocking method according to another exemplary embodiment;
[0111] FIG11 is a schematic flow chart showing a fingerprint unlocking method according to another exemplary embodiment;
[0112] FIG12 is a schematic flow chart showing a fingerprint unlocking method according to another exemplary embodiment;
[0113] Fig. 13 is a schematic structural diagram of an electronic device according to another exemplary embodiment.
[0114] Figure numerals: 1: fingerprint recognition area, 2: lock screen interface, 3: mobile phone desktop, 4: payment verification interface, 5: payment completion interface, 6: fingerprint login interface, 7: application interface of video application, 8: application unlocking interface, 9: application interface of social application, 11: TP touch module, 12: fingerprint module, 13: LCD controller, 14: display module, 15: unlocking module, 16: payment module, 17: login module, 18: application lock module. DETAILED DESCRIPTION
[0115] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0116] It should be understood that the “multiple” mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, words such as “first” and “second” are used to distinguish between identical or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit them to be different.
[0117] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0118] With the development of terminal technology, in order to better protect user privacy and the security of electronic devices, users usually set fingerprint unlocking for electronic devices when using them. For example, users can set fingerprint unlocking for their mobile phones when using them. Referring to Figure 1, when the screen of the mobile phone is off, the user can touch the fingerprint recognition area 1 when he needs to unlock the phone; the touch screen (TouchPad, TP) touch module 11 in the mobile phone responds to the touch operation of the finger on the fingerprint recognition area 1, determines whether the touch area of the touch operation is greater than the area threshold, and sends a fingerprint collection message to the fingerprint module if the touch area is greater than the area threshold. When the fingerprint module 12 receives the fingerprint collection message, it collects fingerprint information and identifies the collected fingerprint information. After the fingerprint verification is passed, it sends an LCD interrupt instruction to the LCD controller 13; when the LCD interrupt instruction is received, the LCD controller 13 initializes the LCD screen and sends an initialization completion message to the display module 14 after the initialization is completed. Upon receiving the initialization completion message, the display module 14 lights up the LCD screen and sends the LCD screen lighting message to the unlocking module 15. After the LCD screen lights up, the lock screen interface 2 is displayed, which includes a fingerprint recognition area. Upon receiving the lighting message, the unlocking module 15 unlocks the phone's screen and displays the opening screen interface, which is the interface displayed before the last lock screen, for example, the phone's homepage 3.
[0119] However, if the fingerprint recognition operation is performed after the contact area between the finger and the fingerprint recognition area is greater than or equal to the area threshold, and the LCD interrupt instruction is sent to the LCD controller only after the fingerprint verification is passed, the LCD screen will not be initialized until the interrupt instruction is received. This will result in a longer LCD screen initialization time and a relatively low final fingerprint unlocking efficiency.
[0120] In order to shorten the fingerprint unlocking time and improve the efficiency of fingerprint unlocking, an embodiment of the present application provides a fingerprint unlocking method, which can directly report an LCD interrupt instruction to the LCD controller when the electronic device detects a touch operation through the TP touch module, so that the LCD controller first performs the LCD screen initialization operation. At the same time, the TP touch module can detect whether the touch area of the touch operation is greater than or equal to the area threshold, and after the touch area is greater than or equal to the area threshold and the LCD initialization operation is completed, the fingerprint recognition operation is performed through the fingerprint module. Among them, the area threshold is a pre-set threshold. When the touch area is greater than or equal to the area threshold, it means that the touch operation is a valid operation and is not an accidental touch operation of the fingerprint recognition area by the user. Therefore, the fingerprint recognition operation can be performed through the fingerprint module after the touch area is greater than or equal to the area threshold. Since the initialization operation of the LCD screen and the operation of detecting the touch area are performed simultaneously, the fingerprint unlocking time is shortened and the fingerprint unlocking efficiency is improved. Its specific implementation can be found below.
[0121] Before explaining in detail the fingerprint unlocking method provided in the embodiment of the present application, the electronic device involved in the embodiment of the present application is first explained.
[0122] The method provided in the embodiment of the present application can be performed by an electronic device that supports a fingerprint unlocking function. Furthermore, the electronic device may be installed with applications such as video, navigation, e-books, music, shopping, and games, which can support the function of paying resources through fingerprint unlocking, and / or support the function of logging into an account through fingerprint unlocking, and / or support the function of launching an application through fingerprint unlocking, etc. As an example and not a limitation, the electronic device can be, but is not limited to, a mobile phone sports camera (GoPro), a digital camera, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a car-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device, a mobile phone, a door lock, a smart appliance, etc., and the embodiment of the present application is not limited to this.
[0123] FIG2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Referring to FIG2 , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. Among them, the sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0124] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0125] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0126] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0127] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0128] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0129] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0130] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0131] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is an integer greater than one.
[0132] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created by the electronic device 100 during use (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0133] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0134] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0135] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor 180K can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.
[0136] The keys 190 include a power button, a volume button, etc. The keys 190 may be mechanical keys or touch keys. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0137] Next, the software system of the electronic device 100 will be described.
[0138] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to exemplify the software system of the electronic device 100.
[0139] FIG3 is a block diagram of a software system of an electronic device 100 provided in an embodiment of the present application. Referring to FIG3 , the layered architecture divides the software into several layers, each with clear roles and divisions of labor. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the hardware abstraction layer (HAL), and the kernel layer, from top to bottom.
[0140] The application layer can include a series of application packages. As shown in Figure 3, the application package can include shopping, video, social, camera, calendar, map and other applications.
[0141] As an example of the present application, the application layer also includes an unlocking module, which is used to unlock the screen of the electronic device when a fingerprint verification pass message sent by the HAL layer is received.
[0142] As an example of the present application, the application layer also includes a payment module, which is used to perform resource payment operations when a fingerprint verification pass message is received from the HAL layer.
[0143] As an example of the present application, the application layer also includes a login module, which is used to perform an account login operation when a fingerprint verification pass message is received from the HAL layer.
[0144] As an example of the present application, the application layer also includes an application lock module. The application lock module is used to unlock the application corresponding to the application lock module when receiving a fingerprint verification pass message sent by the HAL layer to display the application interface of the corresponding application. The corresponding application refers to the application that is set with an application lock and currently needs to be started. Setting an application lock for an application means encrypting the startup of the application, that is, when starting the application, the application interface of the application can only be displayed after the application is unlocked.
[0145] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes several predefined functions. As shown in Figure 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and so on. The window manager manages window programs. It can obtain the display screen size, determine whether a status bar is present, lock the screen, and take screenshots. The content provider stores and retrieves data and makes it accessible to applications. This data may include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and the phone book. The view system includes visual controls, such as those that display text and images. The view system is used to construct the application's display interface. The display interface may consist of one or more views, such as a view that displays a text message notification icon, a view that displays text, and a view that displays images. The telephony manager provides communication functions for electronic device 100, such as managing call status (including connected and ended calls). The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, and video files. The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads, message reminders, and so on. The Notification Manager can also display notifications in the form of icons or scrolling text in the top status bar of the system, such as notifications from applications running in the background. The Notification Manager can also display notifications in the form of dialog windows on the screen, such as text messages in the status bar, beeps, vibrates electronic devices, flashes indicator lights, and so on.
[0146] As an example of the present application, the HAL layer includes at least a fingerprint (FP) module, which is used to identify whether the touch operation is a touch operation for fingerprint recognition based on the touch data carried in the touch completion message when receiving the touch completion message sent by the kernel layer. At the same time, the touch completion message is sent to the kernel layer so that the kernel layer lights up the backlight based on the touch completion message, wherein identifying the type of touch operation can refer to identifying whether the touch operation is a touch operation for fingerprint recognition; and when the fingerprint module identifies that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message sent by the kernel layer, it can collect fingerprint information and identify the collected fingerprint information. The backlight lighting message is sent when the kernel layer lights up the backlight after receiving the touch completion message. When the fingerprint module determines that the fingerprint verification is successful based on the collected fingerprint information, it can send a fingerprint verification success message to the module corresponding to the current fingerprint unlocking scenario. For example, in the screen unlocking scenario, the fingerprint module can send a fingerprint verification pass message to the unlocking module; in the resource payment scenario, the fingerprint module can send a fingerprint verification pass message to the payment module; in the account login scenario, the fingerprint module can send a fingerprint verification pass message to the login module; in the scenario where the application is started and the application is set with an application lock, the fingerprint module sends a fingerprint verification pass message to the application lock module.
[0147] It should be noted that the fingerprint module may include a fingerprint collection module and a fingerprint recognition module. The fingerprint collection module is used to collect fingerprint information and send the collected fingerprint information to the fingerprint recognition module. The fingerprint recognition module is used to perform fingerprint recognition based on the fingerprint information received from the fingerprint collection module and send a fingerprint verification success message to the module corresponding to the current fingerprint unlocking scenario after the fingerprint verification succeeds.
[0148] The kernel layer is the layer between hardware and software. The kernel layer includes at least the TP touch module, LCD controller, display module, display driver, camera driver, audio driver, and sensor driver.
[0149] As an example, the TP touch module is used to detect touch operations on the screen of an electronic device and, when a touch operation is detected, trigger an LCD interrupt to send an LCD interrupt instruction to the LCD controller and determine whether the touch area of the touch operation is greater than or equal to an area threshold. If the TP touch module detects that the touch area is greater than or equal to the area threshold, it indicates that the touch operation was not a user error, and therefore, a touch completion message can be sent to the fingerprint module. If the TP touch module detects that the touch area is less than the area threshold, it indicates that the touch operation was a user error, and therefore, a touch failure message can be sent to the LCD controller and / or fingerprint module, or no message can be sent.
[0150] As an example of the present application, the TP touch module may include a touch sensor and a touch processor, wherein the touch sensor is used to detect touch operations acting on the screen of the electronic device; the touch processor is used to trigger an LCD interrupt to send an LCD interrupt instruction to the LCD controller, and at the same time, detect whether the touch area of the touch operation is greater than or equal to the area threshold.
[0151] As an example, the LCD controller is configured to initialize the LCD screen upon receiving an LCD interrupt instruction and send an initialization completion message to the display module after the initialization is complete. In addition, upon receiving a touch failure message, the LCD controller will not perform the initialization operation if the current initialization operation on the LCD screen is not completed.
[0152] As an example, the display module is configured to light up the backlight of the electronic device screen upon receiving the initialization completion message and the touch completion message, and send a backlight lighting message to the fingerprint module.
[0153] It should be noted that the display module may include a high brightness monitor (HBM).
[0154] The following describes the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.
[0155] When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the raw input event. For example, if the touch operation is a single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then calls the kernel layer to start the camera driver to capture a still image or video through the camera 193.
[0156] For ease of understanding, before introducing the method provided in the embodiment of the present application in detail, based on the execution subject provided in the above embodiment, the application scenarios involved in the embodiment of the present application are introduced by taking the electronic device being a mobile phone as an example.
[0157] Please refer to Figure 4, which is a schematic diagram of an application scenario according to an exemplary embodiment. In one possible scenario, in order to avoid mobile phone privacy leakage, users usually set a lock screen password for the mobile phone, for example, a fingerprint password for the mobile phone. Referring to Figure 4, when the mobile phone is in the lock screen state and the mobile phone is set with a fingerprint password, if the user needs to unlock the mobile phone, the user can touch the fingerprint recognition area 1 of the mobile phone; the TP touch module 11 in the mobile phone responds to the touch operation on the fingerprint recognition area 1, triggering an LCD interrupt to send an LCD interrupt instruction to the LCD controller 13. At the same time, the TP touch module 11 determines whether the touch area of the touch operation is greater than or equal to the area threshold, and sends a touch completion message to the fingerprint module 12 when the touch area is greater than or equal to the area threshold. When the fingerprint module 12 receives the touch completion message, it identifies whether the touch operation is a touch operation for fingerprint recognition, and sends the touch completion message to the display module 14; when the LCD controller 13 receives the LCD interrupt instruction, it performs the initialization operation of the LCD screen, and when the initialization operation is completed, it sends the initialization completion message to the display module 14; when the display module 14 receives the initialization completion message and the touch completion message, it turns on the backlight of the LCD screen and sends a backlight lighting message to the fingerprint module 12; after the fingerprint module 12 identifies that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message, it collects the fingerprint information at the fingerprint recognition area, and when the fingerprint verification is passed, it sends the fingerprint verification pass message to the unlocking module 15; the mobile phone unlocks the LCD screen of the mobile phone through the unlocking module 15, and displays the unlocked mobile phone interface, for example, displays the mobile phone desktop 3.
[0158] It should be noted that when the display module 14 turns on the backlight, it can turn on all the backlights or turn on the backlights in some areas, for example, turning on the backlights at the phone frame, turning on the backlights at the fingerprint recognition area, etc. The drawings of the embodiments of the present application take the turning on of the backlights at the fingerprint recognition area as an example for illustration, and the drawings of the embodiments of the present application use the background filling of the fingerprint recognition area to represent the turning on of the backlights at the fingerprint recognition area.
[0159] As an example of the present application, when a user is using a mobile phone, they may make a resource payment through the payment application of the mobile phone. Before paying for the resources, for the sake of property safety, a security verification is usually required. For example, referring to FIG5 , when making a resource payment, a payment verification interface 4 may be displayed, in which a fingerprint recognition area 1 is displayed, and the user may touch the fingerprint recognition area 1; the TP touch module 11 in the mobile phone triggers an LCD interrupt in response to the touch operation on the fingerprint recognition area 1 to send an LCD interrupt instruction to the LCD controller 13. At the same time, the TP touch module 11 determines whether the touch area of the touch operation is greater than or equal to the area threshold, and sends a touch completion message to the fingerprint module 12 if the touch area is greater than or equal to the area threshold. When the fingerprint module 12 receives the touch completion message, it identifies whether the touch operation is a touch operation for fingerprint recognition and sends the touch completion message to the display module 14. When the LCD controller 13 receives the LCD interrupt command, it performs the LCD screen initialization operation and, upon completion of the initialization operation, sends the initialization completion message to the display module 14. When the display module 14 receives the initialization completion message and the touch completion message, it turns on the LCD screen backlight and sends a backlight lighting message to the fingerprint module 12. Since the fingerprint recognition operation is performed while the mobile phone is displaying the payment verification interface, the mobile phone screen is already lit. Therefore, in response to the operation of lighting the LCD screen backlight, the mobile phone can continue to display the payment verification interface. After the fingerprint module 12 identifies the touch operation as a touch operation for fingerprint recognition and receives the backlight lighting message, it collects the fingerprint information at the fingerprint recognition area and, if the fingerprint verification is successful, sends a fingerprint verification success message to the payment module 16. The mobile phone completes the resource payment through the payment module 16 and displays the payment completion interface 5 after the payment is completed.
[0160] As an example of the present application, when a user is using a mobile phone, some applications need to be used after logging into an account, and some applications realize more functions after logging into an account, such as video applications, banking applications, payment applications, etc. However, when logging into an account by entering an account number and password, it may happen that the account number or password is entered incorrectly. In such a case, in order to reduce the error rate of login, the account login can usually be performed through fingerprint verification. Referring to Figure 6, when logging into an account through fingerprint verification in a video application, the user can touch the fingerprint recognition area 1 in the fingerprint login interface 6 of the video application; the TP touch module 11 in the mobile phone triggers an LCD interrupt in response to the touch operation on the fingerprint recognition area 1 to send an LCD interrupt instruction to the LCD controller 13. At the same time, the TP touch module 11 determines whether the touch area of the touch operation is greater than or equal to the area threshold, and sends a touch completion message to the fingerprint module 12 when the touch area is greater than or equal to the area threshold. When the fingerprint module 12 receives the touch completion message, it identifies whether the type of touch operation is fingerprint operation. The touch operation is identified and a touch completion message is sent to the display module 14. When the LCD controller 13 receives the LCD interrupt instruction, it performs the initialization operation of the LCD screen and sends the initialization completion message to the display module 14 when the initialization operation is completed. When the display module 14 receives the initialization completion message and the touch completion message, it turns on the backlight of the LCD screen and sends a backlight lighting message to the fingerprint module 12. Since the fingerprint recognition operation is performed when the mobile phone displays the fingerprint login interface, the mobile phone screen is already in a lighting state. Therefore, in response to the operation of lighting the backlight of the LCD screen, the mobile phone can continue to display the fingerprint login interface. After the fingerprint module 12 recognizes that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message, it collects the fingerprint information at the fingerprint recognition area and sends the fingerprint verification pass message to the login module 17 when the fingerprint verification passes. The mobile phone completes the account login through the login module 17 and displays the application interface 7 of the video application.
[0161] As an example of the present application, when using a mobile phone, a user may set an application lock for some applications. For example, to set an application lock for a social application, the user clicks on the application icon of the social application; in response to the click operation on the application icon of the social application, see Figure 7, the mobile phone displays the application unlocking interface 8, and the user can touch the fingerprint recognition area 1 displayed in the application unlocking interface 8; the TP touch module 11 in the mobile phone triggers an LCD interrupt in response to the touch operation on the fingerprint recognition area 1 to send an LCD interrupt instruction to the LCD controller 13. At the same time, the TP touch module 11 determines whether the touch area of the touch operation is greater than or equal to the area threshold, and sends a touch completion message to the fingerprint module 12 when the touch area is greater than or equal to the area threshold. When the fingerprint module 12 receives the touch completion message, it identifies whether the touch operation is a touch operation for fingerprint recognition, and sends the touch completion message to the display module 14; when the LCD controller 13 receives the LCD interrupt instruction, it performs the initialization operation of the LCD screen, and when the initialization operation is completed, it sends the initialization completion message to the display module 14; when the display module 14 receives the initialization completion message and the touch completion message, it turns on the backlight of the LCD screen and sends a backlight lighting message to the fingerprint module 12; since the fingerprint recognition operation is performed when the mobile phone displays the application unlocking interface, the mobile phone screen is already in a lit state. Therefore, in response to the operation of lighting the backlight of the LCD screen, the mobile phone can still display the application unlocking interface. After the fingerprint module 12 recognizes that the touch operation is a touch operation for fingerprint recognition and receives the backlight lighting message, it collects the fingerprint information at the fingerprint recognition area, and if the fingerprint verification is successful, it sends the fingerprint verification success message to the application lock module 18; the mobile phone no longer displays the application unlocking interface 8 through the application lock module 18, that is, the mobile phone unlocks the application lock set for the social application through the application lock module, and then displays the application interface 9 of the social application.
[0162] It should be noted that the embodiments of the present application are described using the application scenarios shown in Figures 4 to 7 above as an example. Other scenarios requiring fingerprint unlocking can also be applied to the methods described in the embodiments of the present application.
[0163] Based on the execution subjects and application scenarios provided in the above embodiments, the fingerprint unlocking method provided in the embodiments of the present application is introduced below. Please refer to Figure 8, which is a flow chart of a fingerprint unlocking method according to an exemplary embodiment, and Figure 8 is illustrated by unlocking the mobile phone screen as an example. As an example and not a limitation, the method is applied to a mobile phone equipped with a fingerprint unlocking function, and the mobile phone is implemented through the interaction of multiple modules shown in Figure 3 as an example. The method may include some or all of the following contents:
[0164] Step A1: In the locked screen state, the TP touch module triggers an LCD interrupt in response to a touch operation on the fingerprint recognition area to send an LCD interrupt instruction to the LCD controller and detect whether the touch area of the touch operation is greater than or equal to the area threshold.
[0165] If a user needs to use their phone and the screen is locked, they must first unlock it. If the phone supports fingerprint unlocking and has been configured to unlock with fingerprints, the user touches the fingerprint recognition area of the phone. In response to a touch on the fingerprint recognition area, the TP touch module directly triggers an LCD interrupt, sending an LCD interrupt command to the LCD controller and detecting whether the touch area is greater than or equal to the area threshold.
[0166] It should be noted that the touch area of a touch operation refers to the contact area between the user's finger and the mobile phone screen when the user's finger acts on the fingerprint recognition area.
[0167] As can be seen from the above, the TP touch module may include a touch sensor and a touch processor. Therefore, as an example, the TP touch module can detect the user's touch operation through the touch sensor, and when the user's touch operation is detected, trigger the LCD interrupt through the touch processor to send an LCD interrupt instruction to the LCD controller, and detect whether the touch area of the touch operation is greater than or equal to the area threshold.
[0168] It should be noted that the area threshold is a threshold set in advance according to needs, and the minimum value of the set area threshold is the area required to implement the fingerprint recognition function.
[0169] In some embodiments, the operation of the TP touch module detecting whether the touch area of the touch operation is greater than or equal to the area threshold includes: detecting the number of touch sensors touched by the touch operation in the fingerprint recognition area, and when the number of touch sensors is greater than or equal to the number threshold, determining that the touch area of the touch operation is greater than or equal to the area threshold.
[0170] It should be noted that the operation of the TP touch module detecting whether the touch area of the touch operation is greater than or equal to the area threshold can include not only the above-mentioned method, but also other methods. Other methods can refer to relevant technologies, and the embodiments of this application will not be described one by one.
[0171] Step A2: When the LCD controller receives the LCD interrupt instruction, it initializes the LCD screen.
[0172] It is worth noting that since the TP touch module can send an LCD interrupt instruction to the LCD controller when it detects a touch operation, the LCD controller can simultaneously perform the LCD screen initialization operation while the TP touch module detects whether the touch area is greater than or equal to the area threshold, thereby shortening the waiting time for the LCD initialization operation and speeding up the fingerprint unlocking speed.
[0173] It should be noted that the operation of the LCD controller initializing the LCD screen can refer to related technologies. For example, the initialization operation of the LCD controller on the LCD screen includes clearing the LCD screen (DISPLAY CLEAR), setting the function of the LCD screen (FUNCTION SET), controlling the display on / off mode (DISPLAY ON / OFF CONTROL), and setting the LCD screen input mode (ENTRY MODE SET). This embodiment of the present application will not be described in detail one by one.
[0174] Step A3: When the LCD screen initialization is completed, the LCD controller sends an initialization completion message to the display module.
[0175] Since the backlight usually needs to be turned on during the fingerprint unlocking process, and the backlight can only be turned on after the LCD initialization is completed, the LCD controller can send an initialization completion message to the display module after the LCD screen initialization is completed.
[0176] Step A4: When the TP touch module detects that the touch area is greater than or equal to the area threshold, it sends a touch completion message to the fingerprint module.
[0177] Since the premise of fingerprint recognition is that the touch area of the finger in the fingerprint recognition area meets the requirement, and the minimum value of the area threshold is the area required to realize the fingerprint recognition function, therefore, when the touch area is greater than or equal to the area threshold, a touch completion message can be sent to the fingerprint module.
[0178] In some embodiments, if the TP touch module detects that the touch area is less than the area threshold, it indicates that the user may have accidentally touched the fingerprint recognition area and did not intend to unlock the phone. Therefore, the TP touch module can send a touch failure message to the LCD controller. If the LCD controller receives the touch failure message and the current LCD screen initialization operation is not completed, it will not perform the initialization operation. At the same time, the TP touch module will not send any messages to the fingerprint module.
[0179] In some embodiments, when the TP touch module detects that the touch area is smaller than the area threshold, the TP touch module can also send a touch failure message to the LCD controller and the fingerprint module at the same time. If the current initialization operation of the LCD screen is not completed, the initialization operation will no longer be performed; at the same time, the fingerprint module does not perform any operation when receiving the touch failure message.
[0180] In some embodiments, when the TP touch module detects that the touch area is smaller than the area threshold, it does not send a touch failure message to any module.
[0181] Step A5: When the fingerprint module receives the touch completion message, it forwards the touch completion message to the display module.
[0182] Since the touch area is greater than or equal to the area threshold, it means that the touch operation is not an accidental operation of the user on the mobile phone screen, but requires fingerprint unlocking. During the fingerprint unlocking process, in order to prompt the user that the touch operation is valid, the backlight can also be turned on during the fingerprint unlocking process. Therefore, when the fingerprint module receives the touch completion message, it can forward the touch completion message to the display module.
[0183] In some embodiments, upon receiving the touch completion message, the fingerprint module can not only forward the touch completion message to the display module, but also identify whether the touch operation is a touch operation for fingerprint recognition based on the touch data carried in the touch completion message.
[0184] During the fingerprint recognition process, the user's finger is required to be in the fingerprint recognition area for a certain period of time, otherwise, fingerprint recognition may not be performed. Therefore, the touch data may include the touch time of the touch operation in the fingerprint recognition area.
[0185] It should be noted that the fingerprint module can refer to relevant technologies for identifying the type of touch operation based on touch data. For example, if the touch data includes touch duration, if the touch duration is detected to be greater than or equal to a duration threshold, the touch operation is determined to be a touch operation for fingerprint recognition. Alternatively, the touch data may also include the capacitance value of the screen after the touch operation, the pressure value generated by the touch operation on the screen, the acceleration value generated by the touch operation on the phone, etc. If the fingerprint module detects that the capacitance value is within a preset capacitance range, the pressure value is within a preset pressure range, and the acceleration value is within a preset acceleration range, the touch operation is determined to be a touch operation for fingerprint recognition. Among them, the preset capacitance range, the preset pressure range, and the preset acceleration range are all obtained based on a machine learning algorithm. For example, the screen of the mobile phone can be touched multiple times in advance, each time by touching the screen with a knuckle, a fingernail, a fingertip, a capacitive pen, etc., and the touch data corresponding to each touch is recorded. Then, the touch data generated when the touch operation is performed by the fingertip and the touch operation is performed by a non-fingertip are counted and distinguished, thereby determining the range corresponding to the touch data generated by each type of touch operation. This embodiment of the application will not be described in detail one by one.
[0186] It should also be noted that when the LCD controller completes LCD screen initialization, the TP touch module may have already sent a touch completion message to the fingerprint module; or, when the TP touch module detects that the touch area is greater than or equal to the area threshold, the LCD controller has already sent an initialization completion message to the display module; or, when the TP touch module detects that the touch area is greater than or equal to the area threshold, the LCD controller has also just completed the operation of initializing the LCD screen. Therefore, when the LCD controller sends the initialization completion message to the display module, the TP touch module also sends a touch completion message to the fingerprint module. Therefore, in the embodiment of the present application, the execution order of the above steps A3 and A4 is not limited.
[0187] Step A6: Upon receiving the touch completion message and the initialization completion message, the display module turns on the backlight of the LCD screen and sends a fingerprint collection message to the fingerprint module.
[0188] It should be noted that the backlight of the LCD screen lit by the display module can be all the backlights installed in the mobile phone, or can be the backlights in a specified area, for example, the backlight of the fingerprint recognition area, the backlight of the mobile phone frame, etc. This embodiment of the application does not impose specific restrictions on this.
[0189] Step A7: When the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it collects fingerprint information in the fingerprint recognition area.
[0190] As can be seen from the above, the fingerprint module includes a fingerprint collection module. Therefore, when the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, the fingerprint collection module can collect fingerprint information in the fingerprint recognition area.
[0191] As an example, the fingerprint collection module may include a fingerprint sensor, and thus, fingerprint information within the fingerprint recognition area may be collected by the fingerprint sensor.
[0192] Step A8: The fingerprint module performs fingerprint verification based on the fingerprint information.
[0193] As can be seen from the above, the fingerprint module includes a fingerprint recognition module. Therefore, after collecting fingerprint information, the fingerprint collection module can send the fingerprint information to the fingerprint recognition module. After receiving the fingerprint information, the fingerprint recognition module performs fingerprint verification based on the fingerprint information.
[0194] As an example, the operation of the fingerprint recognition module performing fingerprint verification based on the fingerprint information includes: comparing the collected fingerprint information with the stored fingerprint information, and when the target fingerprint information exists in the stored fingerprint information, determining that the fingerprint verification is successful, and the target fingerprint information is the fingerprint information whose similarity with the collected fingerprint information is greater than or equal to the similarity threshold.
[0195] In some embodiments, the stored fingerprint information refers to the fingerprint information previously entered by the user into the mobile phone. For example, in response to the fingerprint unlocking setup operation, the mobile phone may display a fingerprint entry interface. The user may touch the fingerprint entry area of the fingerprint entry interface multiple times with the tip of the same finger. The mobile phone then stores the fingerprint information of the finger in response to the multiple touch operations on the fingerprint entry area. Of course, the user may repeat the above operation to cause the mobile phone to store fingerprint information of different fingers.
[0196] It should be noted that the similarity threshold can be set in advance according to needs. For example, the similarity threshold can be 99%, 96%, 90%, etc.
[0197] Step A9: When the fingerprint verification is successful, the fingerprint module sends a fingerprint verification success message to the unlocking module.
[0198] Since the unlocking module can unlock the mobile phone, when the fingerprint verification is passed, the fingerprint module sends a fingerprint verification pass message to the unlocking module.
[0199] Step A10: Upon receiving the fingerprint verification success message, the unlocking module unlocks the phone screen.
[0200] It should be noted that the operation of the unlocking module to unlock the mobile phone screen can refer to related technologies. For example, the unlocking module can create a wake lock (WakeLock) corresponding to the screen and activate the wake lock to unlock the mobile phone screen. This embodiment of the application will not be described in detail.
[0201] In some embodiments, after the mobile phone is successfully unlocked, the user can perform various functions through the mobile phone, and different touch operations can trigger different functions. In order to avoid functional confusion, after the unlocking module unlocks the mobile phone screen, the mobile phone no longer displays the fingerprint recognition area.
[0202] In some embodiments, after the mobile phone is successfully unlocked, the unlocking module may further send an unlocking success message to the display module. Upon receiving the unlocking success message, the display module lights up the screen of the mobile phone.
[0203] It should be noted that the operation of the display module to light up the mobile phone screen can refer to the relevant technology, and the embodiments of the present application will not go into details about this.
[0204] In an embodiment of the present application, during the fingerprint unlocking process, since an LCD interrupt instruction can be directly sent to the LCD controller when a touch operation is detected, the LCD screen initialization operation and the touch area detection operation are performed simultaneously, thereby shortening the fingerprint unlocking time and improving the fingerprint unlocking efficiency.
[0205] Please refer to Figure 9, which is a flow chart of a fingerprint unlocking method according to another exemplary embodiment, and Figure 9 uses the example of identifying payment resources through fingerprints to illustrate. As an example and not a limitation, the method is applied to a mobile phone equipped with a fingerprint unlocking function, and the mobile phone is implemented through the interaction of multiple modules shown in Figure 3. The method may include some or all of the following contents:
[0206] Step B1: The shopping application displays a payment verification interface in response to a triggering operation to confirm the payment option.
[0207] Sometimes, for the sake of payment security, users may set fingerprint unlocking during the payment process, that is, verifying fingerprint information to ensure payment security. Therefore, in response to the triggering operation of confirming the payment option, the shopping application can display a payment verification interface with a fingerprint recognition area displayed in the payment verification interface.
[0208] It should be noted that the present application embodiment only uses the shopping application as an example for illustration, and other applications with payment functions are also applicable to the operations provided in the present application embodiment. The present application embodiment will not be described in detail one by one.
[0209] Step B2: The TP touch module triggers an LCD interrupt in response to a touch operation on the fingerprint recognition area in the payment verification interface to send an LCD interrupt instruction to the LCD controller and detect whether the touch area of the touch operation is greater than or equal to the area threshold.
[0210] Step B3: When the LCD controller receives the LCD interrupt instruction, it initializes the LCD screen.
[0211] It should be noted that since the fingerprint recognition operation is performed when the payment verification interface is displayed, that is, the fingerprint recognition operation is performed when the display screen is highlighted, in this case, since the LCD screen is already in the initialization completion state, when the LCD controller receives the LCD interrupt instruction, if it detects the initialization completion mark, it can directly execute the operation of the following step B4.
[0212] It should be noted that the initialization completion flag is used to uniquely identify the completion of the initialization operation of the LCD screen.
[0213] Step B4: When the LCD screen initialization is completed, the LCD controller sends an initialization completion message to the display module.
[0214] Step B5: When the TP touch module detects that the touch area is greater than or equal to the area threshold, it sends a touch completion message to the fingerprint module.
[0215] Step B6: Upon receiving the touch completion message, the fingerprint module forwards the touch completion message to the display module.
[0216] Step B7: Upon receiving the touch control completion message and the initialization completion message, the display module turns on the backlight of the LCD screen and sends a fingerprint collection message to the fingerprint module.
[0217] Since the backlight of the LCD screen is already on in the current scenario, after receiving the touch completion message and the initialization completion message, if the display module detects the lighting mark, it can directly send a fingerprint collection message to the fingerprint module.
[0218] It should be noted that the lighting mark is used to uniquely identify that the backlight of the LCD screen is lit.
[0219] Step B8: When the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it collects fingerprint information in the fingerprint recognition area.
[0220] Step B9: The fingerprint module performs fingerprint verification based on the fingerprint information.
[0221] It should be noted that the operations of steps B2-B9 can refer to the operations of the above-mentioned steps A1-A8, and the embodiments of the present application will not describe them one by one.
[0222] Step B10: When the fingerprint verification is successful, the fingerprint module sends a fingerprint verification success message to the payment module.
[0223] Since the payment module can perform resource payment, when the fingerprint verification is passed, the fingerprint module sends a fingerprint verification pass message to the payment module.
[0224] Step B11: upon receiving the fingerprint verification pass message, the payment module performs the resource payment operation.
[0225] In an embodiment of the present application, during the fingerprint unlocking process, since an LCD interrupt instruction can be directly sent to the LCD controller when a touch operation is detected, the LCD screen initialization operation and the touch area detection operation are performed simultaneously, thereby shortening the fingerprint unlocking time and improving the fingerprint unlocking efficiency.
[0226] Please refer to Figure 10, which is a flow chart of a fingerprint unlocking method according to another exemplary embodiment. Figure 10 uses account login through fingerprint recognition as an example. As an example and not a limitation, this method is applied to a mobile phone equipped with a fingerprint unlocking function, and the mobile phone is implemented through the interaction of multiple modules shown in Figure 3. The method may include some or all of the following:
[0227] Step C1: The video application displays a fingerprint login interface in response to a triggering operation on the login option.
[0228] Sometimes, for the convenience and efficiency of account login, users may log in to their accounts through fingerprint login. Therefore, in response to the triggering operation of confirming the payment option, the video application can display a fingerprint login interface, which displays a fingerprint recognition area.
[0229] It should be noted that the embodiments of the present application only use the video application as an example for illustration. Other applications with account login functions are also applicable to the operations provided in the embodiments of the present application, and the embodiments of the present application will not go into details one by one.
[0230] Step C2: The TP touch module triggers an LCD interrupt in response to a touch operation on the fingerprint recognition area in the fingerprint login interface to send an LCD interrupt instruction to the LCD controller and detect whether the touch area of the touch operation is greater than or equal to the area threshold.
[0231] Step C3: When the LCD controller receives the LCD interrupt instruction, it initializes the LCD screen.
[0232] It should be noted that, since the fingerprint recognition operation is performed when the fingerprint login interface is displayed, that is, the fingerprint recognition operation is performed when the display screen is highlighted, in this case, since the LCD screen is already in the initialization completion state, when the LCD controller receives the LCD interrupt instruction, if it detects the initialization completion mark, it can directly execute the operation of the following step C4.
[0233] It should be noted that the initialization completion flag is used to uniquely identify the completion of the initialization operation of the LCD screen.
[0234] Step C4: When the LCD screen initialization is completed, the LCD controller sends an initialization completion message to the display module.
[0235] Step C5: When the TP touch module detects that the touch area is greater than or equal to the area threshold, it sends a touch completion message to the fingerprint module.
[0236] Step C6: When the fingerprint module receives the touch completion message, it forwards the touch completion message to the display module.
[0237] Step C7: Upon receiving the touch completion message and the initialization completion message, the display module turns on the backlight of the LCD screen and sends a fingerprint collection message to the fingerprint module.
[0238] Since the backlight of the LCD screen is already on in the current scenario, after receiving the touch completion message and the initialization completion message, if the display module detects the lighting mark, it can directly send a fingerprint collection message to the fingerprint module.
[0239] It should be noted that the lighting mark is used to uniquely identify that the backlight of the LCD screen is lit.
[0240] Step C8: When the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it collects fingerprint information in the fingerprint recognition area.
[0241] Step C9: The fingerprint module performs fingerprint verification based on the fingerprint information.
[0242] It should be noted that the operations of step C2 to step C9 can refer to the operations of the above-mentioned steps A1 to A8, and the embodiments of the present application will not describe them one by one.
[0243] Step C10: When the fingerprint verification is successful, the fingerprint module sends a fingerprint verification success message to the login module.
[0244] Since the login module can realize account login, when the fingerprint recognition is successful, the fingerprint module can send a fingerprint verification pass message to the login module.
[0245] Step C11: Upon receiving the fingerprint verification pass message, the login module performs the account login operation.
[0246] In an embodiment of the present application, during the fingerprint unlocking process, since an LCD interrupt instruction can be directly sent to the LCD controller when a touch operation is detected, the LCD screen initialization operation and the touch area detection operation are performed simultaneously, thereby shortening the fingerprint unlocking time and improving the fingerprint unlocking efficiency.
[0247] Please refer to Figure 11, which shows a flow chart of a fingerprint unlocking method according to another exemplary embodiment. Figure 11 uses the example of launching an application through fingerprint recognition as an example. As an example and not a limitation, this method is applied to a mobile phone equipped with a fingerprint unlocking function, and the mobile phone is implemented through the interaction of multiple modules shown in Figure 3. The method may include some or all of the following contents:
[0248] Step D1: In response to the start-up operation of the social application, the application lock module displays the application unlocking interface.
[0249] Sometimes, for the sake of application security, an application lock can be set for the application. For example, to prevent chat history leakage, a user can set an application lock for a social application. When launching a social application, if the social application has an application lock set, the user needs to unlock the application lock of the social application. If the unlock is successful, the mobile phone displays the application interface of the social application. Therefore, in response to the launch of the social application, the application lock module can display an application unlock interface, which can display a fingerprint recognition area.
[0250] In some embodiments, in response to the launch operation of the social application, the application lock module displays the application unlock interface, including: in response to the launch operation of the social application, the application lock module can interrupt the display of the application interface of the social application and display the application unlock interface.
[0251] As an example, the operation of the application lock module interrupting the display of the application interface of the social application includes: the application lock module overlaying the application unlocking interface on the application interface of the social application. Alternatively, the application lock module interrupts the startup process of the social application.
[0252] It should be noted that the embodiments of the present application only use social applications as an example for illustration. Other applications with application locks are also applicable to the operations described in the embodiments of the present application, and the embodiments of the present application will not be described in detail one by one.
[0253] Step D2: The TP touch module triggers an LCD interrupt in response to a touch operation on the fingerprint recognition area in the application unlocking interface to send an LCD interrupt instruction to the LCD controller and detect whether the touch area of the touch operation is greater than or equal to the area threshold.
[0254] Step D3: When the LCD controller receives the LCD interrupt instruction, it initializes the LCD screen.
[0255] It should be noted that since the fingerprint recognition operation is performed when the application unlocking interface is displayed, that is, the fingerprint recognition operation is performed when the display screen is highlighted, in this case, since the LCD screen is already in the initialization completion state, when the LCD controller receives the LCD interrupt instruction, if it detects the initialization completion mark, it can directly execute the operation of the following step D4.
[0256] It should be noted that the initialization completion flag is used to uniquely identify the completion of the initialization operation of the LCD screen.
[0257] Step D4: When the LCD screen initialization is completed, the LCD controller sends an initialization completion message to the display module.
[0258] Step D5: When the TP touch module detects that the touch area is greater than or equal to the area threshold, it sends a touch completion message to the fingerprint module.
[0259] Step D6: When the fingerprint module receives the touch completion message, it forwards the touch completion message to the display module.
[0260] Step D7: Upon receiving the touch completion message and the initialization completion message, the display module turns on the backlight of the LCD screen and sends a fingerprint collection message to the fingerprint module.
[0261] Since the backlight of the LCD screen is already on in the current scenario, after receiving the touch completion message and the initialization completion message, if the display module detects the lighting mark, it can directly send a fingerprint collection message to the fingerprint module.
[0262] It should be noted that the lighting mark is used to uniquely identify that the backlight of the LCD screen is lit.
[0263] Step D8: When the fingerprint module recognizes that the touch operation is a touch operation for fingerprint recognition and receives a fingerprint collection message, it collects fingerprint information within the fingerprint recognition area.
[0264] Step D9: The fingerprint module performs fingerprint verification based on the fingerprint information.
[0265] It should be noted that the operations of step D2 to step D9 can refer to the operations of the above-mentioned step A1 to step A8, and the embodiments of the present application will not describe them one by one.
[0266] Step D10: When the fingerprint verification is successful, the fingerprint module sends a fingerprint verification success message to the application lock module.
[0267] Since the application lock module can lock and unlock the social application, in order to unlock the social application, if the fingerprint verification is successful, the fingerprint module can send a fingerprint verification success message to the application lock module.
[0268] Step D11: upon receiving the fingerprint verification success message, the application lock module displays the application interface of the social application.
[0269] From the above, it can be seen that the application lock module can lock the social application in different ways, that is, the application lock module can interrupt the display of the application interface of the social application in different ways. Accordingly, the application lock module can display the application interface of the social application in different ways.
[0270] As an example, when the application lock module locks a social application by overlaying the fingerprint recognition interface on the application interface of the social application, if the application lock module receives a fingerprint verification success message, the application lock module will no longer display the fingerprint recognition interface to enable the display of the application interface of the social application.
[0271] As an example, when the application lock module locks a social application by interrupting the startup process of the social application, if the application lock module receives a fingerprint verification success message, the application lock module cancels the interruption operation on the startup process of the social application, so that the social application continues the startup process and realizes the display of the application interface of the social application.
[0272] In an embodiment of the present application, during the fingerprint unlocking process, since an LCD interrupt instruction can be directly sent to the LCD controller when a touch operation is detected, the LCD screen initialization operation and the touch area detection operation are performed simultaneously, thereby shortening the fingerprint unlocking time and improving the fingerprint unlocking efficiency.
[0273] Please refer to FIG12 , which is a flowchart of a fingerprint unlocking method according to another exemplary embodiment. As an example and not a limitation, the method is applied to an electronic device. The method may include some or all of the following contents:
[0274] Step 1201: In response to a touch operation on a fingerprint recognition area of a touch screen of an electronic device, an interrupt instruction is generated and a touch area of the touch operation is detected.
[0275] During the use of electronic devices, you may encounter scenarios where fingerprint recognition is required, such as unlocking the screen of the electronic device, using fingerprint recognition to pay for resources, logging into an account, or launching an application through fingerprint recognition. In these scenarios, the user may touch the fingerprint recognition area on the touch screen of the electronic device, thereby generating an interrupt instruction and detecting the touch area of the touch operation in response to the touch operation on the fingerprint recognition area on the touch screen of the electronic device.
[0276] As can be seen from the above, the electronic device may include a touch screen touch module and a touch screen controller; therefore, as an example, in response to a touch operation on the fingerprint recognition area in the touch screen of the electronic device, the operation of generating an interrupt instruction and detecting the touch area of the touch operation includes: in response to the touch operation on the fingerprint recognition area in the touch screen, the touch screen touch module generates an interrupt instruction and detects the touch area of the touch operation; the touch screen touch module sends an interrupt instruction to the touch screen controller.
[0277] In this way, since the touch module of the touch screen can send an interrupt instruction to the touch screen controller when a touch operation is detected, the timing of sending the interrupt instruction is advanced, thereby accelerating the unlocking speed.
[0278] It should be noted that the touch screen touch module may be the TP touch module described above, the touch screen controller may be the LCD controller described above, and the interrupt instruction may be the LCD interrupt instruction described above. This embodiment of the present application does not specifically limit this.
[0279] It should also be noted that the touch area of a touch operation refers to the contact area between the user's finger and the touch screen of the electronic device when the user's finger acts on the fingerprint recognition area.
[0280] As an example, the electronic device detects the touch area of a touch operation in order to detect whether the touch area is greater than or equal to an area threshold. Therefore, the operation of the electronic device detecting the touch area of a touch operation includes: detecting the number of touch sensors touched by the touch operation in the fingerprint recognition area; when the number of touch sensors is greater than or equal to the number threshold, determining that the touch area of the touch operation is greater than or equal to the area threshold.
[0281] It should be noted that the number threshold can be pre-set based on demand. For example, the minimum value of the number threshold can be the number required to implement the fingerprint recognition function. The area threshold can also be pre-set based on demand, and the minimum value of the set area threshold is the area required to implement the fingerprint recognition function.
[0282] It should also be noted that the operation of the electronic device detecting the touch area of the touch operation may include not only the above-mentioned method, but also other methods. Other methods can refer to relevant technologies, and the embodiments of this application will not elaborate on them one by one.
[0283] It is worth noting that, since whether the touch area is greater than or equal to the area threshold can be determined by detecting the number of touch sensors triggered in the fingerprint recognition area, the complexity of detecting the touch area is reduced and the detection efficiency is improved.
[0284] Step 1202: In response to the interrupt instruction, control the touch screen to perform an initialization operation.
[0285] As can be seen from the above, the touch control module of the touch screen sends an interrupt instruction to the touch screen controller. Therefore, when the touch screen controller receives the interrupt instruction, it can respond to the interrupt instruction and perform an initialization operation on the touch screen.
[0286] In this way, since the touch screen touch module can send an interrupt instruction to the touch screen controller when a touch operation is detected, the touch screen controller can simultaneously perform the touch screen initialization operation while the touch screen touch module detects whether the touch area is greater than or equal to the area threshold, thereby shortening the time waiting for the touch screen initialization operation and speeding up the fingerprint unlocking speed.
[0287] It should be noted that controlling the touch screen to perform initialization operations does not necessarily require reference to the steps of the LCD controller performing initialization operations on the LCD screen described above, and this embodiment of the present application will not be described in detail.
[0288] Step 1203: When the touch screen is initialized and the touch area is greater than or equal to the area threshold, turn on the backlight of the electronic device.
[0289] In some embodiments, when the touch screen is initialized and the touch area is greater than or equal to the area threshold, the electronic device can illuminate all installed backlights, etc., and can only illuminate the backlights in a certain area, for example, illuminating the backlights in a preset area, where the preset area is at least one of the fingerprint recognition area and the border area of the electronic device. The preset area can also be the designated area described above, and this embodiment of the application does not specifically limit this.
[0290] It is worth noting that since the backlight of the electronic device can be selectively lit, the diversity of the backlight functions is improved, and since there is no need to light up the screen of the electronic device, power waste is saved.
[0291] As can be seen from the above, the electronic device also includes a fingerprint module and a display module; therefore, as an example, when the touch screen initialization is completed and the touch area is greater than or equal to the area threshold, the operation of the electronic device lighting up the backlight of the electronic device includes: when the touch screen initialization is completed, the touch screen controller sends an initialization completion message to the display module; when the touch area is greater than or equal to the area threshold, the touch screen touch module sends a touch completion message to the display module through the fingerprint module; when the display module receives the initialization completion message and the touch completion message, it lights up the backlight.
[0292] Since fingerprint recognition is premised on the finger's touch area within the fingerprint recognition area meeting the requirements, and the minimum area threshold is the area required to implement the fingerprint recognition function, the touch screen touch module can send a touch completion message to the fingerprint module when the touch area is greater than or equal to the area threshold. Furthermore, since when the touch area is greater than or equal to the area threshold, this indicates that the current touch operation is not an error by the user on the TV device screen, but rather requires fingerprint unlocking, and during the fingerprint unlocking process, in order to prompt the user that the current touch operation is valid, the backlight can also be turned on during the fingerprint unlocking process. Therefore, when the fingerprint module receives the touch completion message, it can forward the touch completion message to the display module.
[0293] Since the backlight can be turned on only after the touch screen is initialized, the touch screen controller may send an initialization completion message to the display module after the touch screen is initialized.
[0294] In one possible implementation, the touch screen touch module may detect that the touch area is smaller than the area threshold. In this case, the touch screen control module may send a touch failure message to the touch screen controller; when the touch screen controller receives the touch failure message, if the initialization operation of the touch screen is not completed, the initialization operation of the touch screen is stopped.
[0295] Since when the touch screen touch module detects that the touch area is smaller than the area threshold, it means that the user may have accidentally touched the fingerprint recognition area and did not want to unlock the electronic device. Therefore, the touch screen touch module can send a touch failure message to the touch screen controller.
[0296] It is worth noting that by sending a touch failure message to the touch screen controller, the initialization operation of the touch screen can be interrupted, thereby avoiding fingerprint recognition in the case of accidental touch by the user, and improving the reliability of fingerprint recognition.
[0297] In another possible implementation, when the touch screen touch module detects that the touch area is smaller than the area threshold, it can not only send a touch failure message to the touch screen controller, but also send a touch failure message to the fingerprint module; when the touch screen controller receives the touch failure message, if the initialization operation of the touch screen is not completed, the initialization operation of the touch screen is stopped; when the fingerprint module receives the touch failure message, it may not make any response.
[0298] In another possible implementation, when the touch control module of the touch screen detects that the touch control area is smaller than the area threshold, it may not send a touch failure message to any module.
[0299] Step 1204: When the backlight is turned on, control the electronic device to perform a fingerprint unlocking operation.
[0300] In some embodiments, when the backlight is on, fingerprint information in the fingerprint recognition area is collected; fingerprint verification is performed based on the fingerprint information; if the fingerprint verification passes, the electronic device is controlled to perform operations corresponding to the fingerprint unlocking function based on the current state of the electronic device.
[0301] From the above, it can be seen that the electronic device may include a display module and a fingerprint module, and the display module can light up the backlight. Therefore, when the backlight is turned on, the display module can send a fingerprint collection message to the fingerprint module; when the fingerprint module receives the fingerprint collection message, it can collect fingerprint information in the fingerprint recognition area; and perform fingerprint verification based on the fingerprint information.
[0302] In some embodiments, since not all types of touch operations can be fingerprinted, the electronic device can also identify the type of touch operation before collecting fingerprint information in the fingerprint recognition area when the backlight is turned on; if the type of touch operation is a touch operation for fingerprint recognition, step 1204 is performed.
[0303] It should be noted that the electronic device can identify whether the touch operation type is a touch operation for fingerprint recognition through the fingerprint module.
[0304] In some embodiments, upon receiving a touch completion message, the fingerprint module may identify whether the touch operation is a touch operation for fingerprint recognition based on the touch data carried in the touch completion message.
[0305] During the fingerprint recognition process, the user's finger is required to be in the fingerprint recognition area for a certain period of time, otherwise, fingerprint recognition may not be performed. Therefore, the touch data may include the touch time of the touch operation in the fingerprint recognition area.
[0306] It should be noted that the manner in which the fingerprint module identifies the type of touch operation based on the touch data can refer to the manner described in the above step A5, and this embodiment of the application will not be described in detail.
[0307] It is worth noting that by determining whether the touch operation is a touch operation for fingerprint recognition, misoperation of fingerprint recognition is avoided and the reliability of fingerprint recognition is improved.
[0308] In some embodiments, when the fingerprint verification is passed, the electronic device performs operations corresponding to the fingerprint unlocking function according to the current state of the electronic device, including: when the fingerprint verification is passed, if the electronic device is currently in a screen unlocking state, unlocking the screen of the electronic device; when the fingerprint verification is passed, if the electronic device is currently in a resource payment state, performing a resource payment operation; when the fingerprint verification is passed, if the electronic device is currently in an account login state, performing an account login operation; when the fingerprint verification is passed, if the electronic device is currently in an application lock unlocking state, unlocking the application lock of the target application to display the application interface of the target application, the target application is any application installed on the electronic device, the target application is set with an application lock and is currently in a startup state, and the application lock is used to encrypt the startup of the target application.
[0309] Since the fingerprint unlocking function can be applied to a variety of scenarios, when the fingerprint verification is passed, the state of the electronic device is different, and the operations performed by the electronic device are also different. Therefore, when the fingerprint verification is passed, the electronic device needs to perform the operation corresponding to the fingerprint unlocking function according to the current state of the electronic device.
[0310] It is worth noting that by controlling the electronic device to perform different operations when the electronic device is in different states, the application scope and application richness of fingerprint unlocking are improved.
[0311] In an embodiment of the present application, during the fingerprint unlocking process, since an interrupt instruction can be directly sent to the touch screen controller when a touch operation is detected, the touch screen initialization operation and the touch area detection operation are performed simultaneously, thereby shortening the fingerprint unlocking time and improving the fingerprint unlocking efficiency.
[0312] Figure 13 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application. Referring to Figure 13, the structure of the electronic device includes a processor 1310 and a memory 1320, and the number of processors 1310 can be one or more. The memory 1310 is used to store programs that support the electronic device to execute the fingerprint unlocking methods provided in the above-mentioned embodiments, and to store data involved in implementing the fingerprint unlocking methods described in the above-mentioned embodiments. The electronic device may further include a communication bus 1330, which is used to establish a connection between the processor 1310 and the memory 1320. The processor 1310 is configured to:
[0313] In response to a touch operation on a fingerprint recognition area of a touch screen of the electronic device, generating an interrupt instruction and detecting a touch area of the touch operation;
[0314] In response to the interrupt instruction, controlling the touch screen to perform an initialization operation;
[0315] When the touch screen is initialized and the touch area is greater than or equal to the area threshold, lighting up the backlight of the electronic device;
[0316] When the backlight is turned on, the electronic device is controlled to perform a fingerprint unlocking operation.
[0317] As an example of the present application, the processor 1310 is further configured to:
[0318] When the touch screen is initialized and the touch area is greater than or equal to the area threshold, the backlight in the preset area is turned on, where the preset area is at least one of the fingerprint recognition area and the border area of the electronic device.
[0319] As an example of the present application, the electronic device includes a touch screen touch module and a touch screen controller; the processor 1310 is further configured to:
[0320] In response to a touch operation on the fingerprint recognition area of the touch screen, the touch screen touch module generates the interrupt instruction and detects the touch area of the touch operation;
[0321] The touch screen touch control module sends the interrupt instruction to the touch screen controller.
[0322] As an example of the present application, the processor 1310 is further configured to:
[0323] When the touch screen controller receives the interruption instruction, it responds to the interruption instruction and performs an initialization operation on the touch screen.
[0324] As an example of the present application, the processor 1310 is further configured to:
[0325] When the touch area is smaller than the area threshold, the touch control module of the touch screen sends a touch failure message to the touch screen controller;
[0326] When the touch screen controller receives the touch failure message, if the initialization operation on the touch screen is not completed, the touch screen controller stops the initialization operation on the touch screen.
[0327] As an example of the present application, the electronic device further includes a fingerprint module and a display module;
[0328] The processor 1310 is further configured to:
[0329] When the touch screen is initialized, the touch screen controller sends an initialization completion message to the display module;
[0330] When the touch area is greater than or equal to the area threshold, the touch screen touch module sends a touch completion message to the display module through the fingerprint module;
[0331] The display module lights up the backlight when receiving the initialization completion message and the touch completion message.
[0332] As an example of the present application, the processor 1310 is further configured to:
[0333] When the touch area is smaller than the area threshold, the touch screen touch control module sends a touch failure message to the touch screen controller and the fingerprint module respectively;
[0334] When the touch screen controller receives the touch failure message, if the initialization operation on the touch screen is not completed, stopping the initialization operation on the touch screen;
[0335] When the fingerprint module receives the touch failure message, it does not make any response.
[0336] As an example of the present application, the processor 1310 is further configured to:
[0337] When the backlight is turned on, collecting fingerprint information in the fingerprint recognition area;
[0338] Performing fingerprint verification according to the fingerprint information;
[0339] When the fingerprint verification is passed, the electronic device is controlled to perform the operation corresponding to the fingerprint unlocking function according to the current state of the electronic device.
[0340] As an example of the present application, the processor 1310 is further configured to:
[0341] Identifying the type of the touch operation;
[0342] When the type of the touch operation is a touch operation for performing fingerprint recognition, the operation of collecting fingerprint information in the fingerprint recognition area while lighting the backlight is performed.
[0343] As an example of the present application, the processor 1310 is further configured to:
[0344] If the fingerprint verification is passed, if the electronic device is currently in a screen unlocking state, unlocking the screen of the electronic device;
[0345] When the fingerprint verification is passed, if the electronic device is currently in a resource waiting payment state, the resource payment operation is performed;
[0346] If the fingerprint verification is passed, if the electronic device is currently in the account login state, the account login operation is performed;
[0347] If the fingerprint verification is passed, if the electronic device is currently in the application lock to be unlocked state, the application lock of the target application is unlocked to display the application interface of the target application. The target application is any application installed on the electronic device. The target application is set with the application lock and is currently in the waiting state. The application lock is used to encrypt the startup of the target application.
[0348] As an example of the present application, the processor 1310 is further configured to:
[0349] Detecting the number of touch sensors touched by the touch operation in the fingerprint recognition area;
[0350] When the number of the touch sensors is greater than or equal to a number threshold, it is determined that the touch area of the touch operation is greater than or equal to the area threshold.
[0351] In an embodiment of the present application, during the fingerprint unlocking process, since an interrupt instruction can be directly sent to the touch screen controller when a touch operation is detected, the touch screen initialization operation and the touch area detection operation are performed simultaneously, thereby shortening the fingerprint unlocking time and improving the fingerprint unlocking efficiency.
[0352] It should be noted that: when the electronic device provided in the above embodiment performs fingerprint unlocking, the division of the above-mentioned functional modules is only used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0353] The functional units and modules in the above embodiments may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The above integrated units may be implemented in the form of hardware or software functional units. In addition, the specific names of the functional units and modules are only for the purpose of distinguishing them from each other and are not intended to limit the scope of protection of the embodiments of this application.
[0354] The electronic device and fingerprint unlocking method embodiments provided in the above embodiments belong to the same concept. The specific working processes and technical effects brought about by the units and modules in the above embodiments can be found in the method embodiment part and will not be repeated here.
[0355] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (such as a coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0356] The above are optional embodiments provided for this application and are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the technical scope disclosed in this application should be included in the scope of protection of this application.
Claims
1. A fingerprint unlocking method, characterized in that: Applied to electronic equipment, the method includes: In response to a touch operation on a fingerprint recognition area of a touch screen of the electronic device, generating an interrupt instruction and detecting a touch area of the touch operation; In response to the interrupt instruction, controlling the touch screen to perform an initialization operation; When the touch screen is initialized and the touch area is greater than or equal to the area threshold, lighting up the backlight of the electronic device; When the backlight is turned on, the electronic device is controlled to perform a fingerprint unlocking operation.
2. The method according to claim 1, wherein When the touch screen is initialized and the touch area is greater than or equal to the area threshold, lighting up the backlight of the electronic device includes: When the touch screen is initialized and the touch area is greater than or equal to the area threshold, the backlight in the preset area is turned on, where the preset area is at least one of the fingerprint recognition area and the border area of the electronic device.
3. The method according to claim 1 or 2, wherein: The electronic device includes a touch screen touch module and a touch screen controller; The step of generating an interrupt instruction and detecting a touch area of the touch operation in response to a touch operation on a fingerprint recognition area of the touch screen of the electronic device includes: In response to a touch operation on the fingerprint recognition area of the touch screen, the touch screen touch module generates the interrupt instruction and detects the touch area of the touch operation; The touch screen touch control module sends the interrupt instruction to the touch screen controller.
4. The method according to claim 3, wherein The step of controlling the touch screen to perform an initialization operation in response to the interrupt instruction includes: When the touch screen controller receives the interruption instruction, it responds to the interruption instruction and performs an initialization operation on the touch screen.
5. The method according to claim 3, wherein After generating an interrupt instruction in response to a touch operation on the fingerprint recognition area of the touch screen of the electronic device and detecting the touch area of the touch operation, the method further includes: When the touch area is smaller than the area threshold, the touch control module of the touch screen sends a touch failure message to the touch screen controller; When the touch screen controller receives the touch failure message, if the initialization operation on the touch screen is not completed, the touch screen controller stops the initialization operation on the touch screen.
6. The method according to claim 3, wherein The electronic device also includes a fingerprint module and a display module; When the touch screen is initialized and the touch area is greater than or equal to the area threshold, lighting up the backlight of the electronic device includes: When the touch screen is initialized, the touch screen controller sends an initialization completion message to the display module; When the touch area is greater than or equal to the area threshold, the touch screen touch module The pattern module sends a touch completion message to the display module; The display module lights up the backlight when receiving the initialization completion message and the touch completion message.
7. The method according to claim 6, wherein After generating an interrupt instruction in response to a touch operation on the fingerprint recognition area of the touch screen of the electronic device and detecting the touch area of the touch operation, the method further includes: When the touch area is smaller than the area threshold, the touch screen touch control module sends a touch failure message to the touch screen controller and the fingerprint module respectively; When the touch screen controller receives the touch failure message, if the initialization operation on the touch screen is not completed, stopping the initialization operation on the touch screen; When the fingerprint module receives the touch failure message, it does not make any response.
8. The method according to any one of claims 1 to 7, wherein When the backlight is turned on, controlling the electronic device to perform a fingerprint unlocking operation includes: When the backlight is turned on, collecting fingerprint information in the fingerprint recognition area; Performing fingerprint verification according to the fingerprint information; When the fingerprint verification is passed, the electronic device is controlled to perform the operation corresponding to the fingerprint unlocking function according to the current state of the electronic device.
9. The method according to claim 8, wherein In the case where the backlight is turned on, before collecting the fingerprint information in the fingerprint recognition area, the method further includes: Identifying the type of the touch operation; When the type of the touch operation is a touch operation for performing fingerprint recognition, the operation of collecting fingerprint information in the fingerprint recognition area while lighting the backlight is performed.
10. The method according to claim 9, wherein When the fingerprint verification is passed, performing an operation corresponding to the fingerprint unlocking function according to the current state of the electronic device includes: If the fingerprint verification is passed, if the electronic device is currently in a screen unlocking state, unlocking the screen of the electronic device; When the fingerprint verification is passed, if the electronic device is currently in a resource waiting payment state, the resource payment operation is performed; If the fingerprint verification is passed, if the electronic device is currently in the account login state, the account login operation is performed; If the fingerprint verification is passed, if the electronic device is currently in the application lock to be unlocked state, the application lock of the target application is unlocked to display the application interface of the target application. The target application is any application installed on the electronic device. The target application is set with the application lock and is currently in the waiting state. The application lock is used to encrypt the startup of the target application.
11. The method according to any one of claims 1 to 10, wherein The detecting the touch area of the touch operation includes: Detecting the number of touch sensors touched by the touch operation in the fingerprint recognition area; When the number of the touch sensors is greater than or equal to a number threshold, it is determined that the touch area of the touch operation is greater than or equal to the area threshold.
12. An electronic device, characterized in that: The electronic device comprises a processor, and the processor is configured to call a computer program in a memory to execute the method according to any one of claims 1 to 11.
13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 11.
14. A chip, characterized in that: The chip includes a processor, and the processor is used to call a computer program in a memory to execute the method according to any one of claims 1 to 11.