CN109984579B - Processing method and device of touch key and cooking appliance - Google Patents

Processing method and device of touch key and cooking appliance Download PDF

Info

Publication number
CN109984579B
CN109984579B CN201711489934.6A CN201711489934A CN109984579B CN 109984579 B CN109984579 B CN 109984579B CN 201711489934 A CN201711489934 A CN 201711489934A CN 109984579 B CN109984579 B CN 109984579B
Authority
CN
China
Prior art keywords
value
touch key
difference
difference value
threshold
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
CN201711489934.6A
Other languages
Chinese (zh)
Other versions
CN109984579A (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.)
Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd
Original Assignee
Zhejiang Shaoxing Supor Domestic Electrical Appliance 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 Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd filed Critical Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd
Priority to CN201711489934.6A priority Critical patent/CN109984579B/en
Publication of CN109984579A publication Critical patent/CN109984579A/en
Application granted granted Critical
Publication of CN109984579B publication Critical patent/CN109984579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J27/00Cooking-vessels
    • A47J27/08Pressure-cookers; Lids or locking devices specially adapted therefor
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J36/00Parts, details or accessories of cooking-vessels
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Food Science & Technology (AREA)
  • Electronic Switches (AREA)

Abstract

The invention discloses a processing method and device of a touch key and a cooking appliance. The processing method of the touch key comprises the following steps: acquiring a first difference value between a first key value generated by the touch key and a reference value, and a system threshold value, wherein the reference value is the key value generated when the touch key is not triggered; judging whether the touch key is effective or not by comparing the first difference value with a system threshold value; under the condition that the touch key is judged to be invalid, obtaining a plurality of difference value intervals and a threshold value adjusting mode corresponding to each difference value interval; matching the first difference value with a plurality of difference value intervals to obtain a threshold value adjusting mode corresponding to the first difference value; and adjusting the system threshold according to the threshold adjusting mode corresponding to the first difference value to obtain the adjusted threshold. The invention solves the technical problem that the touch key is possibly invalid due to fixed sensitivity of the touch key in the prior art.

Description

