Baseline updating method, device, equipment, storage medium and computer program product

By calculating the unevenness of the touchscreen sensing nodes and accurately updating the baseline signal, the baseline judgment problem of capacitive touchscreens during TIC startup is solved, reducing ghost hand and stuck point phenomena and improving the reliability of the touchscreen.

CN122363543APending Publication Date: 2026-07-10BEIJING ESWIN COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING ESWIN COMPUTING TECH CO LTD
Filing Date
2026-03-20
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing capacitive touchscreens, baseline update methods struggle to accurately determine the screen state when TIC (Touch Interface Control) is first activated, leading to touch anomalies such as ghost points and stuck points. In particular, they cannot correct erroneous baselines in a timely manner when the environment changes.

Method used

By calculating the difference in mutual capacitance between each sensing node and related nodes on the touchscreen, the unevenness of the signal and the baseline is obtained. The same unevenness calculation method is used to determine whether to update the baseline signal. If the condition is met for consecutive frames, the baseline is updated.

Benefits of technology

It enables rapid identification and updating of error baselines during TIC startup, reducing ghost hand and stuck point issues, and improving the accuracy and stability of the touchscreen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122363543A_ABST
    Figure CN122363543A_ABST
Patent Text Reader

Abstract

This application provides a touchscreen baseline update method, apparatus, device, storage medium, and computer program product. The method includes: acquiring a mutual capacitance signal and a baseline signal of the touchscreen; calculating the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal, respectively; and determining whether to update the baseline signal using the mutual capacitance signal based on the signal unevenness and the baseline unevenness. The signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method, which includes: statistically obtaining the unevenness based on the difference in mutual capacitance values ​​between each sensing node of the touchscreen and its related nodes. This allows for rapid identification of whether the touchscreen baseline is correct, enabling updates to erroneous baselines and reducing issues such as ghosting and screen skipping when the screen is on while the user is holding the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of touch technology, and in particular to a touch screen baseline update method, apparatus, device, storage medium, and computer program product. Background Technology

[0002] In capacitive touch technology, the touch algorithm requires a good baseline. The baseline is defined as the mutual capacitance signal of each sensing channel in the system in the absence of touch. The Touchscreen Interface Controller (TIC) obtains the real-time mutual capacitance signal matrix by periodically scanning, compares the baseline with the current mutual capacitance signal, and determines whether there is a touch on the screen. If there is a touch, it calculates the coordinates of the touch position.

[0003] There are currently many methods for baseline maintenance, basically divided into baseline recovery and baseline drift. Baseline recovery replaces the baseline with the current mutual capacitance signal. It requires correctly determining whether the current mutual capacitance signal needs updating, especially when TIC is first started, needing to distinguish between a "no touch" state and a "touch present" state, which places high demands on the algorithm. Baseline drift compares the baseline with the current mutual capacitance signal. The baseline changes slowly, keeping pace with the changes in the mutual capacitance signal, suitable for situations where the changes in the mutual capacitance signal are very small.

[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0005] This application provides a touchscreen baseline update method, apparatus, device, storage medium, and computer program product.

[0006] The technical solution of this application embodiment is implemented as follows: In a first aspect, embodiments of this application provide a touchscreen baseline update method, the method comprising: Acquire the mutual capacitance signal and baseline signal of the touch screen; Calculate the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal, respectively. Based on the signal unevenness and the baseline unevenness, determine whether to update the baseline signal using the mutual capacitance signal; The signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method, which includes: calculating the unevenness based on the difference in mutual capacitance between each sensing node of the touch screen and the related nodes of the sensing node.

[0007] In some embodiments, the mutual capacitance signal includes the current mutual capacitance value of each sensing node of the touch screen, and the baseline signal includes the reference mutual capacitance value of each sensing node; the unevenness is statistically obtained based on the difference in mutual capacitance values ​​between each sensing node of the touch screen and its related nodes, including: The unevenness value of the first sensing node is determined based on the mutual capacitance value of the first sensing node and the mutual capacitance value of at least one related node of the first sensing node; the first sensing node is any of the sensing nodes in the touch screen. The unevenness of the touch screen is determined based on the unevenness value of each of the sensing nodes.

[0008] In some embodiments, at least one of the following related nodes of the first sensing node includes at least one of the following: a first related node, a second related node, and a third related node; the first related node is adjacent to the first sensing node, the second related node is spaced apart from the first sensing node by at least one sensing node, and the third related node is symmetrical to the first sensing node.

[0009] In some embodiments, the touch screen includes M×N sensing nodes arranged along a first direction and a second direction; M and N are both positive integers; Determining the first associated node of the first sensing node includes: determining the adjacent sensing node located on one side of the first sensing node along the first direction as the first associated node, and / or determining the adjacent sensing node located on one side of the first sensing node along the second direction as the first associated node. Determining the second related node of the first sensing node includes: determining a sensing node located on one side of the first sensing node along the first direction that is spaced apart from at least one sensing node as the second related node, and / or determining a sensing node located on one side of the first sensing node along the second direction that is spaced apart from at least one sensing node as the second related node. Determining the third related node of the first sensing node includes: determining the sensing node that is symmetrical to the first sensing node along the first direction as the third related node; or determining the sensing node that is symmetrical to the first sensing node along the second direction as the third related node.

[0010] In some embodiments, one half of the sensing nodes along one side of the first direction has the third related node, and the other half of the sensing nodes along the other side of the first direction does not have the third related node; or, one half of the sensing nodes along one side of the second direction has the third related node, and the other half of the sensing nodes along the other side of the second direction does not have the third related node.

[0011] In some embodiments, determining the unevenness value of the first sensing node based on the mutual capacitance value of the first sensing node and the mutual capacitance value of at least one associated node of the first sensing node includes: The difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the first related node is determined as a first difference value; if the first difference value is greater than a first threshold, the unevenness value of the first sensing node is increased by a first weight. And / or, determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the second related node as a second difference value; if the second difference value is greater than a second threshold, then the unevenness value of the first sensing node is increased by a second weight; And / or, determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the third related node as a third difference value; if the third difference value is greater than a third threshold, then the unevenness value of the first sensing node is increased by a third weight.

[0012] In some embodiments, the first threshold is equal to the second threshold, the first weight is equal to the second weight, and the method further includes: If the at least one related node includes both the first related node and the second related node, then the larger of the first difference and the second difference is compared with the first threshold to determine whether to increase the unevenness value of the first sensing node.

[0013] In some embodiments, the third weight is greater than the first weight and greater than the second weight.

[0014] In some embodiments, determining the unevenness of the touchscreen based on the unevenness value of each of the sensing nodes includes: The unevenness of the touch screen is obtained by summing the unevenness values ​​of each of the sensing nodes.

[0015] In some embodiments, determining whether to update the baseline signal using the mutual capacitance signal based on the signal unevenness and the baseline unevenness includes: If K consecutive frames satisfy the condition that the baseline unevenness is greater than the signal unevenness and the difference exceeds a preset threshold, then the baseline signal is updated using the mutual capacitance signal, where K is a positive integer.

[0016] In some embodiments, K is a positive integer greater than 1.

[0017] Secondly, embodiments of this application provide a touchscreen baseline update device, comprising: The data acquisition unit is used to acquire the mutual capacitance signal and baseline signal of the touch screen; A data calculation unit is used to calculate the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal, respectively. A baseline update unit is used to determine whether to update the baseline signal using the mutual capacitance signal based on the signal unevenness and the baseline unevenness. The signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method, which includes: calculating the unevenness based on the difference in mutual capacitance between each sensing node of the touch screen and the related nodes of the sensing node.

