Touch method, touch panel and electronic device

By employing a three-layer electrode array design in the capacitive touch panel, and utilizing the difference between self-capacitance and mutual capacitance, accurate touch detection is achieved in both underwater and atmospheric environments. This solves the problem of capacitive touch panels failing underwater and improves the user experience.

CN120103997BActive Publication Date: 2026-01-30HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311627843.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2026-01-30
Estimated Expiration
2043-11-29

AI Technical Summary

Technical Problem

Capacitive touch panels are prone to touch function failure or recognition errors when exposed to water, affecting the effectiveness and accuracy of touch function.

Method used

The touch panel design includes three electrode arrays. In an underwater environment, the touch position is determined by detecting the self-capacitance and mutual capacitance between the upper and lower electrodes. In an atmospheric environment, the touch position is determined by detecting the mutual capacitance between the same layer of electrodes. Different detection modes are designed by utilizing the capacitance change characteristics under different environments.

Benefits of technology

It improves the accuracy and reliability of touch detection in underwater environments, while maintaining high-sensitivity touch recognition in atmospheric environments, thus enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120103997B_ABST
    Figure CN120103997B_ABST
Patent Text Reader

Abstract

This application provides a touch control method, a touch panel, and an electronic device. The touch panel includes a first electrode array, a second electrode array, and a third electrode array. Electrodes in each column of the first electrode array are connected sequentially, electrodes in each row of the second electrode array are connected sequentially, and electrodes in each column of the third electrode array are connected sequentially. The first and second electrode arrays are interleaved, as are the second and third electrode arrays, with both the first and second electrode arrays located above the third electrode array. In an underwater environment, the following steps are performed: receiving a first operation applied to the touch panel; detecting the self-capacitance between the first and third electrode arrays; determining the horizontal coordinate of the first operation based on the detected self-capacitance; and detecting the mutual capacitance between the second and third electrode arrays; determining the vertical coordinate of the first operation based on the detected mutual capacitance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminals, and more particularly to a touch method, a touch panel, and an electronic device. Background Technology

[0002] Currently, capacitive touch panels are widely used due to their high sensitivity. However, capacitive touch panels are also highly susceptible to environmental interference. For example, if a capacitive touch panel comes into contact with water, it can cause the touch function to fail or the touch recognition to be incorrect.

[0003] How to ensure the effectiveness and accuracy of touch function when a capacitive touch panel gets wet is an urgent problem to be solved. Summary of the Invention

[0004] This application provides a touch control method, a touch panel, and an electronic device. The touch panel includes at least three electrode arrays. In an underwater environment, the capacitance between two electrode arrays placed in upper and lower layers is detected. When a user inputs a touch operation onto the touch panel, the capacitance changes due to the shortened spacing between the electrodes at the touch location. The touch position is determined by identifying the location of the electrode where the capacitance changes according to a preset pattern. In an atmospheric environment, the capacitance between two electrode arrays placed in the same layer is detected. When a user inputs a touch operation onto the touch panel, the capacitance changes due to the electrical signal carried by the finger at the touch location. The touch position is determined by identifying the location of the electrode where the capacitance changes according to a preset pattern.

[0005] In a first aspect, this application provides a touch control method applied to an electronic device including a touch panel. The touch panel includes a first electrode array, a second electrode array, and a third electrode array. Electrodes in each column of the first electrode array are connected sequentially, electrodes in each row of the second electrode array are connected sequentially, and electrodes in each column of the third electrode array are connected sequentially. The first electrode array and the second electrode array are interlaced, and the second electrode array and the third electrode array are also interlaced, with both the first electrode array and the second electrode array located on top of the third electrode array. The method includes: the electronic device being in an underwater environment; receiving a first operation applied to the touch panel; detecting the self-capacitance between the first electrode array and the third electrode array, and determining the horizontal coordinate of the touch panel where the first operation is applied based on the detected self-capacitance; detecting the mutual capacitance between the second electrode array and the third electrode array, and determining the vertical coordinate of the touch panel where the first operation is applied based on the detected mutual capacitance.

[0006] After implementing the method provided in the first aspect, an underwater touch detection function is realized by designing an upper and lower layer electrode array, thereby improving the user experience.

[0007] In conjunction with the method described in the first aspect, before detecting the self-capacitance between the first electrode array and the third electrode array, the method further includes: inputting a first excitation signal to the third electrode array and grounding the first electrode array; or, inputting the first excitation signal to the first electrode array and grounding the third electrode array.

[0008] In this way, when performing underwater touch detection, a self-capacitance relationship between the upper and lower layers can be constructed by using the third electrode array and the first electrode array. That is, either one of the arrays is used as the transmitting electrode, and the other array is grounded. In this way, the horizontal coordinate of the touch position can be determined by detecting the self-capacitance between the two electrode arrays.

[0009] In conjunction with the method described in the first aspect, before detecting the self-capacitance between the first electrode array and the third electrode array, the method further includes: controlling the second electrode array to ground or inputting a second excitation signal to the second electrode array.

[0010] In this way, during the self-capacitance detection stage of underwater touch detection, the second electrode array, which is not involved in capacitance detection, can be used as a signal shielding layer to shield against water interference, enabling more accurate touch position detection even in underwater environments.

[0011] In conjunction with the method described in the first aspect, before detecting the mutual capacitance between the second electrode array and the third electrode array, the method further includes: sequentially inputting a third excitation signal to each row of electrodes in the second electrode array; detecting the mutual capacitance between the second electrode array and the third electrode array, specifically including: detecting the mutual capacitance between the second electrode array and the third electrode array through an induction signal output by the third electrode array; or, sequentially inputting the third excitation signal to each column of electrodes in the third electrode array; detecting the mutual capacitance between the second electrode array and the third electrode array, specifically including: detecting the mutual capacitance between the second electrode array and the third electrode array through an induction signal output by the second electrode array.

[0012] In this way, when performing underwater touch detection, the mutual capacitance relationship between the upper and lower layers can be constructed by the third electrode array and the second electrode array. That is, one of the two arrays is used as the transmitting electrode and the other array is used as the receiving electrode (sensing electrode). In this way, the horizontal coordinate of the touch position can be determined by detecting the mutual capacitance between the two electrode arrays.

[0013] In conjunction with the method described in the first aspect, before detecting the mutual capacitance between the second electrode array and the third electrode array, the method further includes: controlling the first electrode array to ground or inputting a fourth excitation signal to the first electrode array.

[0014] In this way, during the mutual capacitance detection stage of underwater touch detection, the first electrode array that does not participate in capacitance detection can be used as a signal shielding layer to shield against water interference, enabling more accurate touch position detection even in underwater environments.

[0015] In conjunction with the method described in the first aspect, detecting the self-capacitance between the first electrode array and the third electrode array specifically includes: detecting the self-capacitance between the first electrode array and the third electrode array during a first time period when the electronic device is in an underwater environment; detecting the mutual capacitance between the second electrode array and the third electrode array specifically includes: detecting the mutual capacitance between the second electrode array and the third electrode array during a second time period when the electronic device is in an underwater environment; wherein the first time period and the second time period are continuous and alternating time periods.

[0016] In this way, the horizontal and vertical coordinates of the touch position can be determined by performing self-capacitance detection and mutual capacity detection alternately at high frequency.

[0017] In conjunction with the method described in the first aspect, the first electrode array and the second electrode array are both disposed in the first electrode layer of the touch panel, the third electrode array is disposed in the second electrode layer of the touch panel, and the first electrode layer is on top of the second electrode layer.

[0018] In this way, the third electrode array used in both the self-capacitance stage and the mutual capacitance stage is placed on a separate layer, while the first electrode array used in the self-capacitance stage and the second electrode array used in the mutual capacitance stage are placed on the same layer. This ensures that the self-capacitance and mutual capacitance relationships between the upper and lower layers are constructed, making it easier for electronic devices to determine the touch position by detecting changes in the distance between the electrode layers caused by touch operations. It also improves the integration of the electrode array, eliminating the need for three electrode layers.

[0019] In conjunction with the method described in the first aspect, after determining the horizontal and vertical coordinates of the touch panel to which the first operation is performed, the method further includes: in response to the first operation, executing the task corresponding to the first operation.

[0020] In this way, after identifying the touch position of the first operation, the meaning indicated by the first operation can be determined, thereby enabling the electronic device to perform the task corresponding to the first operation and improving the user's touch experience.

[0021] In conjunction with the method described in the first aspect, the method further includes: the electronic device being in an atmospheric environment; receiving a second operation acting on the touch panel; detecting the mutual capacitance between the first electrode array and the second electrode array, and determining the horizontal and vertical coordinates of the touch panel on which the second operation is acting based on the detected mutual capacitance.

[0022] In this way, electronic devices can detect touch positions not only underwater, but also in atmospheric environments using only two electrode arrays, ensuring that users can use the touch detection function in both atmospheric and underwater environments, thus improving the user experience.

[0023] In conjunction with the method described in the first aspect, before detecting the mutual capacitance between the first electrode array and the second electrode array, the method further includes: sequentially inputting a fifth excitation signal to each column of electrodes in the first electrode array; detecting the mutual capacitance between the first electrode array and the second electrode array specifically includes: detecting the mutual capacitance between the first electrode array and the second electrode array through an induction signal output by the second electrode array.

[0024] In this way, when performing touch detection in an atmospheric environment, a mutual capacitance relationship can be constructed using the first electrode array and the second electrode array. Either electrode array can be used as the transmitting electrode, and the other electrode array can be used as the receiving electrode. The horizontal and vertical coordinates of the touch position can be determined by detecting the mutual capacitance between the two electrode arrays.

[0025] In conjunction with the method described in the first aspect, before detecting the mutual capacitance between the first electrode array and the second electrode array, the method further includes: sequentially inputting a sixth excitation signal to each column of electrodes in the third electrode array.

[0026] In this way, when performing touch detection in an atmospheric environment, the third electrode array, which is not involved in capacitance detection, can be used as a signal enhancement layer, that is, the third electrode array can also be used as a transmitting electrode, so that the touch position can be detected more accurately.

[0027] In conjunction with the method described in the first aspect, after determining the horizontal and vertical coordinates of the touch panel to which the second operation is performed, the method further includes: in response to the second operation, executing the task corresponding to the second operation.

[0028] In this way, after identifying the touch location of the second operation, the meaning indicated by the second operation can be determined, thereby enabling the electronic device to perform the task corresponding to the second operation and improving the user's touch experience.

