Touch position determination method, apparatus, and electronic device

By implementing a waterproof mode on a capacitive touchscreen and using self-capacitance data to distinguish between water droplets and finger touches, the problem of false signals and touch failures caused by water droplets is solved, improving the accuracy and sensitivity of touchscreen operation in scenarios with large water droplets.

CN117806482BActive Publication Date: 2026-07-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2023-12-28
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Water droplets falling on a capacitive touchscreen can cause false touch signals or malfunctions in finger touches. Furthermore, it is difficult to restore the touchscreen's sensitivity after wiping away the water droplets, thus affecting the normal operation of the touchscreen.

Method used

By implementing a waterproof mode on a capacitive touchscreen, the touch position is determined using self-capacitance data, distinguishing between real finger touches and capacitance value shifts caused by water droplets. Alternating scanning technology is used to detect water droplets and optimize touch operation in waterproof mode.

Benefits of technology

It effectively distinguishes between water droplets and finger touches, avoids accidental triggering, improves the accuracy and sensitivity of touchscreen operation in scenarios with large water droplets, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117806482B_ABST
    Figure CN117806482B_ABST
Patent Text Reader

Abstract

The application relates to a touch position determination method, device and electronic equipment. The method comprises the following steps: in response to entering a waterproof mode, acquiring self-capacitance data corresponding to a touch operation of a capacitive touch screen; and determining a touch position of the touch operation based on the self-capacitance data. The application can improve the waterproof effect in the waterproof mode, for example, the determination of the touch position of the touch operation of a user in a large water drop scenario, thereby avoiding the problem that the user cannot control the mobile phone in the large water drop scenario.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of touch screen technology, and in particular to a method, apparatus and electronic device for determining touch position. Background Technology

[0002] A touchscreen is a display screen with touch functionality, and capacitive touchscreens are currently the most widely used type. However, water increases capacitance, affecting the capacitive touchscreen's signal interpretation. This can lead to false touch signals or touch failure, and when the water droplets are wiped away, the original touch area may become unresponsive, easily causing touchscreen malfunctions. Summary of the Invention

[0003] Therefore, it is necessary to provide a touch position determination method, device, and electronic device that can improve waterproofing performance in response to the above-mentioned technical problems.

[0004] In a first aspect, this application provides a touch position determination method for an electronic device equipped with a capacitive touchscreen, the method comprising:

[0005] In response to entering waterproof mode, acquire self-capacitance data corresponding to touch operations on the capacitive touchscreen;

[0006] The touch position of the touch operation is determined based on the self-capacitance data.

[0007] In one embodiment, the waterproof mode indicates the presence of a large area of ​​water droplets on the capacitive touchscreen; the method further includes:

[0008] When water droplets are present on the capacitive touchscreen, it enters waterproof mode;

[0009] In waterproof mode, if the touch data collected by the capacitive touchscreen meets the entry conditions for waterproof mode, then the waterproof mode will be confirmed to be entered.

[0010] In one embodiment, if the touch data collected by the capacitive touchscreen meets the entry conditions for waterproof mode, then entering waterproof mode is confirmed, including:

[0011] The touch area is obtained by performing a region search on the full-screen data of the capacitive touchscreen.

[0012] Based on the mutual capacitance value of the touch area and / or the self capacitance value corresponding to the touch area, positive and / or negative feature information is obtained.

[0013] Based on positive and / or negative feature information, confirm whether the entry conditions for waterproof mode are met.

[0014] In one embodiment, a region lookup is performed on the full-screen data of the capacitive touchscreen to obtain the touch area, including:

[0015] The touch area is obtained by searching for the target maximum value in the full-screen data.

[0016] In one embodiment, the target maximum value is the maximum value in the full-screen data that is greater than the touch threshold;

[0017] A region search is performed on the target maximum value in the full-screen data to obtain the touch area, including:

[0018] The search continues until a full-screen data point near the target maximum that meets the region inclusion criteria is found, at which point the search stops. The region inclusion criteria include an absolute value greater than the inclusion threshold.

[0019] The connected region formed by the region where the target maximum value is located and the region where the full-screen data that meets the inclusion criteria is located is determined as the touch region.

[0020] In one embodiment, the negative feature information includes the number of capacitance values ​​and the number of first touch areas; the positive feature information includes the number of second touch areas.

[0021] Based on the mutual capacitance value and the corresponding self-capacitance value of the touch area, positive and negative feature information is obtained. Then, based on the positive and negative feature information, it is determined whether the conditions for entering waterproof mode are met, including:

[0022] Based on the mutual capacitance value of the touch area, determine the number of first touch areas and the number of second touch areas in the touch area; the first touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative, and the second touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive.

[0023] If the number of first touch areas is greater than the first number threshold and the number of second touch areas is greater than the second number threshold, then the rectangular area obtained by boundary statistics of the touch areas is determined.

[0024] Obtain the number of capacitance values ​​in the rectangular region whose difference from the self-capacitance reference value is negative.

[0025] If the number of capacitance values ​​is greater than the third threshold, then the conditions for entering the waterproof mode are met.

[0026] In one embodiment, negative feature information includes the number of first touch areas; positive feature information includes the number of second touch areas.

[0027] Based on the mutual capacitance value of the touch area, positive and negative feature information is obtained. Then, based on the positive and negative feature information, it is determined whether the conditions for entering waterproof mode are met, including:

[0028] Based on the mutual capacitance value of the touch area, determine the number of first touch areas and the number of second touch areas in the touch area; the first touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative, and the second touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive.

[0029] If the number of first touch areas is greater than the first number threshold and the number of second touch areas is greater than the second number threshold, then the conditions for entering the waterproof mode are met.

[0030] In one embodiment, the negative feature information includes the number of capacitance values;

[0031] Based on the self-capacitance value corresponding to the touch area, negative value feature information is obtained, and based on the negative value feature information, it is determined whether the conditions for entering the waterproof mode are met, including:

[0032] The rectangular area obtained by boundary statistics of the touch area is determined;

[0033] Obtain the number of capacitance values ​​in the rectangular region whose difference from the self-capacitance reference value is negative.

[0034] If the number of capacitance values ​​exceeds the threshold, the conditions for entering the waterproof mode are met.

[0035] In one embodiment, a region lookup is performed on the full-screen data of the capacitive touchscreen to obtain the touch area, including:

[0036] The preset shape area formed by full-screen data whose absolute value is greater than the area threshold is determined as the touch area.

[0037] In one embodiment, the preset shape area includes a rectangular area; the positive feature information includes a positive touch area;

[0038] Based on the mutual capacitance value of the touch area, positive feature information is obtained, and based on the positive feature information, it is determined whether the entry conditions for waterproof mode are met, including:

[0039] Based on the mutual capacitance value of the touch area, a positive touch area is determined; a positive touch area is a touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive.

[0040] The rectangular area is divided into multiple quadrant position areas. When the quadrant position area where the positive touch area is located meets the shape distribution of the positive area, it is confirmed that the entry condition for waterproof mode is met.

[0041] In one embodiment, the preset shape area includes a rectangular area; the negative value feature information includes a negative value touch area;

[0042] Based on the mutual capacitance value of the touch area, negative value feature information is obtained, and based on the negative value feature information, it is determined whether the conditions for entering the waterproof mode are met, including:

[0043] Based on the mutual capacitance value of the touch area, the negative value touch area is determined; the negative value touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative.

[0044] The rectangular area is divided into multiple quadrant position areas. When the quadrant position area where the negative value touch area is located meets the shape distribution of the negative value area, it is confirmed that the entry condition for waterproof mode is met.

[0045] In one embodiment, if the touch data collected by the capacitive touchscreen meets the entry conditions for waterproof mode, then entering waterproof mode is confirmed, including:

[0046] Acquire touch data collected according to the sampling period;

[0047] If the touch data in multiple consecutive sampling periods meets the conditions for entering waterproof mode, then entering waterproof mode is confirmed.

[0048] In one embodiment, if the touch data within multiple consecutive sampling periods all meet the entry conditions for waterproof mode, then entering waterproof mode is confirmed, including:

[0049] Obtain the number of consecutive sampling periods that meet the entry conditions for waterproof mode;

[0050] If the number of consecutive occurrences exceeds a preset threshold, the system will enter waterproof mode.

[0051] In one embodiment, after confirming entry into waterproof mode, the method further includes:

[0052] If the full-screen data of the capacitive touchscreen meets the exit conditions for waterproof mode, then confirm exiting waterproof mode.

[0053] In one embodiment, the full-screen data includes the mutual capacitance data of the capacitive touchscreen; if the full-screen data of the capacitive touchscreen meets the exit conditions for the waterproof mode, then exiting the waterproof mode is confirmed, including:

[0054] Based on the mutual capacitance data, the target region is determined; the target region is the area where the difference between the mutual capacitance data and the mutual capacitance reference data is negative.

[0055] If the number of target areas is 0, then when the product of the number of consecutive areas and the first attenuation coefficient is less than the preset threshold, the waterproof mode will be exited.

[0056] If the number of target areas is not 0, then when the product of the consecutive number and the second attenuation coefficient is less than the preset threshold, the waterproof mode will be exited.

[0057] In one embodiment, the first attenuation coefficient is a fixed value; the second attenuation coefficient is the ratio of the number of target regions to the number of mutual capacitance data.

[0058] In one embodiment, the method further includes:

[0059] In waterproof mode, acquire touch data corresponding to touch operations performed before entering waterproof mode;

[0060] Based on touch data, determine the touch position corresponding to the touch operation after entering waterproof mode.

[0061] In one embodiment, determining the touch position of a touch operation based on self-capacitance data includes:

[0062] Obtain the self-capacitance coordinates from the self-capacitance data; the self-capacitance coordinates are either centroid coordinates or center coordinates.

[0063] The touch coordinates of the touch operation are determined based on the self-capacitance coordinates and the operation type of the touch operation.

[0064] In one embodiment, the self-capacitance data includes first self-capacitance data of the transmitting channel of the touch area corresponding to the touch operation, and second self-capacitance data of the receiving channel of the touch area.

[0065] The centroid coordinates obtained from capacitance data include:

[0066] Determine the first extreme point in the first self-capacitance data and the second extreme point in the second self-capacitance data;

[0067] Obtain the nodes that are adjacent to the first extreme point on the left and right, and the nodes that are adjacent to the second extreme point on the left and right;

[0068] The centroid coordinates are obtained based on the channel number, the self-compensation value corresponding to the first extreme point, the self-compensation values ​​corresponding to the nodes adjacent to the first extreme point on the left and right, the self-compensation value corresponding to the second extreme point, and the self-compensation values ​​corresponding to the nodes adjacent to the second extreme point on the left and right.

[0069] In one embodiment, both the first extreme point and the second extreme point are local maxima.

[0070] In one embodiment, the center coordinates are the coordinates of the center point of the touch area corresponding to the touch operation.

[0071] In one embodiment, the operation types include click operations and swipe operations;

[0072] Based on the centroid coordinates and the type of touch operation, determine the touch coordinates of the touch operation, including:

[0073] When the operation type is a click operation, the self-capacitance coordinates are used as the touch coordinates;

[0074] When the operation type is a swipe operation, the self-capacitance coordinates are used as the touch coordinates; or, the mutual capacitance coordinates corresponding to the mutual capacitance data of the touch operation are obtained, and the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates are used as the touch coordinates.

[0075] In one embodiment, the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates include:

