Touch device and method for touch device
By employing a dual-threshold scheme and a capacitance reference value calibration compensation process, the stability issues caused by voltage ripple and noise interference in touch devices are resolved, thereby improving the stability of touch devices and the user experience.
Patent Information
- Application Number
- CN202611416891.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-17
AI Technical Summary
In existing touch devices, voltage ripple generated by the display driver circuit interferes with the signal acquisition of the touch module, resulting in decreased touch stability, increased noise environment changes and user interaction complexity, and problems such as touch jump points and trajectory drift.
A dual-threshold scheme is used to identify the state of the touch device, and the capacitance reference value is dynamically adjusted through a capacitance reference value calibration and compensation process to reduce the probability of false alarms, including the identification of the full-screen lift-off abnormal state and the active compensation of the capacitance reference value.
It improves the stability of touch devices and the user interaction experience, reduces the probability of touch jumps, and enhances reliability and accuracy in complex environments.
Smart Images

Figure CN123114306A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of touch technology, and more specifically to a touch device, a method for using a touch device, a computer-readable storage medium, and a computer program product. Background Technology
[0002] With the continuous development of touch technology, touch devices have become important equipment for enhancing human-computer interaction. Currently, touch screens in touch devices generally employ a physical structure where touch modules and display modules are layered and stacked together. However, due to the inherent physical effects of this structure, the ripple voltage generated by the display driving circuit in the display module during operation is easily conducted to the touch module, thus interfering with its signal acquisition. Furthermore, long-term changes in the noise environment of the touch device and the complex interactive behaviors of users in actual operation can also affect the touch module, causing abnormalities in the capacitance reference value used for touch detection. These interferences and abnormalities manifest as touch screen jumps, trajectory drift, or missed touches, reducing the touch stability of the touch device and the user's interactive experience. Summary of the Invention
[0003] One aspect of this disclosure provides a method for a touch device, the method comprising: acquiring a capacitance sample value of each of a plurality of touch detection nodes of the touch device; determining a difference between a capacitance reference value and the capacitance sample value of each touch detection node; determining that the touch device is in a no-touch state in response to the fact that the difference of each touch detection node does not exceed a first threshold; determining that the touch device is in a full-screen lift-off abnormal state in response to the fact that the difference of a first group of touch detection nodes in the plurality of touch detection nodes exceeds the first threshold and the difference of each touch detection node does not exceed a second threshold, wherein the second threshold is greater than the first threshold; and determining that the touch device is in a touch-enabled state in response to the fact that the difference of a second group of touch detection nodes in the plurality of touch detection nodes exceeds the second threshold.
[0004] Optionally, the method further includes triggering a capacitance reference value compensation process for compensating the capacitance reference value in response to the touch device being continuously determined to be in the full-screen lift-off abnormal state for the first time.
[0005] Optionally, the method further includes triggering a capacitance reference value compensation process for compensating the capacitance reference value in response to the touch device being continuously determined to be in the no-touch state or the touch state reaching a second number.
[0006] Optionally, the method further includes triggering a capacitance reference value compensation process to compensate the capacitance reference value in response to the temperature of the touch device exceeding a temperature threshold.
[0007] Optionally, the base capacitance value is dynamically updated by performing a capacitance reference value calibration process, which updates the capacitance reference value based on the capacitance sampling value of each touch detection node acquired when the touch device is in a no-touch state.
[0008] Optionally, the method further includes performing the capacitance reference calibration process in response to detecting a wake-up behavior for the touch device while the touch device is in a low-power mode.
[0009] Optionally, the method further includes determining a statistic associated with the capacitance sample value of each touch detection node; and determining that the touch device is in the full-screen lift-off abnormal state in response to the statistic exceeding a statistic threshold.
[0010] Optionally, the statistic is the variance or standard deviation of the capacitance sample value of each touch detection node.
[0011] Optionally, the capacitance reference value compensation process includes reducing the capacitance reference value in response to the capacitance reference value exceeding the maximum value of the capacitance reference value range.
[0012] Optionally, reducing the capacitance reference value includes: gradually reducing the capacitance reference value in fixed steps; after each reduction of the capacitance reference value, waiting for a preset number of frames, re-determining the difference between each touch detection node based on the reduced capacitance reference value and the capacitance sampling value of each touch detection node; and stopping the reduction of the capacitance reference value in response to the fact that the re-determined difference between each touch detection node does not exceed the first threshold.
[0013] Optionally, reducing the capacitance reference value includes: adjusting the capacitance reference value to a pre-stored historical healthy capacitance reference value in one go, wherein the historical healthy capacitance reference value is within the range of the capacitance reference value.
[0014] Optionally, the capacitance reference calibration process is performed during the time period between when the display driving circuit of the touch device completes scanning of the current frame and before scanning of the next frame begins.
[0015] Optionally, the method further includes performing a reset operation in response to determining that the difference between the existence of a third group of touch detection nodes among the plurality of touch detection nodes exceeds a third threshold, and that the ratio of the number of the third group of touch detection nodes to the number of the plurality of touch detection nodes exceeds a ratio threshold, wherein the third threshold is greater than the second threshold.
[0016] Another aspect of this disclosure provides a touch device comprising: at least one memory having computer-readable instructions stored thereon; and at least one processor configured to execute the computer-readable instructions to cause the touch device to perform the method as described in any of the preceding claims.
[0017] Another aspect of this disclosure provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor of a touch device, cause the touch device to perform the method as described in the preceding claim.
[0018] Another aspect of this disclosure provides a computer program product having computer-readable instructions that, when executed by a processor, cause the processor to perform the method as described in any of the preceding claims.
[0019] The touch device and method for the touch device according to embodiments of this disclosure employ a dual-threshold scheme to classify the state of the touch device into a no-touch state, a full-screen lift-off abnormal state, and a touch-enabled state, which helps to identify anomalies in the capacitance reference value Base used for touch detection of the touch device. This allows for further active compensation of the capacitance reference value Base by taking appropriate measures to reduce the probability of touch jumps. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. The accompanying drawings in the following description are merely exemplary embodiments of this disclosure.
[0021] Figure 1 A schematic structure of a touch screen in a touch device according to an embodiment of the present disclosure is shown; Figure 2 A schematic flowchart of a method for a touch device according to an embodiment of the present disclosure is shown; Figure 3 An example of a method for a touch device according to an embodiment of the present disclosure is shown; Figure 4 Another schematic flowchart of a method for a touch device according to an embodiment of the present disclosure is shown; Figure 5 A schematic flowchart illustrating the capacitance reference value compensation process according to an embodiment of the present disclosure is shown. Figure 6 Another schematic flowchart of the capacitance reference value compensation process according to an embodiment of the present disclosure is shown; Figure 7 Another schematic flowchart of a method for a touch device according to an embodiment of the present disclosure is shown; Figure 8 The timing diagram corresponding to step S710 is shown; and Figure 9 A schematic block diagram of a touch device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0022] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0023] Figure 1 A schematic structure of a touch screen in a touch device according to an embodiment of the present disclosure is shown.
[0024] refer to Figure 1 According to an embodiment of this disclosure, the touch screen of the touch device 10 adopts a structure in which a touch module 11 and a display module 12 are stacked in layers and bonded together. The touch module 11 mainly includes an outermost glass cover plate 111 and a touch sensor array 112 arranged below the glass cover plate 111. The display module 12 mainly includes a display panel 121 and a display driving circuit 122. In addition, optically transparent adhesive 13 can be used to bond the touch module 11 and the display module 12 together.
[0025] To facilitate understanding of this disclosure, the principle of touch detection will be introduced first.
[0026] The touch sensor array 112 can be a crisscrossing conductive line etched onto the glass cover plate 111 using a transparent conductive material (e.g., indium tin oxide). The horizontal lines are called driving electrodes, and the vertical lines are called sensing electrodes. Touch detection nodes (also called capacitance nodes) are formed at each intersection of the driving electrodes and sensing electrodes. The touch device 10 includes a touch integrated circuit (touch IC). When the touch device 10 is operating, the touch IC can scan all touch detection nodes at high speed, that is, send excitation signals to each driving electrode row by row or column by column and receive sensing signals from each sensing electrode. The sensing signal can be an analog signal acquired from the sensing electrode, which is then converted into a digital signal by the touch IC. This digital signal contains a capacitance sample value δ reflecting the capacitance of the corresponding touch detection node.
[0027] The capacitance sample value δ acquired when there is no touch can reflect the baseline capacitance value of the corresponding touch detection node, the magnitude of which depends on the inherent structure of the touch screen and the noise environment in which the touch device operates. The baseline capacitance values of each touch detection node acquired when the touch device 10 is manufactured or first powered on can be used to determine the initial capacitance reference value Base for touch detection of the touch device 10. Since the noise environment of the touch device 10 is dynamically changing, in order to adapt the capacitance reference value Base to the latest noise environment in which the touch device operates, the touch IC can perform a capacitance reference value calibration process to dynamically update the capacitance reference value Base. For example, the capacitance sample value of each touch detection node is reacquired when there is no touch, and the capacitance reference value Base is updated accordingly.
[0028] When a human finger approaches or touches the glass cover 111, the finger causes a transfer of some of the charge that would normally be transferred between the driving electrode and the sensing electrode, resulting in a change in the capacitance of the corresponding touch detection node. Therefore, the capacitance sample value δ acquired during a touch reflects the sum of the base capacitance value of the corresponding touch detection node and the capacitance change caused by the touch. Based on this, the touch IC can determine whether a touch has occurred at the corresponding touch detection node based on the difference between the capacitance reference value Base and the capacitance sample value δ.
[0029] In some implementations, a single threshold scheme is used: for a specific touch detection node, when the difference between the capacitance reference value Base and the capacitance sample value δ exceeds a set threshold, it is determined that there is a touch; when the difference between the capacitance reference value Base and the capacitance sample value δ does not exceed the set threshold, it is determined that there is no touch.
[0030] However, the single-threshold scheme has the following problems. According to the aforementioned touch detection principle, maintaining an accurate capacitance reference value Base and obtaining an accurate capacitance sample value δ are prerequisites for making accurate touch detection decisions. However, on the one hand, it is limited by… Figure 1The layered stacked physical structure shown indicates that voltage ripple generated by the display driving circuit 122 during operation can easily be conducted to the touch sensor array 112, thereby interfering with the accuracy of the capacitance sampling value δ, and this interference cannot be eliminated at the hardware level. On the other hand, there are also aggravating factors in the actual operation of the touch device 10. For example, the continuous operation of the touch device 10 leads to the cumulative effect of environmental noise; physical compression due to assembly stress, shell deformation, or thermal expansion and contraction of materials changes the base capacitance value of the touch detection node; complex interactive behaviors of users in actual operation (e.g., large-area touch behavior) cause drastic changes in the capacitance load of the entire touch screen, etc. These aggravating factors and interference caused by voltage ripple may cause the capacitance reference value Base maintained by the touch IC to rise abnormally. When Base rises abnormally and / or the capacitance sampling value δ is not accurate enough, the touch detection judgment made by the single threshold scheme is prone to error (e.g., the abnormal rise in Base causes the difference between Base and the capacitance sampling value δ to be detected to be greater than the set threshold when there is no actual touch), which in turn causes touch jump problem, affecting the user's touch interaction experience and the quality reputation of the touch device 10.
[0031] The method for touch devices proposed in this disclosure can at least improve the above problems.
[0032] Figure 2 A schematic flowchart of a method for a touch device according to an embodiment of the present disclosure is shown.
[0033] refer to Figure 2 The method 200 for a touch device according to embodiments of the present disclosure includes at least steps S210 to S260, and optionally may also include step S270.
[0034] In step S210, the touch IC can acquire the capacitance sample value δ of each of the multiple touch detection nodes in the touch device 10. As mentioned above, the touch IC can scan all touch detection nodes in real time at high speed, that is, send excitation signals to the driving electrodes of each touch detection node row by row or column by column, and convert the sensing signals received from the sensing electrodes of each touch detection node into the corresponding capacitance sample value δ.
[0035] In step S220, the touch IC can determine the difference d between the current capacitance reference value Base and the capacitance sample value δ of each touch detection node. As mentioned earlier, the capacitance reference value Base can be dynamically updated and maintained by the touch IC through a capacitance reference value calibration process. Therefore, the difference d is the difference between the latest capacitance reference value Base and the capacitance sample value δ of the corresponding touch detection node acquired in real time.
[0036] In step S230, the touch IC can compare the difference between each touch detection node with a first threshold T1 and a second threshold T2. The first threshold T1, also referred to in this disclosure as the full-screen lift-off abnormality detection threshold, can be preset. Optionally, the first threshold T1 can be determined based on the maximum value of the difference d between the capacitance reference value Base and the capacitance sample value δ of each touch detection node when the touch device 10 is in a no-touch state, as actually measured. The second threshold T2, also referred to in this disclosure as the touch detection threshold, can be preset. Optionally, the second threshold T2 can be determined based on the minimum value of the difference d between the capacitance reference value Base and the capacitance sample value δ of each touch detection node when the touch device 10 is touched, as actually measured. Furthermore, the second threshold T2 is greater than the first threshold T1.
[0037] If the comparison result of step S230 shows that the difference d of each touch detection node does not exceed the first threshold T1, then method 200 proceeds to step S240 to determine that the touch device 10 is in a no-touch state.
[0038] If the comparison result of step S230 shows that the difference d of the first group of touch detection nodes exceeds the first threshold T1, but the difference d of each touch detection node does not exceed the second threshold T2, then method 200 proceeds to step S250 to determine that the touch device 10 is in a full-screen lift-off abnormal state.
[0039] If the comparison result of step S230 shows that the difference d between the second group of touch detection nodes among the multiple touch detection nodes exceeds the second threshold T2, then method 200 proceeds to step S260 to determine that the touch device 10 is in a touch state. The touch occurs at the second group of touch detection nodes. The second group of touch detection nodes may have the same or different touch detection nodes as the first group of touch detection nodes.
[0040] Unlike the aforementioned single-threshold scheme, the method 200 proposed in this disclosure uses a dual-threshold scheme to divide the state of the touch device 100 into a no-touch state, a full-screen lift-off abnormal state, and a touch-on state. The full-screen lift-off abnormal state can be considered an abnormal state caused by an abnormal increase in the capacitance reference value Base. Identifying this abnormal state helps to recognize the anomaly of the capacitance reference value Base, and then, by taking appropriate measures to actively compensate for the capacitance reference value Base, the probability of touch jumps can be reduced.
[0041] In one example, the first threshold T1 is 200, and the second threshold T2 is 350. When there is no actual touch, the difference d ranges from 0 to 50. However, due to an abnormal increase in the capacitance reference value Base, the difference d is raised to between 200 and 350 even without touch. At this point, although the difference d has not yet exceeded the second threshold T2, and the touch IC will not falsely report a touch, the risk of false alarms has significantly increased. If the capacitance reference value Base is not compensated in time, false alarms will inevitably occur over time.
[0042] Therefore, the method 200 for a touch device according to the present disclosure sets a full-screen lift-off abnormality detection threshold (i.e., a first threshold T1) independent of the touch detection threshold (i.e., a second threshold T2), which enables timely identification of abnormal increases in the capacitance reference value Base, thereby helping to reduce the probability of false alarms.
[0043] Optionally, the method 200 for a touch device according to embodiments of the present disclosure may further include performing step S270 after step S220.
[0044] In step S270, the touch IC can determine a statistic associated with the capacitance sample value δ of each touch detection node and determine whether the statistic exceeds a preset statistic threshold. This statistic can be the variance or standard deviation of the capacitance sample value δ of each touch detection node, or other statistics that reflect the severity of fluctuations in the capacitance sample value δ. For example, when water droplets or sweat fall on the glass cover 111, when the user uses unhealthy interaction methods (such as large-area touches or forceful pressing) on the glass cover 111, or when foreign objects such as keys or coins are placed on the glass cover 111, the capacitance distribution of each touch detection node may be extremely uneven, causing the variance or standard deviation of the capacitance sample value δ of each touch detection node to spike frequently. Figure 1 As shown, when the statistic does not exceed the statistic threshold, step S270 can be repeated. Conversely, when the statistic exceeds the statistic threshold, it can be determined that the touch device 10 is in a full-screen lift abnormal state.
[0045] As mentioned earlier, one of the purposes of determining the full-screen lift-off abnormal state is to identify anomalies in the capacitance reference value Base. Step S270, as an additional identification method for the full-screen lift-off abnormal state, does not rely on the base capacitance value Base itself, but only identifies the base capacitance value Base based on the degree of fluctuation of the capacitance sampling value δ of each touch detection node, which helps to improve the accuracy of full-screen lift-off abnormal state identification.
[0046] Figure 3 An example of a method for a touch device according to an embodiment of the present disclosure is shown.
[0047] refer to Figure 3In one example, the driving electrodes and sensing electrodes of the touch sensor array 112 of the touch device 10 form a total of 100 touch detection nodes. On one hand, the touch IC can perform a capacitance reference value calibration process according to any current capacitance reference value calibration rule to dynamically update the capacitance reference value Base. On the other hand, the touch IC scans each touch detection node according to a preset touch sampling frequency (such as 1 time / frame, 2 times / frame, etc.). After each scan, it can acquire 100 capacitance sampling values corresponding to these 100 touch detection nodes, namely δ1, δ2, δ3, δ4, ..., δ100. Then, the touch IC can calculate the difference d between the latest capacitance reference value Base and these 100 capacitance sampling values, namely d1=Base-δ1, d2=Base-δ2, d3=Base-δ3, d4=Base-δ4, ..., d100=Base-δ100. Furthermore, the touch IC can also calculate the statistics (such as standard deviation or variance) of these 100 differences d. If the statistics of differences d1 to d100 exceed a statistical threshold, or if some or all of d1 to d100 exceed the first threshold T1 but none of d1 to d100 exceed the second threshold T2, then the touch device 10 is determined to be in a full-screen lift-off abnormal state. Otherwise, if none of d1 to d100 exceed the first threshold T1, then the touch device 10 is determined to be in a no-touch state; if some or all of d1 to d100 exceed the second threshold T2, then the touch IC can determine that the touch device 10 is in a touch-enabled state.
[0048] The preceding description of identifying the full-screen lift-off anomaly helps to identify anomalies in the capacitance reference value Base, thereby enabling appropriate measures to proactively compensate for the capacitance reference value Base. The following describes a capacitance reference value compensation process further proposed in this disclosure for proactively compensating for this capacitance reference value Base.
[0049] It should be noted that the capacitance reference value compensation process and the aforementioned capacitance reference value calibration process are independent of each other. The capacitance reference value calibration process is a routine maintenance process for the capacitance reference value Base, focusing on the baseline capacitance value of the touch device 10. The capacitance reference value compensation process is a temporary recovery process for the capacitance reference value Base, focusing on interference caused by voltage ripple generated by the display driver circuit 122 and abnormal increases in the baseline capacitance value caused by the aforementioned aggravating factors. The capacitance reference value Base obtained by performing the capacitance reference value compensation process can cover the capacitance reference value Base obtained by performing the capacitance reference value calibration process. The following will combine... Figure 4 , Figure 5 and Figure 6 Describe the capacitor reference value compensation process.
[0050] Figure 4Another schematic flowchart of a method for a touch device according to an embodiment of the present disclosure is shown.
[0051] refer to Figure 4 In addition to steps S210 to S270, the method 200 for a touch device may also include steps S410 and S420, and optionally may also include step S430. Step S410 may be performed after steps S240, S250 or S260, and step S430 may be performed independently of step S410.
[0052] In step S410, the touch IC can determine whether either of the following two conditions has been met: the touch device 10 has been continuously identified as being in a full-screen lift-off abnormal state for the first time, or the touch device 10 has been continuously identified as being in a non-full-screen lift-off abnormal state (i.e., no touch state or touch state) for the second time. If either of these two conditions is met, the touch IC can send a message to the main control CPU of the touch device 10 requesting the triggering of the capacitance reference value compensation process. After receiving the message, the main control CPU can execute step S420, that is, execute the capacitance reference value compensation process. It should be understood that the "first time" and "second time" mentioned here can also be equivalent to the corresponding duration or frame count. For example, if the first time is 43,200 times, and the touch IC's touch scanning frequency is 1 time / frame and the frame rate is 24 frames / second, then the first time is equivalent to 43,200 frames or 30 minutes.
[0053] Optionally, the touch device 10 may further include a temperature sensor for monitoring the temperature value of the touch device 10, which can report the collected temperature value of the touch device 10 to the main control CPU in real time. Therefore, the main control CPU can execute step S430 to determine whether the temperature value of the touch device 10 exceeds a preset temperature threshold, and when it is determined that the temperature value of the touch device 10 exceeds the temperature threshold, actively execute the capacitance reference value compensation process.
[0054] The capacitor reference value compensation process performed in step S420 can be adopted as follows: Figure 5 The step compensation method shown or Figure 6 The historical value backtracking compensation method is shown.
[0055] Figure 5 A schematic flowchart illustrating the capacitance reference value compensation process according to an embodiment of the present disclosure is shown.
[0056] refer to Figure 5 The capacitance reference value compensation process performed in a step-by-step compensation manner may include steps S510 to S540. These steps can be completed by the main control CPU and the touch IC working together.
[0057] In step S510, the main control CPU can read the current capacitance reference value Base from the register. This current capacitance reference value Base can be the latest capacitance reference value Base dynamically updated by the touch IC based on the capacitance reference value calibration process. Then, the main control CPU can determine whether the current capacitance reference value Base exceeds the maximum value of a preset capacitance reference value range. The capacitance reference value range can be determined and stored in the memory of the touch device 10 at the factory or upon initial power-on. If the current capacitance reference value Base does not exceed the maximum value of the capacitance reference value range, the main control CPU considers the current capacitance reference value Base to be normal, ends the capacitance reference value compensation process, and sends a message to the touch IC indicating that the current capacitance reference value Base is normal. Conversely, if the current capacitance reference value exceeds the maximum value of the capacitance reference value range, the main control CPU considers the current capacitance reference value Base to be abnormal, and proceeds to step S520.
[0058] In step S520, the main control CPU can gradually reduce the capacitance reference value Base by a predetermined fixed step size. In other words, instead of reducing the capacitance reference value Base drastically all at once, the capacitance reference value Base is gradually reduced by a fixed step size. For example, the capacitance reference value Base is reduced by 15 to 20 units each time. Specifically, after each reduction, the main control CPU can write the calculated reduced capacitance reference value Base into a register and instruct the touch IC to wait for a preset number of frames or a preset time period before recalculating the difference d between the reduced capacitance reference value Base and the capacitance sampling value δ of each touch detection node acquired in real time.
[0059] Therefore, after a preset number of frames or a preset duration, the touch IC executes step S530 to read the reduced capacitance reference value Base written by the main control CPU from the register, and calculates the difference d between the reduced capacitance reference value Base and the latest obtained capacitance sampling value δ of each touch detection node.
[0060] In step S540, the touch IC performs a comparison operation similar to that in step S230, namely, determining whether the corresponding difference d of each touch detection node exceeds the first threshold T1, and sending a message to the main control CPU to indicate the determination result. Upon receiving this message, the main control CPU stops reducing the capacitance reference value Base according to the message indicating that the difference d of each touch detection node does not exceed the first threshold T1, thus ending the capacitance reference value compensation process. Alternatively, if the main control CPU determines that the difference d of some touch detection nodes exceeds the first threshold T1 according to the message, the main control CPU continues to reduce the capacitance reference value Base for the next time. This process continues until the reduced capacitance reference value Base ensures that the difference d of each touch detection node does not exceed the first threshold T1, at which point the main control CPU ends the capacitance reference value compensation process.
[0061] Figure 6 Another schematic flowchart of the capacitance reference value compensation process according to an embodiment of the present disclosure is shown.
[0062] refer to Figure 6 The capacitor reference value compensation process performed using historical value backtracking compensation may include steps S610 to S620. These steps can be completed by the main control CPU.
[0063] Step S610 is the same as step S510. The main control CPU can read the current capacitance reference value Base from the register and determine whether the current capacitance reference value Base exceeds the maximum value of the preset capacitance reference value range. If the current capacitance reference value Base does not exceed the maximum value of the capacitance reference value range, the main control CPU considers the current capacitance reference value Base to be normal, ends the capacitance reference value compensation process, and sends a message to the touch IC indicating that the current capacitance reference value Base is normal. Conversely, if the current capacitance reference value exceeds the maximum value of the capacitance reference value range, the main control CPU considers the current capacitance reference value Base to be abnormal, and proceeds to step S620.
[0064] In step S620, the main control CPU reduces the capacitance reference value Base to the historical healthy capacitance reference value in one step. This historical healthy capacitance reference value can be the capacitance reference value Base stored during the operation of the touch device 10 under normal operating conditions, or the capacitance reference value Base determined through testing when the touch device 10 is manufactured or first powered on. Furthermore, this historical healthy capacitance reference value is within the capacitance reference value range.
[0065] Figure 5 The capacitance reference value compensation process shown is performed in a step-by-step compensation manner and Figure 6The capacitance reference value compensation processes performed using historical value backtracking compensation methods each have their advantages. The step-by-step compensation method is beneficial because it only requires simple comparisons and addition / subtraction operations, eliminating the need for additional memory to maintain historical healthy capacitance reference values over a long period. Furthermore, since the capacitance reference value decreases slowly and smoothly, it avoids sudden changes in touch sensitivity. The historical value backtracking compensation method is beneficial because it can quickly adjust the capacitance reference value to within its range in one go, eliminating the touch blind spot time caused by waiting for the capacitance reference value to gradually decrease, and avoiding touch malfunctions caused by this blind spot time.
[0066] Optionally, the main control CPU can further select either a step-by-step compensation method or a historical value backtracking compensation method based on the overall capacitance change rate of multiple touch detection nodes. When the capacitance change rate does not exceed a preset capacitance change rate threshold, the following method is adopted. Figure 5 The step-by-step compensation method shown performs a capacitance reference value compensation process. When the capacitance change rate exceeds a preset capacitance change rate threshold, an error is detected. Figure 6 The historical value backtracking adjustment method shown performs the capacitance reference value compensation process. This balances stability under slow environmental changes and rapid recovery capability after the removal of sudden strong interference, enhancing the reliability of the touch device 10 in complex scenarios.
[0067] Furthermore, this disclosure also considers the following situation: when the touch device 10, which is in a low-power mode (at which time the display panel 121 is off), is woken up, the capacitance reference value Base is still the old value that was last determined before entering the low-power mode. However, at the moment of wake-up, the display driving circuit 122 restarts scanning, and the noise environment changes significantly in a short period of time. The old value may no longer match the noise environment at the time of wake-up. This causes the difference d of each touch detection node calculated by the touch IC for the first time after wake-up to be distorted, which in turn causes the touch device 10 to have a first-point jump or first-point offset after being woken up.
[0068] To improve this situation, this disclosure also proposes performing a capacitance reference value calibration process when the touch device 10 is woken up, so that the capacitance reference value Base used when calculating the difference d of each touch detection node for the first time after wake-up is more accurate. The following is in conjunction with... Figure 7 and Figure 8 Describe this improvement strategy.
[0069] Figure 7 Another schematic flowchart of a method for a touch device according to an embodiment of the present disclosure is shown.
[0070] refer to Figure 7The method 200 for a touch device according to an embodiment of this disclosure may further include step S710. When the touch device 10 is in a low-power mode, the touch IC additionally performs a capacitance reference value calibration process in response to detecting a wake-up behavior for the touch device 10.
[0071] Figure 8 The timing diagram corresponding to step S710 is shown.
[0072] refer to Figure 8 Step S710 can be completed by the main control CPU and the touch IC working together. Specifically, when the touch device 10 is in a low-power mode, the main control CPU is in a sleep state, and the touch IC can retain the function of detecting wake-up behavior for the touch device 10 (e.g., a user making a wake-up gesture). When the touch IC detects a wake-up behavior for the touch device 10, the touch IC can send a wake-up interrupt to the main control CPU through the interrupt pin between the touch IC and the main control CPU. After receiving the wake-up interrupt, the main control CPU decides not to enable touch reporting for the time being. For example, it does not receive or ignores the touch detection results reported from the touch IC. Then, the main control CPU can send a reset command or a soft reset command to the touch IC. The difference between the reset command and the soft reset command is that the soft reset command only instructs the touch IC to perform a capacitance reference value calibration process, that is, to collect the capacitance sampling value δ of each touch detection node in the no-touch state as the base capacitance value, and update the capacitance reference value Base accordingly. The reset command, in addition to instructing the touch IC to perform the capacitance reference value calibration process, also instructs the touch IC to perform operations such as restarting internal logic circuits, initializing register states, clearing historical cache data, and reloading firmware configuration parameters. In response to this reset command or soft reset command, the touch IC determines the new value of the capacitance reference value (Base) by collecting the baseline capacitance values of each touch detection node under the current noise environment. After the reset or soft reset is completed, the touch IC can send feedback to the main control CPU via the interrupt pin to indicate that the reset or soft reset is complete. In response, the main control CPU enables touch point reporting, that is, it normally receives the touch detection results reported from the touch IC.
[0073] Thus, when the touch device 10 is woken up, the new value of the capacitance reference value Base will be used for the initial calculation of the difference d of each touch detection node, instead of using the old value before the touch device 10 entered the low-power mode. This reduces the probability of misjudgment of the first touch detection after the touch device 10 is woken up, and correspondingly reduces the probability of the touch device 10 skipping or deviating after being woken up.
[0074] Optionally, to improve the accuracy of the capacitance reference value calibrated during the capacitance reference value calibration process, this disclosure also proposes that the touch IC can be executed when the touch device 10 is in a non-touch state and the display driving circuit 122 is in an inter-frame idle period. The inter-frame idle period refers to the time period from when the display driving circuit 122 completes the scanning of the current frame to when it begins scanning the next frame.
[0075] Specifically, to display the image, the display driving circuit 122 needs to scan the display panel 121 row by row from the first row of pixels to the last row. After scanning the last row of pixels, it needs to return to the first row of pixels to start scanning the next frame. The time period between the end of scanning the current frame and the start of scanning the next frame is called the "inter-frame idle period". During the inter-frame idle period, the display driving circuit 122 does not generate voltage ripple, thus minimizing interference to the touch module 11. During this period, the touch IC collects the capacitance sampling value δ of each touch detection node as the base capacitance value and updates the capacitance reference value Base accordingly, which can further improve the accuracy of the dynamically updated capacitance reference value Base. When the display driving circuit 122 finishes scanning a frame, it sends a message to the main control CPU indicating that the scanning of that frame has ended. In response to this message, the main control CPU can send a message to the touch IC to trigger the capacitance reference value calibration process. The touch IC knows the current state of the touch device 10 (for example, based on the aforementioned steps S240, S250 or S260). If the touch device 10 is in a no-touch state at this time, the touch IC can collect the capacitance sampling value δ of each touch detection node to update the capacitance reference value Base.
[0076] Furthermore, during step S230, the touch IC can further compare the difference d of each touch detection node calculated in step S220 with a third threshold T3. The third threshold T3 is greater than the second threshold and is also referred to as the reset threshold in this disclosure. When the touch IC determines that the difference d of a third group of touch detection nodes among multiple touch detection nodes exceeds the third threshold T3, and the ratio of the number of the third group of touch detection nodes to the total number of multiple touch detection nodes exceeds a preset ratio threshold (e.g., 60% to 80%), the touch IC can perform a reset operation, including but not limited to restarting internal logic circuits, initializing register states, clearing historical cache data, reloading firmware configuration parameters, and performing a capacitance reference value calibration process to rebuild the capacitance reference value Base.
[0077] Figure 9 A schematic block diagram of a touch device according to an embodiment of the present disclosure is shown.
[0078] refer to Figure 9 The touch device 10 may include, for example, Figure 1The physical structure shown includes at least a touch module 11 and a display module 12, one or more processors 910, and one or more memories 920. The one or more memories 920 store computer-readable instructions. When these computer-readable instructions are executed by the one or more processors 910, one or more steps in the aforementioned method 200 can be performed. The one or more processors 910 may include the touch IC and main control CPU as described above.
[0079] Touch device 900 can perform the aforementioned combination Figures 1 to 8 The various operations of the described method 200 are referenced and cited. For example, the aspects associated with method 200 described above can be modified as one or more additional aspects of the touch device. To avoid repetition, they will not be described again here.
[0080] One or more processors 910 processors can be integrated circuit chips with signal processing capabilities. The aforementioned processors can be general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. General-purpose processors can be microprocessors or any conventional processor, and can be based on x86 or ARM architectures.
[0081] This disclosure also provides a computer-readable storage medium. Computer-readable instructions are stored on the computer-readable storage medium. When the computer-readable instructions are executed by a processor (e.g., processor 910 of a touch device), one or more steps of the aforementioned method 200 can be performed. The computer-readable storage medium may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory used in the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0082] This disclosure also provides a computer program product including computer-readable instructions that can be stored in a computer-readable storage medium. When the computer instructions are executed by a processor (e.g., a processor of a touch device), one or more steps of the aforementioned method 200 can be performed.
[0083] The exemplary embodiments of this disclosure described in detail above are merely illustrative and not restrictive. Those skilled in the art will understand that various modifications and combinations can be made to these embodiments or their features without departing from the principles and spirit of this disclosure, and such modifications should fall within the scope of this disclosure.
Claims
1. A method for a touch device, comprising: Obtain the capacitance sampling value of each of the multiple touch detection nodes in the touch device; Determine the difference between the capacitance reference value and the capacitance sample value of each touch detection node; In response to the fact that the difference between each touch detection node does not exceed a first threshold, it is determined that the touch device is in a no-touch state; In response to the fact that the difference between a first group of touch detection nodes in the plurality of touch detection nodes exceeds the first threshold, and the difference between each touch detection node does not exceed the second threshold, it is determined that the touch device is in a full-screen lift-off abnormal state, wherein the second threshold is greater than the first threshold; as well as In response to the fact that the difference between a second group of touch detection nodes among the plurality of touch detection nodes exceeds the second threshold, it is determined that the touch device is in a touch-enabled state.
2. The method according to claim 1, further comprising: In response to the touch device being continuously identified as being in the full-screen lift-off abnormal state for the first time, a capacitance reference value compensation process for compensating the capacitance reference value is triggered.
3. The method according to claim 1, further comprising: In response to the touch device being continuously determined to be in the no-touch state or the touch state reaching a second time, a capacitance reference value compensation process for compensating the capacitance reference value is triggered.
4. The method according to claim 1, further comprising: In response to the temperature of the touch device exceeding a temperature threshold, a capacitance reference value compensation process for compensating the capacitance reference value is triggered.
5. The method according to any one of claims 2 to 4, wherein, The capacitance reference value compensation process includes: In response to the capacitance reference value exceeding the maximum value of the capacitance reference value range, the capacitance reference value is reduced.
6. The method according to claim 5, wherein, Reducing the capacitance reference value includes: The capacitor reference value is gradually reduced in fixed steps; After each reduction of the capacitance reference value, wait for a preset number of frames, and then re-determine the difference between each touch detection node based on the reduced capacitance reference value and the capacitance sample value of each touch detection node; and In response to the fact that the re-determined difference at each touch detection node does not exceed the first threshold, the reduction of the capacitance reference value is stopped.
7. The method according to claim 5, wherein, Reducing the capacitance reference value includes: The capacitance reference value is adjusted once to a pre-stored historical healthy capacitance reference value, wherein the historical healthy capacitance reference value is within the range of the capacitance reference value.
8. The method according to any one of claims 1 to 4, further comprising: Determine the statistics associated with the capacitance sample value of each touch detection node; as well as In response to the statistical quantity exceeding the statistical quantity threshold, it is determined that the touch device is in the abnormal state of full-screen lift.
9. The method according to claim 8, wherein, The statistic is the variance or standard deviation of the capacitance sample value for each touch detection node.
10. The method according to any one of claims 1 to 4, wherein, The base capacitance value is dynamically updated by performing a capacitance reference value calibration process, which updates the capacitance reference value based on the capacitance sampling value of each touch detection node acquired when the touch device is in a no-touch state.
11. The method of claim 10, further comprising: In response to detecting a wake-up action for the touch device while the touch device is in a low-power mode, the capacitance reference calibration process is performed.
12. The method according to claim 10, wherein, The capacitance reference value calibration process is performed during the time period from when the display driving circuit of the touch device completes scanning of the current frame to when scanning of the next frame begins.
13. The method according to claim 1, further comprising: In response to the determination that the difference between the number of a third group of touch detection nodes among the plurality of touch detection nodes exceeds a third threshold, and the ratio of the number of the third group of touch detection nodes to the number of the plurality of touch detection nodes exceeds a ratio threshold, a reset operation is performed. The third threshold is greater than the second threshold.
14. A touch device, comprising: At least one memory on which computer-readable instructions are stored; as well as At least one processor is configured to execute the computer-readable instructions to cause the touch device to perform the method as described in any one of claims 1 to 13.
15. A computer-readable storage medium having stored thereon computer-readable instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1 to 13.
16. A computer program product having computer-readable instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1 to 13.