[0029] In conjunction with the method described in the first aspect, before the electronic device is in an underwater environment, the method further includes: acquiring first environmental data, determining that the electronic device is in the underwater environment based on the first environmental data, and activating an underwater touch detection mode when the electronic device is in the underwater environment.

[0030] In this way, electronic devices can intelligently identify whether they are in an underwater environment without requiring manual settings from the user. If an underwater environment is detected, the device will automatically perform subsequent underwater touch detection, reducing the need for the user to manually set the touch detection mode and improving the user experience.

[0031] In conjunction with the method described in the first aspect, before acquiring the first environmental data, the method further includes: not detecting a third operation and a fourth operation, the third operation being used to instruct the electronic device to activate the underwater touch detection mode, and the fourth operation being used to instruct the electronic device to activate the atmospheric touch detection mode.

[0032] In this way, the electronic device determines the touch detection mode by intelligently recognizing the environment when the user does not manually set the touch detection mode. This ensures that intelligent services are provided to the user even if the user forgets to set the touch detection mode, and also prioritizes the user's set detection mode when the user manually sets it, taking into account the user's subjective intentions and further improving the user experience.

[0033] In conjunction with the method described in the first aspect, determining that the electronic device is in the underwater environment based on the first environmental data specifically includes: obtaining capacitance data through the first electrode array and the second electrode array; and determining that the electronic device is in the underwater environment after detecting that the number of capacitance values ​​greater than a first threshold in the capacitance data is greater than a second threshold.

[0034] In this way, the number of capacitor data failures can be used to accurately identify whether the current environment is in touch detection mode, avoiding misjudging occasional wet-handed touches in the atmosphere or small areas of water as underwater environments.

[0035] In conjunction with the method described in the first aspect, prior to the underwater environment, the method further includes: receiving a fifth operation for activating the underwater touch detection mode.

[0036] In a second aspect, this application provides a touch control method applied to an electronic device including a touch panel. The touch panel includes a first electrode array, a second electrode array, and a third electrode array. Electrodes in each column of the first electrode array are connected sequentially, electrodes in each row of the second electrode array are connected sequentially, and electrodes in each row of the third electrode array are connected sequentially. The first electrode array and the second electrode array are interlaced, and the second electrode array and the third electrode array are interlaced, with both the first electrode array and the second electrode array located on top of the third electrode array. The method includes: the electronic device being in an underwater environment; receiving a first operation applied to the touch panel; detecting the self-capacitance between the first electrode array and the third electrode array, and determining the horizontal coordinate of the touch panel where the first operation is applied based on the detected self-capacitance; detecting the mutual capacitance between the second electrode array and the third electrode array, and determining the vertical coordinate of the touch panel where the first operation is applied based on the detected mutual capacitance.

[0037] After implementing the method provided in the second aspect, an alternative upper and lower electrode array is designed to realize the underwater touch detection function, thereby improving the user experience.

[0038] In conjunction with the method described in the second aspect, before detecting the self-capacitance between the first electrode array and the third electrode array, the method further includes: inputting a seventh excitation signal to the first electrode array and grounding the third electrode array.

[0039] In this way, when performing underwater touch detection, a self-capacitance relationship between the upper and lower layers can be constructed by using the third electrode array and the first electrode array. That is, either one of the arrays is used as the transmitting electrode, and the other array is grounded. In this way, the horizontal coordinate of the touch position can be determined by detecting the self-capacitance between the two electrode arrays.

[0040] In conjunction with the method described in the second aspect, before detecting the self-capacitance between the first electrode array and the third electrode array, the method further includes: controlling the second electrode array to ground or inputting an eighth excitation signal to the second electrode array.

[0041] In this way, during the self-capacitance detection stage of underwater touch detection, the second electrode array, which is not involved in capacitance detection, can be used as a signal shielding layer to shield against water interference, enabling more accurate touch position detection even in underwater environments.

[0042] In conjunction with the method described in the second aspect, before detecting the mutual capacitance between the second electrode array and the third electrode array, the method further includes: sequentially inputting a ninth excitation signal to each row of electrodes in the third electrode array; detecting the mutual capacitance between the second electrode array and the third electrode array, specifically including: detecting the mutual capacitance between the second electrode array and the third electrode array through an induction signal output by the second electrode array; or, sequentially inputting the ninth excitation signal to each row of electrodes in the second electrode array; detecting the mutual capacitance between the second electrode array and the third electrode array, specifically including: detecting the mutual capacitance between the second electrode array and the third electrode array through an induction signal output by the third electrode array.

[0043] In this way, when performing underwater touch detection, the mutual capacitance relationship between the upper and lower layers can be constructed by the third electrode array and the second electrode array. That is, one of the two arrays is used as the transmitting electrode and the other array is used as the receiving electrode (sensing electrode). In this way, the horizontal coordinate of the touch position can be determined by detecting the mutual capacitance between the two electrode arrays.

[0044] In conjunction with the method described in the second aspect, before detecting the mutual capacitance between the second electrode array and the third electrode array, the method further includes: controlling the first electrode array to ground or inputting a tenth excitation signal to the first electrode array.

[0045] In this way, during the mutual capacitance detection stage of underwater touch detection, the first electrode array that does not participate in capacitance detection can be used as a signal shielding layer to shield against water interference, enabling more accurate touch position detection even in underwater environments.

[0046] Thirdly, this application provides a touch control method applied to an electronic device including a touch panel. The touch panel includes a first electrode array, a second electrode array, and a third electrode array. Electrodes in each column of the first electrode array are connected sequentially, electrodes in each row of the second electrode array are connected sequentially, and electrodes in each row of the third electrode array are connected sequentially. The first electrode array and the second electrode array are interlaced, and the first electrode array and the third electrode array are also interlaced. Both the first electrode array and the second electrode array are located on the third electrode array. The method includes: the electronic device being in an underwater environment; receiving a first operation applied to the touch panel; detecting the self-capacitance between the second electrode array and the third electrode array, and determining the vertical coordinate of the touch panel where the first operation is applied based on the detected self-capacitance; detecting the mutual capacitance between the first electrode array and the third electrode array, and determining the horizontal coordinate of the touch panel where the first operation is applied based on the detected mutual capacitance.

[0047] After implementing the method provided in the third aspect, an alternative upper and lower electrode array is designed to realize underwater touch detection function, thereby improving the user experience.

[0048] In conjunction with the method described in the third aspect, before detecting the self-capacitance between the second electrode array and the third electrode array, the method further includes: inputting an eleventh excitation signal to the second electrode array and grounding the third electrode array; or, inputting the eleventh excitation signal to the third electrode array and grounding the second electrode array.

[0049] In this way, when performing underwater touch detection, a self-capacitance relationship between the upper and lower layers can be constructed by using the second and third electrode arrays. That is, one of the arrays can be used as the transmitting electrode, and the other array can be grounded. In this way, the horizontal coordinate of the touch position can be determined by detecting the self-capacitance between the two electrode arrays.

[0050] In conjunction with the method described in the third aspect, before detecting the self-capacitance between the second electrode array and the third electrode array, the method further includes: controlling the first electrode array to ground or inputting a twelfth excitation signal to the first electrode array.

[0051] In this way, during the self-capacitance detection stage of underwater touch detection, the first electrode array that does not participate in capacitance detection can be used as a signal shielding layer to shield against water interference, enabling more accurate touch position detection even in underwater environments.

[0052] In conjunction with the method described in the third aspect, before detecting the mutual capacitance between the first electrode array and the third electrode array, the method further includes: sequentially inputting a thirteenth excitation signal to each column of electrodes in the first electrode array; detecting the mutual capacitance between the first electrode array and the third electrode array, specifically including: detecting the mutual capacitance between the third electrode array and the first electrode array through an induction signal output by the third electrode array; or, sequentially inputting the thirteenth excitation signal to each row of electrodes in the third electrode array; detecting the mutual capacitance between the first electrode array and the third electrode array, specifically including: detecting the mutual capacitance between the third electrode array and the first electrode array through an induction signal output by the first electrode array.

[0053] In this way, when performing underwater touch detection, the mutual capacitance relationship between the upper and lower layers can be constructed by the third electrode array and the first electrode array. That is, one of the two arrays is used as the transmitting electrode and the other array is used as the receiving electrode (sensing electrode). The horizontal coordinate of the touch position can be determined by detecting the mutual capacitance between the two electrode arrays.

[0054] In conjunction with the method described in the third aspect, before detecting the mutual capacitance between the first electrode array and the third electrode array, the method further includes: controlling the second electrode array to ground or inputting a fourteenth excitation signal to the second electrode array.

[0055] In this way, during the mutual capacitance detection stage of underwater touch detection, the second electrode array, which is not involved in capacitance detection, can be used as a signal shielding layer to shield against water interference, enabling more accurate touch position detection even in underwater environments.

[0056] Fourthly, this application provides a touch control method applied to an electronic device including a touch panel. The touch panel includes a first electrode array, a second electrode array, a third electrode array, and a fourth electrode array. Electrodes in each column of the first electrode array are connected sequentially, electrodes in each row of the second electrode array are connected sequentially, electrodes in each column of the third electrode array are connected sequentially, and electrodes in each row of the fourth electrode array are connected sequentially. The first electrode array and the second electrode array are interlaced, the second electrode array and the fourth electrode array are interlaced, and the third electrode array and the fourth electrode array are interlaced. The first electrode array and the second electrode array are both located on top of the third electrode array and the fourth electrode array. The method includes: the electronic device being in an underwater environment; receiving a first operation applied to the touch panel; detecting the self-capacitance between the first electrode array and the fourth electrode array, and determining the horizontal coordinate of the touch panel where the first operation is applied based on the detected self-capacitance; detecting the self-capacitance between the second electrode array and the third electrode array, and determining the vertical coordinate of the touch panel where the first operation is applied based on the detected self-capacitance.

[0057] After implementing the method provided in the fourth aspect, an alternative upper and lower electrode array is designed to realize the underwater touch detection function, thereby improving the user experience.

[0058] Fifthly, this application provides an electronic device including the touch panel, one or more memories, and one or more processors; the touch panel, the memory, and the one or more processors are coupled together; the touch panel is used to receive touch operations; the memory is used to store computer program code, the computer program code including computer instructions; and the one or more processors call the computer instructions to cause the electronic device to perform the methods described in any one of the first to fourth aspects.

[0059] In a sixth aspect, this application provides a chip for use in an electronic device including the touch panel, the chip including one or more processors for invoking computer instructions to cause the electronic device to perform the methods described in any one of the first to fourth aspects.