[0076] Obtain the first product of the first coefficient and the self-capacitance coordinates, and the second product of the second coefficient and the mutual capacitance coordinates; wherein the sum of the first coefficient and the second coefficient is 1;

[0077] The sum of the first and second products is used as the touch coordinates.

[0078] In one embodiment, the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates include:

[0079] Based on the self-capacitance coordinates, the mutual capacitance coordinates are subjected to polynomial curve fitting or multiplication of multiple coefficients to obtain the corrected coordinates.

[0080] In one embodiment, the mutual capacitance coordinates are the coordinates of the center point of the touch area corresponding to the touch operation.

[0081] Secondly, this application also provides a touch position determination device for use in electronic devices equipped with capacitive touchscreens, the device comprising:

[0082] The self-capacitance data acquisition module is used to acquire self-capacitance data corresponding to touch operations on a capacitive touchscreen in response to entering waterproof mode.

[0083] The touch position determination module is used to determine the touch position of a touch operation based on self-capacitance data.

[0084] Thirdly, this application also provides an electronic device, including a capacitive touch screen, a memory, and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.

[0085] In one embodiment, the capacitive touchscreen is a mutual capacitive touchscreen.

[0086] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.

[0087] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.

[0088] The aforementioned touch position determination method, apparatus, and electronic device determine the touch position of a touch operation in a waterproof mode based on the self-capacitance data corresponding to the touch operation on a capacitive touchscreen, i.e., by determining the actual touch position based on the self-capacitance. This application can improve the waterproof effect in a waterproof mode, for example, in determining the touch position of a user's touch operation in a large water droplet scenario, avoiding the problem of users being unable to operate the phone in such a scenario. Attached Figure Description

[0089] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0090] Figure 1 This is a schematic diagram of a touch-sensitive numeric keypad in a large water droplet scene within an information interface.

[0091] Figure 2 A schematic diagram of the information interface responding to the numeric keys;

[0092] Figure 3 A diagram illustrating the data input for pressing numeric keys on a touchscreen.

[0093] Figure 4 A diagram illustrating the process of drawing lines in a large water droplet scene;

[0094] Figure 5 This is an application environment diagram of a touch position determination method in one embodiment;

[0095] Figure 6 This is a flowchart illustrating a touch position determination method in one embodiment;

[0096] Figure 7 This is a schematic diagram of the waterproof mode testing process in one embodiment;

[0097] Figure 8 This is a schematic diagram of the process of entering waterproof mode in one embodiment;

[0098] Figure 9 This is a schematic diagram of data features for a large water droplet scene in one embodiment;

[0099] Figure 10 This is a schematic diagram illustrating the determination of a touch area in one embodiment;

[0100] Figure 11 This is a flowchart illustrating the process of confirming that the conditions for entering the waterproof mode are met in one embodiment.

[0101] Figure 12 This is a schematic diagram of mutual capacitance data in one embodiment;

[0102] Figure 13 This is a schematic diagram of self-capacitance data in one embodiment;

[0103] Figure 14 This is a flowchart illustrating the process of confirming that the conditions for entering the waterproof mode are met in another embodiment;

[0104] Figure 15 This is a flowchart illustrating the process of confirming that the conditions for entering the waterproof mode are met in yet another embodiment.

[0105] Figure 16 This is a schematic diagram of a process for confirming the conditions for entering the waterproof mode based on the shape of the positive region in one embodiment;

[0106] Figure 17 This is a schematic diagram of quadrant location region division in one embodiment;

[0107] Figure 18 This is a schematic diagram of a process for confirming the entry conditions for waterproof mode based on the shape of the negative value region in one embodiment;

[0108] Figure 19 This is a schematic diagram of the process of entering waterproof mode in another embodiment;

[0109] Figure 20 This is a schematic diagram illustrating the specific process of entering waterproof mode in one embodiment;

[0110] Figure 21 This is a schematic diagram of the process of exiting waterproof mode in one embodiment;

[0111] Figure 22 This is a flowchart illustrating the process of entering and exiting the large water droplet mode in one embodiment;

[0112] Figure 23This is a flowchart illustrating the process of determining touch coordinates in one embodiment;

[0113] Figure 24 This is a schematic diagram of self-capacitance data in one embodiment;

[0114] Figure 25 This is a schematic diagram of the self-capacitance data arrangement in one embodiment;

[0115] Figure 26 This is a schematic diagram of channel numbers in one embodiment;

[0116] Figure 27 This is a schematic diagram of the actual touch position in one embodiment;

[0117] Figure 28 This is a schematic diagram illustrating the process of determining touch coordinates for a touch operation in one embodiment;

[0118] Figure 29 This is a schematic diagram of the waterproofing process for a large water droplet scenario in one embodiment;

[0119] Figure 30 This is a structural block diagram of a touch position determination device in one embodiment;

[0120] Figure 31 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0121] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0122] 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.

[0123] It is understood that terms such as "first" and "second" in this application are used only to distinguish similar objects and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. The term "connection" in the embodiments of this application refers to various connection methods such as direct or indirect connection. It is understood that if the connected circuits, modules, units, etc., transmit electrical signals or data to each other, it should be understood as "electrical connection," "communication connection," etc.

[0124] It is understandable that "at least one" refers to one or more, while "multiple" refers to two or more.

[0125] When used herein, the singular forms of “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising / including” or “having,” etc., specify the presence of the stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not preclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. Meanwhile, the term “and / or” as used in this specification includes any and all combinations of the associated listed items.

[0126] Water increases capacitance, affecting the signal recognition of capacitive touchscreens. Even after wiping away water droplets, touch sensitivity can still be problematic, producing false touch signals until a period of time before a finger touch is detected, and it's difficult to restore the original touch sensitivity. Solving the problems of finger touch failure and false triggers caused by water is a major challenge in multi-touch capacitive touchscreen design. When water falls on the touchscreen, its conductivity alters the electric field coupling between the two sensing modules. For a water droplet the size of a finger, the resulting signal change will be smaller than that of a finger touch, typically about one-quarter the size, but in the opposite direction.

[0127] Taking a mutual capacitance touchscreen as an example, since finger touches reduce mutual capacitance while water droplets increase it, designers might assume that water droplets on the capacitive screen wouldn't be mistaken for finger touches, meaning there wouldn't be any false triggering. However, when the offset of the basic line value caused by water approaches or exceeds the set touch threshold, a false trigger occurs the instant the water is wiped away. In many cases, this false trigger is difficult to recover from because the offset basic line value is not easily updated back to the normal value. False triggers can persist for a long time, sometimes even requiring a reset and restart of the touchscreen system.

[0128] Eliminating false triggers caused by water droplets being wiped away is a challenge in the waterproof design of mutual capacitance screens. To solve this problem, it's crucial to first determine when the water droplet first appeared on the screen, as the shift in the fundamental line value towards the opposite direction of the AD conversion value at the time of finger touch can have various causes. These include changes in ambient temperature (high and low temperature tests) and humidity; static electricity interference; the finger being on the touchscreen at startup and then removed after startup, etc.

[0129] The key to determining the presence of water droplets on a mutual capacitance screen lies in distinguishing between changes in the baseline line value caused by water droplets and those caused by other factors. The different behaviors resulting from the influence of water on self-capacitance and the mutual capacitance screen are the main characteristics of water on mutual capacitance touchscreens. Fully utilizing this characteristic and employing alternating scanning makes waterproof design of mutual capacitance touchscreens possible, requiring the touchscreen to perform not only mutual capacitance scanning but also self-capacitance scanning. Through alternating scanning, the signal generated by water droplets is detected among signal changes caused by various factors. Once the signal generated by a water droplet is detected, the baseline line value remains unchanged until it is wiped away, at which point the baseline line value is updated according to the previous rules.

[0130] In touch operation scenarios, taking the large water droplet scene of the information interface as an example, such as... Figure 1 In the information interface shown, when touching the numeric keypad in the large water droplet scenario, the actual key touched is 5, but the response is for key 4. This is mainly because the large water droplet alters the data, causing the current coordinates to calculate the position of key 4. Figure 2 As shown, the information interface responds to the number key 4, but the finger actually touches the position of the number key 5.

[0131] Figure 3 The image shows the actual data corresponding to pressing the number 5 key. The data shows that the center of gravity is biased towards the number 4 key. Since water is a conductor, although the 5 key is pressed, a large area of ​​water is on top of the 4 key. The conductor formed by the water and the finger presses against the touchscreen, thus creating a conductive surface. Figure 3 The sensor data, i.e., the actual data generated by pressing the number key 5. Further, as... Figure 4 The image shows a line-drawing operation in a large water droplet scene, but only a single point appears instead of a line. The reason is the same as the click offset mentioned earlier. When the finger touches the water, it forms a large conductor. Although the finger moves, the data generated by this large conductor will only show a single point. The large conductor, which is equivalent to the finger carrying water, does not move.

[0132] In the above, even after water treatment, traditional technologies still sometimes fail to work due to probabilistic touch issues, such as when operating a photo album while the screen is wet. The main drawback is that they cannot distinguish between water touch and finger touch. In addition, when a large water droplet remains on the screen, normal clicks are prone to incorrect coordinate shifts, leading to incorrect pressing and severely affecting the waterproofing effect in scenarios with large water droplets.

[0133] To address the aforementioned problems, this application proposes a touch position determination method, apparatus, and electronic device. First, some applicable technical terms and concepts are introduced.

[0134] Wet fingers: After washing your hands, wet your fingers and then try to unlock your phone with your fingerprint. The water will make the fingerprint image unclear.

[0135] Waterproofing: For touch screen operation in rainy conditions, where the phone screen is affected by rainwater, the waterproofing treatment has been optimized for this scenario.

[0136] TpAlgo: Touch panel algorithm.

[0137] Base: Reference point. During the touch detection process of a capacitive touchscreen, the touch control chip first samples and obtains the raw data through an ADC (Analog-to-Digital Converter) to get the raw value; then, a reference is established based on the raw value to obtain the reference value.

[0138] DiffData: Capacitance data of the capacitive touchscreen. The difference between the baseline value and the original value is obtained, and the coordinate value can be calculated from the difference. In order to obtain the correct difference, an accurate baseline needs to be maintained. That is, the original value used to establish the baseline should be the original value sampled when the capacitive touchscreen is in a stable state. The stable state refers to the state when there are no objects such as fingers, styluses, or water droplets on the capacitive touchscreen that would change the magnitude of the original value.

[0139] Reference anomaly: In actual use, the presence of water droplets, sweaty hands, or touch during power-on can cause the capacitive touchscreen to obtain an incorrect reference, resulting in decreased touchscreen sensitivity or false alarms. False alarms refer to a situation where a certain position on the capacitive touchscreen is not actually touched, but the touch control chip calculates that there are coordinates.

[0140] Simply connected region: Any closed curve drawn within a connected region B will be considered part of the connected region B.

[0141] Mutual capacitance: Mutual capacitance touchscreens are a new type of capacitive touch technology. The touchpad contains a grid, like an array, consisting of an X*Y baseline array forming an X*Y unit capacitance. It forms mutual capacitance between the elements in the columns and rows, and the controller measures each node individually, changing the distortion of the electric field at the touch position. Therefore, when a finger approaches or touches the screen, the capacitance decreases; mutual capacitance has a matrix data signal.

