Touch key combination detection method, device, electrical equipment and storage medium

By detecting the change trend of the capacitance value of the touch button, predicting the key combination operation type, ensuring that the capacitance value of the two keys reaches the set ratio, solving the problem of unresponsiveness of the key combination and improving the user experience.

CN115940919BActive Publication Date: 2025-08-29GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211572729.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2025-08-29
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

When touching the key combination operation, if the two keys are not pressed at the same time or the key position is incorrect, the key combination will not respond and affect the user experience.

Method used

By detecting the change trend of capacitance value of each touch key, predicting the key operation type, and when the capacitance values ​​of both touch keys reach the set ratio of their respective preset thresholds, confirm the key combination operation to ensure accurate response.

Benefits of technology

It improves the response rate of touch key combinations, improves user operation experience, and avoids erroneous operations caused by inconsistent key time or inaccurate position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115940919B_ABST
    Figure CN115940919B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electrical device, and storage medium for detecting a touch key combination. The method comprises: obtaining the capacitance value of each touch key among all touch keys of the electrical device at every set detection cycle; determining whether the capacitance values ​​of two or more touch keys increase based on the capacitance values ​​of each touch key among all touch keys obtained during two adjacent detection cycles; and if so, predicting the type of key operation of the two or more touch keys based on further changes in the capacitance values ​​of the two or more touch keys, so as to respond to the key operation of the two or more touch keys based on the type of key operation of the two or more touch keys. This solution, by controlling the response of the key operation of the touch key combination key based on the changing trend of the capacitance value of each touch key, is conducive to improving the response rate of the touch key combination key and enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of touch buttons, and in particular relates to a method, device, electrical equipment and storage medium for detecting a touch button combination key. Background Art

[0002] Among electrical products (i.e., electrical devices), many are equipped with buttons so that users can set the functions of the electrical devices. Some electrical devices have a limited number of buttons due to reasons such as product size or appearance, and some infrequently used functions need to be set using combination keys (i.e., pressing two buttons at the same time). Moreover, more and more buttons are now using capacitive touch buttons (hereinafter referred to as touch buttons). When operating the combination keys, if the user presses two buttons in the combination key with two fingers but does not press the two buttons at the same time, it is possible that the button pressed first will be responded to first, and the combination key will not be responded to until the other button is pressed, resulting in a poor user experience. In addition, when pressing the combination key, since the position of the button is not as accurate as that of a single button, the threshold of each button in the combination key operation sometimes does not reach the threshold of the single button operation and the combination key will not be responded to, thereby affecting the user's operating experience.

[0003] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art. Summary of the Invention

[0004] The purpose of the present invention is to provide a detection method, device, electrical equipment and storage medium for a touch key combination key, so as to solve the problem that when operating the touch key combination key, if the two keys in the touch key combination key are not pressed at the same time, or the pressing position of a single key in the touch key combination key is inaccurate, the touch key combination key will not respond, affecting the user's usage experience. The purpose of the present invention is to control the response of the key operation of the touch key combination key according to the changing trend of the capacitance value of each touch key, which is conducive to improving the response rate of the touch key combination key and enhancing the user's usage experience.

[0005] The present invention provides a method for detecting a touch key combination key, comprising: obtaining a capacitance value of each touch key among all touch keys of an electrical device at every set detection cycle; determining, for the capacitance values ​​of each touch key among all touch keys obtained in two adjacent detection cycles, whether the capacitance values ​​of two or more touch keys increase; the increase in the capacitance values ​​of the two or more touch keys being specifically: the capacitance values ​​of two or more touch keys among all the capacitance values ​​of the touch keys obtained in the current detection cycle are correspondingly increased compared with the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle; if it is determined that the capacitance values ​​of the two or more touch keys have increased, predicting the type of key operation of the two or more touch keys according to further changes in the capacitance values ​​of the two or more touch keys, so as to respond to the key operation of the two or more touch keys according to the type of key operation of the two or more touch keys; the type of key operation of the two or more touch keys comprising: a single key operation of one of the two or more touch keys, or a combination key operation of the two or more touch keys.

[0006] In some embodiments, in the case where the capacitance values ​​of the two or more touch keys increase, the capacitance values ​​of the two or more touch keys among the capacitance values ​​of all the touch keys obtained in the current detection cycle are correspondingly increased compared with the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle, including: the capacitance value of each touch key among the two or more touch keys obtained in the current detection cycle is increased by the first set proportion of the set key threshold of the corresponding key compared with the capacitance value of the corresponding touch key among the capacitance values ​​of the two or more touch keys obtained in the previous detection cycle.

[0007] In some embodiments, when the capacitance values ​​of the two or more touch keys increase, the two or more touch keys in this case include a first key and a second key; predicting types of key operations of the two or more touch keys based on further changes in the capacitance values ​​of the two or more touch keys includes: determining whether a change in the capacitance value of the first key first reaches a set key threshold of the first key; wherein the change in the capacitance value of the first key is a difference between a current value of the capacitance value of the first key and a reference value of the capacitance value of the first key; if it is determined that the change in the capacitance value of the first key has first reached the set key threshold of the first key, further predicting types of key operations of the first and second keys based on a change in the capacitance value of the second key, and responding to the key operations of the first and second keys based on the types of key operations of the first and second keys; if it is determined that the change in the capacitance value of the first key has not first reached the set key threshold of the first key, further predicting types of key operations of the first and second keys based on a combination of the change in the capacitance value of the first key and the change in the capacitance value of the second key, and responding to the key operations of the first and second keys based on the types of key operations of the first and second keys.

[0008] In some embodiments, based on the change in the capacitance value of the second button, further predicting the type of key operation of the first button and the second button, including: determining whether the amount by which the change in the capacitance value of the second button increases each time exceeds a first set ratio of the set key threshold of the second button; wherein the change in the capacitance value of the second button is the difference between the current value of the capacitance value of the second button and the reference value of the capacitance value of the second button; if it is determined that the amount by which the change in the capacitance value of the second button increases each time exceeds the first set ratio of the set key threshold of the second button, then determining whether the change in the capacitance value of the second button has reached a second set ratio of the set key threshold of the second button: if so, it is considered that the two The type of key operation of the above touch keys is a combination key operation of the first key and the second key, in response to the combination key operation of the first key and the second key; otherwise, return to continue to determine whether the amount by which the change value of the capacitance value of the second key increases each time exceeds the first set ratio of the set key threshold of the second key; wherein the second set ratio of the set key threshold of the second key is greater than the first set ratio of the set key threshold of the second key; if it is determined that the amount by which the change value of the capacitance value of the second key increases each time does not exceed the first set ratio of the set key threshold of the second key, it is considered that the type of key operation of the two or more touch keys is a single key operation of the first key, in response to the single key operation of the first key.

[0009] In some embodiments, in combination with the change in the capacitance value of the first button and the change in the capacitance value of the second button, the type of key operation of the first button and the second button is further predicted, including: when the change in the capacitance value of the first button does not reach the set key threshold of the first button, and the change in the capacitance value of the second button does not reach the set key threshold of the second button, determining whether the change in the capacitance value of the first button has reached a second set proportion of the set key threshold of the first button, and determining whether the change in the capacitance value of the second button has reached a second set proportion of the set key threshold of the second button; if it is determined that the change in the capacitance value of the first button has reached the second set proportion of the set key threshold of the first button, and the capacitance value of the second button has reached the second set proportion of the set key threshold of the second button If the change in capacitance value of the first key does not reach the second set proportion of the set key threshold of the first key, and / or it is determined that the change in capacitance value of the second key does not reach the second set proportion of the set key threshold of the second key, then the type of key operation of the first key and the second key is further predicted based on the decrease in capacitance value of the first key and capacitance value of the second key, so as to respond to the key operation of the two or more touch keys according to the type of key operation of the two or more touch keys.

[0010] In some embodiments, based on the decrease in the capacitance value of the first key and the capacitance value of the second key, the type of key operation of the first key and the second key is further predicted, including: determining whether the capacitance value of the first key is decreasing and whether the capacitance value of the second key is decreasing, and accumulating the number of determinations to obtain a cumulative number of determinations; if it is determined that the capacitance value of the first key is decreasing and the capacitance value of the second key is decreasing, then returning to re-determine whether the change value of the capacitance value of the first key first reaches the set key threshold of the first key; if it is determined that the capacitance value of the first key is not decreasing and / or the capacitance value of the second key is not decreasing, then returning to continue determining whether the capacitance value of the first key is decreasing and whether the capacitance value of the second key is decreasing ; After the cumulative number of determinations reaches the set number of times, determine whether the change value of the capacitance value of the first button has not yet reached the set button threshold of the first button, and whether the change value of the capacitance value of the second button has not yet reached the set button threshold of the second button: if so, calibrate the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button; otherwise, return to continue to determine whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing; wherein, calibrating the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button includes: determining the current value of the capacitance value of the first button as the reference value of the capacitance value of the first button, and determining the current value of the capacitance value of the second button as the reference value of the capacitance value of the second button.