[0060] In a seventh aspect, this application provides a computer-readable storage medium including instructions that, when executed on an electronic device including the touch panel, cause the electronic device to perform the method described in any one of the first to fourth aspects. Attached Figure Description

[0061] Figure 1 This is a schematic diagram of the structure of a touch panel provided in an embodiment of this application;

[0062] Figure 2 This is a schematic diagram of the structure of a screen 10 of an electronic device provided in an embodiment of this application;

[0063] Figure 3A This is a schematic diagram of the structure of the touch panel 121 provided in the embodiments of this application;

[0064] Figure 3B This is a schematic diagram of the structure of the touch panel 122 provided in the embodiments of this application;

[0065] Figure 3C This is a schematic diagram of the structure of the touch panel 123 provided in the embodiments of this application;

[0066] Figure 4A This is a schematic diagram of the electrode array in the touch panel 121 provided in the embodiments of this application;

[0067] Figure 4B This is a schematic diagram of the structure of the electrode array in a touch panel 122 provided in an embodiment of this application;

[0068] Figure 4C This is a schematic diagram of the electrode array in another touch panel 122 provided in an embodiment of this application;

[0069] Figure 4D This is a schematic diagram of the electrode array in another touch panel 123 provided in an embodiment of this application;

[0070] Figure 5 This is a schematic flowchart of a method for determining a touch detection mode provided in an embodiment of this application;

[0071] Figure 6 This is a schematic flowchart of a method for automatically setting a touch detection mode, provided in an embodiment of this application.

[0072] Figure 7A This is a schematic diagram illustrating the self-capacity detection of the touch panel 121 provided in this embodiment of the application in an underwater environment;

[0073] Figure 7B This is a schematic diagram illustrating the mutual capacitance detection of the touch panel 121 provided in this embodiment of the application in an underwater environment.

[0074] Figure 8A This is a schematic diagram illustrating a touch panel 121 performing self-capacity detection in an underwater environment, as provided in an embodiment of this application.

[0075] Figure 8B This is a schematic diagram illustrating the mutual capacitance detection of a touch panel 121 in an underwater environment, as provided in an embodiment of this application.

[0076] Figure 9A A schematic diagram illustrating self-capacity detection in an underwater environment for another touch panel 122 provided in an embodiment of this application;

[0077] Figure 9B A schematic diagram illustrating mutual capacitance detection of another touch panel 122 provided in an embodiment of this application in an underwater environment;

[0078] Figure 10A This is a schematic diagram illustrating a touch panel 123 performing self-capacity detection in an underwater environment, as provided in an embodiment of this application.

[0079] Figure 10B A schematic diagram illustrating self-capacity detection in an underwater environment for another touch panel 123 provided in an embodiment of this application;

[0080] Figure 11 This is a schematic diagram of an electronic device hardware architecture provided in an embodiment of this application. Detailed Implementation

[0081] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.

[0082] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0083] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.

[0084] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.

[0085] Currently, most electronic devices include capacitive touch panels in their screens; see [link to relevant documentation] for details. Figure 1 As shown.

[0086] See Figure 1 , Figure 1 A schematic diagram of a touch panel structure is shown.

[0087] like Figure 1 As shown, the touch panel includes two intersecting electrode arrays: a first electrode array and a second electrode array. The first electrode array comprises N columns of electrodes arranged in parallel, each column including multiple electrodes connected sequentially along the Y-axis. The second electrode array comprises M rows of electrodes arranged in parallel, each row including multiple electrodes connected sequentially along the X-axis. Furthermore, the first and second electrode arrays are disposed on the same layer, and the second electrode array connects the electrodes through bridging.

[0088] In one touch detection method, the electronic device can... Figure 1The touch panel shown performs mutual capacitance detection to identify the location of the user's touch input. Specifically, the first electrode array is used as the transmit (Tx) electrode, and the second electrode array is used as the receive (Rx) electrode. Excitation signals are sequentially input to each column of the first electrode array, while simultaneously detecting the sensing signals in all rows of the second electrode array to obtain the mutual capacitance between the first and second electrode arrays. The coordinate point in the touch panel where the mutual capacitance changes according to a preset value is taken as the touch position. For example, excitation signals are input sequentially in the order of Y1, Y2…YN, and during this sequential input, the sensing signals in X1, X2…XM of the second electrode array are simultaneously detected to obtain the mutual capacitance at the intersection of the first and second electrode arrays. The coordinate point in the touch panel where the mutual capacitance changes according to a preset value is taken as the touch position. The preset change in mutual capacitance includes a decrease in mutual capacitance by a preset value, because a finger touch will absorb a portion of the excitation signal in the first electrode array at the touch position.

[0089] In another touch detection method, the electronic device can... Figure 1 The touch panel shown performs self-capacitance detection to identify the location of the user's touch input. Specifically, it detects the self-capacitance between the first electrode array and ground, and the self-capacitance between the second electrode array and ground. The coordinate point where the self-capacitance of a column in the first electrode array that shows a preset change, and the self-capacitance of a row in the second electrode array that shows a preset change, intersects the touch position. The preset change in self-capacitance includes an increase in self-capacitance by a preset value, because a finger touch adds a portion of the self-capacitance between the finger and ground to the touch position in the second electrode array.

[0090] Regarding the adoption of the above Figure 1 The touch panel shown can be implemented using other methods for touch detection. The foregoing description is only one specific implementation method of mutual capacitance detection and self-capacitance detection, and the embodiments of this application do not limit this.

[0091] However, in Figure 1When the touch panel shown is in an interfering environment (such as underwater or dusty environments), the interference will cause changes in the mutual capacitance / self capacitance of the touch panel. Taking water as an example, when water comes into contact with a mutual capacitance touch panel and when a finger touches a mutual capacitance touch panel, the direction of the change in the mutual capacitance is opposite; that is, water contact increases the mutual capacitance, while finger contact decreases it. When water comes into contact with a self-capacitive touch panel and when a finger touches a self-capacitive touch panel, the direction of the change in the self capacitance is the same; that is, both water contact and finger contact increase the mutual capacitance. Based on the above analysis, it can be seen that the interference environment changes the distribution and state of the capacitance of the touch panel itself, thereby interfering with the recognition of the finger touch position, resulting in a decrease in the accuracy of the finally determined touch position or directly causing the touch function to be unusable.

[0092] To address the aforementioned issues and enhance the anti-interference capabilities of touch panels, this application provides a touch control method, a touch panel, and an electronic device.

[0093] When using a first type of touch panel, the touch panel includes a first electrode array, a second electrode array, and a third electrode array. Electrodes in each column of the first electrode array are connected sequentially, electrodes in each row of the second electrode array are connected sequentially, and electrodes in each column of the third electrode array are connected sequentially. The first and second electrode arrays are interlaced, as are the second and third electrode arrays, with both the first and second electrode arrays located above the third electrode array. The touch method includes: when the electronic device is in an underwater environment, activating an underwater touch detection mode, specifically including: receiving a first operation applied to the touch panel; detecting the self-capacitance between the first and third electrode arrays; determining the horizontal coordinate of the touch panel where the first operation is applied based on the detected self-capacitance; detecting the mutual capacitance between the second and third electrode arrays; and determining the vertical coordinate of the touch panel where the first operation is applied based on the detected mutual capacitance. When the electronic device is in an atmospheric environment, the atmospheric touch detection mode is activated. Specifically, this includes receiving a second operation applied to the touch panel, detecting the mutual capacitance between the first electrode array and the second electrode array, and determining the horizontal and vertical coordinates of the touch panel applied by the second operation based on the detected mutual capacitance.

[0094] When using a second type of touch panel, the touch panel includes a first electrode array, a second electrode array, and a third electrode array. Electrodes in each column of the first electrode array are connected sequentially, as are electrodes in each row of the second electrode array and the third electrode array; the first and second electrode arrays are interlaced, as are the second and third electrode arrays, with both the first and second electrode arrays located above the third electrode array; the touch method includes: activating an underwater touch detection mode when the electronic device is in an underwater environment, specifically including: receiving a first operation applied to the touch panel; detecting the self-capacitance between the first and third electrode arrays; determining the horizontal coordinate of the touch panel where the first operation is applied based on the detected self-capacitance; detecting the mutual capacitance between the second and third electrode arrays; and determining the vertical coordinate of the touch panel where the first operation is applied based on the detected mutual capacitance. When the electronic device is in an atmospheric environment, the atmospheric touch detection mode is activated. Specifically, this includes receiving a second operation applied to the touch panel, detecting the mutual capacitance between the first electrode array and the second electrode array, and determining the horizontal and vertical coordinates of the touch panel applied by the second operation based on the detected mutual capacitance.

[0095] In the third type of touch panel, the touch panel includes a first electrode array, a second electrode array, a third electrode array, and a fourth electrode array. Electrodes in each column of the first electrode array are connected sequentially, as are electrodes in each row of the second electrode array, the third electrode array, and the fourth electrode array. The first and second electrode arrays are interlaced, as are the second and fourth electrode arrays. The first and second electrode arrays are both located above the third and fourth electrode arrays. The touch method includes: when the electronic device is in an underwater environment, activating an underwater touch detection mode, specifically including: receiving a first operation applied to the touch panel; detecting the self-capacitance between the first and fourth electrode arrays; determining the horizontal coordinate of the touch panel where the first operation is applied based on the detected self-capacitance; detecting the self-capacitance between the second and third electrode arrays; and determining the vertical coordinate of the touch panel where the first operation is applied based on the detected self-capacitance. When the electronic device is in an atmospheric environment, the atmospheric touch detection mode is activated. Specifically, this includes receiving a second operation applied to the touch panel, detecting the mutual capacitance between the first electrode array and the second electrode array, and determining the horizontal and vertical coordinates of the touch panel applied by the second operation based on the detected mutual capacitance.

[0096] For a detailed introduction to the first type of touch panel mentioned above, please refer to the following text. Figure 3A , Figure 4AThe description of the above-mentioned touch detection method using the first type of touch panel can be found in the following introduction to Table 1, which will not be repeated here.

[0097] For a more detailed introduction to the second type of touch panel mentioned above, please refer to the following text. Figure 3B , Figures 4B-4C For a further description of the above-mentioned touch detection method using the second type of touch panel, please refer to the description of Tables 2-3 below, which will not be repeated here.

[0098] For a detailed introduction to the third type of touch panel mentioned above, please refer to the following text. Figure 3C , Figure 4D For a further description of the above-mentioned touch detection method using the third type of touch panel, please refer to the introduction of Table 4 below, which will not be repeated here.

[0099] For methods regarding determining whether an electronic device is in underwater or atmospheric touch detection mode, please refer to the following text. Figures 5-6 A detailed description of it will not be repeated here.

[0100] The touch method, touch panel, or electronic device provided in this application can improve the anti-interference capability of touch detection, enabling touch detection even in underwater environments. Specifically, by reusing existing mutual-capacitance touch panels and adding only one or more electrode arrays, high-sensitivity touch recognition in atmospheric environments can be maintained, while also achieving point touch recognition underwater. No additional ultrasonic sensors are required, reducing design costs; no additional compatibility design is needed; and the speed of touch detection and response is accelerated, improving the user experience.

[0101] See Figure 2 , Figure 2 A schematic diagram of the structure of the screen 10 of an electronic device provided in this application is shown.

[0102] like Figure 2 As shown, the screen 10 of the electronic device may include, from top to bottom, components such as a protective layer 11, a touch panel 12, a display module 13, and a substrate 14.

[0103] Optional, Figure 2 The structure of screen 10 shown is merely an example and should not be construed as limiting this application. That is, screen 10 may include more components, or multiple components may be combined into a single integrated structure. For example, screen 10 may also include a shell supporting the entire screen 10. For another example… Figure 1 The touch panel 12 and display module 13 shown can be manufactured independently or integrated into one unit to form a touch screen.

[0104] Next, see Figures 3A-3C , Figures 3A-3C The following are schematic diagrams illustrating the structures of several touch panels provided in this application.

[0105] Figure 3A A schematic diagram of the structure of the touch panel 121 is shown.

[0106] like Figure 3A As shown, the touch panel 121 includes two electrode arrays. One electrode array includes both X-axis and Y-axis electrode arrays, while the other electrode array only includes a Y-axis electrode array. When the X-axis electrode array in the first electrode array is connected within the same layer, to prevent cross-short circuits between the X-axis and Y-axis electrode arrays, a bridging method is needed to connect the Y-axis electrode array. In other words, the Y-axis electrode array can be connected in the second electrode array via a bridging layer. Details will be provided later. Figure 4A The connection structure of each layer of electrode array involved.

[0107] The above Figure 3A The touch panel 121 shown is the first type of touch panel, wherein the Y-axis electrode array in the first electrode layer can also be called the first electrode array, the X-axis electrode array in the first electrode layer can also be called the second electrode array, and the Y-axis electrode array in the second electrode layer can also be called the third electrode array.

[0108] Figure 3B A schematic diagram of the structure of the touch panel 122 is shown.

[0109] like Figure 3B As shown, the touch panel 122 includes two electrode arrays. One electrode array includes both X-axis and Y-axis electrode arrays, while the other electrode array only includes an X-axis electrode array. When the Y-axis electrode array in the first electrode array is connected within the same layer, to prevent cross-short circuits between the X-axis and Y-axis electrode arrays, a bridging method is needed to connect the X-axis electrode array. In other words, the X-axis electrode array can be connected in the second electrode array via a bridging layer. Details will be provided later. Figure 4B The connection structure of each layer of electrode array involved.

[0110] The above Figure 3B The touch panel 122 shown is the second type of touch panel. The Y-axis electrode array in the first electrode layer can also be called the first electrode array, the X-axis electrode array in the first electrode layer can also be called the second electrode array, and the Y-axis electrode array in the second electrode layer can also be called the third electrode array.

[0111] Figure 3CA schematic diagram of the structure of the touch panel 123 is shown.

[0112] like Figure 3C As shown, the touch panel 123 includes three electrode arrays. One electrode array includes both X-axis and Y-axis electrode arrays, while another electrode array includes only an X-axis electrode array, and yet another electrode array includes only a Y-axis electrode array. When the Y-axis electrode array in the first electrode array is connected within the same layer, to prevent cross-short circuits between the X-axis and Y-axis electrode arrays, a bridging method is needed to connect the X-axis electrode array. In other words, the X-axis electrode array can be connected in the second electrode array via a bridging layer. Details will be provided later. Figure 4D The connection structure of each layer of electrode array involved. Figure 3C The present invention only illustrates one structure of three electrode layers. In addition, an electrode layer consisting only of an X-axis electrode array may be disposed in the third electrode layer, and an electrode layer consisting only of a Y-axis electrode array may be disposed in the second electrode layer. The embodiments of this application are not limited in this respect.

[0113] The above Figure 3C The touch panel 123 shown is the third type of touch panel. The Y-axis electrode array in the first electrode layer can also be called the first electrode array, the X-axis electrode array in the first electrode layer can also be called the second electrode array, the Y-axis electrode array in the third electrode layer can also be called the third electrode array, and the X-axis electrode array in the second electrode layer can also be called the fourth electrode array.

[0114] The above Figures 3A-3C In the various touch panels shown, the electrode layer containing both X-axis and Y-axis electrode arrays is placed on the top layer of the touch panel, i.e., on one side of the protective layer 11 of the screen 10 of the electronic device. Other electrode layers, either containing only X-axis or only Y-axis electrode arrays, are placed on the lower layer of the touch panel, i.e., on the side of the protective layer 11 of the screen 10 away from the electronic device. This is because, in a non-interference atmospheric environment, touch recognition can be achieved using only the electrode layer containing both X-axis and Y-axis electrode arrays (see the previous section for details). Figure 1 (As introduced below), touch recognition is only necessary when in interfering environments such as underwater environments, by combining all the above electrode arrays in a mixed manner (see the following section for details). Figures 4A-4D(As described in Tables 1-4), therefore, the electrode layer containing the X-axis electrode array and Y-axis electrode array, which is more commonly used in various applications, is placed on the side closer to the user's touch. This facilitates the reception of finger touch signals to determine the touch position. However, in addition, the electrode layer containing the X-axis electrode array and Y-axis electrode array can also be placed in the lower layer of the touch panel. This application embodiment does not impose specific limitations on this.

[0115] Next, see Figures 4A-4D , Figures 4A-4D This application provides schematic diagrams of the structure of electrode arrays in several touch panels.

[0116] Figure 4A This is a schematic diagram of the electrode array in the touch panel 121 provided in the embodiment of this application.

[0117] Figure 4A Figure a illustrates the arrangement of the electrode array in the first electrode layer of the touch panel 121. The first electrode layer includes a Y-axis electrode array (also called the first electrode array) and an X-axis electrode array (also called the second electrode array). The first electrode array includes N columns of electrodes arranged in parallel, such as Y1-1, Y1-2…Y1-N, each column including multiple electrodes connected sequentially along the Y-axis. The second electrode array includes M rows of electrodes arranged in parallel, such as X1-1, X1-2…X1-M, each row including multiple electrodes connected sequentially along the X-axis. Specifically, Y1-1, Y1-2…Y1-N are connected via bridging, rather than being connected within the same layer.

[0118] Figure 4A Figure b shows the arrangement structure of the electrode array in the second electrode layer of the touch panel 121. The second electrode layer includes a Y-axis electrode array (also called a third electrode array). This third electrode array includes N columns of electrodes arranged in parallel, such as Y2-1, Y2-2...Y2-N. Each column of electrodes includes multiple electrodes arranged and connected sequentially along the Y-axis. Furthermore, the second electrode layer also includes a bridging connection portion for the first electrode array. This is because the first and second electrode arrays are located on the same layer. When the second electrode array is connected in this layer, that is, when each electrode in each row of the second electrode array is connected sequentially in this layer, then each electrode in each column of the first electrode array is connected sequentially through the bridging layer. In other words, the first electrode array can be connected in the second electrode layer, i.e., the layer containing the third electrode array, through the bridging layer. This ensures that the first and second electrode arrays will not have a short circuit at the intersection of the horizontal axis.

[0119] Figure 4AFigure c shows the overall structure of the touch panel 121, which is formed by bonding a first electrode layer and a second electrode layer together, with the first electrode layer covering the second electrode layer. A partially enlarged side-rear bottom view shows that each Y-axis electrode strip in the first electrode array has a one-to-one correspondence with each Y-axis electrode strip in the third electrode array; that is, Y1-1 corresponds to Y2-1, Y1-2 corresponds to Y2-2, ..., Y1-N corresponds to Y2-N. Furthermore, the third electrode array also exhibits a staggered relationship with the second electrode array, i.e., Y1-1 and X1-1 are staggered, Y2-1 and X1-2 are staggered, and so on. In particular, Figure 4A The bridging connection portion in the second electrode layer is only used to connect the electrodes in each column of the first electrode array. Figure 4A The detailed connection method is not shown in the figure, but those skilled in the art should understand that the first electrode layer and the second electrode layer are closely attached, and the first electrode array in the first electrode layer can be connected through the bridging connection part in the second electrode layer.

[0120] Figure 4B This is a schematic diagram of the structure of the electrode array in a touch panel 122 provided in an embodiment of this application.

[0121] Figure 4B Figure a illustrates the arrangement of the electrode array in the first electrode layer of the touch panel 122. The first electrode layer includes a Y-axis electrode array (also called the first electrode array) and an X-axis electrode array (also called the second electrode array). The first electrode array includes N columns of electrodes arranged in parallel, such as Y1-1, Y1-2…Y1-N, each column including multiple electrodes connected sequentially along the Y-axis. The second electrode array includes M rows of electrodes arranged in parallel, such as X1-1, X1-2…X1-M, each row including multiple electrodes connected sequentially along the X-axis. Specifically, X1-1, X1-2…X1-M are connected via bridging, rather than being connected within the same layer.

[0122] Figure 4BFigure b shows the arrangement structure of the electrode array in the second electrode layer of the touch panel 122. The second electrode layer includes an X-axis electrode array (also called a third electrode array). This third electrode array includes L rows of electrodes arranged in parallel, such as X2-1, X2-2…X2-L. Each row of electrodes includes multiple electrodes arranged and connected sequentially along the X-axis. Furthermore, the second electrode layer also includes a bridging connection portion for the first electrode array. This is because the first and second electrode arrays are located on the same layer. When the first electrode array is connected in this layer, that is, when each electrode in each column of the first electrode array is connected sequentially in this layer, then each electrode in each row of the second electrode array is connected sequentially through the bridging layer. In other words, the second electrode array can be connected in the second electrode layer, i.e., the layer where the third electrode array is located, through the bridging layer. This ensures that the first and second electrode arrays will not have a short circuit at the intersection of the horizontal axis.

