Touch detection method and terminal

By adjusting the point threshold according to temperature changes after the capacitive touch screen is bright, the problem of touch event detection failure in low-temperature environments is solved, and more accurate touch event recognition and noise interference are achieved.

CN119248132AActive Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410512007.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2025-01-03
Estimated Expiration
2044-04-25

AI Technical Summary

Technical Problem

In the low temperature environment of the capacitive touch screen when the screen is bright, the touch event detection fails, and the user's touch operation cannot be accurately identified or the touch operation type is erroneously recognized.

Method used

After the screen is turned on, adjust the point threshold and adapt the difference between the real-time capacity and reference capacity according to the temperature changes, the point threshold is reduced or restored to ensure that touch events can be accurately detected in low-temperature environments and reduce noise signal interference .

Benefits of technology

Improve the accuracy of touch event detection in low-temperature environments, reduce misidentified and unidentified touch operations, and enhance the terminal's response ability to user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248132A_ABST
    Figure CN119248132A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a touch detection method and a terminal. In the method, after a screen of the terminal is turned on, the terminal sets an initial value of a point reporting threshold value as a default point reporting threshold value before or in a first touch detection frame. Entering the first touch detection frame, and acquiring the capacitance value of each touch unit in the screen in the first touch detection frame as a reference capacitance value by the terminal; in a subsequent touch detection frame, whether a touch event exists in the screen is determined based on whether a capacitance value difference between the reference capacitance value and the real-time capacitance value is greater than a report point threshold value. In a subsequent touch detection frame, the terminal can adjust the report point threshold to adapt to the temperature change. By implementing the technical scheme provided by the invention, the problem that the detection of the touch event occurring subsequently fails under the condition that the screen temperature is low when the screen is turned on can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a touch detection method and a terminal. Background Art

[0002] The screen of the terminal may be a capacitive touch screen. A touch unit array is distributed on the capacitive touch screen for detecting a user's touch operation. The touch unit may create capacitance on the touch screen. When the user touches the screen, the capacitance of the touch unit changes. The terminal may detect the capacitance change of the touch unit and determine that a touch event exists when the change is greater than a preset reporting threshold. Summary of the invention

[0003] The present application provides a touch detection method and terminal, which are used to solve the problem of failure in subsequent touch event detection when the screen temperature is low when the screen is turned on.

[0004] In a first aspect, the present application provides a touch detection method, which is applied to a terminal with a capacitive touch screen, wherein the capacitive touch screen includes a touch unit for detecting touch events, and the method includes: in response to a screen-on operation, the terminal turns on the screen; after the screen is turned on and before the screen is turned off, detecting whether there is a touch event in the capacitive touch screen according to a detection frequency; when it is detected that the difference between the real-time capacitance value and the reference capacitance value of the touch unit in the first touch detection frame is greater than a reporting threshold, determining that there is a touch event in the capacitive touch screen in the first touch detection frame; the reference capacitance value of a touch unit is the capacitance value of the touch unit in the first touch detection frame after the screen is turned on; if the temperature of the capacitive touch screen is low temperature when the screen is turned on, and the reporting threshold value is not equal to the first threshold value associated with the low temperature, reducing the reporting threshold value to be greater than or equal to the first threshold value; when it is detected that the difference between the real-time capacitance value and the reference capacitance value of the touch unit in the second touch detection frame is greater than the reduced reporting threshold value, determining that there is a touch event in the capacitive touch screen in the second touch detection frame; the second touch detection frame includes the first touch detection frame after the first touch detection frame.

[0005] In the above embodiment, the first touch detection frame may be the touch detection frame 1 involved in the following embodiment, and the second touch detection frame may be the touch detection frame 2 involved in the following embodiment. The first threshold associated with low temperature may be the low temperature reporting threshold associated with low temperature involved in the following embodiment.

[0006] When the screen is turned on at low temperature, the terminal can lower the reporting threshold after detecting a touch event to adapt to the problem of reduced tolerance difference between the real-time capacitance and the reference capacitance caused by the increase in temperature of the touched touch unit. The reduced tolerance difference can be greater than the reduced reporting threshold, so that the terminal can detect the touch event on the touched touch unit (after heating up). At the same time, the reporting threshold is lowered only after the touch event is detected, and the reporting threshold is not directly lowered when it is determined that the screen temperature when the screen is turned on is low. This is to prevent the reporting threshold from being easily interfered by noise signals when it is too low (the reporting threshold after the reduction).

[0007] In combination with the first aspect, in some embodiments, before the reporting threshold is lowered, the method also includes: determining that there is a touch event in a third touch detection frame; the third touch detection frame is the previous touch detection frame of the first touch detection frame, or the third touch detection frame is before the first touch detection frame and the time interval between the third touch detection frame and the first touch detection frame is less than the first time length.

[0008] In the above embodiment, the third touch detection frame may be the touch detection frame 3 involved in the following embodiment.

[0009] The terminal will lower the reporting threshold only when at least two consecutive touch events are detected. Compared with lowering the threshold once a touch event is detected, the start of the touch can be identified more accurately.

[0010] In combination with the first aspect, in some embodiments, the method also includes: if the temperature of the capacitive touch screen is low when the screen is on and the reporting threshold is equal to the first threshold, controlling the reporting threshold to remain unchanged; when it is detected that the difference between the real-time capacitance and the reference capacitance of the touch unit in the second touch detection frame is greater than the reporting threshold, determining that there is a touch event on the capacitive touch screen in the second touch detection frame.

[0011] In the above embodiment, after a touch event is detected, if the reporting threshold is already the low temperature reporting threshold (first threshold), it means that the reporting threshold here can adapt to the temperature change of the touch unit and does not need to be changed.

[0012] In combination with the first aspect, in some embodiments, the method also includes: when it is detected that the difference between the real-time capacitance of the touch unit in the fourth touch detection frame and the reference capacitance is less than the lowered reporting threshold, determining that there is no touch event on the capacitive touch screen in the fourth touch detection frame; the start time of the fourth touch detection frame is continuous with the end time of the second touch detection frame.

[0013] In the above embodiment, the fourth touch detection frame may be the touch detection frame 4 involved in the following embodiment. After the reporting threshold is lowered, the tolerance difference on the touch unit after the temperature is increased may be greater than the lowered reporting threshold, so that the terminal detects a touch event on the touched touch unit (after the temperature is increased).

[0014] In combination with the first aspect, in some embodiments, the method also includes: the terminal counts W consecutive touch detection frames in which there is a touch event before the fourth touch detection frame; determines a first touch unit in which a touch event exists in the W touch detection frames; wherein the W touch detection frames include at least the first touch detection frame and the second touch detection frame; determines the touched control in the capacitive touch screen based on the position of the first touch unit on the capacitive touch screen, and determines the touch type on the control based on the total duration of the W touch detection frames.

[0015] In the above embodiment, there is no touch event in touch detection frame 4, indicating that the touch is over. The terminal can count the touch units that have touch events before touch detection frame 4 and touch events in consecutive touch detection frames, and then determine the touch type. The touch type is obtained by the terminal by adjusting the reporting threshold, and the result is accurate.

[0016] In combination with the first aspect, in some embodiments, when it is determined that there is no touch event on the capacitive touch screen within the fourth touch detection frame, the method further includes: restoring the lowered reporting threshold to the reporting threshold before the reduction; detecting whether there is a difference between the real-time capacitance of the touch unit in the fifth touch detection frame and the reference capacitance that is greater than the restored reporting threshold; wherein the start time of the fifth touch detection frame is continuous with the end time of the fourth touch detection frame.

[0017] In the above embodiment, after determining that the touch is ended, the terminal may restore the reporting threshold to the default reporting threshold, so that the next touch detection is not interfered by noise signals.

[0018] In combination with the first aspect, in some embodiments, after the screen is turned on, the method also includes: when it is determined that the first threshold is less than the maximum noise tolerance difference associated with the low temperature, setting the initial value of the reporting threshold to a second threshold greater than the first threshold; wherein the maximum noise tolerance difference is the maximum tolerance difference between the real-time capacitance on each touch unit and the reference capacitance when the capacitive touch screen is not touched at the low temperature.

