Touch detection method and device, electronic equipment, storage medium and program product
By setting the touch signal line with potential difference in underwater mode, the problem of inaccurate detection of capacitive touch screens in underwater environment is solved, achieving sensitive touch operation detection and reducing hardware costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2025-12-29
- Publication Date
- 2026-04-14
AI Technical Summary
Water can affect the signal reception of capacitive touchscreens, making it impossible to correctly detect user touch operations.
When the electronic device is configured in underwater mode, the electric field distribution is changed by providing a maximum potential difference between the first transmitted signal and the first auxiliary signal that exceeds a first threshold, so that the electric field is more concentrated around the touch node, thereby improving the sensitivity of touch detection.
It achieves accurate detection of touch operations in underwater environments, reduces hardware costs, does not require changes to the existing touch signal lines and touch chip hardware design, and does not require additional accessories.
Smart Images

Figure CN121857993A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch technology, and in particular to a touch detection method, apparatus, electronic device, storage medium, and program product. Background Technology
[0002] To enhance the user experience, many electronic devices incorporate touchscreens. A touchscreen is a display screen with touch functionality, allowing users to control the device directly with their fingers, styluses, or other devices. Capacitive touchscreens are currently the most widely used type. However, water can affect the signal reception of capacitive touchscreens, preventing them from accurately detecting user touch input. Summary of the Invention
[0003] This application provides a touch detection method, apparatus, electronic device, and computer-readable storage medium.
[0004] In a first aspect, this application provides a touch detection method applied to a touch chip in an electronic device. The electronic device further includes multiple first touch signal lines and multiple second touch signal lines connected to the touch chip. The first touch signal lines and the second touch signal lines are intersected to form a touch node. The touch detection method includes:
[0005] When the electronic device is configured in underwater mode, a first transmission signal is provided to the first transmission signal line of the plurality of first touch signal lines, and a first auxiliary signal is provided to the first auxiliary signal line of the plurality of first touch signal lines; the maximum potential difference between the first transmission signal and the first auxiliary signal exceeds a first threshold.
[0006] Obtain the first received signal output by the second touch signal line in response to the first transmitted signal and the first auxiliary signal;
[0007] Based on the first received signal, the touch operation of the touch node corresponding to the first transmitted signal line and the second touch signal line is determined.
[0008] Secondly, this application provides a touch detection device applied to a touch chip in an electronic device. The electronic device further includes multiple first touch signal lines and multiple second touch signal lines connected to the touch chip. The first touch signal lines and the second touch signal lines are arranged to intersect to form touch nodes. The touch detection device includes:
[0009] A signal transmitting module is configured to provide a first transmitting signal to a first transmitting signal line among a plurality of first touch signal lines when the electronic device is configured in underwater mode, and to provide a first auxiliary signal to a first auxiliary signal line among a plurality of first touch signal lines; wherein the maximum potential difference between the first transmitting signal and the first auxiliary signal exceeds a first threshold.
[0010] The signal receiving module is used to acquire the first received signal output by the second touch signal line in response to the first transmitted signal and the first auxiliary signal;
[0011] The detection module is used to determine the touch operation of the touch node corresponding to the first transmitted signal line and the second touch signal line based on the first received signal.
[0012] Thirdly, this application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the touch detection method described above.
[0013] Fourthly, this application provides an electronic device, comprising:
[0014] Multiple first touch signal lines and multiple second touch signal lines are provided, with the first touch signal lines and the second touch signal lines intersecting to form a touch node;
[0015] The touch chip is connected to the first touch signal line and the second touch signal line respectively, and the touch chip is used to perform the touch detection method as described above.
[0016] Fifthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.
[0017] Sixthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.
[0018] The aforementioned touch detection method, apparatus, electronic device, and computer-readable storage medium, by forming a touch node through a cross-arranged first touch signal line and second touch signal line, can detect touch operations at any touch node. Furthermore, when the electronic device is configured in underwater mode, by determining the first transmitting signal line and its corresponding first auxiliary signal line, and simultaneously providing a first auxiliary signal with a maximum potential difference exceeding a first threshold to the first auxiliary signal line while providing a first transmitting signal to the first transmitting signal line, the electric field distribution around the first transmitting signal line can be altered. This allows the electric field to be more concentrated in the detection area around the touch node, thereby increasing the impact of conductive objects such as fingers on the first received signal output by the second touch signal line, resulting in more sensitive detection of touch operations. The embodiments of this application do not require changes to the existing hardware design of the touch signal lines and touch chips, nor do they require the addition of other accessories outside the electronic device, thus enabling touch functionality in underwater scenarios and reducing hardware costs. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of the structure of an electronic device according to an embodiment;
[0021] Figure 2 This is a schematic diagram showing the arrangement of the first touch signal line and the second touch signal line in one embodiment;
[0022] Figure 3 This is a schematic diagram of the coupling mutual capacitance of one embodiment;
[0023] Figure 4 The sensor values of each touch node are shown in the example of an electronic device placed underwater.
[0024] Figure 5 This is one of the flowcharts for a touch detection method according to an embodiment;
[0025] Figure 6 The sensor values of each touch node of an electronic device are obtained when the device is placed underwater using the touch detection method of this application embodiment.
[0026] Figure 7 This is a schematic diagram of a first square wave signal and a second square wave signal according to an embodiment;
[0027] Figure 8This is a second flowchart of a touch detection method according to one embodiment;
[0028] Figure 9 This is one of the sub-flowcharts for obtaining the first touch reference value corresponding to the underwater mode in one embodiment;
[0029] Figure 10 This is a second sub-flowchart for obtaining the first touch reference value corresponding to the underwater mode in one embodiment;
[0030] Figure 11 This is the third flowchart of a touch detection method according to one embodiment;
[0031] Figure 12 A sub-flowchart for one embodiment provides a fourth transmit signal to a fourth transmit signal line among a plurality of first touch signal lines and obtains a fourth receive signal output by a second touch signal line in response to the fourth transmit signal line;
[0032] Figure 13 This is a schematic diagram of two fourth transmission signals in one embodiment;
[0033] Figure 14 This is the fourth flowchart of a touch detection method according to one embodiment;
[0034] Figure 15 This is a schematic diagram of the structure of a touch detection device according to an embodiment;
[0035] Figure 16 This is an internal structural diagram of an electronic device according to an embodiment. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0037] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first touch signal line may be referred to as a second touch signal line, and similarly, a second touch signal line may be referred to as a first touch signal line.
[0038] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. "Multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. "Several" means at least one, such as one, two, etc., unless otherwise explicitly specified.
[0039] This application provides a touch detection method that can be applied to electronic devices with touch functionality. Electronic devices include, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle systems, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc.
[0040] Figure 1 This is a schematic diagram of the structure of an electronic device according to an embodiment, with reference to... Figure 1 Taking a mobile phone as an example, the electronic device includes a touch screen display 10, a mid-frame 20, and a back cover 30 arranged sequentially along its thickness. The mid-frame 20 includes a frame body 21 and a border 22 surrounding the frame body 21. The border 22 may be a conductive border. Of course, in other embodiments, the electronic device may not have a frame body 21. The touch screen display 10, the frame body 21, and the back cover 30 are stacked sequentially, forming receiving spaces between the touch screen display 10 and the frame body 21, and between the frame body 21 and the back cover 30, to accommodate components such as the motherboard, camera module, receiver module, battery, and various sensors. One side of the border 22 surrounds the edge of the touch screen display 10, and the other side of the border 22 surrounds the edge of the back cover 30, forming the complete external structure of the electronic device.
[0041] The frame 22 includes a top edge and a bottom edge that are positioned opposite each other, and a first side edge and a second side edge connecting the top edge and the bottom edge. The top edge is the side furthest from the ground when the user holds and uses the electronic device in portrait mode, and the bottom edge is the side facing the ground when the user holds and uses the electronic device in portrait mode. The first side edge is the left side when the user holds and uses the electronic device in portrait mode. The second side edge is the right side when the user holds and uses the electronic device in portrait mode.
[0042] The electronic device in this application embodiment supports capacitive touch functionality. This capacitive touch functionality supports touch operations by a user's finger and a capacitive stylus. The electronic device includes a touch chip, which executes the touch detection method of this application embodiment. Optionally, the touch chip can be integrated with a display driver integrated circuit (DDIC) to form a touch and display driver integrated circuit (TDIC), or it can be packaged separately as two chips; this embodiment does not impose any limitations.
[0043] The electronic device includes multiple first touch signal lines and multiple second touch signal lines. Figure 2 This is a schematic diagram showing the arrangement of the first touch signal line and the second touch signal line according to an embodiment. (Refer to...) Figure 2 The first touch signal line 201 and the second touch signal line 203 are arranged intersectingly. The extension direction of the first touch signal line 201 can be a first direction, and the extension direction of the second touch signal line 203 can be a second direction. The first direction and the second direction are different; the first direction can be perpendicular to the second direction. For example, the first direction can be horizontal, and the second direction can be vertical. Another example is that the first direction is vertical, and the second direction is horizontal. Horizontal can be understood as the direction from the first side of the electronic device to the second side, and vertical can be understood as the direction from the top edge of the electronic device to the bottom edge. For ease of explanation, the following embodiments will use the example of the first direction being horizontal and the second direction being vertical.
[0044] The electronic device includes multiple first touch electrodes 202, which are spaced apart. A first touch signal line 201 can be connected to each of the multiple first touch electrodes 202. The electronic device also includes multiple second touch electrodes 204, which are spaced apart. A second touch signal line 203 can be connected to each of the multiple second touch electrodes 204. The first touch electrodes 202 and the second touch electrodes 204 are staggered and arranged alternately.
[0045] The first touch signal line 201 and the second touch signal line 203 can be made of a metal mesh. A metal mesh is a mesh structure made of metal wires or foil. Metal meshes have high transparency, thus having minimal impact on the display effect of electronic devices and not affecting the user's viewing experience. Furthermore, metal meshes possess excellent conductivity, bendability, and lightweight properties, making them suitable for electronic devices such as mobile phones that require flexibility and portability. At their intersections, the first touch signal line 201 and the second touch signal line 203 can be electrically isolated using an insulating dielectric layer such as polyimide to prevent direct contact between the first touch signal line 201 and the second touch signal line 203, which could cause a short circuit, and to provide a structural basis for the formation of mutual coupling capacitance.
[0046] The first touch electrode 202 and the second touch electrode 204 serve as plates for coupling mutual capacitance. The first touch signal line 201 and the second touch signal line 203 are intersected to form a touch node. A touch node can be understood as the coupling region of the mutual capacitance between adjacent first touch electrodes 202 and second touch electrodes 204. Therefore, when the first touch signal line 201 is used to transmit a transmitted signal, it can also be called a transmitting signal line. When the second touch signal line 203 is used to transmit a received signal, it can also be called a receiving signal line. Figure 2 This example illustrates m+1 transmit signal lines and n+1 receive signal lines, forming (m+1)×(n+1) touch nodes. It should be noted that, although... Figure 2 The first touch signal line 201, which serves as the transmitting signal line, extends horizontally, while the second touch signal line 203, which serves as the receiving signal line, extends vertically. However, in some embodiments, the transmitting signal line may extend vertically and the receiving signal line may extend horizontally; this embodiment is not limited to this. Furthermore, in some scenarios, the second touch signal line 203 may be used as the transmitting signal line, and the first touch signal line 201 may be used as the receiving signal line.
[0047] Figure 3 This is a schematic diagram of the coupling mutual capacitance of one embodiment, with reference to... Figure 3Taking a first touch signal line transmitting the transmitted signal and a second touch signal line transmitting the received signal as an example, the first touch electrode connected to the first touch signal line serves as the transmitting electrode, and the second touch electrode connected to the second touch signal line serves as the receiving electrode. When no conductive object is near the touch node, only a basic capacitance Cm exists between the first and second touch electrodes. Furthermore, a first parasitic capacitance Cboard is formed between the second touch electrode and the ground via a resistor. When a conductive object such as a finger approaches or touches the touch node to perform a touch operation, the finger forms a first sensing capacitance Cft with the first touch electrode and a second sensing capacitance Cfr with the second touch electrode. Additionally, a first parasitic capacitance Cboard is formed between the second touch electrode and the ground via a resistor, and a second parasitic capacitance Cbody is formed between the human body and the ground. Therefore, the first sensing capacitance Cft and the second sensing capacitance Cfr shunt the transmitted signal emitted by the first touch electrode, reducing the amount of signal received by the first receiving electrode, thereby enabling the detection of touch operations. Specifically, the induced current corresponding to the received signal on the second touch signal line can be converted into an induced voltage by a transimpedance amplifier, and then provided to the touch chip after being processed by filtering, demodulation, etc., so as to realize the touch chip's detection of touch operation.
[0048] However, since water is also a conductor, when an electronic device is placed underwater, even without a finger or other object near the touch point for touch operation, the first sensing capacitance Cft and the second sensing capacitance Cfr will still exist, and their capacitance values are quite close to those when a finger is near or in contact with the touch point. That is, the first sensing capacitance Cft formed by water and the first touch electrode is similar to that formed by a finger and the first touch electrode, and similarly, the second sensing capacitance Cfr formed by water and the second touch electrode is similar to that formed by a finger and the second touch electrode. Because the base capacitance Cm is relatively large, it is often difficult to distinguish whether the changes in the first sensing capacitance Cft and the second sensing capacitance Cfr are due to the influence of water on the received signal or the influence of a finger on the received signal.
[0049] Therefore, electronic devices are prone to becoming unresponsive to touch input when submerged underwater. Specifically, Figure 4 The reference is the sensing values of each touch node when an exemplary electronic device is placed underwater. Figure 4 The circled area represents the area where the user performs a touch operation. Clearly, the difference between the sensing values of each touch node in the area where the user performs a touch operation and the sensing values of each touch node in other areas is small and insufficient to determine the user's touch operation.
[0050] Figure 5 One of the flowcharts for a touch detection method according to an embodiment is shown below. Figure 5In some embodiments, the touch detection method includes steps 502 to 506.
[0051] Step 502: When the electronic device is configured in underwater mode, a first transmission signal is provided to the first transmission signal line among the plurality of first touch signal lines, and a first auxiliary signal is provided to the first auxiliary signal line among the plurality of first touch signal lines.
[0052] The electronic device can be configured into underwater mode, i.e., switching from non-underwater mode to underwater mode, when preset underwater conditions are met. These preset underwater conditions can be pre-configured before the electronic device leaves the factory or configured by the user; this embodiment does not impose any limitations. The electronic device can also be configured into underwater mode in response to a user-input underwater switching command. This embodiment does not limit the conditions under which the electronic device is configured into underwater mode.
[0053] Furthermore, there can be multiple first transmission signal lines. These multiple first transmission signal lines can be all the first touch signal lines or only a portion of them. When there are multiple first transmission signal lines, the touch chip sequentially provides the first transmission signal to each first transmission signal line according to a preset scanning order. Optionally, the preset scanning order can be from top to bottom, for example, providing the first transmission signal in the scanning order of Tx1→Tx2→Tx3→Tx4……Txm→Txm+1. The preset scanning order can also be from bottom to top, for example, providing the first transmission signal in the scanning order of Txm+1→Txm……Tx4→Tx3→Tx2→Tx1. The preset scanning order can also be from both sides to the middle, for example, providing the first transmission signal in the scanning order of Tx1→Txm+1→Tx2→Txm……. That is, when there are multiple first transmission signal lines, this embodiment does not limit the order in which the touch chip provides the first transmission signal.
[0054] The first auxiliary signal line and the first transmitting signal line are not the same first touch signal line. Specifically, one first transmitting signal line can correspond to one or more first auxiliary signal lines, and the first transmitting signal line can be arranged adjacent to or spaced apart from the corresponding first auxiliary signal line. Spaced apart means that at least one first touch signal line is provided between the first auxiliary signal line and the corresponding first transmitting signal line. For example, refer to... Figure 2 When the first touch signal line Tx1 is used as the first transmission signal line, the adjacent first touch signal line Tx2 can be selected as the first auxiliary signal line, or the spaced first touch signal line Tx3 can be selected as the first auxiliary signal line, or both the first touch signal line Tx2 and the first touch signal line Tx3 can be selected as the first auxiliary signal line at the same time.
[0055] The number of first auxiliary signal lines corresponding to different first transmit signal lines can be the same or different. For example, when the first touch signal line Tx1 is used as the first transmit signal line, the first touch signal line Tx2 is used as the first auxiliary signal line. When the first touch signal line Tx1 is used as the first transmit signal line, the first touch signal line Tx2 can be selected as the first auxiliary signal line. When the first touch signal line Tx2 is used as the first transmit signal line, both the first touch signal line Tx2 and the first touch signal line Tx3 can be selected as the first auxiliary signal lines simultaneously. When the first touch signal line Tx3 is used as the first transmit signal line, both the first touch signal line Tx2 and the first touch signal line Tx4 can be selected as the first auxiliary signal lines simultaneously.
[0056] The same first touch signal line can be time-division multiplexed into first auxiliary signal lines corresponding to different first transmit signal lines. For example, when the first touch signal line Tx1 is used as the first transmit signal line, the first touch signal line Tx2 can be used as the first auxiliary signal line. Similarly, when the first touch signal line Tx3 is used as the first transmit signal line, the first touch signal line Tx2 can also be used as the first auxiliary signal line. Furthermore, in other detection phases, the first touch signal line can also be used as a receive signal line. The maximum potential difference between the first transmit signal and the first auxiliary signal exceeds a first threshold. The first threshold can be set as needed, as long as it is greater than the amplitude of the first transmit signal.
[0057] Figure 7 This application does not limit the specific selection of the first transmitting signal line and the corresponding first auxiliary signal line, nor does it limit the specific voltages of the first transmitting signal and the first auxiliary signal, as long as the first auxiliary signal on the first auxiliary signal line can affect the electric field distribution around the first transmitting signal line. Therefore, the distance between the first auxiliary signal line and the first transmitting signal line can be set to be no greater than a preset distance threshold, which can be set according to the voltage values of the first transmitting signal and the first auxiliary signal. The larger the potential difference between the first transmitting signal and the first auxiliary signal, the larger the preset distance threshold can be set. For example, the preset distance threshold is no greater than 15mm, such as 15mm, 12mm, etc.
[0058] It is understandable that if a first auxiliary signal line for transmitting the first auxiliary signal is not provided, the electric field around the first transmitting signal line and the first touch electrode will be uniformly distributed in space under the action of the first transmitting signal. However, this embodiment, by providing a first auxiliary signal line for transmitting the first auxiliary signal and setting the maximum potential difference between the first transmitting signal and the first auxiliary signal to exceed a first threshold, can guide and change the electric field distribution. Specifically, taking the first touch signal line Tx1 as the first transmitting signal line and the first touch signal line Tx2 as the first auxiliary signal line as an example, if the instantaneous voltage of the first transmitting signal transmitted on the first touch signal line Tx1 is greater than the instantaneous voltage of the first auxiliary signal transmitted on the first touch signal line Tx2, the electric field lines will be distributed from high voltage to low voltage, with less distribution in other directions. Moreover, under the condition that other factors remain unchanged, the greater the potential difference between the first transmitting signal and the first auxiliary signal, the greater the guiding effect of the potential difference on the electric field distribution, and the more concentrated the electric field can be in the detection area around the touch node. Therefore, when the maximum potential difference between the first transmitted signal and the first auxiliary signal exceeds the first threshold, a sufficient electric field can be obtained around the touch node to improve the sensitivity of touch detection.
[0059] Step 504: Obtain the first received signal output by the second touch signal line in response to the first transmit signal and the first auxiliary signal.
[0060] Step 506: Based on the first received signal, determine the touch operation of the touch node corresponding to the first transmitted signal line and the second touch signal line.
[0061] Reference Figure 2 Because a first touch signal line intersects with multiple second touch signal lines, when a first transmit signal line transmits a first transmit signal and a corresponding first auxiliary signal line transmits a first auxiliary signal, the multiple second touch signal lines can simultaneously respond to the first transmit signal and the first auxiliary signal by outputting corresponding first receive signals to characterize the touch operation at different touch nodes. For example, taking the first touch signal line Tx1 as the first transmit signal line and the first touch signal line Tx2 as the first auxiliary signal line, the first receive signal output by the second touch signal line Rx1 is used to characterize the touch operation at the touch node formed by the intersection of the first touch signal line Tx1 and the second touch signal line Rx1. The first receive signal output by the second touch signal line Rx2 is used to characterize the touch operation at the touch node formed by the intersection of the first touch signal line Tx1 and the second touch signal line Rx2, and so on, with the first receive signal output by the second touch signal line Rxn+1 characterizing the touch operation at the touch node formed by the intersection of the first touch signal line Tx1 and the second touch signal line Rxn+1.
[0062] Figure 6The touch detection method of this application is used to obtain the sensing values of each touch node of an electronic device when it is placed underwater, in conjunction with reference to... Figure 4 and Figure 6 The circled area represents the area where the user performs a touch operation. Clearly, by employing the touch detection method of this embodiment, the sensing values of each touch node in the area where the user performs a touch operation differ significantly from the sensing values of each touch node in other areas, thereby accurately determining the user's touch operation.
[0063] In the embodiments of the application, touch nodes are formed by cross-arranged first and second touch signal lines, allowing detection of touch operations at any touch node. Furthermore, when the electronic device is configured in underwater mode, by determining the first transmitting signal line and its corresponding first auxiliary signal line, when providing a first transmitting signal to the first transmitting signal line, a first auxiliary signal with a maximum potential difference exceeding a first threshold is simultaneously provided to the first auxiliary signal line. This potential difference can guide and change the electric field distribution around the first transmitting signal line, allowing the electric field to be more concentrated in the detection area around the touch node. This enables conductive objects such as fingers to have a greater impact on the first received signal output by the second touch signal line, thereby achieving more sensitive detection of touch operations. This application embodiment achieves touch functionality in underwater scenarios without changing the existing hardware design of touch signal lines and touch chips, or adding other accessories outside the electronic device, thus reducing hardware costs.
[0064] In some embodiments, the voltage polarities of the first auxiliary signal and the first transmitted signal are opposite. Specifically, the first transmitted signal is typically a square wave signal, and correspondingly, the first auxiliary signal can also be a square wave signal. For ease of explanation, the square wave signal of the first transmitted signal will be referred to as the first square wave signal, and the square wave signal of the first auxiliary signal will be referred to as the second square wave signal. The opposite voltage polarities of the first transmitted signal and the first auxiliary signal can be understood as follows: Figure 7 The diagram shows that during the period when the first square wave signal is at a high level, the second square wave signal is at a low level. Conversely, during the period when the first square wave signal is at a low level, the second square wave signal is at a high level.
[0065] Specifically, the voltage values of the high and low levels of the first square wave signal can be set as needed. For example, the voltage value of the high level state of the first square wave signal is 5V, and the voltage value of the low level state is 0V. Alternatively, the voltage value of the high level state of the first square wave signal is 5V, and the voltage value of the low level state is 1V. The voltage values of the high and low levels of the second square wave signal can also be set as needed. For example, the voltage value of the high level state of the second square wave signal is 0V, and the voltage value of the low level state is -5V. Alternatively, the voltage value of the high level state of the second square wave signal is -1V, and the voltage value of the low level state is -5V.
[0066] The voltage value of the high-level state of the first square wave signal can be exactly opposite to the voltage value of the low-level state of the second square wave signal. For example, if the voltage value of the high-level state of the first square wave signal is 5V, the voltage value of the low-level state of the second square wave signal is -5V. Alternatively, the voltage value of the high-level state of the first square wave signal can not be exactly opposite to the voltage value of the low-level state of the second square wave signal. For example, if the voltage value of the high-level state of the first square wave signal is 5V, the voltage value of the low-level state of the second square wave signal is -4V. The voltage value of the low-level state of the first square wave signal can be the same as the voltage value of the high-level state of the second square wave signal. For example, if the voltage values of both the low-level and high-level states of the first and second square wave signals are 0V. Finally, the voltage value of the low-level state of the first square wave signal can be different from the voltage value of the high-level state of the second square wave signal. For example, if the voltage value of the low-level state of the first square wave signal is 0V, the voltage value of the high-level state of the second square wave signal is -1V.
[0067] When one first transmit signal line corresponds to multiple first auxiliary signal lines, the voltage values of the first auxiliary signals provided by the touch chip to each first auxiliary signal line can be the same or different. Taking the first touch signal line Tx1 as the first transmit signal line, and simultaneously selecting the first touch signal lines Tx2 and Tx3 as first auxiliary signal lines as an example: For one example, the first auxiliary signals received by the first touch signal lines Tx2 and Tx3 can both be square wave signals with a high-level voltage of 0V and a low-level voltage of -5V. For another example, the first auxiliary signal received by the first touch signal line Tx2 can be a square wave signal with a high-level voltage of 0V and a low-level voltage of -4V, and the first auxiliary signal received by the first touch signal line Tx3 can be a square wave signal with a high-level voltage of 0V and a low-level voltage of -5V.
[0068] For example, when a high-level positive voltage signal is transmitted on the first touch signal line Tx1 and a low-level negative voltage signal is transmitted on the first touch signal line Tx2, aligning the high-level period of the first transmitted signal with the low-level period of the first auxiliary signal can maintain the maximum potential difference between the first transmitted signal and the first auxiliary signal for a longer time window, thereby acquiring the first received signal within this longer time window and reducing the risk of missed detection of touch operation.
[0069] In some embodiments, the voltage amplitudes of the first auxiliary signal and the first transmitted signal are the same. When the amplitudes of the positive and negative voltages are exactly the same, the zero potential surface between the first auxiliary signal line and the first transmitted signal line is in the middle, and the electric field lines are strictly symmetrical, resulting in a uniform distribution of the electric field intensity. Based on this, under a uniformly distributed electric field, since the electric field gradient is consistent throughout the electric field, the disturbance to the electric field when a finger approaches is the same, thereby enabling the first received signal to respond more accurately to touch operations. This avoids problems such as dead zones caused by uneven electric field distribution; a dead zone refers to an area where the electric field is too weak to respond to touch operations. Therefore, by setting the voltage amplitudes of the first auxiliary signal and the first transmitted signal to be the same in this embodiment, the first received signal can more accurately characterize touch operations. Figure 8 This is a second flowchart of a touch detection method according to an embodiment, refer to... Figure 8 In some embodiments, the touch detection method includes steps 802 to 810. Steps 804 to 806 are as described in the previous embodiments and will not be repeated here. This embodiment further includes step 802 before the steps of providing a first transmission signal to the first transmission signal line among multiple touch signal lines and providing a first auxiliary signal to the first auxiliary signal line among multiple first touch signal lines. Furthermore, the aforementioned step of determining the touch operation of the touch node corresponding to the first transmission signal line and the second touch signal line based on the first received signal further includes steps 808 to 810 of this embodiment.
[0070] Step 802: When the electronic device is configured in underwater mode, obtain the first touch reference value corresponding to the underwater mode.
[0071] Specifically, the touch reference value can be understood as the sensing value of each touch node in the absence of touch operation. The first touch reference values of multiple touch nodes in an electronic device can be the same or different; this embodiment does not impose any limitations. By setting the touch reference value, the influence of factors such as temperature drift and electrode aging on the determination of touch operation can be reduced, thereby improving the detection accuracy of touch operation. Step 804: Provide a first transmission signal to the first transmission signal line among the multiple touch signal lines, and provide a first auxiliary signal to the first auxiliary signal line among the multiple first touch signal lines.
[0072] Step 806: Obtain the first received signal output by the second touch signal line in response to the first transmit signal and the first auxiliary signal.
[0073] Step 808: Obtain the first sensing value of the touch node corresponding to the first transmitting signal line and the second touch signal line based on the first received signal.
[0074] Specifically, when the first received signal is a first induced current, the first induced value can be a first induced voltage corresponding to the first induced current, or it can be other parameter values corresponding to the first induced current. This embodiment does not limit the specific presentation of the first induced value, as long as there is a one-to-one correspondence between the first induced value and the current value of the first induced current; that is, different current values of the first induced current correspond to different first induced values. Further, the conversion between the first received signal and the first induced value can be implemented by hardware circuitry, for example, converting the first induced current into a corresponding first induced voltage. The conversion between the first received signal and the first induced value can also be further implemented using software methods, for example, converting the first induced current into a corresponding first induced voltage, and then using software methods to convert the first induced voltage into a corresponding value as the first induced value after analog-to-digital conversion by the touch chip, and visualizing it as... Figure 6 The table shown is presented in a table format.
[0075] Step 810: Based on the comparison result between the first sensing value and the first touch reference value corresponding to the underwater mode, determine whether there is a touch operation on the touch node.
[0076] For example, the difference between a first sensing value and a first touch reference value can be obtained to eliminate the influence of factors other than touch operation on the determination of touch operation, thereby improving the detection accuracy of touch operation. Accordingly, the difference between the first sensing value and the first touch reference value can be used as a first correction sensing value; if the first correction sensing value is greater than a touch threshold, it is determined that a touch operation exists at the touch node; if the first correction sensing value is not greater than the touch threshold, it is determined that no touch operation exists at the touch node. For another example, if the first sensing value is greater than the first touch reference value, it can be determined that a touch operation exists at the touch node; if the first sensing value is not greater than the first touch reference value, it can be determined that no touch operation exists at the touch node.
[0077] Furthermore, if the difference between the first sensing value and the first touch reference value of the same touch node is greater than a preset touch threshold in multiple consecutive touch scanning cycles, it can be determined that a corresponding touch operation exists at that touch node, thereby improving the accuracy of touch operation determination. Alternatively, if the difference between the first sensing value and the first touch reference value of multiple adjacent touch nodes is greater than a preset touch threshold, it can be determined that a corresponding touch operation exists at those adjacent touch nodes, thereby eliminating the influence of single-point noise such as dust and static electricity and improving the accuracy of touch operation determination.
[0078] In some embodiments, the electronic device is configured with an underwater mode and a non-underwater mode. The first touch reference value is different from the second touch reference value corresponding to the non-underwater mode. Since the environmental factors of the electronic device in underwater mode and the non-underwater mode are different, when the electronic device is configured in underwater mode, by obtaining the first touch reference value, the influence of the water on the determination of touch operation in the underwater mode can be reduced, thereby improving the detection accuracy of touch operation.
[0079] In some embodiments, the touch detection method further includes: updating the first touch reference value based on the first sensing value when it is determined that no touch operation exists based on the first sensing value and the current first touch reference value. Specifically, the underwater environment is constantly changing, and the first touch reference value may be inaccurate. Therefore, the first touch reference value can be updated based on the first sensing value that determines that no touch operation exists to improve the accuracy of the first touch reference value. Further, the method of updating the first touch reference value includes, but is not limited to, using the first sensing value that determines that no touch operation exists as the new first touch reference value, or obtaining the average value of the first sensing value that determines that no touch operation exists and the current first touch reference value as the first touch reference value. The method of obtaining the average value includes arithmetic average, weighted average, etc., which are not limited in this embodiment.
[0080] Figure 9 This is one of the sub-flowcharts for obtaining the first touch reference value corresponding to the underwater mode in one embodiment, with reference to... Figure 9 In some embodiments, obtaining the first touch reference value corresponding to the underwater mode includes steps 902 to 906.
[0081] Step 902: Provide a second transmission signal to the second transmission signal line among the plurality of first touch signal lines, and provide a second auxiliary signal to the second auxiliary signal line among the plurality of first touch signal lines.
[0082] There can be multiple second transmission signal lines. These multiple second transmission signal lines can be all or part of the first touch signal lines. When there are multiple second transmission signal lines, the touch chip sequentially provides second transmission signals to each second transmission signal line according to a preset scanning order. Optionally, the preset scanning order can be from top to bottom, for example, providing the second transmission signals in the scanning order of Tx1→Tx2→Tx3→Tx4……Txm→Txm+1. The preset scanning order can also be from bottom to top, for example, providing the second transmission signals in the scanning order of Txm+1→Txm……Tx4→Tx3→Tx2→Tx1. The preset scanning order can also be from both sides to the middle, for example, providing the second transmission signals in the scanning order of Tx1→Txm+1→Tx2→Txm……. That is, when there are multiple second transmission signal lines, this embodiment does not limit the order in which the touch chip provides the second transmission signal.
[0083] The second auxiliary signal line and the second transmit signal line are not the same first touch signal line. Specifically, one second transmit signal line can correspond to one or more second auxiliary signal lines, and the second transmit signal line can be arranged adjacent to or spaced apart from the corresponding second auxiliary signal line. For example, when the first touch signal line Tx1 is used as the second transmit signal line, the adjacent first touch signal line Tx2 can be selected as the second auxiliary signal line, or the spaced first touch signal line Tx3 can be selected as the second auxiliary signal line, or both the first touch signal line Tx2 and the first touch signal line Tx3 can be selected as the second auxiliary signal line simultaneously.
[0084] The number of second auxiliary signal lines corresponding to different second transmit signal lines can be the same or different. For example, when the first touch signal line Tx1 is used as the second transmit signal line, the first touch signal line Tx2 is used as the second auxiliary signal line. When the first touch signal line Tx1 is used as the second transmit signal line, the first touch signal line Tx2 can be selected as the second auxiliary signal line. When the first touch signal line Tx2 is used as the second transmit signal line, both the first touch signal line Tx2 and the first touch signal line Tx3 can be selected as second auxiliary signal lines simultaneously. When the first touch signal line Tx3 is used as the second transmit signal line, both the first touch signal line Tx2 and the first touch signal line Tx4 can be selected as second auxiliary signal lines simultaneously.
[0085] The same first touch signal line can be time-division multiplexed into second auxiliary signal lines corresponding to different second transmit signal lines. For example, when the first touch signal line Tx1 is used as the second transmit signal line, the first touch signal line Tx2 can be used as the second auxiliary signal line. When the first touch signal line Tx3 is used as the second transmit signal line, the first touch signal line Tx2 can also be used as the second auxiliary signal line.
[0086] The maximum potential difference between the second transmitted signal and the second auxiliary signal exceeds a first threshold. Furthermore, the voltage polarities of the second transmitted signal and the second auxiliary signal are opposite. Specifically, the second transmitted signal is typically a square wave signal, and correspondingly, the second auxiliary signal can also be a square wave signal. For ease of explanation, the square wave signal of the second transmitted signal will be referred to as the third square wave signal, and the square wave signal of the second auxiliary signal will be referred to as the fourth square wave signal. The opposite voltage polarities of the second transmitted signal and the second auxiliary signal can be understood as follows: when the third square wave signal is at a high level, the fourth square wave signal is at a low level; and when the third square wave signal is at a low level, the fourth square wave signal is at a high level.
[0087] Specifically, the voltage values for the high and low levels of the third-party square wave signal can be set as needed. For example, the voltage value for the high level of the third-party square wave signal can be 5V, and the voltage value for the low level can be 0V. Alternatively, the voltage value for the high level can be 5V, and the voltage value for the low level can be 1V. The voltage values for the high and low levels of the fourth-party square wave signal can also be set as needed. For example, the voltage value for the high level of the fourth-party square wave signal can be 0V, and the voltage value for the low level can be -5V. Alternatively, the voltage value for the high level can be -1V, and the voltage value for the low level can be -5V.
[0088] The voltage value of the high-level state of the third square wave signal can be exactly opposite to the voltage value of the low-level state of the fourth square wave signal. For example, if the high-level voltage value of the third square wave signal is 5V, the low-level voltage value of the fourth square wave signal is -5V. The voltage value of the high-level state of the third square wave signal can also be not exactly opposite to the low-level voltage value of the fourth square wave signal. For example, if the high-level voltage value of the third square wave signal is 5V, the low-level voltage value of the fourth square wave signal is -4V. The voltage value of the low-level state of the third square wave signal can be the same as the voltage value of the high-level state of the fourth square wave signal. For example, if both the low-level voltage values of the third and fourth square wave signals are 0V. The voltage value of the low-level state of the third square wave signal can also be different from the voltage value of the high-level state of the fourth square wave signal. For example, if the low-level voltage value of the third square wave signal is 0V, the high-level voltage value of the fourth square wave signal is -1V.
[0089] When one second transmit signal line corresponds to multiple second auxiliary signal lines, the voltage values of the second auxiliary signals provided by the touch chip to each second auxiliary signal line can be the same or different. Taking the first touch signal line Tx1 as the second transmit signal line, and simultaneously selecting the first touch signal lines Tx2 and Tx3 as second auxiliary signal lines as an example: For one example, the second auxiliary signals received by the first touch signal lines Tx2 and Tx3 can both be square wave signals with a high-level voltage of 0V and a low-level voltage of -5V. For another example, the second auxiliary signal received by the first touch signal line Tx2 can be a square wave signal with a high-level voltage of 0V and a low-level voltage of -4V, and the second auxiliary signal received by the first touch signal line Tx3 can be a square wave signal with a high-level voltage of 0V and a low-level voltage of -5V.
[0090] Based on the above examples, it is understood that this application does not limit the specific selection of the second transmitting signal line and the corresponding second auxiliary signal line, nor does it limit the specific voltages of the second transmitting signal and the second auxiliary signal, as long as the second auxiliary signal on the second auxiliary signal line can affect the electric field distribution around the second transmitting signal line. Therefore, the distance between the second auxiliary signal line and the second transmitting signal line can be set to be no greater than a preset distance threshold, which can be set according to the voltage values of the second transmitting signal and the second auxiliary signal. The larger the potential difference between the second transmitting signal and the second auxiliary signal, the larger the preset distance threshold can be set. For example, the preset distance threshold can be 15mm, 12mm, etc.
[0091] It should be noted that the steps for obtaining the first touch reference value are essentially the same as those for performing touch detection. To distinguish between these steps, the transmitted signal lines are designated as the first transmitted signal line and the second transmitted signal line, and the auxiliary signal lines are designated as the first auxiliary signal line and the second auxiliary signal line. That is, the same first touch signal line can be used as the second transmitted signal line when obtaining the first touch reference value, and also as the first transmitted signal line when performing touch detection.
[0092] It is understandable that if, during the acquisition of the first touch reference value, the first touch signal line Tx2 is selected as the first auxiliary signal line when the first touch signal line Tx1 is used as the first transmit signal line, and during touch detection, the first touch signal line Tx3 is selected as the first auxiliary signal line when the first touch signal line Tx1 is used as the first transmit signal line, the acquired first touch reference value cannot accurately eliminate the influence of selecting different auxiliary signal lines. Similarly, if, during the acquisition of the first touch reference value, the first touch signal line Tx1 is used as the first transmit signal line, and a high-level voltage of 0V and a low-level voltage of -4V are provided to the first touch signal line Tx2 (as the first auxiliary signal line), and during touch detection, the first touch signal line Tx1 is used as the first transmit signal line, and a high-level voltage of 0V and a low-level voltage of -5V are provided to the first touch signal line Tx2 (as the first auxiliary signal line), the acquired first touch reference value also cannot accurately eliminate the influence of selecting different signal voltages.
[0093] Therefore, in this embodiment, when acquiring the first touch reference value and performing touch detection, the same first touch signal line is used as both the first and second transmission signal lines, and the same first auxiliary signal line and second auxiliary signal line are correspondingly set. Furthermore, the same signal transmission method can be used, that is, the voltage value of the high-level state of the first square wave signal is equal to the voltage value of the high-level state of the third square wave signal, the voltage value of the low-level state of the first square wave signal is equal to the voltage value of the low-level state of the third square wave signal, the voltage value of the high-level state of the second square wave signal is equal to the voltage value of the high-level state of the fourth square wave signal, and the voltage value of the low-level state of the second square wave signal is equal to the voltage value of the low-level state of the fourth square wave signal. Based on this, the influence of factors other than touch operation on the first touch reference value can be accurately eliminated, such as the influence of selecting different auxiliary signal lines and the influence of different signal voltages, thereby improving the detection accuracy of touch operation.
[0094] Step 904: Obtain the second receive signal output by the multiple second touch signal lines in response to the second transmit signal and the second auxiliary signal.
[0095] Step 906: Determine the first touch reference value based on the second sensing values corresponding to the multiple second received signals.
[0096] For example, if only the second received signals corresponding to a portion of the touch nodes are acquired, the average value of the second sensing values corresponding to the acquired second received signals can be used as the first touch reference value for each touch node. For instance, if only the second transmission signal is provided to the first touch signal line Tx1 (which serves as the second transmission signal line), and the second auxiliary signal is provided to the first touch signal line Tx2 (which serves as the second auxiliary signal line), and the second received signals output from n+1 second touch signal lines Rx1 to Rxn+1 are acquired respectively, then a total of n+1 second received signals can be acquired. Based on this, the average value of the n+1 second sensing values corresponding to the n+1 second received signals can be acquired, and the average value can be used as the first touch reference value for each touch node. The average value can be either an arithmetic average or a weighted average. It should be noted that this example illustrates scanning one first touch signal line per touch scan cycle, but this embodiment does not limit the number of first touch signal lines scanned per touch scan cycle; it can also be 5 lines, 10 lines, etc. This example uses the second received signals corresponding to a portion of the touch nodes to calibrate the first touch reference value of all touch nodes within the entire touch surface. This reduces the number of second received signals that need to be acquired, thereby improving the acquisition speed of the first touch reference value.
[0097] In another example, if the second received signals corresponding to all touch nodes are acquired, the first touch reference value of the touch node corresponding to the second sensing value of the acquired second received signal can be used to independently configure the first touch reference value for different touch nodes. For example, according to a preset scanning order, second transmission signals can be sequentially provided to m+1 first touch signal lines Tx1 to Txm+1, which serve as second transmission signal lines, and second auxiliary signals can be provided to the second auxiliary signal lines corresponding to each second transmission signal line. The second received signals output by n+1 second touch signal lines Rx1 to Rxn+1 can be acquired respectively, thus acquiring a total of (m+1)×(n+1) second received signals. Based on this, the first touch reference value of each touch node can be set according to the (m+1)×(n+1) second sensing values corresponding to the (m+1)×(n+1) second received signals. It is understood that the signal routing around different touch nodes is also different, and the electrical signals transmitted on the signal routing lines will also affect the second received signals. Therefore, by configuring the first touch reference value of each touch node independently in this example, the influence of location on the first touch reference value of the touch node can be reduced, thereby improving the accuracy of the first touch reference value.
[0098] In the embodiments of the application, when the electronic device is configured in underwater mode, before detecting touch operation, a second transmission signal is provided to the second transmission signal line among multiple first touch signal lines, and a second auxiliary signal is provided to the second auxiliary signal line among multiple first touch signal lines. The second received signals output by the multiple second touch signal lines in response to the second transmission signal and the second auxiliary signal are then acquired, thereby instantly obtaining the first touch reference value corresponding to the current water environment. It is understood that different water environments can have different effects on the electric field distribution. Therefore, in different water environments, a user performing the same touch operation on the same touch node may generate different first sensing values. Compared to the method of preset underwater mode touch reference values, this embodiment, based on the instantly acquired first touch reference value, can more accurately eliminate the influence of different water environments when using the first touch reference value and the first sensing value, thereby improving the accuracy of touch operation detection.
[0099] Figure 10 This is a second sub-flowchart for obtaining the first touch reference value corresponding to the underwater mode in one embodiment, referencing... Figure 10 In some embodiments, obtaining the first touch reference value corresponding to the underwater mode includes steps 1002 to 1006.
[0100] Step 1002: Perform multiple second receiving signal acquisition steps to acquire multiple second receiving signals; the second receiving signal acquisition step includes providing a second transmitting signal to a second transmitting signal line among multiple first touch signal lines, and providing a second auxiliary signal to a second auxiliary signal line among multiple first touch signal lines; acquiring the second receiving signal output by the second touch signal line in response to the second transmitting signal and the second auxiliary signal.
[0101] The steps for acquiring the second received signal can be referred to... Figure 9 Steps 902 to 904 of the embodiment are implemented and will not be described again here. Specifically, this embodiment can set multiple touch scanning cycles, and in each touch scanning cycle, the second receiving signal acquisition step is executed once. The multiple touch scanning cycles can be set consecutively, and the number of multiple touch scanning cycles is, for example, 2, 5, 10, 20, 30, etc.
[0102] Step 1004: Based on the multiple second received signals obtained by performing the multiple second received signal acquisition steps, obtain the corresponding multiple second sensing values.
[0103] Step 1006: Determine the first touch reference value of the touch node based on multiple second sensing values of the same touch node.
[0104] Specifically, taking the aforementioned step of acquiring the second received signal twice, and acquiring the second received signal corresponding to all touch nodes in each touch scanning cycle as an example, a total of 2×(m+1)×(n+1) second sensing values can be acquired, that is, each touch node corresponds to two second sensing values. Based on this, the two second sensing values of the same touch node can be compared or averaged to reduce the problem of deviation or anomaly of the first touch reference value caused by factors such as data fluctuations. For example, if the two second sensing values of the same touch node are relatively close, the average of the two second sensing values can be obtained as the first touch reference value of that touch node. If the two second sensing values of the same touch node are not close, the step of acquiring the second received signal can be executed again, thereby improving the accuracy of the first touch reference value of that touch node. Optionally, the similarity of data can be evaluated based on statistical parameters such as the variance of multiple second sensing values corresponding to the same touch node.
[0105] In some embodiments, determining a first touch reference value for a touch node based on multiple second sensing values of the same touch node includes: determining the smallest of the multiple second sensing values as the first touch reference value for the touch node. It is understood that during the second signal acquisition step, the user may perform a touch operation on the electronic device, resulting in an abnormal second received signal corresponding to the touch node at the touch operation location. Since touch operation increases the sensing value, a larger second sensing value is more likely to be a second sensing value affected by the user's touch operation. Therefore, selecting the smallest of the multiple second sensing values as the first touch reference value for the touch node reduces the problem of an artificially high first touch sensing value caused by the influence of touch operation on the second sensing value, thereby improving the accuracy of the first touch reference value.
[0106] In some embodiments, determining a first touch reference value for a touch node based on multiple second sensing values of the same touch node includes: determining the average of the multiple second sensing values as the first touch reference value for the touch node. It is understood that even if there is no user touch operation on the electronic device during the second signal acquisition step, fluctuations in the second sensing values may occur due to testing errors. Therefore, determining the average of the multiple second sensing values as the first touch reference value for the touch node improves the accuracy of the first touch reference value.
[0107] Furthermore, the variance of the first sensing value of multiple second sensing values for the same touch node can be obtained. Based on this variance, it can be determined whether there is abnormal data caused by a user's touch operation on the electronic device. Specifically, if the variance of the first sensing value of a touch node is greater than the error variance corresponding to the test error, it can be considered that a user has touched the touch node. Abnormal values resulting from the touch operation that lead to a large second sensing value are eliminated, and the average of one or more of the smallest second sensing values is determined as the first touch reference value for that touch node. If the variance of the first sensing value of a touch node is not greater than the error variance corresponding to the test error, the average of the multiple second sensing values can be determined as the first touch reference value for that touch node.
[0108] In some embodiments, if a second received signal acquisition step is performed, it can be determined whether there is abnormal data caused by a user's touch operation on the electronic device based on the second sensing value variance corresponding to each touch node acquired in this step. Specifically, if the second sensing value variance of multiple touch nodes within the touch surface is greater than the error variance corresponding to the test error, it can be considered that a user has performed a touch operation on the electronic device. Abnormal values with large second sensing values caused by touch operations are eliminated, and the average of one or more of the smallest second sensing values among the multiple second sensing values is determined as the first touch reference value of each touch node within the touch surface. If the second sensing value variance of multiple touch nodes within the touch surface is not greater than the error variance corresponding to the test error, the average of the multiple second sensing values can be determined as the first touch reference value of each touch node within the touch surface.
[0109] Figure 11 This is a flowchart of a touch detection method according to an embodiment, referred to as the third one. Figure 11 In some embodiments, the touch detection method includes steps 1102 to 1110. Steps 1102 to 1104 can be referred to in the previous embodiments and will not be repeated here. This embodiment also includes steps 1106 to 1108, whereby the aforementioned steps of determining the touch operation of the touch node corresponding to the first transmitted signal line and the second touch signal line based on the first received signal can further include step 1110 of this embodiment.
[0110] Step 1102: When the electronic device is configured in underwater mode, a first transmission signal is provided to the first transmission signal line among the plurality of first touch signal lines, and a first auxiliary signal is provided to the first auxiliary signal line among the plurality of first touch signal lines.
[0111] The first auxiliary signal line and the first transmitting signal line are not the same first touch signal line, and the voltage polarities of the first transmitting signal and the first auxiliary signal are opposite.
[0112] Step 1104: Obtain the first received signal output by the second touch signal line in response to the first transmit signal and the first auxiliary signal.
[0113] Step 1106: When the electronic device is configured in underwater mode, a third transmission signal is provided to the third transmission signal line among the plurality of second touch signal lines, and a third auxiliary signal is provided to the third auxiliary signal line among the plurality of second touch signal lines.
[0114] There can be multiple third transmission signal lines. These multiple third transmission signal lines can represent all or part of the second touch signal lines. When there are multiple third transmission signal lines, the touch chip sequentially provides the third transmission signals to each third transmission signal line according to a preset scanning order. Optionally, the preset scanning order can be from top to bottom, for example, providing the third transmission signals in the scanning order of Rx1→Rx2→Rx3→Rx4……Rxn→Rxn+1. The preset scanning order can also be from bottom to top, for example, providing the third transmission signals in the scanning order of Rxn+1→Rxn……Rx4→Rx3→Rx2→Rx1. The preset scanning order can also be from both sides to the middle, for example, providing the third transmission signals in the scanning order of Rx1→Rxn+1→Rx2→Rxn……. That is, when there are multiple third transmission signal lines, this embodiment does not limit the order in which the touch chip provides the third transmission signal.
[0115] The third auxiliary signal line and the third transmit signal line are not the same second touch signal line. Specifically, one third transmit signal line can correspond to one or more third auxiliary signal lines, and the third transmit signal line can be arranged adjacent to or spaced apart from the corresponding third auxiliary signal line. For example, when the second touch signal line Rx1 is used as the third transmit signal line, the adjacent second touch signal line Rx2 can be selected as the third auxiliary signal line, or the spaced-apart second touch signal line Rx3 can be selected as the third auxiliary signal line, or both second touch signal lines Rx2 and Rx3 can be selected as the third auxiliary signal line simultaneously.
[0116] The number of third auxiliary signal lines corresponding to different third transmit signal lines can be the same or different. For example, when the second touch signal line Rx1 is used as the third transmit signal line, the second touch signal line Rx2 is used as the third auxiliary signal line. When the second touch signal line Rx1 is used as the third transmit signal line, the second touch signal line Rx2 can be selected as the third auxiliary signal line. When the second touch signal line Rx2 is used as the third transmit signal line, both the second touch signal line Rx2 and the second touch signal line Rx3 can be selected as third auxiliary signal lines simultaneously. When the second touch signal line Rx3 is used as the third transmit signal line, both the second touch signal line Rx2 and the second touch signal line Rx4 can be selected as third auxiliary signal lines simultaneously.
[0117] The same second touch signal line can be time-division multiplexed into third auxiliary signal lines corresponding to different third transmit signal lines. For example, when the second touch signal line Rx1 is used as the third transmit signal line, the second touch signal line Rx2 can be used as the third auxiliary signal line. When the second touch signal line Rx3 is used as the third transmit signal line, the second touch signal line Rx2 can also be used as the third auxiliary signal line.
[0118] The maximum potential difference between the third transmitted signal and the third auxiliary signal exceeds a second threshold. Specifically, the second threshold can be greater than or less than the first threshold; this embodiment does not limit this. For example, if the distance between the first touch signal line and the first auxiliary signal line is greater than the distance between the third touch signal line and the third auxiliary signal line, then the first threshold can be set to be greater than the second threshold. That is, the threshold of the maximum potential difference is positively correlated with the distance between the signal lines.
[0119] Furthermore, the voltage polarities of the third transmitted signal and the third auxiliary signal are opposite. Specifically, the third transmitted signal is usually a square wave signal, and correspondingly, the third auxiliary signal can also be a square wave signal. For ease of explanation, the square wave signal of the third transmitted signal will be referred to as the third square wave signal, and the square wave signal of the third auxiliary signal will be referred to as the fourth square wave signal. The opposite voltage polarities of the third transmitted signal and the third auxiliary signal can be understood as follows: when the third square wave signal is at a high level, the fourth square wave signal is at a low level; and when the third square wave signal is at a low level, the fourth square wave signal is at a high level.
[0120] Specifically, the voltage values for the high and low levels of the third-party square wave signal can be set as needed. For example, the voltage value for the high level of the third-party square wave signal can be 5V, and the voltage value for the low level can be 0V. Alternatively, the voltage value for the high level can be 5V, and the voltage value for the low level can be 1V. The voltage values for the high and low levels of the fourth-party square wave signal can also be set as needed. For example, the voltage value for the high level of the fourth-party square wave signal can be 0V, and the voltage value for the low level can be -5V. Alternatively, the voltage value for the high level can be -1V, and the voltage value for the low level can be -5V.
[0121] The voltage value of the high-level state of the third square wave signal can be exactly opposite to the voltage value of the low-level state of the fourth square wave signal. For example, if the high-level voltage value of the third square wave signal is 5V, the low-level voltage value of the fourth square wave signal is -5V. The voltage value of the high-level state of the third square wave signal can also be not exactly opposite to the low-level voltage value of the fourth square wave signal. For example, if the high-level voltage value of the third square wave signal is 5V, the low-level voltage value of the fourth square wave signal is -4V. The voltage value of the low-level state of the third square wave signal can be the same as the voltage value of the high-level state of the fourth square wave signal. For example, if both the low-level voltage values of the third and fourth square wave signals are 0V. The voltage value of the low-level state of the third square wave signal can also be different from the voltage value of the high-level state of the fourth square wave signal. For example, if the low-level voltage value of the third square wave signal is 0V, the high-level voltage value of the fourth square wave signal is -1V.
[0122] When one third transmit signal line corresponds to multiple third auxiliary signal lines, the voltage values of the third auxiliary signals provided by the touch chip to each third auxiliary signal line can be the same or different. Taking the second touch signal line Rx1 as the third transmit signal line, and simultaneously selecting the second touch signal line Rx2 and the second touch signal line Rx3 as the third auxiliary signal lines as an example: For one example, the third auxiliary signals received by the second touch signal line Rx2 and the second touch signal line Rx3 can both be square wave signals with a high-level voltage of 0V and a low-level voltage of -5V. For another example, the third auxiliary signal received by the second touch signal line Rx2 can be a square wave signal with a high-level voltage of 0V and a low-level voltage of -4V, and the third auxiliary signal received by the second touch signal line Rx3 can be a square wave signal with a high-level voltage of 0V and a low-level voltage of -5V.
[0123] For example, when a high-level positive voltage signal is transmitted on the second touch signal line Rx1 and a low-level negative voltage signal is transmitted on the second touch signal line Rx2, aligning the high-level period of the third transmit signal with the low-level period of the third auxiliary signal can maintain the maximum potential difference between the third transmit signal and the third auxiliary signal for a longer time window, thereby acquiring the third receive signal within this longer time window and reducing the risk of missed detection of touch operation.
[0124] In some embodiments, the voltage amplitudes of the third auxiliary signal and the third transmitted signal are the same. When the amplitudes of the positive and negative voltages are exactly the same, the zero potential surface between the third auxiliary signal line and the third transmitted signal line is in the exact middle, and the electric field lines are strictly symmetrical, resulting in a uniform distribution of the electric field intensity. Based on this, under a uniformly distributed electric field, since the electric field gradient is consistent throughout the electric field, the disturbance to the electric field when a finger approaches is the same, thereby enabling the third received signal to respond more accurately to touch operations. This avoids problems such as dead zones caused by uneven electric field distribution; a dead zone refers to an area where the electric field is too weak to respond to touch operations. Therefore, by setting the voltage amplitudes of the third auxiliary signal and the third transmitted signal to be the same in this embodiment, the third received signal can more accurately characterize touch operations.
[0125] Based on the above examples, it is understood that this application does not limit the specific selection of the third transmitting signal line and the corresponding third auxiliary signal line, nor does it limit the specific voltages of the third transmitting signal and the third auxiliary signal, as long as the third auxiliary signal on the third auxiliary signal line can affect the electric field distribution around the third transmitting signal line. Therefore, the distance between the third auxiliary signal line and the third transmitting signal line can be set to be no greater than a preset distance threshold, which can be set according to the voltage values of the third transmitting signal and the third auxiliary signal. The larger the potential difference between the third transmitting signal and the third auxiliary signal, the larger the preset distance threshold can be set. For example, the preset distance threshold can be 15nn, 12nn, etc.
[0126] Step 1108: Obtain the third receive signal output by the first touch signal line in response to the third transmit signal and the third auxiliary signal.
[0127] Step 1110: Determine the touch operation of the touch node based on the first and third received signals of the same touch node.
[0128] Specifically, a first sensing value corresponding to a first received signal and a third sensing value corresponding to a third received signal can be obtained, and the touch operation of the touch node can be determined based on the first and third sensing values of the same touch node. When the third received signal is a third induced current, the third sensing value can be a third induced voltage corresponding to the third induced current, or it can be other parameter values corresponding to the third induced current. This embodiment does not limit the specific presentation of the third sensing value, as long as there is a one-to-one correspondence between the third sensing value and the current value of the third induced current; that is, different current values of the third induced current correspond to different third sensing values. Further, the conversion between the third received signal and the third sensing value can be implemented through hardware circuitry, for example, converting the third induced current into a corresponding third induced voltage. The conversion between the third received signal and the third sensing value can also be further implemented using software methods, for example, converting the third induced current into a corresponding third induced voltage, and then using software methods to convert the third induced voltage into a corresponding value as the third sensing value after analog-to-digital conversion by the touch chip, and visualizing it. Figure 6 The table shown is presented in a table format.
[0129] The average of the first sensing value and the third sensing value can be used as the comprehensive sensing value of the touch node, and the touch operation of the touch node can be determined based on the comprehensive sensing value and the first touch reference value.
[0130] In the embodiments of the application, since the accuracy of the water body in detecting touch operation is reduced to a certain extent in underwater mode, this embodiment obtains a first sensing value by transmitting a first touch signal line and receiving a second touch signal line, and obtains a third sensing value by transmitting a second touch signal line and receiving a first touch signal line. The first sensing value and the third sensing value are combined to determine the touch operation, thereby improving the accuracy of touch operation detection.
[0131] In some embodiments, the touch detection method further includes: when the electronic device is configured in a non-underwater mode, providing a fourth transmission signal to a fourth transmission signal line among a plurality of first touch signal lines, and acquiring a fourth reception signal output by a second touch signal line in response to the fourth transmission signal line. When the fourth reception signal satisfies preset underwater conditions, the electronic device is configured in underwater mode.
[0132] There can be multiple fourth transmission signal lines. These multiple fourth transmission signal lines can represent all or part of the first touch signal lines. The fourth transmission signal is typically a square wave signal; for ease of explanation, this square wave signal will be referred to as the fifth square wave signal below. Specifically, the voltage values of the high and low levels of the fifth square wave signal can be set as needed. For example, the high-level voltage value of the fifth square wave signal can be 5V, and the low-level voltage value can be 0V. Another example is a high-level voltage value of 5V and a low-level voltage value of 1V.
[0133] It is understandable that when water causes changes in the fourth sensor signal, the changes are usually uniform over a large area, while touch operations typically cause changes at a single or multiple points within a small area. Therefore, the distribution of the fourth sensor signal can distinguish between the effects of water and touch operations, thereby enabling automatic switching from non-underwater mode to underwater mode and reducing the amount of user intervention required.
[0134] Furthermore, the voltage value of the high-level state of the fifth square wave signal is lower than the voltage value of the high-level state of the first square wave signal. That is, the voltage value of the high-level state of the fifth square wave signal in the non-underwater mode is lower, which can reduce the power consumption of touch detection. However, the voltage value of the high-level state of the first square wave signal in the underwater mode is higher, which can increase the potential difference between the first transmitting signal line and its corresponding first auxiliary signal line, enhance the electric field distribution, and thus improve the sensitivity of the underwater mode. Therefore, this embodiment uses different voltage values in different scenarios to better balance the power consumption and sensitivity of touch detection.
[0135] Figure 12 A sub-flowchart for one embodiment provides a fourth transmit signal to a fourth transmit signal line among a plurality of first touch signal lines, and obtains a fourth receive signal output by a second touch signal line in response to the fourth transmit signal line, refer to Figure 12 In some embodiments, the above steps include steps 1202 to 1204.
[0136] Step 1202: Sequentially provide a fourth transmission signal to the fourth transmission signal line among the plurality of first touch signal lines, and respectively acquire the fourth receive signal output by the plurality of second touch signal lines in response to the fourth transmission signal line when the fourth transmission signal is provided to each of the fourth transmission signal lines.
[0137] Specifically, the preset scanning order can be one first touch signal line scanned within each time period. The preset scanning order can be from top to bottom, for example, providing the fourth transmission signal in the scanning order Tx1→Tx2→Tx3→Tx4……Txm→Txm+1. The preset scanning order can also be from bottom to top, for example, providing the fourth transmission signal in the scanning order Txm+1→Txm……Tx4→Tx3→Tx2→Tx1. The preset scanning order can also be from both sides to the middle, for example, providing the fourth transmission signal in the scanning order Tx1→Txm+1→Tx2→Txm……. That is, when there are multiple fourth transmission signal lines, this embodiment does not limit the order in which the touch chip provides the fourth transmission signal.
[0138] Furthermore, the preset scanning order can also be to scan multiple first touch signal lines within each time period. These multiple first touch signal lines can be two, three, or other similar lines. Taking multiple first touch signal lines including two as an example, the phases of the fourth transmission signals provided by the touch chip to the two first touch signal lines are different, meaning the high-level periods of the two fourth transmission signals are different. Further, such as... Figure 13 As shown, the high-level states of the two fourth transmit signals can be staggered. Based on this, after the second touch signal line acquires the fourth receive signal, the touch chip can perform timing separation on the fourth receive signal output from the fourth transmit signal line according to the phase of the two fourth transmit signals, thereby acquiring the fourth receive sub-signal actually corresponding to each first touch signal line, and based on the fourth receive sub-signal, the fourth sensing value of the corresponding touch node can be obtained.
[0139] Step 1204: Obtain the fourth sensing value of the touch node corresponding to the fourth transmitting signal line and the second touch signal line based on the fourth received signal.
[0140] Step 1206: When the difference between the fourth sensing value corresponding to multiple adjacent touch nodes and the second touch reference value is greater than a preset difference range, and the number of multiple adjacent touch nodes with differences greater than the preset difference range is greater than the node number threshold, the electronic device is configured to underwater mode.
[0141] Specifically, the preset difference range can be determined based on the error fluctuation range of the fourth sensing value. Correspondingly, if the difference between the fourth sensing value corresponding to each touch node and the second touch reference value is greater than the preset difference range, it indicates that the touch node with a difference greater than the preset difference range is necessarily placed in water or is being touched. Therefore, the continuity and area of touch nodes with differences greater than the preset difference range can be further combined to distinguish whether the electronic device is currently placed in water or is being touched. The node number threshold can be 1 / 2, 1 / 3, 1 / 4, etc., of the total number of touch nodes within the touch surface. These proportions can be determined based on the number of touch nodes that a user can simultaneously touch during normal touch operations. For example, if the electronic device includes 16 first touch signal lines and 18 second touch signal lines, it can generate 288 touch nodes within the touch surface, and the node number threshold can be set to 144, 96, 72, etc.
[0142] In some embodiments, the touch detection method further includes: obtaining a fourth sensing value of the touch node corresponding to the fourth transmitting signal line and the second touch signal line based on the fourth received signal; and determining whether there is a touch operation at the touch node based on the comparison result of the fourth sensing value and the second touch reference value corresponding to the non-underwater mode.
[0143] For example, the difference between the fourth sensing value and the second touch reference value can be obtained to eliminate the influence of factors other than touch operation on the determination of touch operation, thereby improving the detection accuracy of touch operation. Accordingly, the difference between the fourth sensing value and the second touch reference value can be obtained as the second correction sensing value; if the second correction sensing value is greater than the touch threshold, it is determined that a touch operation exists at the touch node; if the second correction sensing value is not greater than the touch threshold, it is determined that no touch operation exists at the touch node. For another example, if the fourth sensing value is greater than the second touch reference value, it can be determined that a touch operation exists at the touch node; if the fourth sensing value is not greater than the second touch reference value, it can be determined that no touch operation exists at the touch node.
[0144] In some embodiments, before providing a first transmission signal to a first transmission signal line among a plurality of first touch signal lines and providing a first auxiliary signal to a first auxiliary signal line among a plurality of first touch signal lines, the touch detection method further includes: obtaining the difference between a fourth sensing value corresponding to a plurality of touch nodes and a second touch reference value; and determining the number of first auxiliary signal lines based on at least one difference greater than a preset difference range.
[0145] The difference is related to the water conductivity in the underwater mode. Specifically, the capacitance is affected by factors including relative permittivity, relative area, and distance. Under the same relative area and distance, a larger relative permittivity results in a larger capacitance. Different water bodies have different relative permittivity; for example, the relative permittivity of freshwater is approximately 80, while that of seawater is approximately 60-70, and the higher the salinity of seawater, the lower the relative permittivity. Therefore, the first sensing capacitance Cft and the second sensing capacitance Cfr change with the water conductivity, thus affecting the fourth sensing value. Accordingly, the water conductivity can be obtained inversely based on the fourth sensing value. Furthermore, the water conductivity affects the electric field distribution. Therefore, in this embodiment, determining the number of first auxiliary signal lines based on the fourth sensing value ensures that the electric field distribution and intensity around the first transmitting signal line meet the requirements, guaranteeing the quality of touch detection and avoiding excessive power consumption caused by too many first auxiliary signal lines. For example, the number of first auxiliary signal lines is positively correlated with the difference.
[0146] In some embodiments, before providing a first transmission signal to a first transmission signal line among a plurality of first touch signal lines and providing a first auxiliary signal to a first auxiliary signal line among a plurality of first touch signal lines, the touch detection method further includes: acquiring the difference between a fourth sensing value corresponding to a plurality of touch nodes and a second touch reference value; associating the difference with the water conductivity of an underwater mode; determining a target potential difference between the first auxiliary signal and the first transmission signal based on at least one difference greater than a preset difference range; and determining a first positive voltage amplitude of the first transmission signal and a first negative voltage amplitude of the first auxiliary signal based on the target potential difference. The difference between the first positive voltage amplitude and the first negative voltage amplitude is the target potential difference.
[0147] The difference is related to the water conductivity in the underwater mode. Specifically, the capacitance is affected by factors including relative permittivity, relative area, and distance. Under the same relative area and distance, a larger relative permittivity results in a larger capacitance. Different water bodies have different relative permittivity; for example, the relative permittivity of freshwater is approximately 80, while that of seawater is approximately 60-70, and the higher the salinity of seawater, the lower the relative permittivity. Therefore, the first sensing capacitance Cft and the second sensing capacitance Cfr change with the water conductivity, thus affecting the fourth sensing value. Accordingly, the water conductivity can be obtained inversely based on the fourth sensing value. Furthermore, the water conductivity affects the electric field distribution. Therefore, in this embodiment, the target potential difference is determined based on the fourth sensing value, and then the first positive voltage amplitude and the first negative voltage amplitude are determined. This ensures that the electric field distribution and intensity around the first transmitting signal line meet the requirements, thereby ensuring the quality of touch detection. For example, the target potential difference is positively correlated with the difference.
[0148] In some embodiments, the touch detection method further includes: configuring the electronic device to underwater mode when the electronic device is configured in non-underwater mode and an underwater switching command input by the user is received.
[0149] The electronic device can receive underwater switching commands input by the user through an interactive interface or physical buttons. The interactive interface can include underwater switching control controls, which the user can touch to activate underwater mode. Physical buttons include, but are not limited to, at least one of a volume up button, a volume down button, or a power button. The user inputs the underwater switching command by clicking the physical button, and the user's actions on the physical button include, but are not limited to, single clicks, double clicks, and triple clicks. It should be noted that the above-described underwater switching commands are for illustrative purposes only and are not intended to limit the scope of protection of this embodiment. Other underwater switching commands can be used to trigger the electronic device to switch to underwater mode, and this embodiment is not limited to any particular command.
[0150] In some embodiments, the electronic device is configured with multiple touch scan cycles. Figure 14 This is a flowchart of a touch detection method according to an embodiment, referred to as the fourth one. Figure 14 The touch detection method includes steps 1402 to 1406. Step 1402 of this embodiment includes providing a first transmit signal to a first transmit signal line among a plurality of first touch signal lines and providing a first auxiliary signal to a first auxiliary signal line among a plurality of first touch signal lines. Step 1404 of this embodiment includes obtaining a first receive signal output by a second touch signal line in response to the first transmit signal and the first auxiliary signal.
[0151] Step 1402: When the electronic device is configured in underwater mode, in one touch scanning cycle, a first transmission signal is sequentially provided to each of the first touch signal lines, and a first auxiliary signal is provided to the corresponding adjacent first auxiliary signal lines.
[0152] Step 1404: Obtain the first received signal output by each of the second touch signal lines in response to the first transmit signal and the first auxiliary signal.
[0153] Step 1406: Based on each first received signal, detect the touch operation of each touch node corresponding to the first transmitted signal line and the second touch signal line in the touch scanning cycle.
[0154] In the embodiments of the application, by setting multiple touch scanning cycles, real-time detection of touch operations can be achieved. Moreover, in each touch scanning cycle, the touch operations of all touch nodes within the touch surface during that cycle are acquired, which can effectively avoid missing some touch operations and achieve complete and comprehensive touch detection.
[0155] In some embodiments, the electronic device further includes a display chip, and display scan signal lines and display data signal lines connected to the display chip. The electronic device is also configured with multiple display scan cycles. During a display scan cycle, the display chip provides display scan signals to the display scan signal lines and display data signals to the display data signal lines. The timing of the display chip providing the display scan signals and display data signals is staggered from the timing of the touch signal providing the first transmission signal and the first auxiliary signal.
[0156] Specifically, due to the dense wiring in electronic devices, the display scan signal lines, display data signal lines, first touch signal lines, and second touch signal lines are arranged densely, with small distances between different signal lines. Therefore, signals between different signal lines may interfere with each other. For example, the duration of the display scan cycle and the touch scan cycle can be set accordingly based on different reporting rates. For instance, the display scan signal on the display scan signal line can affect the first transmit signal and the first auxiliary signal on the first touch signal line, and the display data signal on the display data signal line can affect the first receive signal on the second touch signal line. This embodiment sets the timing of the display chip providing the display scan signal and display data signal to be staggered from the timing of the touch signal providing the first transmit signal and the first auxiliary signal, that is, the timing of the display scan cycle and the touch scan cycle are staggered. This ensures that different signal lines do not transmit the display scan signal and the first transmit signal simultaneously, nor do they transmit the display data signal and the first receive signal simultaneously, thereby avoiding interference between different signals, improving the signal-to-noise ratio (SNR) of touch-related signals such as the first transmit signal, the first auxiliary signal, and the first receive signal, and thus improving the accuracy of touch detection. Furthermore, if the refresh rate of the electronic device display is 120Hz, then the total duration of one cycle is 8.3ms, and the sum of the display scan cycle and the touch scan cycle should be less than or equal to 8.3ms. If the refresh rate of the electronic device display is 240Hz, then the total duration of one cycle is 4.17ms, and the sum of the display scan cycle and the touch scan cycle should be less than or equal to 4.17ms. Optionally, when the electronic device includes a touch chip and a display driver chip, the touch chip and the display driver chip can be synchronized in timing through physically connected GPIO ports, thereby achieving a staggered timing between the display scan cycle and the touch scan cycle.
[0157] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0158] Based on the same inventive concept, this application also provides a touch detection device for implementing the touch detection method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more touch detection device embodiments provided below can be found in the limitations of the touch detection method described above, and will not be repeated here.
[0159] This application also provides a touch detection device for use with a touch chip in an electronic device. The electronic device also includes multiple first touch signal lines and multiple second touch signal lines connected to the touch chip. The first touch signal lines and the second touch signal lines are arranged to intersect to form a touch node. Figure 15 This is a schematic diagram of the structure of a touch detection device according to an embodiment, with reference to... Figure 15 The touch detection device includes a signal transmitting module, a signal receiving module, and a detection module.
[0160] The signal transmitting module is used to provide a first transmitting signal to one of a plurality of first touch signal lines and a first auxiliary signal to one of a plurality of first touch signal lines when the electronic device is configured in underwater mode; the maximum potential difference between the first transmitting signal and the first auxiliary signal exceeds a first threshold. The signal receiving module is used to acquire a first received signal output by the second touch signal line in response to the first transmitting signal and the first auxiliary signal. The detection module is used to determine the touch operation of the touch node corresponding to the first transmitting signal line and the second touch signal line based on the first received signal.
[0161] In one embodiment, the first auxiliary signal line is arranged adjacent to the corresponding first transmit signal line.
[0162] In one embodiment, at least one first touch signal line is provided between the first auxiliary signal line and the corresponding first transmission signal line.
[0163] In one embodiment, the voltage polarities of the first auxiliary signal and the first transmitted signal are opposite.
[0164] In one embodiment, the voltage amplitudes of the first auxiliary signal and the first transmitted signal are the same.
[0165] In one embodiment, the touch detection device further includes a reference value acquisition module. The reference value acquisition module is used to acquire a first touch reference value corresponding to the underwater mode. The detection module is used to acquire a first sensing value of the touch node corresponding to the first transmitted signal line and the second touch signal line based on the first received signal; and to determine the touch operation of the touch node based on the comparison result between the first sensing value and the first touch reference value corresponding to the underwater mode.
[0166] In one embodiment, the electronic device is configured with an underwater mode and a non-underwater mode, and the first touch reference value is different from the second touch reference value corresponding to the non-underwater mode.
[0167] In some embodiments, the touch detection device further includes a reference value calibration module. The reference value calibration module is used to update the first touch reference value based on the first sensing value when it is determined that no touch operation exists based on the first sensing value and the current first touch reference value.
[0168] In some embodiments, the detection module is used to obtain the difference between the first sensing value and the first touch reference value as the first correction sensing value; if the first correction sensing value is greater than the touch threshold, it is determined that there is a touch operation at the touch node; if the first correction sensing value is not greater than the touch threshold, it is determined that there is no touch operation at the touch node.
[0169] In one embodiment, the reference value acquisition module is used to provide a second transmission signal to a second transmission signal line among a plurality of first touch signal lines, and to provide a second auxiliary signal to a second auxiliary signal line among a plurality of first touch signal lines; the maximum potential difference between the second transmission signal and the second auxiliary signal exceeds a first threshold; acquire a second receive signal output by a plurality of second touch signal lines in response to the second transmission signal and the second auxiliary signal; and determine a first touch reference value based on a second sensing value corresponding to a plurality of second receive signals.
[0170] In one embodiment, the reference value acquisition module is used to perform multiple acquisition steps of second received signals to acquire multiple second received signals; the acquisition steps of second received signals include providing a second transmitted signal to a second transmitted signal line among multiple first touch signal lines, and providing a second auxiliary signal to a second auxiliary signal line among multiple first touch signal lines; acquiring a second received signal output by the second touch signal line in response to the second transmitted signal and the second auxiliary signal; acquiring multiple corresponding second sensing values based on the multiple second received signals acquired according to the multiple acquisition steps of second received signals; and determining a first touch reference value of the touch node based on the multiple second sensing values of the same touch node.
[0171] In one embodiment, the reference value acquisition module is used to determine the average of one or more of the smallest second sensing values among a plurality of second sensing values as the first touch reference value of the touch node.
[0172] In one embodiment, the signal transmitting module is further configured to provide a third transmitting signal to a third transmitting signal line among a plurality of second touch signal lines, and to provide a third auxiliary signal to a third auxiliary signal line among a plurality of second touch signal lines, when the electronic device is configured in underwater mode; the maximum potential difference between the third transmitting signal and the third auxiliary signal exceeds a second threshold. The signal receiving module is further configured to acquire a third receiving signal output by the first touch signal line in response to the third transmitting signal and the third auxiliary signal. The detection module is further configured to acquire a first sensing value corresponding to the first receiving signal, and acquire a third sensing value corresponding to the third receiving signal; and detect touch operations of the touch node based on the first and third receiving signals of the same touch node.
[0173] In one embodiment, the signal transmitting module is further configured to provide a fourth transmitting signal to a fourth transmitting signal line among a plurality of first touch signal lines when the electronic device is configured in a non-underwater mode. The signal receiving module is further configured to acquire a fourth receiving signal output by a second touch signal line in response to the fourth transmitting signal line. The touch detection device also includes a mode switching module, which is configured to configure the electronic device in underwater mode when the fourth receiving signal meets preset underwater conditions.
[0174] In one embodiment, the signal transmitting module is further configured to sequentially provide a fourth transmitting signal to the fourth transmitting signal line among the plurality of first touch signal lines. The signal receiving module is configured to acquire, respectively, the fourth receiving signal output by the plurality of second touch signal lines in response to the fourth transmitting signal line when the fourth transmitting signal is provided to each of the fourth transmitting signal lines. The mode switching module is configured to acquire the fourth sensing value of the touch node corresponding to the fourth transmitting signal line and the second touch signal line according to the fourth receiving signal; and configure the electronic device to underwater mode when the difference between the fourth sensing value corresponding to a plurality of adjacent touch nodes and the second touch reference value is greater than a preset difference range, and the number of the plurality of adjacent touch nodes with differences greater than the preset difference range is greater than a node number threshold.
[0175] In one embodiment, the detection module is also used to determine whether there is a touch operation on the touch node based on the comparison result of the fourth sensing value and the second touch reference value corresponding to the non-underwater mode.
[0176] In one embodiment, the touch detection device further includes a signal line quantity determination module. The signal line quantity determination module is used to obtain the difference between a fourth sensing value corresponding to multiple touch nodes and a second touch reference value; the difference is correlated with the water conductivity in an underwater mode; and the quantity of a first auxiliary signal line is determined based on at least one difference greater than a preset difference range.
[0177] In one embodiment, the touch detection device further includes a voltage determination module. The voltage determination module is used to acquire the difference between a fourth sensing value corresponding to multiple touch nodes and a second touch reference value; the difference is correlated with the water conductivity in an underwater mode; a target potential difference between a first auxiliary signal and a first transmitted signal is determined based on at least one difference greater than a preset difference range; a first positive voltage amplitude of the first transmitted signal and a first negative voltage amplitude of the first auxiliary signal are determined based on the target potential difference; the difference between the first positive voltage amplitude and the first negative voltage amplitude is the target potential difference.
[0178] In one embodiment, the touch detection device further includes a mode switching module, which is used to configure the electronic device to underwater mode when the electronic device is configured to non-underwater mode and receives an underwater switching command input by the user.
[0179] In one embodiment, the electronic device is configured with multiple touch scanning cycles. A signal transmitting module is configured to sequentially provide a first transmitted signal to each of the first touch signal lines and a first auxiliary signal to the corresponding adjacent first auxiliary signal lines within one touch scanning cycle. A signal receiving module is configured to acquire the first received signal output by each of the second touch signal lines in response to the first transmitted signal and the first auxiliary signal, respectively, to detect touch operations of each touch node within the touch scanning cycle.
[0180] In one embodiment, the electronic device further includes a display chip, and display scan signal lines and display data signal lines connected to the display chip. The electronic device is also configured with multiple display scan cycles. The display chip is used to provide display scan signals to the display scan signal lines and display data signals to the display data signal lines during the display scan cycles. The timing of the display chip providing the display scan signals and display data signals is staggered from the timing of the touch signal providing the first transmission signal and the first auxiliary signal.
[0181] Each module in the aforementioned touch detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.
[0182] This application also provides an electronic device, including multiple first touch signal lines, multiple second touch signal lines, multiple display scan signal lines, multiple display data signal lines, a touch chip, and a display chip. The multiple first touch signal lines and multiple second touch signal lines are arranged intersectingly to form touch nodes. The touch chip is connected to both the first and second touch signal lines, and is used to execute the touch detection method described above. The display chip is connected to both the display scan signal lines and the display data signal lines. Further, the electronic device may include a touch panel, in which multiple first touch signal lines and multiple second touch signal lines are disposed. The touch panel may further integrate display functionality; a touch panel integrating display functionality may be referred to as a touch display panel.
[0183] In one embodiment, an electronic device is provided, which may be a terminal. Figure 16 This is an internal structural diagram of an electronic device according to an embodiment, with reference to... Figure 16The electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a touch detection method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.
[0184] Those skilled in the art will understand that Figure 16 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0185] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of a touch detection method.
[0186] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform a touch detection method.
[0187] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0188] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0189] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A touch detection method, characterized in that, A touch chip is used in an electronic device, the electronic device further comprising multiple first touch signal lines and multiple second touch signal lines connected to the touch chip, wherein the first touch signal lines and the second touch signal lines are arranged to intersect to form a touch node, and the touch detection method includes: When the electronic device is configured in underwater mode, a first transmission signal is provided to the first transmission signal line of the plurality of first touch signal lines, and a first auxiliary signal is provided to the first auxiliary signal line of the plurality of first touch signal lines; the maximum potential difference between the first transmission signal and the first auxiliary signal exceeds a first threshold. Obtain the first received signal output by the second touch signal line in response to the first transmitted signal and the first auxiliary signal; Based on the first received signal, the touch operation of the touch node corresponding to the first transmitted signal line and the second touch signal line is determined.
2. The touch detection method according to claim 1, characterized in that, The distance between the first auxiliary signal line and the corresponding first transmission signal line is no more than 15mm.
3. The touch detection method according to claim 1, characterized in that, The first auxiliary signal line is arranged adjacent to the corresponding first transmit signal line; or At least one first touch signal line is provided between the first auxiliary signal line and the corresponding first transmission signal line.
4. The touch detection method according to claim 1, characterized in that, The voltage polarities of the first auxiliary signal and the first transmitted signal are opposite.
5. The touch detection method according to claim 4, characterized in that, The voltage amplitudes of the first auxiliary signal and the first transmitted signal are the same.
6. The touch detection method according to claim 1, characterized in that, Before providing a first transmission signal to a first transmission signal line among a plurality of touch signal lines, and providing a first auxiliary signal to a first auxiliary signal line among a plurality of first touch signal lines, the method further includes: Obtain the first touch reference value corresponding to the underwater mode; The step of determining the touch operation of the touch node corresponding to the first transmitted signal line and the second touch signal line based on the first received signal includes: The first sensing value of the touch node corresponding to the first transmitting signal line and the second touch signal line is obtained based on the first received signal. Based on the comparison result between the first sensing value and the first touch reference value corresponding to the underwater mode, it is determined whether the touch node has a touch operation.
7. The touch detection method according to claim 6, characterized in that, The electronic device is configured with an underwater mode and a non-underwater mode, and the first touch reference value is different from the second touch reference value corresponding to the non-underwater mode.
8. The touch detection method according to claim 7, characterized in that, Also includes: If it is determined that there is no touch operation based on the first sensing value and the current first touch reference value, the first touch reference value is updated according to the first sensing value.
9. The touch detection method according to claim 7, characterized in that, The step of determining whether a touch operation exists on the touch node based on the comparison result between the first sensing value and the first touch reference value corresponding to the underwater mode includes: The difference between the first sensing value and the first touch reference value is obtained as the first correction sensing value; If the first correction sensing value is greater than the touch threshold, it is determined that the touch node has a touch operation. If the first correction sensing value is not greater than the touch threshold, it is determined that there is no touch operation at the touch node.
10. The touch detection method according to claim 6, characterized in that, The step of obtaining the first touch reference value corresponding to the underwater mode includes: A second transmission signal is provided to a second transmission signal line among a plurality of first touch signal lines, and a second auxiliary signal is provided to a second auxiliary signal line among a plurality of first touch signal lines; the maximum potential difference between the second transmission signal and the second auxiliary signal exceeds the first threshold; Acquire a second received signal output by a plurality of the second touch signal lines in response to the second transmit signal and the second auxiliary signal; The first touch reference value is determined based on the second sensing values corresponding to the multiple second received signals.
11. The touch detection method according to claim 10, characterized in that, The step of obtaining the first touch reference value corresponding to the underwater mode includes: The process involves performing multiple acquisition steps for the second received signal to acquire multiple second received signals. The acquisition steps for the second received signal include providing a second transmitted signal to one of the multiple first touch signal lines and providing a second auxiliary signal to one of the multiple first touch signal lines; and acquiring a second received signal output by the second touch signal line in response to the second transmitted signal and the second auxiliary signal. Based on the multiple second received signals obtained by performing the second received signal acquisition steps multiple times, obtain the corresponding multiple second sensing values; The first touch reference value of the touch node is obtained based on multiple second sensing values of the same touch node.
12. The touch detection method according to claim 11, characterized in that, The step of obtaining the first touch reference value of the touch node based on multiple second sensing values of the same touch node includes: The average of one or more of the smallest second sensing values among a plurality of second sensing values is determined as the first touch reference value of the touch node.
13. The touch detection method according to any one of claims 1 to 12, characterized in that, Also includes: When the electronic device is configured in underwater mode, a third transmission signal is provided to the third transmission signal line among the plurality of second touch signal lines, and a third auxiliary signal is provided to the third auxiliary signal line among the plurality of second touch signal lines; the maximum potential difference between the third transmission signal and the third auxiliary signal exceeds a second threshold. Obtain the third received signal output by the first touch signal line in response to the third transmit signal and the third auxiliary signal; The step of detecting the touch operation of the touch node corresponding to the first transmitted signal line and the second touch signal line based on the first received signal includes: The touch operation of the touch node is determined based on the first received signal and the third received signal of the same touch node.
14. The touch detection method according to any one of claims 1 to 12, characterized in that, Also includes: When the electronic device is configured in non-underwater mode, a fourth transmit signal is provided to the fourth transmit signal line among the plurality of first touch signal lines, and a fourth receive signal is obtained from the second touch signal line in response to the fourth transmit signal line. If the fourth received signal meets the preset underwater conditions, the electronic device is configured to underwater mode.
15. The touch detection method according to claim 14, characterized in that, The step of providing a fourth transmit signal to a fourth transmit signal line among a plurality of first touch signal lines, and acquiring a fourth receive signal output by the second touch signal line in response to the fourth transmit signal line, includes: A fourth transmission signal is sequentially provided to the fourth transmission signal line among the plurality of first touch signal lines, and a fourth receive signal is obtained by the plurality of second touch signal lines in response to the fourth transmission signal line when the fourth transmission signal is provided to each of the fourth transmission signal lines; The step of configuring the electronic device into underwater mode when the fourth received signal meets preset underwater conditions includes: The fourth sensing value of the touch node corresponding to the fourth transmitting signal line and the second touch signal line is obtained based on the fourth received signal; If the difference between the fourth sensing value corresponding to multiple adjacent touch nodes and the second touch reference value is greater than a preset difference range, and the number of multiple adjacent touch nodes with differences greater than the preset difference range is greater than a node number threshold, the electronic device is configured to underwater mode.
16. The touch detection method according to claim 14, characterized in that, Also includes: The fourth sensing value of the touch node corresponding to the fourth transmitting signal line and the second touch signal line is obtained based on the fourth received signal; Based on the comparison result between the fourth sensing value and the second touch reference value corresponding to the non-underwater mode, it is determined whether the touch node has a touch operation.
17. The touch detection method according to claim 14, characterized in that, Before providing the first transmission signal to the first transmission signal line among the plurality of first touch signal lines, and providing the first auxiliary signal to the first auxiliary signal line among the plurality of first touch signal lines, the method further includes: The difference between the fourth sensing value corresponding to multiple touch nodes and the second touch reference value is obtained; the difference is related to the water conductivity of the underwater mode. The number of the first auxiliary signal lines is determined based on at least one difference that is greater than a preset difference range.
18. The touch detection method according to claim 14, characterized in that, Before providing the first transmission signal to the first transmission signal line among the plurality of first touch signal lines, and providing the first auxiliary signal to the first auxiliary signal line among the plurality of first touch signal lines, the method further includes: The difference between the fourth sensing value corresponding to multiple touch nodes and the second touch reference value is obtained; the difference is related to the water conductivity of the underwater mode. The target potential difference between the first auxiliary signal and the first transmitted signal is determined based on at least one difference value greater than a preset difference range; The first positive voltage amplitude of the first transmitted signal and the first negative voltage amplitude of the first auxiliary signal are determined based on the target potential difference; the difference between the first positive voltage amplitude and the first negative voltage amplitude is the target potential difference.
19. The touch detection method according to any one of claims 1 to 12, characterized in that, Also includes: When the electronic device is configured in non-underwater mode and receives an underwater switching command input by the user, the electronic device is configured in underwater mode.
20. The touch detection method according to claim 1, characterized in that, The electronic device is configured with multiple touch scanning cycles, and the provision of a first transmission signal to a first transmission signal line among multiple first touch signal lines, and the provision of a first auxiliary signal to a first auxiliary signal line among multiple first touch signal lines, includes: In one of the touch scanning cycles, the first transmission signal is sequentially provided to each of the first touch signal lines, and the first auxiliary signal is provided to the corresponding adjacent first auxiliary signal lines; Acquiring the first received signal output by the second touch signal line in response to the first transmitted signal and the first auxiliary signal includes: The first received signal output by each of the second touch signal lines in response to the first transmit signal and the first auxiliary signal is acquired respectively, so as to detect the touch operation of each touch node in the touch scan frame.
21. The touch detection method according to claim 20, characterized in that, The electronic device further includes a display chip, and display scan signal lines and display data signal lines connected to the display chip. The electronic device is also configured with multiple display scan cycles. The display chip is used to provide display scan signals to the display scan signal lines and provide display data signals to the display data signal lines during the display scan cycles. The timing of the display chip providing the display scan signal and the display data signal is staggered from the timing of the touch signal providing the first transmission signal and the first auxiliary signal.
22. A touch detection device, characterized in that, A touch chip used in an electronic device, the electronic device further comprising multiple first touch signal lines and multiple second touch signal lines connected to the touch chip, wherein the first touch signal lines and the second touch signal lines are arranged to intersect to form touch nodes, and the touch detection device comprises: A signal transmitting module is configured to provide a first transmitting signal to a first transmitting signal line among a plurality of first touch signal lines when the electronic device is configured in underwater mode, and to provide a first auxiliary signal to a first auxiliary signal line among a plurality of first touch signal lines; the maximum potential difference between the first transmitting signal and the first auxiliary signal exceeds a first threshold. The signal receiving module is used to acquire the first received signal output by the second touch signal line in response to the first transmitted signal and the first auxiliary signal; The detection module is used to determine the touch operation of the touch node corresponding to the first transmitted signal line and the second touch signal line based on the first received signal.
23. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the computer program is executed by the processor, the processor performs the steps of the touch detection method as described in any one of claims 1 to 21.
24. An electronic device, characterized in that, include: Multiple first touch signal lines and multiple second touch signal lines are provided, with the first touch signal lines and the second touch signal lines intersecting to form a touch node; Multiple display scan signal lines and multiple display data signal lines; A touch chip is connected to the first touch signal line and the second touch signal line respectively, and the touch chip is used to perform the touch detection method as described in any one of claims 1 to 13; The display chip is connected to the display scan signal line and the display data signal line, respectively.
25. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 21.
26. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 21.