[0123] Figure 4B Figure c shows the overall structure of the touch panel 122, which is formed by bonding a first electrode layer and a second electrode layer together, with the first electrode layer covering the second electrode layer. A partially enlarged side-rear bottom view shows that each Y-axis electrode strip in the first electrode array corresponds one-to-one with each X-axis electrode strip in the third electrode array; that is, Y1-1 corresponds to X2-1, Y1-2 corresponds to X2-2, and so on. Furthermore, the third electrode array also exhibits a staggered relationship with the second electrode array, i.e., Y1-1 and X1-1 are staggered, Y2-1 and X1-2 are staggered, and so on. In particular, Figure 4B The bridging connection portion in the second electrode layer is only used to connect the electrodes in each column of the first electrode array. Figure 4B The detailed connection method is not shown in the figure, but those skilled in the art should understand that the first electrode layer and the second electrode layer are closely attached, and the first electrode array in the first electrode layer can be connected through the bridging connection part in the second electrode layer.

[0124] Figure 4C This is a schematic diagram of the structure of the electrode array in another touch panel 122 provided in an embodiment of this application.

[0125] Figure 4CFigure a illustrates the arrangement of the electrode array in the first electrode layer of the touch panel 122. The first electrode layer includes a Y-axis electrode array (also called the first electrode array) and an X-axis electrode array (also called the second electrode array). The first electrode array includes N columns of electrodes arranged in parallel, such as Y1-1, Y1-2…Y1-N, each column including multiple electrodes connected sequentially along the Y-axis. The second electrode array includes M rows of electrodes arranged in parallel, such as X1-1, X1-2…X1-M, each row including multiple electrodes connected sequentially along the X-axis. Specifically, X1-1, X1-2…X1-M are connected via bridging, rather than being connected within the same layer.

[0126] Figure 4C Figure b shows the arrangement structure of the electrode array in the second electrode layer of the touch panel 122. The second electrode layer includes an X-axis electrode array (also called a third electrode array). This third electrode array includes M rows of electrodes arranged in parallel, such as X2-1, X2-2...X2-M. Each row of electrodes includes multiple electrodes arranged sequentially and connected along the X-axis. Furthermore, the second electrode layer also includes a bridging connection portion for the second electrode array. This is because the first electrode array and the second electrode array are located on the same layer. When the second electrode array is connected in this layer, that is, when each electrode in each row of the first electrode array is sequentially connected in this layer, each electrode in each column of the second electrode array is sequentially connected through bridging. In other words, the second electrode array can be connected in the second electrode layer, i.e., the layer where the third electrode array is located, through the bridging layer. This ensures that the first electrode array and the second electrode array will not have a short circuit at the intersection of the horizontal axis.

[0127] Figure 4C Figure c shows the overall structure of the touch panel 122, which is formed by bonding a first electrode layer and a second electrode layer together, with the first electrode layer covering the second electrode layer. A partially enlarged side-rear bottom view shows that each X-axis electrode strip in the second electrode array has a one-to-one correspondence with each X-axis electrode strip in the third electrode array; that is, X1-1 corresponds to X2-1, X1-2 corresponds to X2-2, ..., X1-M corresponds to X2-M. Furthermore, the third electrode array also exhibits a staggered relationship with the first electrode array, i.e., Y1-1 and X2-1 are staggered, Y2-1 and X2-2 are staggered, and so on. In particular, Figure 4C The bridging connection portion in the second electrode layer is only used to connect the electrodes in each column of the second electrode array. Figure 4C The detailed connection method is not shown in the figure, but those skilled in the art should understand that the first electrode layer and the second electrode layer are closely attached, and the second electrode array in the first electrode layer can be connected through the bridging connection part in the second electrode layer.

[0128] Figure 4D This is a schematic diagram of the structure of the electrode array in another touch panel 123 provided in an embodiment of this application.

[0129] Figure 4D Figure a illustrates the arrangement of the electrode array in the first electrode layer of the touch panel 123. The first electrode layer includes a Y-axis electrode array (also called the first electrode array) and an X-axis electrode array (also called the second electrode array). The first electrode array includes N columns of electrodes arranged in parallel, such as Y1-1, Y1-2…Y1-N, each column including multiple electrodes connected sequentially along the Y-axis. The second electrode array includes M rows of electrodes arranged in parallel, such as X1-1, X1-2…X1-M, each row including multiple electrodes connected sequentially along the X-axis. Specifically, X1-1, X1-2…X1-M are connected via bridging, rather than being connected within the same layer.

[0130] Figure 4D Figure b shows the arrangement structure of the electrode array in the second electrode layer of the touch panel 123. The second electrode layer includes an X-axis electrode array (also called a fourth electrode array). This fourth electrode array includes L rows of electrodes arranged in parallel, such as X2-1, X2-2…X2-L. Each row of electrodes includes multiple electrodes arranged sequentially and connected along the X-axis. Furthermore, the second electrode layer also includes a bridging connection portion for the first electrode array. This is because the first and second electrode arrays are located on the same layer. When the first electrode array is connected in this layer, that is, when each electrode in each column of the first electrode array is sequentially connected in this layer, then each electrode in each row of the second electrode array is sequentially connected through the bridging layer. In other words, the second electrode array can be connected in the second electrode layer, i.e., the layer where the fourth electrode array is located, through the bridging layer. This ensures that the first and second electrode arrays will not have a short circuit at the intersection of the horizontal axis.

[0131] Figure 4D Figure c shows the arrangement structure of the electrode array in the third electrode layer of the touch panel 123. The third electrode layer includes a Y-axis electrode array (also called the third electrode array). The third electrode array includes K columns of electrodes arranged in parallel, such as Y2-1, Y2-2...Y2-K, and each column of electrodes includes multiple electrodes arranged in sequence along the Y-axis direction.

[0132] Figure 4D Figure d-1 shows the overall structure of the touch panel 123, which is formed by bonding a first electrode layer, a second electrode layer, and a third electrode layer together. The first electrode layer covers the second electrode layer, and the second electrode layer covers the third electrode layer. Figure 4DAs shown in the enlarged side-rear bottom view (d-2), each Y-axis electrode strip in the first electrode array has a one-to-one correspondence with each X-axis electrode strip in the fourth electrode array; that is, Y1-1 corresponds to X2-1, Y1-2 corresponds to X2-2, and so on. Similarly, each X-axis electrode strip in the second electrode array has a one-to-one correspondence with each Y-axis electrode strip in the third electrode array; that is, X1-1 corresponds to Y2-1, X1-2 corresponds to Y2-2, and so on. Furthermore, the third electrode array also exhibits a staggered relationship with the second electrode array, with Y1-1 and X1-1 intersecting, Y2-1 and X1-2 intersecting, and so on. The third electrode array also exhibits a staggered relationship with the fourth electrode array, with Y2-1 and X2-1 intersecting, Y2-2 and X2-2 intersecting, and so on.

[0133] Understandable Figures 4A-4D The electrode array shown is illustrated using only a rhombus shape as an example. In addition, the electrodes can also be strip-shaped, triangular, etc., and this application does not limit them.

[0134] Based on the structures of the various touch panels described above, and the arrangement of the electrode arrays in each layer of these touch panels, the following section describes how to implement the touch method provided in this application to achieve atmospheric touch detection and underwater touch detection when electronic devices use the aforementioned different touch panels.

[0135] Figure 5 This is a schematic flowchart of a method for determining a touch detection mode provided in an embodiment of this application.

[0136] like Figure 5 As shown, the method includes the following steps:

[0137] S501. Detect whether the touch detection mode is manually set.

[0138] Specifically, the electronic device can provide atmospheric touch detection mode and underwater touch detection mode. It also supports user-manual setting of the touch detection mode and intelligent recognition of the current environment to automatically set the touch detection mode. Based on this, to prioritize responding to user settings, before automatically setting the touch detection mode, the electronic device can determine whether the user has previously manually set the touch detection mode. If the user has manually set the touch detection mode, the electronic device executes step S504-1; otherwise, it executes steps S502-S504-2.

[0139] One method for users to manually set the touch detection mode is as follows: the electronic device's settings application can provide options or controls for setting the touch detection mode, and the user can manually set the touch detection mode by selecting the corresponding option, or the user can input corresponding voice commands, etc. This application embodiment does not limit this. In this application embodiment, the operation received by the electronic device to activate the underwater touch detection mode can also be referred to as the third operation or the fifth operation, and the operation received by the electronic device to activate the atmospheric touch detection mode can also be referred to as the fourth operation. The aforementioned third and fourth operations can be operations applied to the touch screen or voice commands, etc., and this application does not limit the specific type of the operation.

[0140] Optionally, the mechanism for triggering the electronic device to execute S501 is, for example, that after the electronic device is powered on, S501 can be executed periodically, i.e., every time a first preset time period has elapsed. The first preset time period is, for example, 1 day. This application embodiment does not limit the specific value.

[0141] Optionally, the electronic device performs the step S501 of determining whether the user has manually set the touch detection mode before. Specifically, it may determine whether the user has manually set the touch detection mode within a preset time period, such as 30 minutes. This embodiment does not limit the specific value. This ensures that the touch detection mode manually set by the user is used first, and also automatically sets the required touch detection mode for the user based on the current environment if the user forgets to change the touch detection mode for a long time.

[0142] S502, Obtain environmental data.

[0143] Specifically, when the electronic device executes the aforementioned S501, if it does not detect that the user has manually set the touch detection mode, the electronic device begins to acquire environmental data, which is then used to identify the current environment based on the environmental data and automatically set the touch detection mode required by the user.

[0144] The environmental data acquired by the electronic device includes, but is not limited to: capacitance data in the touch panel and image data collected by the image sensor. It is sufficient to ensure that the acquired environmental data can be used to analyze whether the electronic device is in an underwater or atmospheric environment.

[0145] When the environmental data includes capacitance data in the touch panel, the first environmental data specifically includes second capacitance data, which has the characteristics of a capacitive touch panel in an underwater environment. The second environmental data also specifically includes third capacitance data, which has the characteristics of a capacitive touch panel in an atmospheric environment.

[0146] S503. Determine whether to use underwater touch detection mode.

[0147] In one implementation, if the electronic device detects that the user has manually set a touch detection mode when executing S501, then when executing S503, it needs to further determine whether the touch detection mode manually set by the user is an underwater touch detection mode. Optionally, when the electronic device executes S501, that is, when detecting whether the touch detection mode has been manually set, it can also detect whether an underwater touch detection mode has been set, and thus determine whether to use the underwater touch detection mode. This means that S501 and S503 can be executed simultaneously without having to be divided into two execution steps.