Processing method and device of touch key and cooking appliance
Technical Field
The invention relates to the field of household appliances, in particular to a method and a device for processing a touch key and a cooking appliance.
Background
In a cooking appliance, such as an electric pressure cooker, a touch button is usually provided as a tool for human-computer interaction, and the sensitivity of the touch button is set when the cooking appliance leaves a factory, that is, the sensitivity of the touch button in the cooking appliance is fixed.
However, if the material and thickness of the touch key panel are changed or the gap between the plastic members is enlarged during the production process, the sensitivity of the touch key is significantly changed, which may cause the touch key to fail.
Aiming at the problem that the touch key is possibly invalid due to fixed sensitivity of the touch key in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a processing method and device of a touch key and a cooking utensil, which are used for at least solving the technical problem that the touch key is possibly invalid due to fixed sensitivity of the touch key in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a method for processing a touch key, including: acquiring a first difference value between a first key value generated by the touch key and a reference value, and a system threshold value, wherein the reference value is the key value generated when the touch key is not triggered; judging whether the touch key is effective or not by comparing the first difference value with a system threshold value; under the condition that the touch key is judged to be invalid, obtaining a plurality of difference value intervals and a threshold value adjusting mode corresponding to each difference value interval; matching the first difference value with a plurality of difference value intervals to obtain a threshold value adjusting mode corresponding to the first difference value; and adjusting the system threshold according to the threshold adjusting mode corresponding to the first difference value to obtain the adjusted threshold.
In the embodiment of the invention, the key value generated by the touch key can be acquired in real time, the variation of the key value can be acquired according to the difference value between the key value and the reference value, by comparing the variation of the key value with the system threshold value, whether the touch key is effective is determined, a plurality of difference value intervals can be further divided in advance, the threshold value adjusting modes corresponding to the difference value intervals are different, under the condition that the touch key is judged to be invalid, the corresponding threshold value adjusting mode can be obtained according to the change quantity of the key value, and the system threshold value is adjusted, so that the touch key can be used for different use environments, the sensitivity of the touch key is adjusted in different modes, thereby achieving the technical effects of improving the accuracy of judging the touch key and expanding the application range of the touch key, and then the technical problem that the touch key is possibly invalid due to the fact that the sensitivity of the touch key in the prior art is fixed is solved.
Further, the plurality of difference intervals includes: the method comprises the following steps of obtaining a first difference value interval, a second difference value interval and a third difference value interval, wherein the system threshold value is adjusted according to a threshold value adjusting mode corresponding to the first difference value, and the obtained adjusted threshold value comprises the following steps: under the condition that the first difference value and the first difference value interval are successfully matched, taking a first preset threshold value as an adjusted threshold value; under the condition that the first difference value and the second difference value are matched successfully, taking a second preset threshold value as an adjusted threshold value; and under the condition that the first difference value and the third difference value are matched successfully, taking the system threshold value as the adjusted threshold value. The three difference value intervals are divided in advance, the threshold value adjusting mode corresponding to the first difference value interval and the second difference value interval is that the system threshold value is replaced by the corresponding preset threshold value, and the adjusting mode corresponding to the third difference value interval is not adjusted, so that the problem that the accuracy of touch key judgment is influenced due to the fact that the system threshold value is changed due to fluctuation of the key value is avoided, the accuracy of touch key judgment is further improved, and the application range of the touch key is expanded.
Further, in the case that the first difference value and the second difference value are successfully matched, before the second preset threshold is taken as the adjusted threshold, the processing method for the touch key further includes: acquiring a second key value generated by the touch key, wherein the second key value is a key value acquired after the first key value is acquired; obtaining a difference value between the second key value and the reference value to obtain a second difference value; matching the second difference value with a plurality of difference value intervals to obtain a difference value interval corresponding to the second difference value; judging whether the difference interval corresponding to the second difference is the second difference interval or not; if the difference value interval corresponding to the second difference value is the second difference value interval, taking the second preset threshold value as the adjusted threshold value; and if the difference value interval corresponding to the second difference value is not the second difference value interval, taking the first preset threshold value or the system threshold value as the adjusted threshold value. After the first difference value is determined to belong to the second difference value interval, the touch key is released and sampling is performed again, the system threshold value is replaced by a second preset threshold value if sampling for two times is consistent, and adjustment is performed according to the key value of the second sampling if sampling for two times is inconsistent, so that the effects of improving the accuracy of touch key judgment and expanding the application range of the touch key are achieved.
Further, the first difference interval is smaller than the system threshold and greater than or equal to the product of the system threshold and the first preset value, the second difference interval is smaller than the product of the system threshold and the first preset value and greater than or equal to the product of the system threshold and the second preset value, and the third difference interval is smaller than the product of the system threshold and the second preset value, wherein the first preset value and the second preset value are smaller than 1, and the first preset value is greater than the second preset value. The first difference interval, the second difference interval and the third difference interval are set to be reduced in sequence, so that the accuracy of touch key judgment is further improved, and the application range of the touch key is expanded.
Further, the first preset value is 0.6, and the second preset value is 0.2. By setting the first preset value to be 0.6 and the second preset value to be 0.2, the first difference interval, the second difference interval and the third difference interval are sequentially reduced, so that the effects of improving the accuracy of touch key judgment and expanding the application range of the touch key are further achieved.
Further, after the system threshold is adjusted according to the threshold adjustment mode corresponding to the first difference value to obtain an adjusted threshold, the adjusted threshold is stored in the memory, and after the power is supplied again, the adjusted threshold is used as the system threshold. After the system threshold is adjusted, the adjusted threshold is stored in the memory, so that after the cooking appliance is powered on again, the adjusted threshold can be used as the system threshold, the accuracy of touch key judgment is further improved, and the application range of the touch key is expanded.
Further, the number of the plurality of difference intervals is 2-6. The different number of difference intervals are set according to the use environments, so that the sensitivity of the touch key is adjusted in different modes according to different use environments, the judgment accuracy of the touch key is improved, and the application range of the touch key is expanded.
Further, by comparing the first difference value with the system threshold, determining whether the touch key is valid includes: judging whether the first difference value is larger than or equal to a system threshold value; if the first difference value is larger than or equal to the system threshold value, determining that the touch key is effective, and executing operation corresponding to the touch key; and if the first difference value is smaller than the system threshold value, determining that the touch key is invalid, and not executing the operation corresponding to the touch key. The first difference value is compared with the system threshold value, so that whether the touch key is effective or not is determined, the accuracy of judging the touch key is further improved, and the application range of the touch key is expanded.
Further, before obtaining a first difference value between a first key value generated by the touch key and a reference value and a system threshold, the method for processing the touch key further includes: after the cooking appliance is powered on, acquiring a third key value generated by a touch key; and taking the third key value as a reference value. The key value of the cooking appliance during power-on is used as the reference value, so that whether the touch key is effective or not is determined, the accuracy of judging the touch key is further improved, and the application range of the touch key is expanded.
Further, after the system threshold is adjusted according to the threshold adjustment mode corresponding to the first difference value to obtain the adjusted threshold, the method for processing the touch key further includes: acquiring a fourth key value generated after the touch key adjusts the system threshold value; obtaining a difference value between the fourth key value and the reference value to obtain a third difference value; and judging whether the touch key is effective or not by comparing the third difference value with the adjusted threshold value. After the system threshold value is adjusted, the touch key is triggered again, and judgment can be carried out according to the adjusted threshold value, so that whether the touch key is effective or not is determined, the judgment accuracy of the touch key is further improved, and the application range of the touch key is expanded.
According to another aspect of the embodiments of the present invention, there is also provided a processing apparatus for a touch key, including: the system comprises a first obtaining module and a second obtaining module, wherein the first obtaining module is used for obtaining a first difference value between a first key value generated by a touch key and a reference value and a system threshold value, and the reference value is the key value generated when the touch key is not triggered; the judging module is used for judging whether the touch key is effective or not by comparing the first difference value with a system threshold value; the second obtaining module is used for obtaining a plurality of difference value intervals and a threshold value adjusting mode corresponding to each difference value interval under the condition that the touch key is judged to be invalid; the matching module is used for matching the first difference value with the plurality of difference value intervals to obtain a threshold value adjusting mode corresponding to the first difference value; and the adjusting module is used for adjusting the system threshold according to the threshold adjusting mode corresponding to the first difference value to obtain the adjusted threshold.
According to another aspect of the embodiments of the present invention, there is also provided a cooking appliance including: the touch key is arranged on the machine body of the cooking appliance and used for generating a first key value; the controller is arranged in the machine body, connected with the touch key and used for obtaining a first difference value between a first key value and a reference value and a system threshold value, judging whether the touch key is effective or not by comparing the first difference value with the system threshold value, obtaining a plurality of difference value intervals and a threshold value adjusting mode corresponding to each difference value interval under the condition that the touch key is judged to be invalid, matching the first difference value with the plurality of difference value intervals to obtain a threshold value adjusting mode corresponding to the first difference value, adjusting the system threshold value according to the threshold value adjusting mode corresponding to the first difference value to obtain an adjusted threshold value, wherein the reference value is a key value generated when the touch key is not triggered.
Further, the cooking appliance is an electric pressure cooker.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus on which the storage medium is located is controlled to execute the processing method of the touch key.
According to another aspect of the embodiments of the present invention, a processor is further provided, where the processor is configured to execute a program, and when the program runs, the processor executes the method for processing a touch key.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method for processing a touch key according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a processing device for touching a key according to an embodiment of the invention; and
fig. 3 is a schematic view of a cooking appliance according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for processing a touch key, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 1 is a flowchart of a processing method of a touch key according to an embodiment of the present invention, and as shown in fig. 1, the processing method of the touch key includes the following steps:
step S102, a first difference value between a first key value generated by the touch key and a reference value and a system threshold value are obtained, wherein the reference value is the key value generated when the touch key is not triggered.
Specifically, the system threshold may be a threshold preset when the cooking appliance leaves a factory, the threshold is stored in a memory of the cooking appliance, the cooking appliance may automatically read the system threshold stored in the memory after being powered on, and whether the touch key is valid is determined through the system threshold, where the cooking appliance may be an electric pressure cooker, an electric rice cooker, a food processor, and the like.
And step S104, judging whether the touch key is effective or not by comparing the first difference value with a system threshold value.
And step S106, under the condition that the touch key is judged to be invalid, acquiring a plurality of difference value intervals and a threshold value adjusting mode corresponding to each difference value interval.
Optionally, the number of the plurality of difference intervals is 2-6.
Specifically, 2-6 difference intervals can be preset according to the actual use environment, and the threshold value adjustment modes corresponding to each difference interval are different, so that the adjusted threshold values are different, that is, the sensitivities of different use environments are different.
Step S108, matching the first difference value with the plurality of difference value intervals to obtain a threshold adjustment manner corresponding to the first difference value.
And step S110, adjusting the system threshold according to the threshold adjusting mode corresponding to the first difference value to obtain an adjusted threshold.
In an optional scheme, after the cooking appliance is powered on, the key value generated by the touch key can be detected in real time, whether the touch key is valid or not is judged by calculating the difference value between the key value and the reference value and combining with the system threshold value read from the memory, and in order to further judge whether the touch key is invalid due to the change of the use environment, a corresponding threshold value adjusting mode can be selected according to the calculated difference value after the touch key is judged to be invalid, so that the sensitivity meeting the current use environment is obtained.
According to the above embodiment of the present invention, the key value generated by the touch key can be obtained in real time, the variation of the key value can be obtained according to the difference between the key value and the reference value, by comparing the variation of the key value with the system threshold value, whether the touch key is effective is determined, a plurality of difference value intervals can be further divided in advance, the threshold value adjusting modes corresponding to the difference value intervals are different, under the condition that the touch key is judged to be invalid, the corresponding threshold value adjusting mode can be obtained according to the change quantity of the key value, and the system threshold value is adjusted, so that the touch key can be used for different use environments, the sensitivity of the touch key is adjusted in different modes, thereby achieving the technical effects of improving the accuracy of judging the touch key and expanding the application range of the touch key, and then the technical problem that the touch key is possibly invalid due to the fact that the sensitivity of the touch key in the prior art is fixed is solved.
Optionally, the plurality of difference intervals comprises: a first difference interval, a second difference interval, and a third difference interval, where, in step S110, the system threshold is adjusted according to a threshold adjustment mode corresponding to the first difference, and obtaining an adjusted threshold includes: under the condition that the first difference value and the first difference value interval are successfully matched, taking a first preset threshold value as an adjusted threshold value; under the condition that the first difference value and the second difference value are matched successfully, taking a second preset threshold value as an adjusted threshold value; and under the condition that the first difference value and the third difference value are matched successfully, taking the system threshold value as the adjusted threshold value.
Optionally, the first difference interval is smaller than the system threshold and greater than or equal to the product of the system threshold and the first preset value, the second difference interval is smaller than the product of the system threshold and the first preset value and greater than or equal to the product of the system threshold and the second preset value, and the third difference interval is smaller than the product of the system threshold and the second preset value, wherein the first preset value and the second preset value are smaller than 1, and the first preset value is greater than the second preset value.
Optionally, the first preset value is 0.6, and the second preset value is 0.2.
In an optional scheme, under the condition of the read system threshold value X1, three difference intervals may be preset, where a first difference interval is 0.6 × X1 to X1, a second difference interval is 0.2 × X1 to 0.6 × X1, and a third difference interval is 0 to 0.2 × X1, and if the calculated difference is in the first difference interval, that is, the difference is successfully matched with the first difference interval, the first preset threshold value X2 may be used as a new system threshold value; if the calculated difference value is in the second difference value interval, that is, the difference value is successfully matched with the second difference value interval, the second preset threshold value X3 may be used as a new system threshold value; if the calculated difference value is in the third difference value interval, that is, the difference value is successfully matched with the third difference value interval, the current system threshold value may not be changed, that is, the current system threshold value is used as a new system threshold value.
It should be noted that, when the first difference and the third difference are successfully matched, it may be determined that the key value is substantially the same as the reference value at this time, and it is determined that the usage environment is not changed, and the key value is different from the reference value due to normal fluctuation or system abnormal fluctuation. For example, when the first difference is less than or equal to 0.1 × X1, the per-key value is determined to be a normal fluctuation; when 0.1 × X1 < the first difference <0.2 × X1, the key value is determined to be a system abnormal fluctuation.
According to the scheme, three difference value intervals are divided in advance, the threshold value adjusting mode corresponding to the first difference value interval and the second difference value interval is that the system threshold value is replaced by the corresponding preset threshold value, the adjusting mode corresponding to the third difference value interval is not adjusted, the first preset value is set to be 0.6, the second preset value is set to be 0.2, the first difference value interval, the second difference value interval and the third difference value interval are sequentially reduced, the situation that the system threshold value is changed due to fluctuation of key values and the accuracy of touch key judgment is affected is avoided, the accuracy of touch key judgment is further improved, and the application range of the touch key is expanded.
Optionally, in a case that the first difference interval is successfully matched with the second difference interval, before the second preset threshold is taken as the adjusted threshold, the method for processing the touch key further includes: acquiring a second key value generated by the touch key, wherein the second key value is a key value acquired after the first key value is acquired; obtaining a difference value between the second key value and the reference value to obtain a second difference value; matching the second difference value with a plurality of difference value intervals to obtain a difference value interval corresponding to the second difference value; judging whether the difference interval corresponding to the second difference is the second difference interval; if the difference value interval corresponding to the second difference value is the second difference value interval, taking the second preset threshold value as the adjusted threshold value; and if the difference value interval corresponding to the second difference value is not the second difference value interval, taking the first preset threshold value or the system threshold value as the adjusted threshold value.
In an alternative scheme, after determining that 0.2 × X1 is not greater than the first difference value <0.6 × X1, the key value of the touch key may be obtained again after the touch key is released, and if the result of the resampling is consistent with the previous sampling, that is, the second difference value obtained from the result of the resampling satisfies 0.2 × X1 is not greater than the second difference value <0.6 × X1, the second preset threshold may be determined as a new system threshold; if the result of the resampling does not coincide with the previous sampling, a new system threshold may be determined based on the result of the resampling, e.g., if the second difference < 0.2X 1, the system threshold is not processed; if 0.6X 1 is less than or equal to the second difference, the second predetermined threshold may be determined as the new system threshold.
Through the scheme, after the first difference value is determined to belong to the second difference value interval, the touch key is released and sampling is performed again, the system threshold value is replaced by the second preset threshold value if sampling for two times is consistent, and adjustment is performed according to the key value of the sampling for the second time if sampling for two times is inconsistent, so that the effects of improving the accuracy of judgment of the touch key and expanding the application range of the touch key are achieved.
Optionally, in step S110, the system threshold is adjusted according to the threshold adjustment mode corresponding to the first difference value, after the adjusted threshold is obtained, the adjusted threshold is stored in the memory, and after the power is turned on again, the adjusted threshold is used as the system threshold.
In an optional scheme, after the system threshold is adjusted, a new system threshold may be stored in the memory, specifically, it may be determined whether the new system threshold is the same as the system threshold before the adjustment, and if the new system threshold is the same as the system threshold before the adjustment, the new system threshold may not be stored because the system threshold is unchanged; if the system threshold value is different from the system threshold value, the new system threshold value can be stored in the memory, so that after the cooking appliance is powered on again, the new system threshold value stored in the memory can be directly read, and whether the touch key is effective or not can be judged according to the new system threshold value.
Through the scheme, after the system threshold is adjusted, the adjusted threshold is stored in the memory, so that after the cooking appliance is powered on again, the adjusted threshold can be used as the system threshold, the accuracy of touch key judgment is further improved, and the application range of the touch key is expanded.
Optionally, in step S104, by comparing the first difference value with the system threshold, determining whether the touch key is valid includes: judging whether the first difference value is larger than or equal to a system threshold value; if the first difference value is larger than or equal to the system threshold value, determining that the touch key is effective, and executing operation corresponding to the touch key; and if the first difference value is smaller than the system threshold value, determining that the touch key is invalid, and not executing the operation corresponding to the touch key.
In an optional scheme, whether the touch key is valid is determined by judging whether the first difference is greater than or equal to a system threshold value, and if the first difference is greater than or equal to the system threshold value, the touch key is triggered to be executed; and if the key is invalid, confirming that the touch key is not triggered without executing any operation.
Through the scheme, the first difference value is compared with the system threshold value, so that whether the touch key is effective or not is determined, the judgment accuracy of the touch key is further improved, and the application range of the touch key is expanded.
Optionally, in step S102, before obtaining a first difference between a first key value generated by the touch key and the reference value and the system threshold, the method for processing the touch key further includes: after the cooking appliance is powered on, acquiring a third key value generated by a touch key; and taking the third key value as a reference value.
In an alternative scheme, after the cooking appliance is powered on, the user does not press the touch key immediately, so that the obtained first key value or an average value of key values within a period of time can be used as a reference value, and whether the touch key is valid is further determined based on the reference value.
By the scheme, the key value of the cooking appliance during power-on is used as the reference value, so that whether the touch key is effective or not is determined, the accuracy of judging the touch key is further improved, and the application range of the touch key is expanded.
Optionally, in step S110, the system threshold is adjusted according to the threshold adjustment mode corresponding to the first difference, and after the adjusted threshold is obtained, the method for processing the touch key further includes: acquiring a fourth key value generated after the touch key adjusts the system threshold value; obtaining a difference value between the fourth key value and the reference value to obtain a third difference value; and judging whether the touch key is effective or not by comparing the third difference value with the adjusted threshold value.
In an optional scheme, after the system threshold is adjusted, when the touch key is triggered again, the adjusted threshold may be used as the system threshold, and whether the touch key is valid is determined according to the adjusted threshold.
Through the scheme, after the system threshold value is adjusted, the touch key is triggered again, and judgment can be performed according to the adjusted threshold value, so that whether the touch key is effective or not is determined, the judgment accuracy of the touch key is further improved, and the application range of the touch key is expanded.
Example 2
According to the embodiment of the invention, the embodiment of the processing device of the touch key is also provided.
Fig. 2 is a schematic diagram of a processing apparatus for a touch key according to an embodiment of the present invention, and as shown in fig. 2, the processing apparatus for a touch key includes:
the first obtaining module 20 is configured to obtain a first difference between a first key value generated by the touch key and a reference value, and a system threshold, where the reference value is a key value generated when the touch key is not triggered.
Specifically, the system threshold may be a threshold preset when the cooking appliance leaves a factory, the threshold is stored in a memory of the cooking appliance, the cooking appliance may automatically read the system threshold stored in the memory after being powered on, and whether the touch key is valid is determined through the system threshold, where the cooking appliance may be an electric pressure cooker, an electric rice cooker, a food processor, and the like.
And the judging module 22 is configured to judge whether the touch key is valid by comparing the first difference value with a system threshold.
The second obtaining module 24 is configured to obtain a plurality of difference intervals and a threshold adjustment manner corresponding to each difference interval when the touch key is determined to be invalid.
Optionally, the number of the plurality of difference intervals is 2-6.
Specifically, 2-6 difference value intervals can be preset according to the actual use environment, and the adjustment modes of the threshold values corresponding to each difference value interval are different, so that the adjusted threshold values are different, that is, the sensitivities of different use environments are different.
The matching module 26 is configured to match the first difference value with the multiple difference value intervals, so as to obtain a threshold adjustment mode corresponding to the first difference value.
And an adjusting module 28, configured to adjust the system threshold according to a threshold adjusting manner corresponding to the first difference value, so as to obtain an adjusted threshold.
In an optional scheme, after the cooking appliance is powered on, the key value generated by the touch key can be detected in real time, whether the touch key is valid or not is judged by calculating the difference value between the key value and the reference value and combining with the system threshold value read from the memory, and in order to further judge whether the touch key is invalid due to the change of the use environment, a corresponding threshold value adjusting mode can be selected according to the calculated difference value after the touch key is judged to be invalid, so that the sensitivity meeting the current use environment is obtained.
According to the above embodiment of the present invention, the key value generated by the touch key can be obtained in real time, the variation of the key value can be obtained according to the difference between the key value and the reference value, by comparing the variation of the key value with the system threshold value, whether the touch key is effective is determined, a plurality of difference value intervals can be further divided in advance, the threshold value adjusting modes corresponding to the difference value intervals are different, under the condition that the touch key is judged to be invalid, the corresponding threshold value adjusting mode can be obtained according to the change quantity of the key value, and the system threshold value is adjusted, so that the touch key can be used for different use environments, the sensitivity of the touch key is adjusted in different modes, thereby achieving the technical effects of improving the accuracy of judging the touch key and expanding the application range of the touch key, and then the technical problem that the touch key is possibly invalid due to the fact that the sensitivity of the touch key in the prior art is fixed is solved.
Example 3
According to an embodiment of the invention, there is also provided an embodiment of a cooking appliance.
Fig. 3 is a schematic view of a cooking appliance according to an embodiment of the present invention, as shown in fig. 3, the cooking appliance including: a touch key 10 and a controller 20.
The touch key 10 is arranged on a machine body of the cooking appliance and used for generating a first key value; the controller 20 is disposed inside the body, connected to the touch key, and configured to obtain a first difference value between a first key value and a reference value, and a system threshold value, determine whether the touch key is valid by comparing the first difference value with the system threshold value, obtain a plurality of difference value intervals and a threshold value adjustment manner corresponding to each difference value interval when the touch key is determined to be invalid, match the first difference value with the plurality of difference value intervals to obtain a threshold value adjustment manner corresponding to the first difference value, and adjust the system threshold value according to the threshold value adjustment manner corresponding to the first difference value to obtain an adjusted threshold value, where the reference value is a key value generated when the touch key is not triggered.
Optionally, the cooking appliance is an electric pressure cooker.
Specifically, the system threshold may be a threshold preset when the cooking appliance leaves a factory, the threshold is stored in a memory of the cooking appliance, the cooking appliance may automatically read the system threshold stored in the memory after being powered on, and whether the touch key is valid is determined through the system threshold, where the cooking appliance may be an electric pressure cooker, an electric rice cooker, a food processor, and the like.
Optionally, the number of the plurality of difference intervals is 2-6.
Specifically, 2-6 difference intervals can be preset according to the actual use environment, and the threshold value adjustment modes corresponding to each difference interval are different, so that the adjusted threshold values are different, that is, the sensitivities of different use environments are different.
In an optional scheme, after the cooking appliance is powered on, the key value generated by the touch key can be detected in real time, whether the touch key is valid or not is judged by calculating the difference value between the key value and the reference value and combining with the system threshold value read from the memory, and in order to further judge whether the touch key is invalid due to the change of the use environment, a corresponding threshold value adjusting mode can be selected according to the calculated difference value after the touch key is judged to be invalid, so that the sensitivity meeting the current use environment is obtained.
According to the above embodiment of the present invention, the controller may acquire the key value generated by the touch key in real time, obtaining variation of key value according to the difference value between the key value and the reference value, determining whether the touch key is effective by comparing the variation of key value with the system threshold value, further dividing a plurality of difference value intervals in advance, wherein the adjustment modes of the threshold value corresponding to each difference value interval are different, under the condition that the touch key is judged to be invalid, the corresponding threshold value adjusting mode can be obtained according to the change quantity of the key value, and the system threshold value is adjusted, so that the touch key can be used for different use environments, the sensitivity of the touch key is adjusted in different modes, thereby achieving the technical effects of improving the accuracy of judging the touch key and expanding the application range of the touch key, and then the technical problem that the touch key is possibly invalid due to the fact that the sensitivity of the touch key in the prior art is fixed is solved.
Example 4
According to an embodiment of the present invention, an embodiment of a storage medium is further provided, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the processing method for a touch key in embodiment 1.
Example 5
According to an embodiment of the present invention, an embodiment of a processor is further provided, where the processor is configured to execute a program, and the program executes the processing method for the touch key in embodiment 1 when running.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described in detail in a certain embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A processing method of a touch key is characterized by comprising the following steps:
acquiring a first difference value between a first key value generated by a touch key and a reference value, and a system threshold value, wherein the reference value is the key value generated when the touch key is not triggered;
judging whether the touch key is effective or not by comparing the first difference value with the system threshold value;
under the condition that the touch key is judged to be invalid, obtaining a plurality of difference value intervals and a threshold value adjusting mode corresponding to each difference value interval;
matching the first difference value with the plurality of difference value intervals to obtain a threshold value adjusting mode corresponding to the first difference value;
and adjusting the system threshold according to the threshold adjusting mode corresponding to the first difference value to obtain the adjusted threshold.
2. The method for processing touch keys according to claim 1, wherein the plurality of difference intervals comprise: the method comprises the following steps of obtaining a first difference value interval, a second difference value interval and a third difference value interval, wherein the system threshold value is adjusted according to a threshold value adjusting mode corresponding to the first difference value, and the obtaining of the adjusted threshold value comprises the following steps:
under the condition that the first difference value and the first difference value interval are successfully matched, taking a first preset threshold value as the adjusted threshold value;
under the condition that the first difference value and the second difference value are matched successfully, taking a second preset threshold value as the adjusted threshold value;
and under the condition that the first difference value and the third difference value are matched successfully, taking the system threshold value as the adjusted threshold value.
3. The method for processing the touch key according to claim 2, wherein when the first difference and the second difference are successfully matched, the method for processing the touch key further comprises, before taking a second preset threshold as the adjusted threshold, the method for processing the touch key further comprising:
acquiring a second key value generated by the touch key, wherein the second key value is a key value acquired after the first key value is acquired;
obtaining a difference value between the second key value and the reference value to obtain a second difference value;
matching the second difference value with the plurality of difference value intervals to obtain a difference value interval corresponding to the second difference value;
judging whether the difference interval corresponding to the second difference is the second difference interval;
if the difference value interval corresponding to the second difference value is the second difference value interval, taking the second preset threshold value as the adjusted threshold value;
and if the difference value interval corresponding to the second difference value is not the second difference value interval, taking the first preset threshold value or the system threshold value as the adjusted threshold value.
4. The method as claimed in claim 2, wherein the first difference interval is smaller than the system threshold and greater than or equal to a product of the system threshold and a first preset value, the second difference interval is smaller than a product of the system threshold and a first preset value and greater than or equal to a product of the system threshold and a second preset value, and the third difference interval is smaller than a product of the system threshold and a second preset value, wherein the first preset value and the second preset value are smaller than 1, and the first preset value is greater than the second preset value.
5. The method for processing the touch key of claim 4, wherein the first preset value is 0.6, and the second preset value is 0.2.
6. The method for processing the touch key according to claim 2, wherein after the system threshold is adjusted according to the threshold adjustment mode corresponding to the first difference value to obtain an adjusted threshold, the adjusted threshold is stored in a memory, and after the system threshold is powered on again, the adjusted threshold is used as the system threshold.
7. The method for processing touch keys of claim 1, wherein the number of the plurality of difference intervals is 2-6.
8. The method for processing the touch key according to claim 1, wherein the step of judging whether the touch key is valid by comparing the first difference value with the system threshold value comprises the steps of:
judging whether the first difference value is larger than or equal to the system threshold value;
if the first difference value is larger than or equal to the system threshold value, determining that the touch key is effective, and executing operation corresponding to the touch key;
and if the first difference value is smaller than the system threshold value, determining that the touch key is invalid, and not executing the operation corresponding to the touch key.
9. The method for processing the touch key according to claim 1, wherein before obtaining a first difference value between a first key value generated by the touch key and a reference value and a system threshold, the method further comprises:
after the cooking appliance is powered on, acquiring a third key value generated by the touch key;
and taking the third key value as the reference value.
10. The method for processing the touch key according to claim 1, wherein after the system threshold is adjusted according to the threshold adjustment manner corresponding to the first difference value to obtain an adjusted threshold, the method for processing the touch key further comprises:
acquiring a fourth key value generated after the touch key adjusts the system threshold value;
obtaining a difference value between the fourth key value and a reference value to obtain a third difference value;
and judging whether the touch key is effective or not by comparing the third difference value with the adjusted threshold value.
11. A processing apparatus for touch key, comprising:
the touch key control device comprises a first obtaining module and a second obtaining module, wherein the first obtaining module is used for obtaining a first difference value between a first key value generated by a touch key and a reference value and a system threshold value, and the reference value is a key value generated when the touch key is not triggered;
the judging module is used for judging whether the touch key is effective or not by comparing the first difference value with the system threshold value;
the second obtaining module is used for obtaining a plurality of difference value intervals and a threshold value adjusting mode corresponding to each difference value interval under the condition that the touch key is judged to be invalid;
the matching module is used for matching the first difference value with the plurality of difference value intervals to obtain a threshold value adjusting mode corresponding to the first difference value;
and the adjusting module is used for adjusting the system threshold according to the threshold adjusting mode corresponding to the first difference value to obtain the adjusted threshold.
12. A cooking appliance, comprising:
the touch key is arranged on the machine body of the cooking appliance and used for generating a first key value;
the controller is arranged in the machine body, connected with the touch key and used for acquiring a first difference value of a first key value and a reference value and a system threshold value, judging whether the touch key is effective or not by comparing the first difference value with the system threshold value, acquiring a plurality of difference value intervals and a threshold value adjusting mode corresponding to each difference value interval under the condition that the touch key is judged to be ineffective, matching the first difference value with the plurality of difference value intervals to obtain the threshold value adjusting mode corresponding to the first difference value, and adjusting the system threshold value according to the threshold value adjusting mode corresponding to the first difference value to obtain the adjusted threshold value, wherein the reference value is a key value generated when the touch key is not triggered.
13. The cooking appliance of claim 12, wherein the cooking appliance is an electric pressure cooker.
14. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the storage medium is controlled by a device to execute the processing method of the touch key according to any one of claims 1 to 10.
15. A processor, characterized in that the processor is configured to execute a program, wherein the program executes a processing method of a touch key according to any one of claims 1 to 10.
CN201711489934.6A 2017-12-29 2017-12-29 Processing method and device of touch key and cooking appliance Active CN109984579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711489934.6A CN109984579B (en) 2017-12-29 2017-12-29 Processing method and device of touch key and cooking appliance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711489934.6A CN109984579B (en) 2017-12-29 2017-12-29 Processing method and device of touch key and cooking appliance

Publications (2)

Publication Number Publication Date
CN109984579A CN109984579A (en) 2019-07-09
CN109984579B true CN109984579B (en) 2022-08-02

Family

ID=67111495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711489934.6A Active CN109984579B (en) 2017-12-29 2017-12-29 Processing method and device of touch key and cooking appliance

Country Status (1)

Country Link
CN (1) CN109984579B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080064368A (en) * 2007-01-04 2008-07-09 삼성전자주식회사 Apparatus and method for adjusting touch sensitivity in touch screen panel and touch screen display device using the same
CN201341123Y (en) * 2009-01-21 2009-11-04 汕头超声显示器(二厂)有限公司 Capacitive touch pad
CN101751179A (en) * 2009-12-16 2010-06-23 深圳市汇顶科技有限公司 Method and system for automatically calibrating sensitivity of touch detection, and touch control terminal
CN101923408A (en) * 2009-09-30 2010-12-22 苏州瀚瑞微电子有限公司 Method for automatically adjusting sensitivity of touch screen
CN104714703A (en) * 2013-12-11 2015-06-17 中兴通讯股份有限公司 Sensitivity adjustment method and device
WO2017113310A1 (en) * 2015-12-31 2017-07-06 深圳市柔宇科技有限公司 Adjustment method and adjustment apparatus for capacitive touch module

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI442298B (en) * 2011-10-27 2014-06-21 Novatek Microelectronics Corp Touch sensing method
CN103135810B (en) * 2011-11-24 2016-09-07 比亚迪股份有限公司 The pressure-sensitivity control method of a kind of touch-screen and system
KR20130070893A (en) * 2011-12-20 2013-06-28 삼성디스플레이 주식회사 Touch detection system and driving method thereof
CN103488364B (en) * 2013-09-29 2017-08-25 深圳Tcl工业研究院有限公司 A kind of capacitive touch screen and its self-adapting correction method, system
US9983738B2 (en) * 2013-10-14 2018-05-29 Parade Technologies, Ltd. Contact detection mode switching in a touchscreen device
CN103633984B (en) * 2013-12-13 2017-09-26 深圳芯邦科技股份有限公司 A kind of touch key-press chip and its sensitivity correction method and electronic equipment
CN104716944B (en) * 2015-03-30 2018-09-11 广东美的厨房电器制造有限公司 The triggering judgment method and household electrical appliance of touch key-press
CN105007071A (en) * 2015-08-25 2015-10-28 浙江绍兴苏泊尔生活电器有限公司 Method for judging whether capacitive touch key is effective or not and operation method
TWI581159B (en) * 2016-10-06 2017-05-01 遠翔科技股份有限公司 Charging calibration system and method thereof
CN107422899A (en) * 2017-04-25 2017-12-01 努比亚技术有限公司 A kind of terminal and the method for ensureing sensitivity of touch screen

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080064368A (en) * 2007-01-04 2008-07-09 삼성전자주식회사 Apparatus and method for adjusting touch sensitivity in touch screen panel and touch screen display device using the same
CN201341123Y (en) * 2009-01-21 2009-11-04 汕头超声显示器(二厂)有限公司 Capacitive touch pad
CN101923408A (en) * 2009-09-30 2010-12-22 苏州瀚瑞微电子有限公司 Method for automatically adjusting sensitivity of touch screen
CN101751179A (en) * 2009-12-16 2010-06-23 深圳市汇顶科技有限公司 Method and system for automatically calibrating sensitivity of touch detection, and touch control terminal
CN104714703A (en) * 2013-12-11 2015-06-17 中兴通讯股份有限公司 Sensitivity adjustment method and device
WO2017113310A1 (en) * 2015-12-31 2017-07-06 深圳市柔宇科技有限公司 Adjustment method and adjustment apparatus for capacitive touch module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电容式多点触摸屏的器件设计及算法实现;李兵兵等;《液晶与显示》;20110415(第02期);全文 *

Also Published As

Publication number Publication date
CN109984579A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109974235B (en) Method and device for controlling household appliance and household appliance
CN107886170B (en) Control method, device and system of cooking appliance, storage medium and processor
CN108983674B (en) Control method and device of electric appliance
CN108685477B (en) Cooking method, device and system and cooking appliance
US20160169576A1 (en) Control method and refrigerator
CN107065650B (en) Method and device for controlling knob and knob
CN108415306B (en) Control method and device of cooking equipment
CN108415301B (en) Cooking parameter changing method and device
CN110375417B (en) Control method and device of voice module and air conditioner
CN110604467B (en) Cooking utensil and depressurization exhaust method and device thereof
CN108415272A (en) A kind of inter-linked controlling method and device of cooking appliance
CN105559508A (en) Control method and system for cooking utensil
CN109984579B (en) Processing method and device of touch key and cooking appliance
CN108415293B (en) Cooking control method and device for cooking
CN109991868B (en) Household appliance control method and device
CN109984616B (en) Processing method of touch key and cooking appliance
CN114052513B (en) Cooking processing method and device, household appliance and storage medium
CN111035236B (en) Working power processing method and device and cooking appliance
CN110731693B (en) Cooking menu display method and device and cooking appliance
CN111722595B (en) Operation control method and device, cooking utensil, remote control equipment and storage medium
CN110934479A (en) Cooking appliance, and method and device for setting key threshold
CN112568705A (en) Cooking control method and device of cooking appliance and cooking appliance
CN110934480B (en) Cooking appliance, and method and device for setting appointment time
CN112998516A (en) Cooking appliance, control method and device thereof, storage medium and processor
CN108151258B (en) Control method, device and system of air conditioner, storage medium and processor

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