Touch screen control method, device, electronic device and storage medium

By determining the scanning mode based on the pressing data of the under-screen fingerprint recognition area in the black screen state of the touch screen, the problem of using a single scanning time interval affecting the response speed of the under-screen fingerprint recognition function is solved, and more flexible and accurate scanning mode determination is achieved, improving the user experience.

CN119781630APending Publication Date: 2025-04-08GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311297460.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-08
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the black screen state of the touch screen, using the same scanning time interval to scan black gesture events and under-screen fingerprint recognition events will affect the response speed of the under-screen fingerprint recognition function and reduce the user experience.

Method used

When it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, the pressing data of the under-screen fingerprint recognition area is obtained, the scanning mode is determined based on the pressing data, and the capacitance data is scanned according to the scanning mode.

Benefits of technology

It improves the response speed of the under-screen fingerprint recognition function, improves the flexibility and accuracy of scanning mode determination, and avoids the impact of a single scanning method on different touch events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781630A_ABST
    Figure CN119781630A_ABST
Patent Text Reader

Abstract

The present application discloses a touch screen control method, device, electronic device and storage medium. The method includes: obtaining the pressing data of the fingerprint recognition area under the screen of the touch screen when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on; determining the scanning mode of the touch screen according to the pressing data, and different scanning modes correspond to different scanning time intervals; scanning the capacitance data corresponding to the touch screen according to the scanning mode. This method realizes that when it is determined that the fingerprint recognition function under the screen of the touch screen is in the turned-on state, the scanning mode of the touch screen is determined in a targeted manner according to the pressing data of the fingerprint recognition area under the screen acting on the touch screen, thereby avoiding the scanning of different screen touch events by only one scanning method to affect the response speed of the fingerprint recognition function under the screen, thereby improving the response speed of the fingerprint recognition function under the screen, and also improving the flexibility and accuracy of the scanning mode determination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a touch screen control method, device, electronic device and storage medium. Background Art

[0002] With the advancement of technology, fingerprint recognition has spread throughout our daily lives, from e-commerce, banking to security, from mobile phones, smart locks to monitoring. At present, most electronic devices have implemented fingerprint recognition functions. As a way, the fingerprint recognition function can be realized through the touch screen of an electronic device. The touch screen can provide a black screen gesture function under a black screen (for example, sliding different preset characters can start different applications) and an under-screen fingerprint recognition function (for example, pressing the under-screen fingerprint recognition area of ​​the touch screen can realize the unlocking function). In order to save power consumption, a larger time interval will be used to scan the black screen gesture event under the black screen. If the time interval is still used to scan the under-screen fingerprint recognition event, the response speed of the under-screen fingerprint recognition function will be affected, reducing the user experience. Summary of the invention

[0003] The present application proposes a touch screen control method, device, electronic device and storage medium to improve the above-mentioned problems.

[0004] In the first aspect, an embodiment of the present application provides a touch screen control method that can be applied to an electronic device, wherein the electronic device includes a touch screen, and the method includes: when it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, obtaining pressure data acting on the under-screen fingerprint recognition area of ​​the touch screen; determining a scanning mode of the touch screen according to the pressure data, different scanning modes corresponding to different scanning time intervals; and scanning the capacitance data corresponding to the touch screen according to the scanning mode.

[0005] In the second aspect, an embodiment of the present application provides a touch screen control device that can be run on an electronic device, wherein the electronic device includes a touch screen, and the device includes: a press data acquisition module, which is used to obtain the press data of the under-screen fingerprint recognition area of ​​the touch screen when it is determined that the under-screen fingerprint recognition function of the touch screen is turned on; a scanning mode determination module, which is used to determine the scanning mode of the touch screen according to the press data; and a scanning module, which is used to scan the capacitance data corresponding to the touch screen according to the scanning mode.

[0006] In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method of the first aspect above.

[0007] In a fourth aspect, the present application provides a computer-readable storage medium having program code stored therein, wherein the method of the first aspect is executed when the program code is run.

[0008] The present application provides a touch screen control method, device, electronic device and storage medium, which obtains the pressing data of the fingerprint recognition area under the screen of the touch screen when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on; determines the scanning mode of the touch screen according to the pressing data; and scans the capacitance data corresponding to the touch screen according to the scanning mode. Thus, in the above manner, when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on, the scanning mode of the touch screen is determined in a targeted manner according to the pressing data of the fingerprint recognition area under the screen of the touch screen, avoiding the influence of the response speed of the fingerprint recognition function under the screen by scanning different screen touch events with only one scanning mode, thereby improving the response speed of the fingerprint recognition function under the screen, and also improving the flexibility and accuracy of the determination of the scanning mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A flow chart of a touch screen control method provided by an embodiment of the present application is shown.

[0011] Figure 2 A schematic diagram of the structure of a communication system provided in an embodiment of the present application is shown.

[0012] Figure 3 A flow chart of a touch screen control method provided by another embodiment of the present application is shown.

[0013] Figure 4 A schematic diagram of the channel range division of the fingerprint recognition area provided in an embodiment of the present application is shown.

[0014] Figure 5 A flow chart of a touch screen control method provided by yet another embodiment of the present application is shown.

[0015] Figure 6 A flow chart of a touch screen control method provided in yet another embodiment of the present application is shown.

[0016] Figure 7A structural block diagram of a touch screen control device provided in an embodiment of the present application is shown.

[0017] Figure 8 A structural block diagram of an electronic device provided in an embodiment of the present application is shown.

[0018] Fig. 9 A storage unit for storing or carrying a program code for implementing a touch screen control method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0020] Touch screens include optical fingerprint screens and capacitive fingerprint screens. The optical fingerprint screen provides screen light through the system, providing light to the finger pressed in the fingerprint recognition area under the screen. By collecting and photographing the image of the fingerprint, it compares and identifies whether it is the preset fingerprint, thereby realizing unlocking, payment and other functions; the capacitive fingerprint screen uses the capacitive sensing principle of the touch screen to determine whether an object is in contact with the touch screen and then reports the status of the object.

[0021] The inventors found that the touch screen can provide a black screen gesture function (for example, sliding different preset characters can start different applications) and an under-screen fingerprint recognition function (for example, pressing the under-screen fingerprint recognition area of ​​the touch screen can realize the unlocking function) under a black screen, and the scanning time of the touch screen under a bright screen is different from that under a black screen. In order to save power consumption, a longer time interval will be used to scan black screen gesture events under a black screen. If the time interval is still used to scan the under-screen fingerprint recognition event, the response speed of the under-screen fingerprint recognition function will be affected, reducing the user experience.

[0022] After long-term research, the inventor found that, when it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen can be obtained; the scanning mode of the touch screen can be determined according to the pressing data; and the capacitance data corresponding to the touch screen can be scanned according to the scanning mode. Thus, in the above manner, when it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, the scanning mode of the touch screen can be determined in a targeted manner according to the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen, thereby avoiding the impact of the response speed of the under-screen fingerprint recognition function by scanning different screen touch events with only one scanning method, thereby improving the response speed of the under-screen fingerprint recognition function, and also improving the flexibility and accuracy of the scanning mode determination.

[0023] Therefore, in order to improve the above-mentioned problems, the inventor proposed the touch screen control method, device, electronic device and computer-readable storage medium provided in the present application, which can avoid affecting the response speed of the under-screen fingerprint recognition function by scanning different screen touch events by only one scanning method, thereby improving the response speed of the under-screen fingerprint recognition function, while also improving the flexibility and accuracy of determining the scanning mode.

[0024] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0025] See also Figure 1 , shows a flow chart of a touch screen control method provided by an embodiment of the present application. This embodiment provides a touch screen control method, which can be applied to electronic devices, wherein the electronic device can be a mobile phone, a computer, a tablet or a wearable electronic device, and the type of specific electronic device can be not limited. The electronic device includes a touch screen, and the touch screen in the embodiment of the present application can be a capacitive fingerprint screen or a capacitive touch screen. The method includes:

[0026] Step S110: When it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, obtain the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen.

[0027] Among them, the screen state of the touch screen includes a bright screen state and a black screen state, and the under-screen fingerprint recognition function is used to implement different functions in different screen states. For example, the under-screen fingerprint recognition function in the black screen state is mainly used to wake up the system under the black screen and realize the function of unlocking the screen; while the under-screen fingerprint recognition function in the bright screen is mainly used to realize functions such as unlocking applications or payment. The implementation method of this application may not limit the screen state of the touch screen. This implementation method takes the screen state of the touch screen as the black screen state as an example for explanation.

[0028] As an implementation method, the touch screen in the black screen state can provide not only the under-screen fingerprint recognition function, but also the black screen gesture function (for example, sliding a character or symbol of a preset shape can trigger the launch of the corresponding associated application). In order to save power consumption, the touch screen's scanning time interval for black screen gesture events (events that trigger the launch of the black screen gesture function) must be greater than the touch screen's scanning time interval for under-screen fingerprint recognition events (events that trigger the launch of the under-screen fingerprint recognition function). In this way, if the under-screen fingerprint recognition event is scanned at the time interval for scanning the black screen gesture event in the black screen state, the response speed of the under-screen fingerprint recognition function will be seriously affected, thereby affecting the accuracy of the under-screen fingerprint recognition.

[0029] In order to optimize the above-mentioned problem, as an implementation mode, when it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen can be obtained, so that the corresponding scanning time interval can be flexibly and accurately determined based on the current pressing operation.

[0030] As an implementation method, when the touch screen enters a black screen state, the electronic device can be configured to automatically turn on the touch screen's under-screen fingerprint recognition function. It should be noted that if the touch screen is in a bright screen state, the touch screen's under-screen fingerprint recognition function can be triggered to automatically turn on when it detects entering a payment scenario or an application unlocking scenario.

[0031] As another implementation, a flag indicating whether the under-screen fingerprint recognition function is turned on can be preset. That is to say, after the terminal system (i.e., the system of the electronic device) turns on the corresponding function, it is necessary to turn on or off the flag setting, and at the same time, the terminal system also needs to set the register of the touch screen system. Then in this way, the current flag state of the register corresponding to the under-screen fingerprint recognition function of the touch screen can be obtained; and then based on the flag state, it is determined whether the under-screen fingerprint recognition function is in the turned-on state. For example, assuming that a flag state value of "1" is preset to indicate that the under-screen fingerprint recognition function is turned on, and a flag state value of "0" indicates that the under-screen fingerprint recognition function is not turned on, then when the flag state value is detected to be "1", it can be determined that the under-screen fingerprint recognition function is in the turned-on state.

[0032] See also Figure 2 , shows a schematic diagram of the structure of the communication system provided by the embodiment of the present application. Figure 2 As shown, the terminal system 51 and the touch screen system 52 can communicate data via an I2C (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface) interface, and the INT interrupt pin is a signal interface used by the touch screen system to notify the terminal system to read the touch screen data.

[0033] The touch screen system has its own IC (Integrated Circuit Chip) and its own memory, and the memory can be implemented in the form of registers.

[0034] As an implementation mode, when it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, the self-capacitance data of the touch screen can be detected, and the self-capacitance data can be compared with a preset self-capacitance threshold. If the comparison shows that the self-capacitance data is greater than or equal to the self-capacitance threshold, then it can be determined that an object is approaching or pressing the under-screen fingerprint recognition area of ​​the touch screen. In this way, the pressure data acting on the under-screen fingerprint recognition area of ​​the touch screen can be obtained.

[0035] Step S120: determining a scanning mode of the touch screen according to the pressing data, wherein different scanning modes correspond to different scanning time intervals.

[0036] The pressing data may include information such as the pressing position and the pressing duration. Different pressing data corresponds to different scanning modes of the touch screen, and different scanning modes correspond to different scanning time intervals (i.e., scanning frequencies). Therefore, as a method, the scanning mode of the touch screen can be determined based on the acquired pressing data.

[0037] As an implementation method, the scanning modes corresponding to the aforementioned under-screen fingerprint recognition function and the black screen gesture function can be pre-configured. In this way, if the acquired pressing data can trigger the under-screen fingerprint recognition event, the scanning mode corresponding to the under-screen fingerprint recognition function is determined as the scanning mode of the touch screen; and if the acquired pressing data cannot trigger the under-screen fingerprint recognition event, it means that the pressing position is wrong or the pressing time is short, and the scanning mode corresponding to the black screen gesture function can be determined as the scanning mode of the touch screen. Among them, the scanning time interval of the scanning mode corresponding to the black screen gesture function is greater than the scanning time interval of the scanning mode corresponding to the under-screen fingerprint recognition function.

[0038] Step S130: Scanning capacitance data corresponding to the touch screen according to the scanning mode.

[0039] As an implementation, after determining the scanning mode of the touch screen, the capacitance data corresponding to the touch screen can be scanned according to the scanning mode. Specifically, the touch screen system can trigger a scanning waveform at a frequency of the scanning time interval to scan the touch screen to detect capacitance data.

[0040] The touch screen control method provided in this embodiment obtains the pressing data of the fingerprint recognition area under the screen of the touch screen when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on; determines the scanning mode of the touch screen according to the pressing data; and scans the capacitance data corresponding to the touch screen according to the scanning mode. Thus, in the above manner, when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on, the scanning mode of the touch screen is determined in a targeted manner according to the pressing data of the fingerprint recognition area under the screen of the touch screen, thereby avoiding the influence of the response speed of the fingerprint recognition function under the screen by scanning different screen touch events with only one scanning mode, thereby improving the response speed of the fingerprint recognition function under the screen, and also improving the flexibility and accuracy of the determination of the scanning mode.