[0018] Thirdly, embodiments of this application provide an electronic device, which includes: a touch screen, a memory, and a processor; The memory is used to store computer programs that can run on the processor; The processor is configured to perform the steps of the method as described in the first aspect when running the computer program.

[0019] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by at least one processor, implements the steps of the method as described in the first aspect.

[0020] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the method as described in the first aspect.

[0021] The embodiments of this application have the following beneficial effects: The embodiments of this application provide a touch screen baseline update method. First, the mutual capacitance signal and baseline signal of the touch screen are obtained. The mutual capacitance signal includes the current mutual capacitance value of each sensing node of the touch screen, and the baseline signal includes the reference mutual capacitance value of each sensing node. Second, the unevenness value of each sensing node is determined based on the mutual capacitance value of each sensing node and the mutual capacitance value of at least one related node of the sensing node. Then, the unevenness of the touch screen is determined based on the unevenness value of each sensing node. The unevenness of the touch screen includes the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal. Finally, based on the signal unevenness and the baseline unevenness, it is determined whether to update the baseline signal using the mutual capacitance signal. The signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method, which includes: statistically obtaining the unevenness based on the difference in mutual capacitance values ​​between each sensing node of the touch screen and the related nodes of the sensing node. If K consecutive frames satisfy the condition that the baseline unevenness is greater than the signal unevenness and the difference between the two reaches a preset threshold, the baseline signal is updated using a mutual capacitance signal, where K is a positive integer greater than 1. Thus, this embodiment calculates the unevenness value of each sensing node in the touchscreen. During calculation, the measurement is performed by combining the sensing node itself with related nodes associated with it, accurately characterizing the degree of unevenness of the sensing node. Furthermore, by combining the unevenness values ​​of each sensing node, the unevenness of the touchscreen is obtained, enabling accurate calculation of both signal unevenness and baseline unevenness. Finally, the signal unevenness and baseline unevenness are compared to confirm the correctness of the baseline, thereby quickly identifying whether the touchscreen baseline is correct and updating erroneous baselines, thus reducing issues such as ghosting and stuttering when the screen is on while the user is holding the device. Attached Figure Description

[0022] Figure 1 This is a flowchart illustrating a touchscreen baseline update method provided in an embodiment of this application; Figure 2 This is a schematic diagram of the distribution of related nodes provided in an embodiment of this application; Figure 3 This is a schematic diagram of a capacitor matrix provided in an embodiment of this application. Figure 1 ; Figure 4 This is a schematic diagram of a capacitor matrix provided in an embodiment of this application. Figure 2 ; Figure 5 This is a schematic diagram of a capacitor matrix provided in an embodiment of this application. Figure 3 ; Figure 6 This is a schematic diagram illustrating the calculation of a third difference provided in an embodiment of this application; Figure 7 This is a detailed flowchart illustrating the calculation of unevenness provided in an embodiment of this application; Figure 8 This is a schematic diagram of unevenness comparison provided in an embodiment of this application; Figure 9 This is a schematic diagram of the composition structure of a touch screen baseline update device provided in an embodiment of this application; Figure 10 This is a schematic diagram of the composition structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] It is understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the disclosure. It should also be noted that, for ease of description, only the parts relevant to the disclosure are shown in the accompanying drawings. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application. In the following description, references to "some embodiments" describe a subset of all possible embodiments; however, it is understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict. It should be noted that the terms "first, second, third, fourth" used in the embodiments of this application are merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third, fourth" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0025] The mutual capacitance signal of the touchscreen acquired by the Touchscreen Interface Controller (TIC) changes dynamically with environmental conditions such as temperature. Therefore, the touch baseline of the TIC also changes dynamically and needs to be kept consistent with the mutual capacitance signal when there is no touch in the current environment.

[0026] Currently, the common method for maintaining the baseline is slow drift: this involves comparing the current mutual capacitance signal with the baseline. If no touch occurs, the baseline is slightly adjusted based on the mutual capacitance signal, gradually approaching the current background value. However, this method has an important prerequisite: the current baseline must be accurate. If the baseline incorrectly includes touch signals (e.g., foreign objects on the screen or a hand pressing on it during power-on), slow drift will not be able to correct this in time and may even lead to touch anomalies such as ghost points or stuck points.

[0027] Particular attention needs to be paid to the TIC power-on initialization phase, as this is when the baseline is most prone to error. For example, if a hand is already covering the screen surface the moment it lights up, the initial baseline will incorrectly lock the touch signal as a no-touch background value, leading to continuous false alarms. Therefore, the baseline must be updated quickly in this situation.

[0028] However, when using baseline updates to replace the baseline with the current mutual capacitance signal, it is necessary to correctly determine whether the current mutual capacitance signal needs to be updated. This is especially important when TIC is first started, as it is necessary to distinguish between a "no touch" state and a "touch present" state, which places high demands on the algorithm. How to efficiently, accurately, and reliably determine whether the baseline is correct and update it accordingly is a problem that needs to be solved.

[0029] Based on this, this application provides a touchscreen baseline update method. The basic idea of ​​this method is as follows: acquire the mutual capacitance signal and the baseline signal of the touchscreen; calculate the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal respectively; determine whether to update the baseline signal using the mutual capacitance signal based on the signal unevenness and the baseline unevenness; wherein the signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method, which includes: statistically obtaining the unevenness based on the difference in mutual capacitance value between each sensing node of the touchscreen and the related nodes of the sensing node. In this way, it is possible to quickly identify whether the touchscreen baseline is correct and update the incorrect baseline, thereby reducing the problems of ghost hand and screen lag when the screen is on with hands on.

[0030] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0031] In one embodiment of this application, see Figure 1 This illustrates a flowchart of a touchscreen baseline update method provided in an embodiment of this application. Figure 1 As shown, the method may include: S10: Acquire the mutual capacitance signal and baseline signal of the touch screen.

[0032] It should be noted that the mutual capacitance signal includes the current mutual capacitance value of each sensing node of the touch screen, and the baseline signal (which can be simply referred to as the baseline) includes the reference mutual capacitance value of each sensing node of the touch screen. Touch screens generally employ a structure in which driving electrodes (Tx) and sensing electrodes (Rx) are etched perpendicularly onto two mutually insulated conductive layers, forming a structure with Rx and Tx directions intersecting. These intersections overlap spatially but do not directly contact each other, constituting a capacitor matrix that operates based on the principle of mutual capacitance or self-capacitance. Each intersection is a capacitor node, which is the sensing node referred to in this embodiment.

[0033] It should be further explained that the electrode layers (Tx and Rx electrodes) are typically made of transparent conductive materials such as indium tin oxide (ITO), and two sets of parallel strip electrodes are fabricated on a glass or thin-film substrate using photolithography. The first layer (e.g., the lower layer) arranges a set of driving electrodes (Tx) extending horizontally, and the second layer (e.g., the upper layer) arranges a set of sensing electrodes (Rx) extending vertically. The two are isolated by an insulating layer (such as optically clear adhesive (OCA) or silicon dioxide (SiO2) insulating film) to ensure electrical insulation. The Tx and Rx electrodes form a two-dimensional intersecting grid in the vertical projection. Although the two electrodes at each intersection are not directly connected, they form a coupling capacitance, i.e., "mutual capacitance".