[0019] In the above embodiment, when the first threshold is greater than the maximum noise tolerance difference associated at the low temperature, the terminal will not set the initial value of the reporting threshold to the default reporting threshold in the first touch detection frame or in the first touch detection frame, but will set the initial value of the reporting threshold to the low temperature reporting threshold associated at the low temperature. The terminal can always use the low temperature reporting threshold after the screen is turned on and before the screen is turned off. In this way, it is possible to simplify the touch event detection process without being interfered by noise signals. Because the low temperature reporting threshold associated with the screen temperature (low temperature) when the screen is on is greater than the maximum noise tolerance difference generated at the low temperature, after setting the reporting threshold to the low temperature reporting threshold, the terminal will not recognize the noise tolerance difference generated when there is no touch as a tolerance difference greater than the reporting threshold, and then determine that there is a touch event on the screen.

[0020] In combination with the first aspect, in some embodiments, the reporting threshold is reduced to a level greater than or equal to the first threshold, specifically including: reducing the reporting threshold Q times to the first threshold; Q is an integer greater than 1, and Q / 2 is less than the average duration of a single press divided by the duration of a single touch detection frame; detecting that the difference between the real-time capacitance of the touch unit in the second touch detection frame and the reference capacitance is greater than the reporting threshold after the reduction, specifically including: detecting that the difference between the real-time capacitance of the touch unit in the kth touch detection frame in the second touch detection frame and the reference capacitance is greater than the reporting threshold after the kth reduction, and detecting that the difference between the real-time capacitance of the touch unit in the touch detection frame after the Qth touch detection frame in the second touch detection frame and the reference capacitance is greater than the reporting threshold after the Qth reduction; wherein the value of k ranges from 1 to Q.

[0021] In the above embodiment, for lowering the reporting threshold to the low temperature reporting threshold associated with low temperature, the terminal can gradually lower the reporting threshold from the default reporting threshold to the low temperature reporting threshold, rather than directly lowering it from the default reporting threshold to the low temperature reporting threshold. Because after the screen is touched, the temperature of the touched part gradually rises, gradually lowering the reporting threshold here is conducive to adapting to the phenomenon of gradually rising temperature, reducing the possibility of being interfered by noise signals.

[0022] In combination with the first aspect, in some embodiments, when the screen of the terminal is turned on, the method further includes: obtaining the temperature of the capacitive touch screen when the screen is turned on based on the temperature collected by the first temperature sensor in the terminal when the screen is turned on; wherein the distance between the first temperature sensor and the chip system of the terminal is greater than a preset distance.

[0023] In the above embodiment, the temperature measured by the temperature sensor when the chip system is heated is not suitable as the screen temperature. Here, the temperature measured by a temperature sensor far away from the chip system is selected as the temperature of the terminal when the screen is on, which is conducive to more accurate measurement of the temperature of the terminal when the screen is on.

[0024] In combination with the first aspect, in some embodiments, the lower the low temperature is, the lower the first threshold associated with the low temperature is.

[0025] The relationship between the temperature and the first threshold involved in the above embodiments is obtained in practice. Adjusting the value of the first threshold based on the value of the low temperature is conducive to enabling the terminal to accurately detect touch events at different low temperatures.

[0026] In combination with the first aspect, in some embodiments, after the reporting threshold is reduced to a level greater than or equal to the first threshold, the method further includes: when there is no touch event in the fourth touch detection frame and the number of fourth touch detection frames reaches a preset number of frames, the terminal restores the lowered reporting threshold to the reporting threshold before the reduction; the start time of the fourth touch detection frame is continuous with the end time of the second touch detection frame; the preset number of frames is greater than the average touch interval duration of double-clicking the capacitive touch screen divided by the duration of a single touch detection frame and is less than the average duration of double-clicking the capacitive touch screen divided by the duration of a single touch detection frame; detecting whether there is a difference between the real-time capacitance of the touch unit in the fifth touch detection frame and the reference capacitance that is greater than the restored reporting threshold; wherein the start time of the fifth touch detection frame is continuous with the end time of the fourth touch detection frame.

[0027] In the above embodiment, the touch detection frame 4 may not be the first touch detection frame after the touch ends, but includes F touch detection frames after the touch ends. In this way, continuous click operations (such as double-click operations) on the same control or frequent click operations on the same control in a short period of time can be more accurately identified.

[0028] In combination with the first aspect, in some embodiments, when there is no touch event in the fourth touch detection frame, the first threshold is less than the maximum noise tolerance difference associated with the low temperature, and the number of fourth touch detection frames reaches a preset number of frames, the terminal restores the lowered reporting threshold to the reporting threshold before the reduction; the start time of the fourth touch detection frame is continuous with the end time of the second touch detection frame; the preset number of frames is greater than the average touch interval duration of double-clicking the capacitive touch screen divided by the duration of a single touch detection frame and is less than the average duration of double-clicking the capacitive touch screen divided by the duration of a single touch detection frame; detect whether there is a real-time capacitance of the touch unit in the fifth touch detection frame and the reference capacitance The tolerance difference is greater than the restored reporting threshold; wherein the start time of the fifth touch detection frame is continuous with the end time of the fourth touch detection frame.

[0029] In the above embodiment, in addition to the solution of restoring the reporting threshold only when there is no touch event in touch detection frame 4 and touch detection frame 4 is a multi-frame touch detection frame, a new recovery condition is added here, that is, the lowered reporting threshold is less than the maximum noise tolerance associated at low temperature. In this way, if the lowered reporting threshold is greater than the maximum noise tolerance associated at low temperature, the lowered reporting threshold can be used after the reporting threshold is lowered. In the case of simplifying the touch event detection process, it is not interfered by noise signals.

[0030] In a second aspect, an embodiment of the present application provides a terminal, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the terminal to execute the method implemented in the first aspect.

[0031] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a terminal, causes the terminal to execute the method implemented in the first aspect.

[0032] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to a terminal. The chip system includes one or more processors, and the processor is used to call computer instructions so that the terminal executes the method implemented in the first aspect.

[0033] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a terminal, enables the terminal to execute the method implemented in the first aspect.

[0034] It is understandable that the terminal provided in the second aspect, the computer storage medium provided in the third aspect, the chip system provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, other beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 is a schematic flow chart of detecting a touch event in an embodiment of the present application;

[0036] Figure 2 An exemplary touch unit structure in a screen is shown;

[0037] Figure 3 An exemplary schematic diagram of detecting a touch event based on a touch unit is shown;

[0038] Figure 4An exemplary schematic diagram of detecting a touch event based on a touch unit when the temperature changes is shown;

[0039] Figure 5 Another exemplary schematic diagram is shown in which a touch event is detected based on a touch unit when the temperature changes;

[0040] Figure 6 A schematic diagram showing adjustment of the reporting threshold is shown;

[0041] Figure 7 Another schematic diagram of adjusting the reporting threshold is shown;

[0042] Figure 8 Another schematic diagram showing the adjustment of the reporting threshold in combination with the preset frame number;

[0043] Fig. 9 A schematic diagram showing the determination of low temperature alarm thresholds and maximum noise tolerance differences associated with different temperatures is shown;

[0044] Fig.10 A schematic diagram showing a touch tolerance difference and a noise tolerance difference is shown;

[0045] Fig.11 A schematic flow chart of a touch detection method in an embodiment of the present application is shown;

[0046] Fig.12 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION

[0047] In one solution, the terminal does not detect whether there is a touch event on the screen when the screen is off. After the screen is turned on, the terminal will detect whether there is a touch event on the screen at a certain detection frequency (for example, 120 Hz or 60 Hz, etc.). The detection process includes: the terminal selects the capacitance (capacitance value) of each touch unit in the first touch detection frame after the screen is turned on as the reference capacitance (baseline) of each touch unit. Then, if the difference between the real-time capacitance (rawdata) and the reference capacitance of a touch unit in a subsequent touch detection frame is greater than a preset reporting threshold, a touch event exists in the subsequent touch detection frame. The touch unit (touch unit 1) that generates a touch event is a touch unit whose difference between the real-time capacitance and the reference capacitance is greater than the preset reporting threshold. The difference between the real-time capacitance and the reference capacitance of other touch units other than touch unit 1 in subsequent touch detection frames is less than the preset reporting threshold, and the terminal determines that no touch event has occurred on the other touch units.

[0048] For details on the process, please refer to the following Figure 1 Description of steps S1 to S6 in .

[0049] S1. In response to the screen-on operation, the terminal switches from the screen-off state to the screen-on state.

