CN113037268A - Method and device for adjusting key touch threshold - Google Patents

Method and device for adjusting key touch threshold Download PDF

Info

Publication number
CN113037268A
CN113037268A CN202110302434.7A CN202110302434A CN113037268A CN 113037268 A CN113037268 A CN 113037268A CN 202110302434 A CN202110302434 A CN 202110302434A CN 113037268 A CN113037268 A CN 113037268A
Authority
CN
China
Prior art keywords
key
capacitance
value
adjusted
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.)
Pending
Application number
CN202110302434.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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110302434.7A priority Critical patent/CN113037268A/en
Publication of CN113037268A publication Critical patent/CN113037268A/en
Priority to PCT/CN2021/135655 priority patent/WO2022199121A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches

Abstract

The disclosure discloses a method and a device for adjusting a key touch threshold value, and relates to the field of key control. The method comprises the following steps: according to the number of the effective keys, the touched effective time of the key to be adjusted, the updated lower limit value of the capacitance threshold value and the average value of the noise capacitance, judging whether the capacitance value of the key to be adjusted is recorded as a first capacitance value; and when the recorded number of the first capacitance values of the to-be-adjusted keys is larger than the first number threshold, adjusting the touch threshold of the to-be-adjusted keys according to the recorded average value of the first capacitance values of the to-be-adjusted keys. According to the method for adjusting the touch threshold of the optimized key, the accuracy of touch threshold calculation is improved, the sensitivity of the touch key is always kept at a proper level, and the touch threshold can be adjusted when the capacitance value of the touch key is small, so that the key can be normally operated.

Description