[0034] Here, both the baseline mutual capacitance value and the current mutual capacitance value are mutual capacitance values ​​of the sensing nodes. The current mutual capacitance value can be understood as the mutual capacitance value of the sensing node currently detected by the sensor. The baseline mutual capacitance value is a reference value compared with the mutual capacitance value generated by user touch when the touchscreen is working (i.e., the current mutual capacitance value). The extent of change in the mutual capacitance value caused by user touch is based on the baseline mutual capacitance value. The baseline mutual capacitance value refers to the original mutual capacitance value of the sensing node detected by the sensor in a non-touch state.

[0035] S11: Calculate the signal roughness of the mutual capacitance signal and the baseline roughness of the baseline signal, respectively.

[0036] It should be noted that the signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method. The unevenness calculation method includes: statistically obtaining the unevenness based on the difference in mutual capacitance value between each sensing node of the touch screen and the related nodes of the sensing node.

[0037] For each sensing node in the touch screen, there are related sensing nodes, denoted as related nodes. The difference in mutual capacitance between the sensing node and the related nodes can reflect the flatness of the sensing node. By statistically analyzing the difference in mutual capacitance between each sensing node and the related nodes, the overall unevenness of the touch screen can be obtained.

[0038] Specifically, the unevenness can be calculated as follows: The unevenness value of the first sensing node is determined based on the mutual capacitance value of the first sensing node and the mutual capacitance value of at least one related node of the first sensing node; the first sensing node is any sensing node in the touch screen. The unevenness of the touchscreen is determined based on the unevenness value of each sensing node.

[0039] It should be noted that, in the embodiments of this application, unevenness is set to characterize the degree of unevenness of the touch screen. That is, unevenness reflects whether the mutual capacitance signal is flat or not. If there are conductive objects such as palms on the screen, the unevenness is higher; if there are no conductive objects such as palms on the screen, the unevenness is lower.

[0040] It should also be noted that the touch screen includes multiple sensing nodes. The unevenness value is set to represent the degree of unevenness of each sensing node, and the sum of the unevenness values ​​of all sensing nodes is the unevenness of the touch screen.

[0041] When calculating the unevenness value of a sensing node, the mutual capacitance value of the sensing node itself and the mutual capacitance value of at least one related node are combined. In this way, the unevenness value integrates the influence of the sensing node itself and related nodes, so as to accurately represent the degree of unevenness of the sensing node and obtain an accurate unevenness value.

[0042] At least one of the following related nodes of the first sensing node includes: a first related node, a second related node, and a third related node; the first related node is adjacent to the first sensing node, the second related node is spaced apart from the first sensing node by at least one sensing node, and the third related node is symmetrical to the first sensing node.

[0043] It should be noted that the related nodes of the first sensing node can include the first related node, the second related node and the third related node at the same time, or it can include only one or two of them, etc., without specific limitations here.

[0044] It should also be noted that the touchscreen includes M×N sensing nodes arranged along a first direction and a second direction; M and N are both positive integers. The first direction refers to the direction of the sensing electrode (Rx), and the second direction refers to the direction of the driving electrode (Tx). Alternatively, the first direction could refer to the direction of the driving electrode (Tx), and the second direction to the direction of the sensing electrode (Rx); no specific limitation is made here.

[0045] In some embodiments, determining the first associated node of the first sensing node may include: determining an adjacent sensing node located on one side of the first sensing node along a first direction as the first associated node, and / or determining an adjacent sensing node located on one side of the first sensing node along a second direction as the first associated node. Determining a second related node of a first sensing node may include: determining a sensing node located on one side of the first sensing node along a first direction that is spaced apart from at least one sensing node as a second related node, and / or determining a sensing node located on one side of the first sensing node along a second direction that is spaced apart from at least one sensing node as a second related node. Determining the third related node of the first sensing node may include: determining the sensing node that is symmetrical to the first sensing node along a first direction as the third related node; or determining the sensing node that is symmetrical to the first sensing node along a second direction as the third related node.

[0046] It should be noted that for two adjacent sensing nodes in the first or second direction, both are considered adjacent sensing nodes to each other. To avoid double counting, this embodiment only records the sensing node adjacent on one side of the first or second direction as the first related node. The same applies to the second related node.

[0047] It should also be noted that the second related node can be separated from the first sensing node by one sensing node or by multiple sensing nodes; the first related node, the second related node, and the third related node can be located in different directions from the first sensing node.

[0048] For a third related node, two sensing nodes symmetrical along the first or second direction are each other's symmetrical sensing nodes. In this embodiment, a corresponding third related node can be set for each sensing node; Alternatively, only half of the sensing nodes along one side of the first direction may have a third related node, while the other half of the sensing nodes along the other side of the first direction may not have a third related node; or, half of the sensing nodes along one side of the second direction may have a third related node, while the other half of the sensing nodes along the other side of the second direction may not have a third related node. That is to say, for any sensing node, its third related node is only distributed in half of the entire capacitance matrix, while it does not exist in the other half, and the two exhibit spatial symmetry.

[0049] It should be noted that the symmetry between the first sensing node and the third related node along the first direction means that their axis of symmetry is parallel to the first direction, and the symmetry between the first sensing node and the third related node along the second direction means that their axis of symmetry is parallel to the second direction.

[0050] See one example. Figure 2This illustrates a schematic diagram of the distribution of related nodes of a sensing node provided in an embodiment of this application. For example... Figure 2 As shown, each small square represents a sensing node. Figure 2 The "△" indicates the first sensing node, the "○" indicates the first related node of the first sensing node, the "◇" indicates the second related node of the first sensing node, and the "□" indicates the third related node of the first sensing node. The dashed line is the axis of symmetry that determines the third related node.

[0051] like Figure 2 As shown in (a), the first related node ○ is located at the position of the adjacent sensing node on one side of the first sensing node △ along the first direction (taking the left side of the first direction as an example), the second related node ◇ is located at the position of the first sensing node △ along the first direction (taking the left side of the first direction as an example) with a gap of one sensing node, and the third related node □ is located at the position of the sensing node symmetrical to the first sensing node △ along the second direction (the axis of symmetry is perpendicular to the first direction and parallel to the second direction).

[0052] like Figure 2 As shown in (b), the first related node ○ is located at the position of the adjacent sensing node on one side of the first sensing node △ along the second direction (taking the left side of the second direction as an example), the second related node ◇ is located at the position of the first sensing node △ along the first direction (taking the left side of the first direction as an example) with a gap of one sensing node, and the third related node □ is located at the position of the sensing node symmetrical to the first sensing node △ along the first direction (the axis of symmetry is perpendicular to the second direction and parallel to the first direction).

[0053] It should also be noted that the first related node of the first sensing node may include both its adjacent sensing node in the first direction and its adjacent sensing node in the second direction, or it may include only one of them; no specific limitation is made here.

[0054] It should also be noted that, as the first sensing node is only considered to be adjacent to the first sensing node on one side of the first / second direction, therefore, for sensing nodes located in the outermost region of the touchscreen, such as... Figure 2 In (a), since the adjacent sensing node on the left side of the first direction is taken as the first related node, therefore for Figure 2 (a) The leftmost sensing node in the first direction does not have a first related node.

[0055] It should also be noted that the second related node and the first sensing node are separated by at least one sensing node on one side of the first direction / second direction. Since the greater the distance, the smaller the impact may be, it is preferable that the second related node and the first sensing node are separated by one sensing node on one side of the first direction / second direction.

