Control method of electronic equipment and electronic equipment
By having the operating system perform finger presence detection while the screen is on, the high power consumption problem caused by simultaneous detection by TPIC and the operating system is solved, achieving lower power consumption and higher accuracy detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-10-23
- Publication Date
- 2026-04-24
AI Technical Summary
In screen-on scenarios, the overall power consumption of electronic devices is relatively high, mainly because TPIC and the operating system perform touch detection simultaneously, resulting in increased power consumption and lower accuracy in detecting finger presence.
When the screen is on, only the operating system detects finger presence. Touch signals are collected via TPIC and sent to the operating system, which then performs the detection and enables or disables the finger presence detection function as needed to reduce unnecessary power consumption.
It reduces the overall power consumption of electronic devices, improves the accuracy of finger presence detection, and avoids false triggering.
Smart Images

Figure CN121918684A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a control method for an electronic device and an electronic device. Background Technology
[0002] With the development of information recognition technology, ultrasonic fingerprint recognition technology is being used more and more widely in scenarios such as fingerprint enrollment, fingerprint unlocking, and fingerprint verification of electronic devices.
[0003] Currently, electronic devices can use touch panel integrated circuits (TPICs) to collect touch signals generated by users on the touch screen in real time using their fingers, styluses, or other touch points, and determine whether there is a finger touch operation in the fingerprint collection area of the touch screen.
[0004] However, in scenarios where the screen is on, TPIC determines in real time whether the user's finger is pressing on the fingerprint collection area of the touch screen based on the collected touch signals, which will result in higher overall power consumption of the electronic device. Summary of the Invention
[0005] To address the technical problem of high overall power consumption in electronic devices, this application provides a control method and an electronic device.
[0006] Firstly, a method for controlling an electronic device is provided, the method comprising:
[0007] When the electronic device is in a screen-on state, in response to the activation operation for the fingerprint recognition function, the finger presence detection function of the electronic device's operating system for the fingerprint acquisition area is activated.
[0008] When the finger presence detection function is enabled, the operating system determines whether there is a finger touch operation in the fingerprint collection area based on the touch signal collected by TPIC.
[0009] Once it is determined that there is a finger touch operation within the fingerprint collection area, the operating system sends a first instruction to the TPIC, which instructs the TPIC to report the finger presence event.
[0010] In this application, when the electronic device is in a screen-on state, in response to the activation operation for the fingerprint recognition function, the electronic device enables the operating system's finger presence detection function for the fingerprint acquisition area. Finger presence detection is performed through the operating system, eliminating the need for both the TPIC and the touch control module to simultaneously support touch detection; only the operating system needs to support touch detection. This reduces the overall power consumption of the electronic device. Furthermore, compared to the TPIC, finger presence detection through the operating system improves the accuracy of finger presence detection. Simultaneously, the operating system's finger presence detection function is only activated when the fingerprint recognition function is used, eliminating the need for real-time finger presence detection by the operating system, further reducing the overall power consumption of the electronic device and preventing accidental triggering.
[0011] In one possible implementation of the first aspect, the method further includes:
[0012] When the electronic device is in the screen-on state, in response to the operation of turning off the fingerprint recognition function, the operating system turns off the finger presence detection function for the fingerprint collection area, and sends a second instruction to the TPIC through the operating system. The second instruction is used to instruct the TPIC to stop reporting finger presence events.
[0013] In this application, when fingerprint recognition is not required, the electronic device disables the operating system's finger presence detection function for the fingerprint acquisition area. This eliminates the need for the operating system to perform real-time finger presence detection, further reducing the overall power consumption of the electronic device and preventing accidental triggering.
[0014] In one possible implementation of the first aspect, the method further includes:
[0015] When the electronic device is in the screen-on state, the TPIC collects the touch signals generated by the user on the touch screen and sends the touch signals to the operating system.
[0016] In this application, when the electronic device is in a screen-on state, it collects touch signals generated by the user on the touchscreen via a TPIC and sends the collected touch signals to the operating system. Subsequently, after the electronic device enables the operating system's finger presence detection function for the fingerprint collection area, the operating system can determine whether there is a finger touch operation in the fingerprint collection area based on the touch signals collected by the TPIC.
[0017] In one possible implementation of the first aspect, the method further includes:
[0018] When an electronic device switches from a screen-off state to a screen-on state, disable TPIC's finger presence detection function for the fingerprint collection area.
[0019] In this application, when the electronic device switches from a screen-off state to a screen-on state, the electronic device disables the finger presence detection function of the TPIC for the fingerprint collection area. Thus, when the electronic device is in a screen-on state, only the operating system needs to support the touch detection function, thereby reducing the overall power consumption of the electronic device.
[0020] In one possible implementation of the first aspect, the method further includes:
[0021] When an electronic device switches from a screen-on state to a screen-off state and the fingerprint unlock function is enabled, enable TPIC's finger presence detection function for the fingerprint collection area.
[0022] In this application, the electronic device only activates the finger presence detection function of TPIC for the fingerprint collection area when the electronic device switches from a screen-on state to a screen-off state and the fingerprint unlock function is enabled. This avoids the problem of high overall power consumption of the electronic device caused by still activating the finger presence detection function of TPIC when the fingerprint unlock function is not enabled.
[0023] In one possible implementation of the first aspect, in response to an enable operation for the fingerprint recognition function, the operating system of the electronic device is enabled to perform a finger presence detection function for the fingerprint acquisition area, including:
[0024] In response to the activation operation of the fingerprint recognition function, a first function control command is sent from the fingerprint control module in the hardware abstraction layer of the operating system to the touch control module in the hardware abstraction layer of the operating system.
[0025] In response to the first function control command, the finger presence detection function of the touch control module for the fingerprint collection area is enabled.
[0026] In one possible implementation of the first aspect, in response to a shutdown operation for the fingerprint recognition function, disabling the operating system's finger presence detection function for the fingerprint acquisition area includes:
[0027] In response to the operation of disabling the fingerprint recognition function, a second function control command is sent from the fingerprint control module in the hardware abstraction layer of the operating system to the touch control module in the hardware abstraction layer of the operating system.
[0028] In response to the second function control command, the finger presence detection function of the touch control module for the fingerprint collection area is turned off.
[0029] In one possible implementation of the first aspect, enabling the TPIC's finger presence detection function for the fingerprint acquisition area includes:
[0030] Send third-function control commands to TPIC through the fingerprint control module in the hardware abstraction layer of the operating system;
[0031] In response to the third function control command, enable TPIC's finger presence detection function for the fingerprint acquisition area.
[0032] In one possible implementation of the first aspect, the fingerprint control module includes one or more of a fingerprint Android interface definition language module and a fingerprint hardware abstraction module.
[0033] Secondly, an electronic device is provided, comprising: a processor and a memory; the memory is coupled to the processor; the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to perform the method described above.
[0034] Thirdly, a computer-readable storage medium is provided, including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described above.
[0035] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 A schematic diagram illustrating an application scenario provided in an embodiment of this application;
[0038] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0039] Figure 3 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0040] Figure 4 A flowchart illustrating a control method for an electronic device provided in an embodiment of this application;
[0041] Figure 5 A flowchart illustrating the finger presence detection function of an electronic device's touch control module, provided in an embodiment of this application;
[0042] Figure 6A flowchart illustrating the finger presence detection function of disabling the touch control module in an electronic device, as provided in this application embodiment;
[0043] Figure 7 A flowchart illustrating the finger presence detection function of an electronic device activating TPIC, as provided in an embodiment of this application;
[0044] Figure 8 A schematic diagram illustrating an example of a control method for an electronic device in a screen-on scenario provided in this application embodiment;
[0045] Figure 9 A schematic diagram illustrating an example of a control method for an electronic device in a screen-off scenario provided in an embodiment of this application;
[0046] Figure 10 This is a schematic diagram of the structure of a control device for an electronic device provided in an embodiment of this application;
[0047] Figure 11 This is a schematic diagram of the structure of a control device for an electronic device provided in an embodiment of this application. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0049] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.
[0050] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of 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 "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0051] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0052] Ultrasonic fingerprint recognition technology is increasingly widely used in fingerprint enrollment, unlocking, and verification on electronic devices. Electronic devices report finger presence events through a TPIC (Touch Panel Integrated Circuit) and a fingerprint integrated circuit (FPIC). The specific process is as follows: The TPIC collects touch signals generated by the user's finger, stylus, or other touchpoints on the touchscreen in real time, and performs finger presence detection on the fingerprint collection area based on the collected touch signals. In other words, the TPIC determines whether a finger touch operation (such as a finger press) exists in the fingerprint collection area of the touchscreen based on the collected touch signals. If the TPIC determines that a finger touch operation exists in the fingerprint collection area, it pulls the level of the voltage line (also known as the intr2 line) between itself and the FPIC high (i.e., switches the voltage line to a high level). If the TPIC does not determine that a finger touch operation exists in the fingerprint collection area, it pulls the level of the voltage line between itself and the FPIC low (i.e., switches the voltage line to a low level). Applications using fingerprint recognition (such as fingerprint unlocking or payment applications) use the FPIC (Finger Image Processing Unit) to detect if the voltage level on this line is high to determine if there is a finger touch operation in the fingerprint acquisition area. When the application detects a high voltage level on this line via the FPIC, it can determine that the user's finger has been pressed on the fingerprint acquisition area and waits for fingerprint data to be collected. The application then controls the ultrasonic fingerprint device to collect the user's fingerprint data.
[0053] Currently, regardless of whether the electronic device is in screen-off or screen-on state, the TPIC (Touch Panel Controller) performs finger presence detection in the fingerprint sensor area based on the collected touch signals. However, when the electronic device is in screen-on state, in order to support the detection of other user touch operations (such as swipe, double-tap, and pinch touch), the TPIC sends the collected touch signals to the operating system. The operating system then determines whether other touch operations exist based on the touch signals collected by the TPIC. Because finger presence detection in the fingerprint sensor area is still performed by the TPIC when the electronic device is in screen-on state, the simultaneous support of touch detection functions by both the TPIC and the operating system leads to higher overall power consumption of the electronic device. Furthermore, compared to the operating system, the accuracy of the TPIC in detecting finger presence in the fingerprint sensor area is lower.
[0054] The present application provides a control method for an electronic device that can be applied to fingerprint recognition scenarios of electronic devices, specifically to finger presence detection scenarios of electronic devices. Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. Taking a mobile phone as an example, as described above... Figure 1 As shown, the touchscreen of the electronic device is divided into a fingerprint recognition area. The electronic device can determine in real time whether the user's finger is pressing on the fingerprint recognition area and report the finger presence event.
[0055] For example, the electronic device in the embodiments of this application can be a mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), handheld computer, netbook, personal digital assistant (PDA), wearable device (such as smartwatch, smart glasses or smart helmet, etc.), virtual reality device, smart home device, in-vehicle computer, access control device, etc., which includes a fingerprint recognition module. The following embodiments do not impose any special restrictions on the specific form of the electronic device.
[0056] Taking the aforementioned electronic device as a mobile phone as an example, Figure 2 A schematic diagram of the structure of the electronic device 100 is shown.
[0057] Electronic device 100 may include processor 110, internal memory 120, antenna 1, antenna 2, mobile communication module 130, wireless communication module 140, sensor module 150, and display screen 160, etc. The sensor module 150 may include fingerprint sensor 180A, touch sensor 180B, etc.
[0058] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0059] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0060] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0061] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0062] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include 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.
[0063] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 150B, charger, flash, camera, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 150B through the I2C interface, enabling the processor 110 and the touch sensor 150B to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0064] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 140. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 140 via the UART interface to implement Bluetooth functionality.
[0065] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 160. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the display screen 160 communicate via the DSI interface to realize the display function of the electronic device 100.
[0066] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the display screen 160, the wireless communication module 140, the sensor module 150, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0067] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0068] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 130, wireless communication module 140, modem processor, and baseband processor.
[0069] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0070] The mobile communication module 130 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 130 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 130 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 130 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 130 and at least some modules of the processor 110 may be housed in the same device.
[0071] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor displays images or videos via the display screen 160. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed within the same device as the mobile communication module 130 or other functional modules.
[0072] The wireless communication module 140 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 140 can be one or more devices integrating at least one communication processing module. The wireless communication module 140 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 140 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0073] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 130, and antenna 2 is coupled to wireless communication module 140, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. Wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. GNSS can include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0074] Electronic device 100 implements display functions through a GPU, a display screen 160, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 160 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0075] Display screen 160 is used to display images, videos, etc. Display screen 160 includes a display panel. The display panel may 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 miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 160, where N is a positive integer greater than 1.
[0076] Internal memory 120 can be used to store executable program code, including instructions. Internal memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 120 and / or instructions stored in memory located within the processor.
[0077] The fingerprint sensor 150A is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0078] Touch sensor 150B, also known as a "touch device," can be located on display screen 160. The touch sensor 150B and display screen 160 together form a touchscreen, also known as a "touchscreen." Touch sensor 150B detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 160. In some embodiments, touch sensor 150B may also be located on the surface of electronic device 100, in a different position than display screen 160. Touch sensor 150B is connected to FPIC via a voltage level line. When touch sensor 150B determines that there is a finger touch operation in the fingerprint collection area, touch sensor 150B pulls the voltage level of the voltage level line (also known as the intr2 line) between itself and FPIC high. When touch sensor 150B does not determine that there is a finger touch operation in the fingerprint collection area, touch sensor 150B can pull the voltage level of the voltage level line between itself and FPIC low (i.e., switch the voltage level of the voltage level line to low).
[0079] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.
[0080] Figure 3 This is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0081] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system includes four layers, from top to bottom: applications, application framework, hardware abstraction layer (HAL), and kernel.
[0082] The application layer can include a series of application packages.
[0083] like Figure 3 As shown, the application package may include applications such as camera, calendar, map, WLAN, music, SMS, gallery, calling, navigation, Bluetooth, and payment.
[0084] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 3 As shown, the application framework layer may include at least a fingerprint service module, etc.
[0085] The Hardware Abstraction Layer (HAL) is a wrapper around Linux kernel drivers, providing interfaces to higher-level systems. It hides the hardware interface details of a specific platform, thus providing a virtual hardware platform for the operating system. In this embodiment, the HAL includes a touch control module and a fingerprint control module. The fingerprint control module may further include a fingerprint Android Interface Definition Language (JILE) module and a fingerprint hardware abstraction module.
[0086] The fingerprint control module is used to instruct the touch control module to enable / disable the finger presence detection function for the fingerprint collection area when the electronic device is in a screen-on state, and to instruct the TPIC to enable / disable the finger presence detection function for the fingerprint collection area when the electronic device switches from a screen-on state to a screen-off state.
[0087] The touch control module is used to determine whether there is a finger touch operation in the fingerprint collection area based on the touch signal collected by the TPIC when the electronic device is in the screen-on state and the finger presence detection function for the fingerprint collection area is enabled. If the finger touch operation is determined to exist in the fingerprint collection area, the module instructs the TPIC to report the finger presence event.
[0088] The kernel layer is the layer between hardware and software. The kernel layer includes at least touch drivers and fingerprint drivers.
[0089] For example, the software architecture of the aforementioned electronic device 100 may also include a system library, which comprises multiple functional modules. These include, for example, a surface manager, media libraries, a 3D graphics processing library (e.g., OpenGL ES), and a 2D graphics engine (e.g., SGL). The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various common audio and video formats, as well as still image files. The media library can support various audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is a drawing engine for 2D graphics.
[0090] Understandable, Figure 3The layers in the illustrated structure and the components contained in each layer do not constitute a specific limitation on the electronic device 100, i.e., the mobile phone. In other embodiments of this application, the structure may include more or fewer layers than illustrated, and each layer may include more or fewer components; this application does not impose any limitations.
[0091] Based on the electronic devices described above, embodiments of this application provide a control method for an electronic device. This method can be applied to any fingerprint recognition scenario, such as fingerprint enrollment, fingerprint unlocking, and fingerprint verification. The method of this application embodiment is described below. Figure 4 As shown, the specific processing procedure is as follows.
[0092] Step 401: When the electronic device is in the screen-on state, in response to the operation of enabling the fingerprint recognition function, the operating system of the electronic device enables the finger presence detection function for the fingerprint acquisition area.
[0093] In this implementation, when the electronic device is in a screen-on state, to support the detection of other user touch operations (such as swipe touch, double-tap touch, pinch touch, etc.), the TPIC can send the collected touch signals to the electronic device's operating system (i.e., the touch control module in the operating system's hardware abstraction layer). The operating system then uses the touch signals collected by the TPIC to detect other touch operations. Since the detection of other touch operations is similar in principle to the finger presence detection for the fingerprint collection area, the operating system of the electronic device can also perform finger presence detection for the fingerprint collection area when the screen is on. Based on this, before an application installed on the electronic device collects the user's fingerprint data through the ultrasonic fingerprint device installed in the device, it can first determine whether the user's finger is pressed on the fingerprint collection area. Therefore, the application can send an enable command for the fingerprint recognition function. Correspondingly, the electronic device can enable the operating system's finger presence detection function for the fingerprint collection area based on the application's enable command for fingerprint recognition.
[0094] It should be noted that the application can send an activation command for the fingerprint recognition function either by the user's actions within the application or by the application itself.
[0095] Step 402: When the finger presence detection function is enabled, the operating system determines whether there is a finger touch operation in the fingerprint collection area based on the touch signal collected by TPIC.
[0096] In the implementation, when the finger presence detection function is enabled, the electronic device can perform finger presence detection in the fingerprint collection area based on the touch signals collected by the TPIC through the operating system. That is, the electronic device can determine whether there is a finger touch operation in the fingerprint collection area based on the touch signals collected by the TPIC through the operating system.
[0097] It should be noted that there is no conflict between the operating system's detection of finger presence in the fingerprint collection area and the detection of other touch operations based on the touch signals collected by the TPIC.
[0098] Step 403: If a finger touch operation is determined to exist within the fingerprint acquisition area, a first instruction is sent to the TPIC via the operating system. This first instruction instructs the TPIC to report the finger presence event.
[0099] In one implementation, when the operating system determines that a finger touch operation exists within the fingerprint acquisition area, the operating system can notify the application that the user's finger has been pressed on the fingerprint acquisition area, so that the application can collect the user's fingerprint data via the ultrasonic fingerprint device. Therefore, upon determining that a finger touch operation exists within the fingerprint acquisition area, the operating system sends a first instruction to the TPIC. This first instruction instructs the TPIC to report a finger presence event. Subsequently, after receiving the first instruction, the TPIC can, based on the first instruction, pull the level of the voltage line between itself and the FPIC high (i.e., switch the voltage line level to high). Thus, when the application detects a high level on this voltage line through the FPIC, it can determine that the user's finger has been pressed on the fingerprint acquisition area and wait for fingerprint data to be collected. The application can then further control the ultrasonic fingerprint device to collect the user's fingerprint data.
[0100] In this embodiment, when the electronic device is in a screen-on state, the finger presence detection for the fingerprint acquisition area performed by the TPIC in the traditional solution is performed by the electronic device's operating system. Thus, when the electronic device is in a screen-on state, it is not necessary for both the TPIC and the operating system to support touch detection simultaneously; only the operating system needs to support touch detection, thereby reducing the overall power consumption of the electronic device. Furthermore, compared to the TPIC, performing finger presence detection for the fingerprint acquisition area through the operating system improves the accuracy of finger presence detection. Simultaneously, the operating system's finger presence detection function is only activated when the fingerprint recognition function is used, eliminating the need for the operating system to perform real-time finger presence detection, further reducing the overall power consumption of the electronic device and preventing false triggering.
[0101] In some embodiments, when the electronic device is in a screen-on state, in response to a shutdown operation for the fingerprint recognition function, the operating system's finger presence detection function for the fingerprint acquisition area is disabled, and a second instruction is sent to the TPIC via the operating system. The second instruction instructs the TPIC to stop reporting finger presence events.
[0102] In one implementation, to further reduce the power consumption of the electronic device and prevent accidental triggering, the application can send a command to disable the fingerprint recognition function after collecting the user's fingerprint data. Correspondingly, the electronic device can disable the operating system's finger presence detection function for the fingerprint acquisition area based on the command sent by the application. Then, the electronic device can further send a second command to the TPIC via the operating system. This second command instructs the TPIC to stop reporting finger presence events. Subsequently, upon receiving the second command, the TPIC can pull the voltage level of the line between itself and the FPIC low (i.e., switch the voltage level of the line to a low level).
[0103] In this embodiment, when fingerprint recognition is not required, the electronic device disables the operating system's finger presence detection function for the fingerprint acquisition area. This eliminates the need for the operating system to perform real-time finger presence detection, further reducing the overall power consumption of the electronic device and preventing accidental triggering.
[0104] In some embodiments, when the electronic device is in a screen-on state, the touch signals generated by the user on the touch screen are collected by TPIC and sent to the operating system.
[0105] In one implementation, when the electronic device is in a screen-on state, it uses a TPIC (Touch Panel Detection System) to collect touch signals generated by the user on the touchscreen and sends these signals to the operating system. Thus, when the electronic device is in a screen-on state, it uses a TPIC to collect touch signals generated by the user on the touchscreen and sends these signals to the operating system. Subsequently, after the electronic device enables the operating system's finger presence detection function for the fingerprint collection area, the operating system can determine whether there is a finger touch operation within the fingerprint collection area based on the touch signals collected by the TPIC.
[0106] It should be noted that electronic devices send the collected touch signals to the touch control module in the hardware abstraction layer of the operating system via TPIC.
[0107] In some embodiments, when the electronic device switches from a screen-off state to a screen-on state, the finger presence detection function of TPIC for the fingerprint collection area is turned off.
[0108] In one implementation, since the finger presence detection for the fingerprint sensor area by the TPIC is performed by the operating system when the electronic device is in a screen-on state, the electronic device can disable the finger presence detection function for the fingerprint sensor area by the touch driver in the operating system's kernel layer when switching from a screen-off state to a screen-on state. In this way, when the electronic device is in a screen-on state, only the operating system needs to support the touch detection function, thereby reducing the overall power consumption of the electronic device.
[0109] In some embodiments, when the electronic device switches from a screen-on state to a screen-off state and the fingerprint unlocking function is enabled, the finger presence detection function of TPIC for the fingerprint collection area is enabled.
[0110] In one implementation, when the electronic device is in a screen-on state, the finger presence detection for the fingerprint sensor area by the TPIC is performed by the operating system. However, when the electronic device enters a screen-off state, the operating system enters a hibernation or suspend state and can no longer perform finger presence detection for the fingerprint sensor area. Therefore, after the electronic device switches from a screen-on state to a screen-off state, the finger presence detection for the fingerprint sensor area can be performed by the TPIC again. However, if the electronic device does not have fingerprint unlocking enabled (e.g., the user has disabled fingerprint unlocking or the user has not registered fingerprint data), directly enabling the TPIC's finger presence detection function for the fingerprint sensor area will result in higher overall power consumption of the electronic device in the screen-off state.
[0111] Based on this, when an electronic device switches from a screen-on state to a screen-off state, the application on the device (i.e., the fingerprint unlock application) can determine whether the fingerprint unlock function is enabled. If the fingerprint unlock function is enabled, the application can send a fingerprint unlock activation command. Correspondingly, the electronic device can activate the TPIC's finger presence detection function for the fingerprint acquisition area based on the fingerprint unlock activation command sent by the application. Subsequently, the TPIC can determine whether there is a finger touch operation in the fingerprint acquisition area based on the acquired touch signal, and if a finger touch operation is detected, it pulls the voltage level of the line between the fingerprint acquisition area and the FPIC high (i.e., switches the voltage level of the line to a high level). In this way, the electronic device only activates the TPIC's finger presence detection function for the fingerprint acquisition area when the screen switches from a screen-on state to a screen-off state and the fingerprint unlock function is enabled, thus avoiding the problem of high overall power consumption caused by the TPIC's finger presence detection function still being activated when the fingerprint unlock function is not enabled.
[0112] In some embodiments, such as Figure 5As shown, when the electronic device is in a screen-on state, the electronic device responds to the fingerprint recognition function activation operation by activating the operating system's finger presence detection function for the fingerprint acquisition area as follows:
[0113] Step 501: In response to the activation operation of the fingerprint recognition function, a first function control command is sent from the fingerprint control module in the hardware abstraction layer of the operating system to the touch control module in the hardware abstraction layer of the operating system.
[0114] In one implementation, see Figure 3 As shown, before collecting a user's fingerprint data via an ultrasonic fingerprint device, the application can first determine whether the user's finger is pressed on the fingerprint collection area. Therefore, the application can send an enable command for the fingerprint recognition function to the fingerprint control module in the hardware abstraction layer through the fingerprint service module in the application framework layer. Correspondingly, in response to the enable command, the electronic device sends a first function control command to the touch control module in the hardware abstraction layer via the fingerprint control module and the touch driver in the kernel layer. This first function control command instructs the touch control module to enable the finger presence detection function for the fingerprint collection area.
[0115] It should be noted that the fingerprint control module may include one or more of a fingerprint Android interface definition language (FP AIDS) module and a fingerprint hardware abstraction layer (FP HAL) module. The electronic device can send first-function control commands to the touch control module in the hardware abstraction layer via the touch driver in the kernel layer through either the fingerprint Android interface definition language module or the fingerprint hardware abstraction layer.
[0116] Step 502: In response to the first function control command, enable the finger presence detection function of the touch control module for the fingerprint acquisition area.
[0117] In one implementation, the touch control module responds to a first function control command by enabling a finger presence detection function for the fingerprint acquisition area. Thus, this application utilizes the existing software architecture of electronic devices, eliminating the need for secondary software development, saving development costs, and ensuring system stability.
[0118] In some embodiments, such as Figure 6 As shown, when the electronic device is in a screen-on state, the electronic device responds to the operation of turning off the fingerprint recognition function, and the process of turning off the operating system's finger presence detection function for the fingerprint acquisition area is as follows:
[0119] Step 601: In response to the operation of disabling the fingerprint recognition function, a second function control command is sent from the fingerprint control module in the hardware abstraction layer of the operating system to the touch control module in the hardware abstraction layer of the operating system.
[0120] In one implementation, see Figure 3 As shown, after the application completes the collection of the user's fingerprint data, it can send a command to disable the fingerprint recognition function to the fingerprint control module in the hardware abstraction layer through the fingerprint service module in the application framework layer. Correspondingly, in response to the command to disable the fingerprint recognition function, the electronic device sends a second function control command to the touch control module in the hardware abstraction layer via the fingerprint control module and the touch driver in the kernel layer. This second function control command instructs the touch control module to disable the finger presence detection function for the fingerprint collection area.
[0121] It should be noted that the fingerprint control module may include one or more of the fingerprint Android Interface Definition Language (JILL) module and the fingerprint hardware abstraction module. The electronic device can send secondary function control commands to the touch control module in the hardware abstraction layer via the touch driver in the kernel layer through either the fingerprint JILL module or the fingerprint hardware abstraction module.
[0122] Step 602: In response to the second function control command, disable the finger presence detection function of the touch control module for the fingerprint acquisition area.
[0123] In one implementation, the touch control module responds to a second function control command by disabling the finger presence detection function for the fingerprint acquisition area. Thus, this application utilizes the existing software architecture of electronic devices, eliminating the need for secondary software development, saving development costs, and ensuring system stability.
[0124] In some embodiments, such as Figure 7 As shown, when an electronic device switches from a screen-on state to a screen-off state and the fingerprint unlock function is enabled, the electronic device activates TPIC's finger presence detection function for the fingerprint acquisition area, including:
[0125] Step 701: Send a third function control command to the TPIC through the fingerprint control module in the hardware abstraction layer of the operating system.
[0126] In one implementation, when the electronic device switches from a screen-on state to a screen-off state, the application in the electronic device (i.e., the fingerprint unlock application) can determine whether the fingerprint unlock function is enabled. If the fingerprint unlock function is enabled, the application can send an enable command for the fingerprint unlock function to the fingerprint control module in the hardware abstraction layer through the fingerprint service module in the application framework layer. Correspondingly, in response to the enable command for the fingerprint unlock function, the electronic device sends a third function control command to the TPIC in the hardware layer through the fingerprint control module and the touch driver in the kernel layer. The third function control command is used to instruct the TPIC to enable the finger presence detection function for the fingerprint acquisition area.
[0127] It should be noted that the fingerprint control module may include one or more of the following: a fingerprint Android interface definition language module and a fingerprint hardware abstraction module. Electronic devices can send third-function control commands to the TPIC in the hardware layer via the touch driver in the kernel layer through either the fingerprint Android interface definition language module or the fingerprint hardware abstraction module.
[0128] Step 702, in response to the third function control command, enable the TPIC's finger presence detection function for the fingerprint acquisition area.
[0129] In one implementation, the TPIC responds to a third function control command and enables finger presence detection for the fingerprint acquisition area. Thus, this application utilizes the existing software architecture of electronic devices, eliminating the need for secondary software development, saving development costs, and ensuring system stability.
[0130] Figure 8 This is a schematic diagram illustrating an example of a control method for an electronic device in a screen-on scenario provided by an embodiment of this application. The data flow and instruction flow between the modules are as follows: Figure 8 As shown. In this embodiment, data flows and instruction flows involved in this application are indicated by solid arrows, while data flows and instruction flows not involved in this embodiment are indicated by dashed arrows. This example uses a payment scenario as an example for illustration. Figure 8 As shown, when the electronic device switches from a screen-off state to a screen-on state, the touch driver disables the finger presence detection function of the TPIC for the fingerprint collection area. When the electronic device is in a screen-on state, the TPIC collects the touch signals generated by the user on the touch screen and sends the collected touch signals to the touch control module via the touch driver.
[0131] The user triggers the payment process by clicking the payment button in the payment application. The payment application sends an enable command for fingerprint recognition to the fingerprint hardware abstraction module via the fingerprint service module and the fingerprint Android interface definition language module. The fingerprint hardware abstraction module sends a first function control command to the touch control module via the touch driver. This first function control command instructs the touch control module to enable finger presence detection for the fingerprint acquisition area. In response to the first function control command, the touch control module enables finger presence detection for the fingerprint acquisition area and determines whether a finger touch operation exists within the fingerprint acquisition area based on the touch signal acquired by the TPIC. If a finger touch operation is detected within the fingerprint acquisition area, the touch control module sends a first command to the TPIC via the touch driver. This first command instructs the TPIC to report the finger presence event. In response to the first command, the TPIC pulls its voltage level high on the line between itself and the FPIC.
[0132] After the payment application collects the user's fingerprint data, it sends a command to the fingerprint hardware abstraction module to disable the fingerprint recognition function via the fingerprint service module and the fingerprint Android interface definition language module. The fingerprint hardware abstraction module then sends a second function control command to the touch control module via the touch driver. This second function control command instructs the touch control module to disable the finger presence detection function for the fingerprint acquisition area. In response to the second function control command, the touch control module disables the finger presence detection function for the fingerprint acquisition area and sends a second command to the TPIC via the touch driver. This second command instructs the TPIC to stop reporting finger presence events. In response to the second command, the TPIC pulls its voltage level low on the line between itself and the FPIC.
[0133] Figure 9 This is a schematic diagram illustrating an example of a control method for an electronic device in a screen-off scenario provided by an embodiment of this application. The data flow and instruction flow between the modules are as follows: Figure 9 As shown. In this embodiment, data flows and instruction flows involved in this application are indicated by solid arrows, while data flows and instruction flows not involved in this embodiment are indicated by dashed arrows. This example uses a screen-off unlocking scenario as an example for illustration. Figure 9As shown, when an electronic device switches from a screen-on state to a screen-off state, the fingerprint unlocking application determines whether the fingerprint unlocking function is enabled. If it is determined that the fingerprint unlocking function is enabled, the fingerprint unlocking application sends an enable command for the fingerprint unlocking function to the fingerprint Android Interface Definition Language module via the fingerprint service module. The fingerprint Android Interface Definition Language module then sends a third function control command to the TPIC via the touch driver. This third function control command instructs the TPIC to enable the finger presence detection function for the fingerprint acquisition area. In response to the third function control command, the TPIC enables the finger presence detection function for the fingerprint acquisition area.
[0134] When the electronic device is in screen-off mode, the TPIC collects the touch signals generated by the user on the touchscreen. Based on the collected touch signals, it determines whether there is a finger touch operation within the fingerprint collection area. If a finger touch operation is determined to be present within the fingerprint collection area, the voltage level of the line between the fingerprint sensor and the FPIC is pulled high.
[0135] The foregoing primarily describes the solutions provided in the embodiments of this application from the perspective of an electronic device. It is understood that, in order to achieve the aforementioned functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that the control method steps of an electronic device described in conjunction with the embodiments disclosed in this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by software-driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0136] This application embodiment can divide the above-described electronic device into functional modules or functional units according to the above method examples. For example, each function can be divided into its own functional modules or functional units, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module or functional unit. The module or unit division in this application embodiment is illustrative and represents only one logical functional division; other division methods may be used in actual implementation.
[0137] Other embodiments of this application provide a control device for an electronic device, such as... Figure 10 As shown, the device includes:
[0138] The first activation module 1010 is used to enable the finger presence detection function of the electronic device's operating system for the fingerprint acquisition area in response to the activation operation for the fingerprint recognition function when the electronic device is in a screen-on state.
[0139] The determination module 1020 is used to determine, when the finger presence detection function is enabled, whether there is a finger touch operation in the fingerprint collection area based on the touch signal collected by the touch screen integrated circuit TPIC and through the operating system.
[0140] The first sending module 1030 is used to send a first instruction to the TPIC through the operating system when it is determined that there is a finger touch operation in the fingerprint collection area. The first instruction is used to instruct the TPIC to report the finger presence event.
[0141] In one possible implementation, the device further includes:
[0142] The first shutdown module is used to disable the operating system's finger presence detection function for the fingerprint acquisition area in response to a shutdown operation for the fingerprint recognition function when the electronic device is in a screen-on state, and to send a second instruction to the TPIC through the operating system. The second instruction is used to instruct the TPIC to stop reporting finger presence events.
[0143] In one possible implementation, the device further includes:
[0144] The second transmitting module is used to collect touch signals generated by the user on the touch screen via TPIC when the electronic device is in a screen-on state, and to send the touch signals to the operating system.
[0145] In one possible implementation, the device further includes:
[0146] The second shutdown module is used to disable TPIC's finger presence detection function for the fingerprint collection area when the electronic device switches from a screen-off state to a screen-on state.
[0147] In one possible implementation, the device further includes:
[0148] The second enabling module is used to enable TPIC's finger presence detection function for the fingerprint collection area when the electronic device switches from a screen-on state to a screen-off state and the fingerprint unlock function is enabled.
[0149] In one possible implementation, the first enabling module 1010 is specifically used for:
[0150] In response to the activation operation of the fingerprint recognition function, a first function control command is sent from the fingerprint control module in the hardware abstraction layer of the operating system to the touch control module in the hardware abstraction layer of the operating system.
[0151] In response to the first function control command, the finger presence detection function of the touch control module for the fingerprint collection area is enabled.
[0152] In one possible implementation, the first shutdown module is specifically used for:
[0153] In response to the operation of disabling the fingerprint recognition function, a second function control command is sent from the fingerprint control module in the hardware abstraction layer of the operating system to the touch control module in the hardware abstraction layer of the operating system.
[0154] In response to the second function control command, the finger presence detection function of the touch control module for the fingerprint collection area is turned off.
[0155] In one possible implementation, the second enabling module is specifically used for:
[0156] Send third-function control commands to TPIC through the fingerprint control module in the hardware abstraction layer of the operating system;
[0157] In response to the third function control command, enable TPIC's finger presence detection function for the fingerprint acquisition area.
[0158] In one possible implementation, the fingerprint control module includes one or more of a fingerprint Android interface definition language module and a fingerprint hardware abstraction module.
[0159] Other embodiments of this application provide a control device for an electronic device, which can realize the functions of the aforementioned electronic device, such as a mobile phone. Figure 11As shown, the device includes: a display screen 1101, a memory 1102, a processor 1103, and a communication module 1104. These components can be connected via one or more communication buses 1105. The display screen 1101 may include a display panel 11011 and a touch sensor 11012. The display panel 11011 displays images, and the touch sensor 11012 transmits detected touch operations to the application processor to determine the type of touch event. The display panel 11011 provides visual output related to the touch operation. The processor 1103 may include one or more processing units, such as an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor. Different processing units may be independent devices or integrated into one or more processors. The memory 1102 is coupled to the processor 1103 and is used to store various software programs and / or computer instructions. The memory 1102 may include volatile memory and / or non-volatile memory. When the processor executes computer instructions, the electronic device can perform the various functions or steps performed by the mobile phone in the above method embodiments.
[0160] This application also provides a computer-readable storage medium, which includes computer instructions that, when the computer instructions are used in the aforementioned electronic device (such as...), Figure 2 When the electronic device 100 shown is run, it causes the electronic device to perform the various functions or steps performed by the mobile phone in the above method embodiment.
[0161] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the mobile phone in the above method embodiments.
[0162] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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.
[0163] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0164] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0165] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0166] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0167] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A control method for an electronic device, characterized in that, The method includes: When the electronic device is in a screen-on state, in response to the activation operation for the fingerprint recognition function, the finger presence detection function of the electronic device's operating system for the fingerprint acquisition area is activated. When the finger presence detection function is enabled, the operating system determines whether there is a finger touch operation in the fingerprint collection area based on the touch signal collected by the touch screen integrated circuit TPIC. If a finger touch operation is detected within the fingerprint acquisition area, the operating system sends a first instruction to the TPIC, which instructs the TPIC to report the finger presence event.
2. The method according to claim 1, characterized in that, The method further includes: When the electronic device is in the screen-on state, in response to the operation of turning off the fingerprint recognition function, the operating system's finger presence detection function for the fingerprint acquisition area is turned off, and the operating system sends a second instruction to the TPIC, the second instruction being used to instruct the TPIC to stop reporting finger presence events.
3. The method according to claim 1, characterized in that, The method further includes: When the electronic device is in a screen-on state, the TPIC collects the touch signals generated by the user on the touch screen and sends the touch signals to the operating system.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When the electronic device switches from a screen-off state to a screen-on state, the finger presence detection function of the TPIC for the fingerprint collection area is turned off.
5. The method according to claim 1, characterized in that, The method further includes: When the electronic device switches from a screen-on state to a screen-off state and the fingerprint unlock function is enabled, the finger presence detection function of the TPIC for the fingerprint collection area is enabled.
6. The method according to claim 1, characterized in that, The activation of the finger presence detection function for the fingerprint acquisition area in response to the fingerprint recognition function activation operation of the electronic device's operating system includes: In response to the activation operation of the fingerprint recognition function, a first function control command is sent from the fingerprint control module in the hardware abstraction layer of the operating system to the touch control module in the hardware abstraction layer of the operating system. In response to the first function control command, the finger presence detection function of the touch control module for the fingerprint collection area is enabled.
7. The method according to claim 2, characterized in that, The action of disabling the fingerprint recognition function, in response to the operation of turning off the fingerprint recognition function, includes disabling the operating system's finger presence detection function for the fingerprint acquisition area, including: In response to the operation of disabling the fingerprint recognition function, a second function control command is sent from the fingerprint control module in the hardware abstraction layer of the operating system to the touch control module in the hardware abstraction layer of the operating system. In response to the second function control command, the finger presence detection function of the touch control module for the fingerprint collection area is turned off.
8. The method according to claim 5, characterized in that, Enabling the finger presence detection function of the TPIC for the fingerprint acquisition area includes: The fingerprint control module in the hardware abstraction layer of the operating system sends a third function control command to the TPIC. In response to the third function control command, the finger presence detection function of the TPIC for the fingerprint acquisition area is enabled.
9. The method according to any one of claims 6 to 8, characterized in that, The fingerprint control module includes one or more of the following: a fingerprint Android interface definition language module and a fingerprint hardware abstraction module.
10. An electronic device, characterized in that, The electronic device includes: a processor and a memory; the memory is coupled to the processor; the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to perform the method as described in any one of claims 1-9.
11. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 9.