Method and device for controlling waterproof mode of touch screen and electronic equipment

By identifying the capacitance data and influencing factors of the capacitive touchscreen, the waterproof mode of the capacitive touchscreen is controlled, solving the problem of incorrectly entering or not entering the waterproof mode in the existing technology, and improving the user's operating experience.

CN121996102APending Publication Date: 2026-05-08SHENZHEN HEYTAP TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN HEYTAP TECHNOLOGY CO LTD
Filing Date
2024-11-05
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing electronic devices cannot control capacitive touchscreens to enter waterproof mode at the appropriate time, resulting in incorrect entry into or failure to enter waterproof mode, affecting the user's normal operation and touch experience.

Method used

By acquiring the capacitance data of the capacitive touchscreen, it can identify whether the touch event meets the preset foreign object touch conditions, and determine whether there is liquid touch or non-liquid touch based on influencing factors, thereby controlling the waterproof mode of the capacitive touchscreen.

Benefits of technology

This prevents incorrect entry into or failure to enter waterproof mode, improves the user's touch experience, and ensures the continuity and accuracy of normal operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121996102A_ABST
    Figure CN121996102A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device for a waterproof mode of a touch screen and electronic equipment, and relates to the technical field of electronic equipment. The method is applied to the electronic equipment, the electronic equipment comprises a capacitive touch screen, and the method comprises the steps that in response to a touch event aiming at the capacitive touch screen, capacitance data of the capacitive touch screen are obtained, and if it is determined that the touch event meets a preset foreign matter touch condition based on the capacitance data, the foreign matter is detected. If yes, influence factors causing the touch event to meet the preset foreign matter touch condition are determined based on the capacitance data, the influence factors comprise liquid touch factors or non-liquid touch factors, and the waterproof mode of the capacitive touch screen is controlled based on the influence factors. According to the method, multiple detection is performed on whether liquid exists on the capacitive touch screen or not, so that the situation that normal operation of a user is affected due to the fact that the capacitive touch screen enters the waterproof mode mistakenly or does not enter the waterproof mode mistakenly is avoided, and the touch experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and more specifically, to a control method, apparatus, and electronic equipment for a waterproof mode of a touch screen. Background Technology

[0002] With the rapid development of electronic device technology, the sensitivity and shock resistance of electronic device touch screens have been significantly improved. However, when there is liquid (such as rainwater) on the surface of the electronic device touch screen, or when the user touches the touch screen with wet fingers, the liquid on the touch screen surface will affect the conductive contact between the user's finger and the capacitive sensing element on the surface of the capacitive touch screen, which is mostly a capacitive touch screen. This will reduce the operation sensitivity of the capacitive touch screen and affect the user experience.

[0003] Therefore, electronic devices are generally equipped with a waterproof mode for capacitive touchscreens. However, currently, electronic devices cannot select the appropriate time to control the capacitive touchscreen to enter waterproof mode. There may be cases where the waterproof mode is entered incorrectly or not entered at all, which will affect the normal operation of the user and result in a poor touch experience. Summary of the Invention

[0004] In view of the above problems, this application proposes a control method, device, and electronic device for a waterproof mode of a touch screen to solve the above problems.

[0005] In a first aspect, embodiments of this application provide a method for controlling a waterproof mode of a touchscreen, applied to an electronic device, the electronic device including a capacitive touchscreen. The method includes: in response to a touch event on the capacitive touchscreen, acquiring capacitance data of the capacitive touchscreen; if it is determined based on the capacitance data that the touch event meets a preset foreign object touch condition, then determining, based on the capacitance data, influencing factors that cause the touch event to meet the preset foreign object touch condition, wherein the influencing factors include liquid touch factors or non-liquid touch factors; and controlling the waterproof mode of the capacitive touchscreen based on the influencing factors.

[0006] Secondly, embodiments of this application provide a control device for a waterproof mode of a touchscreen, applied to an electronic device, the electronic device including a capacitive touchscreen, the device including: a capacitance data acquisition module, used to acquire capacitance data of the capacitive touchscreen in response to a touch event of the capacitive touchscreen; an influencing factor determination module, used to determine, based on the capacitance data, the influencing factors that cause the touch event to meet the preset foreign object touch condition if it is determined that the touch event meets the preset foreign object touch condition, wherein the influencing factors include liquid touch factors or non-liquid touch factors; and a waterproof mode control module, used to control the waterproof mode of the capacitive touchscreen based on the influencing factors.

[0007] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor performs the above-described method.

[0008] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the above-described method.

[0009] The waterproof mode control method, apparatus, and electronic device for touch screens provided in this application embodiment, in response to a touch event of a capacitive touch screen, acquires capacitance data of the capacitive touch screen. If it is determined based on the capacitance data that the touch event meets a preset foreign object touch condition, then the influencing factors that cause the touch event to meet the preset foreign object touch condition are determined based on the capacitance data. The influencing factors include liquid touch factors or non-liquid touch factors. Based on the influencing factors, the waterproof mode of the capacitive touch screen is controlled. By performing multiple detections on whether liquid is present on the capacitive touch screen, the system avoids incorrectly entering or failing to enter the waterproof mode, which could affect the user's normal operation and improve the user's touch experience. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments 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.

[0011] Figure 1 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown.

[0012] Figure 2A schematic diagram is shown of a copper pillar placed on a capacitive touchscreen of an electronic device;

[0013] Figure 3 A schematic diagram showing the capacitance data when a copper pillar is placed on a capacitive touchscreen of an electronic device is illustrated.

[0014] Figure 4 This diagram illustrates that the capacitive touchscreen does not enter waterproof mode when there is liquid on it;

[0015] Figure 5 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown.

[0016] Figure 6 A schematic diagram of the foreign object search area provided in an embodiment of this application is shown;

[0017] Figure 7 This application shows Figure 5 The flowchart of step S230 of the control method for the waterproof mode of the touch screen is shown.

[0018] Figure 8 This application shows Figure 7 The flowchart of step S231 of the control method for the waterproof mode of the touch screen is shown.

[0019] Figure 9 This paper illustrates a schematic diagram of the touch node and the corresponding TX / RX adjacent values ​​provided in an embodiment of this application.

[0020] Figure 10 This application shows Figure 5 The flowchart of step S240 of the control method for the waterproof mode of the touch screen is shown.

[0021] Figure 11 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown.

[0022] Figure 12 A schematic diagram of the liquid touch provided in an embodiment of this application is shown;

[0023] Figure 13 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown.

[0024] Figure 14 A schematic diagram of the liquid touch provided in an embodiment of this application is shown;

[0025] Figure 15 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown.

[0026] Figure 16 A block diagram of a control device for a waterproof mode of a touchscreen provided in an embodiment of this application is shown.

[0027] Figure 17 A block diagram of an electronic device for implementing a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown.

[0028] Figure 18 A storage unit is shown as an embodiment of the present application for storing or carrying program code that implements a control method for a waterproof mode of a touch screen according to an embodiment of the present application. Detailed Implementation

[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0030] Liquids (such as water) can increase capacitance, affecting the signal reception of capacitive touchscreens. Even after wiping away the liquid, the affected area may experience touch problems, becoming unresponsive or exhibiting false touch signals. Sometimes, a finger touch can be detected after a while, but in most cases, it's difficult to restore the original touch sensitivity. Understandably, a qualified product cannot tolerate such issues. Therefore, resolving the problems of finger touch failure and false triggers caused by liquids is a significant challenge in the design of multi-touch capacitive touchscreens.

[0031] When liquid falls onto a capacitive touchscreen, because liquid is conductive, it will change the electric field coupling between the two sensing modules. For a liquid with a diameter similar to that of a finger (such as a water droplet), the signal change it produces will certainly be smaller than the signal change produced by a finger touch. It is usually 1 / 4 the size of the finger touch signal, but it is in the opposite direction to the signal change produced by a finger touch.

[0032] Because finger touches reduce mutual capacitance, while water droplets increase it, designers can easily be misled into thinking that liquid on a capacitive touchscreen won't be mistaken for a finger touch, meaning there won't be any false triggers. However, when the offset of the base line value caused by the liquid approaches or exceeds the set line value threshold, a false trigger occurs the instant the liquid is wiped away. In many cases, these false triggers are difficult to recover from because the offset base 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 to resolve.

[0033] Therefore, eliminating false triggers caused by liquid wiping from capacitive touchscreens is a challenge faced by waterproof capacitive touchscreen design.

[0034] To solve this problem, we first need to know when the liquid started to appear on the capacitive touchscreen. There are many reasons why the basic line value might shift in the opposite direction of the AD conversion value at the time of a finger touch. These could include changes in ambient temperature (high and low temperature tests), humidity, static electricity interference, or the finger being pressed on the touchscreen during system startup and then removed afterward. The key to knowing if liquid is present on the capacitive touchscreen is to distinguish between changes in the basic line value caused by liquid and those caused by other factors.

[0035] The different behaviors of liquids due to their influence on self-capacitance and mutual capacitance are a key characteristic of liquids on capacitive touchscreens. Fully utilizing this characteristic and employing alternating scanning makes waterproof designs for capacitive touchscreens possible. This requires the capacitive touchscreen to perform not only mutual capacitance scanning but also self-capacitance scanning. Through alternating scanning, signals generated by the liquid are detected amidst signal changes caused by various factors. Once the liquid-generated signal is detected, the baseline line value remains constant; only after identifying what has been erased does the baseline line value update faithfully according to the previous rules.

[0036] Existing technologies primarily fail to detect liquids on capacitive touchscreens, thus failing to activate waterproof mode and resulting in poor performance in liquid-related scenarios. Specifically, in liquid environments, the liquid creates capacitance on the touchscreen, leading to ghost dots. Without waterproof mode, the lack of waterproofing measures causes these ghost dots to appear, impacting the user's touch experience. Alternatively, even when there is no liquid on the touchscreen, it may incorrectly detect liquid and activate waterproof mode. The waterproof mode's handling measures can affect normal operation, thus also impacting normal user interaction.

[0037] To address the aforementioned problems, the inventors, through extensive research, discovered and proposed a method, apparatus, and electronic device for controlling the waterproof mode of a touchscreen, as provided in the embodiments of this application. By performing multiple detections to check for liquid presence on the capacitive touchscreen, the system avoids incorrectly entering or failing to enter waterproof mode, thus preventing disruption to normal user operation and improving the user's touch experience. The specific method for controlling the waterproof mode of the touchscreen will be described in detail in subsequent embodiments.

[0038] The following will explain the technical terms that may be involved in the embodiments of this application.

[0039] TpAlgo: Touch algorithm module.

[0040] Base: Reference point. In the process of detecting touch, the touch control chip of a capacitive touch screen first obtains the raw data by sampling through an ADC (Analog-to-Digital Converter) to obtain the raw value; then, a reference is established based on the raw value to obtain the reference value.

[0041] DiffData: The capacitance data of the capacitive touchscreen. The difference is obtained by subtracting the original value from the baseline value, and the coordinate value can be calculated from the difference. In order to obtain the correct difference, a correct 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, water droplets, etc. on the capacitive touchscreen that will change the magnitude of the original value.

[0042] Reference anomaly: In actual use, capacitive touch screens may obtain incorrect references due to factors such as water droplets on the screen, hand sweat, and touch during power-on. This can lead to decreased touch screen sensitivity or false alarms. False alarms refer to a situation where a certain position on the capacitive touch screen is not actually touched, but the touch control chip calculates that there are coordinates.

[0043] Mutual capacitance: Mutual capacitance touchscreens are a new type of capacitive touch technology. A mutual capacitance touchscreen contains a grid, like an array, composed of an X*Y baseline array, forming an X*Y unit capacitance. It forms mutual capacitances between the elements in the columns and rows, and the controller measures the distortion of the electric field at each node on the touch position. Therefore, when a finger approaches or touches a mutual capacitance touchscreen, the capacitance decreases.

[0044] Self-capacitance: In capacitive touchscreens, self-capacitance 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 is self-capacitance. The magnitude of 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, thus enabling interactive functionality. The scanning method for self-capacitance involves projecting the touch point on the touchscreen onto the X and Y axes, calculating the coordinates along each axis, and then combining these coordinates to form the touch point's coordinates. Self-capacitance only generates two data signals: TX and RX.

[0045] Wet fingers: After washing your hands, wet your fingers and then try to unlock your phone with your fingerprint. The water will affect the clarity of the fingerprint image.

[0046] Waterproofing: For capacitive touchscreens operating in liquid environments, where touch operations are affected by liquid interference, waterproofing has been optimized for such scenarios.

[0047] Please see Figure 1 , Figure 1 This illustration shows a flowchart of a method for controlling a waterproof mode on a touchscreen according to an embodiment of this application. The method uses multiple detections to check for the presence of liquid on the capacitive touchscreen to prevent incorrect entry into or failure to enter waterproof mode, thus avoiding disruption to normal user operation and improving the user's touch experience. In a specific embodiment, this method for controlling the waterproof mode of a touchscreen is applied to applications such as... Figure 16 The control device 200 for the waterproof mode of the touchscreen shown, and the electronic device 100 equipped with the control device 200 for the waterproof mode of the touchscreen. Figure 17 The following will use an electronic device as an example to illustrate the specific process of this embodiment. Of course, it is understood that the electronic device used in this embodiment may include smartphones, tablets, wearable electronic devices, etc., and is not limited thereto. The following will focus on... Figure 1 The process is described in detail below. In this embodiment, the electronic device includes a capacitive touchscreen, and the method for controlling the waterproof mode of the touchscreen may specifically include the following steps:

[0048] Step S110: In response to a touch event on the capacitive touchscreen, acquire the capacitance data of the capacitive touchscreen.

[0049] Alternatively, the electronic device may include a capacitive touchscreen.

[0050] In this embodiment, touch events on a capacitive touchscreen can be monitored. If a touch event on a capacitive touchscreen is detected, the capacitance data of the capacitive touchscreen can be obtained in response to the touch event.

[0051] In some implementations, touch events on the capacitive touchscreen can be monitored in real time, at preset time intervals, at preset time points, or according to other preset rules, etc., without limitation.

[0052] In one approach, touch events for a capacitive touchscreen can include triggering a touch event on the capacitive touchscreen through a click operation. Optionally, the click operation on the capacitive touchscreen can include: a single-finger click operation, a multi-finger click operation, a single click operation, multiple consecutive click operations, a palm click operation, etc., without limitation.

[0053] As another approach, touch events for a capacitive touchscreen can include triggering a touch event by performing a press operation on the capacitive touchscreen. Optionally, the press operation on the capacitive touchscreen can include: a single-finger press operation, a multi-finger press operation, a palm press operation, a long press operation, etc., without limitation.

[0054] As another approach, touch events for a capacitive touchscreen can include triggering a touch event on the capacitive touchscreen through a sliding operation. Optionally, the sliding operation on the capacitive touchscreen can include: a single-finger sliding operation, a multi-finger sliding operation, a sliding operation along a specified direction, a sliding operation satisfying a specified sliding trajectory, a sliding operation satisfying a specified sliding distance, etc., without limitation.

[0055] Capacitive touchscreens typically consist of one or more layers of conductive materials (such as ITO, indium tin oxide), which form the plates of a capacitor. When a finger or other conductive object touches the capacitive touchscreen, it changes the local capacitance value of the touchscreen's surface. This is because the finger or other object acts as an additional capacitor plate, forming a new capacitor with the conductive layer on the touchscreen, thus altering the capacitance value of the original capacitor. The touch chip in the electronic device is the core component in this process; it is responsible for measuring these capacitance changes. The touch chip contains many tiny circuits, each corresponding to a specific area (or "pixel" or "node") on the capacitive touchscreen. When a finger touches the capacitive touchscreen, the circuits under the touch area detect the change in capacitance. Accordingly, at each sampling moment (or "frame"), the touch chip simultaneously collects the capacitance data of all nodes, thus acquiring the capacitance data of the capacitive touchscreen.

[0056] Step S120: If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, then the influencing factors that cause the touch event to meet the preset foreign object touch condition are determined based on the capacitance data, wherein the influencing factors include liquid touch factors or non-liquid touch factors.

[0057] In some implementations, the electronic device may pre-set and store preset foreign object touch conditions, which are used as the basis for determining the touch event. Therefore, in this embodiment, when the capacitance data of the capacitive touchscreen is obtained, it can be determined whether the touch event meets the preset foreign object touch conditions based on the capacitance data.

[0058] If, based on the capacitance data, it is determined that the touch event meets the preset foreign object touch condition, then the touch event can be considered to correspond to a foreign object touch. This foreign object touch may or may not be caused by the presence of liquid on the capacitive touchscreen. Therefore, the influencing factors causing the touch event to meet the preset foreign object touch condition can be further determined based on the capacitance data. This determines whether the influencing factor causing the touch event to meet the preset foreign object touch condition is a liquid touch factor, i.e., further determines whether the touch event meeting the preset foreign object touch condition is caused by the presence of liquid on the capacitive touchscreen. It is understood that if it is determined that the touch event meeting the preset foreign object touch condition is caused by the presence of liquid on the capacitive touchscreen, then the influencing factor causing the touch event to meet the preset foreign object touch condition is a liquid touch factor; if it is determined that the touch event meeting the preset foreign object touch condition is not caused by the presence of liquid on the capacitive touchscreen, then the influencing factor causing the touch event to meet the preset foreign object touch condition is a non-liquid touch factor.

[0059] If, based on the capacitance data, it is determined that the touch event does not meet the preset foreign object touch conditions, then it can be considered that the touch event does not correspond to a foreign object touch. Alternatively, even if the touch event corresponds to a foreign object touch, it is not due to the presence of liquid on the capacitive touchscreen. Therefore, the capacitive touchscreen can be controlled not to enter the waterproof mode.

[0060] Understandably, when a touch event is detected on a capacitive touchscreen when liquid (such as rainwater) is present on its surface, the mutual capacitance of the touch nodes decreases due to finger touch, while the liquid increases it. Therefore, in the touch area corresponding to the touch event, the capacitance data of the touch nodes along the same driving cable TX or receiving cable RX will have both positive and negative values. Thus, the presence of liquid can be detected by examining these positive and negative value characteristics. Specifically, if the capacitance data of the touch nodes along the same driving cable TX or receiving cable RX in the touch area corresponding to the touch event has both positive and negative values, the touch event is generally considered to be liquid-triggered, indicating the presence of liquid on the capacitive touchscreen. Conversely, if the capacitance data of the touch nodes along the same driving cable TX or receiving cable RX in the touch area corresponding to the touch event does not have both positive and negative values ​​(either both are positive or both are negative), the touch event is generally considered to be non-liquid-triggered, indicating the absence of liquid on the capacitive touchscreen.

[0061] However, please see Figure 2 and Figure 3 , Figure 2A schematic diagram is shown of a copper pillar placed on a capacitive touchscreen of an electronic device. Figure 3 This diagram illustrates the capacitance data when a copper pillar is placed on a capacitive touchscreen of an electronic device. (For example...) Figure 3 As shown, it is clear that when copper pillars are placed on a capacitive touchscreen, the touch nodes of the capacitive touchscreen have positive and negative values ​​in the horizontal or vertical directions. That is, the capacitance data of the touch nodes included in the same driving cable TX or receiving cable RX have positive and negative values. Currently, waterproofing is generally based on detecting positive and negative value characteristics, which can easily meet the conditions for liquid touch and be mistakenly identified as the presence of liquid on the capacitive touchscreen. Therefore... Figure 3 The copper pillar's pressure data is easily detected as liquid touch, which is why the waterproof mode is designed to detect this. Figure 3 A series of interception measures were implemented, but because of these measures, actual liquid contact was also blocked, preventing the system from entering waterproof mode when liquid actually touches the surface. Figure 4 As shown, Figure 4 This diagram illustrates how a capacitive touchscreen does not enter waterproof mode when liquid is present.

[0062] Therefore, if the capacitive touchscreen is controlled to enter waterproof mode solely based on the positive and negative values ​​of the capacitance data of the touch nodes included in the same driving cable TX or the same receiving cable RX, there may be an error in entering the waterproof mode. Conversely, if the capacitive touchscreen is controlled not to enter waterproof mode when the capacitance data of the touch nodes included in the same driving cable TX or the same receiving cable RX has positive and negative values, there may be an error in not entering the waterproof mode. Therefore, in this embodiment, the factors that cause the capacitance data of the touch nodes included in the same driving cable TX or the same receiving cable RX to have positive and negative values ​​can be further determined, that is, further determined whether it is caused by liquid touch or non-liquid touch (copper pillar placement), and then targeted processing can be carried out.

[0063] As an feasible approach, upon obtaining the capacitance data of the capacitive touchscreen, it is possible to determine, based on this capacitance data, whether the capacitance data of the touch nodes included in the same receiving cable RX within the touch area corresponding to the touch event has positive and negative values. Specifically, if the capacitance data of the touch nodes included in the same receiving cable within the touch area corresponding to the touch event has both positive and negative values, then the touch event can be considered either liquid touch triggering or non-liquid touch (copper pillar placement) triggering, and the touch event can be considered to meet the preset foreign object touch conditions.

[0064] In some implementations, when the capacitance data of the capacitive touchscreen is obtained, it can be determined whether the capacitance data of the touch nodes included in the same drive cable TX within the touch area has positive and negative values ​​based on the capacitance data. If it is determined based on the capacitance data that the capacitance data of the touch nodes included in the same drive cable within the touch area has both positive and negative values, then the touch event can be considered to be triggered by either liquid touch or non-liquid touch (copper pillar placement), and the touch event can be considered to meet the preset foreign object touch condition.

[0065] In some implementations, when the capacitance data of the capacitive touchscreen is obtained, it can be determined whether the capacitance data of the touch nodes included in the same receiving cable and the same driving cable within the touch area have positive and negative values ​​based on the capacitance data. If it is determined based on the capacitance data that the capacitance data of the touch nodes included in the same receiving cable and the same driving cable within the touch area have both positive and negative values, then the touch event can be considered to be triggered by either liquid touch or non-liquid touch (copper pillar placement), and the touch event can be considered to meet the preset foreign object touch conditions.

[0066] As an implementable approach, the capacitance data can include mutual capacitance data and self-capacitance data. Based on the mutual capacitance data and self-capacitance data, the influencing factors that cause the touch event to meet the preset foreign object touch conditions can be determined. That is, based on the mutual capacitance data and self-capacitance data, it can be determined whether the influencing factor that causes the touch event to meet the preset foreign object touch conditions is a liquid touch factor (a touch event occurs on the capacitive touch screen when there is liquid on the surface of the capacitive touch screen) or a non-liquid touch factor (a copper pillar is placed on the capacitive touch screen).

[0067] As another feasible approach, the capacitance data can include self-capacitance data, which can then be used to determine the influencing factors that cause the touch event to meet the preset foreign object touch conditions. That is, based on the self-capacitance data, it can be determined whether the influencing factors that cause the touch event to meet the preset foreign object touch conditions are liquid touch factors (touch events occur on the capacitive touch screen when there is liquid on the surface of the capacitive touch screen) or non-liquid touch factors (copper pillars are placed on the capacitive touch screen).

[0068] Step S130: Based on the influencing factors, control the waterproof mode of the capacitive touch screen.

[0069] In this embodiment, after determining the influencing factors that cause a touch event to meet the preset foreign object touch conditions, the waterproof mode of the capacitive touchscreen can be controlled based on these influencing factors. Optionally, controlling the waterproof mode of the capacitive touchscreen may include: controlling the capacitive touchscreen to enter waterproof mode, or controlling the capacitive touchscreen not to enter waterproof mode.

[0070] If the influencing factor is determined to be liquid, then the presence of liquid on the capacitive touchscreen can be addressed by switching it to a waterproof mode to prevent the liquid from affecting the touch accuracy. If the influencing factor is determined to be non-liquid (e.g., the placement of the copper pillars), then the absence of liquid on the capacitive touchscreen can be addressed by preventing it from switching to waterproof mode to avoid affecting normal operation.

[0071] An embodiment of this application provides a method for controlling the waterproof mode of a touchscreen. In response to a touch event on a capacitive touchscreen, the method acquires capacitance data of the capacitive touchscreen. If the touch event is determined to meet a preset foreign object touch condition based on the capacitance data, the method determines the influencing factors that cause the touch event to meet the preset foreign object touch condition based on the capacitance data. These influencing factors include liquid touch factors or non-liquid touch factors. Based on these influencing factors, the method controls the waterproof mode of the capacitive touchscreen. By performing multiple detections on the presence of liquid on the capacitive touchscreen, the method avoids incorrectly entering or failing to enter the waterproof mode, which could affect the user's normal operation and improve the user's touch experience.

[0072] Please see Figure 5 , Figure 5 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown. This method is applied to an electronic device, which includes a capacitive touchscreen, and the capacitance data includes self-capacitance data and mutual capacitance data. The following will focus on... Figure 5 The process shown will be described in detail. The control method for the waterproof mode of the touch screen may specifically include the following steps:

[0073] Step S210: In response to a touch event on the capacitive touchscreen, acquire the capacitance data of the capacitive touchscreen.

[0074] For a detailed description of step S210, please refer to step S110, which will not be repeated here.

[0075] Step S220: If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, then based on the mutual capacitance data, multiple foreign object search areas are determined from the capacitive touch screen, wherein each of the multiple foreign object search areas includes multiple touch nodes.

[0076] Optionally, the capacitance data may include mutual capacitance data and self-capacitance data.

[0077] In this embodiment, if the touch event is determined to meet the preset foreign object touch condition based on capacitance data, multiple foreign object search areas can be determined from the capacitive touchscreen based on mutual capacitance data. Each of these multiple foreign object search areas includes multiple touch nodes, and each touch node corresponds to mutual capacitance data and self-capacitance data. In actual products, one touch node can correspond to one sensing node or monitoring point. Each column / row also has its own number of touch nodes. Correspondingly, each row / column can be regarded as a detection channel, and a detection channel can be a driving line / sensing line (receiving line) on the touch sensor.

[0078] In some implementations, when mutual capacitance data of the capacitive touchscreen is obtained, multiple adjacent touch nodes with corresponding negative mutual capacitance values ​​can be grouped into a foreign object search region to identify multiple foreign object search regions from the capacitive touchscreen. Since the capacitance data of the touch nodes in the foreign object search region is negative, the foreign object search region can be understood as a "dimple". Please refer to [link to relevant documentation]. Figure 6 , Figure 6 A schematic diagram of the foreign object search area provided in an embodiment of this application is shown, such as... Figure 6 As shown, the area within the corresponding circle is a search area for foreign objects, namely a "dent".

[0079] Step S230: Based on the mutual capacitance data and self-capacitance data corresponding to the multiple touch nodes included in each foreign object search area, determine the influencing factors corresponding to each foreign object search area, wherein the influencing factors include liquid touch factors or non-liquid touch factors.

[0080] In this embodiment, when multiple foreign object search areas are determined from the capacitive touchscreen, the influencing factors corresponding to each foreign object search area can be determined based on the mutual capacitance data and self-capacitance data corresponding to the multiple touch nodes included in each of the multiple foreign object search areas. That is, based on the mutual capacitance data and self-capacitance data corresponding to the multiple touch nodes included in each of the multiple foreign object search areas, it can be determined whether the influencing factor corresponding to each foreign object search area is a liquid touch factor or a non-liquid touch factor.