[0056] In some embodiments, determining the unevenness value of the first sensing node based on the mutual capacitance value of the first sensing node and the mutual capacitance value of at least one associated node of the first sensing node may include: S111: Determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the first related node as the first difference value; if the first difference value is greater than the first threshold, then the unevenness value of the first sensing node is increased by the first weight. S112: Determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the second related node as the second difference value; if the second difference value is greater than the second threshold, then the unevenness value of the first sensing node is increased by the second weight. S113: Determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the third related node as the third difference value; if the third difference value is greater than the third threshold, then the unevenness value of the first sensing node is increased by the third weight value.

[0057] It should be noted that if only the adjacent sensing nodes of the first sensing node in the first or second direction are considered as its first related nodes, a first difference is calculated. If the first difference is greater than a first threshold, a first weight is added to the unevenness value of the first sensing node. If both adjacent sensing nodes of the first sensing node in the first and second directions are considered as its first related nodes, two first differences are calculated. If both first differences are greater than the first threshold, two first weights are added to the unevenness value of the first sensing node. If only one of the first differences is greater than the first threshold, only one first weight is added to the unevenness value of the first sensing node. The same applies to the second related nodes, and will not be elaborated further here.

[0058] It should also be noted that the difference can be the absolute value of the difference between the mutual capacitance values ​​of the two sensing nodes. The first threshold, the second threshold, and the third threshold are used to determine whether the critical value of unevenness has been reached for the corresponding related node types. The specific values ​​can be determined by combining practical experience or model analysis.

[0059] In the embodiments of this application, the first weight, the second weight, and the third weight may all be different, or they may be partially the same, or they may all be different.

[0060] For example, since the first, second, and third relevant nodes are located at different positions relative to the first sensing node, different weights can be set based on their influence. Alternatively, since the final result is a comprehensive unevenness, the influence of different positions can be ignored, so the first, second, and third weights can all be set to be the same.

[0061] It should also be noted that steps S111, S112, and S113 can all be implemented to determine the unevenness value of the first sensing node; alternatively, one or two steps can be selected to determine the unevenness value of the first sensing node. This embodiment does not impose any limitations on this. The order of steps S111, S112, and S113 is not limited.

[0062] In one specific implementation provided in this application, the first threshold is equal to the second threshold, and the first weight is equal to the second weight; the third weight is greater than both the first and second weights. The method may further include: If at least one related node includes both a first related node and a second related node, then the larger of the first difference and the second difference is compared with a first threshold to determine whether to increase the unevenness value of the first sensing node.

[0063] It should be noted that, in this embodiment, the second related node is preferably a sensing node that is separated from the first sensing node by one sensing node. In this case, the first related node and the second related node are the sensing nodes closest to and second closest to the first sensing node. To simplify the calculation, the larger of the first difference and the second difference can be compared with a first threshold (i.e., the second threshold). If it is greater than the first threshold, a first weight (i.e., the second weight) is added to the unevenness value of the first sensing node.

[0064] It is understandable that if the second related node is a sensing node that is further away from the first sensing node, this method can still be used, and there are no specific limitations on this.

[0065] See Figure 3 It shows a schematic diagram of a capacitance matrix. Figure 1 ,like Figure 3 As shown, the capacitance matrix exists in a coordinate system with the direction of the sensing electrode (Rx) (first direction) and the direction of the driving electrode (Tx) (second direction) as the direction axes. The position of each element in the capacitance matrix can be obtained from the coordinate system. Here, each element corresponds to a sensing node, and the value of each element is the difference between the current mutual capacitance value and the reference mutual capacitance value of the sensing node (denoted as the diff value), i.e. Figure 3 What is displayed is not the current mutual capacitance value, but the diff value. The current mutual capacitance value of the sensing node is the sum of the diff value and the reference mutual capacitance value of the sensing node.

[0066] When determining whether a touch has occurred, the diff value is used as the basis for judging whether a touch has occurred. As mentioned earlier, if there is a foreign object such as a hand on the screen when determining the baseline, the baseline itself will be incorrect. That is, the detection value affected by the hand will be mistakenly used as the baseline, making it impossible to accurately determine whether a touch has occurred subsequently. For example, after the hand leaves the screen, the actual situation is no touch, but because the detection value changes significantly, the diff value meets the condition for judging a touch, and the situation of no touch is mistakenly judged as a touch.

[0067] Figure 3 The image shows the actual values ​​of each diff after the hand leaves the screen, when the baseline error includes the influence of the palm (or fingers). It can be seen that in this case, the misjudgment of a hand touching the screen results in... Figure 3 In the image, for ease of visual representation, the outline of the palm is roughly shown with a solid black line.

[0068] It should be noted that, Figure 3 The image shows a properly grounded palm or finger touching the touchscreen. When the palm is wearing gloves, the conductivity is poor, resulting in a poorly grounded palm. In this case, please refer to [the relevant documentation / reference needed]. Figure 4 ,Right now Figure 4 This shows the true values ​​of each diff after the hand leaves the screen, in the case where the baseline incorrectly includes the effect of a poorly grounded hand.

[0069] In this embodiment, to ensure accurate calculation of unevenness under both well-grounded and poorly grounded conditions (or the influence of other foreign objects), a first correlation node and a second correlation node are configured. For well-grounded conditions, the first correlation node adjacent to the first sensing node determines whether to increase the unevenness value; for poorly grounded conditions, the second adjacent node, spaced one (or more in practice, depending on the density of the sensing nodes) from the first sensing node, determines whether to increase the unevenness value.

[0070] The specific implementation method can be as follows: calculate the first difference and the second difference, compare the larger of the two with the corresponding threshold, and determine whether to increase the unevenness value based on the comparison result. In this way, not only are both cases accurately considered, but the inaccuracy caused by repeated calculations is also avoided.

[0071] See Figure 5 , and Figure 3 , Figure 4 These are all schematic diagrams of diff values. Figure 5Correspondingly, when acquiring the baseline mutual capacitance value, there might be foreign objects such as iron plates or other conductive planes pressing against the touchscreen. The difference value after removing these foreign objects needs to be considered. To include the potential impact of these situations in the unevenness assessment, a third related node is set, i.e., sensing nodes symmetrically distributed with the first sensing node. It's understood that in the absence of foreign object interference, the difference in mutual capacitance values ​​between symmetrical sensing nodes is usually within a certain receiving range. If the difference is large (greater than the third threshold), it indicates that there might be pressure on one side and no touch on the other. In this case, an additional unevenness value needs to be added.

[0072] It should also be noted that, based on practical experience, Figure 5 The effect of the situation shown on unevenness is usually greater than Figure 3 and Figure 4 The situation is illustrated. In this case, the following two implementation methods are possible, but not limited to: Method 1: The third weight can be set to be greater than the first and second weights. In this case, only the unevenness value of half of the sensing nodes along the first or second direction is calculated to determine whether the third weight needs to be added. The other half does not need to have the third weight added by default.

[0073] Method 2: The third weight can be set to half of the third weight in Method 1 (or other proportions). For example, the third weight can be set to be equal to the first weight or the second weight. In this case, the influence of the third related node is calculated for each sensing node.

[0074] It is understandable that the first method increases the weights but halves the number of sensing nodes, while the second method halves the weights but keeps the number of sensing nodes the same. The final effect of both methods is the same.