[0041] See also Figure 3 , shows a flow chart of a touch screen control method provided by another embodiment of the present application. This embodiment provides a touch screen control method, which can be applied to an electronic device, wherein the electronic device includes a touch screen. The method includes:

[0042] Step S210: When it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, obtain the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen.

[0043] The specific implementation of step S210 may refer to the relevant description of step S110 in the aforementioned embodiment, which will not be repeated here.

[0044] Step S221: If the pressed position is a preset position, the first scanning mode is determined as the scanning mode of the touch screen.

[0045] In this implementation, the pressing data includes a pressing position, and the preset position is a preset fingerprint channel range in the under-screen fingerprint recognition area of ​​the touch screen.

[0046] In this embodiment, the touch screen may be a capacitive touch screen. The capacitive touch screen is mainly composed of a transmitting channel and a receiving channel, wherein the capacitance data of the transmitting channel or the receiving channel to the ground (including the capacitance data between the receiving channel and the ground, or the capacitance data between the transmitting channel and the ground) is self-capacitance data, and the capacitance data between the transmitting channel and the receiving channel is mutual capacitance data.

[0047] In some specific implementations, see Figure 4 , shows an example diagram of the preset position provided in the embodiment of the present application. Figure 4As shown, the touch screen can be divided into a TX transmitting channel and a RX receiving channel, TX represents the vertical screen direction, RX represents the horizontal direction, and the area surrounded by the TX transmitting channels 5-10 and the RX receiving channels 28-30 is the fingerprint recognition area (ie, the preset position).

[0048] As an implementation manner, if the pressed position is determined to be a preset position, the first scanning mode can be determined as the scanning mode of the touch screen. The first scanning mode is the scanning mode corresponding to the under-screen fingerprint recognition function described in the above embodiment.

[0049] As an implementation method, in order to avoid accidental touches (for example, if the user only briefly presses the preset position, successful unlocking may not be achieved), if the pressing position is determined to be the preset position and the pressing time is greater than the preset time, then the first scanning mode can be determined as the scanning mode of the touch screen, and the specific value of the preset time may not be limited.

[0050] Step S222: if the pressed position is not a preset position, determine a second scanning mode as the scanning mode of the touch screen, and a scanning time interval of the second scanning mode is greater than a scanning time interval of the first scanning mode.

[0051] As an implementation method, if the pressing position is determined to be a non-preset position, that is, the pressing is performed at a position other than the preset position on the touch screen, the pressing gesture can be identified as a black screen gesture to implement the black screen gesture function. In this way, the second scanning mode can be determined as the scanning mode of the touch screen. The second scanning mode is the scanning mode corresponding to the black screen gesture function described in the above embodiment. The scanning time interval of the second scanning mode is greater than the scanning time interval of the first scanning mode. Optionally, the specific value of the scanning time interval of the second scanning mode and the specific value of the scanning time interval of the first scanning mode can be unrestricted.

[0052] As an implementation method, when no user gesture acts on the fingerprint recognition area under the touch screen, the touch screen scanning mode can be defaulted to the scanning mode corresponding to the black screen gesture function. In this way, if the pressing position is determined to be the preset position, the scanning mode of the touch screen can be switched from the second scanning mode to the first scanning mode.

[0053] In this embodiment, the fingerprint recognition function under the screen of the touch screen and the black screen gesture function of the touch screen can be turned on at the same time. In this way, by obtaining the pressing data of the fingerprint recognition area under the screen of the touch screen, the scanning mode of the touch screen is determined according to whether the pressing position is in the preset position. In addition, if the pressing position changes, the scanning mode of the corresponding touch screen can also change. For example, if the pressing position is initially in the preset position and then moves to the non-preset position, the scanning mode of the touch screen can be switched from the first scanning mode to the second scanning mode; if the pressing position moves from the non-preset position to the preset position, the scanning mode of the touch screen can be switched from the second scanning mode to the first scanning mode.

[0054] Step S230: Scanning capacitance data corresponding to the touch screen according to the scanning mode.

[0055] The specific implementation of step S230 may refer to the relevant description of step S130 in the aforementioned embodiment, which will not be repeated here.

[0056] As an implementation mode, if the first scanning mode is determined to be the scanning mode of the touch screen, the capacitance data corresponding to the touch screen will be scanned according to the first scanning mode; and if the second scanning mode is determined to be the scanning mode of the touch screen, the capacitance data corresponding to the touch screen will be scanned according to the second scanning mode.