Method and device for adjusting key touch threshold
Technical Field
The present disclosure relates to the field of key control, and in particular, to a method and an apparatus for adjusting a key touch threshold.
Background
Touch keys are increasingly widely applied, and the sensitivity problem of the touch keys directly influences the application of the keys. In the related art, the capacitance value of each time when the key is touched is recorded, the number of times of touching the key is counted, and when the number of times of touching the key reaches a set number of times, whether abnormal data exists in the data is judged. And if the abnormal data exist, deleting the abnormal data and acquiring the capacitance value again to complement the touch capacitance value of the set times until the abnormal data do not exist, and calculating the average value of the capacitance values of the keys of the set times to further obtain the touch capacitance value threshold.
In the related art, the consideration is not comprehensive when the capacitance value of the key is recorded each time, which causes that the touch threshold obtained by final calculation is not ideal, and the sensitivity of the key is still influenced.
Disclosure of Invention
The technical problem to be solved by the present disclosure is to provide a method and an apparatus for adjusting a key touch threshold, which can improve the accuracy of touch threshold calculation and ensure that the touch key sensitivity is always kept at a proper level.
According to an aspect of the present disclosure, a method for adjusting a key touch threshold is provided, including: according to the number of the effective keys, the touched effective time of the key to be adjusted, the updated lower limit value of the capacitance threshold value and the average value of the noise capacitance, judging whether the capacitance value of the key to be adjusted is recorded as a first capacitance value; and when the recorded number of the first capacitance values of the to-be-adjusted keys is larger than the first number threshold, adjusting the touch threshold of the to-be-adjusted keys according to the recorded average value of the first capacitance values of the to-be-adjusted keys.
In some embodiments, determining whether to record the capacitance value of the key to be adjusted as the first capacitance value comprises: recording the capacitance value of the key to be adjusted as a first capacitance value under the condition that the key to be adjusted is an effective key, the touch effective time is less than the effective duration time, and the number of the effective keys in the same time is less than or equal to a second number threshold value; recording the capacitance value of the key to be adjusted as a first capacitance value under the condition that the key to be adjusted is an invalid key but the capacitance value of the key to be adjusted is greater than the updated lower limit value of the capacitance threshold value; and recording the capacitance value of the key to be adjusted as a first capacitance value if the times that the capacitance value of the key to be adjusted is larger than the first multiple of the average value of the noise capacitance is detected to be larger than the time threshold value under the conditions that the key to be adjusted is an invalid key and the capacitance value of the key to be adjusted is smaller than or equal to the threshold value updating lower limit value.
In some embodiments, when the capacitance value of the key to be adjusted is smaller than the noise capacitance threshold and smaller than a second multiple of the average value of the noise capacitance, recording the capacitance value of the key to be adjusted as a second capacitance value, wherein the second multiple is smaller than the first multiple, and the noise capacitance threshold is smaller than the threshold update lower limit value; and carrying out average calculation on the second capacitance values of the keys to be adjusted, which are recorded for multiple times, so as to obtain the average value of the noise capacitance.
In some embodiments, when the capacitance value of the key to be adjusted is greater than the effective capacitance threshold value, the key to be adjusted is determined to be an effective key.
In some embodiments, adjusting the touch threshold of the key to be adjusted according to the recorded average value of the first capacitance value of the key to be adjusted includes: and taking the average value of the first capacitance values of the keys to be adjusted and the capacitance value obtained after removing the second multiple of the average value of the noise capacitance as the touch threshold value of the keys to be adjusted.
In some embodiments, adjusting the touch threshold of the key to be adjusted according to the recorded average value of the first capacitance value of the key to be adjusted includes: and taking the average value of the first capacitance value of the key to be adjusted and the capacitance value obtained by multiplying the average value by the noise influence factor coefficient as the touch threshold value of the key to be adjusted, wherein the noise influence factor coefficient is less than 1.
According to another aspect of the present disclosure, there is also provided an apparatus for adjusting a key touch threshold, including: the capacitance value recording unit is configured to judge whether to record the capacitance value of the key to be adjusted as a first capacitance value according to the number of the effective keys, the touched effective time of the key to be adjusted, the updated lower limit value of the capacitance threshold value and the average value of the noise capacitance; and the touch threshold value adjusting unit is configured to adjust the touch threshold value of the key to be adjusted according to the average value of the recorded first capacitance values of the key to be adjusted when the recorded number of the first capacitance values of the key to be adjusted is larger than the first number threshold value.
In some embodiments, the capacitance value recording unit is configured to record the capacitance value of the key to be adjusted as a first capacitance value when the key to be adjusted is an effective key, the touch effective time is less than the effective duration, and the number of effective keys in the same time is less than or equal to a second number threshold; recording the capacitance value of the key to be adjusted as a first capacitance value under the condition that the key to be adjusted is an invalid key but the capacitance value of the key to be adjusted is greater than the updated lower limit value of the capacitance threshold value; and recording the capacitance value of the key to be adjusted as a first capacitance value if the times that the capacitance value of the key to be adjusted is larger than the first multiple of the average value of the noise capacitance is detected to be larger than the time threshold value under the conditions that the key to be adjusted is an invalid key and the capacitance value of the key to be adjusted is smaller than or equal to the threshold value updating lower limit value.
In some embodiments, the noise capacitance average value adjusting unit is configured to perform an average calculation on second capacitance values of the to-be-adjusted keys recorded for multiple times to obtain a noise capacitance average value, wherein the capacitance value recording unit is further configured to record the capacitance value of the to-be-adjusted key as the second capacitance value when the capacitance value of the to-be-adjusted key is smaller than a noise capacitance threshold value and smaller than a second multiple of the noise capacitance average value, wherein the second multiple is smaller than the first multiple, and the noise capacitance threshold value is smaller than a threshold update lower limit value.
According to another aspect of the present disclosure, there is also provided an apparatus for adjusting a key touch threshold, including: a memory; and a processor coupled to the memory, the processor configured to perform the method of adjusting key touch thresholds as described above based on instructions stored in the memory.
According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is also presented, on which computer program instructions are stored, which instructions, when executed by a processor, implement the above-mentioned method of adjusting key touch thresholds.
In the embodiment of the disclosure, the accuracy of touch threshold calculation is improved by optimizing the method for adjusting the touch threshold of the key, the sensitivity of the touch key is ensured to be always kept at a proper level, and the touch threshold can be adjusted when the capacitance value of the touch key is very small, so that the key is normally operated.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
fig. 1 is a schematic flow chart diagram of some embodiments of a method of adjusting a key touch threshold according to the present disclosure.
Fig. 2 is a flowchart illustrating further embodiments of a method for adjusting a key touch threshold according to the present disclosure.
Fig. 3 is a schematic structural diagram of some embodiments of the apparatus for adjusting a key touch threshold according to the present disclosure.
Fig. 4 is a schematic structural diagram of another embodiment of an apparatus for adjusting a key touch threshold according to the present disclosure.
Fig. 5 is a schematic structural diagram of another embodiment of an apparatus for adjusting a key touch threshold according to the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
In the process of using the touch key, when a user presses the key for a long time, the more the user presses the key, the stronger the key is, the larger the capacitance value of the key becomes, and if the capacitance value of the key at the time is recorded, the higher the touch threshold value finally calculated is, and the sensitivity of the key becomes lower. If the capacitance values of a plurality of keys are changed at the same time, the normal key operation is not indicated. For example, if the user wipes the key panel and the capacitance value of the key is recorded at this time, the calculated threshold value is not the threshold value obtained when the user normally presses the key, so that the adjusted key sensitivity is not the proper sensitivity.
In addition, in the related art, the difference value between the capacitance value of the key and the average value is normal data when the difference value is within a preset difference value range, otherwise, the difference value is not recorded. However, "preset difference" is fixed, and cannot be automatically adjusted, and in order to prevent malfunction, the "preset difference" generally cannot be set very small, so that if extreme conditions occur, for example, when a gap is large due to infirm adhesion between a touch key board and a panel, a capacitance value changes little when a key is pressed, the "preset difference" cannot be reached, and a threshold value cannot be adjusted, so that the key fails completely.
Fig. 1 is a schematic flow chart diagram of some embodiments of a method of adjusting a key touch threshold according to the present disclosure.
In step 110, whether the capacitance value of the key to be adjusted is recorded as the first capacitance value is judged according to the number of the effective keys, the touched effective time of the key to be adjusted, the updated lower limit value of the capacitance threshold value and the average value of the noise capacitance.
In this step, the capacitance value of the key to be adjusted is not detected every time, and is recorded as the first capacitance value. The first capacitance threshold is a parameter for subsequently calculating the touch threshold of the key. The button to be adjusted is a touch button.
In some embodiments, when the key to be adjusted is an active key, the touched active time is less than the active duration, and the number of active keys in the same time is less than or equal to the second number threshold, the capacitance value of the key to be adjusted is recorded as the first capacitance value.
When a human body or other conductive objects approach the touch key, the capacitance value of the key changes. In some embodiments, the capacitance value C of each key is detected every predetermined time, and when the capacitance value C of a key is greater than the effective capacitance threshold Cy, the key is determined to be an effective key, that is, the key is effectively touched. When a plurality of keys exist, the number N of the effective keys in the same time and the duration T of the effective keys are recorded. When the number of the effective keys in the same time is greater than the second threshold number, for example, greater than 1 or 2, it is determined that the key operation is not normal, and therefore, the capacitance value at this time is not used as a parameter for subsequently calculating the touch threshold of the key. When the effective time of the key being touched is longer than the effective duration, for example, longer than 1 second, it indicates that the capacitance value of the key is getting larger and larger when the user presses the key for a long time, and therefore the capacitance value at this time is not used as a parameter for subsequently calculating the touch threshold of the key.
In some embodiments, when the key to be adjusted is an invalid key, but the capacitance value of the key to be adjusted is greater than the updated lower limit value of the capacitance threshold, the capacitance value of the key to be adjusted is recorded as the first capacitance value.
If the capacitance value of the key is too small, it may be noise in a short time or a small change in the capacitance value of the key due to abnormal operation, and therefore, when the capacitance value C of the key to be adjusted is greater than the updated lower limit Cj of the capacitance threshold, the capacitance value is used as a parameter for subsequently calculating the touch threshold of the key.
In some embodiments, when the to-be-adjusted key is an invalid key and the capacitance value of the to-be-adjusted key is less than or equal to the threshold update lower limit value, if it is detected that the number of times that the capacitance value of the to-be-adjusted key is greater than the first multiple of the noise capacitance average value is greater than the number threshold, the capacitance value of the to-be-adjusted key is recorded as the first capacitance value.
When the capacitance value of the key is small, for example, smaller than the lower update limit Cj of the capacitance threshold, if it is detected for many times that the capacitance value is larger than 1+ K times of the average value Cn of the noise capacitance, the capacitance value of the key may be reduced due to a direct gap between the key board and the panel, and the capacitance value may be used as a parameter for subsequently calculating the touch threshold of the key.
In step 120, when the number of the recorded first capacitance values of the to-be-adjusted key is greater than the first number threshold, the touch threshold of the to-be-adjusted key is adjusted according to the average value of the recorded first capacitance values of the to-be-adjusted key.
In some embodiments, when the recorded number of the first capacitance values of the to-be-adjusted key reaches a preset number, the touch threshold of the to-be-adjusted key is calculated.
In some embodiments, the average value of the first capacitance value of the key to be adjusted is used as the capacitance value obtained by removing the second multiple of the average value of the noise capacitance, and the second multiple is smaller than the first multiple. The touch threshold is smaller than the average capacitance of the keys, and the noise value is accumulated in the detected capacitance, so that the touch threshold can be determined after the noise value is subtracted.
In some embodiments, the average value of the first capacitance values of the to-be-adjusted keys is multiplied by a noise influence factor coefficient to obtain a capacitance value, which is used as the touch threshold value of the to-be-adjusted keys, wherein the noise influence factor coefficient is smaller than 1. The noise impact factor coefficient is set to, for example, 0.5 to 0.8, and the influence of noise on the touch threshold can be reduced.
In the embodiment, the accuracy of touch threshold calculation is improved by optimizing the method for adjusting the touch threshold of the key, the sensitivity of the touch key is ensured to be always kept at a proper level, and the touch threshold can be adjusted when the capacitance value of the touch key is small, so that the key can be normally operated.
In other embodiments of the present disclosure, when the capacitance value of the to-be-adjusted key is smaller than the noise capacitance threshold and smaller than the second multiple of the average value of the noise capacitance, the capacitance value of the to-be-adjusted key is recorded as a second capacitance value, wherein the second multiple is smaller than the first multiple, and the noise capacitance threshold is smaller than the threshold update lower limit value; and carrying out average calculation on the second capacitance values of the keys to be adjusted, which are recorded for multiple times, so as to obtain the average value of the noise capacitance.
When no object is close to the key, the capacitance value C of the key may also change due to fluctuations in power supply, device parameters, environmental changes, or other reasons, and is referred to as a noise capacitance value, and may be a negative value. In some embodiments, when the capacitance value C of the key to be adjusted is greater than 0, less than the noise capacitance threshold Ci, and less than K times the noise capacitance average Cn, the capacitance value is recorded as a parameter for subsequently calculating the noise capacitance average. The value of K is, for example, 1.5-2, that is, the value of capacitance C is only involved in the calculation of the noise capacitance when the capacitance C of the key is smaller than 1.5-2 times of the average value of the noise capacitance.
In some embodiments, the noise capacitance average value Cn is calculated by using the formula Cn ═ Σ Cm/m, where Cm is the second capacitance value recorded at the mth time, and in some embodiments, the value of m is 100 at most, and when the recorded second capacitance values exceed 100, the second capacitance values recorded earlier are rejected to update the calculated noise capacitance average value.
In the above embodiment, the average value of the noise capacitance can be dynamically adjusted, and then when the capacitance value of the key is small, whether the capacitance value of the key is recorded or not is judged according to the capacitance value of the key and the average value of the noise capacitance, so that when the capacitance value of the key is small, the malfunction of the key caused by noise is avoided, and meanwhile, the threshold value can be adjusted to enable the key to normally respond.
Fig. 2 is a flowchart illustrating further embodiments of a method for adjusting a key touch threshold according to the present disclosure.
In step 210, the number N of active keys and the active time T of each key being touched are recorded.
In some embodiments, each key has a corresponding effective capacitance threshold value Cy, the capacitance value C of each key is detected periodically, for example, every 10ms, and when the capacitance value of a key reaches the effective capacitance threshold value Cy, the key is recorded as an effective key.
In step 220, it is determined whether the key to be adjusted is a valid key, if yes, step 230 is executed, otherwise, step 270 is executed.
In step 230, it is determined whether the number N of valid keys within the same time period is greater than 0 and less than or equal to 2, if yes, step 240 is executed, otherwise, step 260 is executed.
In this step, the number threshold is set to 2, and two linked keys or two combined keys may be touched at the same time. It will be understood by those skilled in the art that if there is no combination key, the number threshold should be set to 1, and if there is a combination key, but the number of combination keys is 3, the number threshold should be set to 3.
In step 240, it is determined whether the effective time T of the to-be-adjusted key being touched is less than or equal to 1S, if yes, step 250 is executed, otherwise, step 260 is executed.
At step 250, the capacitance value is recorded as a first capacitance value.
At step 260, the capacitance value is not recorded.
Because the user generally presses harder when pressing the key for a long time, the capacitance value of the key is larger and larger, and if the capacitance value of the key at the moment is recorded, the finally calculated threshold value is higher, so that the sensitivity of the next key of the user is lower; in addition, if the capacitance values of a plurality of keys are changed at the same time, it is not normal key operation, and the user may wipe the key panel, and if the capacitance values of the keys are recorded at the time, the calculated threshold value is not the threshold value obtained when the user normally presses the keys, so that the adjusted key sensitivity is not proper. Therefore, when the number of the effective keys is larger than 2, or the effective time T of the key being touched is larger than 1 second, the capacitance value is not recorded.
In step 270, it is determined whether the capacitance value C of the to-be-adjusted key is greater than the updated lower limit Cj of the capacitance threshold, if yes, step 250 is executed, otherwise, step 280 is executed.
Effective capacitance threshold value Cy > capacitance threshold value update lower limit value Cj > noise capacitance threshold value Ci.
The small capacitance value may be a small change in the capacitance value of the key due to noise or abnormal operation in a short time, and cannot be calculated as a normal capacitance value, so that when there is no valid key, the capacitance value of the key to be adjusted is recorded to participate in the calculation of the touch threshold value only when the capacitance value is greater than a certain value Cj.
In step 280, it is determined whether the capacitance C of the key to be adjusted is greater than 1+ K times the average capacitance Cn of the noise capacitors after K times of checking, if yes, step 250 is executed, otherwise, step 260 is executed.
When the key capacitance value is relatively small, the key capacitance value may be reduced due to a direct gap between the key sheet and the panel, and in this case, when the capacitance value is detected to be more than 1+ K times of the average value Cn of the noise capacitance several times, it is considered as a normal user key operation, so the capacitance value is recorded to update the threshold value, so that the user key operation can be responded in this case.
In step 290, it is determined whether the number of the recorded first capacitance values reaches a predetermined number, if yes, step 2100 is executed, otherwise, step 210 is continuously executed.
In step 2100, a touch threshold for the key is calculated.
In some embodiments, the touch threshold Cq is calculated using the formula Cq ═ Σ Cp/p-Cn ×, K, where Cp is the first capacitance value recorded at the p-th time. In some embodiments, the maximum value of p is 100. And when the recorded first capacitance values exceed the preset number, the first capacitance threshold value recorded earliest is removed so as to update and calculate the touch threshold value.
In the embodiment, a plurality of effective keys can be eliminated, and the records of the capacitance values when the duration time of the effective keys exceeds 1 second can be eliminated, so that the condition that the new threshold value calculated by the recorded capacitance values is not a proper threshold value is avoided; in addition, when the capacitance value of the key is small, the false operation of the key caused by noise is avoided, and meanwhile, the threshold value can be automatically adjusted, so that the key can normally respond, and the sensitivity of the touch key is always kept at a proper level.
Fig. 3 is a schematic structural diagram of some embodiments of the apparatus for adjusting a key touch threshold according to the present disclosure. The apparatus includes a capacitance value recording unit 310 and a touch threshold adjusting unit 320.
The capacitance value recording unit 310 is configured to determine whether to record the capacitance value of the key to be adjusted as the first capacitance value according to the number of the valid keys, the touched valid time of the key to be adjusted, the capacitance threshold update lower limit value, and the noise capacitance average value.
In some embodiments, the capacitance recording unit 310 is configured to record the capacitance of the key to be adjusted as the first capacitance if the key to be adjusted is a valid key, the touched valid time is less than the valid duration, and the number of valid keys in the same time is less than or equal to the second number threshold; recording the capacitance value of the key to be adjusted as a first capacitance value under the condition that the key to be adjusted is an invalid key but the capacitance value of the key to be adjusted is greater than the updated lower limit value of the capacitance threshold value; and recording the capacitance value of the key to be adjusted as a first capacitance value if the times that the capacitance value of the key to be adjusted is larger than the first multiple of the average value of the noise capacitance is detected to be larger than the time threshold value under the conditions that the key to be adjusted is an invalid key and the capacitance value of the key to be adjusted is smaller than or equal to the threshold value updating lower limit value.
In some embodiments, when the capacitance value of the key to be adjusted is greater than the effective capacitance threshold value, the key to be adjusted is determined to be an effective key.
The touch threshold adjusting unit 320 is configured to adjust the touch threshold of the key to be adjusted according to the average value of the recorded first capacitance values of the key to be adjusted when the recorded number of the first capacitance values of the key to be adjusted is greater than the first number threshold.
In some embodiments, the touch threshold adjusting unit 320 is configured to use an average value of the first capacitance values of the to-be-adjusted keys, and a capacitance value obtained by removing the second multiple of the average value of the noise capacitance, as the touch threshold of the to-be-adjusted keys.
In some embodiments, the touch threshold adjusting unit 320 is configured to multiply an average value of the first capacitance values of the to-be-adjusted keys by a noise influence factor coefficient, where the noise influence factor coefficient is smaller than 1, to obtain a capacitance value as the touch threshold of the to-be-adjusted keys.
In the above embodiment, the method for adjusting the touch threshold of the key is optimized to ensure that the sensitivity of the touch key is always kept at a proper level, and the touch threshold can be adjusted when the capacitance value of the touch key is small, so that the key operates normally.
Fig. 4 is a schematic structural diagram of another embodiment of an apparatus for adjusting a key touch threshold according to the present disclosure. The apparatus further includes a noise capacitance average value adjusting unit 410.
The capacitance value recording unit 310 is further configured to record the capacitance value of the to-be-adjusted key as a second capacitance value when the capacitance value of the to-be-adjusted key is smaller than the noise capacitance threshold value and smaller than a second multiple of the noise capacitance average value, wherein the second multiple is smaller than the first multiple, and the noise capacitance threshold value is smaller than the threshold update lower limit value.
The noise capacitance average value adjusting unit 410 is configured to perform average calculation on the second capacitance values of the keys to be adjusted, which are recorded for multiple times, to obtain a noise capacitance average value.
In the above embodiment, the average value of the noise capacitance can be dynamically adjusted, and then when the capacitance value of the key is small, whether the capacitance value of the key is recorded or not is judged according to the capacitance value of the key and the average value of the noise capacitance, so that when the capacitance value of the key is small, the malfunction of the key caused by noise is avoided, and meanwhile, the threshold value can be adjusted to enable the key to normally respond.
Fig. 5 is a schematic structural diagram of another embodiment of an apparatus for adjusting a key touch threshold according to the present disclosure. The apparatus 500 includes a memory 510 and a processor 520. Wherein: the memory 510 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory 510 is used for storing instructions in the embodiments corresponding to fig. 1 and 2. Processor 520 is coupled to memory 510 and may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 520 is configured to execute instructions stored in memory.
In some embodiments, processor 520 is coupled to memory 510 by a BUS BUS 530. The apparatus 500 may be further connected to an external storage device 550 through a storage interface 540 for accessing external data, and may be further connected to a network or another computer system (not shown) through a network interface 560, which will not be described in detail herein.
In the embodiment, the data instructions are stored in the memory, and then the instructions are processed by the processor, so that the problem that the conventional touch threshold is not sensitive or fails due to unreasonable or incomplete adjustment of the touch threshold can be solved.
In further embodiments, a computer-readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the steps of the method in the embodiments corresponding to fig. 1 and 2. As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the foregoing examples are for purposes of illustration only and are not intended to limit the scope of the present disclosure. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims (11)