[0148] In another embodiment, if the electronic device acquires environmental data during S502, then during S503, it needs to further determine whether to adopt the underwater touch detection mode based on the acquired environmental data. Specifically, if the acquired environmental data is first environmental data indicating that the electronic device is in an underwater environment, the electronic device determines to adopt underwater touch detection and executes the subsequent S504-1; if the acquired environmental data is second environmental data indicating that the electronic device is in an atmospheric environment, the electronic device determines to adopt atmospheric touch detection and executes the subsequent S504-2. Optionally, the electronic device can also adopt more touch detection modes. This application only uses the underwater touch detection mode and the atmospheric touch detection mode as examples. When the electronic device detects that it is in other environments (such as dust), other corresponding touch detection modes can also be adopted.

[0149] S504-1 adopts underwater touch detection mode.

[0150] Electronic devices use underwater touch detection to determine the area on the touch panel where a touch operation is applied. For details on the implementation of the underwater touch detection method, please refer to Tables 1-4 below. Figures 7A-10B The details of this will not be elaborated here.

[0151] S504-2 adopts atmospheric touch detection mode.

[0152] Electronic devices use atmospheric touch detection to determine the area on the touch panel where a touch operation occurred. For details on the implementation of atmospheric touch detection methods, please refer to the previous section. Figure 1 The descriptions of Tables 1-4, which will follow later, will not be repeated here.

[0153] Next, combined Figure 6 Taking the capacitance data of the touch panel as an example, this paper introduces a method for automatically setting the touch detection mode of electronic devices.

[0154] Figure 6 This is a schematic flowchart of a method for automatically setting a touch detection mode, provided in an embodiment of this application.

[0155] like Figure 6As shown, the method includes the following steps:

[0156] S601. Based on the acquired capacitance data, detect whether the touch point is malfunctioning.

[0157] During the process of an electronic device entering the automatic touch detection mode, the acquired capacitance data is used to detect whether each touch point in the touch panel is ineffective, which is then used to determine whether the number of ineffective touch points meets the preset requirement.

[0158] Specifically, determining whether a touch point is malfunctioning includes detecting whether the capacitance value at the touch point exceeds a preset capacitance value. This capacitance value at the touch point can be as described above. Figure 1 The mutual capacitance or self-capacitance at the touch point is involved, wherein the preset capacitance value corresponding to the mutual capacitance and the preset capacitance value corresponding to the self-capacitance can be the same or different, and this application embodiment does not impose such a limitation. The preset capacitance value is the capacitance value after the self-capacitance or mutual capacitance at the touch point changes when the touch point comes into contact with water.

[0159] S602. Detect whether the number of failed touch points meets the threshold.

[0160] After detecting a failed touch point, the number of failed touch points is obtained. When the number of failed touch points reaches a threshold, it indicates that the electronic device is in an underwater environment, and therefore S603-1 is executed. When the number of failed touch points does not reach the threshold, it indicates that the electronic device is not in an underwater environment, for example, in an atmospheric environment, and therefore S603-2 is executed. The condition that the number of failed touch points does not reach the threshold, indicating that the electronic device is not in an underwater environment, includes situations where the electronic device is not in contact with water at all, as well as situations where a small portion of the touch area of ​​the electronic device is in contact with water droplets. This small portion of the touch area will not significantly affect the user's touch operation, therefore this situation is classified as not being in an underwater environment.

[0161] In this embodiment of the application, determining whether the number of failed touch points has reached the threshold specifically includes: obtaining capacitance data through the first electrode array and / or the second electrode array; when the number of capacitance values ​​greater than the first threshold in the capacitance data is greater than the second threshold, it indicates that the number of failed touch points has reached the threshold; otherwise, it indicates that the number of failed touch points has not reached the threshold.

[0162] S603-1 adopts underwater touch detection mode.

[0163] When the number of failed touch points meets a threshold, the electronic device is determined to be in an underwater environment. Therefore, an underwater touch detection mode is adopted. For details on the specific implementation of the underwater touch detection method, please refer to Tables 1-4 below. Figures 7A-10B The details of this will not be elaborated here.

[0164] S603-2 adopts atmospheric touch detection mode.

[0165] When the number of failed touch points does not meet the threshold, the electronic device is determined to be in an atmospheric environment, and therefore an atmospheric touch detection mode is adopted. For details on the specific implementation of the atmospheric touch detection method, please refer to the previous section. Figure 1 The descriptions of Tables 1-4, which will follow later, will not be repeated here.

[0166] Next, the underwater touch detection method provided in this application will be described in detail.

[0167] Referring to Table 1, which exemplarily illustrates the rules for underwater touch detection using touch panel 121.

[0168] Table 1

[0169]

[0170] As shown in Table 1, taking touch panel 121 as an example, once the electronic device determines that underwater touch detection is used, it can continuously and alternately perform self-capacitance detection and mutual capacitance detection. In the self-capacitance detection phase, the X-axis coordinate corresponding to the touch operation is determined, and in the mutual capacitance detection phase, the Y-axis coordinate is determined. Specifically, continuously and alternately performing self-capacitance detection and mutual capacitance detection means performing self-capacitance detection in a first time period and mutual capacitance detection in a second time period; these first and second time periods are continuously alternating. After determining the coordinates corresponding to the touch operation, the electronic device responds to the touch operation by performing the corresponding task.

[0171] In the embodiments of this application, the excitation connected to the first electrode array / third electrode array in the underwater self-containment stage shown in Table 1 above can also be referred to as the first excitation signal, and the shield connected to the second electrode array can be the second excitation signal or ground; in the underwater mutual capacitance stage, the excitation connected to the second electrode array / third electrode array can also be referred to as the third excitation signal, and the shield connected to the first electrode array can be the fourth excitation signal or ground; in the atmospheric detection stage, the excitation connected to the first electrode array can be referred to as the fifth excitation signal, and the excitation connected to the third electrode array can also be referred to as the sixth excitation signal. The second and fourth excitation signals may be the same or different, and the fifth and sixth excitation signals may be the same.

[0172] Combining Table 1 and Figure 7AAs can be seen, when the touch panel 121 operates in an underwater environment for self-capacitance detection, the first electrode array is grounded (or connected to an excitation signal), the corresponding third electrode array is connected to an excitation signal (or grounded), and the second electrode array is connected to a shield. The shield connected to the second electrode array can be grounded or connected to an excitation signal used to shield against water interference. Thus, when a user's finger inputs an operation on the touch panel 121, the distance between the upper and lower electrodes at the corresponding positions of the touch operation in the third and first electrode arrays shortens, based on the capacitance calculation formula... As can be seen, when d decreases, the capacitance increases. Therefore, electronic devices can determine the X-axis coordinate corresponding to the touch operation by detecting the area where the self-capacitance between the first electrode array and the third electrode array changes by a preset amount.

[0173] Combining Table 1 and Figure 7B As can be seen, when the touch panel 121 operates in an underwater environment for mutual capacitance detection, the second electrode array is either activated or sensed, while the corresponding third electrode array senses (or is activated), and the first electrode array is shielded. The shield connected to the first electrode array can be grounded or connected to an activation signal used to shield against water interference. Thus, when a user's finger inputs an operation on the touch panel 121, the distance between the upper and lower electrodes at the corresponding positions in the third and second electrode arrays shortens, based on the capacitance calculation formula... As can be seen, when d decreases, the capacitance increases. Therefore, electronic devices can determine the Y-axis coordinate corresponding to the touch operation by detecting the area where the mutual capacitance between the second electrode array and the third electrode array changes by a preset method.

[0174] Optionally, when using the touch panel 121 for underwater touch detection, if the signal is strong, the X-axis and Y-axis coordinates corresponding to the touch operation can be determined directly through the aforementioned mutual capacitance detection stage. When the signal is weak, the X-axis coordinates are determined through self-capacitance detection, resulting in more accurate X-axis coordinates. Alternatively, when the signal is weak, the X-axis coordinates can be determined through both self-capacitance and mutual capacitance detection, allowing for X-axis coordinate calibration and further accuracy.

[0175] Referring to Table 2, which exemplarily illustrates the use of... Figure 4B The above describes a rule for underwater touch detection using a touch panel 122.

[0176] Table 2

[0177]

[0178] As shown in Table 2, Figure 4BTaking a touch panel 122 as an example, once the electronic device determines that underwater touch detection is used, it can also determine the X-axis coordinate corresponding to the touch operation by continuously and alternately performing self-capacitance detection and mutual capacitance detection. In the self-capacitance detection stage, the Y-axis coordinate is determined, and in the mutual capacitance detection stage, the Y-axis coordinate is determined. Specifically, continuously and alternately performing self-capacitance detection and mutual capacitance detection means performing self-capacitance detection in a first time period and mutual capacitance detection in a second time period; these first and second time periods are continuously and alternately performed.

[0179] In the embodiments of this application, the excitation connected to the first electrode array during the underwater self-containment stage shown in Table 2 above can also be referred to as the seventh excitation signal, and the shield connected to the second electrode array can be the eighth excitation signal or ground; the excitation connected to the second electrode array / third electrode array during the underwater mutual capacitance stage can also be referred to as the ninth excitation signal, and the shield connected to the first electrode array can be the tenth excitation signal or ground. The eighth and tenth excitation signals may be the same or different.

[0180] Combine Table 2 and Figure 8A As can be seen, when the touch panel 122 operates in an underwater environment for self-capacitance detection, the first electrode array is connected to the excitation, the corresponding third electrode array is grounded, and the second electrode array is connected to the shield. The shield connected to the second electrode array can be grounded or connected to the excitation signal used to shield against water interference. Thus, when a user's finger inputs an operation on the touch panel 122, the distance between the upper and lower electrodes at the corresponding positions of the touch operation in the third and first electrode arrays shortens, based on the capacitance calculation formula... As can be seen, when d decreases, the capacitance increases. Therefore, electronic devices can determine the X-axis coordinate corresponding to the touch operation by detecting the area where the self-capacitance between the first electrode array and the third electrode array changes by a preset amount.

[0181] Combine Table 2 and Figure 8B As can be seen, when the touch panel 122 operates in an underwater environment for mutual capacitance detection, the second electrode array acts as a sensor (or is connected to an excitation), while the corresponding third electrode array is connected to an excitation (or acts as a sensor), and the first electrode array is connected to a shield. The shield connected to the first electrode array can be grounded or connected to an excitation signal used to shield against water interference. Thus, when a user's finger inputs an operation on the touch panel 122, the distance between the upper and lower electrodes at the corresponding positions of the touch operation in the third and second electrode arrays shortens, based on the capacitance calculation formula... As can be seen, when d decreases, the capacitance increases. Therefore, electronic devices can determine the Y-axis coordinate corresponding to the touch operation by detecting the area where the mutual capacitance between the second electrode array and the third electrode array changes by a preset method.

