CN117193614A - Key control method and system and electrical equipment - Google Patents

Key control method and system and electrical equipment Download PDF

Info

Publication number
CN117193614A
CN117193614A CN202210597660.7A CN202210597660A CN117193614A CN 117193614 A CN117193614 A CN 117193614A CN 202210597660 A CN202210597660 A CN 202210597660A CN 117193614 A CN117193614 A CN 117193614A
Authority
CN
China
Prior art keywords
key
value
pressure
preset
adjustment
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.)
Pending
Application number
CN202210597660.7A
Other languages
Chinese (zh)
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.)
Hangzhou Robam Appliances Co Ltd
Original Assignee
Hangzhou Robam Appliances 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 Hangzhou Robam Appliances Co Ltd filed Critical Hangzhou Robam Appliances Co Ltd
Priority to CN202210597660.7A priority Critical patent/CN117193614A/en
Publication of CN117193614A publication Critical patent/CN117193614A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the invention discloses a control method and a system for keys and electrical equipment, wherein the control method comprises the following steps: obtaining a key pressure value; determining an adjustment step value according to the key pressure value; and obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value. The technical scheme provided by the embodiment of the invention solves the defect of low parameter adjustment speed of the conventional key and improves the user experience.

Description

Key control method and system and electrical equipment
Technical Field
The embodiment of the invention relates to the technical field of electrical equipment, in particular to a key control method and system and electrical equipment.
Background
The key used in the market at present can be divided into a point press mode and a long press mode or a combined key mode whether the key is a touch key or a light touch key. The click key is usually added/subtracted one at a time, so that the small-range adjustment is suitable, and the long-press key can be always added/subtracted according to a fixed step length, but when the parameter adjustment range value is large, the adjustment speed is slow, so that the operation experience is poor.
Disclosure of Invention
The invention provides a key control method, a system and electrical equipment, which are used for solving the defect of low parameter adjustment speed of a conventional key and improving user experience.
In a first aspect, an embodiment of the present invention provides a method for controlling a key, including:
obtaining a key pressure value;
determining an adjustment step value according to the key pressure value;
and obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
In a second aspect, the embodiment of the invention also provides a key control system, which comprises a key pressure detection module, a data processing module and a main control module which are electrically connected in sequence;
the key pressure detection module is used for acquiring a key pressure value;
the data processing module is used for determining an adjustment step value according to the key pressure value;
the main control module is used for obtaining the current value of the parameter controlled by the key and adjusting the current value of the parameter to the target value according to the adjustment step value.
In a third aspect, an embodiment of the present invention further provides an electrical apparatus, including a control system for a key according to any one of the first aspect.
According to the technical scheme, the key pressure value can be obtained by detecting the pressing force of the key in real time, then the adjustment step value is determined according to the key pressure value, the pressing force of the key can be related to the variable quantity of the numerical value, the adjustment step value with the numerical value being changed can be adjusted in real time by changing the pressing force of the key, and then the current numerical value of the parameter correspondingly controlled by the key and the adjustment step value are subjected to further operation processing to obtain the target numerical value.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a key control method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another key control method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for controlling a key according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for controlling a key according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for controlling a key according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for controlling a key according to an embodiment of the present invention;
FIG. 7 is a flowchart of a method for controlling a key according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a control system for a key according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another key control system according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise 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.
Fig. 1 is a flowchart of a key control method according to an embodiment of the present invention, as shown in fig. 1, the method mainly includes the following steps:
s101, obtaining a key pressure value.
In particular, some existing electrical devices or electronic devices are usually provided with a plurality of keys or buttons, and the specific types of the keys in the embodiment of the present invention are not limited, and include touch keys or mechanical keys. It can be understood that by setting the pressure sensing device at the key position, when the user presses the key, the magnitude of the key pressing force, that is, the key pressure value, can be obtained.
S102, determining an adjustment step value according to the key pressure value.
The adjustment step value refers to the numerical variation of the parameter controlled by the key, and it can be understood that the absolute value of the index value of the adjustment step value is herein. According to different types of parameters corresponding to the control of the keys, corresponding adjustment step values are different, and the adjustment step values can be integer values or decimal values, which are not limited by the embodiment of the invention.
Specifically, the adjustment step value may be determined by table lookup or online real-time calculation according to the key pressure value, which is not limited in the embodiment of the present invention. It can be understood that the key pressure values are different, and the corresponding adjustment step values may be the same or different, and the adjustment step values and the key pressure values may be linearly related or may be any functional relationship, which is not limited in the embodiment of the present invention. For example, the larger the key pressure value, the larger the adjustment step value.
S103, obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
The parameters corresponding to control may also be different according to the types of the keys, for example, the parameters corresponding to control of the temperature adjusting key are temperature, the parameters corresponding to control of the time adjusting key are time, and the embodiment of the invention is not limited to this. It will be appreciated that the type of values or the range of values of the parameters controlled by the different keys will also be different.
Specifically, the current value of the parameter corresponding to the control of the pressed key is obtained, and then the current value is adjusted to the target value by combining the adjustment step value. For example, the step value is adjusted by adding or subtracting the step value based on the current value to obtain the target value. It should be noted that, the target value may be set in advance by the user, or the value obtained by the user by pressing a key to adjust arbitrarily, which is not limited in the embodiment of the present invention. In addition, adjusting the current value of the parameter to the target value according to the adjustment step value includes, but is not limited to, an addition or subtraction operation, a multiplication or division operation, and the like.
In the process of pressing the key, the key may be pressed for a long time or pressed for a short time, and the value is adjusted based on the current value after the adjustment step value is determined by the detected key pressure value. The process may be to press the key once to perform a numerical adjustment, or continuously perform a numerical adjustment according to a pressure change with an increase of the pressing duration, which is not limited in the embodiment of the present invention. It can be understood that any mode of determining the adjustment step value according to the key pressure value and then adjusting the current value of the parameter to the target value according to the adjustment step value is within the scope of the technical scheme of the embodiment of the invention.
In this embodiment, the key pressure value may be obtained by detecting the pressing force of the key in real time, and then the adjustment step value is determined according to the key pressure value, so that the pressing force of the key and the change amount of the value may be associated, so that the adjustment step value of the value change is adjusted in real time by changing the pressing force of the key, and then the current value of the parameter corresponding to the control of the key and the adjustment step value are further processed to obtain the target value, so that the step value of the parameter adjustment may be adaptively changed for the parameters in different adjustment ranges, so as to shorten the time of parameter adjustment, improve the efficiency of parameter adjustment, and further improve the experience effect of the user.
Optionally, fig. 2 is a flowchart of another key control method according to an embodiment of the present invention, as shown in fig. 2, on the basis of fig. 1, an adjustment step value is determined according to a key pressure value, including: comparing the key pressure value with a plurality of preset pressure ranges in a preset database, and determining the preset pressure range in which the key pressure value is located; and determining an adjustment step value according to the preset pressure range in which the key pressure value is positioned, wherein the adjustment step value corresponds to the preset pressure ranges one by one and is positively correlated with the average pressure value corresponding to the preset pressure ranges. Therefore, the control method mainly includes the steps of:
s201, obtaining a key pressure value.
S202, comparing the key pressure value with a plurality of preset pressure ranges in a preset database, and determining the preset pressure range in which the key pressure value is located.
The preset database can be preset by a user or inside the system, and is different according to different parameters corresponding to control of specific keys. It can be understood that, according to the difference of the adjustment ranges of the parameters controlled by the keys and the difference of the adjustment precision of the parameters, the number of the preset pressure ranges in the corresponding preset library is also different, which is not limited by the embodiment of the present invention, and can be selectively set by a person skilled in the art according to the actual requirements.
Specifically, a preset database of key pressure values is pre-established, the preset database comprises a plurality of preset pressure ranges, and then the obtained key pressure values are respectively compared with the preset pressure ranges one by one, so that the preset pressure range in which the key pressure values are located can be determined. It can be understood that the preset pressure range is composed of a pressure lower limit value and a pressure upper limit value, and the multiple preset pressure ranges are not overlapped, and meanwhile, the sizes of the multiple preset pressure ranges can be the same or different, the embodiment of the invention is not limited to the above, and the preset pressure ranges can be set according to actual conditions. For example, the preset database includes a plurality of preset pressure ranges of (0 n,0.5 n), [0.5n,0.8 n), [0.8n,1.2 n), [1.2n,1.6 n), [1.6n,2 n), [2n,10 n), and the like.
S203, determining an adjustment step value according to a preset pressure range where the key pressure value is located, wherein the adjustment step value corresponds to the preset pressure ranges one by one, and the average pressure values corresponding to the preset pressure ranges are positively correlated.
Each preset pressure range corresponds to an adjustment step value, so that after the preset pressure range where the key pressure value is located is determined, the adjustment step value of the parameter corresponding to the control of the key at the moment, which needs to be adjusted and changed, can be further determined. The average pressure value corresponding to the preset pressure range can be determined according to the pressure lower limit value and the pressure upper limit value of the preset pressure range, if the average pressure value is larger, the adjustment step value corresponding to the preset pressure range is larger, and if the average pressure value is smaller, the adjustment step value corresponding to the preset pressure range is smaller. Further, the larger the key pressure value is, the larger the adjustment step value is, the smaller the key pressure value is, and the smaller the adjustment step value is, so that the size of the adjustment step value can be changed by changing the magnitude of the force pressing the key.
S204, obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
In this embodiment, the key pressure value can be obtained by detecting the pressing force of the key in real time, and then the obtained key pressure value is respectively compared with a plurality of preset pressure ranges one by one to determine the preset pressure range in which the key pressure value is located at the moment, and the current value of the control parameter corresponding to the key is adjusted according to the adjustment step value determined by the preset pressure range, so that the value of the parameter reaches the target value, the parameter adjustment efficiency is improved, and the experience effect of the user is further improved.
It should be noted that, the adjustment step value is determined according to the preset pressure range where the key pressure value is located, at this time, the key may be pressed for a long time or pressed for a short time, so long as the detected key pressure value meets the preset requirement, the current value is adjusted according to the determined adjustment step value, and it can be understood that, once the key is pressed, the value of the parameter controlled by the key is adjusted once.
For example, the parameter corresponding to the control of the key is temperature, the adjustable range of the corresponding temperature is (0 ℃ and 220 ℃), each pair of increasing keys corresponding to the temperature is pressed once, by collecting the corresponding key pressure values in the pressing process, it can be determined that the preset pressure ranges where the key pressure values are located are determined by comparing with a plurality of preset pressure ranges in a preset database, for example, 20 ℃, the current temperature value is known to be 100 ℃, and the temperature value is adjusted to be 120 ℃ after the key is pressed. It should be noted that, since the pressure value cannot be kept completely constant during the pressing of the key by the user, the obtained key pressure value may be the maximum key pressure value during each key pressing.
Optionally, fig. 3 is a flowchart of a control method of a key according to another embodiment of the present invention, as shown in fig. 3, on the basis of fig. 1, an adjustment step value is determined according to a key pressure value, including: determining a step length adjustment speed value according to the key pressure value; calculating a first duration for which the key pressure value remains unchanged; and calculating an adjustment step value in real time according to the step adjustment speed value and the first duration, wherein the adjustment step value is a mathematical function related to the step adjustment speed value and the first duration. Therefore, the control method mainly includes the steps of:
s301, obtaining a key pressure value.
S302, determining a step length adjustment speed value according to the key pressure value.
The step adjustment speed value refers to an adjustment step value corresponding to a fixed time, for example, the step adjustment speed value is increased by 5 every 100ms, i.e. the step adjustment speed value is 5/100ms, which is not limited in the embodiment of the present invention.
Specifically, the step adjustment speed value may be determined by table lookup or online real-time calculation according to the key pressure value, which is not limited in the embodiment of the present invention. It can be understood that the key pressure values are different, and the corresponding step adjustment speed values may be the same or different, and the step adjustment speed values and the key pressure values may be linearly related or may be any functional relationship, which is not limited by the embodiment of the present invention. For example, the larger the key pressure value, the larger the step adjustment speed value.
S303, calculating the first duration time for which the key pressure value is kept unchanged.
Specifically, in the process of pressing the key, the key pressure value may change in real time, and different key pressure values may be timed by a timing device in the control system to obtain a first duration time for which the key pressure value remains unchanged.
S304, calculating an adjustment step value in real time according to the step adjustment speed value and the first duration, wherein the adjustment step value is a mathematical function related to the step adjustment speed value and the first duration.
Specifically, the adjustment step value is a mathematical function of the step adjustment speed value and the first duration, including but not limited to, adjustment step value = step adjustment speed value. For example, in the process of pressing the key, the key pressure value is kept unchanged all the time, the step length adjustment speed value corresponding to the key pressure value is determined to be 5/100ms through table lookup, and meanwhile, the duration of the key pressure value kept unchanged is 200ms, so that the adjustment step length value of the parameter corresponding to the control of the key can be calculated to be 10.
It can be understood that if the key pressure value changes in real time during the continuous pressing process of the key, the corresponding step adjustment speed value also changes in real time, and the corresponding adjustment step value corresponding to different time periods can be determined by calculating the corresponding first duration time for different key pressure values, that is, in this process, the adjustment step value of the parameter corresponding to the control of the key changes, and the specific change trend is positively correlated with the key pressure value.
S305, obtaining the current value of the parameter controlled by the corresponding key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
Specifically, according to the adjustment step value obtained by calculation in the above steps, the current value is increased or decreased according to the change trend of the adjustment step value until the key is pressed, and the parameter value controlled by the key correspondingly reaches the target value. It will be appreciated that in this process, the speed of change of the value of the parameter controlled by the key is the same as the step adjustment speed value, and the step adjustment speed value is positively correlated with the key pressure value, so that the greater the key pressure value, the faster the speed of change of the value of the parameter controlled by the key, and the smaller the key pressure value, the slower the speed of change of the value of the parameter controlled by the key.
For example, if a certain parameter is to be adjusted from 1 to 720, the adjustment speed is +1/100ms if the user touches the device lightly, and if the finger pressing force is increased, the adjustment speed is automatically adjusted to +15/100ms or higher, so that the parameter can be quickly adjusted, the parameter adjustment time is shortened, the operation efficiency is improved, and the experience effect of the user is further improved.
In this embodiment, the key pressure value may be obtained by detecting the pressing force of the key in real time, then determining the step length adjustment speed value for the key pressure value, and meanwhile, calculating the first duration time for which the key pressure value remains unchanged, so that the adjustment step length value may be calculated in real time according to the specific functional relationship between the step length adjustment speed value and the first duration time, and further, the current value of the key corresponding to the control parameter may be adjusted, so that the value of the parameter reaches the target value, the efficiency of parameter adjustment is improved, and further, the experience effect of the user is improved.
Optionally, fig. 4 is a flowchart of a control method of a key according to another embodiment of the present invention, as shown in fig. 4, on the basis of fig. 3, a step adjustment speed value is determined according to a key pressure value, including: comparing the key pressure value with a plurality of preset pressure ranges in a preset database, and determining the preset pressure range in which the key pressure value is located; and determining a step length adjusting speed value according to a preset pressure range in which the key pressure value is positioned, wherein the step length adjusting speed value corresponds to the preset pressure ranges one by one and is positively correlated with the average pressure value of the preset pressure ranges. Therefore, the control method mainly includes the steps of:
s401, obtaining a key pressure value.
S402, comparing the key pressure value with a plurality of preset pressure ranges in a preset database, and determining the preset pressure range in which the key pressure value is located.
The preset database can be preset by a user or inside the system, and is different according to different parameters corresponding to control of specific keys. It can be understood that, according to the difference of the adjustment ranges of the parameters controlled by the keys and the difference of the adjustment precision of the parameters, the number of the preset pressure ranges in the corresponding preset library is also different, which is not limited by the embodiment of the present invention, and can be selectively set by a person skilled in the art according to the actual requirements.
S403, determining a step adjustment speed value according to a preset pressure range in which the key pressure value is located, wherein the step adjustment speed value corresponds to the preset pressure ranges one by one and is positively correlated with an average pressure value of the preset pressure ranges.
Each preset pressure range corresponds to a step adjustment speed value, so that after the preset pressure range where the key pressure value is located is determined, the step adjustment speed value corresponding to the parameter step adjustment value controlled by the key at the moment, in other words, the speed of parameter adjustment change, can be further determined.
In addition, the average pressure value corresponding to the preset pressure range can be determined according to the pressure lower limit value and the pressure upper limit value of the preset pressure range, if the average pressure value is larger, the adjustment step value corresponding to the preset pressure range is larger, and if the average pressure value is smaller, the adjustment step value corresponding to the preset pressure range is smaller. Further, the larger the key pressure value is, the larger the adjustment step value is, the smaller the key pressure value is, and the smaller the adjustment step value is, so that the size of the adjustment step value can be changed by changing the magnitude of the force pressing the key.
S404, calculating the first duration time for which the key pressure value is kept unchanged.
S405, calculating an adjustment step value in real time according to the step adjustment speed value and the first duration, wherein the adjustment step value is a mathematical function related to the step adjustment speed value and the first duration.
S406, obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
In this embodiment, the key pressure value may be obtained by detecting the pressing force of the key in real time, and then comparing the obtained key pressure value with a plurality of preset pressure ranges one by one, to determine the preset pressure range in which the key pressure value is located at this time, and determine the step adjustment speed value according to the preset pressure range, and at the same time, calculate the first duration time in which the key pressure value remains unchanged, further calculate the step adjustment speed value and the first duration time to obtain the adjustment step value at this time, and then adjust the current value of the control parameter corresponding to the key, so that the value of the parameter reaches the target value, improving the efficiency of parameter adjustment, and further improving the experience effect of the user.
Optionally, fig. 5 is a flowchart of another key control method according to an embodiment of the present invention, as shown in fig. 5, before comparing a key pressure value with a preset pressure range in a preset database in step S202 on the basis of fig. 2, the method further includes: acquiring a key touch signal, and determining a parameter corresponding to control of a key and an adjustable range of the parameter according to the key touch signal; and determining a preset database corresponding to the parameters according to the adjustable range of the parameters and the key pressure value. Thus, the method comprises in particular the following steps:
s501, obtaining a key pressure value.
S502, acquiring a key touch signal, and determining a parameter corresponding to control of a key and an adjustable range of the parameter according to the key touch signal.
The key touch signal is triggered and generated when the key is just pressed or touched, and it can be understood that the key touch signal refers to an effective key touch signal, and the effective key touch signal can be determined by comparing a key pressure value with a preset pressure value, or by comparing the duration of the existence (i.e. greater than zero) of the key pressure value with a preset time. The key touch signal may be an analog signal or a digital signal, which is not limited in the embodiment of the present invention.
Specifically, by acquiring the key touch signal and performing further processing analysis, the key type corresponding to the key touch signal and the parameter corresponding to the control of the key can be determined, and meanwhile, the adjustable range of the parameter can also be determined.
S503, determining a preset database corresponding to the parameters according to the adjustable range of the parameters and the key pressure value.
It can be understood that the adjustable range of the parameters is not different according to the different parameters corresponding to the keys, in addition, the adjustment precision of different parameters is different, so that the preset databases corresponding to different key pressure values are different comprehensively, and the person skilled in the art can set according to the actual situation. After the parameters and the adjustable ranges of the parameters corresponding to the control of the keys are determined according to the key touch signals, a preset database to be called can be determined through the adjustable ranges of the parameters and the key pressure values, so that corresponding information can be read for different key pressure values later.
S504, comparing the key pressure value with a plurality of preset pressure ranges in a preset database, and determining the preset pressure range in which the key pressure value is located.
S505, determining an adjustment step value according to a preset pressure range where the key pressure value is located, wherein the adjustment step value corresponds to the preset pressure ranges one by one, and the average pressure values corresponding to the preset pressure ranges are positively correlated.
S506, obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
In this embodiment, the key touch signal includes information such as a parameter controlled by the key and an adjustable range of the parameter, and it can be understood that the key touch signals corresponding to different keys are different, the parameter controlled by the key and the adjustable range of the parameter are determined by acquiring the key touch signal, so that a preset database can be accurately read, and then an adjustment step value or a step adjustment speed value is accurately determined by acquiring the key pressure value, thereby realizing efficient and high-accuracy adjustment of the parameter and improving user experience.
In another embodiment, fig. 6 is a flowchart of a control method of a key according to another embodiment of the present invention, as shown in fig. 6, before comparing a key pressure value with a preset pressure range in a preset database in step S402 on the basis of fig. 4, the method further includes: acquiring a key touch signal, and determining a parameter corresponding to control of a key and an adjustable range of the parameter according to the key touch signal; and determining a preset database corresponding to the parameters according to the adjustable range of the parameters and the key pressure value. Thus, the method comprises in particular the following steps:
s601, obtaining a key pressure value.
S602, acquiring a key touch signal, and determining a parameter corresponding to control of a key and an adjustable range of the parameter according to the key touch signal.
S603, determining a preset database corresponding to the parameters according to the adjustable range of the parameters and the key pressure value.
S604, comparing the key pressure value with a plurality of preset pressure ranges in a preset database, and determining the preset pressure range in which the key pressure value is located.
S605, determining a step adjustment speed value according to a preset pressure range in which the key pressure value is located, wherein the step adjustment speed value corresponds to the preset pressure ranges one by one and is positively correlated with an average pressure value of the preset pressure ranges.
S606, calculating the first duration time for which the key pressure value is kept unchanged.
S607, calculating an adjustment step value in real time according to the step adjustment speed value and the first duration, wherein the adjustment step value is a mathematical function related to the step adjustment speed value and the first duration.
S608, obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
Optionally, fig. 7 is a flowchart of a control method of a key according to another embodiment of the present invention, as shown in fig. 7, on the basis of fig. 1, before detecting a key pressure value, including: acquiring a key touch signal, and judging that the duration of the key touch signal exceeds a first preset time; and determining a numerical variation rule of the parameter corresponding to the control of the key according to the key touch signal, wherein the numerical variation rule comprises increasing or decreasing. Thus, the method essentially comprises the steps of:
s701, acquiring a key touch signal, and judging that the duration of the key touch signal exceeds a first preset time.
The specific value of the first preset time may be set according to the actual situation, which is not limited in the embodiment of the present invention.
Specifically, aiming at the existing keys with multiple touches, the user may have the condition of no touch, so that when the key touch signal is acquired, the duration of the key touch signal is compared with the first preset time, whether the key touch signal is an effective touch signal can be further judged, the normal operation of the equipment is prevented from being influenced by the false touch of the user, the reliability of the product is ensured, and the use experience of the product is improved.
S702, determining a numerical value change rule of a parameter corresponding to control of the key according to the key touch signal, wherein the numerical value change rule comprises increase or decrease.
It will be appreciated that typically the product will include multiple types of keys, such as temperature keys or time keys, etc., while for the same parameter type of keys there will be further differentiation of increasing or decreasing, such as temperature increase keys, or temperature decrease keys, etc. In this way, when different keys are pressed, the generated key touch signals are different, and the numerical variation rule of the parameters controlled by the keys corresponding to the keys can be determined according to the key touch signals obtained through actual detection, including increasing or decreasing.
For example, when the user presses the temperature increasing key, a key touch signal is generated, and the parameter corresponding to the control of the key can be determined to be temperature through further analysis and processing of the key touch signal, and the value of the temperature needs to be increased.
S703, obtaining a key pressure value.
S704, determining an adjustment step value according to the key pressure value.
And S705, obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
In this embodiment, by acquiring the key touch signal and determining that the duration of the key touch signal exceeds the first preset time, it may be determined whether the key touch signal is a valid key touch signal, that is, it is determined that the user is performing operations such as pressing or touching the key, and then it may be further determined, according to the key touch signal, whether the value of the parameter controlled by the key needs to be increased or decreased. Meanwhile, the key pressure value corresponding to the key at the moment is obtained, then the adjustment step value is determined according to the key pressure value, the pressing force of the key can be related to the variable quantity of the numerical value, the adjustment step value of the numerical value change can be adjusted in real time by changing the pressing force of the key, then the current numerical value of the parameter corresponding to the control of the key at the moment and the adjustment step value are subjected to further operation processing to obtain the target numerical value, the parameter adjustment efficiency is improved, and the user experience effect is further improved.
Based on the same inventive concept, the embodiment of the present invention further provides a key control system, and fig. 8 is a schematic structural diagram of the key control system provided in the embodiment of the present invention, as shown in fig. 8, where the control system includes a key pressure detection module 10, a data processing module 20, and a main control module 30 that are electrically connected in sequence; the key pressure detection module 10 is used for acquiring a key pressure value; the data processing module 20 is used for determining an adjustment step value according to the key pressure value; the main control module 30 is configured to obtain a current value of a parameter controlled by the key, and adjust the current value of the parameter to a target value according to the adjustment step value.
In this embodiment, the key pressure detection module 10 detects the pressing force of the key in real time, so as to obtain a key pressure value, and then the data processing module 20 determines an adjustment step value according to the key pressure value, so that the pressing force of the key can be associated with the variable quantity of the value, and the adjustment step value of the value change can be adjusted in real time by changing the pressing force of the key, and then the main control module 30 carries out further operation processing on the current value of the parameter corresponding to the key at this time and the adjustment step value to obtain a target value, thereby improving the efficiency of parameter adjustment, and further improving the experience effect of the user.
Optionally, with continued reference to fig. 8, the data processing module 20 is configured to compare the key pressure value with a plurality of preset pressure ranges in a preset database, determine a preset pressure range in which the key pressure value is located, determine an adjustment step value according to the preset pressure range in which the key pressure value is located, where the adjustment step value corresponds to the preset pressure ranges one to one, and has a positive correlation with an average pressure value corresponding to the preset pressure ranges.
Optionally, with continued reference to fig. 8, the data processing module 20 is configured to determine a step adjustment speed value according to the key pressure value, calculate a first duration for which the key pressure value remains unchanged, and calculate an adjustment step value in real time according to the step adjustment speed value and the first duration, where the adjustment step value is a mathematical function of the step adjustment speed value and the first duration.
Optionally, fig. 9 is a schematic structural diagram of another key control system according to an embodiment of the present invention, as shown in fig. 9, where the control system further includes a key touch signal detection module 40 electrically connected to the data processing module 20; the key touch signal detection module 40 is configured to obtain a key touch signal, and determine that a duration of the key touch signal exceeds a first preset time; the data processing module 20 is configured to determine a numerical variation rule of a parameter of the key corresponding control according to the key touch signal, where the numerical variation rule includes increasing or decreasing.
In this embodiment, the key touch signal detection module 40 obtains the key touch signal, and determines that the duration of the key touch signal exceeds the first preset time, so as to determine whether the key touch signal is an effective key touch signal, that is, determine that the user is pressing or touching the key, so as to avoid affecting the normal operation of the device due to the false touch of the user, ensure the reliability of the product, and further improve the use experience of the product. Then, the data processing module 20 can further determine whether the value of the parameter controlled by the corresponding key needs to be increased or decreased according to the key touch signal, and can accurately determine the change rule of the parameter controlled by the corresponding key, and adjust the parameter value, so that the efficiency of parameter adjustment is improved, and the experience effect of the user is further improved.
Optionally, with continued reference to fig. 9, the control system further includes a power module 50 and a display module 60, where the power module 50 is electrically connected to the key pressure detection module 10, the key touch signal detection module 40, the data processing module 20 and the main control module 30, respectively, so as to provide a power signal, thereby ensuring normal operation of the entire system. The display module 60 is electrically connected to the main control module 30 to display the parameters corresponding to the keys, the current values of the parameters, the target values, etc.
Based on the same inventive concept, the embodiment of the present invention further provides an electrical apparatus, which includes the control system of the key in any embodiment of the present invention, so that the electrical apparatus provided in the embodiment of the present invention has the technical effects of the technical solution in any embodiment, and the explanation of the same or corresponding structure and terms as those of the embodiment is not repeated herein. The electrical equipment provided by the embodiment of the invention can be any electrical equipment with a key function, including but not limited to the following categories: the embodiments of the present invention are not particularly limited to televisions, refrigerators, electric ovens, electromagnetic ovens, electric water heaters, dish washers, microwave ovens, and the like. It can be understood that any device that includes a key function and needs parameter adjustment by touching a key is within the scope of the technical solution protected by the embodiment of the present invention.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (11)