[0050] After the screen is turned on, the terminal can detect whether there is a touch event on the screen according to the detection frequency.

[0051] The detection frequency refers to the number of times the terminal detects whether a touch event occurs within 1 second. For example, if the detection frequency is 120 Hz, the terminal will detect touch events 120 times within 1 second.

[0052] S2. The terminal obtains the capacitance value (reference capacitance value) of each touch unit in the screen in the first touch detection frame after the screen is turned on.

[0053] The first touch detection frame is the time for the first touch event detection after the screen is turned on. The duration of a touch detection frame is equal to or close to the reciprocal of the detection frequency. The terminal can complete a touch event detection within a touch detection frame. For example, at a detection frequency of 120hz, the time for the terminal to perform a touch detection is 1 / 120.

[0054] like Figure 2 As shown, the touch units are distributed in the screen in the form of an array. The touch unit array may include touch units in X rows and Y columns. A single touch unit may include a panel 1 formed by a transmitting end electrode line and a panel 2 formed by a receiving end electrode line, and the panel 2 is coupled to the panel 1. Figure 2 The transmitting electrode lines of the touch units in the same column are coupled to receive the pulse signal output by the touch detection chip according to the detection frequency.

[0055] The terminal detects the capacitance of each touch unit through the pulse signal output by the touch detection chip. The process includes: the touch detection chip needs to output a pulse signal to the transmitting electrode line of each column of touch units in the first touch detection frame, so that the panel 1 on each column of touch units coupled with the transmitting electrode line generates charges. The panels 1 that generate charges in each touch unit act as the transmitting end (transmit, TX) to transmit the electric energy generated by the movement of the charges to the panel 2 coupled with the panel 1. At this time, the panel 2 acts as the receiving end (receive, RX) to receive the electric energy and form a current output to the touch detection chip, so that the terminal determines the capacitance of each touch unit in the first touch detection (for example, the first touch detection) through the current received by the touch detection chip in the touch detection frame (for example, the first touch detection).

[0056] The terminal uses the capacitance value of each touch unit detected in the first touch detection frame as the reference capacitance value of each touch unit, and compares the capacitance value (real-time capacitance value) of each touch unit in the subsequent touch detection frame with the reference capacitance value to see whether it changes, and further determines whether there is a touch event in the subsequent touch detection frame, and the specific touch unit where the touch event occurs (equivalent to locating the touch position). For details of the process, please refer to the description of step S3, step S4, step S5a and step S5b below.

[0057] It should be noted that the reason why the capacitance of each touch unit in the first touch detection frame is used as the reference capacitance is that the terminal starts to detect whether there is a touch event on the screen according to the detection frequency after the screen is turned on. Generally speaking, there is no touch event on each touch unit in the first touch detection frame. Therefore, when the capacitance of each touch unit in the first touch detection frame is used as the reference capacitance, once a touch event occurs on the touch unit in a subsequent touch detection frame, the capacitance (real-time capacitance) of the touch unit will change. When the change reaches the preset reporting threshold, the terminal detects a touch event.

[0058] It should also be noted that the touch unit array can be specifically distributed in the sensing electrode layer in the screen. A transparent conductive layer is also provided on the sensing electrode layer in the screen. The transparent conductive layer is located on the surface of the screen and is used to contact with the user's finger. Figure 3 As shown, in the subsequent touch detection frame, after the panel 1 and panel 2 on the touch unit form a capacitor due to the pulse signal, when the user's finger touches the transparent conductive layer above the touch unit, the user's finger will absorb part of the charge on the touched touch unit through the transparent conductive layer, thereby changing the capacitance on the touched touch unit, so that the real-time capacitance value (for example, 3000) on the touched touch unit changes compared with the reference capacitance value (for example, 3900) in the first touch detection frame, and the change will be reflected in the current output by the touched touch unit to the touch detection chip. The touch detection chip will detect the capacitance change through the current output by the touch detection unit, and detect the touch event and locate the touch position when the capacitance change is greater than the preset reporting threshold. The touch detection chip reports the touch event to the system chip (for example, SOC or central processing unit), so that the terminal can recognize the user's touch event based on the system chip, and then respond to the touch event.

[0059] It should be noted here that, in order to simplify the description, the user's finger touching the transparent conductive layer above the touch unit can be described as the user's finger touching the touch unit. Touching the touch unit here can also be understood as: the contact area of ​​the finger touching the transparent conductive layer on the transparent conductive layer can be projected into the touch unit. The contact area of ​​the finger touching the transparent conductive layer on the transparent conductive layer can be projected into at least one touch unit.

[0060] S3. Obtain the real-time capacitance value of each touch unit on the screen in the i-th touch detection frame, where i is initially 2.

[0061] After obtaining the reference capacitance of each touch unit on the screen in the first touch detection frame, the terminal enters the subsequent touch detection frame according to the detection frequency to obtain the real-time capacitance of each touch unit in the subsequent touch detection frame. The subsequent touch detection frame includes the touch detection frame starting from the second touch detection frame until the terminal turns off the screen.

[0062] Here, the subsequent touch detection frame is taken as the i-th touch detection frame as an example for explanation. The process of the terminal obtaining the real-time capacitance value of each touch unit on the screen in the i-th touch detection frame is the same as the process of the terminal obtaining the reference capacitance value of each touch unit on the screen in the first touch detection frame in the aforementioned step S2. You can refer to the aforementioned related content and will not repeat it here.

[0063] S4. Whether there is a difference between the real-time capacitance value of the touch unit and the reference capacitance value that is greater than a preset reporting threshold.

[0064] The terminal determines whether there is a difference between the real-time capacitance value and the reference capacitance value of the touch unit in the i-th touch detection frame that is greater than a preset reporting threshold.

[0065] If the difference between the real-time capacitance value of the non-touch unit and the reference capacitance value is greater than the preset reporting threshold, the following step S5b is executed to determine that there is no touch event in the i-th touch detection frame.

[0066] If the difference between the real-time capacitance value and the reference capacitance value of the touch unit is greater than the preset reporting threshold, it is determined that a touch event exists in the i-th touch detection frame, and the following step S5a is executed.

[0067] S5a. Determine whether a touch event occurs on the screen in the i-th touch detection frame.

[0068] The terminal determines that a touch event occurs on the screen in the i-th touch detection frame, and determines the touch unit where the touch event occurs in the i-th touch detection frame. The touch unit whose content value difference of the i-th touch detection frame is greater than a preset reporting point threshold is the touch unit where the touch event occurs in the i-th touch detection frame.

[0069] Subsequently, the terminal may use the position of the touch unit whose content value difference of the i-th touch detection frame is greater than the preset reporting threshold as the position where the touch event is generated, so that the terminal can subsequently determine the touched control based on the position of the touch event and respond to the touch operation.

[0070] S5b. Determine whether there is no touch event on the screen in the i-th touch detection frame.

[0071] S6. Whether to turn off the screen.

[0072] If the screen is off, the terminal stops touch detection.

[0073] If the screen is not turned off, the terminal sets i=i+1 and continues to execute step S3. This means that the terminal will enter the next touch detection frame according to the detection frequency to determine whether there is a touch event in the next touch detection frame.

[0074] It should be noted that when the difference between the real-time capacitance value and the reference capacitance value of the touch unit is equal to the preset reporting threshold, it can be considered that there is a touch event on the touch unit, or it can be considered that there is no touch event on the touch unit. This embodiment of the application is not limited to this.

[0075] In the aforementioned scheme, the capacitance of the touch unit is considered to have changed due to the presence of a touch event only when the difference between the real-time capacitance and the reference capacitance of the touch unit is greater than the preset reporting threshold. However, the aforementioned scheme does not take into account the impact of the change in screen temperature after the screen is turned on on the change in capacitance. As a result, when the screen temperature is too low when the screen is turned on, the problem of failure to detect touch events will occur later. That is, when the screen temperature is low, after the terminal triggers the screen to be turned on, in the subsequent touch detection frames, even if there is a touch event, the difference between the real-time capacitance and the reference capacitance of the touched touch unit will not be greater than the preset reporting threshold, and thus the touch event cannot be detected.

[0076] Here, low temperature includes temperatures around 0°C and below, such as -10°C.