[0011] Matching the above method, another aspect of the present invention provides a touch key combination key detection device, comprising: an acquisition unit, configured to acquire a capacitance value of each touch key among all touch keys of an electrical device every set detection cycle; a control unit, configured to determine whether the capacitance values ​​of two or more touch keys increase based on the capacitance values ​​of each touch key among all touch keys acquired in two adjacent detection cycles; the increase in the capacitance values ​​of the two or more touch keys specifically means that the capacitance values ​​of two or more touch keys among all the touch keys acquired in the current detection cycle are correspondingly increased compared to the capacitance values ​​of the two or more touch keys among all the touch keys acquired in the previous detection cycle; the control unit is further configured to, if it is determined that the capacitance values ​​of the two or more touch keys increase, predict a type of key operation of the two or more touch keys based on further changes in the capacitance values ​​of the two or more touch keys, so as to respond to the key operation of the two or more touch keys based on the type of the key operation of the two or more touch keys; the type of the key operation of the two or more touch keys includes: a single key operation of one of the two or more touch keys, or a combination key operation of the two or more touch keys.

[0012] In some embodiments, in the case where the capacitance values ​​of the two or more touch keys increase, the capacitance values ​​of the two or more touch keys among the capacitance values ​​of all the touch keys obtained in the current detection cycle are correspondingly increased compared with the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle, including: the capacitance value of each touch key among the two or more touch keys obtained in the current detection cycle is increased by the first set proportion of the set key threshold of the corresponding key compared with the capacitance value of the corresponding touch key among the capacitance values ​​of the two or more touch keys obtained in the previous detection cycle.

[0013] In some embodiments, when the capacitance values ​​of the two or more touch keys increase, the two or more touch keys in this case include a first key and a second key; the control unit predicts the type of key operation of the two or more touch keys based on further changes in the capacitance values ​​of the two or more touch keys, including: determining whether the change in the capacitance value of the first key first reaches a set key threshold of the first key; wherein the change in the capacitance value of the first key is the difference between a current value of the capacitance value of the first key and a reference value of the capacitance value of the first key; if it is determined that the change in the capacitance value of the first key has first reached the set key threshold of the first key, further predicting the type of key operation of the first key and the second key based on the change in the capacitance value of the second key, and responding to the key operation of the first key and the second key based on the type of key operation of the first key and the second key; if it is determined that the change in the capacitance value of the first key has not first reached the set key threshold of the first key, further predicting the type of key operation of the first key and the second key based on the change in the capacitance value of the first key and the change in the capacitance value of the second key, and responding to the key operation of the first key and the second key based on the type of key operation of the first key and the second key.

[0014] In some embodiments, the control unit further predicts the type of key operation of the first key and the second key based on the change in the capacitance value of the second key, including: determining whether the amount by which the change in the capacitance value of the second key increases each time exceeds a first set ratio of the set key threshold of the second key; wherein the change in the capacitance value of the second key is the difference between the current value of the capacitance value of the second key and the reference value of the capacitance value of the second key; if it is determined that the amount by which the change in the capacitance value of the second key increases each time exceeds the first set ratio of the set key threshold of the second key, then determining whether the change in the capacitance value of the second key has reached a second set ratio of the set key threshold of the second key: if so, it is considered The type of key operation of the two or more touch keys is a combination key operation of the first key and the second key, in response to the combination key operation of the first key and the second key; otherwise, return to continue to determine whether the amount by which the change value of the capacitance value of the second key increases each time exceeds the first set ratio of the set key threshold of the second key; wherein the second set ratio of the set key threshold of the second key is greater than the first set ratio of the set key threshold of the second key; if it is determined that the amount by which the change value of the capacitance value of the second key increases each time does not exceed the first set ratio of the set key threshold of the second key, it is considered that the type of key operation of the two or more touch keys is a single key operation of the first key, in response to the single key operation of the first key.

[0015] In some embodiments, the control unit, in combination with the change in the capacitance value of the first button and the change in the capacitance value of the second button, further predicts the type of key operation of the first button and the second button, including: when the change in the capacitance value of the first button does not reach the set key threshold of the first button, and the change in the capacitance value of the second button does not reach the set key threshold of the second button, determining whether the change in the capacitance value of the first button has reached a second set proportion of the set key threshold of the first button, and determining whether the change in the capacitance value of the second button has reached a second set proportion of the set key threshold of the second button; if it is determined that the change in the capacitance value of the first button has reached the second set proportion of the set key threshold of the first button, and the change in the capacitance value of the second button has reached the second set proportion of the set key threshold of the second button If the change value of the capacitance value of the key has reached the second set proportion of the set key threshold of the second key, it is considered that the type of the key operation of the two or more touch keys is a combination key operation of the first key and the second key, so as to respond to the combination key operation of the first key and the second key; if it is determined that the change value of the capacitance value of the first key does not reach the second set proportion of the set key threshold of the first key, and / or it is determined that the change value of the capacitance value of the second key does not reach the second set proportion of the set key threshold of the second key, then based on the decrease in the capacitance value of the first key and the capacitance value of the second key, the type of key operation of the first key and the second key is further predicted, so as to respond to the key operation of the two or more touch keys according to the type of the key operation of the two or more touch keys.

[0016] In some embodiments, the control unit further predicts the type of key operation of the first key and the second key based on the decrease in the capacitance value of the first key and the capacitance value of the second key, including: determining whether the capacitance value of the first key is decreasing and whether the capacitance value of the second key is decreasing, and accumulating the number of determinations to obtain a cumulative number of determinations; if it is determined that the capacitance value of the first key is decreasing and the capacitance value of the second key is decreasing, then returning to re-determine whether the change value of the capacitance value of the first key reaches the set key threshold of the first key first; if it is determined that the capacitance value of the first key is not decreasing and / or the capacitance value of the second key is not decreasing, then returning to continue determining whether the capacitance value of the first key is decreasing and whether the capacitance value of the second key is decreasing ; After the cumulative number of determinations reaches the set number of times, determine whether the change value of the capacitance value of the first button has not yet reached the set button threshold of the first button, and whether the change value of the capacitance value of the second button has not yet reached the set button threshold of the second button: if so, calibrate the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button; otherwise, return to continue to determine whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing; wherein, the control unit calibrates the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button, including: determining the current value of the capacitance value of the first button as the reference value of the capacitance value of the first button, and determining the current value of the capacitance value of the second button as the reference value of the capacitance value of the second button.

[0017] Matching the above device, the present invention further provides an electrical device, including: the above-mentioned detection device for touch key combination keys.

[0018] Matching the above method, the present invention further provides a storage medium on the other hand, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned touch key combination key detection method.

[0019] Therefore, the solution of the present invention determines the changing trend of the capacitance value of each touch key by detecting the capacitance value of each touch key; when it is detected that the capacitance values ​​of two touch keys are both increasing, it is preliminarily considered that there is a key operation of the combination key of the two touch keys, and even if the capacitance value of a single touch key reaches the preset key threshold of the touch key first, the key operation of the touch key is not responded to first, until the change values ​​of the capacitance values ​​of the two touch keys both reach a certain proportion of their respective preset key thresholds, it is determined that there is a key operation of the combination key of the two touch keys, and the key operation of the combination key of the two touch keys is responded to; thus, by controlling the response of the key operation of the touch key combination key according to the changing trend of the capacitance value of each touch key, it is beneficial to improve the response rate of the touch key combination key and enhance the user experience.

[0020] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the present invention.

[0021] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 1. It is a flow chart of an embodiment of a method for detecting a touch key combination key of the present invention;

[0023] Figure 2 1. A flow chart of an embodiment of a method of the present invention for predicting the type of key operation of two or more touch keys according to further changes in the capacitance values ​​of the two or more touch keys;

[0024] Figure 3 1. A flow chart of an embodiment of a method of the present invention for further predicting the types of key operations of the first key and the second key according to changes in the capacitance value of the second key;