[0057] The touch screen control method provided in this embodiment obtains the pressing data of the fingerprint recognition area under the screen of the touch screen when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on; if the pressing position is a preset position, the first scanning mode is determined as the scanning mode of the touch screen; if the pressing position is a non-preset position, the second scanning mode is determined as the scanning mode of the touch screen, and the scanning time interval of the second scanning mode is greater than the scanning time interval of the first scanning mode; and the capacitance data corresponding to the touch screen is scanned according to the scanning mode. Thus, in the above manner, when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on, the scanning mode of the touch screen is determined in a targeted manner according to the pressing data of the fingerprint recognition area under the screen of the touch screen, thereby avoiding the influence of the response speed of the fingerprint recognition function under the screen by scanning different screen touch events with only one scanning mode, thereby improving the response speed of the fingerprint recognition function under the screen, and also improving the flexibility and accuracy of the scanning mode determination.

[0058] At the same time, scanning at a shorter time interval for the under-screen fingerprint recognition function can improve the response speed of fingerprint recognition, and scanning at a longer time interval for the black screen gesture function can save power and reduce the standby power consumption of electronic devices. Therefore, the current scanning mode of the touch screen is determined based on the pressing data of the under-screen fingerprint recognition area acting on the touch screen, which improves the flexibility and response speed of the scanning mode.

[0059] See also Figure 5 , shows a flow chart of a touch screen control method provided by another embodiment of the present application. This embodiment provides a touch screen control method, which can be applied to an electronic device, wherein the electronic device includes a touch screen, and the method includes:

[0060] Step S311: If the under-screen fingerprint recognition function of the touch screen is not enabled, the second scanning mode is determined as the scanning mode of the touch screen.

[0061] As an implementation method, if the under-screen fingerprint recognition function of the touch screen is not turned on (for example, the user turns off the function by himself), the touch screen can implement the black screen gesture (detection) function in the black screen state. In order to save power consumption, the second scanning mode (that is, the scanning mode corresponding to the black screen gesture function) can be directly determined as the scanning mode of the touch screen.

[0062] Optionally, the scanning modes corresponding to the touch screen under different fingerprint recognition functions can be pre-configured. Different scanning modes correspond to different scanning time intervals. In this way, when the touch screen is in a black screen state, the scanning mode of the touch screen can be determined according to the current activation status of different fingerprint recognition functions.

[0063] As an implementation method, if only one fingerprint recognition function is turned on, the scanning mode corresponding to the fingerprint recognition function can be directly used as the scanning mode of the touch screen; if multiple (it can be two or more, the two case can include the under-screen fingerprint recognition function and the black screen gesture detection function) fingerprint recognition functions are turned on, then the scanning modes corresponding to the multiple fingerprint recognition functions can be obtained, and then one of the multiple scanning modes is selected as the scanning mode of the touch screen. For example, the scanning mode with the shortest scanning time interval can be selected as the scanning mode of the touch screen.

[0064] As an implementation manner, determining the second scanning mode as the scanning mode of the touch screen may include: if the scanning mode of the touch screen is originally the second scanning mode, then the second scanning mode may be maintained as the scanning mode of the touch screen.

[0065] Step S312: When it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, obtain the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen.

[0066] The specific implementation of step S312 may refer to the relevant description of step S110 in the aforementioned embodiment, which will not be repeated here.

[0067] Step S321: If the pressed position is a preset position, the first scanning mode is determined as the scanning mode of the touch screen.

[0068] The specific implementation of step S321 may refer to the relevant description of step S221 in the aforementioned embodiment, which will not be repeated here.

[0069] Step S322: if the pressed position is not a preset position, determine a second scanning mode as the scanning mode of the touch screen, and a scanning time interval of the second scanning mode is greater than a scanning time interval of the first scanning mode.

[0070] The specific implementation of step S322 may refer to the relevant description of step S222 in the aforementioned embodiment, which will not be repeated here.

[0071] Step S330: Scanning capacitance data corresponding to the touch screen according to the scanning mode.

[0072] The specific implementation of step S330 may refer to the relevant description of step S130 and step S230 in the aforementioned embodiment, which will not be repeated here.

[0073] The touch screen control method provided in this embodiment is as follows: if the under-screen fingerprint recognition function of the touch screen is not turned on, the second scanning mode is determined as the scanning mode of the touch screen; if it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen is obtained; if the pressing position is a preset position, the first scanning mode is determined as the scanning mode of the touch screen; if the pressing position is a non-preset position, the second scanning mode is determined as the scanning mode of the touch screen, and the scanning time interval of the second scanning mode is greater than the scanning time interval of the first scanning mode; and the capacitance data corresponding to the touch screen is scanned according to the scanning mode. Thus, in the above manner, when it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, the scanning mode of the touch screen is determined in a targeted manner according to the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen, avoiding the influence of the response speed of the under-screen fingerprint recognition function by scanning different screen touch events by only one scanning mode, thereby improving the response speed of the under-screen fingerprint recognition function, and also improving the flexibility and accuracy of the scanning mode determination.