[0077] When the screen temperature is too low when the screen is on, the reasons for the subsequent failure of touch event detection include: Generally speaking, in the same touch detection frame, the higher the temperature of the touch unit, the greater the capacitance value on the touch unit in the touch detection frame. In other words, the higher the temperature of the screen, the greater the capacitance value on each touch unit in the screen. Here, the temperature of the screen is the temperature of the entire screen. If the screen is not touched or squeezed by external factors, then it can be regarded as the temperature of each touch unit in the screen is equal to or close to the temperature of the screen.

[0078] like Figure 4As shown, a single touch unit is used as an example for explanation, and the temperature changes of other touch units can refer to the relevant description. When the screen temperature is low and the screen is triggered to light up, the reference capacitance of the touch unit at low temperature will be measured in the first touch detection frame, for example, 3900. In the subsequent touch detection frame, if the user does not touch the touch unit, the temperature on the touch unit remains unchanged compared with the first touch detection frame, then the real-time capacitance of the touch unit can be equal to or close to the reference capacitance, for example, still 3900. If the user touches the touch unit, at the beginning of the touch, the touch unit is usually still at a low temperature. At this time, part of the charge on the touch unit (for example, the voltage corresponding to the capacitance difference of 3900-3000) is absorbed by the user's finger, then the real-time capacitance of the touch unit at the beginning of the touch will decrease, for example, to 3000. Then the capacitance difference (3900-3000) between the reference capacitance of the touch unit and the real-time capacitance at the beginning of the touch will be greater than the preset reporting threshold (for example, 400), and the terminal can detect the touch event occurring on the touch unit at the initial touch. However, a single touch of the screen by the user usually lasts for the duration of multiple touch detection frames, and the multiple touch detection frames include the initial detection frame of the touch initialization mentioned above, and may also include touch detection frames after the touch initialization. After the touch initialization, as the user continues to touch the touch unit, the user's finger will generate heat transfer with the touch unit, so that the touch unit absorbs the temperature of the finger and the temperature of the touch unit increases. Then the temperature of the touch unit will rise. Compared with the touch initialization, in the case of the same touch event, the real-time capacitance value on the touch unit in the subsequent touch will increase due to the temperature increase, for example, to 3600. Then the capacitance difference between the reference capacitance value of the touch unit and the real-time capacitance value of the touch initialization (3900-3600) will be less than the preset reporting threshold (for example, 400), and the terminal will not detect the touch event occurring on the touch unit during the initial touch.

[0079] The foregoing Figure 4 The example of the change in capacitance of a single touch unit when touching the screen is used for illustration. In fact, when the user touches the screen, the user's finger can touch at least one touch unit, and part of the charges on the touched touch unit and some of the touch units around it can be absorbed by the user's finger, so that the capacitance of the multiple touch units will change, and the terminal determines that there are touch events on the multiple touch units. At the same time, the touched touch unit and some of the touch units around it will also generate heat transfer with the user's finger.

[0080] like Figure 5As shown, the screen is triggered to light up when the screen temperature is low. When the user touches the screen, the touch units e and f are touched. The touch units whose capacitance changes may include the touch units in the screen area of ​​4*3 channels, including touch units a-touch units l. Here, the screen area of ​​4*3 channels may be touch units with 4 rows and 3 columns. At the beginning of the touch, the touched part is still at a low temperature. At this time, the difference between the real-time capacitance of touch unit a-touch unit l and the reference capacitance in the first touch detection frame (tolerance difference 1) is greater than the preset reporting threshold (for example, 400), and the terminal can detect the touch event. As the user continues to touch, the heat on the user's finger is transferred to touch unit a-touch unit l, so that the temperature of touch unit a-touch unit l rises and is no longer at a low temperature. At this time, although there is a touch event on touch unit a-touch unit l, the difference between the real-time capacitance of touch unit a-touch unit l and the reference capacitance in the first touch detection frame (tolerance difference 2) is less than the preset reporting threshold (for example, 400), and the terminal does not detect the touch event. The reason why there is a touch event on touch unit a-touch unit l but the tolerance difference 2 is less than the preset reporting threshold can be referred to the above Figure 4 and a description of its related content.

[0081] Subsequently, the terminal determines the position of each touch unit whose capacitance value changes greater than the preset reporting threshold value in the screen. Then the control included at the position is taken as the control touched by the user. If the position includes multiple controls, the control touched by the user is determined by some screening conditions, and the screening conditions include but are not limited to: the larger the value of the area of ​​the control belonging to the position divided by the area of ​​the control not belonging to the position, the more likely the control is the control touched by the user. Or, the control at the position of the touch unit with the largest capacitance value change is the control touched by the user. At the same time, the terminal also calculates the time when the capacitance value change of the touch unit is greater than the preset reporting threshold value, that is, the time when the touch event continues to occur. Based on the time, it is determined whether there is a touch operation and the type of touch operation. For example, when the time is greater than the preset time 1, it is determined that the touch event continues to occur and thus forms a touch operation. If the time is short (greater than the preset time 1 and less than the preset time 2), the touch operation type is a click operation, and if the time is long (greater than the preset time 2), the touch operation type is a long press operation. The time can be equal to or close to the number of touch detection frames for which the capacitance value change of the touch unit is greater than the preset reporting threshold value multiplied by the duration of a single touch detection frame.

[0082] However, when the screen is on, the screen temperature is too low, which causes the subsequent touch event detection to fail, which further causes the terminal to fail to recognize the user's touch operation or to misidentify the user's touch operation type. Among them, the recognition error includes recognizing a long press operation as a click operation, recognizing a double-click operation as a single click operation, etc.

[0083] The reasons for not being able to recognize touch operations or being recognized incorrectly include: Figure 4 and Figure 5 From the description of the related contents, it can be known that when the screen temperature is too low when the screen is on, when the user's finger touches the screen, the terminal can only detect the touch event before the temperature of the touch point and its surroundings rises, that is, the touch event of the initial touch mentioned above can be detected, then the time for the touch event detected by the terminal to continue to occur will be less than the time for the touch event to actually continue to occur. The time for the touch event detected by the terminal to continue to occur is shorter than the actual time. This smaller time will lead to the inability to recognize the user's touch operation or the wrong recognition of the user's touch operation type. For example, if it is smaller than the preset time 1 mentioned above, the click operation will not be recognized. If it is smaller than the preset time 2 mentioned above but greater than the preset time 1, the long press operation will be recognized as a click operation.

[0084] In order to solve the problem of failure to detect touch events in the future due to low screen temperature when the screen is on, a touch detection method is proposed. In this touch detection method, after the screen is turned on and before the screen is turned off, the terminal detects whether there is a touch event on the screen according to the detection frequency. The process can be referred to Figure 6 As shown, including: before the first touch detection frame or within the first touch detection frame (for example, see Figure 6 In the figure, i=1), the terminal sets the initial value of the reporting threshold as the default reporting threshold. Entering the first touch detection frame, the terminal obtains the capacitance of each touch unit in the screen in the first touch detection frame as a reference capacitance. In subsequent touch detection frames, whether there is a touch event in the screen is determined based on whether the capacitance difference between the reference capacitance and the real-time capacitance is greater than the reporting threshold. In subsequent touch detection frames, the terminal can adjust the reporting threshold to adapt to temperature changes. For example, if the touch starts, the reporting threshold is lowered to the low-temperature reporting threshold associated with the low temperature. If the touch ends, the reporting threshold is restored to the default reporting threshold until the next touch starts, and then the reporting threshold is lowered again to the low-temperature reporting threshold associated with the low temperature. Among them, the default reporting threshold takes into account some common scenarios and is a reporting threshold that can be used under non-low temperature conditions. For example, the preset reporting threshold mentioned above is a default reporting threshold.

[0085] The initial value of the reporting threshold is the value of the first reporting threshold enabled after the screen is turned on.

