Capacitance key touch event state detection method, device, system and equipment

The capacitance parameter data is filtered through the capacitance threshold table and the state chain model, and combined with the time threshold and historical parameters, the misjudgment problem of the capacitance button touch algorithm in the interfering environment is solved, and efficient and flexible capacitance button touch event detection is achieved.

CN120406762APending Publication Date: 2025-08-01HANG ZHOU NANO CORE CHIP ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311630670.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

Traditional capacitive button touch algorithms are prone to misjudgment in disturbed environments, and patching methods can lead to program swelling and confusing management readability. The existing technology has not yet effectively solved the problem of low discrimination efficiency of touch algorithms.

Method used

By obtaining capacitor parameter data, using the capacitance threshold table to filter the target capacitor parameter data, building a capacitance state chain model, combining time threshold and historical parameter data, it realizes accurate detection of capacitor key touch events, reduces calculation resource consumption, and only modify or adds branch nodes to deal with interference when interference occurs.

Benefits of technology

Improves the accuracy and flexibility of capacitive button touch event detection, reduces computing resource consumption, maintains efficient detection in multiple environments, and eliminates the need to reconstruct the entire state detection model in the event of interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120406762A_ABST
    Figure CN120406762A_ABST
Patent Text Reader

Abstract

The invention relates to a capacitance key touch event state detection method, device, system and equipment. The method comprises the steps of obtaining to-be-detected capacitor parameter data and at least one capacitor state node obtained based on a capacitor key touch event; determining at least one target capacitance parameter data in the to-be-detected capacitance parameter data based on a capacitance threshold table corresponding to the capacitance state nodes, and determining a target capacitance state node from all the capacitance state nodes according to a comparison result of the target capacitance parameter data and the capacitance threshold table; and obtaining a capacitance state detection result corresponding to the to-be-detected capacitance parameter data based on the target capacitance state node. By adopting the method, the capacitance touch judgment efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technologies, and particularly to a method, device, system, and equipment for detecting the state of a capacitive button touch event. Background Art

[0002] Traditional touch algorithms are based on the quantized capacitance values output by CDC (Capacitor Digital Conversion). By measuring the change in capacitance when a finger touches a touch button, a method of using one or more threshold determinations is used to identify whether the finger is on the touch button. However, in an environment where capacitive buttons are easily interfered with, misjudgments may occur. Moreover, if a patch method is used to exclude the interference model subsequently, the entire program will swell, and management and readability will be chaotic.

[0003] Currently, no effective solution has been proposed for the problem of low discrimination efficiency of touch algorithms. Summary of the Invention

[0004] Based on this, in view of the above technical problems, it is necessary to provide a method, device, system, and equipment for detecting the state of a capacitive button touch event.

[0005] In a first aspect, the present application provides a method for detecting the state of a capacitive button touch event. The method includes:

[0006] Obtaining capacitance parameter data to be detected and at least one capacitance state node obtained based on a capacitive button touch event;

[0007] Determining at least one target capacitance parameter data in the capacitance parameter data to be detected based on a capacitance threshold table corresponding to the capacitance state node, and determining a target capacitance state node from all capacitance state nodes according to the comparison result between the target capacitance parameter data and the capacitance threshold table;

[0008] Obtaining a capacitance state detection result corresponding to the capacitance parameter data to be detected based on the target capacitance state node.

[0009] In one embodiment, determining a target capacitance state node from all capacitance state nodes according to the comparison result between the target capacitance parameter data and the capacitance threshold table includes:

[0010] When obtaining at least two initial capacitance state nodes from the capacitance state nodes according to the comparison result, screening the initial capacitance state nodes according to the node information corresponding to the capacitance state node to obtain the target capacitance state node.

[0011] In one embodiment, obtaining capacitance parameter data to be detected includes:

[0012] Obtain the preset baseline parameters and the actual parameter information corresponding to the capacitive button touch event;

[0013] Determine the actual change information of the actual parameter information in the time dimension based on the actual parameter information;

[0014] Obtain a baseline adjustment instruction for the baseline parameters based on the actual change information, wherein the baseline parameters are adjusted according to the baseline adjustment instruction to obtain target baseline parameters;

[0015] Obtain the capacitance parameter data to be detected according to the target baseline parameters and the actual parameter information.

[0016] In one embodiment, the method further includes:

[0017] Obtain the target change information corresponding to the target capacitance parameter data in the time dimension, and the time data corresponding to the target change information;

[0018] When the time data is greater than or equal to a preset time threshold and the target change information is less than the parameter threshold data corresponding in the capacitance threshold table, obtain an abnormal state node from the state nodes; wherein, the target capacitance state node includes the abnormal state node;

[0019] Obtain a capacitance state detection result for the capacitance parameter data to be detected based on the abnormal state node.

[0020] In one embodiment, the capacitance state node includes a current state node. Determining the target capacitance state node from all capacitance state nodes includes:

[0021] Obtain a capacitance state chain model based on at least one capacitance state node;

[0022] Obtain an initial detection result based on the comparison result between the target capacitance parameter data and the capacitance threshold table corresponding to the current state node;

[0023] Obtain the historical state node corresponding to the current state node according to the capacitance state chain model, and synthesize the historical parameter data corresponding to the historical state node and the initial detection result to obtain the target capacitance state node.

[0024] In one embodiment, the above method further includes:

[0025] Obtain a capacitance state chain model based on at least one capacitance state node;

[0026] Comparison step: Compare the obtained first capacitance parameter data to be detected with all capacitance threshold tables corresponding to all capacitance state nodes, determine the first capacitance state node from the capacitance state nodes, and jump to the first capacitance state node;

[0027] Detection step: When the state of the capacitive button touch event is at the first capacitive state node, obtain the second capacitance parameter data to be detected at the next moment, and compare the second capacitance parameter data to be detected with all the first initial capacitance threshold tables. Determine the second capacitive state node and jump according to the comparison result; among them, the first capacitive state node corresponds to at least one first initial state node, and the first initial state node corresponds to the first initial capacitance threshold table.

[0028] When the state of the capacitive button touch event is at the second capacitive state node, obtain the third capacitance parameter data to be detected at the next moment, repeat the comparison step and the detection step until all the capacitance parameter data to be detected are traversed, and obtain the final capacitance state detection result corresponding to the capacitance parameter data to be detected; among them, the capacitive state chain model includes the first capacitive state node and the second capacitive state node.

[0029] In one embodiment, the above method further includes:

[0030] When the state of the capacitive button touch event is at the normal state node, compare the first standard parameter data at the current moment with all the first standard capacitance threshold tables, and determine the lift state node and jump based on the comparison result;

[0031] When it is detected that the state of the capacitive button touch event is at the lift state node, obtain the second standard parameter data at the next moment, and compare the second standard parameter data with all the second standard capacitance threshold tables. Determine the high lift state node and jump according to the comparison result;

[0032] When it is detected that the state of the capacitive button touch event is at the high lift state node, obtain the third standard parameter data at the next moment, and compare the third standard parameter data with all the third standard capacitance threshold tables. Determine the button trigger state node and jump according to the comparison result;

[0033] Based on the button trigger state node, obtain the capacitance standard state detection result corresponding to the capacitance parameter data to be detected.

[0034] In a second aspect, the present application further provides a capacitive button touch event state detection device, and the device includes:

[0035] An acquisition module, configured to acquire the capacitance parameter data to be detected and at least one capacitive state node obtained based on the capacitive button touch event;

[0036] A calculation module, configured to determine at least one target capacitance parameter data in the capacitance parameter data to be detected based on a capacitance threshold table corresponding to a capacitance state node, and determine a target capacitance state node from all capacitance state nodes according to a comparison result between the target capacitance parameter data and the capacitance threshold table;

[0037] A generation module, configured to obtain a capacitance state detection result corresponding to the capacitance parameter data to be detected based on the target capacitance state node.

[0038] In a third aspect, the present application further provides a capacitance key touch event state determination system, which includes a touch sensing device and a capacitance key touch event state detection device; wherein, the touch sensing device is configured to send the capacitance parameter data to be detected to the capacitance key touch event state detection device.

[0039] In a fourth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0040] Obtain the capacitance parameter data to be detected and at least one capacitance state node obtained based on the capacitance key touch event;

[0041] Determine at least one target capacitance parameter data in the capacitance parameter data to be detected based on a capacitance threshold table corresponding to the capacitance state node, and determine a target capacitance state node from all capacitance state nodes according to a comparison result between the target capacitance parameter data and the capacitance threshold table;

[0042] Obtain a capacitance state detection result corresponding to the capacitance parameter data to be detected based on the target capacitance state node.

[0043] For the above capacitance key touch event state detection method, device, system and device, on the one hand, the present application can determine some truly effective target capacitance parameter data among the obtained multiple capacitance parameter data according to the capacitance threshold table, and calculate and determine the target capacitance state node based on the target capacitance parameter data, thereby reducing the resources consumed during calculation; on the other hand, once a new interference model appears, there is no need to overthrow all the logics, and only the jump scheme of the original node needs to be modified or a new branch node scheme needs to be added at the node where the interference invades, so that the interference problem can be solved without affecting other nodes. Description of the Drawings

[0044] Figure 1 It is an application environment diagram of the capacitance key touch event state detection method in an embodiment;

[0045] Figure 2 It is a flowchart of the capacitance key touch event state detection method in an embodiment;

[0046] Figure 3 Schematic diagram of capacitance value change when touching a capacitive button in an embodiment

[0047] Figure 4 Schematic flow diagram of a method for detecting the state of a capacitive button touch event in a preferred embodiment

[0048] Figure 5 Block diagram of the structure of a device for detecting the state of a capacitive button touch event in an embodiment

[0049] Figure 6 Block diagram of the structure of a system for determining the state of a capacitive button touch event in an embodiment

[0050] Figure 7 Schematic diagram of the common state node jump relationship in a determination system in an embodiment

[0051] Figure 8 Internal structure diagram of a computer device in an embodiment Detailed implementation manners

[0052] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0053] The method for detecting the state of a capacitive button touch event provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 . Among them, the terminal 102 communicates with the server 104 through a network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed in the cloud or other network servers. First, obtain the capacitance parameter data to be detected and at least one capacitance state node; then determine at least one target capacitance parameter data in the capacitance parameter data to be detected based on the capacitance threshold table corresponding to the capacitance state node, and determine the target capacitance state node from the capacitance state nodes according to the comparison result between the target capacitance parameter data and the capacitance threshold table; finally, based on the target capacitance state node, obtain the capacitance state detection result corresponding to the capacitance parameter data to be detected. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0054] In one embodiment, as Figure 2 shown, a method for detecting the state of a capacitive button touch event is provided. Taking the server in Figure 1 as an example, the method includes the following steps:

[0055] Step 202, obtain the capacitance parameter data to be detected and at least one capacitance state node obtained based on the capacitive button touch event.

[0056] Among them, the above capacitance state nodes can generally be pre-divided by relevant technical personnel. The above capacitive button touch event is an event indicating whether a capacitive touch button is triggered. Obtaining at least one capacitance state node based on the capacitive button touch event means dividing the capacitive touch time into different state periods as the above-mentioned multiple state nodes based on the characteristics of the dynamic change of capacitance in the event indicating whether the capacitive touch button is triggered. Among them, the characteristics of the dynamic change of capacitance can be, for example, capacitance value change differential, second-order differential, short-time integration, jitter count, power-on baseline drift, state time timing, and multi-channel parameter statistics, etc.

[0057] Step S204, determine at least one target capacitance parameter data in the capacitance parameter data to be detected based on the capacitance threshold table corresponding to the capacitance state node, and determine the target capacitance state node from all capacitance state nodes according to the comparison result between the target capacitance parameter data and the capacitance threshold table.

[0058] Among them, each capacitance state node has a corresponding capacitance threshold table. The capacitance threshold table defines the parameter types and upper and lower threshold limits required for the next or next multiple capacitance state nodes that can be jumped to. Specifically, the capacitance threshold table is used to select the target capacitance state node based on the target capacitance parameter data, generally in the form of a table. Thus, it is possible to determine some target capacitance parameter data from the above multiple capacitance parameter data to be detected according to the parameter types and thresholds defined in the threshold table, and compare the target capacitance parameter data with the threshold table corresponding to the current state node to determine which jump condition for the target capacitance state node is satisfied, so as to determine the above target capacitance state node.

[0059] Step S206, obtain the capacitance state detection result corresponding to the capacitance parameter data to be detected based on the target capacitance state node.

[0060] Among them, the above target capacitance state node can be a situation such as conductor contact, environmental influence, or water contact. Thus, the state detection result of the to-be-detected scenario event reflected by the current event parameter data can be judged according to the above target capacitance state node.

[0061] Through steps S202 to S206, in the present application, based on the above capacitance threshold table, a plurality of to-be-detected capacitance parameter data collected are screened to obtain partial target capacitance parameter data. Then, when selecting a plurality of capacitance state nodes based on the above target capacitance parameter data, the calculation amount can be greatly reduced. Further, when screening the next state node subsequently, other partial parameter data can be obtained from the to-be-detected capacitance parameter data to be compared with the threshold table, ensuring the detection accuracy while making the state detection method highly flexible.

[0062] In one embodiment, determining a target capacitance state node from all capacitance state nodes according to the comparison result between the target capacitance parameter data and the capacitance threshold table includes:

[0063] When at least two initial capacitance state nodes are obtained from the capacitance state nodes according to the comparison result, the initial capacitance state nodes are screened according to the node information corresponding to the capacitance state nodes to obtain the target capacitance state node.

[0064] Specifically, in actual application, since the above state nodes and the capacitance threshold table are usually set in advance, when setting, the selection conditions for the target capacitance state node that are mutually contradictory or conflicting are usually avoided. That is, generally, only one target capacitance state node can be determined according to the above to-be-detected capacitance parameter data. However, in actual application, due to the complexity of the to-be-detected scenario events, there may be a situation where more than one initial capacitance state node is determined based on the above to-be-detected capacitance parameter data. In the present application, the target capacitance parameter data can be supplemented based on the node information to further complete the selection of a plurality of initial state nodes. Through the above method, the present application can have a higher flexibility to adapt to more complex application scenarios and ensure high detection efficiency in a variety of different environments.

[0065] In one embodiment, obtaining the to-be-detected capacitance parameter data includes:

[0066] Obtaining a preset baseline parameter and actual parameter information corresponding to a capacitance button touch event;

[0067] Determining the actual change information of the actual parameter information in the time dimension based on the actual parameter information;

[0068] Obtaining a baseline adjustment instruction for the baseline parameter based on the actual change information, wherein the baseline parameter is adjusted according to the baseline adjustment instruction to obtain a target baseline parameter;

[0069] Obtaining the to-be-detected capacitance parameter data according to the target baseline parameter and the actual parameter information.

[0070] Specifically, the above baseline parameters are used to reflect the dynamic change characteristics of the actual parameter information and can be selected and set according to the actual situation. In actual applications, it is usually necessary to determine the target state node based on the dynamic change characteristics of the capacitance parameter data to be detected. At this time, the dynamic change characteristics of the capacitance parameter data to be detected can be determined based on the difference between the preset baseline parameters and the actual parameter information. Further, the above baseline parameters can be adjusted according to the above baseline adjustment instruction. It can independently judge whether it is necessary to adjust the baseline parameters correspondingly according to the actual change information of the actual parameter information in the time dimension, that is, the dynamic change characteristics in the above text, or can complete the automatic adjustment of the baseline parameters. Among them, the baseline adjustment instruction is automatically generated according to the change result of the actual parameter information. Further, if it is necessary to adjust the baseline parameters, the capacitance parameter data to be detected is obtained according to the difference between the adjusted target baseline parameter and the actual parameter information. Through the above method, the accuracy rate of state detection can be further improved, and the wrong detection result caused by the interference information in the capacitance parameter data to be detected can be avoided.

[0071] In one embodiment, the above method further includes:

[0072] Obtain the target change information corresponding to the target capacitance parameter data in the time dimension, and the time data corresponding to the target change information;

[0073] When the time data is greater than or equal to the preset time threshold and the target change information is less than the parameter threshold data corresponding in the capacitance threshold table, obtain the abnormal state node from the state nodes; wherein, the target capacitance state node includes the abnormal state node;

[0074] Based on the abnormal state node, obtain the capacitance state detection result for the capacitance parameter data to be detected.

[0075] Specifically, the above-mentioned target change information reflects the final change result of the target capacitance parameter data over a period of time, that is, the target capacitance parameter data includes the target change information. In addition to determining whether the target state node's determination criterion is met based on the target capacitance parameter data, it is also necessary to combine the time data consumed before the target capacitance parameter data meets the target state node to comprehensively determine whether the determination condition of the target state node is satisfied. Those skilled in the art can understand that when a finger touches a button, there will be an obvious mutation in the capacitance, and the capacitance value increases rapidly. When the capacitance value is greater than the preset maximum value, it is determined that a finger touches the button, and the touch button is triggered accordingly. It should be noted that when the ambient temperature increases, the capacitance value will also increase, but the amplitude of the capacitance value change caused by the finger touching the button is smaller, that is, the increase in the capacitance value caused by the increase in the ambient temperature has a slower change speed. If the time data of the target capacitance parameter data is not limited, it may occur that the capacitance value finally exceeds the preset maximum value due to the continuous increase in temperature, and at this time, there will be a false trigger of the touch button. In this application, the time data is restricted. When it is detected that the capacitance climbing duration is greater than the preset time threshold, it is determined that the capacitance climbing is caused by the change in the ambient temperature, and this state node is determined to be an abnormal state node, that is, the target state node is this abnormal state node at this time, thus avoiding the false trigger of the touch button. Further, the above abnormal state node can be a state node preset by a technician, or can be set to jump back to the historical state node before the current state node conforms, that is, the historical state node is the above abnormal state node at this time, and this abnormal state node still belongs to the above state node. Through the above method, combined with the limitation of the time data threshold, the accuracy of state detection is further improved. Furthermore, those skilled in the art can set the time threshold according to the actual application scenario, so that the detection method is applicable to a wider range of application scenarios such as high temperature.

[0076] In one embodiment, the capacitance state node includes a current state node. Determining a target capacitance state node from all capacitance state nodes includes:

[0077] Obtaining a capacitance state chain model based on at least one capacitance state node;

[0078] Obtaining an initial detection result based on the comparison result between the target capacitance parameter data and the capacitance threshold table corresponding to the current state node;

[0079] Obtaining the historical state node corresponding to the current state node according to the capacitance state chain model, and combining the historical parameter data corresponding to the historical state node and the initial detection result to obtain the target capacitance state node.

[0080] Specifically, the above state chain model is composed of multiple capacitance state nodes and the connection relationships between the capacitance state nodes. The segmentation and connection relationships of the state nodes are pre-established by technicians according to the actual application scenarios. When determining the target state node, it can be determined uniformly by combining the historical parameter data corresponding to the historical state nodes, or when multiple initial state nodes are screened out based on the parameter data corresponding to the current node, the target state node can be determined from the initial state nodes based on the historical parameter data corresponding to the historical state nodes. Through the above method, the historical parameter data collected in the past is combined to confirm the target state node, improving the accuracy of state detection, and also enabling relevant technicians to more flexibly set different comparison schemes corresponding to different state nodes, further enhancing the anti-interference ability.

[0081] In one embodiment, the above method further includes:

[0082] Obtaining a capacitance state chain model based on at least one capacitance state node;

[0083] Comparison step: Comparing the obtained first capacitance parameter data to be detected with all capacitance threshold tables corresponding to all capacitance state nodes, determining the first capacitance state node from the capacitance state nodes, and jumping to the first capacitance state node;

[0084] Detection step: When it is detected that the state of the capacitance key touch event is at the first capacitance state node, obtaining the second capacitance parameter data to be detected at the next moment, and comparing the second capacitance parameter data to be detected with all the first initial capacitance threshold tables, and determining the second capacitance state node and jumping according to the comparison result; wherein, the first capacitance state node corresponds to at least one first initial state node, and the first initial state node corresponds to the first initial capacitance threshold table;

[0085] When it is detected that the state of the capacitance key touch event is at the second capacitance state node, obtaining the third capacitance parameter data to be detected at the next moment, repeating the comparison step and the detection step until all the capacitance parameter data to be detected are traversed, and obtaining the final capacitance state detection result corresponding to the capacitance parameter data to be detected; wherein, the capacitance state chain model includes the first capacitance state node and the second capacitance state node.

[0086] Specifically, the above capacitance state chain model is composed of multiple capacitance state nodes, and the multiple capacitance state nodes are arranged in a manner preset by the user. After obtaining the first capacitance parameter data to be detected, the first capacitance parameter data to be detected is compared with all capacitance threshold tables, where the first capacitance parameter data to be detected is the data obtained at the current moment, and the first capacitance parameter data to be detected includes various data, such as the capacitance value size, the capacitance value change rate of the time period parameter, and so on. After the comparison is completed, the first capacitance state node is determined according to the comparison result and the jump is made to the first capacitance state node. It can be understood that jumping to the first capacitance state node means that the state of the current capacitance button touch event is the state represented by the first capacitance state node.

[0087] When the state of the capacitance button touch time is at the first capacitance state node, the second capacitance parameter data to be detected at the next moment is obtained, and the second capacitance parameter data to be detected is compared with the first initial capacitance threshold table, so as to determine the second capacitance state node and make a jump. It can be understood that the first capacitance state node is generally connected to at least one jumpable node, and the jumpable node is the above-mentioned first initial state node, and the first initial capacitance threshold table is the threshold table corresponding to all the first initial state nodes. Thus, the second capacitance state node corresponding to the second capacitance parameter data to be detected is screened out through the first initial capacitance threshold table and the jump is made to this node. Repeat the above steps until all the capacitance parameter data to be detected is traversed to obtain the final capacitance state detection result. It can be understood that the final capacitance state detection result includes but is not limited to which state node the state of the capacitance button touch event finally falls on, and the nodes that the capacitance button touch event has jumped through historically; the state of the capacitance parameter data to be detected at the last moment can be obtained through the finally reached state node, and the working condition of the capacitance touch button can be better reviewed and analyzed through the historically jumped nodes. Further, additional information, such as the working environment of the capacitance touch button and the user's touch button habit, can also be analyzed by synthesizing multiple historically jumped nodes.

[0088] Through the above method, real-time determination and jump can be made according to the obtained parameter data, so that the working efficiency of the capacitance touch button can be higher. Moreover, a large amount of parameter data within a certain period of historical time can also be obtained. By reviewing the jump process of the state nodes according to the historical parameter data, the historical working condition of the capacitance button can be better analyzed, and the application of the capacitance state chain model is also made more flexible.

[0089] In one embodiment, the above method further includes:

[0090] When the state of the capacitance button touch event is at the normal state node, the first standard parameter data at the current moment is compared with all the first standard capacitance threshold tables, and the lift state node is determined and jumped based on the comparison result;

[0091] When the state of the detected capacitive button touch event is at the lifting state node, obtain the second standard parameter data at the next moment, compare the second standard parameter data with all second standard capacitance threshold tables, and determine the high-level lifting state node and jump according to the comparison result;

[0092] When the state of the detected capacitive button touch event is at the high-level lifting state node, obtain the third standard parameter data at the next moment, compare the third standard parameter data with all third standard capacitance threshold tables, and determine the button trigger state node and jump according to the comparison result;

[0093] Based on the button trigger state node, obtain the capacitance standard state detection result corresponding to the capacitance parameter data to be detected.

[0094] Specifically, as Figure 3 is a schematic diagram of the capacitance value change when touching a capacitive button in an embodiment. When the state of the capacitive button touch event is at the normal state node, determine the lifting state node and jump based on the comparison result between the first standard parameter data and the first standard capacitance threshold table. Among them, the first standard capacitance threshold table includes the capacitance value amplitude threshold and the first time threshold, that is, when the capacitance value change amplitude in the first standard parameter data is greater than the capacitance value amplitude threshold, determine the lifting state node and jump.

[0095] Then, when the state of the capacitive button touch event is at the lifting state node, that is, the part where the capacitance value rapidly climbs, determine the high-level lifting state node and jump based on the comparison result between the second standard parameter data and the second standard capacitance threshold table; among them, the second standard capacitance threshold table includes the second time threshold and the high-level capacitance value amplitude threshold, that is, when the capacitance value change amplitude in the second standard parameter data is greater than the high-level capacitance value amplitude threshold, and the time of the amplitude change does not exceed the second time threshold, determine the high-level lifting node.

[0096] Finally, when the state of the capacitive button touch time is at the high-level lifting state node, that is, the part where the capacitance value is close to or at the maximum value, compare the third standard parameter data with the third standard capacitance threshold table, and determine the button trigger state node and jump according to the comparison result. Among them, the third standard capacitance threshold table includes the third time threshold, that is, within the third time threshold, if the capacitance value amplitude threshold is always greater than the high-level capacitance value amplitude threshold, then determine it as the button trigger state node and jump. At this time, based on the button trigger state node, it is judged that a finger touches the capacitive case at this time, that is, the capacitive button is triggered, so as to obtain the capacitance standard state detection result, that is, the capacitive button is triggered.

[0097] It is understandable that after the capacitive button is triggered, since the finger quickly leaves the button, the capacitance value will drop rapidly, corresponding to the falling state node in the figure, until it returns to the normal state node described above. Through the above method, the method of obtaining the detection result by the jump of the state node in the standard state process of finger touching the capacitive button is further refined, making the design of the state chain of finger touching the button more accurate.

[0098] This embodiment also provides a specific embodiment of a method for detecting the state of a capacitive button touch event, as Figure 4 shown Figure 4 is a schematic flow chart of a method for detecting the state of a capacitive button touch event in a preferred embodiment.

[0099] First, determine multiple capacitance state nodes according to the change of capacitance parameter data in the capacitive button touch event, and form a state chain model based on a series of capacitance state nodes. Each capacitance state node will select one or more types of parameters as the judgment basis according to the characteristics of the current capacitance state node, that is, according to one or more parameter types and the corresponding thresholds set for each parameter type, different capacitance threshold tables for each capacitance state node are formed. It is understandable that there may be multiple jump nodes for a current capacitance state node, that is, the threshold table of the current capacitance state node records the threshold conditions corresponding to multiple jump nodes.

[0100] After the above-mentioned capacitance parameter data to be detected is input into the state chain model, it is compared with the capacitance threshold table corresponding to different capacitance state nodes. If the threshold required by a target capacitance state node is met, a jump process is performed. If the thresholds of multiple initial capacitance state nodes are met at the same time, the multiple initial capacitance state nodes are screened according to the above method to obtain the target capacitance state node to be displaced and complete the jump, and / or, the event parameter data corresponding to the current state node is further compared with the supplementary threshold table corresponding to the current state node to complete the screening of the initial state node, and / or, the initial state node is screened based on the historical parameter data corresponding to the historical state node, etc., to obtain a unique target state node from multiple state nodes and jump to advance the state chain. It should be noted that when the current capacitance state node fails to meet the jump condition recorded in the capacitance threshold table of the next state node, the corresponding time data is obtained. If the time data is greater than or equal to the preset time threshold, that is, the time is in an overflow state, then jump to the abnormal state node, which still belongs to the above-mentioned capacitance state node. It should be noted that in the process of the above-mentioned capacitor state node jumping, in order to have a more accurate judgment result, the above-mentioned capacitor parameter data to be detected is obtained based on the time change information corresponding to the difference between the actual parameter information and the baseline parameter. In order to adapt to the influence of interference information in different environments on state detection, the baseline parameter will be adjusted according to the baseline adjustment instruction, so as to obtain a more accurate detection result.

[0101] Finally, as time goes by, jumps are made among multiple state nodes according to the acquired capacitance parameter data to be detected, so as to obtain accurate state detection results according to the target state node.

[0102] In the detection method described in this application, technicians only need to complete the establishment of a capacitance threshold table, calculate the jump plan, and organize the promotion relationship between multiple capacitance state nodes in the state chain model to open up the connection between each node. If a new interference model appears, there is no need to overturn the entire state chain model. Only the jump plan of the original node or the addition of a new branch node plan can be modified at the state node where the interference invades, without affecting other state nodes.

[0103] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are sequentially shown according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0104] Based on the same inventive concept, an embodiment of the present application further provides a capacitive button touch event status detection device for implementing the capacitive button touch event status detection method described above. The implementation solutions provided by this device to solve problems are similar to the implementation solutions described in the above method. Therefore, the specific limitations in one or more embodiments of the capacitive button touch event status detection device provided below can refer to the limitations on the capacitive button touch event status detection method in the above text, and will not be repeated here.

[0105] In one embodiment, as Figure 5 shown, a capacitive button touch event status detection device is provided, including: an acquisition module 51, a calculation module 52, and a generation module 53, where:

[0106] The acquisition module 51 is configured to acquire capacitance parameter data to be detected and at least one capacitance state node obtained based on a capacitive button touch event.

[0107] The calculation module 52 is configured to determine at least one target capacitance parameter data in the capacitance parameter data to be detected based on a capacitance threshold table corresponding to the capacitance state node, and determine a target capacitance state node from all capacitance state nodes according to the comparison result between the target capacitance parameter data and the capacitance threshold table.

[0108] The generation module 53 is configured to obtain a capacitance state detection result corresponding to the capacitance parameter data to be detected based on the target capacitance state node.

[0109] Specifically, the acquisition module 51 is connected to the calculation module 52. The acquisition module 51 acquires the capacitance parameter data to be detected. It can be understood that the capacitance parameter data to be detected includes the change process of the capacitance over a period of time, that is, the capacitance parameter data to be detected is generally dynamically changing. The entire event of the capacitive touch button being triggered is segmented to obtain multiple capacitance state time periods, that is, multiple capacitance state nodes are obtained. And according to the technicians, a corresponding capacitance threshold table is set for the capacitance state nodes, as well as the link jump relationship between the state nodes. One capacitance state node can have multiple jumpable nodes. After the acquisition module 51 sets multiple capacitance state nodes and the capacitance threshold table corresponding to the capacitance state nodes, the calculation module 52 compares the capacitance parameter data to be detected with the above-mentioned multiple capacitance state nodes, so as to determine the target capacitance state node. It should be noted that preferably, when performing the comparison process based on the threshold table corresponding to the current capacitance state node, usually the child needs to select some target parameter data from the multiple capacitance parameter data to be detected for the comparison process to obtain the comparison result, and determine the target capacitance state node based on the comparison result. After the calculation module 52 obtains the target capacitance state node, the generation module 53 obtains the target state detection result according to the target capacitance state node.

[0110] Through the above device, although the capacitance parameter data to be detected obtained usually has various types and corresponding multiple dynamically changing values over a period of time, when comparing for a certain state node, usually only some of the capacitance parameter data to be detected is used for comparison, so as to greatly improve the calculation efficiency of the device. And the obtained event parameter data can also be compared for other state nodes or used as a supplementary determination basis, so that while improving the calculation efficiency, the accuracy of state detection is ensured.

[0111] Each module in the above capacitive button touch event state detection device can be implemented in whole or in part by software, hardware and their combination. The above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above each module.

[0112] In one embodiment, a capacitive button touch event state determination system is provided, as Figure 6 shown, including a touch sensing device 61 and a capacitive button touch event state detection device 62. The touch sensing device 61 is used to send the event parameter data of the scene event to be detected to the capacitive button touch event state detection device 62.