[0074] When the under-screen fingerprint recognition function of the touch screen is not turned on, when the touch screen is in a black screen state, the scanning mode of the touch screen can be determined according to the current activation status of different fingerprint recognition functions. Compared with using a fixed scanning mode, the flexibility and accuracy of the scanning mode selection in the black screen state can be improved, thereby improving the response speed of the fingerprint recognition function.

[0075] See also Figure 6 , shows a flow chart of a touch screen control method provided by another embodiment of the present application. This embodiment provides a touch screen control method, which can be applied to an electronic device, wherein the electronic device includes a touch screen, and the method includes:

[0076] Step S410: When it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, obtain the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen.

[0077] The specific implementation of step S410 may refer to the relevant description of step S110 in the aforementioned embodiment, which will not be repeated here.

[0078] Step S420: determining a scanning mode of the touch screen according to the pressing data, wherein different scanning modes correspond to different scanning time intervals.

[0079] The specific implementation of step S420 may refer to the relevant description of step S120 in the aforementioned embodiment, which will not be repeated here.

[0080] Step S430: Scanning capacitance data corresponding to the touch screen according to the scanning mode.

[0081] The specific implementation of step S430 may refer to the relevant description of step S130 in the aforementioned embodiment, which will not be repeated here.

[0082] Step S440: acquiring the self-capacitance data of the touch screen in each scanning cycle.

[0083] In order to further improve the flexibility of the scanning mode, as an implementation mode, in each scanning cycle of scanning the capacitance data corresponding to the touch screen according to the scanning mode, the self-capacitance data of the touch screen can be obtained to realize the timed detection of whether the user presses the fingerprint.

[0084] Step S450: determining whether there is a pressing operation on the touch screen based on the self-capacitance data.

[0085] As an implementation method, the acquired self-capacitance data can be compared with a preset self-capacitance threshold. If the self-capacitance data is greater than or equal to the preset self-capacitance threshold, it can be determined that there is a pressing operation on the touch screen; and if the self-capacitance data is less than the preset self-capacitance threshold, it can be determined that there is no pressing operation on the touch screen. The specific value of the self-capacitance threshold may not be limited. For example, if the acquired self-capacitance data is 410, and the preset self-capacitance threshold is 400, it can be determined that there is a pressing operation on the touch screen, and at this time, the touch screen can change from an idle state to an active state.

[0086] As an implementation method, when a finger touches the touch screen, the capacitance of the finger will be superimposed on the capacitance of the touch screen, so that the capacitance of the touch screen increases. Therefore, it is possible to determine whether the touch screen has obtained a pressing operation based on the self-capacitance data of the touch screen. Specifically, if the currently obtained self-capacitance data is increased compared to the capacitance of the touch screen, then it can be determined that there is a pressing operation acting on the touch screen, otherwise it is determined that there is no pressing operation acting on the touch screen.

[0087] Step S460: If there is a pressing operation on the touch screen, adjust the scanning mode of the touch screen.

[0088] As an implementation method, if it is determined that there is a pressing operation on the touch screen, the scanning mode of the touch screen can be adjusted. Among them, if the touch screen obtains a pressing operation, it means that the user is performing a touch operation, and the touch screen changes from an idle state to an active state. In order to accurately obtain the user's touch operation, the scanning mode of the touch screen can be adjusted. For example, the scanning time interval can be adjusted. Then, the adjusted scanning mode can be used to scan the touch screen. During the scanning process, the mutual capacitance data and self-capacitance data of the touch screen can be obtained, and the coordinates of the pressing operation and the pressing area can be calculated to determine whether the pressing is successful. Among them, the mutual capacitance data refers to the capacitance between the receiving channel and the transmitting channel.

[0089] It should be noted that in the implementation manner of the present application, the mutual-capacitance data and self-capacitance data of the touch screen corresponding to different fingerprint recognition functions are different, and the self-capacitance thresholds corresponding to the same fingerprint recognition function in different states may also be different. For example, for the black screen gesture function, if the touch screen is in an idle state, its self-capacitance threshold may be 500; if the touch screen is in an active state (for example, when there is a gesture touch), its self-capacitance threshold may be 600, and the mutual-capacitance threshold may be 100. For the under-screen fingerprint recognition function, if the touch screen is in an idle state, its self-capacitance threshold may be 400; if the touch screen is in an active state (for example, when there is a gesture touch), its self-capacitance threshold may be 500, and the mutual-capacitance threshold may be 80.

[0090] As an implementation method, if the mutual capacitance data obtained is greater than the mutual capacitance threshold and the self-capacitance data is greater than the self-capacitance threshold, then it can be determined that the press is successful, and the event information of the successful press can be reported. For example, in a specific application scenario, taking the above example as an example, when it is determined that there is a press operation acting on the touch screen, the touch screen can change from an idle state to an active state. At this time, if the self-capacitance data of the TX channel and the RX channel of the touch screen is 800, the maximum mutual capacitance data is greater than 80, and the maximum value of the mutual capacitance data is within the preset channel range of the fingerprint recognition area under the screen, then it can be determined that there is a press event.

[0091] As an implementation method, in order to further improve the pressing response speed of the fingerprint under the touch screen, when adjusting the scanning mode of the touch screen, the scanning cycle of the touch screen can be reduced, that is, the scanning time interval can be shortened. For example, the scanning cycle corresponding to the scanning mode before adjustment is 0.8 seconds, that is, it is scanned once every 0.8 seconds. After the pressing operation is obtained, the scanning cycle can be reduced, for example, it can be adjusted to scan once every 0.3 seconds.

[0092] The touch screen control method provided in this embodiment obtains the pressing data of the fingerprint recognition area under the screen of the touch screen when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on; determines the scanning mode of the touch screen according to the pressing data; scans the capacitance data corresponding to the touch screen according to the scanning mode; obtains the self-capacitance data of the touch screen in each scanning cycle; determines whether there is a pressing operation on the touch screen based on the self-capacitance data; and adjusts the scanning mode of the touch screen if there is a pressing operation on the touch screen. Thus, in the above manner, when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on, the scanning mode of the touch screen is determined in a targeted manner according to the pressing data of the fingerprint recognition area under the screen of the touch screen, thereby avoiding the influence of the response speed of the fingerprint recognition function under the screen by scanning different screen touch events with only one scanning mode, thereby improving the response speed of the fingerprint recognition function under the screen, and also improving the flexibility and accuracy of the determination of the scanning mode.

[0093] At the same time, by reducing the scanning cycle of the touch screen, the scanning frequency can be increased, thereby further improving the pressing response speed of the fingerprint under the touch screen.

[0094] See also Figure 7, is a structural block diagram of a touch screen control device provided in an embodiment of the present application. This embodiment provides a touch screen control device 500, which can be operated on an electronic device. The electronic device includes a touch screen. The device 500 includes a pressing data acquisition module 510, a scanning mode determination module 520 and a scanning module 530:

[0095] The pressing data acquisition module 510 is used to obtain the pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen when it is determined that the under-screen fingerprint recognition function of the touch screen is turned on.

[0096] As an implementation mode, the touch screen can respond to a selection instruction acting on the electronic device to enable an under-screen fingerprint recognition function of the touch screen.

[0097] The scanning mode determining module 520 is used to determine the scanning mode of the touch screen according to the pressing data.

[0098] In this embodiment, the pressing data includes a pressing position.

[0099] As an implementation manner, the scanning mode determination module 520 can be used to determine the first scanning mode as the scanning mode of the touch screen if the pressing position is a preset position; if the pressing position is a non-preset position, determine the second scanning mode as the scanning mode of the touch screen, and the scanning time interval of the second scanning mode is greater than the scanning time interval of the first scanning mode.

[0100] Wherein, if the pressed position is a preset position, determining the first scanning mode as the scanning mode of the touch screen may include: if the pressed position is a preset position, switching the scanning mode of the touch screen from the second scanning mode to the first scanning mode.

[0101] As an implementation manner, the scanning mode determination module 520 can also be used to determine the second scanning mode as the scanning mode of the touch screen if the under-screen fingerprint recognition function of the touch screen is not turned on.

[0102] The scanning module 530 is used to scan the capacitance data corresponding to the touch screen according to the scanning mode.

[0103] Optionally, the device 500 may further include a status determination module, which is used to obtain the current flag bit status of the register corresponding to the under-screen fingerprint recognition function of the touch screen; and determine whether the under-screen fingerprint recognition function is in an on state based on the flag bit status.

