CN106877854B - Detection method and detection device for touch keys and electrical equipment - Google Patents

Detection method and detection device for touch keys and electrical equipment Download PDF

Info

Publication number
CN106877854B
CN106877854B CN201710072228.5A CN201710072228A CN106877854B CN 106877854 B CN106877854 B CN 106877854B CN 201710072228 A CN201710072228 A CN 201710072228A CN 106877854 B CN106877854 B CN 106877854B
Authority
CN
China
Prior art keywords
key
preset threshold
state
sensing signal
touch
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.)
Active
Application number
CN201710072228.5A
Other languages
Chinese (zh)
Other versions
CN106877854A (en
Inventor
史龙
贺财兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
Guangdong Midea Kitchen Appliances Manufacturing Co Ltd
Original Assignee
Midea Group Co Ltd
Guangdong Midea Kitchen Appliances Manufacturing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, Guangdong Midea Kitchen Appliances Manufacturing Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710072228.5A priority Critical patent/CN106877854B/en
Publication of CN106877854A publication Critical patent/CN106877854A/en
Application granted granted Critical
Publication of CN106877854B publication Critical patent/CN106877854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K2217/00Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
    • H03K2217/0036Means reducing energy consumption
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K2217/00Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
    • H03K2217/94Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated
    • H03K2217/96Touch switches
    • H03K2217/96038Inductive touch switches

Abstract

The invention provides a detection method and a detection device for a touch key and electrical equipment with the touch key, wherein the detection method for the touch key comprises the following steps: when the key is in an un-triggered state, if the detected strength of the touch sensing signal is increased to be larger than a second preset threshold value, setting the state of the key to be a triggered state; when the key is in a trigger state, if the strength of the touch sensing signal is reduced to be smaller than a first preset threshold value, setting the state of the key to be in an unfired state; if the intensity of the touch sensing signal is changed to be greater than or equal to a first preset threshold value and less than or equal to a second preset threshold value, keeping the state of the key unchanged; the first preset threshold is smaller than the second preset threshold. According to the technical scheme, the two trigger thresholds are adopted to form the hysteresis interval, so that the problem of repeated triggering when the strength of the touch sensing signal fluctuates in a small range is solved, and the use experience of a user is improved.

Description

Detection method and detection device for touch keys and electrical equipment
Technical Field
The invention relates to the technical field of touch keys, in particular to a detection method of a touch key, a detection device of the touch key and electrical equipment with the touch key.
Background
With the gradual improvement of the life quality of consumers, the requirements on the aesthetics and the functionality of used electric equipment are higher and higher. Common mechanical keys or switches are not easy to clean and not beautiful enough because they are easily stained with dust or stains in electrical equipment, and therefore, touch keys are increasingly popular with consumers. In the use process of the existing touch key, when the strength of the touch induction signal is detected to be greater than a certain value, the key is judged to be triggered. However, in the process of practicing the invention, the inventor finds that the prior art has at least the following problems: when the intensity of the detected touch sensing signal fluctuates above and below the trigger threshold, the problem of repeated triggering may occur. When different users operate the electrical equipment with the touch keys due to different use habits, repeated triggering caused by fluctuation of the triggering threshold value influences the use experience of the users.
Therefore, it is an urgent problem to solve how to prevent the touch key from being repeatedly triggered when the detected trigger signal value fluctuates up and down within a small range.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
Therefore, an object of the present invention is to provide a method for detecting a touch key.
Another object of the present invention is to provide a device for detecting a touch key.
Still another object of the present invention is to provide an electrical device with touch keys.
In order to achieve the above object, according to a technical solution of a first aspect of the present invention, a method for detecting a touch key is provided, including: detecting the strength of a touch sensing signal of a key; when the key is in an un-triggered state, if the strength of the touch sensing signal is increased to be larger than a second preset threshold value, setting the state of the key to be a triggered state; when the key is in a trigger state, if the strength of the touch sensing signal is reduced to be smaller than a first preset threshold value, setting the state of the key to be in an unfired state; if the intensity of the touch sensing signal is changed to be greater than or equal to a first preset threshold value and less than or equal to a second preset threshold value, keeping the state of the key unchanged; the first preset threshold is smaller than the second preset threshold.
According to the detection method of the touch key in the technical scheme of the first aspect of the invention, when the key is in an un-triggered state, if the detected strength of the touch sensing signal is increased to be larger than a second preset threshold value, the state of the key is set to be a triggered state; when the key is in a trigger state, if the detected strength of the touch sensing signal is reduced to be smaller than a first preset threshold value, setting the state of the key to be in a non-trigger state; if the intensity of the touch sensing signal is changed to be greater than or equal to the first preset threshold and less than or equal to the second preset threshold, the state is kept unchanged no matter what state the key is in. Taking a range which is greater than or equal to a first preset threshold and less than or equal to a second preset threshold as a hysteresis interval, and when the key is in a trigger state which is greater than the second preset threshold, if the strength of the touch sensing signal is reduced to the hysteresis interval, keeping the key in the trigger state; when the key is in an unfired state smaller than a first preset threshold value, if the strength of the touch sensing signal is increased to a hysteresis interval, the key is still in the unfired state. The hysteresis interval is set, so that the repeated triggering condition can not occur when the intensity of the touch sensing signal fluctuates above and below the second preset threshold and the first preset threshold.
The method for detecting the touch key according to the technical scheme of the invention can also have the following technical characteristics:
according to an aspect of the present invention, in the above aspect, preferably, the method further includes: when the key is in an unfired state, if the strength of the touch sensing signal changes within a first upper limit value and a first lower limit value which take a first preset threshold value as a reference, the key is determined to be still in the unfired state, wherein the first upper limit value is smaller than or equal to a second preset threshold value.
In the technical scheme, a first upper limit value and a first lower limit value are set by taking a first preset threshold value as a reference, and the first upper limit value is smaller than or equal to a second preset threshold value, when the key is in an unfired state, if the intensity of the touch sensing signal changes between the first upper limit value and the first lower limit value and does not reach the second preset threshold value, the key is considered not to be triggered, and the key is determined to be still in the unfired state. The first upper limit value and the first lower limit value are set within a range, and when the strength of the touch sensing signal fluctuates within a small range when the key is not triggered, the key is considered to be kept in the same state. If the strength of the touch sensing signal is smaller than the first lower limit value, the touch is considered invalid, whether the key is touched or not is not judged, and if the strength of the touch sensing signal is larger than the first upper limit value, whether the strength of the touch sensing signal is larger than a second preset threshold value or not is judged. The first upper limit value and the first lower limit value are set, so that the system can not judge whether the key is touched all the time, and the electric energy is saved.
According to an aspect of the present invention, in the above aspect, preferably, the method further includes: when the key is in the trigger state, if the strength of the touch sensing signal changes within a second upper limit value and a second lower limit value which take a second preset threshold value as a reference, the key is still determined to be in the trigger state, wherein the second lower limit value is greater than or equal to the first preset threshold value.
In the technical scheme, a second upper limit value and a second lower limit value are set by taking a second preset threshold value as a reference, and the second lower limit value is greater than or equal to the first preset threshold value, when the key is in the trigger state, if the intensity of the touch sensing signal changes between the second upper limit value and the second lower limit value and does not reach the first preset threshold value, the key is still in the trigger state. The second upper limit value and the second lower limit value are set within a range, so that when the key is in a trigger state, and the strength of the touch sensing signal fluctuates within a small range, the key is considered to be always kept in the trigger state. If the strength of the touch sensing signal is greater than the second upper limit value, the touch is considered to be stable, the key is always in a trigger state, and if the strength of the touch sensing signal is less than the second lower limit value, whether the strength of the touch sensing signal is less than a first preset threshold value is judged. The second upper limit value and the second lower limit value are set, so that the system can not judge whether the key is touched all the time, and the electric energy is saved.
According to an aspect of the present invention, in the above aspect, preferably, the method further includes: and if the set key is in a trigger state, sending out prompt information.
In the technical scheme, if the strength of the touch sensing signal is increased to be larger than a second preset threshold value when the key is in an unfired state, the key is set to be in a triggered state, and prompt information is sent out in order to remind a user that the key is triggered. The prompt message may be in the form of vibration, buzzer sound, light, and preferably the time is set for the key vibration. Therefore, when the key is confirmed to be triggered, the user is prompted, and the use experience of the user can be improved.
According to an aspect of the present invention, in the above aspect, preferably, the method further includes: and if the key is in the trigger state and exceeds the preset time, sending alarm information.
In the technical scheme, if the strength of the touch sensing signal is always greater than a first preset threshold value after the key is triggered, the key is always in a trigger state. If the key is in the triggering state and exceeds the preset time, the triggering of the key is considered to be abnormal, and at the moment, alarm information is sent out to remind a user of further operation.
According to the technical solution of the second aspect of the present invention, there is also provided a device for detecting a touch key, including: the detection unit is used for detecting the strength of the touch sensing signal of the key; the first setting unit is used for setting the state of the key to be a trigger state if the strength of the touch sensing signal is increased to be larger than a second preset threshold value when the key is in an unfired state; the second setting unit is used for setting the state of the key to be in an unfired state if the strength of the touch sensing signal is reduced to be smaller than a first preset threshold value when the key is in the triggered state; the third setting unit is used for keeping the state of the key unchanged when the intensity of the touch sensing signal is changed to be greater than or equal to the first preset threshold value and less than or equal to the second preset threshold value; the first preset threshold is smaller than the second preset threshold.
According to the detection device for the touch key in the technical scheme of the second aspect of the invention, when the key is in an unfired state, if the strength of the touch sensing signal detected by the detection unit is increased to be larger than a second preset threshold value, the first setting unit sets the state of the key to be a triggered state; when the key is in a triggering state, if the strength of the touch sensing signal detected by the detection unit is reduced to be smaller than a first preset threshold value, the second setting unit sets the state of the key to be in a non-triggering state; if the detected intensity of the touch sensing signal is changed to be greater than or equal to the first preset threshold and less than or equal to the second preset threshold, the third setting unit keeps the state of the key unchanged no matter what state the key is in. Taking a range which is greater than or equal to a first preset threshold and less than or equal to a second preset threshold as a hysteresis interval, and when the key is in a trigger state which is greater than the second preset threshold, if the strength of the touch sensing signal is reduced to the hysteresis interval, keeping the key in the trigger state; when the key is in an unfired state smaller than a first preset threshold value, if the strength of the touch sensing signal is increased to a hysteresis interval, the key is still in the unfired state. The hysteresis interval is set, so that the repeated triggering condition can not occur when the intensity of the touch sensing signal fluctuates above and below the second preset threshold and the first preset threshold.
According to an aspect of the present invention, in the above aspect, it is preferable that the method further includes: the first hysteresis unit is used for determining that the key is still in the non-triggered state if the strength of the touch sensing signal changes within a first upper limit value and a first lower limit value which take a first preset threshold value as a reference when the key is in the non-triggered state, wherein the first upper limit value is less than or equal to a second preset threshold value.
In the technical scheme, a first upper limit value and a first lower limit value are set by taking a first preset threshold value as a reference, and the first upper limit value is smaller than or equal to a second preset threshold value, when the key is in an unfired state, if the intensity of the touch sensing signal changes between the first upper limit value and the first lower limit value and does not reach the second preset threshold value, the key is considered to be unfired, and the first hysteresis unit determines that the key is still in the unfired state. The first upper limit value and the first lower limit value are set within a range, and when the strength of the touch sensing signal fluctuates within a small range when the key is not triggered, the key is considered to be kept in the same state. If the strength of the touch sensing signal is smaller than the first lower limit value, the touch is considered invalid, whether the key is touched or not is not judged, and if the strength of the touch sensing signal is larger than the first upper limit value, whether the strength of the touch sensing signal is larger than a second preset threshold value or not is judged. The first upper limit value and the first lower limit value are set, so that the system can not judge whether the key is touched all the time, and the electric energy is saved.
According to an aspect of the present invention, in the above aspect, it is preferable that the method further includes: and the second hysteresis unit is used for determining that the key is still in the trigger state if the strength of the touch sensing signal changes within a second upper limit value and a second lower limit value which take a second preset threshold value as a reference when the key is in the trigger state, wherein the second lower limit value is greater than or equal to the first preset threshold value.
In the technical scheme, a second upper limit value and a second lower limit value are set by taking a second preset threshold value as a reference, and the second lower limit value is greater than or equal to the first preset threshold value, when the key is in the trigger state, if the intensity of the touch sensing signal changes between the second upper limit value and the second lower limit value and does not reach the first preset threshold value, the second hysteresis unit determines that the key is still in the trigger state. The second upper limit value and the second lower limit value may be set within a range in which the key is in the trigger state, and the key is considered to be kept in the trigger state when the intensity of the touch sensing signal fluctuates within a small range. If the strength of the touch sensing signal is greater than the second upper limit value, the touch is considered to be stable, the key is always in a trigger state, and if the strength of the touch sensing signal is less than the second lower limit value, whether the strength of the touch sensing signal is less than a first preset threshold value is judged. The second upper limit value and the second lower limit value are set, so that the system can not judge whether the key is touched all the time, and the electric energy is saved.
According to an aspect of the present invention, in the above aspect, it is preferable that the method further includes: and the prompting unit is used for sending out prompting information when the set key is in a trigger state.
In the technical scheme, if the strength of the touch sensing signal is increased to be larger than a second preset threshold value when the key is in an unfired state, the key is set to be in a triggered state, and in order to remind a user that the key is triggered, the prompting unit sends out prompting information. The prompt message may be in the form of vibration, buzzer sound, light, and preferably the time is set for the key vibration. Therefore, the user is prompted when the key is confirmed to be triggered, and the use experience of the user can be improved.
According to an aspect of the present invention, in the above aspect, it is preferable that the method further includes: and the alarm unit is used for sending alarm information when the key is in the trigger state and exceeds the preset time.
In the technical scheme, if the strength of the touch sensing signal is always greater than a first preset threshold value after the key is triggered, the key is always in a trigger state. If the key is in the triggering state and exceeds the preset time, the triggering of the key is considered to be abnormal, and at the moment, the alarm unit sends out alarm information to remind a user of further operation.
According to the technical solution of the third aspect of the present invention, there is also provided an electrical device with a touch key, including: the detection device for the touch key set proposed in any technical solution of the second aspect; and touching the key.
According to the electrical equipment with the touch key in the technical scheme of the third aspect of the invention, the detection device of the touch key judges the state of the touch key by detecting the strength of the touch induction signal on the touch key. The electrical equipment with the touch key in the technical solution has all the beneficial effects of the detection device for the touch key in the technical solution of the second aspect, and details are not repeated here.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 shows a schematic flow diagram of a method of detecting a touch key according to one embodiment of the invention;
FIG. 2 shows a schematic flow chart of a method of detecting a touch key according to yet another embodiment of the invention;
FIG. 3 shows a schematic block diagram of a detection arrangement for a touch key according to an embodiment of the invention;
FIG. 4 shows a schematic block diagram of an electrical device with touch keys according to one embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a process for detection of a capacitive touch key according to one embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a process of detection of a capacitive touch key according to yet another embodiment of the invention;
fig. 7 is a schematic diagram illustrating a detection process of a capacitive touch key according to still another embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Fig. 1 shows a schematic flow diagram of a method of detecting a touch key according to an embodiment of the present invention.
As shown in fig. 1, a method for detecting a touch key according to an embodiment of the present invention includes: step S102, detecting the strength of a touch sensing signal of a key; step S104, when the key is in the non-trigger state, if the strength of the touch sensing signal is increased to be larger than a second preset threshold value, setting the state of the key to be the trigger state; step S106, when the key is in the trigger state, if the strength of the touch sensing signal is reduced to be smaller than a first preset threshold value, the state of the key is set to be in the non-trigger state; step S108, if the intensity of the touch sensing signal is changed to be greater than or equal to a first preset threshold value and less than or equal to a second preset threshold value, keeping the state of the key unchanged; the first preset threshold is smaller than the second preset threshold.
In this embodiment, step S102 detects the touch sensing signal strength of the key. When the key is in the non-triggered state, if the detected strength of the touch sensing signal is increased to be greater than a second preset threshold, setting the state of the key to be a triggered state in step S104; when the key is in the trigger state, if the detected strength of the touch sensing signal is reduced to be smaller than a first preset threshold value, setting the state of the key to be in the non-trigger state in step S106; if the intensity of the touch sensing signal changes to be greater than or equal to the first preset threshold and less than or equal to the second preset threshold, step S108 keeps the state of the key unchanged no matter what state the key is in.
And taking the range which is greater than or equal to the first preset threshold and less than or equal to the second preset threshold as a hysteresis interval, when the key is in a trigger state which is greater than the second preset threshold, if the strength of the touch sensing signal is reduced to the hysteresis interval, the key is still in the trigger state and is unchanged, and when the key is in an un-trigger state which is less than the first preset threshold, if the strength of the touch sensing signal is increased to the hysteresis interval, the key is still in the un-trigger state. The hysteresis interval is set, so that the repeated triggering condition can not occur when the intensity of the touch sensing signal fluctuates above and below the second preset threshold and the first preset threshold.
Fig. 2 shows a schematic flow chart of a method of detecting a touch key according to yet another embodiment of the present invention.
As shown in fig. 2, preferably, on the basis of the method for detecting a touch key shown in fig. 1, the method further includes: step S110, when the key is in the non-triggered state, if the strength of the touch sensing signal changes within a first upper limit and a first lower limit which are based on a first preset threshold, determining that the key is still in the non-triggered state, wherein the first upper limit is less than or equal to a second preset threshold.
In this embodiment, a first upper limit value and a first lower limit value are set with reference to a first preset threshold value, and the first upper limit value is less than or equal to a second preset threshold value, when the key is in an un-triggered state, if the intensity of the touch sensing signal changes between the first upper limit value and the first lower limit value, and does not reach the second preset threshold value, the key is considered to be not triggered, and it is determined that the key is still in the un-triggered state.
The first upper limit value and the first lower limit value can be determined according to whether the requirement for key touch sensing in the practical situation of the invention is sensitive, the first upper limit value and the first lower limit value can be equal to or unequal to each other, and the first upper limit value is less than or equal to a second preset threshold value. The first upper limit value and the first lower limit value are set within a range, and when the strength of the touch sensing signal fluctuates within a small range when the key is not triggered, the key is considered to be kept in the same state. If the strength of the touch sensing signal is smaller than the first lower limit value, the touch is considered invalid, whether the key is touched or not is not judged, and if the strength of the touch sensing signal is larger than the first upper limit value, whether the strength of the touch sensing signal is larger than a second preset threshold value or not is judged. The first upper limit value and the first lower limit value are set, so that the system can not judge whether the key is touched all the time, and the electric energy is saved.
Preferably, the method further includes step S112, when the key is in the trigger state, if the strength of the touch sensing signal changes within a second upper limit value and a second lower limit value which are based on a second preset threshold value, it is determined that the key is still in the trigger state, where the second lower limit value is greater than or equal to the first preset threshold value.
In this embodiment, a second upper limit value and a second lower limit value are set with reference to a second preset threshold value, and the second lower limit value is greater than or equal to the first preset threshold value, when the key is in the trigger state, if the intensity of the touch sensing signal changes between the second upper limit value and the second lower limit value, and does not reach the first preset threshold value, the key is considered to be still in the trigger state.
The second upper limit value and the second lower limit value may be determined according to whether the requirement for key touch sensing is sensitive in the practical situation of the invention, the second upper limit value and the second lower limit value may be equal to or different from each other, and the second lower limit value is greater than or equal to the first preset threshold value. The second upper limit value and the second lower limit value may be set within a range in which the key is in the trigger state, and the key is considered to be kept in the trigger state when the intensity of the touch sensing signal fluctuates within a small range. If the strength of the touch sensing signal is greater than the second upper limit value, the touch is considered to be stable, the key is always in a trigger state, and if the strength of the touch sensing signal is less than the second lower limit value, whether the strength of the touch sensing signal is less than a first preset threshold value is judged. The second upper limit value and the second lower limit value are set, so that the system can not judge whether the key is touched all the time, and the electric energy is saved.
Preferably, the method further comprises step S114, if the setting key is in the trigger state, sending out a prompt message.
In this embodiment, if the strength of the touch sensing signal is increased to be greater than the second preset threshold value when the key is in the non-triggered state, the key is set to be in the triggered state, and in order to remind the user that the key is triggered, a prompt message is sent. The prompt message may be in the form of vibration, buzzer sound, light, and preferably the time is set for the key vibration. Therefore, when the key is confirmed to be triggered, the user is prompted, and the use experience of the user can be improved.
Preferably, the method further comprises step S116, if the key is in the triggering state for more than the preset time, sending out an alarm message.
In this embodiment, if the strength of the touch sensing signal is always greater than the first preset threshold after the key is triggered, the key is always in the triggered state. If the key is in the triggering state and exceeds the preset time, the triggering of the key is considered to be abnormal, and at the moment, alarm information is sent out to remind a user of further operation.
Fig. 3 shows a schematic block diagram of a detection apparatus of a touch key according to an embodiment of the present invention.
As shown in fig. 3, the apparatus 300 for detecting a touch key according to an embodiment of the present invention includes a detecting unit 302 for detecting a touch sensing signal strength of the key; the first setting unit 304 is configured to, when the key is in an unfired state, set the state of the key to a triggered state if the strength of the touch sensing signal is increased to be greater than a second preset threshold; the second setting unit 306 is configured to set the state of the key to be an un-triggered state if the strength of the touch sensing signal is reduced to be smaller than a first preset threshold when the key is in the triggered state; a third setting unit 308, configured to keep the state of the key unchanged when the intensity of the touch sensing signal changes to be greater than or equal to the first preset threshold and less than or equal to the second preset threshold; the first preset threshold is smaller than the second preset threshold.
In this embodiment, when a key is in an unfired state, if the strength of the touch sensing signal detected by the detection unit 302 is increased to be greater than a second preset threshold, the first setting unit 304 sets the state of the key to be in a triggered state; when the key is in the trigger state, if the strength of the touch sensing signal detected by the detection unit 302 is reduced to be smaller than a first preset threshold, the second setting unit 306 sets the state of the key to be in the non-trigger state; if the intensity of the touch sensing signal detected by the detecting unit 302 changes to be greater than or equal to the first preset threshold and less than or equal to the second preset threshold, the third setting unit 308 keeps the state of the key unchanged no matter what state the key is in. Taking a range which is greater than or equal to a first preset threshold and less than or equal to a second preset threshold as a hysteresis interval, and when the key is in a trigger state which is greater than the second preset threshold, if the strength of the touch sensing signal is reduced to the hysteresis interval, keeping the key in the trigger state; when the key is in an unfired state smaller than a first preset threshold value, if the strength of the touch sensing signal is increased to a hysteresis interval, the key is still in the unfired state. The hysteresis interval is set, so that the repeated triggering condition can not occur when the intensity of the touch sensing signal fluctuates above and below the second preset threshold and the first preset threshold.
Preferably, the apparatus 300 for detecting a touch key further includes a first hysteresis unit 310, configured to determine that the key is still in an un-triggered state if the strength of the touch sensing signal varies within a first upper limit and a first lower limit that are based on a first preset threshold when the key is in the un-triggered state, where the first upper limit is smaller than or equal to a second preset threshold.
In this embodiment, with a first preset threshold as a reference, a first upper limit and a first lower limit are set, and the first upper limit is less than or equal to a second preset threshold, when the key is in an unfired state, if the intensity of the touch sensing signal changes between the first upper limit and the first lower limit, and the second preset threshold is not reached, the key is considered to be unfired, and the first hysteresis unit 310 determines that the key is still in the unfired state.
The first upper limit value and the first lower limit value can be determined according to whether the requirement for key touch sensing in the practical situation of the invention is sensitive, the first upper limit value and the first lower limit value can be equal to or unequal to each other, and the first upper limit value is less than or equal to a second preset threshold value. The first upper limit value and the first lower limit value are set within a range, and when the strength of the touch sensing signal fluctuates within a small range when the key is not triggered, the key is considered to be kept in the same state. If the strength of the touch sensing signal is smaller than the first lower limit value, the touch is considered invalid, whether the key is touched or not is not judged, and if the strength of the touch sensing signal is larger than the first upper limit value, whether the strength of the touch sensing signal is larger than a second preset threshold value or not is judged. The first upper limit value and the first lower limit value are set, so that the system can not judge whether the key is touched all the time, and the electric energy is saved.
Preferably, the touch control device further includes a second hysteresis unit 312, configured to determine that the key is still in the trigger state if the intensity of the touch sensing signal changes within a second upper limit and a second lower limit that are based on a second preset threshold when the key is in the trigger state, where the second lower limit is greater than or equal to the first preset threshold.
In this embodiment, a second upper limit value and a second lower limit value are set based on a second preset threshold value, and the second lower limit value is greater than or equal to the first preset threshold value, when the key is in the trigger state, if the intensity of the touch sensing signal changes between the second upper limit value and the second lower limit value, and does not reach the first preset threshold value, the second hysteresis unit 312 determines that the key is still in the trigger state.
The second upper limit value and the second lower limit value may be determined according to whether the requirement for key touch sensing is sensitive in the practical situation of the invention, the second upper limit value and the second lower limit value may be equal to or different from each other, and the second lower limit value is greater than or equal to the first preset threshold value. The second upper limit value and the second lower limit value may be set within a range in which the key is in the trigger state, and the key is considered to be kept in the trigger state when the intensity of the touch sensing signal fluctuates within a small range. If the strength of the touch sensing signal is greater than the second upper limit value, the touch is considered to be stable, the key is always in a trigger state, and if the strength of the touch sensing signal is less than the second lower limit value, whether the strength of the touch sensing signal is less than a first preset threshold value is judged. The second upper limit value and the second lower limit value are set, so that the system can not judge whether the key is touched all the time, and the electric energy is saved.
Preferably, the device further comprises a prompting unit 314, configured to send a prompting message when the setting key is in the trigger state.
In this embodiment, if the strength of the touch sensing signal is increased to be greater than the second preset threshold value when the key is in the non-triggered state, the key is set to be in the triggered state, and the prompting unit 314 sends a prompting message to remind the user that the key is triggered. The prompt message may be in the form of vibration, buzzer sound, light, and preferably the time is set for the key vibration. Therefore, the user is prompted when the key is confirmed to be triggered, and the use experience of the user can be improved.
Preferably, an alarm unit 316 is further included for sending an alarm message when the key is in the triggered state for more than a preset time.
In this embodiment, if the strength of the touch sensing signal is always greater than the first preset threshold after the key is triggered, the key is always in the triggered state. If the key is in the triggering state for more than the preset time, the triggering of the key is considered to be abnormal, and at this time, the alarm unit 316 sends out alarm information to remind the user of further operation.
FIG. 4 shows a schematic block diagram of an electrical device with touch keys according to one embodiment of the present invention.
As shown in fig. 4, an electric device 400 with touch keys according to an embodiment of the present invention includes: the embodiment shown in fig. 3 proposes a detection device 300 for touch keys; the key 402 is touched.
In this embodiment, the touch key detection device 300 determines the state of the touch key 402 by detecting the strength of the touch sensing signal on the touch key 402. The electrical apparatus 400 with touch key in this embodiment has all the advantages of the detection device 300 with touch key, and will not be described herein again.
FIG. 5 shows a schematic diagram of a detection process of a capacitive touch key according to one embodiment of the invention.
FIG. 6 is a schematic diagram illustrating a process of detecting a capacitive touch key according to yet another embodiment of the present invention.
Fig. 7 is a schematic diagram illustrating a detection process of a capacitive touch key according to still another embodiment of the present invention.
Capacitive touch sensing technology detects whether a finger is present near a touch panel by measuring a change in capacitance between the key panel (sensor) and its environment. When a finger touches the surface of the touch key 402, the finger forms a simple parallel-plate capacitor with the touch key 402 sensing panel through the cover layer on the sensing panel. When the finger slowly moves from a distance and presses right above the touch key 402, the chip sensor IO port for detecting the capacitance change between the sensing panel and the finger detects that the capacitance on the sensing panel changes with respect to the environment, i.e., the touch sensing signal strength (the capacitance change difference of the sensing panel with respect to the environment) is small and large. It is assumed that the variation range of the touch sensing signal intensity is 0 to 1.
In the process of detecting the touch key 402, when a finger slowly approaches the touch key 402 (the touch key 402 is not triggered before the finger approaches), the detection unit 302 detects that the intensity of the touch sensing signal gradually increases from zero, and when the intensity of the touch sensing signal is smaller than a first preset threshold, as shown in fig. 4, the first setting unit 304 in the detection apparatus 300 of the touch key 402 determines that the key is not triggered and is in an unfired state.
As shown in fig. 5, when the key is in the non-triggered state, if the detection unit 302 detects that the intensity of the touch sensing signal is greater than or equal to the first preset threshold and less than or equal to the second preset threshold, the third setting unit 308 determines that the key state remains unchanged, i.e. the key is still in the non-triggered state.
As shown in fig. 6, when the detecting unit 302 detects that the strength of the touch sensing signal is greater than the second preset threshold, the second setting unit 306 determines that the key is in the triggered state.
When the finger is slowly away from the touch key 402 (the touch key 402 is in the trigger state before the finger is away from the touch key 402), the amount of the touch sensing signal gradually decreases from large to small. If the intensity of the touch sensing signal is reduced to be greater than or equal to the first preset threshold and less than or equal to the second preset threshold when the key is in the trigger state, that is, as shown in fig. 5, the third setting unit 308 determines that the key state remains unchanged, that is, the key is still in the trigger state.
Wherein, preferably, the first preset threshold is set to 0.4, and the second preset threshold is set to 0.7.
When the key is in an unfired state, if the strength of the touch sensing signal is increased to a first preset threshold and fluctuates up and down between a first upper limit value and a first lower limit value which take the first preset threshold as a reference, wherein the first upper limit value is less than or equal to a second preset threshold, preferably, the first upper limit value is set to 0.5, and the first lower limit value is set to 0.3, the first hysteresis unit 310 determines that the key is still in the unfired state; when the key is in the trigger state, if the intensity of the touch sensing signal is reduced to a second preset threshold and fluctuates up and down between a second upper limit and a second lower limit that are based on the second preset threshold, where the second lower limit is greater than or equal to the first preset threshold, preferably, the second upper limit is set to 0.8, and the second lower limit is set to 0.6, the second hysteresis unit 312 determines that the key is still in the trigger state.
In addition, in the above embodiment, the first preset threshold and the second preset threshold may be set as a preset trigger threshold and a preset hysteresis threshold, a sum of the two thresholds is used as the second preset threshold, and a difference between the two thresholds is used as the first preset threshold.
The embodiment of the invention is described in detail with reference to the drawings, and according to the technical scheme provided by the invention, the two trigger thresholds are adopted to form the hysteresis interval, so that the problem of repeated triggering when the strength of the touch sensing signal fluctuates in a small range is avoided, and the use experience of a user is improved.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method for detecting a touch key is characterized by comprising the following steps:
detecting the strength of a touch sensing signal of a key;
when the key is in an un-triggered state, if the strength of the touch sensing signal is increased to be larger than a second preset threshold value, setting the state of the key to be a triggered state;
when the key is in a trigger state, if the strength of the touch sensing signal is reduced to be smaller than a first preset threshold value, setting the state of the key to be in a non-trigger state;
if the intensity of the touch sensing signal is changed to be greater than or equal to the first preset threshold and less than or equal to the second preset threshold, keeping the state of the key unchanged;
wherein the first preset threshold is smaller than the second preset threshold;
and when the key is in an unfired state, if the strength of the touch sensing signal changes within a first upper limit value and a first lower limit value which take the first preset threshold value as a reference, determining that the key is still in the unfired state, wherein the first upper limit value is less than or equal to the second preset threshold value.
2. The method for detecting a touch key according to claim 1, further comprising:
and when the key is in a trigger state, if the strength of the touch sensing signal changes within a second upper limit value and a second lower limit value which take the second preset threshold value as a reference, determining that the key is still in the trigger state, wherein the second lower limit value is greater than or equal to the first preset threshold value.
3. The method for detecting a touch key according to claim 1 or 2, further comprising:
and if the key is set to be in a trigger state, sending out prompt information.
4. The method for detecting a touch key according to claim 1 or 2, further comprising:
and if the key is in the trigger state and exceeds the preset time, sending alarm information.
5. The method for detecting a touch key according to claim 3, further comprising:
and if the key is in the trigger state and exceeds the preset time, sending alarm information.
6. A device for detecting a touch key, comprising:
the detection unit is used for detecting the strength of the touch sensing signal of the key;
the first setting unit is used for setting the state of the key to be a trigger state if the strength of the touch sensing signal is increased to be larger than a second preset threshold value when the key is in an unfired state;
the second setting unit is used for setting the state of the key to be in an unfired state if the strength of the touch sensing signal is reduced to be smaller than a first preset threshold value when the key is in the triggered state;
the third setting unit is used for keeping the state of the key unchanged when the intensity of the touch sensing signal is changed to be greater than or equal to the first preset threshold and less than or equal to the second preset threshold;
wherein the first preset threshold is smaller than the second preset threshold;
and the first hysteresis unit is used for determining that the key is still in the non-triggered state if the strength of the touch sensing signal changes within a first upper limit value and a first lower limit value which take the first preset threshold value as a reference when the key is in the non-triggered state, wherein the first upper limit value is less than or equal to the second preset threshold value.
7. The apparatus for detecting a touch key according to claim 6, further comprising:
and the second hysteresis unit is used for determining that the key is still in the trigger state if the strength of the touch sensing signal changes within a second upper limit value and a second lower limit value which take the second preset threshold value as a reference when the key is in the trigger state, wherein the second lower limit value is greater than or equal to the first preset threshold value.
8. The apparatus for detecting a touch key according to claim 6 or 7, further comprising:
and the prompting unit is used for sending out prompting information when the key is in a triggering state.
9. The apparatus for detecting a touch key according to claim 6 or 7, further comprising:
and the alarm unit is used for sending alarm information when the key is in the trigger state and exceeds the preset time.
10. The apparatus for detecting a touch key of claim 8, further comprising:
and the alarm unit is used for sending alarm information when the key is in the trigger state and exceeds the preset time.
11. An electrical apparatus with touch key, comprising:
the detection device of a touch key according to any one of claims 6 to 10; and touching the key.
CN201710072228.5A 2017-02-09 2017-02-09 Detection method and detection device for touch keys and electrical equipment Active CN106877854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710072228.5A CN106877854B (en) 2017-02-09 2017-02-09 Detection method and detection device for touch keys and electrical equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710072228.5A CN106877854B (en) 2017-02-09 2017-02-09 Detection method and detection device for touch keys and electrical equipment

Publications (2)

Publication Number Publication Date
CN106877854A CN106877854A (en) 2017-06-20
CN106877854B true CN106877854B (en) 2020-07-21

Family

ID=59165666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710072228.5A Active CN106877854B (en) 2017-02-09 2017-02-09 Detection method and detection device for touch keys and electrical equipment

Country Status (1)

Country Link
CN (1) CN106877854B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107979364B (en) * 2017-12-28 2021-11-16 海信视像科技股份有限公司 Capacitive touch key device and intelligent terminal
CN110166038A (en) * 2019-05-22 2019-08-23 重庆市大明汽车电器有限公司 Touch key control method and control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855032A (en) * 2011-06-27 2013-01-02 比亚迪股份有限公司 Baseline updating method and touch device
CN104620210A (en) * 2012-07-17 2015-05-13 诺基亚公司 An apparatus, method and computer program for enabling user input
CN105556443A (en) * 2013-09-26 2016-05-04 辛纳普蒂克斯公司 Methods and apparatus for click detection on a force pad using dynamic thresholds

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2280483A1 (en) * 2005-06-03 2011-02-02 Synaptics, Incorporated Methods and systems for shielding a charge transfer capacitance sensor for proximity detection
US9454270B2 (en) * 2008-09-19 2016-09-27 Apple Inc. Systems and methods for detecting a press on a touch-sensitive surface
CN102006045B (en) * 2010-11-04 2012-06-27 江苏惠通集团有限责任公司 Method for judging capacitive touch keys
US9569054B2 (en) * 2013-08-19 2017-02-14 Touchsensor Technologies, Llc Capacitive sensor filtering apparatus, method, and system
CN103607187B (en) * 2013-11-12 2017-02-15 青岛歌尔声学科技有限公司 Method and apparatus for detecting whether capacitor touch button is triggered

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855032A (en) * 2011-06-27 2013-01-02 比亚迪股份有限公司 Baseline updating method and touch device
CN104620210A (en) * 2012-07-17 2015-05-13 诺基亚公司 An apparatus, method and computer program for enabling user input
CN105556443A (en) * 2013-09-26 2016-05-04 辛纳普蒂克斯公司 Methods and apparatus for click detection on a force pad using dynamic thresholds

Also Published As

Publication number Publication date
CN106877854A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
KR101288740B1 (en) Touch screen device for detecting noise and control method using the same
US8786573B2 (en) Data input device of electronic device and input control method
CN105790747A (en) Touch key triggering detection method and triggering detection device
CN103477316B (en) Touch-panel device and its display packing
CN106708263A (en) Method and device for preventing mistaken touch of touch screens and mobile terminal
US20180203568A1 (en) Method for Enabling Function Module of Terminal, and Terminal Device
CN104750296B (en) The touch-sensing system and method close to sensing function are provided using touch panel
CN105303172A (en) Calibration parameter obtaining method and device of fingerprint sensor and mobile terminal
CN103377353A (en) Electronic device and touch screen protection method and protection system thereof
CN104363012A (en) Portable terminal and implementing method for pressing key of side of capacitor type touch screen by touching
CN109074185A (en) Control method, key device and the terminal of key device
CN105183360A (en) Method and device for lighting up screen and terminal
CN106877854B (en) Detection method and detection device for touch keys and electrical equipment
TW201339935A (en) Capacitive touch control system and touch control device and touch control method using the same
CN103902112A (en) Control method and electronic equipment
CN107390935A (en) A kind of method of contact panel false-touch prevention
CN108334224A (en) The method of input unit and detection input
EP3679462B1 (en) Displacement sensing
CN105320316A (en) Method and device for debouncing of touch screen and terminal
CN105389059A (en) Key user-defined touch function implementation method and apparatus
CN110134281B (en) Capacitance detection system and method
CN104461024B (en) Input unit, information processing method, device and electronic equipment
EP3171257B1 (en) Terminal, touch control unit, touch screen, screen protector, operation detection device and method
WO2013067723A1 (en) Touch device and adaptive method thereof
CN102386904A (en) Response method and system of capacitive sensing touch key and touch equipment

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