[0182] Referring to Table 3, Table 3 exemplarily illustrates the use of... Figure 4C Another rule for underwater touch detection is shown for the touch panel 122.

[0183] Table 3

[0184]

[0185] As shown in Table 3, with Figure 4C Taking another touch panel 122 as an example, once the electronic device determines that underwater touch detection is used, it can continuously and alternately perform self-capacity detection and mutual capacity detection. In the self-capacity detection phase, the Y-axis coordinate corresponding to the touch operation is determined, and in the mutual capacity detection phase, the X-axis coordinate is determined. Specifically, continuously and alternately performing self-capacity detection and mutual capacity detection means performing self-capacity detection in a first time period and mutual capacity detection in a second time period; these first and second time periods are continuously alternating. After determining the coordinates corresponding to the touch operation, the electronic device responds to the touch operation by performing the corresponding task.

[0186] In the embodiments of this application, the excitation connected to the second / third electrode array during the underwater self-containment stage, as shown in Table 3 above, can also be referred to as the eleventh excitation signal, and the shield connected to the first electrode array can be the twelfth excitation signal or ground; the excitation connected to the first / third electrode array during the underwater mutual capacitance stage can also be referred to as the thirteenth excitation signal, and the shield connected to the second electrode array can be the fourteenth excitation signal or ground. The twelfth and fourteenth excitation signals may be the same or different.

[0187] Combined with Table 3 and Figure 9A As can be seen, when the touch panel 122 operates in an underwater environment for self-capacitance detection, the second electrode array is grounded (or connected to an excitation signal), the corresponding third electrode array is connected to an excitation signal (or grounded), and the first electrode array is connected to a shield. The shield connected to the first electrode array can be grounded or connected to an excitation signal used to shield against water interference. Thus, when a user's finger inputs an operation on the touch panel 122, the distance between the upper and lower electrodes at the corresponding positions in the third and second electrode arrays will shorten, based on the capacitance calculation formula... As can be seen, when d decreases, the capacitance increases. Therefore, electronic devices can determine the Y-axis coordinate corresponding to the touch operation by detecting the area where the self-capacitance between the third electrode array and the second electrode array changes by a preset amount.

[0188] Combined with Table 3 and Figure 9BAs can be seen, when the touch panel 122 operates in an underwater environment for mutual capacitance detection, the first electrode array is connected to excitation (or sensing), the corresponding third electrode array is connected to sensing (or excitation), and the second electrode array is connected to shielding. The shielding of the second electrode array can be grounded or connected to an excitation signal used to shield against water interference. Thus, when a user's finger inputs an operation on the touch panel 122, the distance between the upper and lower electrodes at the corresponding positions of the touch operation in the third and first electrode arrays shortens, based on the capacitance calculation formula... As can be seen, when d decreases, the capacitance increases. Therefore, electronic devices can determine the X-axis coordinate corresponding to the touch operation by detecting the area where the mutual capacitance between the first electrode array and the third electrode array changes by a preset method.

[0189] Optionally, when using the touch panel 122 for underwater touch detection, if the signal is strong, the X-axis and Y-axis coordinates corresponding to the touch operation can be determined directly through the aforementioned mutual capacitance detection stage. When the signal is weak, the Y-axis coordinate is determined through self-capacitance detection, resulting in a more accurate Y-axis coordinate. Alternatively, when the signal is weak, the Y-axis coordinate can be determined by combining self-capacitance detection and mutual capacitance detection, allowing for Y-axis coordinate calibration and further accuracy.

[0190] Optionally, in this embodiment, in addition to identifying the touch position where the touch operation is performed underwater, the pressure level of the touch operation can also be identified, so as to further realize functions such as 3D touch. This embodiment will not be elaborated further.

[0191] Referring to Table 4, which exemplarily illustrates the rules for underwater touch detection using touch panel 123.

[0192] Table 4

[0193]

[0194]

[0195] As shown in Table 4, taking touch panel 123 as an example, once the electronic device determines that underwater touch detection is used, the electronic device can also determine the X-axis coordinate and Y-axis coordinate corresponding to the touch operation by continuously and alternately performing self-capacitance detection between different electrode arrays. Specifically, continuously and alternately performing self-capacitance detection between different electrode arrays means performing self-capacitance detection between the first and fourth arrays in the first time period, and performing self-capacitance detection between the second and third electrode arrays in the second time period. These first and second time periods are continuously and alternately performed.

[0196] Combine Table 4 and Figure 10AAs can be seen, when the touch panel 123 operates in an underwater environment for the first type of self-capacitance detection, the first electrode array is connected to the excitation, the corresponding fourth electrode array is grounded, and both the second and third electrode arrays are shielded. The shields connected to the second and third electrode arrays can be grounded or connected to the excitation signal used to shield against water interference. Thus, when a user's finger inputs an operation on the touch panel 123, the distance between the upper and lower electrodes at the corresponding touch operation positions in the first and fourth electrode arrays shortens, based on the capacitance calculation formula... It is known that as d decreases, the capacitance increases. Therefore, electronic devices can determine the X-axis coordinate corresponding to a touch operation by detecting the region where the self-capacitance between the first and fourth electrode arrays changes by a preset interval. Alternatively, the first electrode array can be grounded, the corresponding fourth electrode array can be connected to an excitation circuit, and the second and third electrode arrays can be shielded. Using a similar self-capacitance detection method, the Y-axis coordinate corresponding to the touch operation can be determined.

[0197] Combine Table 4 and Figure 10B As can be seen, when the touch panel 123 operates in an underwater environment for the second type of self-capacitance detection, the second electrode array is connected to the excitation, while the corresponding third electrode array is grounded, and both the first and fourth electrode arrays are shielded. The shield connected to the first electrode array can be grounded or connected to the excitation signal used to shield against water interference. Thus, when a user's finger inputs an operation on the touch panel 123, the distance between the upper and lower electrodes at the corresponding touch operation positions in the second and third electrode arrays shortens, based on the capacitance calculation formula... It is known that as d decreases, the capacitance increases. Therefore, electronic devices can determine the Y-axis coordinate corresponding to a touch operation by detecting the region where the self-capacitance between the second and third electrode arrays changes by a preset interval. Alternatively, the second electrode array can be grounded, the corresponding third electrode array can be connected to an excitation circuit, and the first and fourth electrode arrays can be shielded. Using a similar self-capacitance detection method, the X-axis coordinate corresponding to a touch operation can be determined.

[0198] The hardware architecture and form factor of the electronic device involved in this application will be described next.

[0199] Electronic devices can be equipped with Or other portable terminal devices with different operating systems, such as mobile phones, tablets, desktop computers, laptops, handheld computers, laptops, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices and / or smart city devices, etc.

[0200] Figure 11 A schematic diagram of the structure of the electronic device 100 is shown.

[0201] Electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 130, a universal serial bus (USB) interface, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a camera 193, and a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a touch sensor 180K, an ambient light sensor 180L, etc.

[0202] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0203] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0204] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0205] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0206] In this embodiment of the application, the processor 110 is used to call the corresponding software and hardware modules to perform, such as Figures 5-6 The method for setting the touch detection mode is shown, and when the touch detection mode is determined, the steps described above are executed. Figure 1 The atmospheric touch detection and execution involved are as described above. Figures 7A-10B The underwater touch detection involved will not be discussed in detail here.

[0207] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0208] A USB interface is an interface that conforms to the USB standard specification, specifically including Mini USB, Micro USB, and USB Type-C interfaces. A USB interface can be used to connect a charger to charge electronic device 100, and also for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0209] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0210] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0211] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microLEDs, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0212] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0213] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0214] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0215] In this embodiment, the camera 193 can be used to capture environmental images, which are then used by the electronic device to determine the current environment of the electronic device based on the environmental images, so as to determine which touch detection mode to use.

[0216] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0217] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0218] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0219] Internal memory 130 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).

[0220] Random access memory can include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc.

[0221] Non-volatile memory can include disk storage devices and flash memory.

[0222] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.

[0223] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0224] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0225] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0226] In the embodiments of this application, the aforementioned memory can be used to store the execution code that implements the touch detection method provided in this application, such as the touch detection rules described in Tables 1-4 above, which will not be elaborated here.

[0227] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0228] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0229] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0230] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0231] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0232] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0233] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0234] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.

[0235] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0236] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0237] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0238] In this embodiment, the touch sensor 180K is the touch panel 121, touch panel 122 or touch panel 123 mentioned above. For an introduction to the touch panel, please refer to the relevant description above, which will not be repeated here.

[0239] It should be understood that the steps in the above-described method embodiments provided in this application can be implemented by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

[0240] This application also provides an electronic device that may include a memory and a processor. The memory may be used to store a computer program; the processor may be used to invoke the computer program in the memory to cause the electronic device to perform the method in any of the above embodiments.

[0241] This application also provides a chip system including at least one processor for implementing the functions involved in the methods performed by the electronic device in any of the above embodiments.

[0242] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located within or outside the processor.

[0243] The chip system can consist of chips or include chips and other discrete components.

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

[0245] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.

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

[0247] This application also provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the method executed by the electronic device in any of the above embodiments.

[0248] This application also provides a computer-readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is run, it causes the computer to perform the method executed by the electronic device in any of the above embodiments.

[0249] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0250] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive).

[0251] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0252] In summary, the above description is merely an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made according to the disclosure of the present invention should be included within the scope of protection of the present invention.

Claims

1. A touch method, characterized in that, The method is applied to an electronic device including a touch panel, the touch panel including a first electrode array, a second electrode array and a third electrode array, electrodes in each column of the first electrode array being connected in sequence, electrodes in each row of the second electrode array being connected in sequence, electrodes in each column of the third electrode array being connected in sequence; the first electrode array and the second electrode array are staggered longitudinally and transversely, the second electrode array and the third electrode array are staggered longitudinally and transversely, and the first electrode array and the second electrode array are both located above the third electrode array; the method includes: The electronic device is in an underwater environment; A first operation acting on the touch panel is received; Self-capacitance between the first electrode array and the third electrode array is detected, and a horizontal coordinate of the touch panel on which the first operation acts is determined according to the detected self-capacitance; Mutual capacitance between the second electrode array and the third electrode array is detected, and a vertical coordinate of the touch panel on which the first operation acts is determined according to the detected mutual capacitance.