[0025] Figure 4 This is a flow chart of an embodiment of the method of the present invention for further predicting the type of key operation of the first key and the second key by combining changes in the capacitance values ​​of the first key and the second key;

[0026] Figure 5 1. A flow chart of an embodiment of the method of the present invention for further predicting the type of key operation of the first key and the second key according to the decrease in capacitance values ​​of the first key and the second key;

[0027] Figure 6 It is a structural schematic diagram of an embodiment of a detection device for a touch key combination key of the present invention;

[0028] Figure 7The figure is a flow chart of a specific embodiment of a method for detecting a touch key combination key of the present invention.

[0029] In conjunction with the accompanying drawings, the reference numerals in the embodiments of the present invention are as follows:

[0030] 102 - acquisition unit; 104 - control unit. DETAILED DESCRIPTION

[0031] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with specific embodiments of the present invention and corresponding drawings. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0032] According to an embodiment of the present invention, a method for detecting a touch key combination key is provided, such as Figure 1 The flowchart of an embodiment of the method of the present invention is shown as follows. The touch key combination key includes: two or more touch keys. The touch key combination key detection method includes: steps S110 to S130.

[0033] At step S110, the capacitance value of each touch key of all touch keys of the electrical device is obtained at every set detection period. The electrical device is the electrical device to which the touch key combination key belongs. The set detection period is, for example, 10 ms.

[0034] At step S120, two adjacent detection periods are set as the previous detection period and the current detection period, and for each of the capacitance values ​​of all touch keys acquired during the two adjacent detection periods, it is determined whether the capacitance values ​​of two or more touch keys increase. The capacitance value increase of the two or more touch keys specifically refers to the capacitance values ​​of two or more touch keys among all the touch keys acquired during the current detection period being correspondingly increased compared to the capacitance values ​​of the two or more touch keys among all the touch keys acquired during the previous detection period.

[0035] In step S120, when the capacitance values ​​of the two or more touch keys increase, the capacitance values ​​of the two or more touch keys among all the capacitance values ​​of the touch keys obtained in the current detection cycle are correspondingly increased compared to the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle, including: the capacitance value of each of the two or more touch keys obtained in the current detection cycle is increased by a first set ratio of the set key threshold value of the corresponding key compared to the capacitance value of the corresponding touch key among the capacitance values ​​of the two or more touch keys obtained in the previous detection cycle. The first set ratio is, for example, 10%.

[0036] Specifically, Figure 7 FIG. 1 is a flow chart of a specific embodiment of a method for detecting a touch key combination key of the present invention. Figure 7 As shown, the solution of the present invention provides a method for detecting a touch key combination key, comprising:

[0037] Step 1: The wired controller (i.e., the central air conditioner controller) has multiple touch buttons. The wired controller detects the capacitance of all touch buttons every 10ms, then executes Step 2. When a user's finger approaches and touches a touch button, the detected capacitance of the touch button changes. When the change in capacitance of a touch button exceeds a preset threshold for that touch button's capacitance, the touch button is considered to have been pressed.

[0038] Among them, the technology for detecting changes in the capacitance value of a touch button can be: each touch button has a pad that is roughly the size of a human fingertip, and a capacitor is generated between the pad and the ground. When a finger approaches the button, the capacitance between the human body and the ground is superimposed on the capacitance between the pad and the ground, causing the capacitance value of the capacitor between the pad and the ground to increase. The touch chip (i.e., the control chip of the touch button) detects changes in the button capacitance value by continuously charging and discharging the pad and detecting the charging and discharging time, because changes in the capacitance value will cause changes in the charging and discharging time.

[0039] Step 2: When the wired controller detects the capacitance values ​​of the two touch buttons and the capacitance values ​​of the two touch buttons increase by 10% of the respective preset button threshold values ​​compared with the last detection, it is considered that the touch button combination key may be pressed, and then step 3 is executed.

[0040] At step S130, if it is determined that the capacitance values ​​of the two or more touch keys have increased, then the type of key operation of the two or more touch keys is predicted based on the further change in the capacitance values ​​of the two or more touch keys, so as to respond to the key operation of the two or more touch keys based on the type of key operation of the two or more touch keys. The type of key operation of the two or more touch keys includes: a single key operation of one of the two or more touch keys, or a combination key operation of the two or more touch keys. Of course, if it is determined that the capacitance values ​​of the two or more touch keys have not increased, then the capacitance values ​​of each touch key among all the touch keys obtained in the two adjacent detection cycles are continuously determined to determine whether the capacitance values ​​of the two or more touch keys have increased.

[0041] The present invention provides a method for detecting a touch key combination key. By detecting the changing trend of the capacitance value of each touch key, the method predicts whether a user's key operation is a touch key combination key operation or a single touch key operation. The method also reduces the key threshold of the touch key combination key when the user's key operation is a touch key combination key operation, thereby improving the response rate of the touch key combination key and preventing the single touch key from being responded to first during a touch key combination key operation. This improves the user's operating experience when using the touch key combination key. Consequently, during a touch key combination key operation, the single touch key is not responded to first due to inconsistent pressing times of the two touch keys. This solves the problem that a touch key combination key operation may respond to a single touch key first, leading to the incorrect setting of other functions. The method also solves the problem that during a touch key combination key operation, the threshold of any touch key in the touch key combination key operation may not reach the threshold of a single touch key due to the less accurate pressing position of the key than during a single touch key operation, thus affecting the response rate of the touch key combination key.

[0042] In some embodiments, in step S130, when the capacitance values ​​of the two or more touch keys increase, the two or more touch keys in this case include a first key and a second key, where the first key is, for example, key A, and the second key is, for example, key B. The first key may be the touch key whose capacitance value increases first among the two or more touch keys in this case, and the second key may be the touch key whose capacitance value increases later among the two or more touch keys in this case.

[0043] Specifically, in step 2, two touch buttons, such as button A and button B, are assumed, and the preset button threshold corresponding to the change in the capacitance value of button A is threshold A, and the preset button threshold corresponding to the change in the capacitance value of button B is threshold B. In the subsequent detection, step 3 is performed. Among them, threshold A is converted based on the capacitance change value through a series of calculations and is generally converted to a byte. That is, the threshold is generally tens to over a hundred. The thresholds of various buttons on the same product are generally similar, so threshold A and threshold B are of similar value.

[0044] In step S130, when the capacitance values ​​of the two or more touch keys increase, the specific process of predicting the type of key operation of the two or more touch keys according to further changes in the capacitance values ​​of the two or more touch keys is described in the following exemplary embodiment.

[0045] The following combination Figure 2 The flowchart of an embodiment of the method of the present invention for predicting the type of key operation of two or more touch keys based on further changes in the capacitance values ​​of the two or more touch keys is shown, further illustrating the process of predicting the type of key operation of two or more touch keys based on further changes in the capacitance values ​​of the two or more touch keys in step S130, including: steps S210 to S230.

[0046] Step S210: Determine whether the change in the capacitance value of the first button first reaches a set button threshold of the first button. The set button threshold of the first button is, for example, threshold A of button A. The change in the capacitance value of the first button is the difference between the current value of the capacitance value of the first button and the reference value of the capacitance value of the first button.

[0047] Specifically, if Figure 7 As shown, the solution of the present invention provides a method for detecting a touch key combination key, which also includes: step 3, judging whether the change value of the capacitance value of key A (i.e., any key of the two keys) reaches the threshold value A first: if so, execute step 41, otherwise execute step 51.

[0048] In step S220, if it is determined that the change in the capacitance value of the first button has first reached the set button threshold of the first button, the types of button operations of the first button and the second button are further predicted based on the change in the capacitance value of the second button, so as to respond to the button operations of the first button and the second button based on the types of button operations of the first button and the second button.

[0049] In some embodiments, in step S220, when it is determined that the change in the capacitance value of the first button has first reached the set button threshold of the first button, the specific process of further predicting the type of key operation of the first button and the second button is based on the change in the capacitance value of the second button. See the following exemplary description.

[0050] The following combination Figure 3 The flowchart of an embodiment of the method of the present invention for further predicting the type of key operation of the first key and the second key according to the change of the capacitance value of the second key is shown, further illustrating the specific process of further predicting the type of key operation of the first key and the second key according to the change of the capacitance value of the second key in step S220, including: steps S310 to S330.

[0051] Step S310: Determine whether the amount of each increase in the capacitance value of the second button exceeds a first set ratio of the set button threshold value of the second button. The set button threshold value of the second button is, for example, threshold B for button B. The first set ratio of the set button threshold value of the second button is, for example, 10%. The capacitance value change of the second button is the difference between the current capacitance value of the second button and the reference capacitance value of the second button.

[0052] Step S320: If it is determined that the amount by which the capacitance value of the second key increases each time exceeds the first set ratio of the set key threshold of the second key, then determine whether the capacitance value change of the second key has reached the second set ratio of the set key threshold of the second key. If so, it is considered that the type of key operation of the two or more touch keys is a combination key operation of the first key and the second key, in response to the combination key operation of the first key and the second key. Otherwise, return to continue to determine whether the amount by which the capacitance value of the second key increases each time exceeds the first set ratio of the set key threshold of the second key. The second set ratio of the set key threshold of the second key is greater than the first set ratio of the set key threshold of the second key. The second set ratio of the set key threshold of the second key is, for example, 80%.

[0053] In step S330, if it is determined that the amount by which the capacitance value of the second key changes each time does not exceed the first set ratio of the set key threshold of the second key, it is considered that the type of key operation of the two or more touch keys is a single-key operation of the first key, in response to the single-key operation of the first key.

[0054] Specifically, if Figure 7 As shown, the solution of the present invention provides a method for detecting a touch key combination key, further comprising:

[0055] Step 41: If the change in the capacitance of button A has reached threshold A, determine whether the change in the capacitance of button B exceeds 10% of threshold B each time. If so, do not respond to the operation of button A and proceed to step 42. Otherwise, respond to the operation of button A.

[0056] Step 42: Determine whether the change in capacitance of key B reaches 80% of threshold B. If so, respond to the combined operation of keys A and B. Otherwise, return to step 3 and continue to determine whether the change in capacitance of key A reaches threshold A first.

[0057] Here, if the change in the capacitance of key A reaches threshold A first, and the capacitance of key B increases by more than 10% of threshold B each time, the operation of key A will not be responded to initially. Later, when the change in the capacitance of key B also reaches 80% of threshold B, the combination of keys A and B will be responded to. If the change in the capacitance of key A reaches threshold A first, and the difference in the capacitance of key B from the previous capacitance value in a certain test is not greater than 10% of threshold B, the operation of key A will be responded to.

[0058] In step S230, if it is determined that the change in the capacitance value of the first button has not reached the set button threshold of the first button first, the type of key operation of the first button and the second button is further predicted in combination with the change in the capacitance value of the first button and the change in the capacitance value of the second button, so as to respond to the key operation of the first button and the second button according to the type of key operation of the first button and the second button.

[0059] The solution of the present invention detects the change in the capacitance value of each touch key in real time through a wire controller. When it is detected that the capacitance values ​​of two touch keys are increasing, it is considered that there may be a key operation of the two touch key combination keys. At this time, even if the capacitance value of a single touch key reaches the preset key threshold of the capacitance value of the touch key first, the key function of the touch key will not be responded to first. When the capacitance values ​​of the two touch keys both reach a set ratio of the preset key threshold of their respective capacitance values, for example 80%, it is determined that the current key operation is a key operation of the two touch key combination keys, thereby improving the response rate of the touch key combination key, avoiding the possibility that the single touch key may be responded to first when the touch key combination key is operated, and improving the user's operating experience of using the touch key combination key.

[0060] In some embodiments, in step S230, when it is determined that the change in the capacitance value of the first button has first reached the set button threshold of the first button, the specific process of further predicting the type of button operation of the first button and the second button is combined with the change in the capacitance value of the first button and the change in the capacitance value of the second button. See the following exemplary description.

[0061] The following combination Figure 4 The method of the present invention is shown as a flow chart of an embodiment of further predicting the type of key operation of the first key and the second key by combining the change in the capacitance value of the first key and the second key, further illustrating the specific process of further predicting the type of key operation of the first key and the second key by combining the change in the capacitance value of the first key and the second key in step S230, including: steps S410 to S430.

[0062] Step S410, when the change value of the capacitance value of the first button has not reached the set button threshold of the first button and the change value of the capacitance value of the second button has not reached the set button threshold of the second button, determine whether the change value of the capacitance value of the first button has reached a second set proportion of the set button threshold of the first button, and determine whether the change value of the capacitance value of the second button has reached a second set proportion of the set button threshold of the second button.

[0063] In step S420, if it is determined that the change in the capacitance value of the first key has reached a second set ratio of the set key threshold of the first key, and the change in the capacitance value of the second key has reached a second set ratio of the set key threshold of the second key, then the key operation of the two or more touch keys is considered to be a combination key operation of the first and second keys, in response to the combination key operation of the first and second keys. The second set ratio of the set key threshold of the first key is greater than the first set ratio of the set key threshold of the first key.

[0064] Step S430: If it is determined that the change in the capacitance value of the first key does not reach the second set proportion of the set key threshold of the first key, and / or it is determined that the change in the capacitance value of the second key does not reach the second set proportion of the set key threshold of the second key, then based on the decrease in the capacitance value of the first key and the capacitance value of the second key, the type of key operation of the first key and the second key is further predicted to respond to the key operation of the two or more touch keys according to the type of the key operation of the two or more touch keys.

[0065] Specifically, if Figure 7As shown, the solution of the present invention provides a method for detecting a touch key combination key, further comprising:

[0066] Step 51: If the change in capacitance of key A has not reached threshold A first, determine whether the change in capacitance of keys A and B has reached 80% of their respective thresholds before both have reached their respective thresholds. If so, respond to the key combination operation of keys A and B. Otherwise, proceed to step 52.

[0067] Step 52: Determine whether the capacitance values ​​of key A and key B decrease before the capacitance changes of key A and key B reach their respective thresholds. If so, re-determine the key combination, i.e., return to step 2. Otherwise, execute step 53.

[0068] Here, if the change in the capacitance value of key A and the change in the capacitance value of key B have not yet reached their respective thresholds, but have each reached 80% of their respective thresholds, the key operation of the combination key of key A and key B will also be responded to. In this way, the key threshold of the touch key combination key is lowered when the user's key operation is a touch key combination key operation, thereby improving the response rate of the touch key combination key. If the change in the capacitance value of key A and the change in the capacitance value of key B have not yet reached their respective thresholds, and the capacitance value decreases, it means that the finger has been released and a new judgment is required, so return to step 2 to re-judge the combination key.

[0069] In some embodiments, in step S430, when it is determined that the change value of the capacitance value of the first key does not reach the second set proportion of the set key threshold of the first key, and / or when it is determined that the change value of the capacitance value of the second key does not reach the second set proportion of the set key threshold of the second key, the specific process of further predicting the type of key operation of the first key and the second key based on the reduction of the capacitance value of the first key and the capacitance value of the second key is described in the following exemplary embodiment.

[0070] The following combination Figure 5 The method of the present invention further predicts the type of key operation of the first key and the second key according to the reduction of the capacitance value of the first key and the second key according to an embodiment of the process flow

[0071] Intentionally, the specific process of further predicting the type of key operation of the first key and the second key according to the decrease in the capacitance value of the first key and the second key in step S430 includes: steps S510 to S540.

[0072] Step S510 , determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing, and accumulating the number of determinations to obtain an accumulated number of determinations.

[0073] Step S520: If it is determined that the capacitance value of the first button is decreasing and the capacitance value of the second button is decreasing, then return to re-determine whether the change in the capacitance value of the first button reaches

[0074] A set key threshold for the first key.

[0075] Step S530: If it is determined that the capacitance value of the first button is not decreasing and / or the capacitance value of the second button is not decreasing, then return to continue to determine whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing, and accumulate the number of times of determination to obtain 5 as the cumulative number of determinations.

[0076] Step S540, after the cumulative number of determinations reaches the set number of times, determining whether the change in the capacitance value of the first button has not yet reached the set button threshold of the first button, and whether the change in the capacitance value of the second button has not yet reached the set button threshold of the second button: if so,

[0077] The reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button are calibrated. Otherwise, return to continue to determine whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing.

[0078] Whether the capacitance value of the key is decreasing, and the number of times of determination is accumulated to obtain the accumulated number of determinations.

[0079] The step S540 of calibrating the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button includes: determining the current value of the capacitance value of the first button as the reference value of the capacitance value of the second button;

[0080] The reference value of the capacitance value of the first button is determined, and the current value of the capacitance value of the second button is determined as the reference value of the capacitance value of the second button.

[0081] Specifically, if Figure 7 As shown, the solution of the present invention provides a method for detecting a touch key combination key, further comprising: step 53, after detecting 10 times starting from step 2, whether the change value of the capacitance value of key A and the change value of the capacitance value of key B have not reached their respective thresholds: if so, then each key is detected.

[0082] Otherwise, the process returns to step 52 to determine whether the capacitance values ​​of key A and key B decrease before the capacitance value changes of key A and key B reach their respective thresholds. If, after 10 tests, the capacitance value changes of key A and key B do not reach their respective thresholds, recalibration is performed on each key because the overall capacitance value change of each key may be caused by an unknown reason.

[0083] The reference value of the key capacitance is the average value of the key capacitance when no key is pressed for a period of time. The change in the key capacitance is the difference between the real-time value of the key capacitance and the reference value of the key capacitance. Recalibrating the reference value of each key capacitance is to adjust the reference value of each key capacitance to the current real-time value of the capacitance, i.e., to update the reference value of each key capacitance.

[0084] The technical solution of this embodiment is adopted to detect the capacitance value of each touch key and determine the change trend of the capacitance value of each touch key. When it is detected that the capacitance values ​​of two touch keys are both increasing, it is preliminarily determined that a key operation of a combination of the two touch keys exists. Even if the capacitance value of a single touch key reaches the preset key threshold of the touch key first, the key operation of the touch key is not responded to first. Until the change value of the capacitance value of the two touch keys reaches a certain proportion of their respective preset key thresholds, it is determined that a key operation of a combination of the two touch keys exists, and the key operation of the combination of the two touch keys is responded to. Therefore, by controlling the response of the key operation of the touch key combination key according to the change trend of the capacitance value of each touch key, it is beneficial to improve the response rate of the touch key combination key and enhance the user experience.

[0085] According to an embodiment of the present invention, a device for detecting a touch key combination key corresponding to the method for detecting a touch key combination key is also provided. Figure 6 The structure diagram of an embodiment of the device of the present invention is shown as follows. The touch key combination key includes: two or more touch keys. The detection device of the touch key combination key includes: an acquisition unit 102 and a control unit 104.

[0086] The acquisition unit 102 is configured to acquire the capacitance value of each touch key of the electrical device at every predetermined detection period. The electrical device is the electrical device to which the touch key combination belongs. The predetermined detection period is, for example, 10 ms. The specific functions and processing of the acquisition unit 102 are described in step S110.

[0087] The control unit 104 is configured to set two adjacent detection periods as the previous detection period and the current detection period, and determine whether the capacitance values ​​of two or more touch keys increase for the capacitance values ​​of each touch key among all touch keys obtained in the two adjacent detection periods. The increase in the capacitance values ​​of the two or more touch keys is specifically: the capacitance values ​​of two or more touch keys among all the capacitance values ​​of the touch keys obtained in the current detection period are correspondingly increased compared to the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection period. The specific functions and processing of the control unit 104 are shown in step S120.

[0088] The control unit 104 determines, in the case where the capacitance values ​​of the two or more touch keys increase, that the capacitance values ​​of the two or more touch keys among all the capacitance values ​​of the touch keys obtained in the current detection cycle are correspondingly increased compared to the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle, including: the control unit 104 determines, that the capacitance value of each touch key among the two or more touch keys obtained in the current detection cycle is increased by a first set ratio of the set key threshold of the corresponding key compared to the capacitance value of the corresponding touch key among the capacitance values ​​of the two or more touch keys obtained in the previous detection cycle. The first set ratio is, for example, 10%.

[0089] Specifically, Figure 7 FIG. 1 is a flow chart of a specific embodiment of a detection device for a touch key combination key of the present invention. Figure 7 As shown, the solution of the present invention provides a detection device for a touch key combination key, comprising:

[0090] Step 1: The wired controller has multiple touch buttons. It detects the capacitance of all touch buttons every 10ms, then executes Step 2. When a user's finger approaches and touches a touch button, the detected capacitance of the touch button changes. When the change in capacitance of a touch button exceeds the preset threshold for that touch button's capacitance, the touch button is considered to have been pressed.

[0091] Among them, the technology for detecting changes in the capacitance value of a touch button can be: each touch button has a pad that is roughly the size of a human fingertip, and a capacitor is generated between the pad and the ground. When a finger approaches the button, the capacitance between the human body and the ground is superimposed on the capacitance between the pad and the ground, causing the capacitance value of the capacitor between the pad and the ground to increase. The touch chip (i.e., the control chip of the touch button) detects changes in the button capacitance value by continuously charging and discharging the pad and detecting the charging and discharging time, because changes in the capacitance value will cause changes in the charging and discharging time.

[0092] Step 2: When the wired controller detects the capacitance values ​​of the two touch buttons and the capacitance values ​​of the two touch buttons increase by 10% of the respective preset button threshold values ​​compared with the last detection, it is considered that the touch button combination key may be pressed, and then step 3 is executed.

[0093] The control unit 104 is also configured to predict the type of key operation of the two or more touch keys based on further changes in the capacitance values ​​of the two or more touch keys if it is determined that there is an increase in the capacitance values ​​of the two or more touch keys, so as to respond to the key operation of the two or more touch keys according to the type of key operation of the two or more touch keys. The type of key operation of the two or more touch keys includes: a single key operation of one of the two or more touch keys, or a combination key operation of the two or more touch keys. Of course, if it is determined that there is no increase in the capacitance values ​​of the two or more touch keys, then continue to determine whether there is an increase in the capacitance values ​​of the two or more touch keys based on the capacitance values ​​of each touch key of all the touch keys obtained in the two adjacent detection cycles. The specific functions and processing of the control unit 104 are also shown in step S130.

[0094] The present invention provides a detection device for a touch key combination key. By detecting the changing trend of the capacitance value of each touch key, the device predicts whether a user's key operation is a touch key combination key operation or a single touch key operation. Furthermore, the device reduces the key threshold of the touch key combination key if the user's key operation is a touch key combination key operation, thereby improving the response rate of the touch key combination key and preventing the single touch key from being responded to first during a touch key combination key operation. This improves the user's experience using the touch key combination key. Consequently, during a touch key combination key operation, the single touch key is not responded to first due to inconsistent press times between the two touch keys. This solves the problem of a touch key combination key operation potentially responding to a single touch key first, leading to the incorrect setting of other functions. It also solves the problem of a touch key combination key operation where the threshold of any touch key in the touch key combination key operation sometimes fails to reach the threshold of a single touch key, affecting the response rate of the touch key combination key, due to the fact that the key press position is not as accurate as that of a single touch key operation.

[0095] In some embodiments, when the capacitance values ​​of two or more touch keys increase, the two or more touch keys in this case include a first key and a second key, the first key being, for example, key A, and the second key being, for example, key B. The first key may be the touch key whose capacitance value increases first among the two or more touch keys in this case, and the second key may be the touch key whose capacitance value increases later among the two or more touch keys in this case.

[0096] Specifically, in step 2, two touch buttons, such as button A and button B, are assumed, and the preset button threshold corresponding to the change in the capacitance value of button A is threshold A, and the preset button threshold corresponding to the change in the capacitance value of button B is threshold B. In the subsequent detection, step 3 is performed. Among them, threshold A is converted based on the capacitance change value through a series of calculations and is generally converted to a byte. That is, the threshold is generally tens to over a hundred. The thresholds of various buttons on the same product are generally similar, so threshold A and threshold B are of similar value.

[0097] The control unit 104, when the capacitance values ​​of the two or more touch keys increase, predicting types of key operations of the two or more touch keys according to further changes in the capacitance values ​​of the two or more touch keys, includes:

[0098] The control unit 104 is further configured to determine whether the change in the capacitance of the first button first reaches a set threshold for the first button. The set threshold for the first button is, for example, threshold A for button A. The change in the capacitance of the first button is the difference between the current capacitance value of the first button and a reference capacitance value of the first button. The specific functions and processing of the control unit 104 are further described in step S210.

[0099] Specifically, if Figure 7 As shown, the touch key combination key detection device provided by the solution of the present invention also includes: step 3, judging whether the change value of the capacitance value of key A reaches threshold A first: if so, executing step 41, otherwise executing step 51.

[0100] The control unit 104 is further configured to, if it is determined that the change in the capacitance value of the first button has reached the set key threshold of the first button, further predict the type of key operation of the first button and the second button based on the change in the capacitance value of the second button, and respond to the key operation of the first button and the second button based on the type of key operation of the first button and the second button. The specific functions and processing of the control unit 104 are also described in step S220.

[0101] In some embodiments, when the control unit 104 determines that the change in the capacitance value of the first button has first reached the set button threshold of the first button, further predicting the type of key operation of the first button and the second button based on the change in the capacitance value of the second button includes:

[0102] The control unit 104 is further configured to determine whether the amount of each increase in the capacitance value of the second button exceeds a first set ratio of the set button threshold of the second button. The set button threshold of the second button is, for example, threshold B for button B. The first set ratio of the set button threshold of the second button is, for example, 10%. The change in the capacitance value of the second button is the difference between the current capacitance value of the second button and the reference capacitance value of the second button. The specific functions and processing of the control unit 104 are further described in step S310.

[0103] The control unit 104 is further configured to, if it is determined that the amount of each increase in the capacitance value of the second key exceeds the first set ratio of the set key threshold of the second key, determine whether the change in the capacitance value of the second key has reached a second set ratio of the set key threshold of the second key: if so, it is considered that the type of key operation of the two or more touch keys is a combination key operation of the first key and the second key, in response to the combination key operation of the first key and the second key. Otherwise, return to continue determining whether the amount of each increase in the capacitance value of the second key exceeds the first set ratio of the set key threshold of the second key. The second set ratio of the set key threshold of the second key is greater than the first set ratio of the set key threshold of the second key. The second set ratio of the set key threshold of the second key is, for example, 80%. The specific functions and processing of the control unit 104 are also shown in step S320.

[0104] The control unit 104 is further configured to, if it is determined that the amount of each increase in the capacitance value of the second key does not exceed a first set ratio of the set key threshold of the second key, deem the key operation of the two or more touch keys to be a single key operation of the first key, and respond to the single key operation of the first key. The specific functions and processing of the control unit 104 are further described in step S330.

[0105] Specifically, if Figure 7 As shown, the solution of the present invention provides a detection device for a touch key combination key, further comprising:

[0106] Step 41: If the change in the capacitance of button A has reached threshold A, determine whether the change in the capacitance of button B exceeds 10% of threshold B each time. If so, do not respond to the operation of button A and proceed to step 42. Otherwise, respond to the operation of button A.

[0107] Step 42: Determine whether the change in capacitance of key B reaches 80% of threshold B. If so, respond to the combined operation of keys A and B. Otherwise, return to step 3 and continue to determine whether the change in capacitance of key A reaches threshold A first.

[0108] Here, if the change in the capacitance of key A reaches threshold A first, and the capacitance of key B increases by more than 10% of threshold B each time, the operation of key A will not be responded to initially. Later, when the change in the capacitance of key B also reaches 80% of threshold B, the combination of keys A and B will be responded to. If the change in the capacitance of key A reaches threshold A first, and the difference in the capacitance of key B from the previous capacitance value in a certain test is not greater than 10% of threshold B, the operation of key A will be responded to.

[0109] The control unit 104 is further configured to, if it is determined that the change in the capacitance value of the first button has not yet reached the set key threshold of the first button, further predict the type of key operation of the first button and the second button based on the change in the capacitance value of the first button and the change in the capacitance value of the second button, and respond to the key operation of the first button and the second button based on the type of key operation of the first button and the second button. The specific functions and processing of the control unit 104 are also described in step S230.

[0110] The solution of the present invention detects the change in the capacitance value of each touch key in real time through a wire controller. When it is detected that the capacitance values ​​of two touch keys are increasing, it is considered that there may be a key operation of the two touch key combination keys. At this time, even if the capacitance value of a single touch key reaches the preset key threshold of the capacitance value of the touch key first, the key function of the touch key will not be responded to first. When the capacitance values ​​of the two touch keys both reach a set ratio of the preset key threshold of their respective capacitance values, for example 80%, it is determined that the current key operation is a key operation of the two touch key combination keys, thereby improving the response rate of the touch key combination key, avoiding the possibility that the single touch key may be responded to first when the touch key combination key is operated, and improving the user's operating experience of using the touch key combination key.

[0111] In some embodiments, when determining that the change in the capacitance value of the first button has first reached the set button threshold of the first button, the control unit 104 further predicts the type of key operation of the first button and the second button based on the change in the capacitance value of the first button and the change in the capacitance value of the second button, including:

[0112] The control unit 104 is further configured to, when the change in the capacitance value of the first button has not reached the set button threshold of the first button and the change in the capacitance value of the second button has not reached the set button threshold of the second button, determine whether the change in the capacitance value of the first button has reached a second set proportion of the set button threshold of the first button, and determine whether the change in the capacitance value of the second button has reached a second set proportion of the set button threshold of the second button. The specific functions and processing of the control unit 104 are further described in step S410.

[0113] The control unit 104 is further configured to, if it is determined that the change in the capacitance value of the first key has reached a second set ratio of the set key threshold of the first key, and the change in the capacitance value of the second key has reached a second set ratio of the set key threshold of the second key, then deem the key operation of the two or more touch keys to be a combination key operation of the first and second keys, and respond to the combination key operation of the first and second keys. The second set ratio of the set key threshold of the first key is greater than the first set ratio of the set key threshold of the first key. The specific functions and processing of the control unit 104 are further described in step S420.

[0114] The control unit 104 is further configured to, if it is determined that the change in the capacitance value of the first key has not reached a second set ratio of the set key threshold of the first key, and / or if it is determined that the change in the capacitance value of the second key has not reached a second set ratio of the set key threshold of the second key, further predict the type of key operation of the first key and the second key based on the decrease in the capacitance value of the first key and the capacitance value of the second key, so as to respond to the key operation of the two or more touch keys based on the type of the key operation. The specific functions and processing of the control unit 104 are also shown in step S430.

[0115] Specifically, if Figure 7 As shown, the solution of the present invention provides a detection device for a touch key combination key, further comprising:

[0116] Step 51: If the change in capacitance of key A has not reached threshold A first, determine whether the change in capacitance of keys A and B has reached 80% of their respective thresholds before both have reached their respective thresholds. If so, respond to the key combination operation of keys A and B. Otherwise, proceed to step 52.

[0117] Step 52: Determine whether the capacitance values ​​of key A and key B decrease before the capacitance changes of key A and key B reach their respective thresholds. If so, re-determine the key combination, i.e., return to step 2. Otherwise, execute step 53.

[0118] Here, if the change in the capacitance value of key A and the change in the capacitance value of key B have not yet reached their respective thresholds, but have each reached 80% of their respective thresholds, the key operation of the combination key of key A and key B will also be responded to. In this way, the key threshold of the touch key combination key is lowered when the user's key operation is a touch key combination key operation, thereby improving the response rate of the touch key combination key. If the change in the capacitance value of key A and the change in the capacitance value of key B have not yet reached their respective thresholds, and the capacitance value decreases, it means that the finger has been released and a new judgment is required, so return to step 2 to re-judge the combination key.

[0119] In some embodiments, the control unit 104, upon determining that the change in the capacitance value of the first button does not reach a second set proportion of the set key threshold of the first button and / or determining that the change in the capacitance value of the second button does not reach a second set proportion of the set key threshold of the second button, further predicting the type of key operation of the first button and the second button based on decreases in the capacitance value of the first button and the capacitance value of the second button, includes:

[0120] The control unit 104 is further configured to determine whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing, and to accumulate and count the number of such determinations to obtain a cumulative number of determinations. The specific functions and processing of the control unit 104 are further described in step S510.

[0121] The control unit 104 is further configured to, if it is determined that the capacitance value of the first button is decreasing and the capacitance value of the second button is decreasing, return to re-determine whether the change in the capacitance value of the first button first reaches the set key threshold of the first button. The specific functions and processing of the control unit 104 are further described in step S520.

[0122] The control unit 104 is further configured to, if it is determined that the capacitance value of the first button is not decreasing and / or the capacitance value of the second button is not decreasing, return to continue determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing, and accumulate the number of such determinations to obtain a cumulative number of determinations. The specific functions and processing of the control unit 104 are further described in step S530.

[0123] The control unit 104 is further configured to determine, after the cumulative number of determinations reaches a set number, whether the change in the capacitance value of the first button has not yet reached the set button threshold of the first button, and whether the change in the capacitance value of the second button has not yet reached the set button threshold of the second button: if so, calibrate the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button. Otherwise, return to continue determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing, and accumulate the number of determinations to obtain the cumulative number of determinations. The specific functions and processing of the control unit 104 are also shown in step S540.

[0124] In which, the control unit 104 calibrates the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button, including: the control unit 104 is specifically configured to determine the current value of the capacitance value of the first button as the reference value of the capacitance value of the first button, and determine the current value of the capacitance value of the second button as the reference value of the capacitance value of the second button.

[0125] Specifically, if Figure 7 As shown, the solution of the present invention provides a detection device for a touch key combination key, which also includes: step 53, after detecting 10 times, whether the change value of the capacitance value of key A and the change value of the capacitance value of key B have not reached their respective thresholds: if so, the reference value of the capacitance value of each key is recalibrated. Otherwise, return to step 52 and continue to judge whether the capacitance value of key A and the capacitance value of key B have decreased before the change values ​​of the capacitance values ​​of key A and key B have not reached their respective thresholds. Here, if the change value of the capacitance value of key A and the change value of the capacitance value of key B have not reached their respective thresholds after detecting 10 times, each key is recalibrated, because the overall change in the capacitance value of each key may be caused by unknown reasons.

[0126] The reference value of the key capacitance is the average value of the key capacitance when no key is pressed for a period of time. The change in the key capacitance is the difference between the real-time value of the key capacitance and the reference value of the key capacitance. Recalibrating the reference value of each key capacitance is to adjust the reference value of each key capacitance to the current real-time value of the capacitance, i.e., to update the reference value of each key capacitance.

[0127] Since the processing and functions implemented by the device of this embodiment basically correspond to the embodiments, principles and examples of the aforementioned method, for any details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.

[0128] By adopting the technical solution of the present invention, the capacitance value of each touch key is detected to determine the change trend of the capacitance value of each touch key; when it is detected that the capacitance values ​​of two touch keys are both increasing, it is preliminarily considered that there is a key operation of the combination key of the two touch keys, and even if the capacitance value of a single touch key reaches the preset key threshold of the touch key first, the key operation of the touch key will not be responded to first. Until the change values ​​of the capacitance values ​​of the two touch keys reach a certain proportion of their respective preset key thresholds, it is determined that there is a key operation of the combination key of the two touch keys, and the key operation of the combination key of the two touch keys is responded to, thereby improving the response rate of the combination key, avoiding the possibility of responding to a single key first when the key operation of the combination key is performed, and improving the user's operating experience of using the touch key combination key.

[0129] According to an embodiment of the present invention, an electrical device corresponding to the detection device for a touch key combination key is also provided. The electrical device may include: the detection device for a touch key combination key described above.

[0130] Since the processing and functions implemented by the electrical equipment of this embodiment basically correspond to the embodiments, principles and examples of the aforementioned devices, for any details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.

[0131] By adopting the technical solution of the present invention, the capacitance value of each touch key is detected to determine the change trend of the capacitance value of each touch key; when it is detected that the capacitance values ​​of two touch keys are both increasing, it is preliminarily considered that there is a key operation of the combination key of the two touch keys, and even if the capacitance value of a single touch key reaches the preset key threshold of the touch key first, the key operation of the touch key will not be responded to first. Until the change values ​​of the capacitance values ​​of the two touch keys both reach a certain proportion of their respective preset key thresholds, it is determined that there is a key operation of the combination key of the two touch keys, and the key operation of the combination key of the two touch keys is responded to, so as to avoid the possibility of responding to a single key first when the key operation of the combination key is performed, thereby improving the user's operating experience of using the touch key combination key.

[0132] According to an embodiment of the present invention, a storage medium corresponding to the method for detecting a touch key combination key is also provided, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned method for detecting a touch key combination key.

[0133] Since the processing and functions implemented by the storage medium of this embodiment basically correspond to the embodiments, principles and examples of the aforementioned method, for any details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.

[0134] The technical solution of the present invention is adopted to determine the change trend of the capacitance value of each touch key by detecting the capacitance value of each touch key; when it is detected that the capacitance values ​​of two touch keys are both increasing, it is preliminarily considered that there is a key operation of the combination of the two touch keys, and even if there is a capacitance increase of a single touch key, the capacitance value of each touch key is increased.

[0135] The capacitance value of the touch key reaches the preset key threshold value of the touch key first, and the touch key operation is not responded to first, until the change values ​​of the capacitance values ​​of the two touch keys reach a certain proportion of their respective preset key threshold values.

[0136] In this case, it is determined that there is a key operation of the combination key of the two touch keys, and the key operation of the combination key of the two touch keys is responded to, thereby improving the combination key response rate and enhancing the user's operating experience.

[0137] In summary, it is easy for those skilled in the art to understand that, under the premise of no conflict, the above-mentioned advantageous methods can be freely combined and superimposed.

[0138] The above description is merely an embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that the present invention is susceptible to various modifications and variations. Any modifications, equivalent substitutions, or improvements within the spirit and principles of the present invention are intended to be within the scope of the claims.

Claims

1. A method for detecting a touch key combination key, characterized in that: include: At every set detection cycle, the capacitance value of each touch button of the electrical device is obtained; determining, for each touch key among all the touch keys obtained in two adjacent detection cycles, whether the capacitance values ​​of two or more touch keys increase; the increase in the capacitance values ​​of the two or more touch keys being determined in accordance with the present invention, wherein the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the current detection cycle are correspondingly increased compared to the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle; and if the capacitance values ​​of the two or more touch keys increase, the two or more touch keys in this case include the first key and the second key. If it is determined that the capacitance values ​​of the two or more touch keys have increased, it is determined whether the change value of the capacitance value of the first key reaches the set key threshold of the first key first; if it is determined that the change value of the capacitance value of the first key has reached the set key threshold of the first key first, it is determined whether the amount of each increase in the capacitance value of the second key exceeds the first set ratio of the set key threshold of the second key; wherein, the change value of the capacitance value of the second key is the difference between the current value of the capacitance value of the second key and the reference value of the capacitance value of the second key; if it is determined that the amount of each increase in the capacitance value of the second key exceeds the first set ratio of the set key threshold of the second key, it is determined whether the change value of the capacitance value of the second key has reached the second set ratio of the set key threshold of the second key: if so, it is considered that the key operation of the two or more touch keys The type of the key operation of the two or more touch keys is a combination key operation of the first key and the second key, in response to the combination key operation of the first key and the second key; otherwise, return to continue to determine whether the amount by which the change value of the capacitance value of the second key increases each time exceeds the first set ratio of the set key threshold of the second key; wherein the second set ratio of the set key threshold of the second key is greater than the first set ratio of the set key threshold of the second key; if it is determined that the amount by which the change value of the capacitance value of the second key increases each time does not exceed the first set ratio of the set key threshold of the second key, then it is considered that the type of the key operation of the two or more touch keys is a single key operation of the first key, in response to the single key operation of the first key; the type of the key operation of the two or more touch keys includes: a single key operation of one touch key among the two or more touch keys, or a combination key operation of the two or more touch keys.

2. The method for detecting a touch key combination according to claim 1, wherein: in, In the case where the capacitance values ​​of the two or more touch keys increase, the capacitance values ​​of the two or more touch keys among the capacitance values ​​of all the touch keys obtained in the current detection cycle are correspondingly increased compared with the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle, including: the capacitance value of each touch key among the two or more touch keys obtained in the current detection cycle is increased by a first set proportion of the set key threshold of the corresponding key compared with the capacitance value of the corresponding touch key among the capacitance values ​​of the two or more touch keys obtained in the previous detection cycle.

3. The method for detecting a touch key combination according to claim 1 or 2, wherein: in, The change value of the capacitance value of the first button is the difference between the current value of the capacitance value of the first button and the reference value of the capacitance value of the first button; If it is determined that the change in the capacitance value of the first button has first reached the set button threshold of the first button, responding to the button operations of the first button and the second button according to the types of the button operations of the first button and the second button; If it is determined that the change in the capacitance value of the first button has not reached the set button threshold of the first button first, then the type of key operation of the first button and the second button is further predicted in combination with the change in the capacitance value of the first button and the change in the capacitance value of the second button, so as to respond to the key operation of the first button and the second button according to the type of key operation of the first button and the second button.

4. The method for detecting a touch key combination according to claim 3, wherein: Further predicting the types of key operations of the first key and the second key based on the change in the capacitance value of the first key and the change in the capacitance value of the second key includes: If the change in the capacitance value of the first button does not reach the set button threshold of the first button and the change in the capacitance value of the second button does not reach the set button threshold of the second button, determining whether the change in the capacitance value of the first button has reached a second set proportion of the set button threshold of the first button, and determining whether the change in the capacitance value of the second button has reached a second set proportion of the set button threshold of the second button; If it is determined that the change in the capacitance value of the first key has reached a second set proportion of the set key threshold of the first key, and the change in the capacitance value of the second key has reached a second set proportion of the set key threshold of the second key, then the key operation type of the two or more touch keys is considered to be a combination key operation of the first key and the second key, and the combination key operation of the first key and the second key is responded to; If it is determined that the change value of the capacitance value of the first key does not reach the second set proportion of the set key threshold of the first key, and / or it is determined that the change value of the capacitance value of the second key does not reach the second set proportion of the set key threshold of the second key, then based on the decrease in the capacitance value of the first key and the capacitance value of the second key, the type of key operation of the first key and the second key is further predicted to respond to the key operation of the two or more touch keys according to the type of the key operation of the two or more touch keys.

5. The method for detecting a touch key combination according to claim 4, wherein: Further predicting the type of key operation of the first key and the second key according to the decrease in the capacitance value of the first key and the capacitance value of the second key includes: determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing, and accumulating the number of determinations to obtain a cumulative number of determinations; If it is determined that the capacitance value of the first button is decreasing and the capacitance value of the second button is decreasing, return to re-determine whether the change in the capacitance value of the first button reaches the set button threshold of the first button first; If it is determined that the capacitance value of the first button is not decreasing and / or the capacitance value of the second button is not decreasing, return to continue determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing; After the cumulative number of determinations reaches a set number, determining whether a change in the capacitance value of the first button still does not reach a set button threshold of the first button, and whether a change in the capacitance value of the second button still does not reach a set button threshold of the second button; if so, calibrating a reference value of the capacitance value of the first button and a reference value of the capacitance value of the second button; otherwise, returning to continue determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing; Among them, calibrating the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button includes: determining the current value of the capacitance value of the first button as the reference value of the capacitance value of the first button, and determining the current value of the capacitance value of the second button as the reference value of the capacitance value of the second button.

6. A detection device for a touch key combination key, characterized in that: include: an acquiring unit configured to acquire a capacitance value of each touch key of all touch keys of the electrical device at every set detection period; The control unit is configured to determine, based on the capacitance values ​​of each touch key among all the touch keys obtained in two adjacent detection cycles, whether the capacitance values ​​of two or more touch keys increase; the capacitance value increase of the two or more touch keys being specifically: the capacitance values ​​of two or more touch keys among all the capacitance values ​​of the touch keys obtained in the current detection cycle are correspondingly increased compared to the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle; if the capacitance values ​​of the two or more touch keys increase, the two or more touch keys in this case include the first key and the second key; The control unit is further configured to, if it is determined that the capacitance values ​​of the two or more touch keys have increased, determine whether the change value of the capacitance value of the first key reaches the set key threshold of the first key first; if it is determined that the change value of the capacitance value of the first key has reached the set key threshold of the first key first, determine whether the amount of each increase in the capacitance value of the second key exceeds a first set ratio of the set key threshold of the second key; wherein the change value of the capacitance value of the second key is the difference between the current value of the capacitance value of the second key and the reference value of the capacitance value of the second key; if it is determined that the amount of each increase in the capacitance value of the second key exceeds the first set ratio of the set key threshold of the second key, determine whether the change value of the capacitance value of the second key has reached a second set ratio of the set key threshold of the second key: if so, it is considered that the two or more touch keys have increased. The type of key operation of the key is a combined key operation of the first key and the second key, in response to the combined key operation of the first key and the second key; otherwise, return to continue to determine whether the amount by which the change value of the capacitance value of the second key increases each time exceeds the first set ratio of the set key threshold of the second key; wherein the second set ratio of the set key threshold of the second key is greater than the first set ratio of the set key threshold of the second key; if it is determined that the amount by which the change value of the capacitance value of the second key increases each time does not exceed the first set ratio of the set key threshold of the second key, then the type of key operation of the two or more touch keys is considered to be a single key operation of the first key, in response to the single key operation of the first key; the type of key operation of the two or more touch keys includes: a single key operation of one touch key among the two or more touch keys, or a combined key operation of the two or more touch keys.

7. The detection device for touch key combination keys according to claim 6, characterized in that: in, In the case where the capacitance values ​​of the two or more touch keys increase, the capacitance values ​​of the two or more touch keys among the capacitance values ​​of all the touch keys obtained in the current detection cycle are correspondingly increased compared with the capacitance values ​​of the two or more touch keys among all the touch keys obtained in the previous detection cycle, including: the capacitance value of each touch key among the two or more touch keys obtained in the current detection cycle is increased by a first set proportion of the set key threshold of the corresponding key compared with the capacitance value of the corresponding touch key among the capacitance values ​​of the two or more touch keys obtained in the previous detection cycle.

8. The detection device for touch key combination keys according to claim 6 or 7, characterized in that: in, The change value of the capacitance value of the first button is the difference between the current value of the capacitance value of the first button and the reference value of the capacitance value of the first button; The control unit is further configured to, if it is determined that the change value of the capacitance value of the first button has not first reached the set key threshold of the first button, further predict the type of key operation of the first button and the second button based on the change in the capacitance value of the first button and the change in the capacitance value of the second button, so as to respond to the key operation of the first button and the second button according to the type of key operation of the first button and the second button.

9. The detection device for touch key combination keys according to claim 8, characterized in that: The control unit further predicts the type of key operation of the first key and the second key based on the change in the capacitance value of the first key and the change in the capacitance value of the second key, including: If the change in the capacitance value of the first button does not reach the set button threshold of the first button and the change in the capacitance value of the second button does not reach the set button threshold of the second button, determining whether the change in the capacitance value of the first button has reached a second set proportion of the set button threshold of the first button, and determining whether the change in the capacitance value of the second button has reached a second set proportion of the set button threshold of the second button; If it is determined that the change in the capacitance value of the first key has reached a second set proportion of the set key threshold of the first key, and the change in the capacitance value of the second key has reached a second set proportion of the set key threshold of the second key, then the key operation type of the two or more touch keys is considered to be a combination key operation of the first key and the second key, and the combination key operation of the first key and the second key is responded to; If it is determined that the change value of the capacitance value of the first key does not reach the second set proportion of the set key threshold of the first key, and / or it is determined that the change value of the capacitance value of the second key does not reach the second set proportion of the set key threshold of the second key, then based on the decrease in the capacitance value of the first key and the capacitance value of the second key, the type of key operation of the first key and the second key is further predicted to respond to the key operation of the two or more touch keys according to the type of the key operation of the two or more touch keys.

10. The detection device for touch key combination keys according to claim 9, characterized in that: The control unit further predicts the type of key operation of the first key and the second key according to the decrease of the capacitance value of the first key and the capacitance value of the second key, including: determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing, and accumulating the number of determinations to obtain a cumulative number of determinations; If it is determined that the capacitance value of the first button is decreasing and the capacitance value of the second button is decreasing, return to re-determine whether the change in the capacitance value of the first button reaches the set button threshold of the first button first; If it is determined that the capacitance value of the first button is not decreasing and / or the capacitance value of the second button is not decreasing, return to continue determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing; After the cumulative number of determinations reaches a set number, determining whether a change in the capacitance value of the first button still does not reach a set button threshold of the first button, and whether a change in the capacitance value of the second button still does not reach a set button threshold of the second button; if so, calibrating a reference value of the capacitance value of the first button and a reference value of the capacitance value of the second button; otherwise, returning to continue determining whether the capacitance value of the first button is decreasing and whether the capacitance value of the second button is decreasing; Among them, the control unit calibrates the reference value of the capacitance value of the first button and the reference value of the capacitance value of the second button, including: determining the current value of the capacitance value of the first button as the reference value of the capacitance value of the first button, and determining the current value of the capacitance value of the second button as the reference value of the capacitance value of the second button.

11. An electrical device, characterized in that: include: The detection device for a touch key combination key according to any one of claims 6 to 10.

12. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method for detecting a touch key combination key according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multi-touch-key detection method and module thereof, MCU (Microprogrammed Control Unit) and computer storage medium

    CN114755573A