[0086] It should be noted that after the reporting threshold is set to the default reporting threshold, the touch detection frames after the first touch detection frame (for example, see Figure 6 If no touch operation is detected, the reporting threshold is kept at the default reporting threshold.

[0087] It should also be noted that here, when it is determined that the screen temperature when the screen is on is low temperature, the reporting threshold is not directly set to the low temperature reporting threshold associated with low temperature, in order to prevent the reporting threshold from being easily interfered by noise signals when it is too low (low temperature reporting threshold). In actual situations, the reporting threshold can also be directly set to the low temperature reporting threshold associated with low temperature when it is determined that the screen temperature when the screen is on is low temperature.

[0088] The noise signal can cause the touch unit to generate a tolerance difference greater than the low temperature reporting threshold in a non-touch scenario, thereby causing the terminal to mistakenly detect a touch event when there is no touch. Fig. 9 as well as Fig.10 The description is not repeated here.

[0089] First, the related contents of lowering the reporting point threshold are described.

[0090] The opportunities for lowering the reporting threshold include but are not limited to the following opportunities.

[0091] Lowering timing 1: When a touch event is detected in touch detection frame 1 and the reporting threshold is not the low temperature reporting threshold, the reporting threshold is lowered to the low temperature reporting threshold. The presence of a touch event in touch detection frame 1 is determined based on the reporting threshold before the reduction, and the reporting threshold after the reduction can be enabled in touch detection frames after touch detection frame 1.

[0092] like Figure 6 As shown, before the first touch detection frame or in the first touch detection frame, the reporting threshold is set to the default reporting threshold. In subsequent touch detection frames, once a touch is started, the terminal can detect the touch detection frame 1 after the touch starts (for example, see Figure 6 In the case where there is a touch event in the touch detection frame 1 (i=3), if the reporting threshold is not equal to the low temperature reporting threshold associated with the low temperature, the terminal lowers the reporting threshold to the low temperature reporting threshold associated with the low temperature. Figure 6 In the touch detection frame 1, i=4 and some touch detection frames thereafter) can enable the lowered reporting threshold (low temperature reporting threshold). In this way, as the user continues to touch, even if the touched touch unit is heated up in touch detection frame 2, the difference between the real-time capacitance and the reference capacitance in touch detection frame 2 can be greater than the low temperature reporting threshold, so that the terminal detects the touch event on the touch unit with heated up. At this time, touch detection frame 1 is the first touch detection frame after the touch starts.

[0093] Lowering timing 2: In order to allow the terminal to more accurately identify the start of touch, when a touch event is detected in touch detection frame 1, the terminal will further determine whether there is a touch event in touch detection frame 3 before the touch detection frame. If there is a touch event in touch detection frame 3 and the reporting threshold is not equal to the low temperature reporting threshold associated with low temperature, the terminal will lower the reporting threshold to the low temperature reporting threshold associated with low temperature. If there is no touch event in touch detection frame 3, the terminal will not lower the reporting threshold.

[0094] Here, touch detection frame 3 is a touch detection frame or multiple consecutive touch detection frames before touch detection frame 1. And the time interval between touch detection frame 3 and touch detection frame 1 is less than duration 1. The duration 1 is less than 80% of the average duration of a single press. At this time, if Figure 7 As shown, the touch detection frame 1 is not Figure 6 The first touch detection frame after the touch starts shown in FIG. Figure 7 ) may be the second frame after the touch starts.

[0095] In this way, the terminal considers that the user starts to touch the screen only when both touch detection frame 1 and touch detection frame 3 detect touch events, which is more accurate than considering that the user starts to touch the screen only based on the touch event detected in touch detection frame 1. Because the real-time capacitance of the touch unit in touch detection frame 1 is greater than the reference capacitance, it may be because a noise tolerance difference is generated in touch detection frame 1, not because the user is touching the screen, but the possibility of noise tolerance difference in two or more consecutive frames is smaller than the possibility of noise tolerance difference in a single frame.

[0096] In some possible cases, for lowering the reporting threshold to the low temperature reporting threshold associated with low temperature, the terminal can gradually lower the reporting threshold from the default reporting threshold to the low temperature reporting threshold, rather than directly lowering it from the default reporting threshold to the low temperature reporting threshold. The process specifically includes: lowering the reporting threshold Q times to the low temperature reporting threshold. Q is an integer greater than 1, and Q / 2 is less than the average duration of a single press divided by the duration of a single touch detection frame. At this time, the aforementioned detection of the presence of a touch unit in touch detection frame 2, where the tolerance difference between the real-time capacitance value and the reference capacitance value is greater than the lowered reporting threshold, specifically includes: detecting that the presence of a touch unit in the kth touch detection frame in touch detection frame 2 has a tolerance difference between the real-time capacitance value and the reference capacitance value greater than the kth lowered reporting threshold, and detecting that the presence of a touch unit in the touch detection frame after the Qth touch detection frame in touch detection frame 2 has a tolerance difference between the real-time capacitance value and the reference capacitance value greater than the Qth lowered reporting threshold. Wherein, the value of k ranges from 1 to Q.

[0097] Because after the screen is touched, the temperature of the touched part gradually rises, and gradually lowering the reporting threshold here is conducive to adapting to the phenomenon of gradually rising temperature and reducing the possibility of interference by noise signals.

[0098] It should be noted here that the above-mentioned average duration of a single press can be obtained by calculating the average duration of multiple users pressing the screen in a single time. The average duration can be a parameter built into the terminal, or it can be obtained by calculating the average of the duration of multiple single presses of the screen by the terminal after leaving the factory.

[0099] Then the related contents of the recovery reporting point threshold are described.

[0100] The timing for restoring the reporting point threshold includes but is not limited to the following restoration timings.

[0101] Recovery time 1: Continue to refer to Figure 6 and Figure 7 , as the touch ends, the terminal can detect that the difference between the real-time capacitance value and the reference capacitance value in the touch detection frame 4 after the touch ends is less than the reduced reporting threshold (low temperature reporting threshold). Then, the terminal can restore the reporting threshold to the default reporting threshold. And the default reporting threshold is enabled in the touch detection frame after the touch detection frame 4 (touch detection frame 5) until the next touch detection frame 1 ( Figure 6 or Figure 7 The jth touch detection frame in the ) appears, and then the default reporting threshold is reduced to the low temperature reporting threshold. Figure 6 and Figure 7 As shown in , the touch detection frame 4 may be the first touch detection frame after the touch ends.

[0102] Furthermore, the terminal counts the W consecutive touch detection frames in which a touch event exists before the touch detection frame 4. A touch unit 1 in which a touch event exists in all the W touch detection frames is determined. The W touch detection frames include at least the touch detection frame 1 and the touch detection frame 2. Then, the touched control on the screen is determined based on the position of the touch unit 1 on the screen, and the touch type on the control is determined based on the total duration of the W touch detection frames.

[0103] It should be noted that the start time of the touch detection frame 5 is continuous with the end time of the touch detection frame 4. Continuous means that there is no other touch detection frame between the start time of the touch detection frame 5 and the end time of the touch detection frame 4.

[0104] It should also be noted that the terminal determines that there is a touch event in touch detection frame 5 only when the default reporting threshold is enabled at the beginning of touch detection frame 5, that is, the difference between the real-time capacitance value and the reference capacitance value in touch detection frame 5 is greater than the default reporting threshold.

[0105] Recovery time 2: In order to more accurately identify continuous click operations (such as double-click operations) on the same control or frequent click operations on the same control in a short period of time. Touch detection frame 4 may not be the first touch detection frame after the touch ends. Instead, it includes F touch detection frames after the touch ends. That is, when there is no touch event in touch detection frame 4 and the number of touch detection frames 4 reaches F frames, the terminal will restore the reporting threshold to the default reporting threshold. Among them, F is the preset number of frames, F is greater than the average touch interval duration of double-clicking the screen divided by the duration of a single touch detection frame and less than the average duration of double-clicking the screen divided by the duration of a single touch detection frame. Among them, the average duration of double-clicking the screen can be obtained by taking the average of the durations of double-clicking the screen by multiple users. The average duration can be a parameter built into the terminal, or it can be obtained by collecting the durations of multiple double-clicking the screen after the terminal leaves the factory and taking the average. The average touch interval duration of the double-clicking the screen refers to the duration between the end of the first touch and the start of the second touch. The average touch interval duration of the double-clicking the screen can also refer to the description of the average duration of the double-clicking the screen, which will not be repeated here.