[0075] For example, for method one, such as Figure 6 As shown, assuming the sensing node at position B[0][0] is the first sensing node, and the sensing node at position B[N-1][0] is the third related node of the first sensing node, the difference between their mutual compatibility values ​​is calculated to obtain the corresponding third difference self_delta[0][0]: B[0][0]-B[N-1][0]=self_delta[0][0]. If this third difference (taking the absolute value) is greater than the third threshold, the unevenness value of the first sensing node is increased by the second weight. The same applies to the other sensing nodes, which will not be elaborated here.

[0076] It should also be noted that the original unevenness value of each sensing node can be set to 0 by default (or other default values ​​can be set). Usually, each relevant node makes a judgment to determine whether an unevenness value needs to be increased, and finally obtains the unevenness value of each sensing node, and then obtains the unevenness of the touch screen based on this value.

[0077] In some embodiments, determining the unevenness of the touch screen based on the unevenness value of each sensing node may include: summing the unevenness values ​​of each sensing node to obtain the unevenness of the touch screen.

[0078] It should be noted that, in the embodiments of this application, the unevenness can be obtained by calculating the unevenness value of each sensing node and then adding them together; or, the unevenness of the touch screen can be determined by traversing each sensing node of the touch screen.

[0079] For details on traversal methods, please refer to [link / reference]. Figure 7 The following is a detailed flowchart illustrating the calculation of unevenness according to an embodiment of this application, as shown in the figure. Figure 7 As shown, the following steps may be included: S210: Set the initial value of the unevenness count_node to 0.

[0080] S211: Determine if Tx_index is less than Tx_TOTAL_NODE.

[0081] It should be noted that Tx_index is the index or coordinate of the sensing node in the direction of the driving electrode (Tx), and Tx_TOTAL_NODE is the total number of sensing nodes in the direction of the driving electrode (Tx), i.e., N mentioned above.

[0082] If the judgment result is yes, proceed to step S212; otherwise, proceed to step S230.

[0083] S212: Determine if Rx_index is less than Rx_TOTAL_NODE.

[0084] It should be noted that Rx_index is the index or coordinate of the sensing node in the direction of the sensing electrode (Rx), and Rx_TOTAL_NODE is the total number of sensing nodes in the direction of the sensing electrode (Rx), i.e., the aforementioned M.

[0085] If the judgment result is yes, proceed to step S213; otherwise, proceed to step S229.

[0086] S213: Calculate the first difference: tx1_value = data_ptr[Tx_index][Rx_index] - data_ptr[Tx_index][Rx_index+1u]; It should be noted that steps S213-S217 correspond to the calculation of the unevenness in the direction of the sensing electrode (Rx).

[0087] It can be understood that the first difference in step S213 is the difference in mutual capacitance between the first sensing node and the first related node in the direction of the sensing electrode (Rx).

[0088] Wherein, Tx_index is the index or coordinate of the sensing node in the direction of the driving electrode (Tx), [Tx_index][Rx_index] is the coordinate of the first sensing node, [Tx_index][Rx_index+1u] is the coordinate of the first related node in the direction of the sensing electrode (Rx), [Rx_index+1u] indicates that the index value is increased by 1 relative to [Rx_index], data_ptr[Tx_index][Rx_index] is the mutual capacitance value of the first sensing node, data_ptr[Tx_index][Rx_index+1u] is the mutual capacitance value of the first related node in the direction of the sensing electrode (Rx), and tx1_value represents the first difference in the direction of the sensing electrode (Rx). Here, the difference can be taken as an absolute value.

[0089] S214: Calculate the second difference: tx2_value = data_ptr[Tx_index][Rx_index] - data_ptr[Tx_index][Rx_index+2u]; It should be noted that [Tx_index][Rx_index+2u] represents the coordinates of the second related node in the direction of the sensing electrode (Rx) (intervald from the first sensing node by one sensing node in the direction of the sensing electrode (Rx)). [Rx_index+2u] indicates that the index value is 2 greater than [Rx_index]. data_ptr[Tx_index][Rx_index+2u] is the mutual capacitance value of the second related node in the direction of the sensing electrode (Rx), and tx2_value represents the second difference in the direction of the sensing electrode (Rx). Here, the difference can be taken as an absolute value.

[0090] S215: Compare the first difference tx1_value with the second difference tx2_value, and select the largest difference as the target difference tx_value.

[0091] S216: Determine whether the target difference tx_value is greater than the first threshold threshold1; It should be noted that the target difference tx_value is compared with the first threshold threshold1. If the target difference tx_value is greater than the first threshold threshold1, step S217 is executed; otherwise, step S218 is executed.

[0092] S217: Increment 1 by tmp_count_nodes (first weight).

[0093] It should be noted that in this example, the weights are summed directly during the traversal process, and the sum obtained after the traversal is the unevenness. Therefore, the concept of "unevenness value" can be skipped in this process.

[0094] It should also be noted that, here, we take the first weight (which is also the second weight) as 1 as an example.

[0095] S218: Calculate the first difference: rx1_value = data_ptr[Tx_index][Rx_index] - data_ptr[Tx_index+1u][Rx_index]; It should be noted that steps S218-S222 correspond to the calculation of the unevenness in the direction of the driving electrode (Tx).

[0096] It can be understood that the first difference in step S218 is the difference in mutual capacitance between the first sensing node and the first related node in the direction of the driving electrode (Tx).

[0097] Where [Tx_index+1u][Rx_index] represents the coordinates of the first relevant node in the direction of the driving electrode (Tx), [Tx_index+1u] indicates that the index value is increased by 1 relative to [Tx_index], data_ptr[Tx_index+1u][Rx_index] represents the mutual capacitance value of the first relevant node in the direction of the driving electrode (Tx), and rx1_value represents the first difference in the direction of the driving electrode (Tx). Here, the difference can be taken as an absolute value.

[0098] S219: Calculate the second difference: rx2_value = data_ptr[Tx_index][Rx_index+2u] - data_ptr[Tx_index][Rx_index]; It should be noted that [Tx_index+2u][Rx_index] represents the coordinates of the second related node in the direction of the driving electrode (Tx) (intervald from the first sensing node by one sensing node in the direction of the driving electrode (Tx)). [Tx_index+2u] indicates that the index value is 2 greater than [Tx_index]. data_ptr[Tx_index+2u][Rx_index] is the mutual capacitance value of the second related node in the direction of the driving electrode (Tx), and rx2_value represents the second difference in the direction of the driving electrode (Tx). Here, the difference can be taken as an absolute value.

[0099] S220: Compare the first difference rx1_value with the second difference rx2_value, and select the largest difference as the target difference rx_value.

[0100] S221: Determine whether the target difference rx_value is greater than the second threshold threshold2; It should be noted that the target difference rx_value is compared with the second threshold threshold2. If the target difference rx_value is greater than the second threshold threshold2, step S222 is executed; otherwise, step S223 is executed.

[0101] S222: Increment 1 in the unevenness count of nodes tmp.

[0102] It should be noted that, here, we take the first weight (which is also the second weight) as 1 as an example.

[0103] S223: Determine if Tx_index is less than half Tx_TOTAL_NODE.

[0104] It should be noted that steps S223-S226 correspond to calculating the unevenness of the half-region in the direction of the driving electrode (Tx). Here, corresponding to the aforementioned Method 1, the half-region in the direction of the driving electrode (Tx) is taken as the sensing node whose influence on the third related node needs to be calculated.

[0105] Wherein, half Tx_TOTAL_NODE represents the number of sensing nodes in half of the driving electrode (Tx) direction. If Tx_index is less than half Tx_TOTAL_NODE, proceed to step S224; otherwise, proceed to step S227.

[0106] S224: Calculate the third difference: tx_delta=data_ptr[Tx_index][Rx_index]-data_ptr[Tx_index half mirror][Rx_index].

[0107] It should be noted that [Tx_index half mirror][Rx_index] represents the coordinates of the third related node, data_ptr[Tx_index half mirror][Rx_index] represents the mutual compatibility value of the third related node, and tx_delta represents the third difference. Here, the difference can be taken as the absolute value.

[0108] S225: Determine whether the third difference tx_delta is greater than the third threshold threshold3; It should be noted that the third difference tx_delta is compared with the third threshold threshold3. If the third difference tx_delta is greater than the third threshold threshold3, step S226 is executed; otherwise, step S227 is executed.

[0109] S226: Unevenness tmp_count_nodes plus 2 (third weight).

[0110] It should be noted that, here, we take the third weight as an example of 2.

[0111] S227: Count_Node=Tmp_count_nodes.

[0112] It should be noted that the unevenness Tmp_count_nodes calculated by cumulative summation is assigned to the unevenness Count_Node.

[0113] S228: Increment the row index by 1 (denoted as row++).

[0114] It should be noted that, in this embodiment of the application, the direction of the sensing electrode (Rx) can be denoted as the row direction, and the corresponding index / coordinate Rx_index can be denoted as the row index / row coordinate. In this step, the index Rx_index of the sensing electrode (Rx) direction is incremented by 1, and steps S212-S227 are continued; until Rx_index is greater than Rx_TOTAL_NODE, step S229 is entered.

[0115] It is understandable that the summation here is based on the unevenness values ​​obtained from the previous steps.

[0116] S229: Increment the column index by 1 (denoted as col++).

[0117] It should be noted that, in this embodiment, the direction of the driving electrode (Tx) can be denoted as the column direction, and the corresponding index / coordinate Tx_index can be denoted as the column index / coordinate. In this step, the index Tx_index of the driving electrode (Tx) direction is incremented by 1, and steps S212-S227 are continued; until Tx_index is greater than Tx_TOTAL_NODE, step S230 is entered.

[0118] It is understandable that the summation here is based on the unevenness values ​​obtained from the previous steps.

[0119] S230: Output unevenness Count_Node.

[0120] It should be noted that after traversing all the sensing nodes, the obtained unevenness is the sum of the unevenness values ​​of all sensing nodes, i.e., unevenness Count_Node.

[0121] Thus, according to the above steps S210-S230, the unevenness of the touch screen can be obtained by traversing each sensing node of the touch screen.

[0122] S12: Determine whether to use the mutual capacitance signal to update the baseline signal based on the signal unevenness and baseline unevenness.

[0123] It should be noted that since the baseline is a non-touch mutual capacitance value, which is the same as the mutual capacitance value refreshed every frame, the signal unevenness and baseline unevenness can be calculated in the same way as the aforementioned steps S10-S11.

[0124] It should also be noted that a good baseline has the lowest unevenness; while an incorrect baseline, i.e., one with hands, fingers, etc., will have increased unevenness. This application's embodiments use actual mobile phone whole-device testing as an example; please refer to [link to relevant documentation]. Figure 8 It shows a schematic diagram comparing the unevenness under different conditions.

[0125] like Figure 8 As shown, the horizontal axis number indicates different detection times, and the vertical axis represents the roughness (also known as the roughness index); at least three broken lines represent the conditions of no touch, finger touch, and palm touch, respectively. Figure 7 The baseline unevenness is calculated using the method shown. For the same horizontal axis number, there are three different unevenness values, which are obtained by detecting the same touchscreen under three different touch conditions. For example, for the case with horizontal axis number 1, i.e., the case shown by the dotted line in the figure, the unevenness is approximately 240 when there is no touch, approximately 300 when touched by a finger, and approximately 365 when touched by a palm.

[0126] It can be seen that when the baseline is good, the unevenness is the lowest; while when the baseline is incorrect, that is, when the baseline contains hands, fingers, etc., the unevenness will increase.

[0127] In this way, the signal unevenness is compared with the baseline unevenness. If the signal unevenness is less than the baseline unevenness, it means that the baseline is likely to be an incorrect baseline. If the baseline is determined to be an incorrect baseline, the current mutual capacitance value of each sensing node is used as the new reference mutual capacitance value to update the baseline and obtain a new baseline.

[0128] Specifically, if K consecutive frames satisfy the following conditions: the baseline unevenness is greater than the signal unevenness and the difference exceeds a preset threshold, then the baseline signal is updated using the mutual capacitance signal, where K is a positive integer.

[0129] It should be noted that "updating the baseline signal using the mutual capacitance signal" specifically means: using the current mutual capacitance value of each sensing node as the new reference mutual capacitance value to obtain a new baseline signal.

[0130] It should also be noted that during normal operation of the touchscreen, signal unevenness can be calculated for each frame. To ensure accurate judgment and prevent misjudgment due to the special circumstances of a single frame, baseline updates are only performed when the signal unevenness obtained from multiple consecutive frames is greater than the baseline unevenness. That is, K can be 1 or a positive integer greater than 1. To ensure optimal results, this embodiment preferably uses a positive integer greater than 1. For example, K can be 5, 10, etc.

[0131] It should also be noted that the mutual capacitance value of the touch screen may be uneven. Therefore, in order to avoid misjudgment, when updating the baseline, it is required that the baseline unevenness is greater than the signal unevenness, and the greater value must exceed a preset threshold. This is to ensure that there is indeed a large difference between the signal unevenness and the baseline unevenness, so that it can be confirmed that there is a problem with the baseline, rather than an error. This preset threshold can be set in combination with the actual device design and precision.

[0132] When K consecutive frames satisfy the condition that the baseline unevenness is greater than the signal unevenness exceeding a preset threshold, the mutual capacitance signal of the latest frame can be selected to update the baseline signal.

[0133] Thus, choosing K consecutive frames as the baseline update condition can suppress random transient noise and improve the accuracy of baseline updates. For example, a drop of water may only last for 1-2 frames, and such interference is eliminated before the condition is met. At the same time, selecting the latest frame of data best represents the current environmental state; using earlier frame data as the starting point for the new baseline will introduce lag.

[0134] Alternatively, other frames in the K-frames can be selected for baseline updates in this embodiment of the disclosure, without specific limitations.

[0135] In summary, this application proposes a method for quickly and accurately updating the baseline (baseline recovery) by calculating the current baseline unevenness and the current mutual capacitance signal unevenness (i.e., the current unevenness). The core algorithm is an unevenness calculation method. This scheme designs a parameter, namely Unevenness Count_Node (or Unevenness Index), to reflect whether the mutual capacitance signal is flat. If the screen contains conductive objects such as a hand, the mutual capacitance signal unevenness is high; conversely, if there are no conductive objects such as a hand on the screen, the unevenness is low. In this application embodiment, one or more of the following conditions are considered when calculating the unevenness: 1. If the capacitance difference (first difference) between the current sensing node and the first related node (a sensing node adjacent to the current sensing node) is greater than a certain threshold (first threshold), it indicates that this sensing node causes the unevenness to need to be incremented by one. This process iterates through all sensing nodes in the mutual capacitance data to obtain the unevenness calculated using this method. This situation generally occurs when there is a well-grounded hand or finger touching the screen; the correlation matrix can be referenced. Figure 3 .