[0081] In some implementations, when multiple foreign object search areas are identified from a capacitive touchscreen, the characteristics of each touch node within each search area can be determined based on the mutual capacitance and self-capacitance data corresponding to the multiple touch nodes included in each search area. Based on these characteristics, influencing factors corresponding to each search area can be determined. The characteristics of each touch node include whether it is a valid touch node or not.

[0082] Please see Figure 7 , Figure 7 This application shows Figure 5 The flowchart shown illustrates steps S230 of the control method for the waterproof mode of the touchscreen. The following will focus on... Figure 7 The process shown will be described in detail, and the method may specifically include the following steps:

[0083] Step S231: Based on the mutual capacitance data and self-capacitance data corresponding to the multiple touch nodes included in each foreign object search area, determine the valid touch nodes among the multiple touch nodes included in each foreign object search area.

[0084] In some implementations, when multiple foreign object search areas are determined from a capacitive touchscreen, the effective touch nodes among the multiple touch nodes included in each foreign object search area can be determined based on the mutual capacitance data and self capacitance data corresponding to the multiple touch nodes included in each of the multiple foreign object search areas.

[0085] In some implementations, the electronic device can pre-set and store valid node conditions. When multiple foreign object search areas are determined from the capacitive touch screen, it can determine whether the multiple touch nodes included in each foreign object search area meet the valid node conditions based on the self-capacitance data and mutual capacitance data corresponding to the multiple touch nodes included in each foreign object search area. The touch nodes that meet the valid node conditions among the multiple touch nodes included in each foreign object search area are determined as valid touch nodes, thereby determining the valid touch nodes among the multiple touch nodes included in each foreign object search area.

[0086] Please see Figure 8 , Figure 8 This application shows Figure 7 The flowchart shown illustrates step S231 of the control method for the waterproof mode of the touchscreen. The following will focus on... Figure 8 The process shown will be described in detail, and the method may specifically include the following steps:

[0087] Step S2311: From the multiple touch nodes included in each foreign object search area, determine the touch node whose mutual capacitance data is less than the first threshold as the target touch node.

[0088] In some implementations, when multiple foreign object search areas are determined from a capacitive touchscreen, a touch node whose mutual capacitance data is less than a first threshold can be selected as the target touch node from among the multiple touch nodes included in each of the multiple foreign object search areas.

[0089] As one feasible approach, the electronic device can pre-set and store a first threshold, which serves as the basis for determining the mutual capacitance data corresponding to each of the multiple touch nodes included in each foreign object search area. Therefore, in this embodiment, when multiple foreign object search areas are determined from a capacitive touchscreen, for each foreign object search area, the mutual capacitance data corresponding to each of the multiple touch nodes included in each foreign object search area can be compared with the first threshold to determine whether the mutual capacitance data corresponding to each of the multiple touch nodes included in each foreign object search area is less than the first threshold.

[0090] If the mutual capacitance data of a certain touch node among the multiple touch nodes in the foreign object search area is less than the first threshold, then the touch node can be identified as the target touch node. That is, from the multiple touch nodes included in each foreign object search area, the touch node with the corresponding mutual capacitance data less than the first threshold can be identified as the target touch node.

[0091] Optionally, the first threshold may include -19, -20, -21, etc., and is not limited here.

[0092] Step S2312: From the target touch nodes, determine the target touch nodes whose corresponding self-capacitance transmission position has at least one neighboring self-capacitance data less than the second threshold and whose corresponding self-capacitance reception position has at least one neighboring self-capacitance data less than the second threshold as the effective touch nodes.

[0093] Optionally, the number of target touch nodes can be one or more. That is, a search area for foreign objects may include one or more target touch nodes.

[0094] In some embodiments, the electronic device may pre-set and store a second threshold, which serves as the basis for determining at least one neighboring self-capacitive data at the self-capacitive transmit (TX) position corresponding to the target touch node, and at least one neighboring self-capacitive data at the self-capacitive receive (RX) position corresponding to the target touch node. Therefore, in this embodiment, when a target touch node is determined, at least one neighboring self-capacitive data at the self-capacitive transmit (TX) position corresponding to the target touch node and at least one neighboring self-capacitive data at the self-capacitive receive (RX) position corresponding to the target touch node can be determined. The at least one neighboring self-capacitive data at the self-capacitive transmit (TX) position corresponding to the target touch node is then compared with the second threshold to determine whether all of the at least one neighboring self-capacitive data at the self-capacitive transmit (TX) position corresponding to the target touch node is less than the second threshold. Similarly, the at least one neighboring self-capacitive data at the self-capacitive receive (RX) position corresponding to the target touch node is also compared with the second threshold to determine whether all of the at least one neighboring self-capacitive data at the self-capacitive receive (RX) position corresponding to the target touch node is less than the second threshold.

[0095] Specifically, if at least one neighboring self-capacitance data at the self-capacitance transmission (TX) position corresponding to a target touch node is less than a second threshold, and at least one neighboring self-capacitance data at the corresponding self-capacitance reception (RX) position is less than the second threshold, then the target touch node can be determined as a valid touch node. That is, from among the target touch nodes, a target touch node whose corresponding self-capacitance transmission position has at least one neighboring self-capacitance data less than the second threshold, and whose corresponding self-capacitance reception position has at least one neighboring self-capacitance data less than the second threshold, can be determined as a valid touch node.

[0096] Optionally, the second threshold may include 99, 100, 101, etc., and is not limited here.

[0097] Optionally, at least one neighboring self-contained data may include 1, 2, 3, 4, 5 neighboring self-contained data, etc., without limitation.

[0098] As an example, taking a first threshold of -20, a second threshold of 100, and at least one neighboring self-capacitance data as three neighboring self-capacitance data as an example, when it is determined that the mutual capacitance value corresponding to a certain touch node is less than (-20), and the three neighboring values ​​near the self-capacitance TX position corresponding to the touch node are all less than 100, and the three neighboring values ​​near the self-capacitance RX position corresponding to the node are all less than 100, the number of valid nodes in the search foreign object area is incremented by 1.

[0099] Please see Figure 9 , Figure 9 This illustration shows a schematic diagram of the touch node and its corresponding TX / RX adjacent values ​​provided in an embodiment of this application. For example... Figure 9As shown in the figure, the large area in the middle represents mutual capacitance data, while the individual bars on the right and bottom represent self-capacitance data. The only difference between the two is the sampling method; both are capacitance data values ​​collected from capacitive touchscreens and are of reference value for waterproof testing. Figure 9 The TX self-adjacent value corresponding to the middle touch node, that is, the self-adjacent TX value of the position corresponding to the sequence number and the value of -282 in the middle area is -75. Then, the three nodes above and below -75 are also judged. Figure 9 The value circled in red on the right is taken as the maximum value. This maximum value is compared with the threshold of 100. If the maximum value is less than 100, it is considered to be a valid touch node.

[0100] It is understandable that this embodiment primarily uses the difference in self-capacitance to effectively distinguish between touch data caused by genuine liquid contact and touch data caused by other foreign objects. Liquid touch data generally corresponds to a larger RX / TX self-capacitance value, while touch data caused by foreign objects generally corresponds to a smaller RX / TX self-capacitance value. Figure 3 and Figure 4 The difference in the entire column of TX data shown on the right.

[0101] Step S232: Count the number of valid touch nodes included in each foreign object search area.

[0102] In this embodiment, given the valid touch nodes included in each foreign object search area, the number of valid touch nodes included in each foreign object search area can be counted.

[0103] As an feasible approach, for each foreign object search area including multiple touch nodes, it is possible to sequentially determine whether multiple touch nodes are valid touch nodes. If a touch node is detected as a valid touch node, the number of valid touch nodes included in the search area can be incremented by one until all multiple touch nodes included in the search area have been counted, at which point the number of valid touch nodes included in the search area can be determined.

[0104] As an example, suppose a foreign object search area includes multiple touch nodes: touch node 1, touch node 2, touch node 3, and touch node 4. We can sequentially determine whether each touch node is a valid touch node in the order of touch node 1, touch node 2, touch node 3, and touch node 4. If touch node 1 is determined to be a valid touch node, the number of valid touch nodes in the search area is recorded as "1". Then, we continue to determine whether touch node 2 is a valid touch node. If touch node 2 is determined to be a valid touch node, the number of valid touch nodes in the search area is recorded as "2". Next, we continue to determine whether touch node 3 is a valid touch node. If touch node 3 is not a valid touch node, the number of valid touch nodes in the search area is recorded as "2". Finally, we continue to determine whether touch node 4 is a valid touch node. If touch node 4 is determined to be a valid touch node, the number of valid touch nodes in the search area is recorded as "3". Based on this, we can determine that the total number of valid touch nodes in the search area is "3".

[0105] Step S233: Based on the number of valid touch nodes included in each foreign object search area, determine the influencing factors corresponding to each foreign object search area.

[0106] In this embodiment, given the number of valid touch nodes included in each foreign object search area, the influencing factors corresponding to each foreign object search area can be determined based on the number of valid touch nodes included in each foreign object search area. That is, the influencing factors corresponding to each foreign object search area can be determined as liquid touch factors or non-liquid touch factors based on the number of valid touch nodes included in each foreign object search area.