[0106] like Figure 8 As shown, the user double-clicks the control at position 1 on the screen. When position 1 is touched for the first time, the terminal detects a touch event and lowers the reporting threshold so that the value of the reporting threshold changes from the default reporting threshold to the low-temperature reporting threshold. As the first touch to position 1 ends, the terminal can detect that the difference between the real-time capacitance value and the reference capacitance value in the touch detection frame 4 after the touch ends is less than the lowered reporting threshold (low-temperature reporting threshold). When the touch detection frame 4 does not reach the preset number of frames, the terminal does not restore the reporting threshold. In this way, when the user touches position 1 again, due to the short interval with the first touch to position 1, the temperature of the touch unit at position 1 that rises when position 1 is first touched has not dropped to a low temperature. At this time, the touch event can still be detected by adopting the lowered reporting threshold. However, if the method in recovery opportunity 1 is adopted to restore the reporting threshold to the default reporting threshold in the first touch detection frame 4, the problem of not being able to detect the touch event when the user touches position 1 again will occur. Because the touch unit at position 1 is still at a higher temperature (compared to the bright screen) when position 1 is touched again, the aforementioned Figure 4 and Figure 5 The problem of failed touch event detection involved in will occur again.

[0107] It should be noted that this is for the case where the screen temperature is low when the screen is on. Different low temperatures can be associated with different low temperature reporting thresholds. The terminal records the low temperature reporting thresholds associated with different low temperatures, and the low temperature reporting thresholds associated with different low temperatures are different. Generally speaking, the lower the temperature, the lower the associated low temperature reporting threshold. Low temperature can be a temperature value or a temperature range. For example, the low temperature reporting threshold associated with -10℃ or 0℃ to -10℃ is 200, and the low temperature reporting threshold associated with -20℃ or -10℃ to -20°C is 100.

[0108] In some possible cases, the low temperature reporting thresholds associated with different temperatures are obtained through data statistics. For relevant content on determining the low temperature reporting thresholds associated with different temperatures, please refer to the following Fig. 9 Steps S11 to S13 involved.

[0109] S11. Collect the touch tolerance difference and noise tolerance difference after heating at different low temperatures.

[0110] The temperature rise is caused by touch. After the temperature rises, continue to touch the heated touch unit, measure the capacitance difference at this time, and use it as the touch capacitance difference. Repeat this operation at different low temperatures to obtain multiple touch capacitance differences corresponding to different temperatures.

[0111] When the screen is not touched, the tolerance difference generated by the touch unit at low temperature when not touched is counted as the noise tolerance difference. This operation can be repeated at different low temperatures to obtain multiple noise tolerance differences corresponding to different temperatures.

[0112] The number of the multiple touch tolerance differences involved in step S11 is relatively large, for example, thousands or tens of thousands of levels of data, which is not limited in the embodiment of the present application.

[0113] S12. Setting low temperature reporting thresholds associated with different low temperatures.

[0114] Based on a plurality of touch tolerance differences and a plurality of noise tolerance differences measured at different low temperatures, low temperature reporting point thresholds associated with each low temperature are determined respectively.

[0115] Here, the low temperature reporting point threshold associated with low temperature 1 is taken as an example for explanation.

[0116] The touch tolerance difference (touch tolerance difference 1) that meets the requirements among the multiple touch tolerance differences corresponding to low temperature 1 is used as the low temperature reporting threshold associated with low temperature 1. The requirements that the touch tolerance difference 1 needs to meet may include requirement 1 and requirement 2.

[0117] Requirement 1 includes: the touch tolerance difference 1 is greater than the target number of noise tolerance differences among the multiple noise tolerance differences corresponding to low temperature 1, which means that the touch tolerance difference 1 needs to be as large as possible from the noise tolerance value corresponding to low temperature 1. The target number of noise tolerance differences is more than 80% of the noise tolerance differences among the multiple noise tolerance differences corresponding to low temperature 1. 80% is an example, and it can actually be other values ​​such as 70% or 90%. Requirement 2 includes: the touch tolerance difference 1 is less than the other touch tolerance differences that meet requirement 1 among the multiple touch tolerance differences associated with low temperature 1 except the touch tolerance difference 1.

[0118] For example, refer to Fig.10 , shows an exemplary low temperature 1 and its corresponding noise tolerance difference and touch tolerance difference. Fig.10 The horizontal axis in represents the touch unit sequence value. The vertical axis represents the value of the noise tolerance difference or the touch tolerance difference. The touch tolerance difference at A2 can be regarded as a low temperature reporting threshold associated with a low temperature 1. It can meet the requirements for taking the low temperature reporting threshold.

[0119] It should be noted that Fig.10 The noise tolerance difference and touch tolerance difference corresponding to low temperature 1 shown in the figure are relatively small. This is just an example. In actual situations, the noise tolerance difference and touch tolerance difference corresponding to low temperature 1 are much smaller than those in Fig.10 There will be more in the future.

[0120] S13. Set the maximum noise tolerance associated with different low temperatures.

[0121] This step S13 is optional.

[0122] The largest noise tolerance difference among multiple noise tolerance differences corresponding to the low temperature is taken as the maximum noise tolerance difference associated with the low temperature. That is, the maximum noise tolerance value associated with a low temperature is the maximum tolerance difference between the real-time capacitance value and the reference capacitance value on each touch unit when the screen is not touched at the low temperature.

[0123] It should be noted that steps S11 to S13 can be completed before the terminal leaves the factory, and then the low temperature reporting thresholds associated with different temperatures are recorded in the terminal. In addition to the low temperature reporting thresholds associated with different temperatures, the maximum noise tolerance difference associated with each low temperature can also be recorded.

[0124] In the case where the maximum noise tolerance difference associated with each low temperature is recorded in the terminal, when the screen temperature is low temperature when the screen is on and the low temperature reporting threshold associated with the low temperature is greater than the maximum noise tolerance difference associated with the low temperature, the terminal will not set the initial value of the reporting threshold to the default reporting threshold in the first touch detection frame or in the first touch detection frame, but will set the initial value of the reporting threshold to the low temperature reporting threshold associated with the low temperature. After turning the screen on and before turning the screen off, the terminal can always use the low temperature reporting threshold.

[0125] In this way, it is possible to simplify the touch event detection process without being disturbed by noise signals. Because the low temperature reporting threshold associated with the screen temperature (low temperature) when the screen is on is greater than the maximum noise tolerance difference generated at the low temperature, after setting the reporting threshold to the low temperature reporting threshold, the terminal will not recognize the noise tolerance difference generated when there is no touch as a tolerance difference greater than the reporting threshold, and thus determine that there is a touch event on the screen.

[0126] It should be noted that the terminal may not set the initial value of the reporting threshold to the default reporting threshold. When the screen temperature is low when the screen is on and the low-temperature reporting threshold associated with the low temperature is less than the maximum noise tolerance difference associated with the low temperature, the terminal sets the initial value of the reporting threshold to the default reporting threshold within the first touch detection frame or in the first touch detection frame.

[0127] It should also be noted that when the difference between the real-time capacitance value and the reference capacitance value of the touch unit is equal to the reporting threshold, it can be considered that there is a touch event on the touch unit, or it can be considered that there is no touch event on the touch unit. This embodiment of the application is not limited to this.

[0128] Fig.11 An exemplary flow chart of a terminal touch detection method is shown.

[0129] Here, the aforementioned reduction timing 2 and restoration timing 1 are used as an example to describe the process of detecting a touch event when the screen temperature is low when the screen is on. For details of the process, please refer to the following description of steps S101 to S113.

[0130] S101. In response to a screen-on operation, the terminal switches from a screen-off state to a screen-on state.

[0131] In some possible cases, the screen-lighting operation may include an operation in which the terminal detects that a power key is pressed when the screen is off, or an operation in which the terminal detects that a user lifts the terminal when the screen is off.

[0132] The screen-off state refers to the state when the terminal does not display the user interface. At this time, the terminal that the user sees is in a black screen state.

[0133] S102. The terminal obtains the screen temperature when the screen is on.

[0134] The terminal uses the temperature collected by the temperature sensor 1 when the screen is on as the screen temperature of the terminal when the screen is on.

[0135] A plurality of temperature sensors are usually configured in the terminal. In some possible cases, the temperature sensor 1 may be a temperature sensor in a non-heat source area in the terminal. The non-heat source area may be an area in the bottom circuit board of the terminal that is far away from the chip system of the terminal. For example, the non-heat source area may be an area in the bottom circuit board of the terminal that is farther away from the chip system of the terminal than a preset distance 1.

[0136] The chip system may be a central processor unit (CPU), or may be an integrated chip such as a system on chip (SoC).