2. The method of claim 1, wherein, Before detecting the self-capacitance between the first electrode array and the third electrode array, the method further includes: A first excitation signal is input to the third electrode array, and the first electrode array is grounded; Or, the first excitation signal is input to the first electrode array, and the third electrode array is grounded.

3. The method according to claim 1 or 2, characterized in that, Before detecting the self-capacitance between the first electrode array and the third electrode array, the method further includes: The second electrode array is grounded or a second excitation signal is input to the second electrode array.

4. The method of claim 1, wherein, Before detecting the mutual capacitance between the second electrode array and the third electrode array, the method further includes: A third excitation signal is input to electrodes in each row of the second electrode array in sequence; The mutual capacitance between the second electrode array and the third electrode array is detected, specifically including that the mutual capacitance between the second electrode array and the third electrode array is detected through an induced signal output by the third electrode array; Or, the third excitation signal is input to electrodes in each column of the third electrode array in sequence; The mutual capacitance between the second electrode array and the third electrode array is detected, specifically including that the mutual capacitance between the second electrode array and the third electrode array is detected through an induced signal output by the second electrode array.

5. The method of claim 1, wherein, Before detecting the mutual capacitance between the second electrode array and the third electrode array, the method further includes: The first electrode array is grounded or a fourth excitation signal is input to the first electrode array.

6. The method of claim 1, wherein The self-capacitance between the first electrode array and the third electrode array is detected, specifically including that the self-capacitance between the first electrode array and the third electrode array is detected in a first time period in which the electronic device is in an underwater environment; The mutual capacitance between the second electrode array and the third electrode array is detected, specifically including that the mutual capacitance between the second electrode array and the third electrode array is detected in a second time period in which the electronic device is in an underwater environment; The first time period and the second time period are continuous and alternate.

7. The method of claim 1, wherein, The first electrode array and the second electrode array are arranged in a first electrode layer of the touch panel, and the third electrode array is arranged in a second electrode layer in the touch panel, and the first electrode layer is above the second electrode layer.

8. The method of claim 1, wherein, After determining the horizontal coordinate and the vertical coordinate of the touch panel acted on by the first operation, the method further comprises: In response to the first operation, a task corresponding to the first operation is executed.

9. The method of claim 1, wherein, The method further comprises: The electronic device is in an atmospheric environment; A second operation acting on the touch panel is received. The mutual capacitance between the first electrode array and the second electrode array is detected, and the horizontal coordinate and the vertical coordinate of the touch panel acted on by the second operation are determined according to the detected mutual capacitance.

10. The method of claim 9, wherein, Before detecting the mutual capacitance between the first electrode array and the second electrode array, the method further comprises: The fifth excitation signal is input to the electrodes in each column of the first electrode array in sequence. The mutual capacitance between the first electrode array and the second electrode array is detected, specifically including: the mutual capacitance between the first electrode array and the second electrode array is detected through the sensing signal output by the second electrode array.

11. The method according to claim 9 or 10, characterized in that, Before detecting the mutual capacitance between the first electrode array and the second electrode array, the method further comprises: The sixth excitation signal is input to the electrodes in each column of the third electrode array in sequence.

12. The method of claim 9, wherein, After determining the horizontal coordinate and the vertical coordinate of the touch panel acted on by the second operation, the method further comprises: In response to the second operation, a task corresponding to the second operation is executed.

13. The method of claim 9, wherein, Before the electronic device is in the underwater environment, the method further comprises: Obtaining first environment data, determining that the electronic device is in the underwater environment according to the first environment data, and the electronic device is in the underwater environment, and the electronic device is in the underwater environment.

14. The method of claim 13, wherein, Before obtaining the first environment data, the method further comprises: No third operation and fourth operation are detected, the third operation is used to indicate that the electronic device opens the underwater touch control detection mode, and the fourth operation is used to indicate that the electronic device opens the atmospheric touch control detection mode.

15. The method according to claim 13 or 14, characterized in that, According to the first environment data, it is determined that the electronic device is in the underwater environment, specifically comprising: Capacitance data is obtained through the first electrode array and the second electrode array, and after it is detected that the number of capacitance values greater than a first threshold in the capacitance data is greater than a second threshold, it is determined that the electronic device is in the underwater environment.

16. The method of claim 1, wherein, Before the underwater environment, the method further comprises: receiving a fifth operation for opening the underwater touch control detection mode.

17. A touch method, comprising: The method is applied to an electronic device including a touch panel, the touch panel including a first electrode array, a second electrode array and a third electrode array, electrodes in each column of the first electrode array being connected in sequence, electrodes in each row of the second electrode array being connected in sequence, electrodes in each row of the third electrode array being connected in sequence; the first electrode array and the second electrode array are staggered longitudinally and transversely, the second electrode array and the third electrode array are staggered longitudinally and transversely, and the first electrode array and the second electrode array are both located above the third electrode array; the method includes: The electronic device is in an underwater environment; A first operation acting on the touch panel is received; Self-capacitance between the first electrode array and the third electrode array is detected, and a horizontal coordinate of the touch panel on which the first operation acts is determined according to the detected self-capacitance; Mutual capacitance between the second electrode array and the third electrode array is detected, and a vertical coordinate of the touch panel on which the first operation acts is determined according to the detected mutual capacitance.

18. The method of claim 17, wherein, Before detecting the self-capacitance between the first electrode array and the third electrode array, the method further includes: A seventh excitation signal is input to the first electrode array, and the third electrode array is grounded.

19. The method of claim 17 or 18, wherein, Before detecting the self-capacitance between the first electrode array and the third electrode array, the method further includes: The second electrode array is controlled to be grounded or a eighth excitation signal is input to the second electrode array.

20. The method of claim 17, wherein, Before detecting the mutual capacitance between the second electrode array and the third electrode array, the method further includes: A ninth excitation signal is input to electrodes in each row of the third electrode array in sequence; The mutual capacitance between the second electrode array and the third electrode array is detected, specifically including that the mutual capacitance between the second electrode array and the third electrode array is detected through an induction signal output by the second electrode array; Or, the ninth excitation signal is input to electrodes in each row of the second electrode array in sequence; The mutual capacitance between the second electrode array and the third electrode array is detected, specifically including that the mutual capacitance between the second electrode array and the third electrode array is detected through an induction signal output by the third electrode array.

21. The method of claim 17, wherein, Before detecting the mutual capacitance between the second electrode array and the third electrode array, the method further includes: The first electrode array is controlled to be grounded or a tenth excitation signal is input to the first electrode array.

22. A touch method, comprising: The method is applied to an electronic device including a touch panel, the touch panel including a first electrode array, a second electrode array and a third electrode array, electrodes in each column of the first electrode array being connected in sequence, electrodes in each row of the second electrode array being connected in sequence, electrodes in each row of the third electrode array being connected in sequence; the first electrode array and the second electrode array are staggered longitudinally and transversely, the first electrode array and the third electrode array are also staggered longitudinally and transversely, and the first electrode array and the second electrode array are both located above the third electrode array; the method includes: The electronic device is in an underwater environment; receiving a first operation acting on the touch panel; detecting self-capacitance between the second electrode array and the third electrode array, and determining a longitudinal coordinate of the first operation acting on the touch panel according to the detected self-capacitance; detecting mutual-capacitance between the first electrode array and the third electrode array, and determining a lateral coordinate of the first operation acting on the touch panel according to the detected mutual-capacitance.

23. The method of claim 22, wherein, Before detecting the self-capacitance between the second electrode array and the third electrode array, the method further comprises: inputting an eleventh excitation signal to the second electrode array, and grounding the third electrode array; or, inputting the eleventh excitation signal to the third electrode array, and grounding the second electrode array.

24. The method of claim 22 or 23, wherein, Before detecting the self-capacitance between the second electrode array and the third electrode array, the method further comprises: grounding the first electrode array or inputting a twelfth excitation signal to the first electrode array.

25. The method of claim 22, wherein, Before detecting the mutual-capacitance between the first electrode array and the third electrode array, the method further comprises: inputting a thirteenth excitation signal to electrodes in each column of the first electrode array in sequence; detecting the mutual-capacitance between the first electrode array and the third electrode array, specifically including detecting the mutual-capacitance between the third electrode array and the first electrode array through an induced signal output by the third electrode array; or, inputting the thirteenth excitation signal to electrodes in each row of the third electrode array in sequence; detecting the mutual-capacitance between the first electrode array and the third electrode array, specifically including detecting the mutual-capacitance between the third electrode array and the first electrode array through an induced signal output by the first electrode array.

26. The method of claim 22, wherein, Before detecting the mutual-capacitance between the first electrode array and the third electrode array, the method further comprises: grounding the second electrode array or inputting a fourteenth excitation signal to the second electrode array.

27. A touch method, comprising: The method is applied to an electronic device comprising a touch panel, the touch panel comprising a first electrode array, a second electrode array, a third electrode array and a fourth electrode array, electrodes in each column of the first electrode array being connected in sequence, electrodes in each row of the second electrode array being connected in sequence, electrodes in each column of the third electrode array being connected in sequence, and electrodes in each row of the fourth electrode array being connected in sequence; the first electrode array and the second electrode array are staggered longitudinally and laterally, the second electrode array and the fourth electrode array are staggered longitudinally and laterally, the third electrode array and the fourth electrode array are staggered longitudinally and laterally, and the first electrode array and the second electrode array are both located above the third electrode array and the fourth electrode array; the method comprises: the electronic device is in an underwater environment; receiving a first operation acting on the touch panel; detecting self-capacitance between the first electrode array and the fourth electrode array, and determining a lateral coordinate of the first operation acting on the touch panel according to the detected self-capacitance; detecting self-capacitance between the second electrode array and the third electrode array, determining a longitudinal coordinate of the touch panel on which the first operation acts according to the detected self-capacitance.

28. An electronic device, comprising: The electronic device includes the touch panel, one or more memories, one or more processors; the touch panel, the memory and the one or more processors are coupled, the touch panel is configured to receive a touch operation, the memory is configured to store computer program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the electronic device to perform the method according to any one of claims 1-27. 29.A chip applied to an electronic device comprising the touch panel, characterized in that, The chip includes one or more processors, and the processor is configured to invoke computer instructions to cause the electronic device to perform the method according to any one of claims 1-27.

30. A computer-readable storage medium comprising instructions, wherein: When the instructions are run on an electronic device including the touch panel, the electronic device is caused to perform the method according to any one of claims 1-27.

Citation Information

Patent Citations

  • Method of reducing computation of water tolerance by projecting touch data

    CN103376963A

  • Touch panel wet state detection method and capacitive touch apparatus

    CN108271418A