[0104] Optionally, the device 500 may also include a scanning mode adjustment module, which is used to obtain self-capacitance data of the touch screen in each scanning cycle after scanning the capacitance data corresponding to the touch screen according to the scanning mode; determine whether there is a pressing operation on the touch screen based on the self-capacitance data; if there is a pressing operation on the touch screen, adjust the scanning mode of the touch screen.

[0105] As an implementation manner, the adjusting the scanning mode of the touch screen may include: reducing a scanning period for scanning the touch screen.

[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0107] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0108] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0109] See also Figure 8 Based on the above touch screen control method and device, the embodiment of the present application also provides an electronic device 100 that can execute the above touch screen control method. The electronic device 100 includes a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, and the memory 102 and the processor 104 are connected by a communication line. The memory 102 stores a program that can execute the content of the above embodiment, and the processor 104 can execute the program stored in the memory 102.

[0110] Among them, the processor 104 may include one or more processing cores. The processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 102, and calling data stored in the memory 102. Optionally, the processor 104 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 104 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 104, but may be implemented separately through a communication chip.

[0111] The memory 102 may include a random access memory (RAM) or a read-only memory (ROM). The memory 102 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the aforementioned embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0112] Please refer to Fig. 9 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 600 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0113] The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.

[0114] In summary, the embodiments of the present application provide a touch screen control method, device, electronic device and storage medium. The method is applied to an electronic device, and the electronic device includes a touch screen. The method obtains the pressing data of the fingerprint recognition area under the screen of the touch screen when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on; determines the scanning mode of the touch screen according to the pressing data; and scans the capacitance data corresponding to the touch screen according to the scanning mode. Therefore, in the above manner, when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on, the scanning mode of the touch screen is determined in a targeted manner according to the pressing data of the fingerprint recognition area under the screen of the touch screen, thereby avoiding the scanning of different screen touch events by only one scanning method, which affects the response speed of the fingerprint recognition function under the screen, thereby improving the response speed of the fingerprint recognition function under the screen, and also improving the flexibility and accuracy of the scanning mode determination.

[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A touch screen control method, characterized in that: Applied to an electronic device, the electronic device includes a touch screen, and the method includes: When it is determined that the under-screen fingerprint recognition function of the touch screen is turned on, obtaining pressing data acting on the under-screen fingerprint recognition area of ​​the touch screen; Determining a scanning mode of the touch screen according to the pressing data, where different scanning modes correspond to different scanning time intervals; The capacitance data corresponding to the touch screen is scanned according to the scanning mode.

2. The method according to claim 1, characterized in that: The pressing data includes a pressing position, and determining a scanning mode of the touch screen according to the pressing data includes: If the pressed position is a preset position, determining the first scanning mode as the scanning mode of the touch screen; If the pressed position is not a preset position, a second scanning mode is determined as the scanning mode of the touch screen, and a scanning time interval of the second scanning mode is greater than a scanning time interval of the first scanning mode.

3. The method according to claim 2, characterized in that If the pressed position is a preset position, determining the first scanning mode as the scanning mode of the touch screen includes: If the pressed position is a preset position, the scanning mode of the touch screen is switched from the second scanning mode to the first scanning mode.

4. The method according to claim 2, characterized in that: The method further comprises: If the under-screen fingerprint recognition function of the touch screen is not enabled, the second scanning mode is determined as the scanning mode of the touch screen.

5. The method according to claim 1, characterized in that The method further comprises: Obtain the current flag bit status of the register corresponding to the under-screen fingerprint recognition function of the touch screen; Determine whether the under-screen fingerprint recognition function is in an enabled state based on the flag bit status.

6. The method according to claim 1, characterized in that After scanning the capacitance data corresponding to the touch screen according to the scanning mode, the method further includes: In each scanning cycle, acquiring the self-capacitance data of the touch screen; Determining whether there is a pressing operation on the touch screen based on the self-capacitance data; If there is a pressing operation on the touch screen, the scanning mode of the touch screen is adjusted.

7. The method according to claim 6, characterized in that The adjusting the scanning mode of the touch screen includes: The scanning period of scanning the touch screen is reduced.

8. A touch screen control device, characterized in that: The device is operated on an electronic device, wherein the electronic device includes a touch screen, and the device includes: A pressing data acquisition module, configured to acquire pressing data acting on the fingerprint recognition area under the screen of the touch screen when it is determined that the fingerprint recognition function under the screen of the touch screen is turned on; A scanning mode determination module, used to determine the scanning mode of the touch screen according to the pressing data; The scanning module is used to scan the capacitance data corresponding to the touch screen according to the scanning mode.

9. An electronic device, characterized in that: including one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, wherein when the program codes are executed by a processor, the method according to any one of claims 1 to 7 is executed.