1. A method of adjusting key touch thresholds, comprising:
according to the number of effective keys, the touched effective time of the key to be adjusted, the updated lower limit value of the capacitance threshold value and the average value of the noise capacitance, judging whether the capacitance value of the key to be adjusted is recorded as a first capacitance value; and
and when the recorded number of the first capacitance values of the key to be adjusted is larger than a first number threshold value, adjusting the touch threshold value of the key to be adjusted according to the recorded average value of the first capacitance values of the key to be adjusted.
2. The method of claim 1, wherein determining whether to record the capacitance value of the key to be adjusted as the first capacitance value comprises:
recording the capacitance value of the key to be adjusted as a first capacitance value under the condition that the key to be adjusted is an effective key, the touch effective time is less than the effective duration time, and the number of the effective keys in the same time is less than or equal to a second number threshold value;
recording the capacitance value of the key to be adjusted as a first capacitance value under the condition that the key to be adjusted is an invalid key but the capacitance value of the key to be adjusted is greater than the updated lower limit value of the capacitance threshold value; and
and under the condition that the key to be adjusted is an invalid key and the capacitance value of the key to be adjusted is smaller than or equal to the threshold value updating lower limit value, recording the capacitance value of the key to be adjusted as a first capacitance value if the frequency that the capacitance value of the key to be adjusted is larger than the first multiple of the average value of the noise capacitance is detected to be larger than the frequency threshold value.
3. The method of claim 2, further comprising:
when the capacitance value of the key to be adjusted is smaller than a noise capacitance threshold value and smaller than a second multiple of the average value of the noise capacitance, recording the capacitance value of the key to be adjusted as a second capacitance value, wherein the second multiple is smaller than the first multiple, and the noise capacitance threshold value is smaller than the threshold value update lower limit value; and
and carrying out average calculation on the second capacitance values of the keys to be adjusted, which are recorded for multiple times, so as to obtain the average value of the noise capacitance.
4. The method according to any one of claims 1 to 3,
and when the capacitance value of the key to be adjusted is larger than the effective capacitance threshold value, determining the key to be adjusted as an effective key.
5. The method of claim 3, wherein adjusting the touch threshold of the key to be adjusted according to the recorded average value of the first capacitance value of the key to be adjusted comprises:
and taking the average value of the first capacitance values of the keys to be adjusted and the capacitance value obtained after removing the second multiple of the average value of the noise capacitance as the touch threshold value of the keys to be adjusted.
6. The method according to any one of claims 1 to 3, wherein adjusting the touch threshold of the key to be adjusted according to the recorded average value of the first capacitance value of the key to be adjusted comprises:
and taking the average value of the first capacitance values of the keys to be adjusted and a capacitance value obtained by multiplying a noise influence factor coefficient as a touch threshold value of the keys to be adjusted, wherein the noise influence factor coefficient is smaller than 1.
7. An apparatus for adjusting a key touch threshold, comprising:
the capacitance value recording unit is configured to judge whether to record the capacitance value of the key to be adjusted as a first capacitance value according to the number of effective keys, the touched effective time of the key to be adjusted, the updated lower limit value of the capacitance threshold value and the average value of the noise capacitance; and
the touch threshold adjusting unit is configured to adjust the touch threshold of the key to be adjusted according to the recorded average value of the first capacitance values of the key to be adjusted when the recorded number of the first capacitance values of the key to be adjusted is larger than a first number threshold.
8. The apparatus of claim 7, wherein,
the capacitance value recording unit is configured to record the capacitance value of the key to be adjusted as a first capacitance value under the condition that the key to be adjusted is an effective key, the touch effective time is less than the effective duration time, and the number of the effective keys in the same time is less than or equal to a second number threshold value; recording the capacitance value of the key to be adjusted as a first capacitance value under the condition that the key to be adjusted is an invalid key but the capacitance value of the key to be adjusted is greater than the updated lower limit value of the capacitance threshold value; and recording the capacitance value of the key to be adjusted as a first capacitance value if the frequency that the capacitance value of the key to be adjusted is larger than the first multiple of the average value of the noise capacitance is detected to be larger than the frequency threshold value under the condition that the key to be adjusted is an invalid key and the capacitance value of the key to be adjusted is smaller than or equal to the threshold value updating lower limit value.
9. The apparatus of claim 8, further comprising:
a noise capacitance average value adjusting unit configured to perform average calculation on second capacitance values of the to-be-adjusted key recorded for multiple times to obtain the noise capacitance average value,
the capacitance value recording unit is further configured to record the capacitance value of the key to be adjusted as a second capacitance value when the capacitance value of the key to be adjusted is smaller than a noise capacitance threshold value and smaller than a second multiple of the average value of the noise capacitance, wherein the second multiple is smaller than the first multiple, and the noise capacitance threshold value is smaller than the threshold update lower limit value.
10. An apparatus for adjusting a key touch threshold, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of adjusting key touch thresholds of any of claims 1 to 6 based on instructions stored in the memory.
11. A non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of adjusting key touch thresholds of any one of claims 1 to 6.
CN202110302434.7A 2021-03-22 2021-03-22 Method and device for adjusting key touch threshold Pending CN113037268A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110302434.7A CN113037268A (en) 2021-03-22 2021-03-22 Method and device for adjusting key touch threshold
PCT/CN2021/135655 WO2022199121A1 (en) 2021-03-22 2021-12-06 Method and apparatus for adjusting touch threshold of key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110302434.7A CN113037268A (en) 2021-03-22 2021-03-22 Method and device for adjusting key touch threshold

Publications (1)

Publication Number Publication Date
CN113037268A true CN113037268A (en) 2021-06-25

Family

ID=76472317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110302434.7A Pending CN113037268A (en) 2021-03-22 2021-03-22 Method and device for adjusting key touch threshold

Country Status (2)

Country Link
CN (1) CN113037268A (en)
WO (1) WO2022199121A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022199121A1 (en) * 2021-03-22 2022-09-29 珠海格力电器股份有限公司 Method and apparatus for adjusting touch threshold of key
CN117687535A (en) * 2024-02-01 2024-03-12 苏州华芯微电子股份有限公司 Capacitance touch key reference value correction method, device, equipment and readable medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009265851A (en) * 2008-04-23 2009-11-12 Sony Ericsson Mobilecommunications Japan Inc Contact-detecting device, mobile information terminal, and capacitance calibration program and method
CN111934660A (en) * 2020-07-15 2020-11-13 珠海格力电器股份有限公司 Method for adjusting key touch threshold and touch key display screen
CN111953326A (en) * 2020-07-16 2020-11-17 珠海格力电器股份有限公司 Dynamic adjustment method for key touch threshold and touch key display screen
CN113037268A (en) * 2021-03-22 2021-06-25 珠海格力电器股份有限公司 Method and device for adjusting key touch threshold

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022199121A1 (en) * 2021-03-22 2022-09-29 珠海格力电器股份有限公司 Method and apparatus for adjusting touch threshold of key
CN117687535A (en) * 2024-02-01 2024-03-12 苏州华芯微电子股份有限公司 Capacitance touch key reference value correction method, device, equipment and readable medium
CN117687535B (en) * 2024-02-01 2024-04-16 苏州华芯微电子股份有限公司 Capacitance touch key reference value correction method, device, equipment and readable medium

Also Published As

Publication number Publication date
WO2022199121A1 (en) 2022-09-29

Similar Documents

Publication Publication Date Title
CN107395877B (en) Terminal false touch prevention method and terminal
CN113037268A (en) Method and device for adjusting key touch threshold
CN108021259B (en) False touch prevention method and electronic equipment
CN105302383B (en) A kind of capacitive touch screen anti-disturbance method and equipment
CN105388992A (en) Fingerprint recognition method and apparatus and terminal
CN111352534B (en) Touch key touch threshold correction method, wire controller, electric appliance and computer readable storage medium
CN107340966A (en) Terminal control method and device, computer installation and storage medium
CN108512542B (en) Touch key signal processing method and device and computer readable storage medium
CN113253878B (en) Touch screen report point determining method and device, electronic equipment and storage medium
US11537238B2 (en) Touch control identification method, device and system
CN106933677A (en) System exception processing method and processing device
CN111934660A (en) Method for adjusting key touch threshold and touch key display screen
CN113126815B (en) Key response control method and device, terminal equipment and storage medium
CN107943536B (en) Method and device for adjusting threshold, storage medium and electronic equipment
CN111083062A (en) Weight mechanism-based current limiting method and device, computer equipment and storage medium
US20190138144A1 (en) Touch device and touch signal processing method thereof
TWI622921B (en) Capacitance value detecting method of touch device
US20110025613A1 (en) Touch apparatus and touch sensing method thereof
CN109976576A (en) A kind of method and apparatus of mobile terminal screen false-touch prevention
CN115082204A (en) Information processing method, computer device and storage medium in credit product recommendation
CN113126814B (en) Key non-response correction method and device, terminal equipment and storage medium
CN104881187A (en) Signal processing method
CN110848905A (en) Sensitivity adaptability adjusting method and device and intelligent equipment
CN108717349B (en) Terminal bright screen control method and device, terminal and storage medium
CN116400871B (en) Defragmentation method, defragmentation device, storage medium and electronic device

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