Anti-interference touch data processing method and device, electronic device and storage medium
By conducting real-time waveform analysis on the finger touch data of each touch channel in capacitive touch technology, we can determine whether it is a sine wave or trapezoidal trend, the problem of mistaken triggering in a strong interference environment is solved, and higher anti-interference ability and more accurate judgment of touch actions are achieved.
Patent Information
- Application Number
- CN202011400649.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-03
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2040-12-03
AI Technical Summary
The existing capacitive touch technology is prone to false triggering in a strong interference environment, and has weak anti-interference ability, making it difficult to effectively resist strong signal interference from high-power intercoms or Tesla.
By simultaneously collecting the finger touch data sequence of each touch channel, the finger touch waveform is obtained after buffering the process, and whether the finger touch waveform of each touch channel is a sine wave or a trapezoidal upward or downward trend, the finger touch data of the touch channel is valid, and the effectiveness of the touch action is judged based on the waveform and the holding time.
It can effectively resist interference in a strong interference environment, improve the accuracy of anti-interference judgment of touch technology, reduce product development difficulties and save costs.
Smart Images

Figure CN114610172B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch technology, and specifically to an anti-interference touch data processing method and device, an electronic device, and a storage medium. Background Art
[0002] Capacitive touch sensing technology has brought a more perfect experience to mobile phones, personal computers, and consumer electronics products. Compared with traditional mechanical operations, capacitive touch technology does not cause mechanical wear over time. At the same time, by adding media such as glass and acrylic on the surface of the touch panel, waterproof and aesthetic effects can be achieved. In terms of the overall product form, instead of using mechanical openings and movable mechanical button components, the capacitive touch technology using integrated circuits has a higher integration level, greatly reducing the solution and product costs.
[0003] Capacitive touch technology is prone to causing mis-triggering actions during touch under strong interference in a hardware board-level environment, or artificial (such as a Tesla coil - commonly known as a black box, high-power walkie-talkie), or environmental noise.
[0004] Existing touch sensing technologies mainly perform sampling calibration under non-interference or normal environments as reference values. For example, in an interference environment, a sampled value of interference is obtained through sampling, and then the difference between the sampled value and the reference value is calculated, and the difference is compared with a preset threshold. If the difference is greater than or less than the preset threshold, it is determined whether there is interference or not. Or, the difference is directly compared with the reference value. If the difference is greater than or less than the preset threshold, it is determined that there is interference or not. The disadvantage is that the judgment method is simple, and it is difficult to judge the interference situation in a Tesla coil, high-power walkie-talkie, or strong interference environment.
[0005] Currently, touch sensing technologies generally have weak anti-interference capabilities and are easily interfered by external factors, resulting in mis-triggering. Currently, the anti-interference capabilities of touch sensing technologies are very weak, or the anti-interference capabilities are enhanced by adding external structural parts / board-level metal parts, but the effect is always not good, and the cost of the resulting products is high. The reason is that existing touch technologies generally judge by comparing the preset threshold with the touch value generated by touch, without deeper real-time analysis of touch characteristic data, making it difficult to resist complex interference under strong signals of high-power walkie-talkies and Tesla coils. Summary of the Invention
[0006] An embodiment of the present application provides an anti-interference touch data processing method, which is applied to a touch control device. The method includes: simultaneously collecting a finger touch data sequence of each touch control channel; buffering and processing the finger touch data sequence to obtain a finger touch waveform; in response to the finger touch waveform of each touch control channel being a sine wave or an ascending or descending trend of a trapezoid, determining that the finger touch data of the touch control channel is valid; in response to the finger touch data of one touch control channel among all touch control channels being invalid, determining that the finger touch data of all touch control channels is invalid; among the finger touch data of all valid touch control channels, determining that the touch action corresponding to the finger touch data of the touch control channel is valid based on the finger touch waveform and the holding time of the finger touch data.
[0007] According to some embodiments, the simultaneously collecting a finger touch data sequence of each touch control channel includes: simultaneously collecting a finger touch data sequence of each touch control channel at preset time intervals.
[0008] According to some embodiments, the preset time interval is 1 ms.
[0009] According to some embodiments, the number of touch control channels ≤ 24.
[0010] According to some embodiments, the finger touch waveform of the touch control channel being a sine wave or an ascending or descending trend of a trapezoid includes: sequentially judging the finger touch data of the touch control channel one by one according to the stored time sequence. If the subsequent data is greater than or equal to the previous data, or the descending amplitude of the jitter is less than a preset threshold, it is considered that the finger touch waveform of the touch control channel is a sine wave or an ascending trend of a trapezoid; if the subsequent data is less than the previous data, or the descending amplitude of the jitter is greater than the preset threshold, the subsequent data is buffered into a descending buffer; sequentially judging the data in the descending buffer one by one according to the stored time sequence. If the subsequent data in the descending buffer is less than or equal to the previous data, or the ascending amplitude of the jitter is less than the preset threshold, it is considered that the finger touch waveform of the touch control channel is a sine wave or a descending trend of a trapezoid.
[0011] According to some embodiments, in the finger touch data of all the touch channels that are valid, determining that the touch action of the touch channel corresponding to the finger touch data is valid based on the finger touch waveform and the holding time of the finger touch data includes: among the finger touch data of all the touch channels that are valid, only the finger touch waveform of the finger touch data of one touch channel has a complete sine wave or trapezoidal trend, and both the touch time and the waveform peak holding time reach the set threshold value, and there is no data waveform trend or weak jitter in other touch channels, determining that the touch action of the touch channel corresponding to the finger touch data is valid; among the finger touch data of all the touch channels that are valid, only the waveform of the finger touch data of one touch channel has a complete sine wave or trapezoidal trend and both the touch time and the waveform peak holding time reach the set threshold value, and the data waveform trends of adjacent touch channels gradually weaken, determining that the touch action of the touch channel corresponding to the finger touch data is valid; if the touch time of two or more touch channels exceeds the set threshold value, determining that the touch action is invalid.
[0012] An embodiment of the present application further provides an anti-interference touch data processing device, including an acquisition module, a data processing module, a waveform judgment module, a data validity judgment module, and an action validity judgment module. The acquisition module simultaneously acquires the finger touch data sequence of each touch channel; the data processing module caches and processes the finger touch data sequence to obtain a finger touch waveform; the waveform judgment module determines that the finger touch data of the touch channel is valid in response to the finger touch waveform of each touch channel being a rising or falling trend of a sine wave or a trapezoid; the data validity judgment module determines that the finger touch data of all touch channels is invalid in response to the finger touch data of one touch channel among all touch channels being invalid; the action validity judgment module determines that the touch action of the touch channel corresponding to the waveform is valid based on the waveform and the holding time in the finger touch data of all the touch channels that are valid.
[0013] According to some embodiments, the acquisition module includes a timing acquisition unit, and the timing acquisition unit simultaneously acquires the finger touch data sequence of each touch channel at intervals of a preset time.
[0014] An embodiment of the present application further provides an electronic device, including a memory and one or more processors; the memory is used to store one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors execute the method as described above.
[0015] An embodiment of the present application further provides a computer-readable storage medium, on which a processor program is stored, and the processor program is used to execute the method as described above.
[0016] The technical solution provided by the embodiment of the present application can scan and sample all touch channels, and perform real-time processing and analysis on each sampled data according to the characteristics of sine wave and trapezoidal trend, and perform status marking, which serves as an important basis for finally determining whether the current touch is valid. Anti-interference processing is carried out inside the touch technology, and complex processing at the product board level or the physical structure level is not required, and it can also well resist the interference environment, greatly reducing the development difficulty of touch products, improving the accuracy of anti-interference judgment, and at the same time saving product costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0018] Figure 1 It is a schematic flowchart of an anti-interference touch data processing method provided by an embodiment of the present application.
[0019] Figure 2 It is a schematic diagram of a messy finger touch waveform provided by an embodiment of the present application.
[0020] Figure 3 It is a schematic diagram of a finger touch waveform with a sine wave or trapezoidal trend provided by an embodiment of the present application.
[0021] Figure 4 It is a schematic diagram of an effective finger touch waveform provided by an embodiment of the present application.
[0022] Figure 5 It is another schematic diagram of an effective finger touch waveform provided by an embodiment of the present application.
[0023] Figure 6 It is a schematic diagram of an invalid finger touch waveform provided by an embodiment of the present application.
[0024] Figure 7 It is a functional block diagram of an anti-interference touch data processing device provided by an embodiment of the present application.
[0025] Figure 8 It is a functional block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.
[0027] It should be understood that the terms "including" and "comprising" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0028] Figure 1 It is a schematic flowchart of an anti-interference touch data processing method provided by an embodiment of the present application, including the following control processes.
[0029] In S110, the finger touch data sequences of each touch channel are collected simultaneously.
[0030] In a capacitive touch device, according to the principle of capacitive touch, when a finger presses and then releases, it is a process from far to near, and for the capacitor, it is first an increase and then a decrease. After this process passes through the acquisition module of the touch hardware, a finger touch data sequence formed by multiple finger touch data is obtained. In some cases, due to the difference in the direction of the analog voltage to digital value conversion of the capacitor by the circuit, it may be a cosine wave or a funnel-shaped trend.
[0031] Optionally, the finger touch data sequences of each touch channel are collected simultaneously at preset time intervals. The touch channel refers to the chip detection channel corresponding to each key, that is, the touch channel.
[0032] Open all valid touch channels, perform a scan, sampling, and caching on all valid channels. Here, the valid touch channels refer to the number of actually used touch channels. For example, if the capacitive touch supports a maximum of 24 channels, but actually only 12 channels are used, then the number of valid touch channels is 12. Data sampling and caching are performed for each channel, and the size of the cached data can be determined according to the actual situation, but it should at least include the complete waveform trend.
[0033] Set a sampling interval time. Theoretically, the smaller the sampling interval time, the higher the accuracy. The specific interval should be adjusted in combination with the actual hardware resources and processing capabilities. In principle, the smaller the better, and it is generally set to 1 ms.
[0034] In S120, a finger touch waveform is obtained after caching and processing the finger touch data sequence.
[0035] Cache the obtained finger touch data sequence and perform data processing to obtain a finger touch waveform.
[0036] The effective finger touch waveform trend without interference is a waveform that first rises and then falls, equivalent to a sine wave. Because there will be slight jitters during finger touch, the final waveform feature is a sine wave, or a trapezoidal or similar trapezoidal trend, and it will not be a chaotic up-and-down jumping waveform trend.
[0037] The effective finger touch waveform trend with interference is a large-amplitude up-and-down jump. For example, in some cached data, check if there are values that are sometimes greater than the threshold value and sometimes less than the reference value. When it is sometimes far greater than the threshold value and sometimes far less than the reference value, it is judged as strong interference. This judgment can resist strong interference such as that from a Tesla coil (commonly known as a Tesla black box).
[0038] In S130, in response to the finger touch waveform of each touch channel being a sine wave or a rising or falling trend of a trapezoid, determine that the finger touch data of the touch channel is valid.
[0039] Analyze the cached data of the touch channel. The trend characteristics of the finger touch waveform in the cached data are irregular and chaotic. As Figure 2 shown. Some sampling values are smaller than the reference value, and some sampling values are larger than the threshold value. The entire waveform trend is a violent up-and-down jump. Or the sampling values jitter up and down significantly between the reference value and the threshold value, and the amplitude can be a preset amplitude threshold value, without rules. If it meets the irregular and chaotic trend, set to determine that the current touch operation is invalid or discard the current touch operation.
[0040] Judge whether the finger touch waveform trend meets a sine wave or a rising or falling trend of a trapezoid. If it meets, determine that the finger touch data of the touch channel is valid. If it does not meet, it is considered interference and the current touch operation is lost.
[0041] The finger touch data of the touch channel is judged one by one in the stored time sequence. If the subsequent data is greater than or equal to the previous data, or the falling amplitude of the jitter is less than the preset threshold value, it is considered that the finger touch waveform of the touch channel is a sine wave or a rising trend of a trapezoid.
[0042] If the subsequent data is less than the previous data, or the falling amplitude of the jitter is greater than the preset threshold value, cache the subsequent data into the falling buffer.
[0043] Judge the data in the falling buffer one by one in the stored time sequence. If the subsequent data in the falling buffer is less than or equal to the previous data, or the rising amplitude of the jitter is less than the preset threshold value, it is considered that the finger touch waveform of the touch channel is a sine wave or a falling trend of a trapezoid.
[0044] In S140, in response to the invalidation of the finger touch data of one touch channel among all touch channels, it is determined that the finger touch data of all touch channels is invalid.
[0045] Sample and analyze all channels.
[0046] The finger has been released or the interference source has been removed, indicating that a touch action is completed. During and after this process, it should be possible to analyze and determine the touch data.
[0047] The determination method is: the finger touch waveform trend of the finger touch data in all touch channels is regular, meeting a complete sine wave or trapezoidal trend, as Figure 3 shown, then the current touch action is considered valid. Otherwise, as long as the finger touch data of one touch channel among all touch channels is invalid, it is considered that there is interference, and the finger touch data of all touch channels is determined to be invalid and discarded.
[0048] In special cases, such as during a normal touch operation, after the entire palm presses and then moves away, the data waveform trends generated by all channels will be like a sine wave or trapezoidal trend. At this time, it can be considered an invalid touch action, and this touch is not responded to, which can also prevent misoperations. Therefore, if the sampling data trends of all channels all meet the sine wave or trapezoidal trend, it is considered strong interference, and the current touch operation is discarded.
[0049] In S150, among the finger touch data of all valid touch channels, based on the finger touch waveform and holding time of the finger touch data, it is determined that the touch action of the touch channel corresponding to the finger touch data is valid.
[0050] Among the finger touch data of all valid touch channels, only the finger touch waveform of the finger touch data of one touch channel has a complete sine wave or trapezoidal trend, and both the touch time and the waveform peak holding time reach the set threshold value, and there is no data waveform trend or weak jitter in other touch channels, it is determined that the touch action of the touch channel corresponding to the finger touch data is valid, as Figure 4 shown.
[0051] Among the finger touch data of all valid touch channels, only the waveform of the finger touch data of one touch channel has a complete sine wave or trapezoidal trend and both the touch time and the waveform peak holding time reach the set threshold value, and the data waveform trends of adjacent touch channels gradually weaken in turn, it is determined that the touch action of the touch channel corresponding to the finger touch data is valid, as Figure 5 shown.
[0052] If the touch time of two or more touch channels exceeds the set threshold value, it indicates the existence of universal strong interference, and the touch action is determined to be invalid. As Figure 6As shown, when the entire palm is fully pressed and then released, this strong and universal interference will occur.
[0053] The technical solution provided in this embodiment can scan and sample all touch channels, and perform real-time processing and analysis on each sampled data according to the characteristics of sine wave and trapezoidal trend, and perform status marking, which serves as an important basis for finally determining whether this touch is effective. Anti-interference processing is carried out inside the touch technology, and complex processing is not required at the product board level or the physical structure level, and it can also resist the interference environment well, greatly reducing the development difficulty of touch products, improving the accuracy of anti-interference judgment, and at the same time saving product costs.
[0054] Figure 7 It is a functional block diagram of an anti-interference touch data processing device provided by an embodiment of the present application. The anti-interference touch data processing device 100 includes an acquisition module 10, a data processing module 20, a waveform judgment module 30, a data validity judgment module 40, and an action validity judgment module 50.
[0055] The acquisition module 10 simultaneously acquires the finger touch data sequences of each touch channel. The data processing module 20 caches and processes the finger touch data sequences to obtain finger touch waveforms. The waveform judgment module 30 determines that the finger touch data of the touch channel is valid in response to the finger touch waveform of each touch channel being a rising or falling trend of a sine wave or a trapezoid. The data validity judgment module 40 determines that the finger touch data of all touch channels is invalid in response to the finger touch data of one touch channel among all touch channels being invalid. The action validity judgment module 50 determines that the touch action of the touch channel corresponding to the waveform is valid based on the waveform and the holding time among the finger touch data of all valid touch channels.
[0056] Optionally, the acquisition module 10 includes a timing acquisition unit 11, and the acquisition unit 11 simultaneously acquires the finger touch data sequences of each touch channel at preset time intervals.
[0057] Figure 8 It is a functional block diagram of an electronic device provided by an embodiment of the present application.
[0058] The electronic device may include an output unit 301, an input unit 302, a processor 303, a memory 304, a communication interface 305, and a memory unit 306.
[0059] The memory 304, as a non-transitory computer-readable memory, can be used to store software programs, computer-executable programs, and modules. When one or more programs are executed by one or more processors 303, one or more processors 303 implement the method as described above.
[0060] The memory 304 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 304 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory 304 may optionally include a memory remotely provided with respect to the processor 303, and these remote memories may be connected to the electronic device through a network.
[0061] The above embodiments are only used to illustrate the technical idea of the present application, and the protection scope of the present application cannot be limited thereby. Any changes made on the basis of the technical solution according to the technical idea proposed in the present application shall fall within the protection scope of the present application.
Claims
1. An anti-interference touch data processing method, applied to a touch control device, the method comprising: Simultaneously collecting finger touch data sequences of each touch control channel; Caching and processing the finger touch data sequences to obtain finger touch waveforms; In response to the finger touch waveform of each touch control channel being a sine wave or a rising or falling trend of a trapezoid, determining that the finger touch data of the touch control channel is valid; In response to the finger touch data of one touch control channel among all touch control channels being invalid, determining that the finger touch data of all touch control channels is invalid; Among the finger touch data of all valid touch control channels, based on the finger touch waveform and the holding time of the finger touch data, determining that the touch action corresponding to the finger touch data of the touch control channel is valid, including: Among the finger touch data of all valid touch control channels, only the finger touch waveform of the finger touch data of one touch control channel has a complete sine wave or trapezoid trend, and both the touch time and the waveform peak holding time reach a set threshold value, and there is no data waveform trend or weak jitter in other touch control channels, determining that the touch action corresponding to the finger touch data of the touch control channel is valid; Among the finger touch data of all valid touch control channels, only the waveform of the finger touch data of one touch control channel has a complete sine wave or trapezoid trend and both the touch time and the waveform peak holding time reach a set threshold value, and the data waveform trends of adjacent touch control channels gradually weaken, determining that the touch action corresponding to the finger touch data of the touch control channel is valid; If the touch time of two or more touch control channels exceeds the set threshold value, determining that the touch action is invalid.
2. The anti-interference touch data processing method according to claim 1, wherein, The simultaneously collecting finger touch data sequences of each touch control channel includes: Simultaneously collecting finger touch data sequences of each touch control channel at preset time intervals.
3. The anti-interference touch data processing method according to claim 2, wherein, The preset time interval is 1 ms.
4. The anti-interference touch data processing method according to claim 1, wherein, The number of touch control channels ≤ 24.
5. The anti-interference touch data processing method according to claim 1, wherein, The finger touch waveform of the touch control channel being a sine wave or a rising or falling trend of a trapezoid includes: Sequentially judging the finger touch data of the touch control channel one by one according to the stored time sequence. If the subsequent data is greater than or equal to the previous data, or the falling amplitude of the jitter is less than the preset threshold value, it is considered that the finger touch waveform of the touch control channel is a sine wave or a rising trend of a trapezoid; If the subsequent data is less than the previous data, or the falling amplitude of the jitter is greater than the preset threshold value, the subsequent data is cached in the falling buffer; Sequentially judging the data in the falling buffer one by one according to the stored time sequence. If the subsequent data in the falling buffer is less than or equal to the previous data, or the rising amplitude of the jitter is less than the preset threshold value, it is considered that the finger touch waveform of the touch control channel is a sine wave or a falling trend of a trapezoid.
6. An anti-interference touch data processing device, comprising: An acquisition module, simultaneously collecting finger touch data sequences of each touch control channel; A data processing module, caching and processing the finger touch data sequences to obtain finger touch waveforms; The waveform determination module determines that the finger touch data of the touch channel is valid in response to the finger touch waveform of each touch channel being a sine wave or an ascending or descending trend of a trapezoid; The data validity determination module determines that the finger touch data of all touch channels is invalid in response to the finger touch data of one touch channel among all touch channels being invalid; The action validity determination module determines that the touch action corresponding to the waveform is valid based on the waveform and the holding time in the finger touch data of all valid touch channels, including: among the finger touch data of all valid touch channels, only the finger touch waveform of the finger touch data of one touch channel has a complete sine wave or trapezoid trend, and both the touch time and the waveform peak holding time reach the set threshold value, and there is no data waveform trend or weak jitter in other touch channels, determining that the touch action corresponding to the finger touch data of the touch channel is valid; among the finger touch data of all valid touch channels, only the waveform of the finger touch data of one touch channel has a complete sine wave or trapezoid trend and both the touch time and the waveform peak holding time reach the set threshold value, and the data waveform trends of adjacent touch channels gradually weaken, determining that the touch action corresponding to the finger touch data of the touch channel is valid; if the touch time of two or more touch channels exceeds the set threshold value, determining that the touch action is invalid.
7. The anti-interference touch data processing device according to claim 6, wherein, The acquisition module includes: A timing acquisition unit that simultaneously acquires the finger touch data sequence of each touch channel at preset time intervals.
8. An electronic device, including: One or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 5.
9. A computer-readable storage medium having a processor program stored thereon, wherein, The processor program is used to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Touch press key identifying method of capacitive touch control screen
CN105573570A
Triggering judgment method and device for capacitive touch switch
CN111404534A