[0136] 2. If the capacitance difference (second difference) between the current sensing node and the second related node (one sensing node away from the current sensing node) is greater than a certain threshold (second threshold), it indicates that this sensing node causes the unevenness to need to be incremented by one. This process is repeated for all sensing nodes in the mutual capacitance data to obtain the unevenness calculated using this method. This situation generally occurs with poorly grounded hands or when fingers touch the screen. The correlation matrix can be referenced. Figure 4 .

[0137] 3. If the capacitance difference between the current sensing node and the third related node (such as a sensing node symmetrical about the drive electrode (Tx) direction) is greater than a certain threshold (the third threshold), it indicates that the screen is generally uneven. Empirically, this threshold has a higher weight, so the unevenness index needs to be increased by two. This is done by iterating through all nodes on one side of the drive electrode (Tx) to obtain the unevenness symmetrical about the drive electrode (Tx) direction, and adding it to the overall unevenness. Theoretically, when both the drive electrode (Tx) and sensing electrode (Rx) channels are normal, and there is no touch input, the mutual capacitance deviation of nodes symmetrical about the drive electrode (Tx) direction is very small. If the deviation is large, it indicates that a metal plate or other conductive surface is tilted and pressing on the screen. The correlation matrix can be referenced... Figure 5 .

[0138] The unevenness calculation method proposed in this scheme combines the three cases mentioned above. Cases 1 and 2 have the same weight, assigned a weight of 1, and the maximum value among them is taken as the unevenness. For case 3, since the capacitance values ​​of axisymmetric sensing nodes usually do not differ significantly, a weight of 2 is assigned for better differentiation. After calculating the unevenness of all calculable sensing nodes on the entire screen, the final unevenness is obtained. The relevant process can be found in [reference needed]. Figure 7 As shown, but not limited to Figure 7 The process is shown below.

[0139] According to the baseline update method of this application embodiment, firstly, the mutual capacitance signal and baseline signal of the touch screen are obtained. The mutual capacitance signal includes the current mutual capacitance value of each sensing node of the touch screen, and the baseline signal includes the reference mutual capacitance value of each sensing node. Secondly, the unevenness value of each sensing node is determined based on the mutual capacitance value of each sensing node and the mutual capacitance value of at least one related node of the sensing node. Furthermore, the unevenness of the touch screen is determined based on the unevenness value of each sensing node. The unevenness of the touch screen includes the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal. Finally, based on the signal unevenness and the baseline unevenness, it is determined whether to update the baseline signal using the mutual capacitance signal. The signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method, which includes: statistically obtaining the unevenness based on the difference in mutual capacitance values ​​between each sensing node of the touch screen and the related nodes of the sensing node. If K consecutive frames satisfy the condition that the baseline unevenness is greater than the signal unevenness and the difference between the two reaches a preset threshold, the baseline signal is updated using a mutual capacitance signal, where K is a positive integer greater than 1. Thus, this embodiment calculates the unevenness value of each sensing node in the touchscreen. During calculation, the measurement is performed by combining the sensing node itself with related nodes associated with it, accurately characterizing the degree of unevenness of the sensing node. Furthermore, by combining the unevenness values ​​of each sensing node, the unevenness of the touchscreen is obtained, enabling accurate calculation of both signal unevenness and baseline unevenness. Finally, the signal unevenness and baseline unevenness are compared to confirm the correctness of the baseline, thereby quickly identifying whether the touchscreen baseline is correct and updating erroneous baselines, thus reducing issues such as ghosting and stuttering when the screen is on while the user is holding the device.

[0140] In another embodiment of this application, such as Figure 9 As shown, it illustrates a schematic diagram of the composition structure of a touchscreen baseline update device provided in an embodiment of this application. Figure 9 As shown, the baseline update device 20 may include: The data acquisition unit 201 is used to acquire the mutual capacitance signal and baseline signal of the touch screen.

[0141] The mutual capacitance signal includes the current mutual capacitance value of each sensing node of the touch screen, and the baseline signal includes the reference mutual capacitance value of each sensing node.

[0142] The data calculation unit 202 is used to calculate the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal, respectively.

[0143] The baseline update unit 203 is used to determine whether to update the baseline signal using the mutual capacitance signal based on the signal unevenness and the baseline unevenness.

[0144] It should be noted that the signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method. The unevenness calculation method includes: statistically obtaining the unevenness based on the difference in mutual capacitance value between each sensing node of the touch screen and the related nodes of the sensing node.

[0145] Specifically, the unevenness is calculated as follows: the unevenness value of the first sensing node is determined based on the mutual capacitance value of the first sensing node and the mutual capacitance value of at least one related node of the first sensing node; the first sensing node is any sensing node in the touch screen. The unevenness of the touchscreen is determined based on the unevenness value of each sensing node.

[0146] Wherein, at least one of the following related nodes of the first sensing node includes at least one of the following: a first related node, a second related node, and a third related node; the first related node is adjacent to the first sensing node, the second related node is spaced apart from the first sensing node by at least one sensing node, and the third related node is symmetrical to the first sensing node.

[0147] In some embodiments, the touch screen includes M×N sensing nodes arranged along a first direction and a second direction; M and N are both positive integers. Determining the first associated node of the first sensing node includes: determining the adjacent sensing node located on one side of the first sensing node along the first direction as the first associated node, and / or, determining the adjacent sensing node located on one side of the first sensing node along the second direction as the first associated node; Determining a second related node of a first sensing node includes: determining a sensing node located on one side of the first sensing node along a first direction that is spaced apart from at least one sensing node as a second related node, and / or determining a sensing node located on one side of the first sensing node along a second direction that is spaced apart from at least one sensing node as a second related node. Determining the third related node of the first sensing node includes: determining the sensing node that is symmetrical to the first sensing node along a first direction as the third related node; or determining the sensing node that is symmetrical to the first sensing node along a second direction as the third related node.

[0148] In some embodiments, the first determining unit 202 is specifically configured to: determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the first related node as a first difference; if the first difference is greater than a first threshold, then the unevenness value of the first sensing node is increased by a first weight. And / or, determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the second related node as the second difference value; if the second difference value is greater than the second threshold, then the unevenness value of the first sensing node is increased by the second weight. And / or, determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the third related node as the third difference value; if the third difference value is greater than the third threshold, then the unevenness value of the first sensing node is increased by the third weight.

[0149] In some embodiments, the first determining unit 202 is further configured to: if at least one related node includes both a first related node and a second related node, then compare the larger of the first difference and the second difference with a first threshold to determine whether to increase the unevenness value of the first sensing node.

[0150] Among them, the first threshold is equal to the second threshold, the first weight is equal to the second weight, and the third weight is greater than the first weight and greater than the second weight.

[0151] In some embodiments, the data calculation unit 202 is specifically configured to add up the unevenness values ​​of each sensing node to obtain the unevenness of the touch screen.

[0152] In some embodiments, the baseline update unit 203 is specifically configured as follows: if K consecutive frames satisfy the following: the baseline unevenness is greater than the signal unevenness and the difference exceeds a preset threshold, then the baseline signal is updated using the mutual capacitance signal, where K is a positive integer.

[0153] In some embodiments, K is a positive integer greater than 1.