[0142] Self-capacitance: The self-capacitance of a capacitive touchscreen refers to the capacitance between the touchscreen surface and its internal structure. When a finger or other conductor touches the touchscreen surface, an electric field is created between the surface and the interior, generating capacitance. This capacitance is the self-capacitance. The magnitude of the self-capacitance depends on factors such as the touchscreen's geometry, materials, and surface condition. In capacitive touchscreens, self-capacitance can be used to detect touch events on the touchscreen surface, thereby enabling interactive functions. The scanning method for self-capacitance is equivalent to projecting the touch point on the touchscreen onto the X and Y axes, calculating the coordinates on both axes, and finally combining them to form the touch point's coordinates. Self-capacitance only has two data signals: TX and RX.

[0143] Noise value: The magnitude of noise signal detected by the capacitive touch chip, which reflects the degree of interference currently affecting the touch screen.

[0144] OLED stands for Organic Light-Emitting Diode. Unlike traditional LCD displays, OLED technology does not require a backlight. It uses a very thin coating of organic material and a glass substrate (or a flexible organic substrate). When an electric current passes through, these organic materials emit light. Furthermore, OLED displays can be made lighter and thinner, have wider viewing angles, and significantly reduce power consumption.

[0145] A local maximum is the largest value in a set of data. In mathematics and statistics, local maximums are used to describe the maximum value of a random variable. In optimization problems, local maximums are used to find the optimal solution.

[0146] Charging Touch Control: The touch control experience of the phone has been optimized when it is connected to USB (Universal Serial Bus) for charging.

[0147] IIR filtering: new touch coordinates are obtained by superimposing historical coordinate trajectory weights.

[0148] TX: The emitter of a capacitive touchscreen. For self-capacitance, there will be self-capacitance data corresponding to the TX position.

[0149] RX: The receiving electrode of the touchscreen. For self-capacitance, there will be self-capacitance data corresponding to the RX position.

[0150] The touch position determination method provided in this application embodiment can be applied to, for example, Figure 5In the application environment shown, the electronic device 10 is equipped with a capacitive touchscreen 102, on which water droplets 104 are present. The user touches the capacitive touchscreen 102 at the location of the water droplets 104. Furthermore, the water droplets 104 can be large water droplets (i.e., large-area water droplets), meaning that the user's continuous tapping on the capacitive touchscreen 102 causes the water droplets to gather and form large water droplets.

[0151] For example, electronic device 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Optionally, taking electronic device 102 as a mobile terminal as an example, this application can be applied to the waterproofing of game touch controls on mobile terminals. It determines whether to enter a waterproof mode (e.g., large water droplet mode) based on mutual current data and / or self-capacitance data characteristics, and effectively processes the system for this mode to improve the waterproofing effect and enhance the user experience.

[0152] In one exemplary embodiment, such as Figure 6 As shown, a touch position determination method is provided, which is applied to... Figure 5 Taking an electronic device as an example, the explanation includes steps 202 to 204. Wherein:

[0153] Step 202: In response to entering waterproof mode, acquire self-capacitance data corresponding to touch operation for capacitive touchscreen.

[0154] Specifically, when a water droplet is detected on the capacitive touchscreen, the electronic device can enter a waterproof mode. This waterproof mode provides processing logic adapted to water droplet scenarios (such as large water droplets), avoiding issues like coordinate shifts and swiping turning into clicking. Optionally, the waterproof mode can refer to a large water droplet mode, which indicates the presence of a large area of ​​water droplets on the capacitive touchscreen, thereby optimizing and improving the touch experience caused by large water droplets.

[0155] For example, such as Figure 7 As shown, the method may also include:

[0156] Step 302: When there are water droplets on the capacitive touchscreen, it enters the waterproof state;

[0157] Specifically, regarding the detection of waterproof status, taking an electronic device as an example, in the screen-on state, the terminal can periodically detect whether there are water droplets on the capacitive touchscreen, and enter a waterproof state when water droplets are detected. Optionally, the terminal can determine the presence of water droplets based on changes in the capacitance of the capacitive touchscreen. For example, when a microcontroller (MCU) is installed in the capacitive touchscreen, the touchscreen can also autonomously detect water droplets and enter a waterproof state.

[0158] Step 304: In waterproof mode, if the touch data collected by the capacitive touch screen meets the entry conditions for waterproof mode, then confirm entry into waterproof mode.

[0159] Specifically, electronic devices can perform waterproof detection using a touch algorithm (TpAlgo). Once the waterproof detection indicates that the device has entered a waterproof state, it will then proceed to the next waterproof mode (e.g., confirming whether to enter waterproof mode by detecting large water droplets). This will optimize power consumption and prevent the device from entering the large water droplet scene processing logic in normal scenarios.

[0160] When a waterproof state is detected, the electronic device will further perform a waterproof mode detection (e.g., in a large water droplet scenario). For example, the electronic device can determine whether the entry conditions for waterproof mode are met based on touch data collected by the capacitive touchscreen, and confirm entry into waterproof mode if the entry conditions are met. Optionally, the electronic device can determine whether to enter waterproof mode based on positive and / or negative feature information of the touch data.

[0161] For example, the touch data collected by the capacitive touchscreen can refer to the touch data corresponding to the touch area determined after processing the full-screen data of the capacitive touchscreen (e.g., self-capacitance data / mutual capacitance data, also known as self-capacitance value / mutual capacitance value). When it is determined to enter waterproof mode, the electronic device can obtain the self-capacitance data corresponding to the touch operation of the capacitive touchscreen, for example, the self-capacitance data corresponding to the touch area of ​​the current touch operation.

[0162] Step 204: Determine the touch position of the touch operation based on the self-capacitance data.

[0163] Specifically, electronic devices can determine the touch position of a touch operation based on self-capacitance data. For example, coordinate optimization based on self-capacitance data can improve the touch experience caused by water droplets (e.g., large water droplets). Furthermore, self-capacitance data can be used to assist in coordinate correction, avoiding coordinate offsets calculated solely from mutual capacitance data and issues such as swiping becoming clicking.

[0164] Optionally, the method may also include:

[0165] In waterproof mode, acquire touch data corresponding to touch operations performed before entering waterproof mode;

[0166] Based on touch data, determine the touch position corresponding to the touch operation after entering waterproof mode.

[0167] Specifically, in distinguishing the true coordinate position, electronic devices are not limited to determining the true touch position based on self-capacitance data. They can also discover the true touch position by tracking historical data. For example, the position that is most likely to be clicked is generally the true touch position.

[0168] Historical data can refer to touch data obtained before entering waterproof mode, such as the previous finger touch positions. Touch positions after entering waterproof mode can refer to the coordinates of the capacitive touchscreen after a large water droplet appears. It should be noted that since the formation of a large water droplet involves repeated finger taps on the screen causing water to gather and form a large droplet, this embodiment proposes to predict the coordinates of the large water droplet based on the finger position before its formation.

[0169] The above-mentioned touch position determination method, in waterproof mode, determines the touch position of the touch operation through self-capacitance data. It can distinguish the actual touch position of the finger and the coordinate position shift caused by the capacitance value caused by the water when the hand comes into contact with water. It can effectively improve the problem of accidental clicks and line strokes turning into clicks in the case of large water droplets, and improve the waterproof effect.

[0170] Furthermore, this application also provides a process for detecting waterproof modes, which can achieve detection of large water droplet scenarios. In an exemplary embodiment, such as... Figure 8 As shown, step 304 includes steps 402 to 406. Wherein:

[0171] Step 402: Perform a region search on the full-screen data of the capacitive touchscreen to obtain the touch area.

[0172] Specifically, electronic devices can perform region lookup on the full-screen data (also known as the whole-screen data) of a capacitive touchscreen to determine the touch area; the touch area can refer to the touch area corresponding to the mutual capacitance data / self capacitance data (also known as mutual capacitance value / self capacitance value) of the capacitive touchscreen when a touch operation occurs.

[0173] Furthermore, embodiments of this application propose identifying whether a scene is a large water droplet based on the mutual capacitance and self-capacitance data characteristics under a large water droplet scenario. For example, such as... Figure 9As shown, based on the situation where there are many negative values ​​(negative value nodes) and positive values ​​(positive value nodes) of mutual capacitance in the touch area, the self-capacitance data can also be judged to perform large water droplet scene detection.

[0174] It should be noted that, regarding negative values ​​(negative value nodes) and positive values ​​(positive value nodes), the sampling data (raw sampling data) obtained by the capacitive touch screen can be called raw data. The capacitive touch screen needs to calculate the difference (diff data) between the raw value and the reference value (refdata, also known as reference data). This difference is either a negative value or a positive value (the area where the negative value is located is called a negative value node, and the area where the positive value is located is called a positive value node).

[0175] For example, step 402 may include:

[0176] The touch area is obtained by searching for the target maximum value in the full-screen data.

[0177] Specifically, once it is confirmed that the device has entered a waterproof state, it can search for the target maximum value in the entire screen data. The target maximum value can refer to the maximum value that meets the conditions. Then, for each target maximum value, a region search is performed. The region search can refer to finding nodes around the target maximum value whose values ​​meet the conditions. If the conditions are met, they are included in the same region. If there are any nodes that do not meet the conditions, the search stops. In this way, the touch area can be found.

[0178] In an exemplary embodiment, the target maximum value is the maximum value in the full-screen data that is greater than the touch threshold; performing a region search based on the target maximum value in the full-screen data to obtain the touch region may include:

[0179] The search continues until a full-screen data point near the target maximum that meets the region inclusion criteria is found, at which point the search stops. The region inclusion criteria include an absolute value greater than the inclusion threshold.

[0180] The connected region formed by the region where the target maximum value is located and the region where the full-screen data that meets the inclusion criteria is located is determined as the touch region.

[0181] Specifically, upon determining that the device has entered waterproof mode, it searches for local maxima (maximum values) within the entire screen data. Only local maxima that are greater than a touch threshold are retained as target maxima. The touch threshold serves as the initial threshold, and its value can be 150. This enables the detection of large water droplets. For example, only extreme values ​​greater than the touch threshold of 150 are included in the subsequent judgment logic; otherwise, extreme values ​​less than 150 do not affect the large water droplet mode judgment. It should be noted that the touch threshold is an empirical value derived from the statistical patterns of large water droplets, and a value around 150 can also be selected.

[0182] The electronic device searches for a maximum value that meets certain conditions (i.e., the target maximum value). Then, for each target maximum value, a region search is performed. A region search involves finding nodes around the maximum value whose values ​​meet the region inclusion criteria. Nodes meeting the criteria are included in the same region. If any node does not meet the inclusion criteria, the search stops. The region inclusion criteria can refer to nodes whose absolute values ​​are greater than a inclusion threshold. Nodes meeting this criteria are included in the same region, and if any node's absolute value is less than the inclusion threshold, the search stops. This allows the touch area to be identified (due to the influence of water, values ​​can be positive or negative; this application proposes to determine the absolute value of the node value).

[0183] For example, the inclusion threshold enables the present application embodiments to include small signals near the maximum value; optionally, the inclusion threshold can be 15. It should be noted that the inclusion threshold is an empirical value derived from the statistical regularity of large water droplet data, and can be a value near 15.

[0184] After finding data that meets the above conditions, the connected regions formed by the data can be identified as the found touch areas. The electronic device can then mark these areas, such as Area 1, Area 2, etc. After marking the areas, it will continue to evaluate each area to confirm whether each area meets the entry conditions for waterproof mode (e.g., ...). Figure 9 As shown, confirm whether the positive / negative values ​​corresponding to the touch area conform to the characteristics of a large water droplet scene.

[0185] In one exemplary embodiment, performing a region lookup on the full-screen data of a capacitive touchscreen to obtain the touch area may include:

[0186] The preset shape area formed by full-screen data whose absolute value is greater than the area threshold is determined as the touch area.

[0187] Specifically, nodes with absolute values ​​greater than the region threshold in the full-screen data can be obtained, and the preset shape region formed by each node can be determined as the touch area; the region threshold can be an empirical value derived from the statistical law of large water droplet data, such as 20.

[0188] For example, the preset shape area can be a rectangular area. Figure 10 As shown, a rectangular region is found when the absolute value of a node exceeds the region threshold of 20, and this rectangular region is determined as the touch region.

[0189] Step 404: Based on the mutual capacitance value of the touch area and / or the self-capacitance value corresponding to the touch area, obtain positive feature information and / or negative feature information.

[0190] Specifically, once the touch area is determined, the electronic device can obtain the mutual capacitance value of the touch area and / or the self capacitance value corresponding to the touch area, thereby obtaining positive and / or negative feature information.

[0191] Positive feature information may include, but is not limited to, the number of positive nodes in the touch area or the corresponding positive node, as well as the shape of the positive area; negative feature information may include, but is not limited to, the number of negative nodes in the touch area or the corresponding negative node, as well as the shape of the negative area.

[0192] Step 406: Based on the positive and / or negative feature information, confirm whether the entry conditions for the waterproof mode are met.

[0193] Specifically, embodiments of this application determine whether to enter waterproof mode (large water droplet mode) based on the mutual capacitance data characteristics and / or self-capacitance data characteristics of the large water droplet. Furthermore, it is not limited to requiring both mutual capacitance data characteristics and self-capacitance data characteristics to be met simultaneously to enter waterproof mode; the decision to enter waterproof mode can be based on one of these data characteristics, such as mutual capacitance data alone or self-capacitance data alone.

[0194] For example, the embodiments of this application are not limited to positive and negative features, but can also be determined based on the shape of the positive or negative region, which can improve the accuracy and efficiency of waterproof mode identification, and thus effectively process the mode to improve the waterproof effect.

[0195] In an exemplary embodiment, negative feature information includes the number of capacitance values ​​and the number of first touch areas; positive feature information includes the number of second touch areas; such as Figure 11 As shown, step 406 may include steps 502 to 508. Wherein:

[0196] Step 502: Determine the number of first touch areas and second touch areas in the touch area based on the mutual capacitance value of the touch area; the first touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative, and the second touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive.

[0197] Specifically, the electronic device can determine the number of positive nodes (the number of second touch areas) and the number of negative nodes (the number of first touch areas) within the mutual capacitance region based on the mutual capacitance value of the touch area. Here, the touch area can refer to the mutual capacitance region.

[0198] For example, combined Figure 9 ,like Figure 12As shown, the electronic device can count the number of positive and negative nodes in the mutual capacitance region, and then determine whether there are a large number of positive and negative nodes in the mutual capacitance region.

[0199] Step 504: If the number of first touch areas is greater than the first number threshold and the number of second touch areas is greater than the second number threshold, then the rectangular area obtained by boundary statistics of the touch areas is determined.

[0200] Specifically, the first quantity threshold can be 9, and the second quantity threshold can be 12. This application embodiment does not limit this, as long as it can be determined whether there are a large number of positive and negative value nodes within the mutual capacitance region. Further, with... Figure 12 For example, when the number of positive value nodes reaches 9 or more, and the number of negative value nodes also reaches 12 or more, then statistics can be calculated. Figure 12 The boundary position of the mutual capacitance is determined, that is, the rectangular area obtained by boundary statistics of the touch area is determined.

[0201] Step 506: Obtain the number of capacitance values ​​in the rectangular region whose difference from the self-capacitance reference value is negative.

[0202] Specifically, the electronic device identifies the boundary position (rectangular region) of mutual capacitance, and then obtains the number of capacitance values ​​in the rectangular region whose difference from the self-capacitance reference value is negative, in order to determine whether there are many negative value nodes in the self-capacitance data corresponding to the boundary position of mutual capacitance.

[0203] Step 508: When the number of capacitance values ​​is greater than the third threshold, it is confirmed that the conditions for entering the waterproof mode are met.

[0204] Specifically, when the number of capacitance values ​​exceeds the third threshold, it can be determined that the self-capacitance data corresponding to the mutual capacitance boundary position has a large number of negative nodes, thus confirming that the entry conditions for waterproof mode are met. The third threshold can be derived based on statistical data patterns.

[0205] For example, such as Figure 13 As shown, the areas marked by the arrows correspond to a large number of negative values ​​at the TX and RX positions of the self-capacitance. This confirms that the self-capacitance data at the mutual capacitance boundary positions has a large number of negative values, which satisfies the entry conditions for the waterproof mode (e.g., the large water droplet mode), indicating that it conforms to the data characteristics of the waterproof mode.

[0206] In summary, electronic devices can obtain positive and negative feature information based on the mutual capacitance value and the corresponding self-capacitance value of the touch area, and determine whether the conditions for entering the waterproof mode are met based on the positive and negative feature information. This application embodiment identifies whether it is a large water droplet scene based on the mutual capacitance and self-capacitance data characteristics under large water droplet scenarios. It determines whether it is a large water droplet mode by having a large number of negative and positive value nodes within the mutual capacitance area, and by having a large number of negative value nodes in the corresponding self-capacitance area.

[0207] In an exemplary embodiment, negative feature information includes the number of first touch areas; positive feature information includes the number of second touch areas; such as Figure 14 As shown, step 406 may include steps 602 to 604. Wherein:

[0208] Step 602: Determine the number of first touch areas and second touch areas in the touch area based on the mutual capacitance value of the touch area; the first touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative, and the second touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive.

[0209] Specifically, electronic devices can determine whether data within the mutual capacitance area meets the entry conditions for waterproof mode based on the mutual capacitance value of the touch area. The electronic device can determine the number of first touch areas and second touch areas within the touch area, that is, count the number of positive and negative nodes within the mutual capacitance area.

[0210] Step 604: If the number of first touch areas is greater than the first number threshold and the number of second touch areas is greater than the second number threshold, then the conditions for entering the waterproof mode are confirmed to be met.

[0211] Specifically, when the number of first touch areas is greater than the first number threshold and the number of second touch areas is greater than the second number threshold, it indicates that there are more positive and negative nodes in the mutual capacitance area, thus confirming that the current entry conditions for waterproof mode (e.g., large water droplet mode) are met.

[0212] The first quantity threshold can be 9, and the second quantity threshold can be 12. This application embodiment does not limit this, as long as it can be determined whether there are a large number of positive and negative nodes within the mutual capacitance region. Further, with... Figure 12 For example, when the number of positive nodes reaches 9 or more and the number of negative nodes reaches 12 or more, it can be determined that there are a large number of positive and negative nodes in the mutual capacitance area, thus confirming that the entry conditions for waterproof mode are met.

[0213] In summary, electronic devices can obtain positive and negative feature information based on the mutual capacitance values ​​of the touch area, and determine whether the conditions for entering the waterproof mode are met based on the positive and negative feature information. This application embodiment identifies whether it is a large water droplet scene based on the mutual capacitance data characteristics under large water droplet scenarios, and determines whether it is a large water droplet mode by using a large number of negative and positive value nodes within the mutual capacitance area.

[0214] In one exemplary embodiment, the negative feature information includes the number of capacitance values; such as Figure 15 As shown, step 406 may include steps 702 to 706. Wherein:

[0215] Step 702: Determine the rectangular area obtained by boundary statistics of the touch area;

[0216] Specifically, the electronic device can obtain the rectangular area obtained by boundary statistics of the touch area, that is, determine the boundary position of the mutual capacitance area.

[0217] Step 704: Obtain the number of capacitance values ​​in the rectangular region whose difference from the self-capacitance reference value is negative.

[0218] Specifically, after determining the boundary position of the mutual capacitance region, the electronic device can obtain the number of negative nodes (i.e., the number of negative capacitance values) in the self-capacitance data corresponding to the mutual capacitance boundary position.

[0219] Step 706: When the number of capacitance values ​​is greater than the number threshold, it is confirmed that the conditions for entering the waterproof mode are met.

[0220] Specifically, when the number of capacitance values ​​exceeds the threshold, the electronic device determines that the self-capacitance data corresponding to the mutual capacitance boundary position has a large number of negative value nodes, thus confirming that the conditions for entering the waterproof mode are met.

[0221] The quantity threshold can be derived based on statistical data patterns. For example, using... Figure 13 For example, if the self-capacitance data corresponding to the mutual capacitance boundary position has a large number of negative values, it can be determined that the entry conditions of the waterproof mode (such as the large water droplet mode) are met, indicating that the data characteristics of the waterproof mode are met.

[0222] In summary, electronic devices can obtain negative value feature information based on the self-capacitance value corresponding to the touch area, and determine whether the conditions for entering the waterproof mode are met based on the negative value feature information. This application embodiment identifies whether it is a large water droplet scene based on the self-capacitance data characteristics under large water droplet scenarios, and determines whether it is a large water droplet mode by whether there are many negative value nodes in the self-capacitance area.

[0223] Furthermore, taking the method of determining the preset shape area formed by the full-screen data with an absolute value greater than the area threshold as the touch area as an example, the electronic device can also use the following exemplary scheme to determine whether the entry conditions for waterproof mode are met based on the shape of the positive or negative area.

[0224] In one exemplary embodiment, the preset shape area includes a rectangular area; the positive value feature information includes a positive value touch area; such as Figure 16 As shown, step 406 may include steps 802 to 804. Wherein:

[0225] Step 802: Determine the positive touch area in the touch area based on the mutual capacitance value of the touch area; the positive touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive.

[0226] Specifically, the electronic device can determine the positive touch area within the touch area based on the mutual capacitance reference value and the mutual capacitance value of the touch area. Here, the touch area can be a mutual capacitance area, and the positive touch area can be a positive area within the mutual capacitance area, combined with... Figure 10 The light gray area within the rectangular region is the positive touch area.

[0227] Step 804: Divide the rectangular area into multiple quadrant position areas. If the quadrant position area where the positive touch area is located meets the positive area shape distribution, then the entry conditions for waterproof mode are confirmed to be met.

[0228] Specifically, electronic devices can divide a rectangular area into multiple quadrant positions. Then, based on whether the quadrant containing the positive touch area conforms to the positive area shape distribution, it can determine whether the conditions for entering waterproof mode are met. The positive area shape distribution can be derived from statistical data patterns of large water droplet scenarios.

[0229] For example, combined Figure 10 ,like Figure 17 As shown, four quadrants can be formed based on the center of the rectangular region as the origin: the first quadrant, the second quadrant, the third quadrant, and the fourth quadrant. Furthermore, if all positive value nodes are distributed in the first and third quadrants, it confirms that the shape characteristics of the positive value nodes are met, thus determining that the entry conditions for the large droplet pattern are satisfied.

[0230] The electronic device obtains positive feature information based on the mutual capacitance value of the touch area, and then determines whether the conditions for entering the waterproof mode are met based on the positive feature information. This embodiment of the application determines whether to enter the waterproof mode (e.g., large water droplet mode) based on the shape of the positive area, which can improve the efficiency of mode determination and save power consumption.

[0231] In one exemplary embodiment, the preset shape area includes a rectangular area; the negative value feature information includes a negative value touch area; such as Figure 18 As shown, step 406 may include steps 902 to 904. Wherein:

[0232] Step 902: Determine the negative value touch area based on the mutual capacitance value of the touch area; the negative value touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative.

[0233] Specifically, electronic devices can determine negative touch areas within the touch area based on a mutual capacitance reference value and the mutual capacitance value of the touch area. Here, the touch area can be a mutual capacitance area, and the negative touch area can be a negative value area within the mutual capacitance area, combined with... Figure 10 The dark gray area within the rectangular region represents the negative touch area.

[0234] Step 904: Divide the rectangular area into multiple quadrant position areas. If the quadrant position area where the negative touch area is located meets the shape distribution of the negative value area, then the entry conditions for the waterproof mode are confirmed to be met.

[0235] Specifically, electronic devices can divide a rectangular area into multiple quadrant positions. Then, based on whether the quadrant containing the negative touch area conforms to the shape distribution of the negative area, it can determine whether the conditions for entering waterproof mode are met. The shape distribution of the negative area can be derived from statistical data patterns of large water droplet scenarios.

[0236] For example, combined Figure 10 ,like Figure 17 As shown, four quadrants can be formed based on the center of the rectangular area as the origin: the first quadrant, the second quadrant, the third quadrant, and the fourth quadrant. Furthermore, if all negative value nodes are distributed in the second and fourth quadrants, it confirms that the shape characteristics of negative value nodes are met, thus determining that the entry conditions for the large droplet pattern are satisfied.

[0237] The electronic device obtains negative value feature information based on the mutual capacitance value of the touch area, and then determines whether the conditions for entering the waterproof mode are met based on the negative value feature information. This embodiment of the application determines whether to enter the waterproof mode (e.g., large water droplet mode) based on the shape of the negative value area, which can improve the efficiency of mode determination and save power consumption.

[0238] Furthermore, if the conditions for entering the waterproof mode are met, the embodiments of this application can also confirm whether to enter the waterproof mode through the following exemplary scheme.

[0239] In one exemplary embodiment, such as Figure 19 As shown, step 304 may include steps 1002 to 1004. Wherein:

[0240] Step 1002: Obtain touch data collected according to the sampling period;

[0241] Specifically, electronic devices can acquire touch data according to a sampling period; where the sampling period can refer to the frame sampling period. For example, the touch data in the current sampling period can refer to the touch data in the current frame. If the touch data in the current frame meets the entry conditions for waterproof mode, the entry frame count for waterproof mode is incremented by 1. If any frame does not meet the conditions, the entry frame count for waterproof mode is reset to zero.

[0242] Step 1004: If the touch data in multiple consecutive sampling periods meets the entry conditions for waterproof mode, then confirm entry into waterproof mode.

[0243] Specifically, when touch data across multiple consecutive sampling periods meets the entry conditions for waterproof mode, the electronic device can confirm that it has entered waterproof mode. This is based on frame sampling, with waterproof mode defined as the large water droplet mode, and... Figure 9 Taking the data characteristics of the large water droplet scene as an example, meeting the entry conditions for the large water droplet mode means that the data characteristics of the large water droplet are met, and the large water droplet mode entry frame count will be incremented by 1; if any frame does not meet the conditions, the large water droplet mode entry frame count will be reset to zero. When the electronic device determines that the above large water droplet mode entry frame count has reached multiple times, it will enter the large water droplet mode.

[0244] In one exemplary embodiment, such as Figure 20 As shown, step 1004 may include steps 1102 to 1104. Wherein:

[0245] Step 1102: Obtain the number of consecutive sampling periods that meet the entry conditions for waterproof mode;

[0246] Specifically, when the touch data in multiple consecutive sampling periods meets the conditions for entering the waterproof mode, the electronic device can obtain the number of consecutive sampling periods that meet the conditions for entering the waterproof mode, and then determine whether to enter the waterproof mode based on the number of consecutive periods.

[0247] With frame sampling, waterproof mode is the large water droplet mode, and Figure 9 Taking the data characteristics of the large water droplet scene as an example, meeting the entry conditions of the large water droplet mode means that the data characteristics of the large water droplet are met, and the number of large water droplet mode entry frames will be incremented by 1; if there is a frame that does not meet the conditions, the number of large water droplet mode entry frames will be reset to zero. The electronic device can obtain the number of consecutive times that the data characteristics of the large water droplet are met, that is, the number of large water droplet mode entry frames that continuously meet the data characteristics of the large water droplet.

[0248] Step 1104: When the number of consecutive occurrences exceeds the preset threshold, the system will enter waterproof mode.

[0249] Specifically, when the number of consecutive occurrences exceeds a preset threshold, the electronic device can determine that it is entering waterproof mode. The preset threshold can be set according to requirements; for example, the preset threshold can be a preset frame rate threshold.

[0250] With frame sampling, waterproof mode is the large water droplet mode, and Figure 9 Taking the data characteristics of the large water droplet scene as an example, when the electronic device determines that the number of frames entering the large water droplet mode is greater than a preset frame threshold (e.g., 10), it enters the large water droplet mode. Regarding the detection of the large water droplet scene in this embodiment, the detection basis can be that the mutual capacitance within the touch area has a large number of negative and positive values. Alternatively, it can be determined by judging the self-capacitance data, identifying that the self-capacitance TX position and the self-capacitance RX position within the touch area have a large number of negative values. If the above conditions are met and are satisfied for 10 consecutive frames, then the large water droplet mode is entered.

[0251] Furthermore, if the conditions for entering the waterproof mode are met and the waterproof mode is entered, the embodiments of this application can also confirm whether to exit the waterproof mode through the following exemplary scheme.

[0252] In one exemplary embodiment, after confirming entry into waterproof mode, the method further includes:

[0253] If the full-screen data of the capacitive touchscreen meets the exit conditions for waterproof mode, then confirm exiting waterproof mode.

[0254] Specifically, when an electronic device enters a waterproof mode (e.g., large water droplet mode), it can also exit the waterproof mode when the exit conditions are met, so that normal scenarios will not enter the large water droplet scenario processing logic, thereby saving power consumption.

[0255] In one exemplary embodiment, the full-screen data includes mutual capacitance data of the capacitive touchscreen; such as Figure 21 As shown, if the full-screen data of the capacitive touchscreen meets the exit conditions for waterproof mode, then confirm the exit from waterproof mode, proceeding to steps 1202 to 1206. Wherein:

[0256] Step 1202: Determine the target region based on the mutual capacitance data; the target region is the region where the difference between the mutual capacitance data and the mutual capacitance reference data is negative.

[0257] Specifically, after entering waterproof mode (e.g., large water droplet mode), the electronic device can also determine whether to exit the mode. The decision-making process can be based on the number of negative mutual capacitance values. The electronic device can determine the target area based on the mutual capacitance data; the target area is the region where the difference between the mutual capacitance data and the mutual capacitance reference data is negative. In other words, the electronic device can count the number of negative mutual capacitance nodes across the entire screen.

[0258] Step 1204: If the number of target areas is 0, then when the product of the consecutive number and the first attenuation coefficient is less than the preset threshold, confirm exiting the waterproof mode.

[0259] Specifically, when the number of target areas is 0, that is, the number of negative value nodes in the whole screen is 0, the electronic device can attenuate the entry time of the waterproof mode according to the first attenuation coefficient, and attenuate by multiplying the consecutive number and the first attenuation coefficient. When it is determined that the product is less than the preset threshold, the waterproof mode is exited.

[0260] The first attenuation coefficient can be an empirical value of the attenuation coefficient of the large droplet state counter, and the coefficient value is adjustable; the coefficient value of the first attenuation coefficient can affect the speed of exiting the large droplet mode. For example, the first attenuation coefficient is a fixed value, such as 0.3, or it can be a value near 0.3.

[0261] Taking the waterproof mode as the large water droplet mode, using frame sampling and a preset threshold of 10 as an example, if the number of negative nodes in the full screen is 0, the number of frames entering the large water droplet mode will be multiplied by 0.3 according to a coefficient of 0.3 for attenuation. When it is determined that the number of frames entering the large water droplet mode is less than 10, the large water droplet mode will be exited.

[0262] Step 1206: If the number of target areas is not 0, then when the product of the consecutive number and the second attenuation coefficient is less than the preset threshold, then confirm exiting the waterproof mode.

[0263] Specifically, when the number of target areas is not 0, that is, the number of negative nodes in the whole screen is not 0, the entry time of waterproof mode is attenuated according to the second attenuation coefficient. Subsequently, the waterproof mode is exited when the product is less than the preset threshold.

[0264] The second attenuation coefficient is related to the proportion of the target area in the full screen. For example, the second attenuation coefficient is the ratio of the number of target areas to the number of mutual capacitance data. Taking the waterproof mode as the large water droplet mode, using frame sampling and a preset threshold of 10 as an example, if the number of negative value nodes in the full screen is not 0, the number of frames entering the large water droplet mode is attenuated according to the proportion of negative value nodes (negative value nodes / full screen nodes). Similarly, if the number of frames entering the large water droplet mode is less than 10, the large water droplet mode is exited.

[0265] To further illustrate the large water droplet scene detection process in this application, the following will combine... Figure 9 The large water droplet scene data feature map shown is as follows: Figure 22 As shown, in the detection of large water droplets, identification can be made based on the data features of mutual capacitance and self-capacitance, which can specifically include the following process:

[0266] First, the electronic device is confirmed to be waterproof. Then, the screen's maximum value (i.e., local maximum value) can be searched. The maximum value must be greater than the touch threshold to be retained. Once the maximum value that meets the condition is found, a region search is performed for each maximum value. The region search is to find nodes whose absolute values ​​around the maximum value are greater than the inclusion threshold. If the condition is met, they are included in the same region. If there are nodes in the middle that are less than the inclusion threshold, the search stops. In this way, the touch area can be found. Due to the influence of water, there will be positive and negative values. Here, the absolute value of the node value is judged. The found regions are marked, such as region 1, region 2, etc.

[0267] After marking the regions, the electronic device can determine whether each region falls within the characteristics of the large water droplet scene, count the number of positive and negative nodes within the mutual capacitance region, and determine if there are a large number of positive and negative nodes within the mutual capacitance region (e.g., ...). Figure 12 (As shown).

[0268] After meeting the above conditions, the electronic device can statistically determine the boundary positions of mutual capacitance and whether the self-capacitance data corresponding to the mutual capacitance boundary positions has a large number of negative value nodes. Figure 13 The mutual capacitance data shown has many negative values, which means that the conditions are met and the data characteristics of the large water droplet are satisfied. The large water droplet mode will enter the frame count and increment by 1. If the conditions are not met in any frame, the large water droplet mode will enter the frame count and be reset to zero.

[0269] When the number of frames entered by the above-mentioned large water droplet mode exceeds a preset threshold (e.g., 10), the large water droplet mode is entered.

[0270] After entering the large water droplet scene mode, the electronic device can also determine whether to exit the mode. The decision process can be made by counting the number of negative values ​​of mutual capacitance. The total number of negative value nodes on the screen is counted. If the total number of negative value nodes on the screen is 0, the frame rate of entering the large water droplet mode is multiplied by 0.3 by a coefficient of 0.3 for attenuation. When it is determined that the frame rate of entering the large water droplet mode is less than the preset threshold, the large water droplet mode is exited. If the total number of negative value nodes on the screen is not 0, the frame rate of entering the large water droplet mode is attenuated according to the proportion of negative value nodes. Similarly, when it is determined that the frame rate of entering the large water droplet mode is less than the preset threshold, the large water droplet mode is exited.

[0271] Based on the above implementation of waterproof mode detection, the effective processing for this mode in the embodiments of this application will be described below. When waterproof mode is detected, the electronic device can proceed to subsequent coordinate correction processing; wherein, coordinate correction can be performed with the assistance of self-capacitance data, thereby avoiding coordinate offsets and other problems such as sliding turning into clicking, which are calculated solely based on mutual capacitance.

[0272] In one exemplary embodiment, such as Figure 23 As shown, step 204 includes steps 1302 to 1304. Wherein:

[0273] Step 1302: Obtain the self-capacitance coordinates of the self-capacitance data; the self-capacitance coordinates are the centroid coordinates or the center coordinates.

[0274] Specifically, the electronic device can obtain self-capacitance coordinates based on self-capacitance data, where the self-capacitance coordinates can be centroid coordinates or center coordinates. For example, the centroid coordinates can be calculated from the self-capacitance data.

[0275] Furthermore, the center coordinates can be determined by the center position of the touch area. Alternatively, the center coordinates can be the coordinates of the center position point of the touch area corresponding to the touch operation, that is, the center position of the self-capacitance area as the mutual capacitance coordinate point. Thus, in the large water droplet mode, the center point principle can be used to replace the calculation method of the center of gravity coordinates.

[0276] Step 1304: Determine the touch coordinates of the touch operation based on the self-capacitance coordinates and the operation type of the touch operation.

[0277] Specifically, after obtaining the capacitance coordinates, the electronic device can determine the touch coordinates of the touch operation based on the operation type. For example, the operation type of the touch operation may include, but is not limited to, click operations and swipe operations.

[0278] In an exemplary embodiment, the self-capacitance data may include first self-capacitance data of the transmitting channel of the touch area corresponding to the touch operation, and second self-capacitance data of the receiving channel of the touch area.

[0279] Specifically, the self-capacitance data acquired by the electronic device can be the self-capacitance data of the capacitive touchscreen transmitting channel (TX) and the self-capacitance data of the capacitive touchscreen receiving channel (RX), such as... Figure 24 As shown.

[0280] For example, based on self-capacitance data, an electronic device can obtain first self-capacitance data of the transmitting channel of the touch area corresponding to the touch operation, and second self-capacitance data of the receiving channel of the touch area.

[0281] In one exemplary embodiment, obtaining the centroid coordinates from capacitance data may include:

[0282] Determine the first extreme point in the first self-capacitance data and the second extreme point in the second self-capacitance data;

[0283] Obtain the nodes that are adjacent to the first extreme point on the left and right, and the nodes that are adjacent to the second extreme point on the left and right;

[0284] The centroid coordinates are obtained based on the channel number, the self-compensation value corresponding to the first extreme point, the self-compensation values ​​corresponding to the nodes adjacent to the first extreme point on the left and right, the self-compensation value corresponding to the second extreme point, and the self-compensation values ​​corresponding to the nodes adjacent to the second extreme point on the left and right.

[0285] Specifically, after entering the coordinate correction process, the electronic device can calculate the coordinate values ​​of the self-capacitance (e.g., the centroid coordinates); wherein, the electronic device can determine the extreme points (first extreme point and second extreme point) in the self-capacitance data in two directions. For example, the first extreme point and the second extreme point both refer to local maximum values.

[0286] Furthermore, the electronic device can acquire the nodes adjacent to the first extreme point on the left and right, and the nodes adjacent to the second extreme point on the left and right. Then, based on the channel number, the self-capacitance value corresponding to the first extreme point, the self-capacitance values ​​corresponding to the nodes adjacent to the first extreme point on the left and right, the self-capacitance value corresponding to the second extreme point, and the self-capacitance values ​​corresponding to the nodes adjacent to the second extreme point on the left and right, the centroid coordinates are obtained. Here, the self-capacitance value refers to the difference between the self-capacitance value of the region where the node is located and the self-capacitance reference value.

[0287] Taking touch operation as an example, electronic devices can obtain the local maximum value of the self-capacitance region corresponding to the finger, and then use this maximum value to expand outward to find a touch area with self-capacitance. The coordinate value of the self-capacitance is calculated from the one-dimensional touch area signal of the self-capacitance through the centroid. Figure 25 As shown, P = P1 node value * P1 + P2 node value * P2 + P3 node value * P3 (i.e., P represents the centroid coordinates of P1, P2, and P3), where P1, P2, and P3 refer to the node numbers of the capacitance data, i.e., the corresponding channel numbers (e.g., ...). Figure 26 As shown in R28); the node values ​​of P1, P2, and P3 refer to the self-capacitance values ​​corresponding to the touch area (e.g., when a finger is pressed). Furthermore, P1, P2, and P3 are sequentially adjacent (the self-capacitance data is equivalent to a one-dimensional signal, with one-dimensional data in each of the TX and RX directions; TX and RX can be simply understood as the horizontal and vertical axes of a capacitive touchscreen). The electronic device can first find the extreme point (i.e., the local maximum value) of the one-dimensional signal, and then find the self-capacitance nodes adjacent to the extreme point as P1, P2, and P3.

[0288] Electronic devices can calculate the self-capacitance center of gravity coordinates using the above formula. When a finger touches the object, self-capacitance data is generated in both the horizontal and vertical directions, and the center of gravity coordinates can then be calculated using this self-capacitance data in both directions.

[0289] The self-capacitance coordinates obtained through the embodiments of this application can ensure the accuracy of the touch coordinates after coordinate correction, thereby distinguishing between the actual touch position of the finger and the coordinate position shift caused by the capacitance value induced by the water when the hand comes into contact with water. Figure 27 The diagram shows the actual touch location and the location of the sensing value caused by the water droplet. The dashed border area represents the actual touch area, while the solid border area represents the "mutual capacitance sensing value caused by the water and finger contact." Figure 27 It can be seen that if coordinates are calculated solely from mutual capacitance data, the data is biased to the left, causing the coordinates calculated solely from mutual capacitance to also be biased to the left (i.e., resulting in...). Figure 1 In the scenario of a large water droplet, the number key 5 was actually pressed, but the response was the number key 4; while based on the embodiments of this application, the obtained self-capacitance coordinates ( Figure 27 The "self-capacitance position of the real finger, which is also the maximum value of the surrounding area" marked in the text refers to the real finger position. Data analysis shows that the self-capacitance can be calculated according to the centroid coordinate to obtain a coordinate value that is consistent with the real pressing position. The core principle of coordinate correction in this application embodiment is to correct the reported coordinate value through the coordinate of the self-capacitance.

[0290] The above embodiments of this application obtain touch coordinates through self-capacitance coordinate correction. Specifically, the one-dimensional signal of self-capacitance data can be used to calculate the centroid coordinates, and the self-capacitance data can be used to calculate the centroid coordinates to correct the coordinates of mutual capacitance. Furthermore, the center position (center coordinates) of the self-capacitance region can be used as the self-capacitance coordinates to replace the centroid coordinate calculation method, thereby achieving coordinate correction.

[0291] In one exemplary embodiment, the operation types include click operations and swipe operations; such as Figure 28 As shown, step 1304 includes steps 1402 to 1404. Wherein:

[0292] Step 1402: When the operation type is a click operation, the self-capacitance coordinates are used as the touch coordinates.

[0293] Specifically, when entering waterproof mode (e.g., large water droplet mode), if the operation type for the touch operation on the capacitive touchscreen is a click operation (e.g., a still click operation), the electronic device can use the self-capacitance coordinates as the touch coordinates of the touch operation.

[0294] For example, the electronic device can determine whether the touch operation is a stationary click. If it is a stationary click, the self-capacitance coordinates are directly replaced with the original mutual capacitance coordinates for reporting. If it is not a stationary click, it can be determined as a swipe operation. Optionally, taking a finger touch as an example, the electronic device can count the swipe distance corresponding to the finger ID (event ABS_MT_TRACKING_ID). For example, it can count the sum of the swipe distances of the finger ID within 20 frames. If the sum of the swipe distances is within a preset threshold, it can be determined as a stationary click operation; otherwise, if it exceeds the preset threshold, it is considered a non-stationary touch click operation, indicating movement.

[0295] This application proposes to correct mutual capacitance coordinates using self-capacitance coordinates. The coordinate values ​​of user click operations in large water droplet scenarios are determined based on the self-capacitance coordinates, thereby correcting the touch coordinates of user clicks in large water droplet mode. This effectively improves the problem of accidental clicks in large water droplet scenarios, enhances the waterproof effect, and can distinguish between the actual touch position of the finger and the coordinate position shift caused by the capacitance value induced by the water when the hand comes into contact with the water.

[0296] Step 1404: When the operation type is a swipe operation, the self-capacitance coordinates are used as the touch coordinates; or, the mutual capacitance coordinates corresponding to the mutual capacitance data of the touch operation are obtained, and the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates are used as the touch coordinates.

[0297] Specifically, when entering waterproof mode (e.g., large water droplet mode), if the touch operation type for the capacitive touchscreen is a swipe operation, the electronic device can use the self-capacitance coordinates as the touch coordinates, that is, remove the mutual capacitance reference and directly use the self-capacitance coordinates as the final output coordinate values.

[0298] Furthermore, if the touch operation type for a capacitive touchscreen is a swipe operation, the electronic device can also obtain the mutual capacitance coordinates corresponding to the mutual capacitance data of the touch operation, and use the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates as the touch coordinates. That is, the electronic device fuses the coordinate values ​​of the self-capacitance calculation result and the coordinate values ​​of the mutual capacitance result, thereby avoiding sudden changes in coordinates that may affect the user's operation.

[0299] For example, the mutual capacitance coordinates can be the coordinates of the center point of the touch area corresponding to the touch operation. That is, the mutual capacitance coordinate calculation method in this embodiment can adopt the center method, that is, take the center point of the touch area as the coordinate point, which is suitable for large water droplet scenarios.

[0300] In an exemplary embodiment, the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates may include:

[0301] Obtain the first product of the first coefficient and the self-capacitance coordinates, and the second product of the second coefficient and the mutual capacitance coordinates; wherein the sum of the first coefficient and the second coefficient is 1;

[0302] The sum of the first and second products is used as the touch coordinates.

[0303] Specifically, touch coordinates are reported as output coordinates. When the touch operation of the electronic device is a swipe operation, coordinate fusion processing can be performed, where: output coordinate = (1-t) self-capacitance coordinate value + t * mutual capacitance coordinate value, t∈[0,1]. According to the above formula, the output coordinate is equal to the product of coefficient 1 (first coefficient) and self-capacitance coordinate value, plus the product of coefficient 2 (second coefficient) and mutual capacitance coordinate value; where the sum of coefficient 1 and coefficient 2 is 1.

[0304] The present application proposes a method for correcting the touch coordinates of user swipes in a large water droplet mode, effectively improving the problem of swiping lines turning into clicks in large water droplet scenarios and enhancing the waterproof effect. Specifically, the electronic device calculates and fuses touch coordinate values ​​using data from two scanning methods of the capacitive touchscreen, achieving the goal of improving touch coordinates in large water scenarios; based on the coordinate fusion method, the actual touch coordinates are corrected, effectively improving the waterproof effect in large water scenarios and enhancing the user experience.

[0305] In an exemplary embodiment, the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates include:

[0306] Based on the self-capacitance coordinates, the mutual capacitance coordinates are subjected to polynomial curve fitting or multiplication of multiple coefficients to obtain the corrected coordinates.

[0307] Specifically, electronic devices can fuse mutual capacitance coordinates and self-capacitance coordinates through coefficient curve fitting to determine the final touch coordinate values. This can be achieved using polynomial curve fitting, multi-coefficient coordinate fusion (i.e., combining multiple coefficients with multiple coordinate values), and other methods.

[0308] To further illustrate the scheme of this application, a specific example is provided below, such as... Figure 29 As shown, the electronic device can determine whether to enter the large water droplet mode based on the characteristics of mutual capacitance and self-capacitance data. For example, if the mutual capacitance in the touch area has many positive and negative values, and the self-capacitance at the corresponding position has many negative values, then the device enters the large water droplet mode and performs coordinate correction processing in the large water droplet scenario. Specifically, the electronic device takes self-capacitance data in the X and Y directions to calculate coordinates, that is, it calculates the fused touch coordinate values ​​based on the data of the two scanning methods of the capacitive touch screen, and corrects the mutual capacitance coordinates through the self-capacitance coordinates to achieve the purpose of improving the touch coordinates in the large water droplet scenario.

[0309] Furthermore, electronic devices can determine the coordinate values ​​of user clicks in large water scenarios based on self-capacitance coordinates. They can also fuse mutual capacitance coordinates and self-capacitance coordinates through coefficient curve fitting to determine the final touch coordinate values ​​for swiping operations. For example, enhanced filtering can be applied to the underscore of large water droplets to optimize linearity. This method of correcting user click and swipe coordinates in large water droplet mode effectively addresses issues like accidental clicks and misinterpretations of lines as clicks, improving waterproofing. Furthermore, by fusing the coordinates of these two modes to correct the actual touch coordinates, waterproofing in large water scenarios is effectively improved, enhancing the user experience and distinguishing between the actual finger touch position and the coordinate position shift caused by the capacitance value induced by the water when the hand touches the water.

[0310] The present application provides a method for pattern detection and processing in large water droplet scenarios, which may include large water droplet scenario detection, optimization of large water droplet click and line effects, improvement of waterproof effect in large water droplet mode, and avoidance of the problem that users cannot operate the mobile phone in large water droplet scenarios.

[0311] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0312] Based on the same inventive concept, this application also provides a touch position determining device for implementing the touch position determining method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more touch position determining device embodiments provided below can be found in the limitations of the touch position determining method described above, and will not be repeated here.

[0313] In one exemplary embodiment, such as Figure 30 As shown, a touch position determination device is provided for an electronic device equipped with a capacitive touchscreen. The device includes:

[0314] Self-capacitance data acquisition module 1501 is used to acquire self-capacitance data corresponding to touch operation of capacitive touch screen in response to entering waterproof mode.

[0315] The touch position determination module 1502 is used to determine the touch position of a touch operation based on self-capacitance data.

[0316] In one embodiment, the waterproof mode indicates that there are large water droplets on the capacitive touchscreen; the device also includes:

[0317] A waterproof status detection module is used to activate a waterproof state when water droplets are present on the capacitive touchscreen.

[0318] The waterproof mode confirmation module is used to confirm entering the waterproof mode if the touch data collected by the capacitive touch screen meets the entry conditions of the waterproof mode in the waterproof state.

[0319] In one embodiment, the waterproof mode confirmation module includes:

[0320] The touch area acquisition module is used to search for the touch area from the full-screen data of the capacitive touch screen.

[0321] The waterproof mode entry module is used to obtain positive and / or negative feature information based on the mutual capacitance value of the touch area and / or the self-capacitance value corresponding to the touch area; and to confirm whether the entry conditions for waterproof mode are met based on the positive and / or negative feature information.

[0322] In one embodiment, the touch area acquisition module is used to search for the target maximum value in the full-screen data to obtain the touch area.

[0323] In one embodiment, the target maximum value is the maximum value in the full-screen data that is greater than the touch threshold;

[0324] The touch area acquisition module is used to find full-screen data that meets the area inclusion criteria near the target maximum value until full-screen data that does not meet the area inclusion criteria is found, at which point the search stops; the area inclusion criteria include an absolute value greater than the inclusion threshold; the connected region formed by the area where the target maximum value is located and the area where the full-screen data that meets the area inclusion criteria is located is determined as the touch area.

[0325] In one embodiment, the negative feature information includes the number of capacitance values ​​and the number of first touch areas; the positive feature information includes the number of second touch areas.

[0326] The waterproof mode entry module is used to determine the number of first touch areas and second touch areas in the touch area based on the mutual capacitance value of the touch area; the first touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative, and the second touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive; if the number of first touch areas is greater than a first quantity threshold and the number of second touch areas is greater than a second quantity threshold, then a rectangular area obtained by boundary statistics of the touch area is determined; the number of capacitance values ​​with a negative difference between the self-capacitance value and the self-capacitance reference value in the corresponding rectangular area is obtained; and when the number of capacitance values ​​is greater than a third quantity threshold, the entry condition of waterproof mode is confirmed to be met.

[0327] In one embodiment, negative feature information includes the number of first touch areas; positive feature information includes the number of second touch areas.

[0328] The waterproof mode entry module is used to determine the number of first touch areas and second touch areas in the touch area based on the mutual capacitance value of the touch area; the first touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative, and the second touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive; if the number of first touch areas is greater than a first quantity threshold and the number of second touch areas is greater than a second quantity threshold, then the entry conditions for waterproof mode are confirmed to be met.

[0329] In one embodiment, the negative feature information includes the number of capacitance values;

[0330] The waterproof mode entry module is used to determine the rectangular area obtained by boundary statistics of the touch area; obtain the number of capacitance values ​​in the rectangular area whose difference between the self-capacitance value and the self-capacitance reference value is negative; when the number of capacitance values ​​is greater than the number threshold, it is confirmed that the entry condition of waterproof mode is met.

[0331] In one embodiment, the touch area acquisition module is used to determine a preset shape area formed by full-screen data whose absolute value is greater than a region threshold as the touch area.

[0332] In one embodiment, the preset shape area includes a rectangular area; the positive feature information includes a positive touch area;

[0333] The waterproof mode entry module is used to determine the positive touch area in the touch area based on the mutual capacitance value of the touch area; the positive touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive; the rectangular area is divided into multiple quadrant position areas, and when the quadrant position area where the positive touch area is located meets the positive area shape distribution, the entry condition of the waterproof mode is confirmed to be met.

[0334] In one embodiment, the preset shape area includes a rectangular area; the negative value feature information includes a negative value touch area;

[0335] The waterproof mode entry module is used to determine the negative value touch area in the touch area based on the mutual capacitance value of the touch area; the negative value touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative; the rectangular area is divided into multiple quadrant position areas, and when the quadrant position area where the negative value touch area is located meets the shape distribution of the negative value area, it is confirmed that the entry condition of the waterproof mode is met.

[0336] In one embodiment, the waterproof mode confirmation module is used to acquire touch data collected according to the sampling period; if the touch data in multiple consecutive sampling periods meets the entry conditions of the waterproof mode, then the entry into the waterproof mode is confirmed.

[0337] In one embodiment, the waterproof mode confirmation module is used to obtain the number of consecutive sampling periods that meet the entry conditions of the waterproof mode; when the number of consecutive sampling periods is greater than a preset threshold, it is determined that the waterproof mode has been entered.

[0338] In one embodiment, the device further includes:

[0339] The waterproof mode exit module is used to confirm the exit from waterproof mode if the full-screen data of the capacitive touch screen meets the exit conditions of waterproof mode.

[0340] In one embodiment, the full-screen data includes the mutual capacitance data of the capacitive touchscreen; the waterproof mode exit module includes:

[0341] The target region acquisition module is used to determine the target region based on the mutual capacitance data; the target region is the region where the difference between the mutual capacitance data and the mutual capacitance reference data is negative.

[0342] The first mode exit module is used to confirm the exit from waterproof mode if the number of target areas is 0 and the product of the consecutive number and the first attenuation coefficient is less than a preset threshold.

[0343] The second mode exit module is used to confirm the exit from waterproof mode if the number of target areas is not 0 and the product of the consecutive number and the second attenuation coefficient is less than a preset threshold.

[0344] In one embodiment, the first attenuation coefficient is a fixed value; the second attenuation coefficient is the ratio of the number of target regions to the number of mutual capacitance data.

[0345] In one embodiment, the device further includes:

[0346] The touch position confirmation module is used to acquire touch data corresponding to touch operations before entering waterproof mode in waterproof mode; and to determine the touch position corresponding to touch operations after entering waterproof mode based on the touch data.

[0347] In one embodiment, the touch location determination module 1502 includes:

[0348] The self-capacitance coordinate acquisition module is used to acquire the self-capacitance coordinates of the self-capacitance data; the self-capacitance coordinates are either centroid coordinates or center coordinates.

[0349] The touch coordinate determination module is used to determine the touch coordinates of a touch operation based on the self-capacitance coordinates and the operation type of the touch operation.

[0350] In one embodiment, the self-capacitance data includes first self-capacitance data of the transmitting channel of the touch area corresponding to the touch operation, and second self-capacitance data of the receiving channel of the touch area.

[0351] The self-capacitance coordinate acquisition module is used to determine the first extreme point in the first self-capacitance data and the second extreme point in the second self-capacitance data; acquire the nodes adjacent to the first extreme point on the left and right, and the nodes adjacent to the second extreme point on the left and right; and obtain the centroid coordinates based on the channel number, the self-capacitance value corresponding to the first extreme point, the self-capacitance values ​​corresponding to the nodes adjacent to the first extreme point on the left and right, the self-capacitance value corresponding to the second extreme point, and the self-capacitance values ​​corresponding to the nodes adjacent to the second extreme point on the left and right.

[0352] In one embodiment, both the first extreme point and the second extreme point are local maxima.

[0353] In one embodiment, the center coordinates are the coordinates of the center point of the touch area corresponding to the touch operation.

[0354] In one embodiment, the operation types include click operations and swipe operations;

[0355] The touch coordinate determination module is used to use the self-capacitance coordinates as touch coordinates when the operation type is click operation; and to use the self-capacitance coordinates as touch coordinates when the operation type is swipe operation, or to obtain the mutual capacitance coordinates corresponding to the mutual capacitance data of the touch operation, and use the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates as touch coordinates.

[0356] In one embodiment, the touch coordinate determination module is used to obtain a first product of a first coefficient and a self-capacitance coordinate, and a second product of a second coefficient and a mutual capacitance coordinate; wherein the sum of the first coefficient and the second coefficient is 1; and the sum of the first product and the second product is used as the touch coordinate.

[0357] In one embodiment, the touch coordinate determination module is used to perform polynomial curve fitting or multi-coefficient product processing on the mutual capacitance coordinates based on the self-capacitance coordinates to obtain the corrected coordinates.

[0358] In one embodiment, the mutual capacitance coordinates are the coordinates of the center point of the touch area corresponding to the touch operation.

[0359] The various modules in the aforementioned touch position determination device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0360] In one exemplary embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 31 As shown, this electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a touch position determination method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.

[0361] Those skilled in the art will understand that Figure 31 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0362] In one embodiment, an electronic device is provided, including a capacitive touchscreen, a memory, and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the touch position determination method described above.

[0363] In one exemplary embodiment, the capacitive touchscreen is a mutual capacitive touchscreen.

[0364] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the touch position determination method described above.

[0365] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the touch position determination method described above.

[0366] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0367] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0368] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for determining a touch position, characterized in that, The method is used for configuring an electronic device with a capacitive touchscreen, and the method includes: In response to entering waterproof mode, acquire self-capacitance data corresponding to the touch operation of the capacitive touchscreen; Based on the self-capacitance data, the touch position of the touch operation is determined; The method further includes: confirming the exit from the waterproof mode if the full-screen data of the capacitive touchscreen meets the exit conditions of the waterproof mode; wherein, the full-screen data includes the mutual capacitance data of the capacitive touchscreen; the step of confirming the exit from the waterproof mode if the full-screen data of the capacitive touchscreen meets the exit conditions of the waterproof mode includes: Based on the mutual capacitance data, a target region is determined; the target region is the region where the difference between the mutual capacitance data and the mutual capacitance reference data is negative. If the number of target areas is 0, then when the product of the consecutive number and the first attenuation coefficient is less than a preset threshold, it is confirmed that the waterproof mode will be exited; the consecutive number is the number of consecutive sampling periods that meet the entry conditions of the waterproof mode; the sampling period is used for the capacitive touch screen to collect touch data. If the number of target areas is not 0, then when the product of the consecutive number and the second attenuation coefficient is less than the preset threshold, the waterproof mode is exited.

2. The method according to claim 1, characterized in that, The waterproof mode indicates that there are large water droplets on the capacitive touchscreen; the method further includes: When water droplets are present on the capacitive touchscreen, it enters a waterproof state; In the waterproof state, if the touch data collected by the capacitive touchscreen meets the entry conditions for the waterproof mode, then the entry into the waterproof mode is confirmed.

3. The method according to claim 2, characterized in that, If the touch data collected by the capacitive touchscreen meets the entry conditions for the waterproof mode, then confirming entry into the waterproof mode includes: The touch area is obtained by performing a region search on the full-screen data of the capacitive touchscreen. Based on the mutual capacitance value of the touch area and / or the self capacitance value corresponding to the touch area, positive and / or negative feature information is obtained. Based on the positive and / or negative feature information, determine whether the entry conditions for the waterproof mode are met.

4. The method according to claim 3, characterized in that, The step of performing a region search on the full-screen data of the capacitive touchscreen to obtain the touch area includes: The touch area is obtained by performing a region search on the target maximum value in the full-screen data.

5. The method according to claim 4, characterized in that, The target maximum value is the maximum value in the full-screen data that is greater than the touch threshold; The step of performing a region search on the target maximum value in the full-screen data to obtain the touch area includes: The search continues until full-screen data that does not meet the region inclusion criteria are found near the target maximum value, at which point the search stops. The region inclusion criteria include an absolute value greater than the inclusion threshold. The connected region formed by the region where the target maximum value is located and the region where the full-screen data that meets the inclusion condition is located is determined as the touch region.

6. The method according to claim 4 or 5, characterized in that, The negative value feature information includes the number of capacitance values ​​and the number of first touch areas; the positive value feature information includes the number of second touch areas. The process of obtaining positive and negative feature information based on the mutual capacitance value of the touch area and the corresponding self-capacitance value of the touch area, and confirming whether the entry conditions for the waterproof mode are met based on the positive and negative feature information, includes: Based on the mutual capacitance value of the touch area, the number of first touch areas and the number of second touch areas in the touch area are determined; the first touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative, and the second touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive. If the number of the first touch areas is greater than the first number threshold and the number of the second touch areas is greater than the second number threshold, then the rectangular area obtained by boundary statistics of the touch areas is determined. Obtain the number of capacitance values ​​whose difference from the self-capacitance reference value is negative among the self-capacitance values ​​corresponding to the rectangular region; When the number of capacitance values ​​is greater than the third threshold, it is confirmed that the conditions for entering the waterproof mode are met.

7. The method according to claim 4 or 5, characterized in that, The negative value feature information includes the number of first touch areas; the positive value feature information includes the number of second touch areas. The step of obtaining positive and negative feature information based on the mutual capacitance value of the touch area, and confirming whether the entry conditions for the waterproof mode are met based on the positive and negative feature information, includes: Based on the mutual capacitance value of the touch area, the number of first touch areas and the number of second touch areas in the touch area are determined; the first touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative, and the second touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive. If the number of the first touch areas is greater than the first number threshold and the number of the second touch areas is greater than the second number threshold, then the conditions for entering the waterproof mode are confirmed to be met.

8. The method according to claim 4 or 5, characterized in that, The negative value feature information includes the number of capacitance values; The step of obtaining negative value feature information based on the self-capacitance value corresponding to the touch area, and confirming whether the entry conditions for the waterproof mode are met based on the negative value feature information, includes: The rectangular region obtained by boundary statistics of the touch area is determined; Obtain the number of capacitance values ​​whose difference from the self-capacitance reference value is negative among the self-capacitance values ​​corresponding to the rectangular region; When the number of capacitance values ​​is greater than the threshold, it is confirmed that the conditions for entering the waterproof mode are met.

9. The method according to claim 3, characterized in that, The step of performing a region search on the full-screen data of the capacitive touchscreen to obtain the touch area includes: The preset shape area formed by the full-screen data whose absolute value is greater than the area threshold is determined as the touch area.

10. The method according to claim 9, characterized in that, The preset shape area includes a rectangular area; the positive value feature information includes a positive value touch area; The step of obtaining positive feature information based on the mutual capacitance value of the touch area, and confirming whether the entry conditions for the waterproof mode are met based on the positive feature information, includes: Based on the mutual capacitance value of the touch area, a positive touch area is determined within the touch area; the positive touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is positive. The rectangular area is divided into multiple quadrant position areas. When the quadrant position area where the positive touch area is located meets the shape distribution of the positive area, it is confirmed that the entry condition of the waterproof mode is met.

11. The method according to claim 9, characterized in that, The preset shape area includes a rectangular area; the negative value feature information includes a negative value touch area; The step of obtaining negative value feature information based on the mutual capacitance value of the touch area, and confirming whether the entry conditions for the waterproof mode are met based on the negative value feature information, includes: Based on the mutual capacitance value of the touch area, a negative value touch area is determined in the touch area; the negative value touch area is the touch area where the difference between the mutual capacitance value and the mutual capacitance reference value is negative. The rectangular area is divided into multiple quadrant position areas. When the quadrant position area where the negative touch area is located meets the shape distribution of the negative area, it is confirmed that the entry condition of the waterproof mode is met.

12. The method according to claim 2, characterized in that, If the touch data collected by the capacitive touchscreen meets the entry conditions for the waterproof mode, then confirming entry into the waterproof mode includes: Acquire the touch data collected according to the sampling period; If the touch data in multiple consecutive sampling periods meets the entry conditions for the waterproof mode, then the entry into the waterproof mode is confirmed.

13. The method according to claim 12, characterized in that, If the touch data within multiple consecutive sampling periods all meet the entry conditions for the waterproof mode, then confirming entry into the waterproof mode includes: Obtain the number of consecutive sampling periods that satisfy the entry conditions of the waterproof mode; When the number of consecutive occurrences exceeds the preset threshold, it is determined that the waterproof mode will be entered.

14. The method according to claim 1, characterized in that, The first attenuation coefficient is a fixed value; the second attenuation coefficient is the ratio of the number of target regions to the number of mutual capacitance data.

15. The method according to claim 2, characterized in that, The method further includes: In the waterproof state, acquire touch data corresponding to touch operations performed before entering the waterproof mode; Based on the touch data, determine the touch position corresponding to the touch operation after entering the waterproof mode.

16. The method according to claim 1, characterized in that, Determining the touch position of the touch operation based on the self-capacitance data includes: Obtain the self-capacitance coordinates of the self-capacitance data; the self-capacitance coordinates are centroid coordinates or center coordinates. The touch coordinates of the touch operation are determined based on the self-capacitance coordinates and the operation type of the touch operation.

17. The method according to claim 16, characterized in that, The self-capacitance data includes the first self-capacitance data of the transmitting channel of the touch area corresponding to the touch operation, and the second self-capacitance data of the receiving channel of the touch area. The process of obtaining the centroid coordinates of the self-capacitance data includes: Determine the first extreme point in the first self-capacitance data and the second extreme point in the second self-capacitance data; Obtain the nodes that are adjacent to the first extreme point on the left and right, and the nodes that are adjacent to the second extreme point on the left and right; The centroid coordinates are obtained based on the channel number, the self-compensation value corresponding to the first extreme point, the self-compensation values ​​corresponding to the nodes adjacent to the first extreme point on the left and right, the self-compensation value corresponding to the second extreme point, and the self-compensation values ​​corresponding to the nodes adjacent to the second extreme point on the left and right.

18. The method according to claim 17, characterized in that, Both the first extreme point and the second extreme point are local maxima.

19. The method according to claim 16, characterized in that, The center coordinates are the coordinates of the center point of the touch area corresponding to the touch operation.

20. The method according to claim 16, characterized in that, The operation types include click operations and swipe operations; Determining the touch coordinates of the touch operation based on the centroid coordinates and the operation type of the touch operation includes: When the operation type is the click operation, the self-capacitance coordinates are used as the touch coordinates; When the operation type is the swipe operation, the self-capacitance coordinates are used as the touch coordinates; or, the mutual capacitance coordinates corresponding to the mutual capacitance data of the touch operation are obtained, and the corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates are used as the touch coordinates.

21. The method according to claim 20, characterized in that, The corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates include: Obtain the first product of the first coefficient and the self-capacitance coordinates, and the second product of the second coefficient and the mutual capacitance coordinates; wherein the sum of the first coefficient and the second coefficient is 1; The sum of the first product and the second product is used as the touch coordinates.

22. The method according to claim 20, characterized in that, The corrected coordinates obtained by correcting the mutual capacitance coordinates based on the self-capacitance coordinates include: Based on the self-capacitance coordinates, the mutual capacitance coordinates are subjected to polynomial curve fitting or multi-coefficient product processing to obtain the corrected coordinates.

23. The method according to any one of claims 20 to 22, characterized in that, The mutual capacitance coordinates are the coordinates of the center point of the touch area corresponding to the touch operation.

24. A touch position determination device, characterized in that, The device is used in an electronic device equipped with a capacitive touchscreen, the device comprising: The self-capacitance data acquisition module is used to acquire self-capacitance data corresponding to the touch operation of the capacitive touch screen in response to entering the waterproof mode. A touch position determination module is used to determine the touch position of the touch operation based on the self-capacitance data; The device further includes: a waterproof mode exit module, used to confirm exiting the waterproof mode if the full-screen data of the capacitive touch screen meets the exit conditions of the waterproof mode; wherein, the full-screen data includes the mutual capacitance data of the capacitive touch screen; The waterproof mode exit module includes: The target region acquisition module is used to determine the target region based on the mutual capacitance data; the target region is the region where the difference between the mutual capacitance data and the mutual capacitance reference data is negative. The first mode exit module is used to confirm exiting the waterproof mode if the number of target areas is 0 and the product of the consecutive number and the first attenuation coefficient is less than a preset threshold; the consecutive number is the number of consecutive sampling periods that meet the entry conditions of the waterproof mode; the sampling period is used for the capacitive touch screen to collect touch data. The second mode exit module is used to confirm exiting the waterproof mode if the number of target areas is not 0 and the product of the consecutive number and the second attenuation coefficient is less than the preset threshold.

25. An electronic device comprising a capacitive touchscreen, a memory, and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 23.

26. The electronic device according to claim 25, characterized in that, The capacitive touchscreen is a mutual capacitive touchscreen.

27. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 23.

28. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 23.