1. A key control method, comprising:
obtaining a key pressure value;
determining an adjustment step value according to the key pressure value;
and obtaining the current value of the parameter controlled by the key, and adjusting the current value of the parameter to the target value according to the adjustment step value.
2. The key control method according to claim 1, wherein determining an adjustment step value according to the key pressure value comprises:
comparing the key pressure value with a plurality of preset pressure ranges in a preset database, and determining the preset pressure range in which the key pressure value is located;
and determining the adjustment step length value according to the preset pressure range in which the key pressure value is located, wherein the adjustment step length value corresponds to the preset pressure ranges one by one and is positively correlated with the average pressure value corresponding to the preset pressure ranges.
3. The key control method according to claim 1, wherein determining an adjustment step value according to the key pressure value comprises:
determining a step length adjusting speed value according to the key pressure value;
calculating a first duration for which the key pressure value remains unchanged;
and calculating the adjustment step length value in real time according to the step length adjustment speed value and the first duration, wherein the adjustment step length value is a mathematical function related to the step length adjustment speed value and the first duration.
4. A key control method according to claim 3, wherein determining a step adjustment speed value from the key pressure value comprises:
comparing the key pressure value with a plurality of preset pressure ranges in a preset database, and determining the preset pressure range in which the key pressure value is located;
and determining the step length adjusting speed value according to the preset pressure range in which the key pressure value is positioned, wherein the step length adjusting speed value corresponds to the preset pressure ranges one by one and is positively correlated with the average pressure value of the preset pressure ranges.
5. The key control method according to any one of claims 2 or 4, further comprising, before comparing the key pressure value with a preset pressure range in a preset database:
acquiring a key touch signal, and determining a parameter corresponding to control of the key and an adjustable range of the parameter according to the key touch signal;
and determining the preset database corresponding to the parameter according to the adjustable range of the parameter and the key pressure value.
6. The key control method according to claim 1, comprising, before detecting the key pressure value:
acquiring a key touch signal, and judging that the duration of the key touch signal exceeds a first preset time;
and determining a numerical value change rule of the parameter corresponding to the control of the key according to the key touch signal, wherein the numerical value change rule comprises increasing or decreasing.
7. The key control system is characterized by comprising a key pressure detection module, a data processing module and a main control module which are electrically connected in sequence;
the key pressure detection module is used for acquiring a key pressure value;
the data processing module is used for determining an adjustment step value according to the key pressure value;
the main control module is used for obtaining the current value of the parameter controlled by the key and adjusting the current value of the parameter to the target value according to the adjustment step value.
8. The key control system according to claim 7, wherein the data processing module is configured to compare the key pressure value with a plurality of preset pressure ranges in a preset database, determine a preset pressure range in which the key pressure value is located, and determine the adjustment step value according to the preset pressure range in which the key pressure value is located, where the adjustment step value corresponds to the preset pressure ranges one to one, and average pressure values corresponding to the preset pressure ranges are positively correlated.
9. The key control system of claim 7, wherein the data processing module is configured to determine a step adjustment speed value based on the key pressure value, calculate a first duration for which the key pressure value remains unchanged, and calculate the adjustment step value in real time based on the step adjustment speed value and the first duration, the adjustment step value being a mathematical function of the step adjustment speed value and the first duration.
10. The key control system of claim 7, further comprising a key touch signal detection module electrically connected to the data processing module;
the key touch signal detection module is used for acquiring a key touch signal and judging that the duration of the key touch signal exceeds a first preset time;
the data processing module is used for determining a numerical value change rule of the parameter corresponding to the control of the key according to the key touch signal, wherein the numerical value change rule comprises increase or decrease.
11. An electrical device comprising a control system of keys according to any of claims 7-9.
CN202210597660.7A 2022-05-30 2022-05-30 Key control method and system and electrical equipment Pending CN117193614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210597660.7A CN117193614A (en) 2022-05-30 2022-05-30 Key control method and system and electrical equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210597660.7A CN117193614A (en) 2022-05-30 2022-05-30 Key control method and system and electrical equipment