[0137] In some other possible cases, the temperature sensor 2 may be used to assist the temperature sensor 1 in jointly determining the screen temperature of the terminal when the screen is on. Here, the temperature sensor 2 may be a temperature sensor of the area around the chip system. The area around the chip system refers to an area in the bottom circuit board of the terminal whose distance from the chip system is less than a preset distance 2. The preset distance 2 is less than or equal to the preset distance 1.

[0138] Among them, the temperature sensor 2 is used to assist the temperature sensor 1 in jointly determining the screen temperature of the terminal when the screen is on, including: when the temperature measured by the temperature sensor 2 when the screen is on is lower than the preset temperature threshold, the average of the temperatures measured by the temperature sensor 2 and the temperature sensor 1 is taken as the screen temperature of the terminal when the screen is on. Here, the temperature measured by the temperature sensor 2 is lower than the preset temperature threshold, indicating that the chip system is not in a heating state, and the measured temperature at this time can be used to determine the screen temperature when the screen is on.

[0139] S103. The terminal sets the initial value of the reporting threshold as the default reporting threshold.

[0140] The default reporting threshold takes into account some common scenarios and is a reporting threshold that can be used in non-low temperature conditions. For example, the preset reporting threshold mentioned above is a default reporting threshold.

[0141] The execution timing of step S103 includes: after the screen is turned on and before the first touch detection frame, or, in the first touch detection frame, the preset reporting threshold is set as the default reporting threshold.

[0142] S104. The terminal obtains the capacitance value (reference capacitance value) of each touch unit in the screen in the first touch detection frame after the screen is turned on.

[0143] After the screen is turned on, the terminal will detect whether there is a touch event on the screen according to the detection frequency. Usually, there is no touch event in the first touch detection frame, and the terminal can use the capacitance value of each touch unit on the screen in the first touch detection frame as the reference capacitance value of each touch unit.

[0144] The content involved in step S104 is the same as that of the aforementioned step S2. Please refer to the aforementioned description of step S2 and will not be repeated here.

[0145] S105. The terminal obtains the real-time capacitance value of each touch unit on the screen in the i-th touch detection frame, where i is initially 2.

[0146] The content involved in step S105 is the same as that of the aforementioned step S3. Please refer to the aforementioned description of step S3 and will not be repeated here.

[0147] S106. Whether the screen temperature when the screen is on is low temperature.

[0148] Low temperature includes a temperature less than a preset temperature value. Non-low temperature is a temperature greater than a preset temperature value. The preset temperature value here can be around 0°C, such as 10°C, 0°C or -10°C, etc. This embodiment of the application is not limited to this.

[0149] When the screen temperature is not low temperature when the screen is on, the terminal executes the following step S111 to detect a touch event based on a default reporting threshold.

[0150] When the screen temperature is low when the screen is on, the terminal executes the following steps S107-S110: The reporting threshold is adjusted based on the screen temperature when the screen is on.

[0151] S107: Whether there is a difference between the real-time capacitance value of the touch unit and the reference capacitance value that is greater than the reporting threshold.

[0152] When the terminal determines that the difference between the real-time capacitance value and the reference capacitance value of the touch unit is less than the reporting threshold, it indicates that there is a touch event on the screen in the i-th touch detection frame. At this time, the terminal executes the following step S110 to set or maintain the reporting threshold as the default reporting threshold.

[0153] When the terminal determines that the difference between the real-time capacitance value and the reference capacitance value of the touch unit is greater than the reporting threshold, it indicates that there is a touch event on the screen in the i-th touch detection frame. At this time, the terminal can reduce the reporting threshold by executing the following step S108.

[0154] S108. There is a touch event in the (i-1)th touch detection frame and the reporting threshold is not the low temperature reporting threshold associated with the low temperature.

[0155] If there is no touch event in the i-1th touch detection frame or the reporting threshold is the low temperature reporting threshold associated with the low temperature, the following step S109c is executed to keep the reporting threshold unchanged and determine that there is a touch event in the i-th touch detection frame.

[0156] If there is a touch event in the (i-1)th touch detection frame and the reporting threshold is not the low temperature reporting threshold associated with the low temperature, step S109a is executed to reduce the reporting threshold.

[0157] S109a. The terminal sets the reporting threshold to the low temperature reporting threshold associated with the low temperature.

[0158] The terminal first determines the low temperature reporting threshold associated with the screen temperature (low temperature) when the screen is on. Then, the terminal reduces the reporting threshold from the default reporting threshold to the low temperature reporting threshold associated with the low temperature. At this time, an example of the i-th touch detection frame can be the aforementioned Figure 7 The touch detection frame at i=3 in the figure, or an example of the i-th touch detection frame may be the aforementioned Figure 7 The jth touch detection frame in .

[0159] The process of lowering the reporting threshold can be referred to the aforementioned description of lowering the reporting threshold, which will not be repeated here.

[0160] S109b. Determine whether a touch event exists in the i-th touch detection frame.

[0161] The terminal determines that a touch event occurs on the screen in the i-th touch detection frame, and determines a touch unit 1 on the screen where a touch event occurs in the i-th touch detection frame.

[0162] S109c. Keep the reporting threshold unchanged, and determine that there is a touch event on the screen in the i-th touch detection frame.

[0163] Keeping the reporting threshold unchanged in step S109c means that the reporting threshold has been lowered to the low temperature reporting threshold due to the detection of a touch event before the i-th touch detection frame. Figure 7 The touch detection frame after i=4 and before the touch ends. Alternatively, an example of the i-th touch detection frame may be the aforementioned Figure 7 After the j-th touch detection frame is reached, the previous touch detection frame is ended by touching again.

[0164] S110. The terminal determines that there is no touch event on the screen in the i-th touch detection frame, and sets or maintains the reporting threshold as the default reporting threshold.

[0165] In step S110, when it is determined that there is no touch event in the i-th touch detection frame, if the latest reporting threshold is a low temperature reporting threshold, it is necessary to restore the low temperature reporting threshold to the default reporting threshold. Figure 7 , and a touch detection frame after the touch ends as shown in FIG.

[0166] When it is determined that there is no touch event in the i-th touch detection frame, if the latest reporting threshold is the default reporting threshold, no touch event is detected on the screen after the screen is brightened. At this time, the reporting threshold needs to be kept at the default reporting threshold.

[0167] S111. Whether there is a difference between the real-time capacitance value of the touch unit and the reference capacitance value that is greater than the default reporting threshold.

[0168] S112a. The terminal determines that a touch event occurs on the screen in the i-th touch detection frame.

[0169] S112b. The terminal determines that there is no touch event on the screen in the i-th touch detection frame.

[0170] S111, step S112a and step S112b are related contents related to detecting touch events based on the default reporting threshold, and can refer to the aforementioned step S4, step S5a and step S5b respectively. The preset reporting threshold can be changed to the default reporting threshold, which will not be repeated here.

[0171] The above steps describe the relevant contents involved in the terminal detecting touch events and setting the reporting threshold in the ith touch detection frame. After the ith touch detection frame ends, the terminal will execute the following step S13 to determine whether there is a screen off operation at this time.

[0172] S113: Whether to turn off the screen.

[0173] If a screen-off operation is detected, the terminal turns off the screen, stops touch detection, and waits for the screen to turn on before executing step S101 to start touch detection.

[0174] If no screen-off operation is detected, the terminal controls i=i+1 and starts to determine whether there is a touch event on the terminal in the next touch detection frame and whether the reporting threshold needs to be adjusted. The touch event detection stops until the screen is turned off.

[0175] It should be noted that the above Fig.11 There is no order of execution between step S103 and step S104. The initial value of the reporting threshold can be set before the second touch detection frame after the screen is turned on. Step S105 can also be executed after step S106, that is, both the no branch and the yes branch of step S106 execute step S105 first, and then support subsequent steps. There is no order of execution between step S109a and step S109b after the yes branch of step S108.

[0176] It should also be noted that detecting that a touch event exists on the screen in the touch detection frame means detecting that a touch event exists on the touch unit 1 in the touch detection frame. The touch unit 1 is a touch unit whose difference between the real-time capacitance value and the reference capacitance value in the touch detection frame content is greater than the reporting threshold. The duration of a single touch of the screen by the user may include multiple touch detection frames, and the touch units with touch events in the multiple touch detection frames are usually the same.

[0177] It should also be noted that the difference between the real-time capacitance and the reference capacitance can be the larger capacitance between the real-time capacitance and the reference capacitance minus the smaller capacitance, or it can be understood as the absolute value of the difference between the real-time capacitance and the reference capacitance. Usually, the real-time capacitance when the touch unit is touched will be smaller than the reference capacitance, but there may be some cases where the real-time capacitance is larger than the reference capacitance. For example, review Figure 4 , it is uncertain whether the real-time capacitance value on the touch unit in the subsequent touches will increase or decrease compared to the reference capacitance value in the first touch detection frame. This is because compared to the first touch detection frame, the real-time capacitance value on the touch unit in the subsequent touches will increase due to the temperature rise, but will also be partially absorbed by the user's finger, resulting in a decrease in capacitance value. However, the relationship between the increase and decrease in capacitance value is uncertain.

[0178] The following first introduces an exemplary terminal provided in an embodiment of the present application.

[0179] Fig.12 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application.

[0180] The following embodiment is specifically described by taking a terminal as an example. It should be understood that a terminal may have more than Fig.12 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Fig.12 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0181] The terminal may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194 and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0182] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal. In other embodiments of the present application, the terminal may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0183] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0184] The controller can be the nerve center and command center of the terminal. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0185] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0186] In some embodiments, the processor 110 may include one or more interfaces. The interface 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.

[0187] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal. In other embodiments of the present application, the terminal may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0188] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be made of an organic light-emitting diode (OLED) or the like. In some embodiments, the terminal may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0189] The display screen 194 is the aforementioned screen, which is a capacitive touch screen.

[0190] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect a touch operation acting on or near it. The touch sensor can pass 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 the display screen 194.

[0191] The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.

[0192] In the embodiment of the present application, the processor 110 can call the computer instructions stored in the internal memory 121 to enable the terminal to execute the method in the embodiment of the present application.

[0193] The present application also provides a chip system, which includes at least one processor, and is used to implement the functions involved in the method executed by the terminal in any of the above embodiments.

[0194] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0195] The chip system may be composed of the chip, or may include the chip and other discrete devices.

[0196] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0197] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separated from the processor, which is not limited in the embodiment of the present application.

[0198] Exemplarily, the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip or can be set separately on different chips. The embodiments of the present application do not specifically limit the type of memory and the setting method of the memory and the processor.

[0199] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0200] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which enables a computer to execute the method executed by a terminal in any of the above embodiments when the computer program is executed.

[0201] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by the terminal in any of the above embodiments.

[0202] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. 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 scope of the technical solutions of the embodiments of the present application.

[0203] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0204] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0205] The terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0206] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0207] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A touch detection method, the method being applied to a terminal having a capacitive touch screen, the capacitive touch screen comprising a touch unit for detecting a touch event, characterized in that: The method comprises: In response to the screen lighting operation, the terminal lights up the screen; After the screen is turned on and before the screen is turned off, detecting whether there is a touch event in the capacitive touch screen according to a detection frequency; When it is detected that the difference between the real-time capacitance value of the touch unit in the first touch detection frame and the reference capacitance value is greater than the reporting threshold, it is determined that the capacitive touch screen has a touch event in the first touch detection frame; the reference capacitance value of a touch unit is the capacitance value of the touch unit in the first touch detection frame after the screen is turned on; If the temperature of the capacitive touch screen when the screen is on is low temperature, and the reporting threshold is not equal to the first threshold associated with the low temperature, lowering the reporting threshold to be greater than or equal to the first threshold; When it is detected that the difference between the real-time capacitance of the touch unit in the second touch detection frame and the reference capacitance is greater than the lowered reporting threshold, it is determined that a touch event exists on the capacitive touch screen in the second touch detection frame; the second touch detection frame includes the first touch detection frame after the first touch detection frame.

2. The method according to claim 1, characterized in that Before lowering the reporting point threshold, the method further includes: Determine that a touch event exists in a third touch detection frame; the third touch detection frame is a touch detection frame before the first touch detection frame, or the third touch detection frame is before the first touch detection frame and the time interval between the third touch detection frame and the first touch detection frame is less than a first time length.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: If the temperature of the capacitive touch screen is low when the screen is on and the reporting threshold is equal to the first threshold, controlling the reporting threshold to remain unchanged; When it is detected that the difference between the real-time capacitance value and the reference capacitance value of the touch unit in the second touch detection frame is greater than the reporting threshold, it is determined that a touch event exists on the capacitive touch screen in the second touch detection frame.

4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: When it is detected that the difference between the real-time capacitance of the touch unit in the fourth touch detection frame and the reference capacitance is less than the lowered reporting threshold, it is determined that there is no touch event on the capacitive touch screen in the fourth touch detection frame; and the start time of the fourth touch detection frame is continuous with the end time of the second touch detection frame.

5. The method according to claim 4, characterized in that The method further comprises: The terminal counts W consecutive touch detection frames in which a touch event occurs before the fourth touch detection frame; determines a first touch unit in which a touch event occurs in the W touch detection frames; wherein the W touch detection frames include at least the first touch detection frame and the second touch detection frame; A touched control in the capacitive touch screen is determined based on the position of the first touch unit on the capacitive touch screen, and a touch type on the control is determined based on the total duration of the W touch detection frames.

6. The method according to claim 4 or 5, characterized in that: When it is determined that there is no touch event on the capacitive touch screen within the fourth touch detection frame, the method further includes: Restoring the lowered reporting point threshold to the reporting point threshold before the lowering; Detect whether there is a difference between the real-time capacitance of the touch unit in the fifth touch detection frame and the reference capacitance that is greater than the reporting threshold after recovery; wherein the start time of the fifth touch detection frame is continuous with the end time of the fourth touch detection frame.

7. The method according to any one of claims 1 to 5, characterized in that After the screen is turned on, the method further includes: When it is determined that the first threshold is less than the maximum noise tolerance difference associated with the low temperature, the initial value of the reporting threshold is set to a second threshold greater than the first threshold; wherein the maximum noise tolerance difference is the maximum tolerance difference between the real-time capacitance on each touch unit and the reference capacitance when the capacitive touch screen is not touched at the low temperature.

8. The method according to any one of claims 1 to 7, characterized in that Lowering the reporting point threshold to be greater than or equal to the first threshold specifically includes: The reporting threshold is reduced Q times until it is reduced to the first threshold; Q is an integer greater than 1, and Q / 2 is less than the average duration of a single press divided by the duration of a single touch detection frame; Detecting that a difference between a real-time capacitance value of a touch unit in a second touch detection frame and a reference capacitance value is greater than a reduced reporting threshold value specifically includes: It is detected that the difference between the real-time capacitance value of the touch unit in the kth touch detection frame in the second touch detection frame and the reference capacitance value is greater than the reporting threshold value after the kth reduction, and it is detected that the difference between the real-time capacitance value of the touch unit in the touch detection frame after the Qth touch detection frame in the second touch detection frame and the reference capacitance value is greater than the reporting threshold value after the Qth reduction; wherein the value of k ranges from 1 to Q.

9. The method according to any one of claims 1 to 5, characterized in that When the terminal turns on the screen, the method further includes: The temperature of the capacitive touch screen when the screen is on is obtained based on the temperature collected by the first temperature sensor in the terminal when the screen is on; wherein the distance between the first temperature sensor and the chip system of the terminal is greater than a preset distance.

10. The method according to any one of claims 1 to 9, characterized in that The lower the low temperature is, the lower the first threshold associated with the low temperature is.

11. A terminal, characterized in that: include: A capacitive touch screen, one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the terminal to execute the method as described in any one of claims 1-10.

12. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on a terminal, the terminal is caused to execute the method according to any one of claims 1 to 10.

13. A chip system, the chip system is applied to a terminal, characterized in that: The chip system includes one or more processors, and the processor is used to call computer instructions so that the terminal executes the method as described in any one of claims 1-10.

14. A computer program product comprising instructions, characterized in that When the computer program product is executed on a terminal, the terminal is enabled to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Reporting point determination method and apparatus of capacitive touch panel

    CN106293278A

  • Electronic device, touch detection circuit, and method for updating reference value of touchscreen

    CN109643200A

  • Capacitive screen touch detection method and device

    CN110502143A

  • Point reporting information processing method and device, terminal and storage medium

    CN114115589A

  • Systems and Methods for Capacitive Touch Detection

    US20150324035A1