A method for reducing accidental touches in touch sensing, a touch sensor, and a Bluetooth headset.
By using positive and negative change counters in combination to update the environmental threshold in touch sensing, the problem of accidental touches in touch detection is solved, and more stable touch detection is achieved.
Patent Information
- Application Number
- CN202410993799.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Existing touch sensing methods ignore the impact of negative changes, leading to frequent false touch events. Especially when positive and negative changes occur frequently, the environmental threshold update is inaccurate, resulting in unreliable touch detection.
By using a combination of positive and negative change counters, the occurrence of accidental touch events can be reduced through effective updates to the positive and negative values of environmental changes.
By distinguishing between positive and negative changes, touch detection is stabilized, the occurrence of accidental touch events is reduced, and the reliability of touch detection is improved.
Smart Images

Figure CN119148877B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of touch sensing technology, and in particular to a method for reducing accidental touches in touch sensing, a touch sensor, and a Bluetooth headset. Background Technology
[0002] In typical touch sensing methods, a first threshold and a second threshold are used to determine and implement touch detection. This only considers the case of a positive increase in touch intensity, while ignoring the impact of negative changes. Some touch sensing algorithms add filtering considerations, but these considerations only address the impact of abrupt changes in absolute value, ignoring the differences caused by the direction of such changes (especially the impact of negative changes), which can lead to false touches in practice.
[0003] The following situations can lead to false touches. The first is when frequent positive and negative changes occur, causing incorrect updates to the environmental threshold. In N consecutive detections, the detected value is always greater than the first environmental threshold, and the difference meets the first threshold, causing the counter to increment (in the Nth detection, the counter has not yet met the second threshold). Then, external environmental factors change, causing the subsequent situation to be that the detected value is less than the first environmental threshold, but the absolute value of the difference between the detected value and the first environmental threshold meets the first threshold. This causes the counter to increment incorrectly instead of being reset. In this case, the counter is incremented until it meets the second threshold, incorrectly updating to the second environmental threshold. The second situation is when several negative changes occur during a positive change, leading to incorrect updates to the environmental threshold. An inappropriate environmental threshold makes touch detection unreliable, resulting in false touches. As described above, in the (N+1)th detection, external factors change, but the first threshold is still met. If the period when the detected value is less than the first environmental threshold is short, after updating the second environmental threshold, the current detected value reverts to being greater than the first environmental threshold. However, if the second environmental threshold is smaller than the first environmental threshold, it means that the current detection value is larger than the second environmental threshold, which will cause a false touch event. Summary of the Invention
[0004] Based on the above, this invention proposes a method to reduce accidental touches in touch sensing. It utilizes the combined use of positive and negative change counters. During touch detection, by effectively updating the environmental threshold in both positive and negative directions for environments with significant changes, the occurrence of accidental touch events is reduced.
[0005] This invention provides a method for reducing accidental touches in touch sensing, comprising:
[0006] S1. Start the device and obtain the first environmental threshold; collect the current detection value of the touch area;
[0007] S2. Subtract the first environmental threshold from the first detection value to obtain the first difference value; if the first difference value is less than the preset first threshold value, repeat S1-S2; if the first difference value is greater than the preset first threshold value, proceed to S3;
[0008] S3. Determine whether the current detection value is greater than the first environmental threshold;
[0009] If so, increment the positive change counter by 1 and reset the negative change counter to 0; compare the current value of the positive change counter with the preset second threshold value. If the current value of the positive change counter is less than the preset second threshold value, retain the current value of the positive change counter and repeat S1-S2; if the positive change counter is greater than the preset second threshold value, update the first environmental threshold to the second environmental threshold value according to the currently detected first detection value, clear the positive change counter to zero, and repeat S1-S2.
[0010] If not, increment the negative change counter by 1, reset the positive change counter to 0, compare the current value of the negative change counter with the preset second threshold value. If the current value of the negative change counter is less than the preset second threshold value, retain the current value of the negative change counter and repeat S1-S2. If the negative change counter is greater than the preset second threshold value, update the first environmental threshold to the second environmental threshold value according to the currently detected first detection value, clear the negative change counter to zero, and repeat S1-S2.
[0011] The present invention also provides a touch sensor, comprising: a touch sensor, a calibration register, and a controller working together to implement the above-mentioned method for reducing accidental touches in touch sensing.
[0012] Some technical advantages of this disclosure are as follows: A first environmental threshold is obtained upon device startup; the current detection value of the touch area is collected; the difference between the first environmental threshold and the current detection value is calculated to obtain a first difference value, and then it is determined whether the first detection value is greater than the first environmental threshold; based on the determination result, a positive change counter and a negative change counter are used in conjunction. By effectively updating the positive and negative environmental thresholds for significant environmental changes, the capacitance value does not increase intermittently, reducing the occurrence of accidental touches. Simultaneously, by distinguishing between positive and negative changes, the interference of negative changes occurring during positive changes cannot be eliminated by a single counter, making touch detection more stable. Attached Figure Description
[0013] To better understand the technical solutions of this disclosure, reference can be made to the following accompanying drawings, which are used to assist in the illustration of the prior art or embodiments. These drawings selectively illustrate the products or methods involved in the prior art or some embodiments of this disclosure. The basic information of these drawings is as follows:
[0014] Figure 1This is a flowchart illustrating an embodiment of a method for reducing accidental touches in touch sensing according to the present invention;
[0015] Figure 2 This is a schematic diagram of an embodiment of a touch sensor according to the present invention. Detailed Implementation
[0016] The following will further describe the technical means or effects involved in this disclosure. Obviously, the provided embodiments are only some implementations of this disclosure, and not all of them. Based on the embodiments in this disclosure and the explicit or implicit descriptions in the figures and text, all other embodiments that can be obtained by those skilled in the art without creative effort will be within the scope of protection of this disclosure.
[0017] like Figure 1 As shown, the method in this embodiment includes the following steps:
[0018] S1. Start the device and obtain the first environmental threshold; collect the current detection value of the touch area;
[0019] When the device starts up, the detection value of the touch area when it is not touched is used as the first environmental threshold. Even if the device is started when someone touches it, the collected detection value will still be used as the first environmental threshold. However, in this case, the first environmental threshold is the same as or very close to the capacitance value of the touch, so it will not be considered a touch. The first environmental threshold is continuously updated as the environment changes. Subsequently, the detection value of the touch area when it is not touched is used as the current detection value; the first environmental threshold obtained at the current moment is used as the current environmental threshold; a current detection value greater than the current environmental threshold is defined as a positive change in the detection value; a current detection value less than the current environmental threshold is defined as a negative change in the detection value. In this embodiment, the detection value is preferably the capacitance value.
[0020] S2. Subtract the first environmental threshold from the current detection value to obtain the first difference value; if the first difference value is less than the preset first threshold value, repeat S1-S2; if the first difference value is greater than the preset first threshold value, proceed to S3;
[0021] Because the environment is constantly changing, the current detection value of the touch area also changes accordingly. Detection values are collected both when someone touches the area and when no one is touching it. The difference is that when someone touches the area, the capacitance value is stable, and the probability of accidental touches is extremely low. The current detection value collected for the Nth time is compared with a first environmental threshold, and the resulting difference is compared with a preset first threshold. This preset first threshold is used to limit the fluctuation range of the detection value relative to the first environmental threshold. If the fluctuation is small, the filtering process is not initiated, and the environmental threshold is not updated (i.e., the environment is stable, and accidental touches will not occur). If the fluctuation is large, the filtering process is initiated (i.e., the environment is unstable, and accidental touches may occur, requiring filtering to reduce their occurrence).
[0022] The first difference, obtained by subtracting the first environmental threshold from the current detection value, is the absolute value of the difference between the first environmental threshold and the current detection value. Since this embodiment distinguishes between positive and negative changes, the first difference may be negative, while the first threshold value is positive. If no absolute value processing is performed, and the first difference is negative, the first threshold will not be met, and the subsequent filtering step S3 cannot be initiated.
[0023] S3. Determine whether the current detection value is greater than the first environmental threshold;
[0024] If so, proceed to the positive change filtering step. Increment the positive change counter by 1 and reset the negative change counter to 0. Compare the current value of the positive change counter with the preset second threshold value. If the current value of the positive change counter is less than the preset second threshold value, retain the current value of the positive change counter and repeat S1-S2. If the positive change counter is greater than the preset second threshold value, update the first environmental threshold to the second environmental threshold value according to the current detection value, clear the positive change counter to zero, and repeat S1-S2.
[0025] If not, proceed to the negative change filtering step. Increment the negative change counter by 1, reset the positive change counter to 0, and compare the current value of the negative change counter with the preset second threshold value. If the current value of the negative change counter is less than the preset second threshold value, retain the current value of the negative change counter and repeat S1-S2; if the negative change counter is greater than the preset second threshold value, update the first environmental threshold to the second environmental threshold value according to the current detection value, clear the negative change counter to zero, and repeat S1-S2.
[0026] The preset second threshold value here is used to monitor the frequency of environmental threshold updates. If the preset second threshold value is too small, the number of filtering operations will be insufficient, leading to frequent updates of the environmental threshold. The environmental threshold will rapidly follow environmental fluctuations, resulting in poor anti-mistouch performance. If the preset second threshold value is too large, the environmental threshold will update slowly, which may cause normal touches to be unrecognized.
[0027] When the current value of the positive change counter is less than the second threshold, if the absolute value of the difference between the currently detected first value and the first environmental threshold is less than the preset first threshold, both the current values of the positive and negative change counters are reset to zero. Similarly, when the current value of the negative change counter is less than the second threshold, if the absolute value of the difference between the currently detected value and the first environmental threshold is less than the preset first threshold, both the current values of the positive and negative change counters are reset to zero. This ensures that an increase in the environmental threshold is only considered a continuous increase in the collected capacitance value, preventing a change in the environmental threshold due to intermittent increases in capacitance. It also distinguishes between positive and negative changes, resolving the issue of a single counter being unable to eliminate interference from negative changes occurring during a positive change, thus making touch detection more stable.
[0028] like Figure 2 As shown, this embodiment also includes a touch sensor, comprising: a sensor, a calibration register, and a controller, with each component connected by signals.
[0029] The sensor is used to activate the device to obtain a first environmental threshold and to collect the current detection value of the touch area; the calibration register includes a positive change counter and a negative change counter, the positive change counter is used to record the number of times the current detection value is greater than the first environmental threshold, and the negative change counter is used to record the number of times the current detection value is less than the first environmental threshold; the controller is used to obtain a first difference by subtracting the first environmental threshold from the first detection value, and then determine whether the first detection value is greater than the first environmental threshold when the first difference is greater than a preset first threshold value;
[0030] If so, increment the positive change counter by 1 and reset the negative change counter to 0; if the current value of the positive change counter is greater than the preset second threshold value, update the first environmental threshold to the second environmental threshold according to the current detection value and clear the positive change counter to zero.
[0031] If not, increment the negative change counter by 1 and reset the positive change counter to 0; if the current value of the negative change counter is greater than the preset second threshold value, update the first environmental threshold to the second environmental threshold based on the current detection value and clear the negative change counter to zero.
[0032] As one application of this embodiment, this embodiment also provides a Bluetooth headset, including: a Bluetooth headset body, wherein a touch sensor as described above is disposed within the headset body, and the touch sensor is electrically connected to the touch area of the Bluetooth headset body. As a simple alternative, this touch sensor can also be applied to other products, such as touch-sensitive lights, etc., which are all simple alternatives to this embodiment.
[0033] Those skilled in the art will understand that all or part of the steps in the embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable medium, which may include various media capable of storing program code, such as flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, or optical disks. In one embodiment, this disclosure provides a computer-readable medium storing a computer program, which is loaded and executed by a processing module to implement a method for reducing accidental touches in touch sensing.
[0034] Within the scope of knowledge and ability of those skilled in the art, the various embodiments or technical features mentioned herein can be combined with each other as other optional embodiments without conflict. These finite number of optional embodiments, which are not listed one by one and are formed by combining a finite number of technical features, still fall within the scope of the technology disclosed herein and are also derived by those skilled in the art from the accompanying drawings and the foregoing.
[0035] In addition, the descriptions of most embodiments are based on different focuses. For details not described in detail, please refer to the prior art or other relevant descriptions in this document for understanding.
[0036] It is emphasized again that the embodiments listed above are typical and preferred embodiments of this disclosure, and are only used to describe and explain the technical solutions of this disclosure in detail to facilitate the reader's understanding. They are not intended to limit the scope of protection or application of this disclosure. Any technical solutions obtained by modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be covered within the scope of protection of this disclosure.
Claims
1. A method for reducing accidental touches in touch sensing, characterized in that: S1. Start the device and obtain the first environmental threshold; collect the current detection value of the touch area; S2. Subtract the first environmental threshold from the current detection value to obtain a first difference; If the first difference is greater than a preset first threshold, proceed to S3; if the first difference is less than a preset first threshold, repeat S1-S2; the first difference is the absolute value obtained by subtracting the first environmental threshold from the current detection value. S3. Determine whether the current detection value is greater than the first environmental threshold; If so, increment the positive change counter by 1 and reset the negative change counter to 0; compare the current value of the positive change counter with the preset second threshold value. If the current value of the positive change counter is less than the preset second threshold value, retain the current value of the positive change counter and repeat S1-S2; if the current value of the positive change counter is greater than the preset second threshold value, update the first environmental threshold to the second environmental threshold value according to the current detection value, clear the positive change counter to zero, and repeat S1-S2. If not, increment the negative change counter by 1, reset the positive change counter to 0, compare the current value of the negative change counter with the preset second threshold value. If the current value of the negative change counter is less than the preset second threshold value, retain the current value of the negative change counter and repeat S1-S2. If the current value of the negative change counter is greater than the preset second threshold value, update the first environmental threshold to the second environmental threshold value according to the current detection value, clear the negative change counter to zero, and repeat S1-S2.
2. The method for reducing accidental touches according to claim 1, characterized in that: When the current value of the positive change counter is less than the preset second threshold, if the absolute value of the difference between the current detection value and the first environmental threshold is less than the preset first threshold, both the current value of the positive change counter and the current value of the negative change counter are cleared to zero.
3. The method for reducing accidental touches according to claim 1, characterized in that: When the current value of the negative change counter is less than the preset second threshold, if the absolute value of the difference between the current detection value and the first environmental threshold is less than the preset first threshold, both the current value of the positive change counter and the current value of the negative change counter are cleared to zero.
4. A touch sensor, characterized in that, include: Sensors, calibration registers, and controllers; signal connections between each component. The sensor is used to start the device and obtain a first environmental threshold. Collect the current detection value of the touch area; The calibration register includes a positive change counter and a negative change counter. The positive change counter is used to record the number of times the current detection value is greater than the first environmental threshold, and the negative change counter is used to record the number of times the current detection value is less than the first environmental threshold. The controller is used to obtain a first difference by subtracting the first environmental threshold from the current detection value; if the first difference is greater than a preset first threshold, it is then determined whether the current detection value is greater than the first environmental threshold. If yes, increment the positive change counter by 1 and reset the negative change counter to 0; if the current value of the positive change counter is greater than the preset second threshold, update the first environmental threshold to the second environmental threshold based on the current detection value and clear the positive change counter; if no, increment the negative change counter by 1 and reset the positive change counter to 0; if the current value of the negative change counter is greater than the preset second threshold, update the first environmental threshold to the second environmental threshold based on the current detection value and clear the negative change counter. If the first difference is less than a preset first threshold, the first environmental threshold is reacquired; the current detection value of the touch area is collected; the first difference is the absolute value obtained by subtracting the first environmental threshold from the current detection value.
5. The touch sensor according to claim 4, characterized in that: When the current value of the positive change counter is less than the preset second threshold, if the absolute value of the difference between the current detection value and the first environmental threshold is less than the preset first threshold, both the current value of the positive change counter and the current value of the negative change counter are cleared to zero.
6. The touch sensor according to claim 4, characterized in that: When the current value of the negative change counter is less than the preset second threshold, if the absolute value of the difference between the current detection value and the first environmental threshold is less than the preset first threshold, both the current value of the positive change counter and the current value of the negative change counter are cleared to zero.
7. A Bluetooth headset, characterized in that... include: A Bluetooth headset body, wherein the Bluetooth headset body is provided with a touch sensor as described in any one of claims 4-6.
Citation Information
Patent Citations
Benchmark updating method and system for touch detection terminal capable of eliminating large-area interference
US20150081249A1
Method for updating environmental threshold in touch sensing, touch sensor, and water outlet device
US20210389840A1