Publications (1)

Publication Number Publication Date
CN117193614A true CN117193614A (en) 2023-12-08

Family

ID=89002109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210597660.7A Pending CN117193614A (en) 2022-05-30 2022-05-30 Key control method and system and electrical equipment

Country Status (1)

Country Link
CN (1) CN117193614A (en)

Similar Documents

Publication Publication Date Title
US8169413B2 (en) Method for operating touch input device and portable terminal using the same
CN106681553B (en) A kind of adjusting method and terminal of touch-control pressure threshold
CN105630235B (en) Pressure sensing method and its system
US11561661B2 (en) Capacitive sensor filtering apparatus, method, and system
CN108271418B (en) Method for detecting wet state of touch screen and capacitive touch device
CN105404420B (en) Pressure-sensing signal processing method and its system
CN108512542B (en) Touch key signal processing method and device and computer readable storage medium
EP3036834B1 (en) Capacitive sensor filtering method
CN105528130A (en) A control method and device and an electronic apparatus
EP3183636B1 (en) Capacitive sensor filtering apparatus, method, and system
CN117193614A (en) Key control method and system and electrical equipment
CN108459766A (en) A kind of control method of detection device, detection device and computer readable storage medium
CN106527783A (en) Method for adaptively adjusting touch threshold and related controller
US10001868B2 (en) Information processing method, information processing device, and electronic apparatus
WO2017113310A1 (en) Adjustment method and adjustment apparatus for capacitive touch module
CN101681156B (en) A system and a method for processing a signal from an electric device
WO2014002315A1 (en) Operation device
CN104898910B (en) A kind of control method and electronic equipment
CN218496123U (en) Capacitive sensor device with drift compensation and related portable electronic device
CN107967076A (en) The recognition methods of resistive touch screen type and device
TW201337696A (en) Touch determining method, touch determiner, signal processor and touch system
CN103472962A (en) Method for recognizing touch type of capacitor
CN103365443A (en) Touch judging method, touch judging device, signal processor and touch system
CN117498848A (en) Touch detection method and panel of capacitive touch key
CN118605785A (en) Key detection method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication