CN108512542A - Touch key-press signal processing method and device, computer readable storage medium - Google Patents
Touch key-press signal processing method and device, computer readable storage medium Download PDFInfo
- Publication number
- CN108512542A CN108512542A CN201810272835.0A CN201810272835A CN108512542A CN 108512542 A CN108512542 A CN 108512542A CN 201810272835 A CN201810272835 A CN 201810272835A CN 108512542 A CN108512542 A CN 108512542A
- Authority
- CN
- China
- Prior art keywords
- touch key
- press
- time data
- triggered
- filtering
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/94—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
- H03K17/96—Touch switches
- H03K17/962—Capacitive touch switches
Landscapes
- Position Input By Displaying (AREA)
- Electronic Switches (AREA)
Abstract
A kind of touch key-press signal processing method and device, computer readable storage medium, the method includes:Sampling time data are obtained, the sampling time data are calculated by actual samples time and preset amplification coefficient;The sampling time data are filtered, filtering time data are obtained;Detect whether the touch key-press is triggered;When detecting that the touch key-press is not triggered, and when the filtering time data are more than preset first threshold, reduce the amplification coefficient, until being not more than the first threshold according to the filtering time data that the amplification coefficient after reduction obtains.Said program can effectively judge whether touch key-press is triggered.
Description
Technical field
The present invention relates to touch key-press control field more particularly to a kind of touch key-press signal processing methods and device, meter
Calculation machine readable storage medium storing program for executing.
Background technology
Currently, common touch key-press is mostly based on whether capacitive sensing method has touch operation triggering, capacitance to incude
Touch of the basic principle of inducing method based on finger can change the capacitance of inductance capacitance Cp.In the prior art, capacitive sensing
Method includes charge migration method.For charge migration method, there are a reference capacitance Cx, by acquiring chargings of the Cp to Cx
The length of time detects the variable quantity of the capacitance on capacitance Cp, and then judges whether that key-press event occurs, namely judges button
Whether it is triggered.
In the prior art, Cp is usually smaller to the charging time data of Cx, may cannot be used directly for data processing.
In practical application, sampling time data (namely the obtained Cp of sampling is to charging duration of Cx) are usually amplified processing, general
Sampling time data are multiplied with the amplification coefficient of setting.Therefore, it is according to enhanced processing when judging whether to occur key-press event
Rear sampling time data judge.
However, due to the influence of the factors such as temperature, humidity, electronic device loss, touch key-press is caused to control chip system
After running a period of time, touch key-press may be led because of amplified sampling time data beyond range is preset
Cause can not normally judge whether to be triggered.
Invention content
What the embodiment of the present invention solved is how to avoid amplified sampling time data beyond range is preset, can
Effectively judge whether touch key-press is triggered.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of touch key-press signal processing method, including:It obtains
Sampling time data, the sampling time data are calculated by actual samples time and preset amplification coefficient;It is adopted to described
Sample time data is filtered, and obtains filtering time data;Detect whether the touch key-press is triggered;When detecting
Touch key-press is stated not to be triggered, and the filtering time data be more than preset first threshold when, reduce the amplification coefficient, directly
It is not more than the first threshold to the filtering time data obtained according to the amplification coefficient after reduction;The first threshold and experience
The sum of time data is not more than theoretical maximum time data, and the executeaaafunction data judge that the touch key-press is triggered
Time data, the theoretical maximum time data are the maximum time data for being capable of detecting when touch key-press and being triggered.
Optionally, described that the amplification coefficient is adjusted, including:Detect next time the touch key-press not by
When triggering, reduce the amplification coefficient.
Optionally, whether the detection touch key-press is triggered, including:The filtering time data are touched with described
It touches the corresponding baseline time data of button to subtract each other, when obtained difference is more than preset difference value, judges that the touch key-press is touched
Hair is primary.
Optionally, the touch key-press signal processing method further includes:When detecting the touch key-press by continuous trigger
Number be M when, judge that there are trigger events for the touch key-press;M is integer and M >=2.
Optionally, the touch key-press signal processing method further includes:When detecting that the touch key-press is not triggered,
Using the filtering time data as detecting corresponding baseline time data when whether the touch key-press is triggered next time.
Optionally, using following any filtering method, the sampling time data are filtered:Intermediate value is filtered
Wave, average value filtering.
Optionally, the touch key-press signal processing method further includes:When detecting that the touch key-press is not triggered, and
When the filtering time data are less than preset second threshold, increase the amplification coefficient, until according to the amplification system after increase
The filtering time data that number obtains are not less than the second threshold;The second threshold is less than the first threshold.
The embodiment of the present invention additionally provides a kind of touch key-press signal processing apparatus, including:Acquiring unit is adopted for obtaining
Sample time data, the sampling time data are calculated by actual samples time and preset amplification coefficient;Filter unit is used
It is filtered in the sampling time data, obtains filtering time data;Detection unit is pressed for detecting the touch
Whether key is triggered;Adjustment unit detects that the touch key-press is not triggered for working as, and the filtering time data are more than
When preset first threshold, reduce the amplification coefficient, until the filtering time data obtained according to the amplification coefficient after reduction
No more than the first threshold;The sum of the first threshold and executeaaafunction data are not more than theoretical maximum time data, described
Executeaaafunction data are the time data that the judgement touch key-press is triggered, and the theoretical maximum time data is that can detect
Go out the maximum time data that touch key-press is triggered.
Optionally, the adjustment unit, for when detecting that the touch key-press is not triggered next time, described in reduction
Amplification coefficient.
Optionally, the detection unit, when being used for baseline that the filtering time data are corresponding with the touch key-press
Between data subtract each other, when obtained difference be more than preset difference value when, judge that the touch key-press is triggered once.
Optionally, the touch key-press signal processing apparatus further includes:Judging unit, for when detect it is described touch by
Key by the number of continuous trigger be M when, judge that there are trigger events for the touch key-press;M is integer and M >=2.
Optionally, the touch key-press signal processing apparatus further includes:Setting unit, for being detected when the detection unit
When not being triggered to the touch key-press, using the filtering time data as detecting whether the touch key-press is touched next time
Corresponding baseline time data when hair.
Optionally, the filter unit, for using following any filtering method, being carried out to the sampling time data
It is filtered:Medium filtering, average value filtering.
Optionally, the adjustment unit is additionally operable to detect that the touch key-press is not triggered, and the filtering time
When data are less than preset second threshold, increase the amplification coefficient, until the filtering obtained according to the amplification coefficient after increase
Time data is not less than the second threshold;The second threshold is less than the first threshold.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is stored thereon with computer instruction, described
The step of computer instruction executes the touch key-press signal processing method described in any of the above-described kind when running.
The embodiment of the present invention additionally provides another touch key-press signal processing apparatus, including memory and processor, institute
It states and is stored with computer instruction on memory, the computer instruction executes the touch key-press letter described in any of the above-described kind when running
The step of number processing method.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantages that:
When not detecting that touch key-press is triggered, and when filtering time data are more than preset first threshold, reduction is put
Big coefficient so that be not more than first threshold according to the filtering time data that the amplification coefficient after reduction obtains.Pass through setting first
Threshold value so that first threshold is not more than the difference of theoretical maximum time data and executeaaafunction data.Therefore, when there are touch key-press
When being triggered, acquisition time data can be effectively avoided to occur beyond the case where presetting range, and then from capable of effectively judging
Whether touch key-press is triggered.
Further, in addition, when detecting that touch key-press is more than 2 times by the number of continuous trigger, judgement touch key-press is deposited
In trigger event, so as to effectively avoid erroneous judgement trigger event from occurring.
Description of the drawings
Fig. 1 is a kind of flow chart of touch key-press signal processing method in the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram that sampling time data are filtered with effect in the embodiment of the present invention;
Fig. 3 is a kind of waveform diagram of existing filtering time data when not being adjusted to amplification coefficient;
Fig. 4 is a kind of waveform signal of the filtering time data after in the embodiment of the present invention being adjusted amplification coefficient
Figure;
Fig. 5 is a kind of structural schematic diagram of touch key-press signal processing apparatus in the embodiment of the present invention.
Specific implementation mode
Currently, in using the touch key-press of charge migration method control chip, it is provided with touch key-press and benchmark electricity
Hold.For each touch key-press, there are corresponding inductance capacitance Cp for corresponding metal keyboard.It is arranged when on same chip
When there are multiple touch key-press, the corresponding switching circuit of touch key-press is closed by time-multiplexed mode successively, is touched with detecting
Touch whether button is triggered.
There is one-to-one switching circuit therewith in each touch key-press, be closed in switching circuit and touched without finger
When touch key-press, is charged to reference capacitance Cx by inductance capacitance Cp, made a reservation for until the voltage on reference capacitance Cx reaches one
Value, calculates the time of entire charging process.Capacitance C on fingerfingerThe parasitism of (hereinafter referred to as Cf) between human body and the earth
Capacitance, when finger touches touch key-press, the capacitance on Cp becomes Cp+Cf.At this point, when Cp charges to reference capacitance Cx,
Since the capacitance on Cp increases, the charging time shortens.In the prior art, sentenced by the variable quantity in charging time
Whether disconnected touch key-press is triggered.
In practical applications it is found that Cp is usually smaller to the charging time data of Cx, may cannot be used directly at data
Reason.In practical applications, sampling time data (namely the obtained Cp of sampling is to charging time of Cx) are usually amplified place
Reason, sampling time data are multiplied with the amplification coefficient of setting.Therefore, it is that basis is put when judging whether to occur key-press event
Big treated sampling time data judge.
However, due to the influence of the factors such as temperature, humidity, electronic device loss, touch key-press is caused to control chip system
After running a period of time, sampling time data may change.When being triggered there are touch key-press, touch key-press
May because of amplified sampling time data beyond presetting range, lead to not normally to judge touch key-press whether by
Triggering.
In embodiments of the present invention, by setting first threshold so that first threshold is not more than theoretical maximum time data
And the difference of executeaaafunction data.Therefore, when being triggered there are touch key-press, it can effectively avoid acquisition time data beyond pre-
The case where first setting range, occurs, and then can effectively judge whether touch key-press is triggered.
It is understandable to enable above-mentioned purpose, feature and the advantageous effect of the present invention to become apparent, below in conjunction with the accompanying drawings to this
The specific embodiment of invention is described in detail.
An embodiment of the present invention provides a kind of touch key-press signal processing methods, referring to Fig.1, below by way of specific steps into
Row is described in detail.
Step S101 obtains sampling time data.
In specific implementation, the corresponding reality of some touch key-press in touch key-press control chip system can be obtained
Sampling time.
In practical applications it is found that corresponding to i-th of touch key-press, when the corresponding switching circuit of i-th of touch key-press closes
When conjunction, corresponding inductance capacitance Cpi charges to reference capacitance Cx.At this point, i-th of touch key-press corresponding actual samples time
For:During inductance capacitance Cpi acquisition charge migration to reference capacitance Cx, the voltage of reference capacitance Cx is raised to pre- from 0V
If the duration of voltage.
In embodiments of the present invention, the actual samples time of acquisition can be that touch key-press i is corresponding when secondary poll
Sampling time.In practical applications, can with predetermined period to touch key-press control chip system in all touch key-press into
Row poll, within each period, all touch key-press are polled once.
In embodiments of the present invention, the actual samples time got is usually smaller, consequently, to facilitate calculating, usually may be used
It is multiplied with preset amplification coefficient with the actual samples time that will be got, using obtained product as sampling time data.
Step S102 is filtered the sampling time data, obtains filtering time data.
In practical applications, in existing touch key-press control chip system, sampling time data can be filtered
Processing, obtains filtering time data.Later, according to the difference of filtering time data and baseline time data, with preset difference value into
Row compares, and whether detection touch key-press is triggered.To the main purpose that sampling time data are filtered, when being to sampling
Between the dither signal of moment occurs in data interference signal and touch key-press when being triggered be filtered.
In specific implementation, when being filtered to sampling time data, median filter method may be used to adopting
Sample time data is filtered, and can also be filtered to sampling time data using average value filtering method.
It is understood that in practical applications, other filter processing methods can also be used to sampling time data
It is filtered, as long as when moment in sampling time data can occur interference signal and touch key-press are triggered
Dither signal is filtered.For example, using infinite-duration impulse response (Infinite Impulse Response, IIR)
Filter processing method etc..The filter processing method provided in above-described embodiment of the embodiment of the present invention is only limitted to filter processing method
It illustrates, protection scope of the present invention is not construed as limiting.
With reference to Fig. 2-, give in the embodiment of the present invention a kind of being filtered effect to multiple repairing weld time data
Schematic diagram.
As can be known from Fig. 2, there are larger interference, corresponding signals for the sampling time data 21 got in step S101
Amplitude changes greatly.After being filtered to sampling time data 21, filtering time data 22 are obtained.By sampling time data 21
Be compared with filtering time data 22, it is known that filtering time data 22 are more smooth, corresponding signal amplitude variation compared with
It is small.
Step S103, detects whether the touch key-press is triggered.
In specific implementation, it when whether detection touch key-press is triggered, is realized by decision logic, you can with
The corresponding baseline time data of touch key-press filtering time data corresponding with the touch key-press are subtracted each other, by obtained difference with
Preset difference value is compared.When the difference of baseline time data and filtering time data be more than preset difference value, then can determine that the touch
Button is triggered once;Conversely, when the difference of baseline time data and filtering time data is not more than preset difference value, judge that this is touched
Button is touched not to be triggered.
For example, touch key-press i corresponds to filtering time data Ti, and the corresponding baseline time data of touch key-press i are T0, △
T is preset difference value.(T0-Ti) is compared with △ T, if T0-Ti > △ T, judge that touch key-press i is triggered once;If
T0-Ti≤△ T then judge that touch key-press i is not triggered.
It should be noted that in practical applications, controlling chip system for the same touch key-press, corresponding to each
One-to-one baseline time data can be arranged in touch key-press, an identical base can also be arranged to all touch key-press
Line time data.The setting of baseline time data can be set according to actual application demand, for example, can first pass through in advance
Self-checking obtains baseline time data.The embodiment of the present invention does not carry out the acquisition process of specific baseline time data specific
Description.
In embodiments of the present invention, when detecting that touch key-press is triggered, the touch key-press can be obtained and continuously touched
The number of hair.When the touch key-press is M times by the number of continuous trigger, then it can be determined that the touch key-press has triggering thing
Part;It, then can be in conjunction with the touch key-press is several times next time or later when the touch key-press is less than M by the number of continuous trigger
No the case where being triggered, to judge that the touch key-press whether there is trigger event.
It is not to judge that the touch key-press has triggering thing immediately that is, when detecting that touch key-press is triggered
Part, but judge the touch key-press whether by continuous trigger.Only when the touch key-press is by continuous trigger, the touch is just judged
There are trigger events for button.
In other words, it is that there are areas to judge whether touch key-press is triggered and judges touch key-press with the presence or absence of trigger event
It is other, in a cycle being polled to all touch key-press, it can be determined that whether some touch key-press is triggered;And
It judges whether trigger event, then needs in the M period being polled to all touch key-press, judge the touch key-press
Whether it is triggered.If in the M period being polled to all touch key-press, when which is triggered, then may be used
To judge the touch key-press, there are trigger events.
In practical applications, may occur the case where trigger event erroneous judgement in the presence of caused by the factors such as interference.
And in embodiments of the present invention, according to touch key-press by the number of continuous trigger to determine whether there are trigger event, so as to
To avoid the erroneous judgement of the trigger event caused by interference.
In other words, for touch key-press, there are trigger events and the concept that be two different that is triggered.Work as judgement
There are when trigger event, touch key-press is by continuous trigger M times;When judgement is triggered, touch key-press may only be triggered 1
It is secondary, it is also possible to multiple by continuous trigger.Only by continuous trigger M times, just judge that there are trigger events for touch key-press.
In specific implementation, M can be set according to actual application scenarios.For example, setting M=3.
In embodiments of the present invention, when detecting that touch key-press is not triggered, step S104 can be executed.
Step S104 reduces the amplification coefficient when the filtering time data are more than preset first threshold.
In specific implementation, when detecting that filtering time data are more than preset first threshold, then it can reduce amplification
Coefficient.Reduction adjustment is carried out to amplification coefficient, can be when detecting that touch key-press is not triggered next time, execution once subtracts
The operation of small amplification coefficient, until obtained filtering time data are not more than first threshold.
From in the above embodiment of the present invention it is found that the sampling time data obtained in step S101 can be touch key-press i
Corresponding sampling time data when secondary poll.After getting when time poll corresponding sampling time data, Ke Yigen
According to the corresponding sampling time data of preceding n times poll before secondary to carrying out filter processing when secondary sampling time data, worked as
The corresponding filtering time data of sampling time data of secondary poll.In practical applications, N is positive integer.For example, N=4.
In embodiments of the present invention, when being adjusted to amplification coefficient, it can detect that touch key-press does not have next time
When being triggered, reduce amplification coefficient.And so on, until when n-th detects that touch key-press is not triggered, according to subtracting
When the filtering time data that amplification coefficient after small obtains are not more than first threshold, stopping is adjusted amplification coefficient.
For example, N=1, then when time after next time, stopping is adjusted amplification coefficient.
In embodiments of the present invention, first threshold can meet following condition:X≤Y-Z;Wherein, X is first threshold, and Y is
Presupposition theory maximum time data, Z are the executeaaafunction data judged when touch key-press is triggered.Presupposition theory maximum time number
Can be according to Y:It is capable of detecting when corresponding maximum time data when touch key-press is triggered.When judgement touch key-press is triggered
Executeaaafunction data can first pass through multiple measurement data and calculate to obtain in advance.For example, can be touched according to 100 touch key-press
Corresponding sampling time data when hair, averaged empirically time data.
With reference to Fig. 3, a kind of waveform signal of existing filtering time data when not being adjusted to amplification coefficient is given
Figure.
In Fig. 3, at T1 moment~T2 moment, filtering time data continue to increase with the variation of time.The T2 moment~
T3 moment, filtering time data remain unchanged.At T3 moment~T4 moment, touch key-press is triggered.At this point, can be with from Fig. 3
Find out, at T3 moment~T4 moment, touch key-press is triggered, and filtering time data when touch key-press is triggered have exceeded software
Program presets range, at this point, software program can not normally judge whether touch key-press is triggered.
In embodiments of the present invention, with reference to Fig. 4, give in the embodiment of the present invention a kind of being adjusted amplification coefficient
The waveform diagram of filtering time data afterwards.
In Fig. 4, at T1 moment~T2 moment, filtering time data continue to increase with the variation of time.The T2 moment~
The T3 moment detects therefore filtering time data gradually reduce amplification coefficient more than first threshold so that after reduction
The filtering time data that amplification coefficient obtains are not more than first threshold.At T3 moment~T4 moment, filtering time data are kept not
Become.At T4 moment~T5 moment, touch key-press is triggered.At this point, as can be known from Fig. 4, when touch key-press is triggered, filtering time
Data are not departing from the range that presets of software program, and therefore, whether software program normally can judge touch key-press
It is triggered.
It can be seen that in embodiments of the present invention, when not detecting that touch key-press is triggered, and filtering time data are big
When preset first threshold, reduce amplification coefficient so that the filtering time data obtained according to the amplification coefficient after reduction are not
More than first threshold.By setting first threshold so that first threshold is no more than theoretical maximum time data and executeaaafunction number
According to its difference.Therefore, when being triggered there are touch key-press, it can effectively avoid acquisition time data from exceeding and preset range
Situation occurs, and then can effectively judge whether touch key-press is triggered.
In specific implementation, when detecting that touch key-press is not triggered, and filtering time data are less than preset second
When threshold value, increase amplification coefficient, until being not less than second threshold according to the filtering time data that the amplification coefficient after increase obtains;
Second threshold is less than first threshold.
With reference to Fig. 5, a kind of touch key-press signal processing apparatus 50 in the embodiment of the present invention is given, including:It obtains single
Member 501, filter unit 502, detection unit 503 and adjustment unit 504, wherein:
Acquiring unit 501, for obtaining sampling time data, the sampling time data are by the actual samples time and preset
Amplification coefficient be calculated;
Filter unit 502 obtains filtering time data for being filtered to the sampling time data;
Detection unit 503, for detecting whether the touch key-press is triggered;
Adjustment unit 504 detects that the touch key-press is not triggered for working as, and the filtering time data are more than in advance
If first threshold when, reduce the amplification coefficient, until the filtering time data obtained according to the amplification coefficient after reduction are not
More than the first threshold;The sum of the first threshold and executeaaafunction data are not more than theoretical maximum time data, the warp
It is the time data that the judgement touch key-press is triggered to test time data, and the theoretical maximum time data is to be capable of detecting when
The maximum time data that touch key-press is triggered.
In specific implementation, the adjustment unit 504 can be used for detecting whether the touch key-press is touched next time
When hair, reduce the amplification coefficient.
In specific implementation, the detection unit 503 can be used for the filtering time data and the touch key-press
Corresponding baseline time data are subtracted each other, and when obtained difference is more than preset difference value, judge that the touch key-press is triggered once.
In specific implementation, the touch key-press signal processing apparatus 50 can also include:Judging unit (does not show in Fig. 5
Go out), it can be used for when it is M to detect the touch key-press by the number of continuous trigger, judge that the touch key-press exists and touch
Hair event;M is integer and M >=2.
In specific implementation, the touch key-press signal processing apparatus 50 can also include:Setting unit (does not show in Fig. 5
Go out), it can be used for when the detection unit 503 detects that the touch key-press is not triggered, by the filtering time data
As detecting corresponding baseline time data when whether the touch key-press is triggered next time.
In specific implementation, the filter unit 502 can be used for, using following any filtering method, adopting to described
Sample time data is filtered:Medium filtering, average value filtering.
In specific implementation, the adjustment unit 504 can be also used for detect that the touch key-press is not triggered,
And the filtering time data increase the amplification coefficient, until according to the amplification after increase when being less than preset second threshold
The filtering time data that coefficient obtains are not less than the second threshold;The second threshold is less than the first threshold.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is stored thereon with computer instruction, described
The step of touch key-press signal processing method provided in any of the above-described embodiment of the present invention is provided when computer instruction is run, this
Place does not repeat.
The embodiment of the present invention additionally provides another touch key-press scanning means, including memory and processor, described to deposit
Computer instruction is stored on reservoir, what is provided in any of the above-described embodiment of the execution present invention when computer instruction is run touches
The step of touching push button signalling processing method, is not repeated herein.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with indicating relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include:ROM, RAM, disk or CD etc..
Although present disclosure is as above, present invention is not limited to this.Any those skilled in the art are not departing from this
It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
Subject to the range of restriction.
Claims (16)
1. a kind of touch key-press signal processing method, which is characterized in that including:
Sampling time data are obtained, the sampling time data are calculated by actual samples time and preset amplification coefficient;
The sampling time data are filtered, filtering time data are obtained;
Detect whether the touch key-press is triggered;
When detecting that the touch key-press is not triggered, and when the filtering time data are more than preset first threshold, reduce
The amplification coefficient, until being not more than the first threshold according to the filtering time data that the amplification coefficient after reduction obtains;Institute
It states the sum of first threshold and executeaaafunction data and is not more than theoretical maximum time data, the executeaaafunction data are described in judgement
The time data that touch key-press is triggered, the theoretical maximum time data are the maximum for being capable of detecting when touch key-press and being triggered
Time data.
2. touch key-press signal processing method as described in claim 1, which is characterized in that described to be carried out to the amplification coefficient
Adjustment, including:
When detecting that the touch key-press is not triggered next time, reduce the amplification coefficient.
3. touch key-press signal processing method as described in claim 1, which is characterized in that the detection touch key-press is
It is no to be triggered, including:
Filtering time data baseline time data corresponding with the touch key-press are subtracted each other, when obtained difference is more than in advance
If when difference, judging that the touch key-press is triggered once.
4. touch key-press signal processing method as claimed in claim 3, which is characterized in that further include:
When it is M to detect the touch key-press by the number of continuous trigger, judge that there are trigger events for the touch key-press;M
For integer and M >=2.
5. touch key-press signal processing method as claimed in claim 3, which is characterized in that further include:
When detecting that the touch key-press is not triggered, pressed using the filtering time data as the touch is detected next time
Key corresponding baseline time data when whether being triggered.
6. touch key-press signal processing method as described in claim 1, which is characterized in that using following any filtering side
Method is filtered the sampling time data:
Medium filtering, average value filtering.
7. touch key-press signal processing method as described in claim 1, which is characterized in that further include:
When detecting that the touch key-press is not triggered, and when the filtering time data are less than preset second threshold, increase
The amplification coefficient, until being not less than the second threshold according to the filtering time data that the amplification coefficient after increase obtains;Institute
It states second threshold and is less than the first threshold.
8. a kind of touch key-press signal processing apparatus, which is characterized in that including:
Acquiring unit, for obtaining sampling time data, the sampling time data are by actual samples time and preset amplification
Coefficient is calculated;
Filter unit obtains filtering time data for being filtered to the sampling time data;
Detection unit, for detecting whether the touch key-press is triggered;
Adjustment unit, for when detecting that the touch key-press is not triggered, and the filtering time data are more than preset the
When one threshold value, reduce the amplification coefficient, until being not more than institute according to the filtering time data that the amplification coefficient after reduction obtains
State first threshold;The sum of the first threshold and executeaaafunction data are not more than theoretical maximum time data, the executeaaafunction
Data are the time data that the judgement touch key-press is triggered, the theoretical maximum time data be capable of detecting when to touch by
The maximum time data that key is triggered.
9. touch key-press signal processing apparatus as claimed in claim 8, which is characterized in that the adjustment unit, under
When one-time detection is not triggered to the touch key-press, reduce the amplification coefficient.
10. touch key-press signal processing apparatus as claimed in claim 8, which is characterized in that the detection unit is used for institute
It states filtering time data baseline time data corresponding with the touch key-press to subtract each other, when obtained difference is more than preset difference value
When, judge that the touch key-press is triggered once.
11. touch key-press signal processing apparatus as claimed in claim 10, which is characterized in that further include:Judging unit is used for
When it is M to detect the touch key-press by the number of continuous trigger, judge that there are trigger events for the touch key-press;M is whole
Number and M >=2.
12. touch key-press signal processing apparatus as claimed in claim 10, which is characterized in that further include:Setting unit is used for
When the detection unit detects that the touch key-press is not triggered, using the filtering time data as detecting institute next time
State corresponding baseline time data when whether touch key-press is triggered.
13. touch key-press signal processing apparatus as claimed in claim 8, which is characterized in that the filter unit, for using
Following any filtering method, is filtered the sampling time data:Medium filtering, average value filtering.
14. touch key-press signal processing apparatus as claimed in claim 8, which is characterized in that the adjustment unit is additionally operable to work as
It detects that the touch key-press is not triggered, and when the filtering time data are less than preset second threshold, puts described in increase
Big coefficient, until being not less than the second threshold according to the filtering time data that the amplification coefficient after increase obtains;Described second
Threshold value is less than the first threshold.
15. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction
Perform claim requires the step of 1~7 any one of them touch key-press signal processing method when operation.
Computer is stored with 16. a kind of touch key-press signal processing apparatus, including memory and processor, on the memory to refer to
It enables, which is characterized in that perform claim requires at 1~7 any one of them touch key-press signal when the computer instruction operation
The step of reason method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810272835.0A CN108512542B (en) | 2018-03-29 | 2018-03-29 | Touch key signal processing method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810272835.0A CN108512542B (en) | 2018-03-29 | 2018-03-29 | Touch key signal processing method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108512542A true CN108512542A (en) | 2018-09-07 |
CN108512542B CN108512542B (en) | 2022-02-11 |
Family
ID=63377898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810272835.0A Active CN108512542B (en) | 2018-03-29 | 2018-03-29 | Touch key signal processing method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108512542B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109245753A (en) * | 2018-11-13 | 2019-01-18 | 珠海巨晟科技股份有限公司 | The sub key system of capacitance type touch key |
CN111490768A (en) * | 2020-04-27 | 2020-08-04 | 南京天擎汽车电子有限公司 | Touch identification method and device of touch key, vehicle, equipment and medium |
CN112073047A (en) * | 2020-09-09 | 2020-12-11 | 上海东软载波微电子有限公司 | Capacitive touch key system and control method thereof |
CN113126813A (en) * | 2021-03-01 | 2021-07-16 | 卧安科技(深圳)有限公司 | Correction method and device for key misjudgment, terminal equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101977049A (en) * | 2010-11-04 | 2011-02-16 | 江苏惠通集团有限责任公司 | Signal processing method and processing system thereof for key identification |
US20120268144A1 (en) * | 2011-04-21 | 2012-10-25 | Silicon Works Co., Ltd | Touch sensing circuit |
CN104079283A (en) * | 2013-03-29 | 2014-10-01 | 北京谊安医疗系统股份有限公司 | Capacitive touch key detection circuit |
CN203909739U (en) * | 2013-03-13 | 2014-10-29 | 3M创新有限公司 | Touch sensitive equipment |
CN104935320A (en) * | 2014-03-20 | 2015-09-23 | 安凯(广州)微电子技术有限公司 | Method for detecting state of capacitive touch key |
CN105790747A (en) * | 2016-02-25 | 2016-07-20 | 广东美的厨房电器制造有限公司 | Touch key triggering detection method and triggering detection device |
US20160226489A1 (en) * | 2015-02-03 | 2016-08-04 | Denso Wave Incorporated | Touch panel device |
-
2018
- 2018-03-29 CN CN201810272835.0A patent/CN108512542B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101977049A (en) * | 2010-11-04 | 2011-02-16 | 江苏惠通集团有限责任公司 | Signal processing method and processing system thereof for key identification |
US20120268144A1 (en) * | 2011-04-21 | 2012-10-25 | Silicon Works Co., Ltd | Touch sensing circuit |
CN203909739U (en) * | 2013-03-13 | 2014-10-29 | 3M创新有限公司 | Touch sensitive equipment |
CN104079283A (en) * | 2013-03-29 | 2014-10-01 | 北京谊安医疗系统股份有限公司 | Capacitive touch key detection circuit |
CN104935320A (en) * | 2014-03-20 | 2015-09-23 | 安凯(广州)微电子技术有限公司 | Method for detecting state of capacitive touch key |
US20160226489A1 (en) * | 2015-02-03 | 2016-08-04 | Denso Wave Incorporated | Touch panel device |
CN105790747A (en) * | 2016-02-25 | 2016-07-20 | 广东美的厨房电器制造有限公司 | Touch key triggering detection method and triggering detection device |
Non-Patent Citations (1)
Title |
---|
周志永: "低成本电容式触摸按键设计", 《机电工程》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109245753A (en) * | 2018-11-13 | 2019-01-18 | 珠海巨晟科技股份有限公司 | The sub key system of capacitance type touch key |
CN111490768A (en) * | 2020-04-27 | 2020-08-04 | 南京天擎汽车电子有限公司 | Touch identification method and device of touch key, vehicle, equipment and medium |
CN112073047A (en) * | 2020-09-09 | 2020-12-11 | 上海东软载波微电子有限公司 | Capacitive touch key system and control method thereof |
CN113126813A (en) * | 2021-03-01 | 2021-07-16 | 卧安科技(深圳)有限公司 | Correction method and device for key misjudgment, terminal equipment and storage medium |
CN113126813B (en) * | 2021-03-01 | 2023-03-21 | 卧安科技(深圳)有限公司 | Correction method and device for key misjudgment, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108512542B (en) | 2022-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108512542A (en) | Touch key-press signal processing method and device, computer readable storage medium | |
JP7210633B2 (en) | Water robustness and detection on capacitive buttons | |
CN108259044B (en) | Touch key scanning method and device and computer readable storage medium | |
CN101080689B (en) | Methods and systems for detecting noise in a position sensor using minor shifts in sensing frequency | |
US8339286B2 (en) | Baseline update procedure for touch sensitive device | |
CN100377055C (en) | Interpretation method for touch controlled induction system | |
JP5707502B2 (en) | Method for determining capacitance type touch buttons | |
CN105302383B (en) | A kind of capacitive touch screen anti-disturbance method and equipment | |
CN101185053A (en) | Touch sensor and control with random pulse spacing | |
CN101164036A (en) | Method and apparatus for touch sensor with interference rejection | |
CN105045443A (en) | Semiconductor device, display system, detection method, and detection program | |
CN104881174B (en) | A kind of method and device of dynamic adjustment sensitivity of touch screen | |
CN107003783B (en) | A kind of key detecting method and device | |
TW201339935A (en) | Capacitive touch control system and touch control device and touch control method using the same | |
KR20180096568A (en) | System and method for reducing noise in a sensor system | |
CN103023476A (en) | Response method and control system of capacitive sensing type touch key | |
CN110275636A (en) | A kind of touch-control anti-fluttering method, device, system, terminal device and vehicle | |
CN104808847A (en) | Anti-interference method and device for detection of touch screen, touch sensor and touch terminal | |
CN113037268A (en) | Method and device for adjusting key touch threshold | |
US8378987B2 (en) | Sensing method and circuit for a capacitive touch panel | |
CN113126815B (en) | Key response control method and device, terminal equipment and storage medium | |
CN102236481A (en) | Approach detection method of capacitance touch plate and application thereof | |
WO2010144152A9 (en) | Multitouch input to touchpad derived from positive slope detection data | |
CN115549680B (en) | Anti-interference detection method and detection chip for touch keys | |
CN102495691B (en) | touch point sensing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |