Touch key detection method and device, storage medium and electronic equipment

By calculating the capacitance change of the capacitive touch button, the problem of false response caused by voltage fluctuation is solved, and more accurate touch detection is achieved.

CN120653139APending Publication Date: 2025-09-16GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410291018.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Capacitive touch buttons are prone to false responses when voltage fluctuates, affecting the user experience.

Method used

By obtaining the first capacitance value of each touch button and the second capacitance value after a first preset time interval, the capacitance change is calculated and compared with the preset threshold to determine the number of touch buttons whose capacitance change value is greater than the threshold. If the number reaches the preset threshold, it is determined to be a non-touch operation and the control button does not respond.

Benefits of technology

It effectively avoids false responses of touch buttons and improves detection accuracy and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120653139A_ABST
    Figure CN120653139A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a touch key detection method and device, a storage medium and electronic equipment. The method comprises the steps of obtaining a first capacitance value of each touch key and a second capacitance value of each touch key after a first preset duration; according to the first capacitance value and the second capacitance value, determining the number of first touch keys of which the capacitance change values are greater than a first preset capacitance threshold value; if the number of the first touch keys is larger than or equal to the first preset number threshold value, the non-touch operation of the touch keys is determined, the touch keys are controlled not to respond, and error response of the touch keys is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of touch button technology, and in particular to a touch button detection method, a touch button detection method, a touch button detection method, a device, a storage medium, and an electronic device. Background Art

[0002] Touch buttons include resistive touch buttons and capacitive touch buttons. Capacitive touch buttons do not require direct human contact with the metal used to detect a press, and are therefore more secure and widely used in electronic devices.

[0003] For capacitive touch buttons, when a person's finger approaches the capacitive touch button, the detection signal (such as the capacitance signal) generated by the metal detecting the capacitive touch button being pressed will change. The electronic device can determine whether the capacitive touch button is pressed by the user based on the change in the detection signal.

[0004] However, when the voltage of the touch device fluctuates, the capacitance of each touch key will also change, thereby causing erroneous responses of the touch keys. Summary of the Invention

[0005] In order to overcome the problems existing in the related art, the present application provides a touch button detection method, device, storage medium and electronic device, which can avoid false response of touch buttons of touch devices.

[0006] According to a first aspect of an embodiment of the present application, a touch key detection method is provided, which is applied to a touch device; the touch device includes a plurality of touch keys, and the method includes the following steps:

[0007] Acquire a first capacitance value of each touch key and a second capacitance value of each touch key after a first preset time interval;

[0008] Determining the number of first touch keys whose capacitance change values ​​are greater than a first preset capacitance threshold according to the first capacitance value and the second capacitance value;

[0009] If the number of the first touch keys is greater than or equal to a first preset threshold, it is determined to be a non-touch operation of the touch keys, and the touch keys are controlled to be unresponsive.

[0010] According to a second aspect of an embodiment of the present application, a touch key detection device is provided, comprising:

[0011] A first capacitance value acquisition module is used to acquire a first capacitance value of each touch key and a second capacitance value of each touch key after a first preset time interval;

[0012] a first touch key quantity determination module, configured to determine the number of first touch keys having capacitance change values ​​greater than a first preset capacitance threshold value based on the first capacitance value and the second capacitance value;

[0013] The key touch operation determination module is configured to determine a non-touch operation of the touch key if the number of the first touch keys is greater than or equal to a first preset number threshold, and control the touch key to be non-responsive.

[0014] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a display, a processor and a memory; the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method of the first aspect.

[0015] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

[0016] The embodiment of the present application obtains the first capacitance value of each touch key and the second capacitance value of each touch key after a first preset time interval; based on the first capacitance value and the second capacitance value, determines the number of first touch keys whose capacitance change value is greater than the first preset capacitance threshold; if the number of first touch keys is greater than or equal to the first preset number threshold, it is determined to be a non-touch operation of the touch key, and the touch key is controlled to be unresponsive. The present application calculates the capacitance change between the first capacitance value and the second capacitance value, compares the capacitance change with the first preset capacitance threshold, determines the number of first touch keys whose capacitance change value is greater than the first preset capacitance threshold, compares the first touch keys with the first preset number threshold to determine whether the touch key is touched, and when the touch key is not touched, controls the touch key to be unresponsive, thereby avoiding erroneous responses of each touch key.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0018] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flow chart of a touch key detection method according to an embodiment of the present application;

[0020] Figure 2 This is a schematic block diagram of the structure of a touch key detection device according to one embodiment of the present application;

[0021] Figure 3 This is a schematic block diagram of the structure of an electronic device shown in one embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

[0023] It should be clear that the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the embodiments of the present application.

[0024] When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of this application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include the plural forms, unless the context clearly indicates other meanings. The words "if" / "if" used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0025] In addition, in this application, unless otherwise specified, "plurality" refers to two or more. "And / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0026] The application environment of the touch key detection method provided in the embodiment of the present application includes a touch key detection device.

[0027] The touch key detection method provided in the embodiments of the present application can be executed by a touch device. The touch device can be implemented through software and / or hardware. The touch device can be composed of two or more physical entities or a single physical entity. The touch device can be any electronic device that has a touch key detection application installed. The electronic device can be a smart device such as a computer, a mobile phone, or an interactive tablet.

[0028] The touch key detection method of the embodiments of the present application can be applied to touch devices, and more specifically, to touch key detection scenarios on capacitive touch devices. During the implementation of the present invention, the inventors discovered that when a touch key is pressed, the capacitance value of the touch key is detected to change. When the capacitance value exceeds a set touch threshold relative to a touch response reference value, the touch key is determined to be pressed, and a corresponding key response is generated.

[0029] However, when the voltage fluctuation of the touch device is large and the touch threshold of the touch button is small, the voltage fluctuation will cause the capacitance value of the touch button to change. It is possible that the changed capacitance value will exceed the set touch threshold relative to the touch response reference value. At this time, some touch buttons will respond directly, resulting in incorrect response of the touch buttons, and other touch buttons cannot respond because this touch button is occupied, resulting in poor user experience and complaints and repairs.

[0030] To this end, the present application calculates the capacitance change between the first capacitance value and the second capacitance value, compares the capacitance change with the first preset capacitance threshold, determines the number of first touch keys whose capacitance change value is greater than the first preset capacitance threshold, and compares the number of first touch keys with the first preset number threshold to determine whether the touch key is touched. When the touch key is not touched, the touch key is controlled not to respond, thereby avoiding erroneous responses of individual touch keys.

[0031] Based on this, the present application proposes a touch key detection method, device, storage medium and electronic device.

[0032] See also Figure 1 The present invention provides a touch key detection method for a touch device. The touch device includes a plurality of touch keys, and the method includes the following steps:

[0033] S10: Acquire a first capacitance value of each touch key and a second capacitance value of each touch key after a first preset time interval.

[0034] The touch device may be an interactive tablet, a mobile phone, smart glasses, or a home appliance, etc. The touch device includes a plurality of touch buttons, which are used to implement the interaction function between the user and the touch device.

[0035] The first capacitance value may be the capacitance value of each touch key detected at a certain moment after the touch device is powered on. The second capacitance value may be the capacitance value of each touch key detected after a first preset time interval after obtaining the first capacitance value. The first preset time interval can be set manually as needed. For example, the first preset time interval is 20ms.

[0036] In an embodiment of the present application, after the touch device is powered on, it scans and detects each touch key to obtain a first capacitance value for each touch key. After a first preset time interval, it scans and detects each touch key again to obtain a second capacitance value for each touch key. Specifically, at time t1, the touch device obtains the first capacitance value for each touch key. At time t2, the touch device obtains the second capacitance value for each touch key, where t2 - t1 = T1, where T1 is the first preset time interval.

[0037] S20: Determine the number of first touch keys having capacitance change values ​​greater than a first preset capacitance threshold according to the first capacitance value and the second capacitance value.

[0038] The first preset capacitance threshold can be set manually according to needs.

[0039] In an embodiment of the present application, after obtaining the first capacitance value and the second capacitance value of each touch key, the touch device calculates the difference between the first capacitance value and the second capacitance value of each touch key to obtain a capacitance change value for each touch key. The capacitance change value of each touch key is compared with a first preset capacitance threshold to determine which touch keys have capacitance change values ​​greater than the first preset capacitance threshold. The number of touch keys having capacitance change values ​​greater than the first preset capacitance threshold is counted to obtain a first touch key count.

[0040] S30: If the number of the first touch keys is greater than or equal to a first preset threshold, it is determined to be a non-touch operation of the touch keys, and the touch keys are controlled to be unresponsive.

[0041] The first preset quantity threshold can be set manually according to needs. Specifically, the first preset quantity threshold can be a preset ratio of the total number of touch keys.

[0042] The touch response reference value may be a reference capacitance value of a touch key in a non-touch state after the touch device is powered on.

[0043] In the embodiment of the present application, the number of the first touch keys is compared with a first preset threshold. If the number of the first touch keys is greater than or equal to the first preset threshold, it is determined that voltage fluctuations exist on the touch device. In this case, the touch keys on the touch device are not touched, and the touch keys are controlled to be unresponsive. If the number of the first touch keys is less than the first preset threshold, it is determined that voltage fluctuations do not exist on the touch device, and the touch keys are controlled to respond normally.

[0044] In the embodiment of the present application, the first capacitance value of each touch key and the second capacitance value of each touch key after a first preset time interval are obtained; based on the first capacitance value and the second capacitance value, the number of first touch keys whose capacitance change value is greater than a first preset capacitance threshold is determined; if the number of first touch keys is greater than or equal to the first preset number threshold, the touch response reference value of each touch key is updated. The present application calculates the capacitance change between the first capacitance value and the second capacitance value, compares the capacitance change with the first preset capacitance threshold, determines the number of first touch keys whose capacitance change value is greater than the first preset capacitance threshold, and compares the number of first touch keys with the first preset number threshold to determine whether the touch key is touched. When the touch key is not touched, the touch key is controlled not to respond, thereby avoiding false responses of each touch key.

[0045] In an optional embodiment, after step S30, step S31 is included, which is specifically as follows:

[0046] S31: updating the touch response reference value of each touch key.

[0047] In the embodiment of the present application, after it is determined that the touch device has voltage fluctuations, the touch response reference value of each touch key is updated according to a preset reference value update algorithm.

[0048] By updating the touch response reference value of each touch button, it is ensured that touch detection failure will not occur in the case of voltage fluctuation.

[0049] In an optional embodiment, step S31 includes steps S311 to S312, which are specifically as follows:

[0050] S311: Acquire the initial value of the touch response reference value of each touch key.

[0051] In the embodiment of the present application, the initial value of the touch response reference value can be pre-set, or it can be the average value of the capacitance values ​​of each touch key detected multiple times after the touch device is powered on, and the capacitance values ​​of each touch key are detected last time.

[0052] S312: updating the touch response reference value of each touch key according to the capacitance change corresponding to each touch key and the initial value of the touch response reference value.

[0053] Due to voltage fluctuations, the capacitance change of the touch key will increase, and the capacitance value of the touch key may exceed the preset touch threshold relative to the initial touch response reference value. Therefore, the touch response reference value needs to be increased.

[0054] In the embodiment of the present application, the touch response reference value to be increased can be determined based on the capacitance change corresponding to each touch key. Based on the initial value of the touch response reference value, the to-be-increased amount is increased to obtain an updated touch response reference value.

[0055] The touch response reference value of each touch key can be updated according to the capacitance change and the initial value of the touch response reference value.

[0056] In an optional embodiment, step S311 includes steps S3111 to S3112, which are specifically as follows:

[0057] S3111: After the touch device is powered on, the capacitance value of each touch button is obtained.

[0058] In the embodiment of the present application, after the touch device is powered on, each touch key may be scanned and detected once or multiple times to obtain the capacitance value of each touch key.

[0059] S3112: Taking the average value of the capacitance values ​​of the touch keys as the initial value of the touch response reference value of the touch keys.

[0060] In the embodiment of the present application, the average capacitance value of each touch key detected in a certain scan can be calculated and used as the initial value of the touch response reference value of each touch key. Alternatively, the average capacitance value of each touch key detected in the last scan can be calculated and used as the initial value of the touch response reference value of each touch key.

[0061] The initial value of the touch response reference value of each touch key can be determined by the capacitance value of each touch key after the touch device is powered on.

[0062] In an optional embodiment, step S312 includes steps S3121 to S3122, which are specifically as follows:

[0063] S3121: Calculate the average value of the capacitance change corresponding to each touch key.

[0064] In the embodiment of the present application, after obtaining the capacitance change corresponding to each touch key, the capacitance change corresponding to each touch key is summed to obtain a summed result. The summed result is divided by the total number of touch keys to obtain an average capacitance change corresponding to each touch key.

[0065] S3122: Taking the sum of the average value and the initial value of the touch response reference value as the updated touch response reference value of each touch key.

[0066] In the embodiment of the present application, after obtaining the initial value of the touch response reference value, the initial value of the touch response reference value is added to the average value of the capacitance change to obtain the updated touch response reference value of each touch key.

[0067] The updated touch response reference value of each touch key can be determined by using the average value of the capacitance change corresponding to each touch key and the initial value of the touch response reference value.

[0068] In an optional embodiment, the touch key detection method further includes steps S40 to S60, which are specifically as follows:

[0069] S40: If the number of the first touch keys is less than a first preset number threshold, obtain a third capacitance value of each touch key at an interval of a second preset time length; wherein the second preset time length is greater than the first preset time length.

[0070] The second preset time length can be set manually according to needs. For example, the second preset time length is 100ms.

[0071] Considering that voltage fluctuations cause the capacitance of each touch key to change at different speeds, it is possible that the capacitance change is completed in a relatively short period of time, i.e., the voltage fluctuation causes the capacitance to increase instantly. Alternatively, the capacitance change is completed in a relatively long period of time, i.e., the voltage fluctuation causes the capacitance to increase slowly.

[0072] In an embodiment of the present application, if the number of first touch keys is less than the first preset threshold, it may be because voltage fluctuations cause the capacitance of each touch key to slowly increase, and the time for the capacitance value change is greater than the first preset duration. As a result, the number of first touch keys whose capacitance value changes by more than the first preset capacitance threshold is less than the first preset threshold. Therefore, the touch device obtains the third capacitance value of each touch key at intervals of the second preset duration. Specifically, at time t2, the touch device obtains the second capacitance value of each touch key, and at time t3, the touch device obtains the third capacitance value of each touch key. t3 - t2 = T2, where T2 is the second preset duration.

[0073] S50: Determine the number of second touch keys having capacitance change values ​​greater than a second preset capacitance threshold according to the first capacitance value and the third capacitance value.

[0074] The second preset capacitance threshold can be set manually according to needs.

[0075] In an embodiment of the present application, after obtaining the first capacitance value and the third capacitance value of each touch key, the touch device calculates the difference between the first capacitance value and the third capacitance value of each touch key to obtain a capacitance change value for each touch key. The capacitance change value of each touch key is compared with a second preset capacitance threshold to determine which touch keys have capacitance change values ​​greater than the second preset capacitance threshold. The number of touch keys having capacitance change values ​​greater than the second preset capacitance threshold is counted to obtain a second number of touch keys.

[0076] S60: If the number of the second touch keys is greater than or equal to the second preset number threshold, update the touch response reference value of each touch key.

[0077] The second preset quantity threshold can be set manually according to the requirements. Specifically, the second preset quantity threshold can be a preset ratio of the total number of touch keys.

[0078] In this embodiment of the present application, the number of the second touch keys is compared with a second preset threshold. If the number of the second touch keys is greater than or equal to the second preset threshold, it is determined that voltage fluctuations exist in the touch device, and the touch response reference value of each touch key is updated according to a preset reference value update algorithm. If the number of the second touch keys is less than the second preset threshold, steps S10 to S50 are repeated.

[0079] By calculating the capacitance change between the first capacitance value and the third capacitance value, comparing the capacitance change with a second preset capacitance threshold, determining the number of second touch keys whose capacitance change value is greater than the second preset capacitance threshold, and comparing the number of second touch keys with the second preset number threshold, the touch response baseline value of each touch key is updated, thereby avoiding erroneous responses of each touch key.

[0080] In an optional embodiment, the touch key detection method includes steps S70 to S80, which are specifically as follows:

[0081] S70: After the touch response reference value of each touch key is updated, obtaining a fourth capacitance value of each touch key;

[0082] S80: If the difference between the fourth capacitance value and the updated touch response reference value is greater than or equal to the preset touch threshold, determine that it is a key touch operation.

[0083] The fourth capacitance value is the capacitance value of each touch key detected in real time by the touch device. The preset touch threshold value can be set manually according to needs.

[0084] In an embodiment of the present application, the touch device calculates the difference between the fourth capacitance value of each touch button and the updated touch response reference value, and compares the difference with the preset touch threshold. If one or more differences are greater than or equal to the preset touch threshold, it can be determined that a button touch operation exists.

[0085] By updating the touch response reference value of each touch key, erroneous response of the touch key caused by voltage fluctuation can be avoided, thereby improving the detection accuracy of the touch key.

[0086] Optionally, after the key touch operation ends, the touch device continues to execute the touch key detection method to update the touch response reference value of each touch key, thereby avoiding erroneous touch key response caused by voltage fluctuation.

[0087] This application also provides a device embodiment that can be used to implement the content of the touch key detection method in the embodiment of this application. For details not disclosed in the device embodiment of this application, please refer to the content of the touch key detection method in the embodiment of this application.

[0088] See also Figure 2 , the embodiment of the present application provides a touch key detection device 9, comprising:

[0089] A first capacitance value acquisition module 91 is configured to acquire a first capacitance value of each touch key and a second capacitance value of each touch key after a first preset time interval;

[0090] A first touch key quantity determination module 92 is configured to determine the number of first touch keys having capacitance change values ​​greater than a first preset capacitance threshold value based on the first capacitance value and the second capacitance value;

[0091] The key touch operation determining module 93 is configured to determine a non-touch operation of the touch key if the number of the first touch keys is greater than or equal to a first preset number threshold, and control the touch key to be non-responsive.

[0092] The touch key detection device provided in the above embodiment and the touch key detection method provided in the embodiment of the present application have the same concept. For details on the implementation process, please refer to steps S10 to S30 of the method embodiment, which will not be described again here.

[0093] This application also provides a device embodiment that can be used to implement the content of the touch key detection method in the embodiment of this application. For details not disclosed in the device embodiment of this application, please refer to the touch key detection method or the content of the touch key detection method in the embodiment of this application.

[0094] See also Figure 3The present application further provides an electronic device 300, which can be a computer, a touch key detection device, etc. In an exemplary embodiment of the present application, the electronic device 300 is a touch key detection device, which includes: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, a user interface 304, and at least one communication bus 305.

[0095] The user interface 304 is mainly used to provide an input interface for the user and obtain data input by the user. Optionally, the user interface can also include a standard wired interface or a wireless interface.

[0096] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0097] The communication bus 305 is used to realize the connection and communication between these components.

[0098] Among them, the processor 301 may include one or more processing cores. The processor uses various interfaces and lines to connect the various parts of the entire electronic device, and performs various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor can be implemented in the form of at least one hardware of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed by the display layer; and the modem is used to handle wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor and may be implemented separately through a chip.

[0099] Among them, the memory 302 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, codes, code sets or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory may also be at least one storage device located away from the aforementioned processor. The memory as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application.

[0100] The processor can be used to call the application of the touch key detection method of the touch key detection device stored in the memory, and specifically execute the method steps of the above-mentioned embodiment. The specific execution process can be referred to the specific description shown in the method embodiment, which will not be repeated here.

[0101] This application also provides a computer-readable storage medium storing a computer program, which contains instructions suitable for being loaded by a processor and executing the method steps of the above-described embodiments. The specific execution process can be referred to the specific description of the embodiments and is not described here. The device containing the storage medium can be a personal computer, laptop computer, smartphone, tablet computer, abnormal power consumption detection device, or other electronic device.

[0102] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separated, and the parts shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0103] Those skilled in the art will appreciate that the embodiments of the present application can provide methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function selected in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 function selected in a box or multiple boxes.

[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 steps for the function selected in a box or multiple boxes.

[0106] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0107] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0108] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0109] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0110] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A touch key detection method, characterized in that: Applied to a touch device; the touch device includes a plurality of touch buttons, and the method includes the following steps: Acquire a first capacitance value of each of the touch keys and a second capacitance value of each of the touch keys after a first preset time interval; Determining the number of first touch keys whose capacitance change values ​​are greater than a first preset capacitance threshold according to the first capacitance value and the second capacitance value; If the number of the first touch keys is greater than or equal to a first preset threshold, it is determined to be a non-touch operation of the touch key, and the touch key is controlled to be unresponsive.

2. The touch key detection method according to claim 1, wherein: If the number of the first touch keys is greater than or equal to a first preset threshold, determining that the operation is a non-touch operation of the touch keys, and controlling the touch keys to be unresponsive, the method further includes: Update the touch response reference value of each touch key.

3. The touch key detection method according to claim 2, wherein: The step of updating the touch response reference value of each touch key includes: Obtaining an initial value of a touch response reference value of each of the touch keys; The touch response reference value of each touch key is updated according to the capacitance change corresponding to each touch key and the initial value of the touch response reference value.

4. The touch key detection method according to claim 3, wherein: The step of updating the touch response reference value of each touch key according to the capacitance change corresponding to each touch key and the initial value of the touch response reference value includes: Calculating an average value of capacitance changes corresponding to each of the touch keys; The sum of the average value and the initial value of the touch response reference value is used as the updated touch response reference value of each touch key.

5. The touch key detection method according to claim 3, wherein: The step of obtaining the initial value of the touch response reference value of each touch key includes: After the touch device is powered on, obtaining the capacitance value of each touch button; An average value of the capacitance values ​​of the touch keys is used as an initial value of the touch response reference value of the touch keys.

6. The touch key detection method according to any one of claims 1 to 5, characterized in that: Also includes: If the number of the first touch keys is less than the first preset number threshold, obtaining a third capacitance value of each of the touch keys at intervals of a second preset time length; wherein the second preset time length is greater than the first preset time length; Determining the number of second touch keys whose capacitance change values ​​are greater than a second preset capacitance threshold according to the first capacitance value and the third capacitance value; If the number of the second touch keys is greater than or equal to a second preset threshold, the touch response reference value of each of the touch keys is updated.

7. The touch key detection method according to any one of claims 2 to 5, characterized in that: Also includes: After the touch response reference value of each touch key is updated, obtaining a fourth capacitance value of each touch key; If the difference between the fourth capacitance value and the updated touch response reference value is greater than or equal to the preset touch threshold, it is determined to be a key touch operation.

8. A touch key detection device, characterized in that: include: A first capacitance value acquisition module is used to acquire a first capacitance value of each touch key and a second capacitance value of each touch key after a first preset time interval; a first touch key quantity determination module, configured to determine the number of first touch keys having a capacitance change value greater than a first preset capacitance threshold value based on the first capacitance value and the second capacitance value; The key touch operation determining module is configured to determine that the operation is a non-touch operation of the touch key if the number of the first touch keys is greater than or equal to a first preset number threshold, and control the touch key to be non-responsive.

9. An electronic device comprising a display, a processor, and a memory; characterized in that: The memory stores a computer program, which is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Reference updating method of touch detection terminal capable of removing large-scale interference and system

    CN102722286A

  • Temperature compensation method and temperature compensation device for touch key

    CN105373253A

  • Reference voltage updating method, MCU, touch device and storage medium

    CN110798193A