[0107] In some implementations, the electronic device may pre-set and store a third threshold, which serves as a basis for determining the number of valid touch nodes included in each foreign object search area. Therefore, in this embodiment, after obtaining the number of valid touch nodes included in each foreign object search area, the number of valid touch nodes included in each foreign object search area can be compared with the third threshold to determine whether the number of valid touch nodes included in each foreign object search area is greater than the third threshold.

[0108] If the number of valid touch nodes in a certain search area is greater than the third threshold, then the influencing factor corresponding to the search area can be determined to be a non-liquid touch factor. For example, the search area can be considered to be the touch change caused by the placement of the copper pillar. Therefore, the influencing factor corresponding to the search area with the number of valid touch nodes greater than the third threshold can be determined to be a non-liquid touch factor.

[0109] If the number of valid touch nodes in a certain search area is less than or equal to the third threshold, then the influencing factor corresponding to the search area can be determined to be a liquid touch factor. For example, the search area can be considered to be the amount of touch change caused by liquid touch. Therefore, the influencing factor corresponding to the search area with the number of valid touch nodes less than or equal to the third threshold can be determined to be a liquid touch factor.

[0110] Optionally, the third threshold may include 2, 3, 4, etc., and is not limited here.

[0111] Step S240: Based on the influencing factors corresponding to each search foreign object area, determine the influencing factors that cause the touch event to meet the preset foreign object touch conditions.

[0112] In this embodiment, after obtaining the influencing factors corresponding to each of the multiple foreign object search areas, the influencing factors that cause the touch event to meet the preset foreign object touch conditions can be determined based on the influencing factors corresponding to each foreign object search area. That is, based on whether the influencing factors corresponding to each foreign object search area are liquid touch factors or non-liquid touch factors, it can be determined whether the influencing factors that cause the touch event to meet the preset foreign object touch conditions are liquid touch factors or non-liquid touch factors.

[0113] In some implementations, when influencing factors are obtained for each of the multiple foreign object search areas, the probability that the influencing factor causing the touch event to meet the preset foreign object touch condition is a liquid touch factor can be determined based on the influencing factors corresponding to each foreign object search area. The influencing factor causing the touch event to meet the preset foreign object touch condition is then determined based on this probability. Optionally, if the probability reaches a probability threshold, the influencing factor causing the touch event to meet the preset foreign object touch condition can be determined to be a liquid touch factor; if the probability does not reach the probability threshold, the influencing factor causing the touch event to meet the preset foreign object touch condition can be determined to be a non-liquid touch factor.

[0114] Please see Figure 10 , Figure 10 This application shows Figure 5 The flowchart shown illustrates steps S240 of the control method for the waterproof mode of the touchscreen. The following will focus on... Figure 10 The process shown will be described in detail, and the method may specifically include the following steps:

[0115] Step S241: Determine the number of regions corresponding to the influencing factor, which is the number of search foreign objects in the liquid touch factor.

[0116] In this embodiment, after determining the influencing factors corresponding to each foreign object search area, the number of foreign object search areas whose corresponding influencing factor is liquid touch can be determined.

[0117] As an feasible approach, since the entire capacitive touchscreen includes multiple foreign object search areas, for each of these multiple foreign object search areas, it can be determined sequentially whether the influencing factor corresponding to these multiple foreign object search areas is a liquid touch factor. If a liquid touch factor is detected as the influencing factor corresponding to a certain foreign object search area, the number of foreign object search areas with liquid touch factor in the statistics can be incremented by one until all multiple foreign object search areas have been counted, thus obtaining the number of foreign object search areas with liquid touch factor in the statistics.

[0118] As an example, suppose there are multiple foreign object search areas including Foreign Object Search Area 1, Foreign Object Search Area 2, Foreign Object Search Area 3, and Foreign Object Search Area 4. We can sequentially determine whether the influencing factor corresponding to each foreign object search area is a liquid touch factor, following the order of Foreign Object Search Area 1, Foreign Object Search Area 2, Foreign Object Search Area 3, and Foreign Object Search Area 4. If we first determine that the influencing factor corresponding to Foreign Object Search Area 1 is a liquid touch factor, we can record the number of search areas as "1". Then, we continue to determine whether the influencing factor corresponding to Foreign Object Search Area 2 is a liquid touch factor. If the influencing factor corresponding to Foreign Object Search Area 2 is determined to be a liquid touch factor... If the factor is liquid touch, the number of statistical areas can be recorded as "2". Then, it is determined whether the influencing factor corresponding to the search foreign object area 3 is a liquid touch factor. If it is determined that the influencing factor corresponding to the search foreign object area is not a liquid touch factor, the number of statistical areas can be recorded as "2". Then, it is determined whether the influencing factor corresponding to the search foreign object area 4 is a liquid touch factor. If it is determined that the influencing factor corresponding to the search foreign object area 4 is a liquid touch factor, the number of statistical areas can be recorded as "3". Based on this, it can be determined that the number of search foreign object areas with liquid touch factor is "3".

[0119] Step S242: Based on the number of regions, determine the influencing factors that cause the touch event to meet the preset foreign object touch conditions.

[0120] In this embodiment, when the number of search foreign object regions corresponding to liquid touch factors is obtained, the influencing factors that cause the touch event to meet the preset foreign object touch conditions can be determined based on the number of regions. That is, the influencing factors that cause the touch event to meet the preset foreign object touch conditions can be determined based on the number of regions.

[0121] In some implementations, the electronic device may pre-set and store a fourth threshold, which is used as a basis for determining the number of regions. Therefore, in this embodiment, when the number of regions is obtained, the number of regions can be compared with the fourth threshold to determine whether the number of regions is greater than the fourth threshold.

[0122] If the number of regions exceeds the fourth threshold, it can be considered that a sufficient number of foreign object search areas have been identified as liquid touch areas, and the touch event is highly likely to be triggered by liquid touch. Therefore, the influencing factor that causes the touch event to meet the preset foreign object touch condition can be determined to be a liquid touch factor. If the number of regions is less than or equal to the fourth threshold, it can be considered that a sufficient number of foreign object search areas have been identified as liquid touch areas, and the touch event is highly likely to be triggered by non-liquid touch. Therefore, the influencing factor that causes the touch event to meet the preset foreign object touch condition can be determined to be a non-liquid touch factor.

[0123] Optionally, the fourth threshold may include 9, 10, 11, etc., without limitation.

[0124] Step S250: Based on the influencing factors, control the waterproof mode of the capacitive touch screen.

[0125] For a detailed description of step S250, please refer to step S130, which will not be repeated here.

[0126] An embodiment of this application provides a control method for a waterproof mode of a touchscreen. In response to a touch event on a capacitive touchscreen, the method acquires capacitance data of the capacitive touchscreen. If, based on the capacitance data, it is determined that the touch event meets a preset foreign object touch condition, then, based on mutual capacitance data, multiple foreign object search areas are determined from the capacitive touchscreen. Each of these search areas includes multiple touch nodes. Based on the mutual capacitance data and self-capacitance data corresponding to the multiple touch nodes in each search area, influencing factors corresponding to each search area are determined. These influencing factors include liquid touch factors or non-liquid touch factors. Based on the influencing factors corresponding to each search area, influencing factors causing the touch event to meet the preset foreign object touch condition are determined. Based on these influencing factors, the waterproof mode of the capacitive touchscreen is controlled. Compared to... Figure 1The control method for the waterproof mode of the touch screen shown in this embodiment further distinguishes between liquid touch and non-liquid touch by using self-capacitance data, so as to further avoid incorrectly entering or failing to enter the waterproof mode, which would affect the user's normal operation and improve the user's touch experience.

[0127] Please see Figure 11 , Figure 11 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown. This method is applied to an electronic device, which includes a capacitive touchscreen, and the capacitance data includes self-capacitance data. The following will focus on... Figure 11 The process shown will be described in detail. The control method for the waterproof mode of the touch screen may specifically include the following steps:

[0128] Step S310: In response to a touch event on the capacitive touchscreen, acquire the capacitance data of the capacitive touchscreen.

[0129] For a detailed description of step S310, please refer to step S110, which will not be repeated here.

[0130] Step S320: If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, and based on the self-capacitance data, it is determined that there are self-capacitance data at both the self-capacitance emission position and the self-capacitance reception position that are both greater than the fifth threshold, then the influencing factor that causes the touch event to meet the preset foreign object touch condition is determined to be the liquid touch factor.

[0131] In some implementations, the electronic device may also pre-set and store a fifth threshold, which serves as the basis for determining the self-capacitance data corresponding to liquid touch and the self-capacitance data corresponding to non-liquid touch. Therefore, in this embodiment, if it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, it is possible to determine, based on the self-capacitance data, whether both the self-capacitance transmitter (TX) position and the self-capacitance receiver (RX) position contain self-capacitance data greater than the fifth threshold.

[0132] One feasible approach is to acquire all self-capacitance data corresponding to the self-capacitance transmit (TX) position and compare all such data with a fifth threshold to determine if any self-capacitance data at the TX position exceeds the fifth threshold. Similarly, all self-capacitance data corresponding to the self-capacitance receive (RX) position can be acquired and compared with a fifth threshold to determine if any self-capacitance data at the RX position exceeds the fifth threshold.

[0133] Optionally, the fifth threshold may include 1000, 1100, 1200, etc., and is not limited here.

[0134] If, based on the self-capacitance data, it is determined that both the self-capacitance emission position and the self-capacitance receiving position have self-capacitance data greater than the fifth threshold, then the influencing factor that causes the touch event to meet the preset foreign object touch condition can be determined to be the liquid touch factor.

[0135] Please see Figure 12 , Figure 12 A schematic diagram of the liquid touch provided in an embodiment of this application is shown, such as... Figure 12 As shown, under liquid touch, there are self-capacitance data greater than 1000 at both the self-capacitance transmitting position and the self-capacitance receiving position, such as 1641, 1029, 1168, and 1115.

[0136] Step S330: If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, and based on the self-capacitance data, it is determined that there is no self-capacitance data greater than the fifth threshold at the self-capacitance emission position and the self-capacitance reception position, then the influencing factor that causes the touch event to meet the preset foreign object touch condition is determined to be the non-liquid touch factor.

[0137] If, based on the self-capacitance data, it is determined that there is no self-capacitance data at the self-capacitance emission position and the self-capacitance reception position that is greater than the fifth threshold, then the influencing factor that causes the touch event to meet the preset foreign object touch condition can be determined to be a non-liquid touch factor.

[0138] Step S340: Based on the aforementioned influencing factors, control the waterproof mode of the capacitive touchscreen.

[0139] For a detailed description of step S340, please refer to step S130, which will not be repeated here.

[0140] One embodiment of this application provides a control method for obtaining a waterproof mode of a touchscreen. In response to a touch event on a capacitive touchscreen, the method acquires capacitance data of the capacitive touchscreen. If, based on the capacitance data, it is determined that the touch event meets a preset foreign object touch condition, and based on self-capacitance data, it is determined that both the self-capacitance emission position and the self-capacitance reception position have self-capacitance data greater than a fifth threshold, then the influencing factor causing the touch event to meet the preset foreign object touch condition is determined to be a liquid touch factor. Alternatively, if, based on the capacitance data, it is determined that the touch event meets the preset foreign object touch condition, and based on self-capacitance data, it is determined that neither the self-capacitance emission position nor the self-capacitance reception position has self-capacitance data greater than a fifth threshold, then the influencing factor causing the touch event to meet the preset foreign object touch condition is determined to be a non-liquid touch factor. Based on this influencing factor, the waterproof mode of the capacitive touchscreen is controlled. Compared to... Figure 1The control method for the waterproof mode of the touch screen shown in this embodiment further distinguishes between liquid touch and non-liquid touch by classifying self-capacitance data less than or equal to a fifth threshold as non-liquid touch and self-capacitance data greater than the fifth threshold as liquid touch. This is to further prevent incorrect entry into waterproof mode or incorrect failure to enter waterproof mode, which would affect the user's normal operation and improve the user's touch experience.

[0141] Please see Figure 13 , Figure 13 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown. This method is applied to an electronic device, which includes a capacitive touchscreen, and the capacitance data includes self-capacitance data. The following will focus on... Figure 13 The process shown will be described in detail. The control method for the waterproof mode of the touch screen may specifically include the following steps:

[0142] Step S410: In response to a touch event on the capacitive touchscreen, acquire the capacitance data of the capacitive touchscreen.

[0143] For a detailed description of step S410, please refer to step S110, which will not be repeated here.

[0144] Step S420: If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, and based on the self-capacitance data, it is determined that there is self-capacitance data less than the sixth threshold at the self-capacitance emission position, then the influencing factor that causes the touch event to meet the preset foreign object touch condition is determined to be the liquid touch factor.

[0145] In some implementations, the electronic device may also pre-set and store a sixth threshold, which serves as the basis for determining the self-capacitance data corresponding to liquid touch and the self-capacitance data corresponding to non-liquid touch. Therefore, in this embodiment, if it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, it is possible to determine, based on the self-capacitance data, whether there is self-capacitance data less than the sixth threshold at the self-capacitance emission TX position.

[0146] As an feasible approach, all self-capacitance data corresponding to the self-capacitance emission TX position can be obtained, and all self-capacitance data corresponding to the self-capacitance emission TX position can be compared with a sixth threshold to determine whether there is any self-capacitance data less than the sixth threshold among all self-capacitance data corresponding to the self-capacitance emission TX position.

[0147] Optionally, the sixth threshold may include -500, -600, etc.

[0148] If, based on the self-capacitance data, it is determined that there is self-capacitance data at the self-capacitance emission position that is less than the sixth threshold, then the influencing factor that causes the touch event to meet the preset foreign object touch condition can be determined to be the liquid touch factor.

[0149] Please see Figure 14 , Figure 14 A schematic diagram of the liquid touch provided in an embodiment of this application is shown, such as... Figure 14 As shown, under liquid touch, the self-capacitance emission position has self-capacitance data less than -500, such as -694 and -706.

[0150] Step S430: If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, and based on the self-capacitance data, it is determined that there is no self-capacitance data less than the sixth threshold at the self-capacitance emission position, then the influencing factor that causes the touch event to meet the preset foreign object touch condition is determined to be the non-liquid touch factor.

[0151] If, based on the self-capacitance data, it is determined that there is no self-capacitance data less than the sixth threshold at the self-capacitance emission position, then the influencing factor that causes the touch event to meet the preset foreign object touch condition is determined to be a non-liquid touch factor.

[0152] Step S440: Based on the aforementioned influencing factors, control the waterproof mode of the capacitive touchscreen.

[0153] For a detailed description of step S440, please refer to step S130, which will not be repeated here.

[0154] One embodiment of this application provides a control method for obtaining a waterproof mode of a touchscreen. In response to a touch event on a capacitive touchscreen, the method acquires the capacitance data of the capacitive touchscreen. If, based on the capacitance data, it is determined that the touch event meets a preset foreign object touch condition, and based on the self-capacitance data, it is determined that there is self-capacitance data at the self-capacitance emission position that is less than a sixth threshold, then the influencing factor causing the touch event to meet the preset foreign object touch condition is determined to be a liquid touch factor. Alternatively, if, based on the capacitance data, it is determined that the touch event meets the preset foreign object touch condition, and based on the self-capacitance data, it is determined that there is no self-capacitance data at the self-capacitance emission position that is less than the sixth threshold, then the influencing factor causing the touch event to meet the preset foreign object touch condition is determined to be a non-liquid touch factor. Based on the influencing factor, the waterproof mode of the capacitive touchscreen is controlled. Compared to... Figure 1 The control method for the waterproof mode of the touch screen shown in this embodiment further distinguishes between liquid touch and non-liquid touch by classifying self-capacitance data less than the sixth threshold as liquid touch and self-capacitance data greater than or equal to the sixth threshold as non-liquid touch. This is to further prevent incorrect entry into waterproof mode or incorrect failure to enter waterproof mode, which would affect the user's normal operation and improve the user's touch experience.

[0155] Please see Figure 15 , Figure 15 A flowchart illustrating a control method for a waterproof mode of a touchscreen according to an embodiment of this application is shown. This method is applied to an electronic device, which includes a capacitive touchscreen. The following will focus on... Figure 15 The process shown will be described in detail. The control method for the waterproof mode of the touch screen may specifically include the following steps:

[0156] Step S510: In response to a touch event on the capacitive touchscreen, acquire the capacitance data of the capacitive touchscreen.

[0157] For a detailed description of step S510, please refer to step S110, which will not be repeated here.

[0158] Step S520: If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, and based on the capacitance data, it is determined that the touch node where the corresponding capacitance data with a positive value is located forms an irregular shape, then the influencing factor that causes the touch event to meet the preset foreign object touch condition is determined to be the liquid touch factor.

[0159] It is understandable that, such as Figure 4 As shown, if liquid is present on a capacitive touchscreen, the positive values ​​corresponding to the capacitance data on the touchscreen will generally form an irregular shape, such as a curved, encircling circle, when the liquid is touched. Figure 3 As shown, if there is no liquid on the capacitive touchscreen, then when performing non-liquid touch (such as placing a copper pillar), the positive values ​​corresponding to the capacitance data on the capacitive touchscreen will generally form a regular shape, such as a circle. Therefore, in this embodiment, by detecting the different shapes formed by the positive values ​​in the capacitance data on the capacitive touchscreen, it is possible to distinguish whether the influencing factor causing the touch event to meet the preset foreign object touch condition is a liquid touch factor or a non-liquid influencing factor.

[0160] As an feasible approach, if it is determined from the capacitance data that the touch event meets the preset foreign object touch conditions, then the shape formed by the touch node where the corresponding capacitance data with a positive value is located can be determined from the capacitance data (such as mutual capacitance data).

[0161] If, based on capacitance data, it is determined that the shape of the touch node where the corresponding capacitance data with a positive value is located is an irregular shape, then the influencing factor that causes the touch event to meet the preset foreign object touch condition can be determined to be the liquid touch factor.

[0162] Step S530: If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, and based on the capacitance data, it is determined that the touch node where the corresponding capacitance data with a positive value is located forms a regular shape, then the influencing factor that causes the touch event to meet the preset foreign object touch condition is determined to be the non-liquid touch factor.