[0154] It should be noted that the touch screen baseline update device 20 provided in this application embodiment is used to implement the touch screen baseline update method in the aforementioned implementation. For details not disclosed in this application embodiment, please refer to the description of the aforementioned embodiment for understanding, and will not be repeated here.

[0155] Understandably, in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular component. Furthermore, the components in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional module.

[0156] If the integrated unit is implemented as a software functional module and not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0157] Therefore, this embodiment provides a computer-readable storage medium storing a computer program that, when executed by at least one processor, implements the steps of the baseline update method of any of the foregoing embodiments.

[0158] This disclosure also provides a computer program product comprising a computer program that, when executed by at least one processor, implements the steps of the touchscreen baseline update method of any of the foregoing embodiments.

[0159] Based on the aforementioned computer storage media and computer program products, see [link to relevant documentation]. Figure 10 This illustration shows a schematic diagram of the composition structure of an electronic device provided in an embodiment of this application. For example, the electronic device 30 can be a terminal device with a touchscreen, such as a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0160] In one embodiment, such as Figure 10 As shown, the electronic device 30 may include a communication interface 301, a memory 302, and a processor 303; the various components are coupled together via a bus system 304. It is understood that the bus system 304 is used to implement communication between these components. In addition to a data bus, the bus system 304 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 10 All buses are labeled as bus system 304. Among them, communication interface 301 is used for receiving and sending signals during the process of sending and receiving information with other external network elements.

[0161] Memory 302 is used to store computer programs that can run on processor 303; Processor 303 is configured to perform the steps of the aforementioned baseline update method when running the computer program.

[0162] In another embodiment, such as Figure 10 As shown, the electronic device 30 may also include a touch screen 305.

[0163] It is understood that the memory 302 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 302 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0164] The processor 303 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 303 or by instructions in software form. The processor 303 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 302, and the processor 303 reads the information in memory 302 and, in conjunction with its hardware, completes the steps of the above method.

[0165] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.

[0166] For software implementation, the techniques described herein can be achieved through modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented within the processor or externally.

[0167] In yet another embodiment of this application, another electronic device 30 is provided, which includes at least one of the baseline update devices 20 in the foregoing embodiments.

[0168] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.

[0169] It should be noted that, in this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0170] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0171] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0172] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0173] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0174] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A touchscreen baseline update method, characterized in that, The method includes: Acquire the mutual capacitance signal and baseline signal of the touch screen; Calculate the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal, respectively. Based on the signal unevenness and the baseline unevenness, determine whether to update the baseline signal using the mutual capacitance signal; The signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method, which includes: calculating the unevenness based on the difference in mutual capacitance between each sensing node of the touch screen and the related nodes of the sensing node.

2. The method according to claim 1, characterized in that, The mutual capacitance signal includes the current mutual capacitance value of each of the sensing nodes of the touch screen, and the baseline signal includes the reference mutual capacitance value of each of the sensing nodes. The unevenness is statistically determined based on the difference in mutual capacitance between each sensing node of the touchscreen and its related nodes, including: The unevenness value of the first sensing node is determined based on the mutual capacitance value of the first sensing node and the mutual capacitance value of at least one related node of the first sensing node; the first sensing node is any of the sensing nodes in the touch screen. The unevenness of the touch screen is determined based on the unevenness value of each of the sensing nodes.

3. The method according to claim 2, characterized in that, At least one of the following related nodes of the first sensing node includes: a first related node, a second related node, and a third related node; the first related node is adjacent to the first sensing node, the second related node is spaced apart from the first sensing node by at least one sensing node, and the third related node is symmetrical to the first sensing node.

4. The method according to claim 3, characterized in that, The touch screen includes M×N sensing nodes arranged along a first direction and a second direction; Both M and N are positive integers; Determining the first associated node of the first sensing node includes: determining the adjacent sensing node located on one side of the first sensing node along the first direction as the first associated node, and / or determining the adjacent sensing node located on one side of the first sensing node along the second direction as the first associated node. Determining the second related node of the first sensing node includes: determining a sensing node located on one side of the first sensing node along the first direction that is spaced apart from at least one sensing node as the second related node, and / or determining a sensing node located on one side of the first sensing node along the second direction that is spaced apart from at least one sensing node as the second related node. Determining the third related node of the first sensing node includes: determining the sensing node that is symmetrical to the first sensing node along the first direction as the third related node; or determining the sensing node that is symmetrical to the first sensing node along the second direction as the third related node.

5. The method according to claim 4, characterized in that, One half of the sensing nodes along one side of the first direction has the third related node, while the other half of the sensing nodes along the other side of the first direction does not have the third related node; or, one half of the sensing nodes along one side of the second direction has the third related node, while the other half of the sensing nodes along the other side of the second direction does not have the third related node.

6. The method according to claim 3, characterized in that, Determining the unevenness value of the first sensing node based on the mutual capacitance value of the first sensing node and the mutual capacitance value of at least one related node of the first sensing node includes: The difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the first related node is determined as a first difference value; if the first difference value is greater than a first threshold, the unevenness value of the first sensing node is increased by a first weight. And / or, determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the second related node as a second difference value; if the second difference value is greater than a second threshold, then the unevenness value of the first sensing node is increased by a second weight; And / or, determine the difference between the mutual capacitance value of the first sensing node and the mutual capacitance value of the third related node as a third difference value; if the third difference value is greater than a third threshold, then the unevenness value of the first sensing node is increased by a third weight.

7. The method according to claim 6, characterized in that, The first threshold is equal to the second threshold, the first weight is equal to the second weight, and the method further includes: If the at least one related node includes both the first related node and the second related node, then the larger of the first difference and the second difference is compared with the first threshold to determine whether to increase the unevenness value of the first sensing node.

8. The method according to claim 6, characterized in that, The third weight is greater than the first weight and greater than the second weight.

9. The method according to claim 2, characterized in that, Determining the unevenness of the touchscreen based on the unevenness value of each of the sensing nodes includes: The unevenness of the touch screen is obtained by summing the unevenness values ​​of each of the sensing nodes.

10. The method according to any one of claims 1-9, characterized in that, The step of determining whether to update the baseline signal using the mutual capacitance signal based on the signal unevenness and the baseline unevenness includes: If K consecutive frames satisfy the condition that the baseline unevenness is greater than the signal unevenness and the difference exceeds a preset threshold, then the baseline signal is updated using the mutual capacitance signal, where K is a positive integer.

11. The method according to claim 10, characterized in that, K is a positive integer greater than 1.

12. A touchscreen baseline update device, characterized in that, The device includes: The data acquisition unit is used to acquire the mutual capacitance signal and baseline signal of the touch screen; A data calculation unit is used to calculate the signal unevenness of the mutual capacitance signal and the baseline unevenness of the baseline signal, respectively. A baseline update unit is used to determine whether to update the baseline signal using the mutual capacitance signal based on the signal unevenness and the baseline unevenness. The signal unevenness and the baseline unevenness are obtained using the same unevenness calculation method, which includes: calculating the unevenness based on the difference in mutual capacitance between each sensing node of the touch screen and the related nodes of the sensing node.

13. An electronic device, characterized in that, The electronic device includes: a touch screen, a memory, and a processor; The memory is used to store computer programs that can run on the processor; The processor is configured to perform the steps of the method as described in any one of claims 1 to 11 when running the computer program.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by at least one processor, implements the steps of the method as described in any one of claims 1 to 11.

15. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, implements claim 1. The steps of any one of the methods described in 11.