[0113] Specifically, in this embodiment, it is determined whether there is a finger touching the touch sensing device 61 based on the change in capacitance value. Further, the state detection device can be independent of the touch sensing device or integrated on the touch sensing device.

[0114] In this embodiment, the above state chain model composed of multiple state nodes can exclude the influence of the vast majority of interferences in the actual application scenario and greatly improve the determination accuracy of state detection. In the above state chain model, each state node includes: state node name, capacitance threshold table required for the current state node to jump to the next state node, upper and lower limits of the threshold corresponding to different parameter types in the capacitance threshold table, name of the next state node that can be jumped to, baseline update strategy, and state node output decision. Specifically, the above event parameter data all come from the dynamic parameters of the capacitance change obtained by real-time calculation. Correspondingly, each state node will select one or more parameters from multiple event parameter data as the determination basis. A state node may have one or more capacitance threshold tables and multiple state nodes that can be jumped to, and there is a corresponding relationship between the capacitance threshold table and the state nodes that can be jumped to. In the above touch determination system, the touch process and the touch interference model are split into multiple state nodes and connected through the structure of the state chain. The advancement of the state node is executed through the determination of the parameter threshold, and in some states, the model will output a warning or trigger a prompt. According to this system, developers can complete a model with rigorous logic, strong anti-interference ability, complete feedback, and no dead loop by adapting the threshold table settings of the application.

[0115] Figure 7In an embodiment, it is the jump relationship between several common capacitance state nodes in a touch determination system. The state corresponding to state node 1 is the non-touch state, indicating that there is no obvious change in the capacitance value at this time. When the capacitance value starts to change and the capacitance change is greater than the preset threshold 1-1, two alternative initial state nodes can be selected from multiple state nodes, state node 2 with noise interference and state node 5 with capacitance climbing. At this time, further screening is performed based on the absolute differential of the capacitance change. If the absolute differential of the capacitance change is greater than the preset threshold 1-2, it is determined that the capacitance change at this time is due to noise interference, that is, state node 2. If the absolute differential of the capacitance change is less than the preset threshold 1-2, it is determined that the capacitance change at this time is capacitance climbing, that is, state node 5. The jump relationship between each state node can be deduced by analogy. It should be noted that the reasons for the capacitance change include but are not limited to environmental change 1 and environmental change 2. For the determination process of environmental change 1, it can be understood that when the capacitance value is detected to climb, it may be due to the capacitance increase caused by finger touch or environmental change 1. At this time, further based on the amplitude of the capacitance change or the relationship between the time data corresponding to the capacitance climbing node and the preset time threshold to determine whether the next jump node is environmental change 1 or conductor approach. If it is environmental change 1, in order to avoid misjudgment, the baseline corresponding capacitance change can be made to follow up slowly, so that the difference between the baseline and the obtained capacitance change does not exceed the threshold for triggering the touch sensing device, and then further judge whether it is finger touch; for environmental change 2, it is mostly detected that the capacitance value decreases. When the capacitance value is detected to decrease, the possibility of finger touch is excluded. Therefore, the baseline can be quickly followed up at this time to make the node state return to the non-touch node, preparing for the subsequent capacitance value determination.

[0116] Further, it should be noted that for the status node 7, when in contact with water, it can be understood that when multiple touch sensing devices are relatively close, it is detected that the capacitance values of multiple touch sensing devices increase simultaneously. At this time, there are two possibilities. One is that the user presses multiple touch sensing devices simultaneously, and the other is that there may be interference factors such as stains on multiple touch sensing devices, resulting in the simultaneous change of capacitance values of other sensing devices when the user only presses one sensing device, which is the above-mentioned water contact situation. At this time, as can be seen from the figure, it can be judged based on the baseline drift situation after power-on, the number of touch channels, and the similar baseline drift situations of other channels in the status node 6. Further, it is judged based on the historical change situation of the capacitance values corresponding to the above multiple sensing devices. If similar baseline drifts appear in the historical change situations of multiple touch sensing devices, it indicates that it is probably caused by environmental interference such as stains at this time. Therefore, when the capacitance values of the above multiple sensing devices increase simultaneously in a similar manner, the probability of water contact increases significantly. In summary, this system can also output warnings according to the detected different status results. For example, when jumping to the status node 2 and detecting noise interference, a noise interference warning is output; when jumping to the status node 8 and detecting conductor contact, it is determined that a touch button is normally triggered at this time, and it is determined that the button is pressed, etc.

[0117] Through the above system, it can be understood that the thresholds involved in the figure can be set by technicians according to the actual situation, and the parameter types in the threshold table can also be modified by technicians. The nodes in the figure do not represent all situations that will occur during touch determination. However, based on the above status chain model, once a new interference model appears, those skilled in the art can solve the interference problem without affecting other nodes by only modifying the original node jump scheme at the node where the interference invades or adding a new branch node scheme. It can be seen that in the solution of this application, not only can the status results of the to-be-detected scenario events at different moments be determined efficiently and accurately according to the existing event parameter data, but it is also applicable to a variety of different application scenarios. The modification of the status chain model for different application scenarios is convenient and fast, with rigorous logic and high flexibility.

[0118] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 8As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the capacitance parameter data to be detected and at least one capacitance state node obtained based on the capacitance key touch event. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a method for detecting the state of a capacitance key touch event.

[0119] Those skilled in the art can understand that Figure 8 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0120] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties.

[0121] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0122] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0123] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A method for detecting the state of a capacitive button touch event, characterized in that, The method includes: Obtaining capacitance parameter data to be detected and at least one capacitance state node obtained based on the capacitance button touch event; Determining at least one target capacitance parameter data in the capacitance parameter data to be detected based on a capacitance threshold table corresponding to the capacitance state node, and determining a target capacitance state node from all the capacitance state nodes according to a comparison result between the target capacitance parameter data and the capacitance threshold table; Obtaining a capacitance state detection result corresponding to the capacitance parameter data to be detected based on the target capacitance state node.

2. The method according to claim 1, characterized in that, The determining a target capacitance state node from all the capacitance state nodes according to the comparison result between the target capacitance parameter data and the capacitance threshold table includes: When at least two initial capacitance state nodes are obtained from the capacitance state nodes according to the comparison result, screening the initial capacitance state nodes according to node information corresponding to the capacitance state nodes to obtain the target capacitance state node.

3. The method according to claim 1, wherein The obtaining capacitance parameter data to be detected includes: Obtaining a preset baseline parameter and actual parameter information corresponding to the capacitance button touch event; Determining actual change information of the actual parameter information in a time dimension based on the actual parameter information; Obtaining a baseline adjustment instruction for the baseline parameter based on the actual change information, where the baseline parameter is adjusted according to the baseline adjustment instruction to obtain a target baseline parameter; Obtaining the capacitance parameter data to be detected according to the target baseline parameter and the actual parameter information.

4. The method according to claim 3, wherein The method further includes: Obtaining target change information corresponding to the target capacitance parameter data in a time dimension, and time data corresponding to the target change information; When the time data is greater than or equal to a preset time threshold and the target change information is less than parameter threshold data corresponding in the capacitance threshold table, obtaining an abnormal state node from the state nodes; where the target capacitance state node includes the abnormal state node; Obtaining the capacitance state detection result for the capacitance parameter data to be detected based on the abnormal state node.

5. The method according to claim 1, wherein The capacitance state node includes a current state node, and the determining a target capacitance state node from all the capacitance state nodes includes: Obtaining a capacitance state chain model based on at least one of the capacitance state nodes; Obtaining an initial detection result based on a comparison result between the target capacitance parameter data and the capacitance threshold table corresponding to the current state node; Obtaining a historical state node corresponding to the current state node according to the capacitance state chain model, and comprehensively obtaining the target capacitance state node based on historical parameter data corresponding to the historical state node and the initial detection result.

6. The method according to claim 1, characterized in that, The method further includes: Obtaining a capacitance state chain model based on at least one of the capacitance state nodes; Comparison step: Comparing first capacitance parameter data to be detected obtained with all the capacitance threshold tables corresponding to all the capacitance state nodes, determining a first capacitance state node from the capacitance state nodes, and jumping to the first capacitance state node; Detection step: When the state of the capacitive button touch event is at the first capacitive state node, obtain the second capacitance parameter data to be detected at the next moment, compare the second capacitance parameter data to be detected with all the first initial capacitance threshold tables, and determine the second capacitive state node and jump according to the comparison result; wherein, the first capacitive state node corresponds to at least one first initial state node, and the first initial state node corresponds to the first initial capacitance threshold table. When the state of the capacitive button touch event is at the second capacitive state node, obtain the third capacitance parameter data to be detected at the next moment, repeat the comparison step and the detection step until all the capacitance parameter data to be detected are traversed, and obtain the final capacitive state detection result corresponding to the capacitance parameter data to be detected; wherein, the capacitive state chain model includes the first capacitive state node and the second capacitive state node.

7. The method according to claim 6, characterized in that, The method further includes: When the state of the capacitive button touch event is at the normal state node, compare the first standard parameter data at the current moment with all the first standard capacitance threshold tables, and determine the lift state node and jump based on the comparison result. When it is detected that the state of the capacitive button touch event is at the lift state node, obtain the second standard parameter data at the next moment, compare the second standard parameter data with all the second standard capacitance threshold tables, and determine the high lift state node and jump according to the comparison result. When it is detected that the state of the capacitive button touch event is at the high lift state node, obtain the third standard parameter data at the next moment, compare the third standard parameter data with all the third standard capacitance threshold tables, and determine the button trigger state node and jump according to the comparison result. Based on the button trigger state node, obtain the capacitive standard state detection result corresponding to the capacitance parameter data to be detected.

8. A capacitive button touch event state detection device, characterized in that, The device includes: An acquisition module, configured to acquire capacitance parameter data to be detected and at least one capacitive state node obtained based on the capacitive button touch event. A calculation module, configured to determine at least one target capacitance parameter data in the capacitance parameter data to be detected based on the capacitance threshold table corresponding to the capacitive state node, and determine the target capacitive state node from all the capacitive state nodes according to the comparison result between the target capacitance parameter data and the capacitance threshold table. A generation module, configured to obtain the capacitive state detection result corresponding to the capacitance parameter data to be detected based on the target capacitive state node.

9. A capacitance key touch event state detection system, characterized in that, The system includes a touch sensing device and the capacitive button touch event state detection device as described in claim 8; wherein, the touch sensing device is configured to send the capacitance parameter data to be detected to the capacitive button touch event state detection device.

10. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.