[0163] If, based on capacitance data, it is determined that the shape formed by the touch node containing the corresponding positive capacitance data is a regular shape, then the influencing factor that causes the touch event to meet the preset foreign object touch condition can be determined to be a non-liquid touch factor.

[0164] Step S540: Based on the aforementioned influencing factors, control the waterproof mode of the capacitive touchscreen.

[0165] For a detailed description of step S540, please refer to step S130, which will not be repeated here.

[0166] One embodiment of this application provides a control method for obtaining a waterproof mode of a touchscreen. In response to a touch event on a capacitive touchscreen, the method acquires the capacitance data of the capacitive touchscreen. If, based on the capacitance data, it is determined that the touch event meets a preset foreign object touch condition, and based on the capacitance data, it is determined that the touch node containing the corresponding positive capacitance data forms an irregular shape, then the influencing factor causing the touch event to meet the preset foreign object touch condition is determined to be a liquid touch factor. Alternatively, if, based on the capacitance data, it is determined that the touch event meets the preset foreign object touch condition, and based on the capacitance data, it is determined that the touch node containing the corresponding positive capacitance data forms a regular shape, then the influencing factor causing the touch event to meet the preset foreign object touch condition is determined to be a non-liquid touch factor. Based on these influencing factors, the waterproof mode of the capacitive touchscreen is controlled. Compared to... Figure 1 The control method for the waterproof mode of the touch screen shown in this embodiment further distinguishes between liquid touch and non-liquid touch based on the shape formed by the positive values ​​in the capacitance data, so as to further avoid incorrectly entering the waterproof mode or incorrectly not entering the waterproof mode, affecting the normal operation of the user, and thus improving the user's touch experience.

[0167] Please see Figure 16 , Figure 16 A block diagram of a control device for a waterproof mode of a touchscreen according to an embodiment of this application is shown. This control device 200 for the waterproof mode of a touchscreen is applied to the aforementioned electronic device, which includes a capacitive touchscreen. The following will focus on... Figure 16 The block diagram shown illustrates that the control device 200 for the waterproof mode of the touchscreen includes: a capacitance data acquisition module 210, an influencing factor determination module 220, and a waterproof mode control module 230, wherein:

[0168] The capacitance data acquisition module 210 is used to acquire capacitance data of the capacitive touch screen in response to a touch event of the capacitive touch screen.

[0169] The influencing factor determination module 220 is used to determine the influencing factors that cause the touch event to meet the preset foreign object touch condition based on the capacitance data if the touch event is determined to meet the preset foreign object touch condition based on the capacitance data. The influencing factors include liquid touch factors or non-liquid touch factors.

[0170] Furthermore, the capacitance data includes self-capacitance data and mutual capacitance data. The influencing factor determination module 220 includes: a foreign object search area determination submodule, a first influencing factor determination submodule, and a second influencing factor determination submodule, wherein:

[0171] The foreign object search area determination submodule is used to determine multiple foreign object search areas from the capacitive touch screen based on the mutual capacitance data, wherein each of the multiple foreign object search areas includes multiple touch nodes.

[0172] The first influencing factor determination submodule is used to determine the influencing factor corresponding to each foreign object search area based on the mutual capacitance data and self capacitance data corresponding to the multiple touch nodes included in each foreign object search area.

[0173] Furthermore, the first influencing factor determination submodule includes: an effective touch node determination unit, a node quantity statistics unit, and a first influencing factor determination unit, wherein:

[0174] The effective touch node determination unit is used to determine the effective touch nodes among the multiple touch nodes included in each search foreign object region based on the mutual capacitance data and self capacitance data corresponding to the multiple touch nodes included in each search foreign object region.

[0175] Further, the effective touch node determination unit includes: a target touch node determination subunit and an effective touch node determination subunit, wherein:

[0176] The target touch node determination subunit is used to determine, from the multiple touch nodes included in each foreign object search area, the touch node whose mutual capacitance data is less than a first threshold as the target touch node.

[0177] The effective touch node determination subunit is used to determine, from the target touch nodes, at least one neighboring self-capacitance data of the corresponding self-capacitance transmission position is less than a second threshold, and at least one neighboring self-capacitance data of the corresponding self-capacitance reception position is less than the second threshold as the effective touch node.

[0178] The node count unit is used to count the number of valid touch nodes included in each foreign object search area.

[0179] The first influencing factor determination unit is used to determine the influencing factor corresponding to each foreign object search area based on the number of effective touch nodes included in each foreign object search area.

[0180] Furthermore, the first influencing factor determination unit includes: a non-liquid touch factor determination subunit and a liquid touch factor determination subunit, wherein:

[0181] The non-liquid touch factor determination subunit is used to determine the influencing factors corresponding to the search foreign object area where the number of valid touch nodes is greater than a third threshold as the non-liquid touch factors.

[0182] The liquid touch factor determination subunit is used to determine the influencing factors corresponding to the search foreign object area where the number of valid touch nodes is less than or equal to the third threshold as the liquid touch factor.

[0183] The second influencing factor determination submodule is used to determine the influencing factors that cause the touch event to meet the preset foreign object touch conditions based on the influencing factors corresponding to each search foreign object area.

[0184] Furthermore, the second influencing factor submodule includes: a region quantity determination unit and a second influencing factor determination unit, wherein:

[0185] The region quantity determination unit is used to determine the number of regions corresponding to the liquid touch factor as the influencing factor for searching for foreign objects.

[0186] The second influencing factor determination unit is used to determine, based on the number of regions, the influencing factors that cause the touch event to meet the preset foreign object touch conditions.

[0187] Further, the second influencing factor determination unit includes: a liquid touch factor determination subunit and a non-liquid touch factor determination subunit, wherein:

[0188] The liquid touch factor determination subunit is used to determine the influencing factor that causes the touch event to meet the preset foreign object touch condition as a liquid touch factor if the number of regions is greater than a fourth threshold.

[0189] The non-liquid touch factor determination subunit is used to determine the influencing factor that causes the touch event to meet the preset foreign object touch condition as a non-liquid touch factor if the number of regions is less than or equal to the fourth threshold.

[0190] Furthermore, the capacitance data includes self-capacitance data, and the influencing factor determination module 220 includes: a first liquid touch factor determination submodule and a first non-liquid touch factor determination submodule, wherein:

[0191] The first liquid touch factor determination submodule is used to determine the influencing factor that causes the touch event to meet the preset foreign object touch condition as the liquid touch factor if, based on the self-capacitance data, it is determined that there is self-capacitance data at both the self-capacitance emission position and the self-capacitance reception position that is greater than the fifth threshold.

[0192] The first non-liquid touch factor determination submodule is used to determine the influencing factor that causes the touch event to meet the preset foreign object touch condition as the non-liquid touch factor if, based on the self-capacitance data, it is determined that there is no self-capacitance data greater than the fifth threshold at the self-capacitance emission position and the self-capacitance reception position.

[0193] Furthermore, the capacitance data includes self-capacitance data, and the influencing factor determination module 220 includes: a first liquid touch factor determination submodule and a second non-liquid touch factor determination submodule, wherein:

[0194] The second liquid touch factor determination submodule is used to determine the influencing factor that causes the touch event to meet the preset foreign object touch condition as the liquid touch factor if, based on the self-capacitance data, it is determined that there is self-capacitance data less than the sixth threshold at the self-capacitance emission position.

[0195] The second non-liquid touch factor determination submodule is used to determine the influencing factor that causes the touch event to meet the preset foreign object touch condition as the non-liquid touch factor if, based on the self-capacitance data, it is determined that there is no self-capacitance data less than the sixth threshold at the self-capacitance emission position.

[0196] Furthermore, the influencing factor determination module 220 includes: a third liquid touch factor determination submodule and a third non-liquid touch factor determination submodule, wherein:

[0197] The third liquid touch factor determination submodule is used to determine the influencing factor that causes the touch event to meet the preset foreign object touch condition as the liquid touch factor if, based on the capacitance data, the touch node where the corresponding capacitance data with a positive value is located forms an irregular shape.

[0198] The third liquid touch factor determination submodule is used to determine the non-liquid touch factor if, based on the capacitance data, the touch node containing the corresponding positive capacitance data forms a regular shape.

[0199] The waterproof mode control module 230 is used to control the waterproof mode of the capacitive touch screen based on the influencing factors.

[0200] Furthermore, the waterproof mode control module 230 includes: a waterproof mode entry submodule and a waterproof mode non-entry submodule, wherein:

[0201] The waterproof mode entry submodule is used to control the capacitive touchscreen to enter the waterproof mode if it is determined that the influencing factor is the liquid touch factor.

[0202] The waterproof mode non-entry submodule is used to control the capacitive touch screen not to enter the waterproof mode if it is determined that the influencing factor is the non-liquid touch factor.

[0203] Furthermore, the control device 200 for the waterproof mode of the touchscreen also includes: a first touch event determination module and a second touch event determination module, wherein:

[0204] The first touch event determination module is used to determine that the touch event satisfies the preset foreign object touch condition if the capacitance data of the touch nodes included in the same receiving cable within the touch area corresponding to the touch event has both positive and negative values.

[0205] The second touch event determination module is used to determine that the touch event satisfies the preset foreign object touch condition if the capacitance data of the touch nodes included in the same drive cable within the touch area corresponding to the touch event has both positive and negative values.

[0206] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0207] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0208] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0209] Please see Figure 17This diagram illustrates a structural block diagram of an electronic device 100 provided in an embodiment of this application. The electronic device 100 can be a smartphone, tablet computer, e-reader, or other electronic device capable of running applications. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a touchscreen 130, and one or more applications. The one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110. The one or more applications are configured to perform the methods described in the foregoing method embodiments.

[0210] The processor 110 may include one or more processing cores. The processor 110 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by calling data stored in the memory 120. Optionally, the processor 110 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 110 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 110 and may be implemented separately using a communication chip.

[0211] The memory 120 may include random access memory (RAM) or read-only memory (ROM). The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).

[0212] The touchscreen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces can be composed of graphics, text, icons, numbers, video, and any combination thereof. In one example, the touchscreen 130 can be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), without limitation. Optionally, the touchscreen 130 can be a capacitive touchscreen.

[0213] Please see Figure 18 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 300 stores program code that can be called by a processor to execute the methods described in the above method embodiments.

[0214] The computer-readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for program code 310 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.

[0215] In summary, the control method, apparatus, and electronic device for the waterproof mode of a touchscreen provided in this application embodiment, in response to a touch event of a capacitive touchscreen, acquires the capacitance data of the capacitive touchscreen. If it is determined based on the capacitance data that the touch event meets a preset foreign object touch condition, then the influencing factors that cause the touch event to meet the preset foreign object touch condition are determined based on the capacitance data. These influencing factors include liquid touch factors or non-liquid touch factors. Based on these influencing factors, the waterproof mode of the capacitive touchscreen is controlled. By performing multiple detections on whether liquid is present on the capacitive touchscreen, the system avoids incorrectly entering or failing to enter the waterproof mode, which could affect the user's normal operation and improve the user's touch experience.

[0216] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for controlling a waterproof mode on a touchscreen, characterized in that, Applied to an electronic device, the electronic device including a capacitive touchscreen, the method includes: In response to a touch event on the capacitive touchscreen, the capacitance data of the capacitive touchscreen is acquired. If it is determined based on the capacitance data that the touch event meets the preset foreign object touch condition, then the influencing factors that cause the touch event to meet the preset foreign object touch condition are determined based on the capacitance data, wherein the influencing factors include liquid touch factors or non-liquid touch factors; Based on the aforementioned influencing factors, the waterproof mode of the capacitive touchscreen is controlled.

2. The method according to claim 1, characterized in that, The control of the waterproof mode of the capacitive touchscreen based on the aforementioned influencing factors includes: If the influencing factor is determined to be the liquid touch factor, then the capacitive touchscreen is controlled to enter the waterproof mode; or If it is determined that the influencing factor is a non-liquid touch factor, then the capacitive touchscreen is controlled not to enter the waterproof mode.

3. The method according to claim 1, characterized in that, The capacitance data includes self-capacitance data and mutual capacitance data. The factors determining, based on the capacitance data, that cause the touch event to satisfy the preset foreign object touch condition include: Based on the mutual capacitance data, multiple foreign object search areas are determined from the capacitive touch screen, wherein each of the multiple foreign object search areas includes multiple touch nodes. Based on the mutual capacitance data and self capacitance data corresponding to each of the multiple touch nodes included in each foreign object search area, the influencing factors corresponding to each foreign object search area are determined. Based on the influencing factors corresponding to each foreign object search area, determine the influencing factors that cause the touch event to meet the preset foreign object touch conditions.

4. The method according to claim 3, characterized in that, The determination of the influencing factors corresponding to each foreign object search area based on the mutual capacitance data and self-capacitance data of each of the multiple touch nodes included in each foreign object search area includes: Based on the mutual capacitance data and self capacitance data corresponding to the multiple touch nodes included in each foreign object search area, the valid touch nodes among the multiple touch nodes included in each foreign object search area are determined. The number of valid touch nodes included in each foreign object search area is counted; Based on the number of valid touch nodes included in each foreign object search area, the influencing factors corresponding to each foreign object search area are determined.

5. The method according to claim 4, characterized in that, The step of determining the valid touch nodes among the multiple touch nodes included in each foreign object search area based on the mutual capacitance data and self capacitance data corresponding to each of the multiple touch nodes included in each foreign object search area includes: From the multiple touch nodes included in each foreign object search area, the touch nodes whose mutual capacitance data is less than a first threshold are determined as target touch nodes; From the target touch nodes, the target touch nodes whose corresponding self-capacitance transmission position has at least one neighboring self-capacitance data less than a second threshold and whose corresponding self-capacitance reception position has at least one neighboring self-capacitance data less than the second threshold are identified as the valid touch nodes.

6. The method according to claim 4, characterized in that, The determination of the influencing factors corresponding to each foreign object search area based on the number of valid touch nodes included in each foreign object search area includes: The influencing factors corresponding to the search foreign object area where the number of valid touch nodes is greater than the third threshold are determined as the non-liquid touch factors; The influencing factors corresponding to the search foreign object areas where the number of valid touch nodes is less than or equal to the third threshold are determined as the liquid touch factors.

7. The method according to claim 3, characterized in that, The determination of influencing factors that cause the touch event to meet the preset foreign object touch conditions based on the influencing factors corresponding to each foreign object search area includes: The number of regions corresponding to the influencing factors is determined as the number of search areas for foreign objects in the liquid touch factor; Based on the number of regions, determine the influencing factors that cause the touch event to meet the preset foreign object touch conditions.

8. The method according to claim 7, characterized in that, The step of determining the influencing factors that cause the touch event to meet the preset foreign object touch condition based on the number of regions includes: If the number of regions is greater than the fourth threshold, then the influencing factor causing the touch event to meet the preset foreign object touch condition is determined to be a liquid touch factor; or If the number of regions is less than or equal to the fourth threshold, then the influencing factor that causes the touch event to meet the preset foreign object touch condition is determined to be a non-liquid touch factor.

9. The method according to claim 1, characterized in that, The capacitance data includes self-capacitance data, and the factors influencing the determination of the touch event satisfying the preset foreign object touch condition based on the capacitance data include: If, based on the self-capacitance data, it is determined that both the self-capacitance emission position and the self-capacitance reception position have self-capacitance data greater than the fifth threshold, then the influencing factor causing the touch event to satisfy the preset foreign object touch condition is determined to be the liquid touch factor; or If, based on the self-capacitance data, it is determined that there is no self-capacitance data greater than the fifth threshold at both the self-capacitance emission position and the self-capacitance reception position, then the influencing factor that causes the touch event to satisfy the preset foreign object touch condition is determined to be the non-liquid touch factor.

10. The method according to claim 1, characterized in that, The capacitance data includes self-capacitance data, and the factors influencing the determination of the touch event satisfying the preset foreign object touch condition based on the capacitance data include: If, based on the self-capacitance data, it is determined that there is self-capacitance data less than the sixth threshold at the self-capacitance emission location, then the influencing factor causing the touch event to satisfy the preset foreign object touch condition is determined to be the liquid touch factor; or If, based on the self-capacitance data, it is determined that there is no self-capacitance data less than the sixth threshold at the self-capacitance emission position, then the influencing factor that causes the touch event to satisfy the preset foreign object touch condition is determined to be the non-liquid touch factor.

11. The method according to claim 1, characterized in that, The factors influencing the determination of the touch event satisfying the preset foreign object touch condition based on the capacitance data include: If, based on the capacitance data, it is determined that the touch node containing the corresponding positive capacitance value forms an irregular shape, then the influencing factor causing the touch event to satisfy the preset foreign object touch condition is determined to be the liquid touch factor; or If, based on the capacitance data, it is determined that the touch node containing the corresponding positive capacitance data forms a regular shape, then the influencing factor that causes the touch event to satisfy the preset foreign object touch condition is determined to be the non-liquid touch factor.

12. The method according to any one of claims 1-11, characterized in that, Before determining the influencing factors that cause the touch event to meet the preset foreign object touch condition based on the capacitance data, if the touch event is determined to meet the preset foreign object touch condition based on the capacitance data, the method further includes: If it is determined that the capacitance data of the touch nodes included in the same receiving cable within the touch area corresponding to the touch event has both positive and negative values, then the touch event is determined to satisfy the preset foreign object touch condition; and / or If it is determined that the capacitance data of the touch nodes included in the same drive cable within the touch area corresponding to the touch event has both positive and negative values, then the touch event is determined to satisfy the preset foreign object touch condition.

13. A control device for a waterproof mode of a touchscreen, characterized in that, Applied to an electronic device, the electronic device including a capacitive touchscreen, the device includes: A capacitance data acquisition module is used to acquire capacitance data of the capacitive touchscreen in response to a touch event of the capacitive touchscreen. The influencing factor determination module is used to determine the influencing factors that cause the touch event to meet the preset foreign object touch condition based on the capacitance data if the touch event is determined to meet the preset foreign object touch condition based on the capacitance data. The influencing factors include liquid touch factors or non-liquid touch factors. A waterproof mode control module is used to control the waterproof mode of the capacitive touch screen based on the aforementioned influencing factors.

14. An electronic device, characterized in that, The method includes a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the method as described in any one of claims 1-12 when the instructions are executed by the processor.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-12.