Touch sensitivity adjustment method, device and electronic device for touch button

By determining the charging and discharging operating frequency and calculating touch parameters in the touch button, the problems of poor stability and inconsistent sensitivity of touch buttons in the prior art are solved, and a more stable and reliable touch effect is achieved, adapting to diverse terminals Product requirements.

CN118590047BActive Publication Date: 2024-12-31SHENZHEN SINONE CHIP ELECTRONIC CO. LTD.
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411071088.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-12-31
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

The existing touch buttons have poor stability and reliability, are greatly affected by the environment, are not strong in expansion compatibility, and are complex and time-consuming to debug touch parameters and touch effects, resulting in inconsistent sensitivity and easy to trigger incorrectly.

Method used

By determining the charging and discharging operating frequency, the parasitic capacitances of each sensing channel of the touch button are in a stable state, and the touch parameters and touch capacitor threshold are calculated and configured as sensitivity parameters to automatically adapt to environmental changes and the needs of different users.

Benefits of technology

It realizes the stability and reliability of touch effects, adapts to panels of different thicknesses and materials, adapts to touch media of different sizes and shapes, meets the needs of diverse terminal products, and reduces the problems of false triggering and inconsistent sensitivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590047B_ABST
    Figure CN118590047B_ABST
Patent Text Reader

Abstract

The present invention provides a touch sensitivity adjustment method, device and electronic device for a touch key, wherein the adjustment method comprises: determining a charge and discharge operating frequency, wherein the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state; calculating the touch parameter K of each sensing channel of the touch key x , K x =A 1 / Cp x , where A 1 is a constant, x =1,2,3,...,n,Cp x is the parasitic capacitance of each sensing channel; calculate the touch capacitance threshold DIFF of each sensing channel of the touch button x , DIFF x =(A 2 / A 1 )*Cp x *C x / (C x +Cp x ), where DIFF x is the touch capacitance threshold, C x is the touch capacitance of each sensing channel, A 2 Is a constant; save each touch capacitance threshold DIFF x , with each touch capacitance threshold DIFF x As the sensitivity parameter of each sensing channel of the touch button, the present invention can automatically adapt to environmental changes, including panels of different thicknesses and materials, and touch media of different sizes and shapes, making the touch effect more stable and reliable, and meeting the needs of diverse terminal products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention mainly relates to the field of touch technology, and in particular to a touch sensitivity adjustment method, device and electronic equipment for a touch button. Background Art

[0002] With the diversification and intelligence of electrical appliances, more and more electrical appliances need to be equipped with touch buttons. The application occasions and environments of different electrical appliances are also different. The existing touch technology is greatly affected by the environment, has poor consistency, and is easy to trigger by mistake or difficult to trigger. In addition, different users' touch (touch media) will also produce different touch situations, making it difficult for touch buttons to meet the complex diversity and high quality requirements of products.

[0003] For example, the layout and wiring of the printed circuit board (PCB) of each touch sensing channel of the touch button will lead to different parasitic capacitance, and the consistency of the original data of touch detection is poor. At the same time, different products have touch panels of different materials and thicknesses, and touch media of different sizes and shapes. It is difficult to obtain the touch parameters of each sensing channel in the early development, and manual calibration of the touch effect of each sensing channel is also required in this development process. However, the area and position of a single touch by a human hand cannot be guaranteed to be the same, resulting in inconsistent sensitivity of each touch button, affecting the touch effect.

[0004] In addition, after the product is sold to consumers, as the product age increases, the touch panel will age, deform, and even increase the gap between the touch panel and the sensing channel. These conditions will affect the touch effect of the product and thus affect the overall product quality. In addition, changes in the external environment, such as temperature and humidity changes, EMC (Electromagnetic Compatibility) interference, and ESD (Electrostatic Discharge) interference, can cause the touch button to be triggered incorrectly or shut down in serious cases, affecting the normal use of the product.

[0005] In general, existing touch buttons have the following shortcomings: 1. Poor stability and reliability, and are greatly affected by the environment, such as changes in temperature and humidity, strong interference, etc.; 2. Poor expansion compatibility, and can only be used for fixed products - fixed hardware PCBA (Printed Circuit Board Assembly) matching fixed thickness. Once the touch hardware is replaced or aged and deformed, the touch effect will be greatly reduced; 3. The debugging process of touch parameters and touch effects is complicated and time-consuming, with poor consistency and easy to trigger by mistake. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a touch sensitivity adjustment method, device and electronic device for a touch button, which can automatically adapt to environmental changes, make the touch effect more stable and reliable, and meet the diverse needs of terminal products.

[0007] To solve the above technical problems, in a first aspect, the present invention provides a touch sensitivity adjustment method for a touch button, comprising: determining a charge and discharge operating frequency, wherein the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch button in a stable state; calculating a touch parameter Kx of each sensing channel of the touch button, Kx = A1 / Cpx, wherein A1 is a constant, x=1, 2, 3, ..., n, n is the total number of sensing channels, and Cpx is the parasitic capacitance of each sensing channel; calculating a touch capacitance threshold of each sensing channel of the touch button, DIFFx=(A2 / A1)*Cpx*Cx / (Cx+Cpx), wherein DIFFx is each touch capacitance threshold, Cx is the touch capacitance of each sensing channel, and A2 is a constant; configuring each touch capacitance threshold DIFFx, and using each touch capacitance threshold DIFFx as a sensitivity parameter of each sensing channel of the touch button.

[0008] Optionally, determining the charge and discharge operating frequency includes: scanning and detecting each sensing channel of the touch key at different charge and discharge frequencies to obtain the parasitic capacitance of each sensing channel at different charge and discharge frequencies; selecting a charge and discharge frequency as the charge and discharge operating frequency of the touch key, and the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state.

[0009] Optionally, the parasitic capacitance of each sensing channel of the touch key is in a stable state, which includes: when the charging power supply voltage of each sensing channel of the touch key is greater than 0.95 times the theoretical charging power supply voltage, the parasitic capacitance of each sensing channel of the touch key is in a stable state.

[0010] Optionally, the touch capacitance Cx of each sensing channel is an average value of touch capacitances detected multiple times.

[0011] Optionally, it also includes: detecting the touch capacitance data fluctuation of each sensing channel of the touch key when there is no sensing signal, and superimposing the touch capacitance threshold DIFFx and the touch capacitance data fluctuation of each sensing channel as the sensitivity parameter of each sensing channel of the touch key.

[0012] Optionally, it also includes: detecting the touch capacitance of each sensing channel of the touch button during operation, and if the difference between the touch capacitance and the touch capacitance reference value is greater than a first preset difference range, starting the touch sensitivity adjustment method of the touch button.

[0013] Optionally, it also includes: scanning and detecting each sensing channel of the touch button at different charge and discharge frequencies to obtain the parasitic capacitance of each sensing channel at different charge and discharge frequencies; if the difference between the parasitic capacitance value of each sensing channel of the touch button in a stable state and the parasitic capacitance reference value is greater than a second preset difference range, the touch sensitivity adjustment method of the touch button is started.

[0014] In a second aspect, the present invention provides a touch sensitivity adjustment device for a touch button, comprising: a determination module, used to determine a charge and discharge operating frequency, wherein the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch button in a stable state; a first calculation module, used to calculate a touch parameter Kx of each sensing channel of the touch button, Kx= A1 / Cpx, wherein A1 is a constant, x=1, 2, 3, ..., n, n is the total number of sensing channels, and Cpx is the parasitic capacitance of each sensing channel; a second calculation module, used to calculate a touch capacitance threshold DIFFx of each sensing channel of the touch button, DIFFx=(A2 / A1)*Cpx*Cx / (Cx+Cpx), wherein DIFFx is each touch capacitance threshold, Cx is the touch capacitance of each sensing channel, and A2 is a constant; a configuration module, used to configure each touch capacitance threshold DIFFx, and use each touch capacitance threshold DIFFx as the sensitivity parameter of each sensing channel of the touch button.

[0015] In a third aspect, the present invention provides an electronic device comprising: a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the touch sensitivity adjustment method of the touch button as described in the first aspect are implemented.

[0016] In a fourth aspect, the present invention provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the touch sensitivity adjustment method of a touch button as described in the first aspect are implemented.

[0017] Compared with the prior art, the present invention has the following advantages: first, the charge and discharge operating frequency is determined, and the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state, then the touch parameter Kx of each sensing channel of the touch key is calculated, and the touch capacitance threshold DIFFx of each sensing channel of the touch key is calculated, and finally each touch capacitance threshold DIFFx is saved, and each touch capacitance threshold DIFFx is used as the sensitivity parameter of each sensing channel of the touch key, so as to automatically adapt to environmental changes, including adapting to panels of different thicknesses and materials, and adapting to touch media of different sizes and shapes, so that the touch effect is more stable and reliable, and meets the diverse needs of terminal products. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings are included to provide a further understanding of the present application. They are included and constitute a part of the present application. The accompanying drawings illustrate embodiments of the present application and together with the present specification serve to explain the principles of the present application. In the accompanying drawings:

[0019] Figure 1 is a schematic flow chart of a method for adjusting the touch sensitivity of a touch key according to an embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of the relationship between the charging power supply voltage and the charging and discharging time in one embodiment of the present invention;

[0021] Figure 3 It is a structural schematic diagram of a touch sensitivity adjustment device for a touch key according to an embodiment of the present invention;

[0022] Figure 4 FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.

[0024] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0025] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more operations may be removed from these processes.

[0026] Figure 1 is a flow chart of a touch sensitivity adjustment method of a touch key according to an embodiment of the present invention, with reference to Figure 1 As shown, the method 100 includes:

[0027] S110, determining a charge and discharge operating frequency, wherein the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state; S120, calculating a touch parameter Kx of each sensing channel of the touch key, Kx = A1 / Cpx, wherein A1 is a constant, x=1, 2, 3, ..., n, n is the total number of sensing channels, and Cpx is the parasitic capacitance of each sensing channel; S130, calculating a touch capacitance threshold DIFFx of each sensing channel of the touch key, DIFFx=(A2 / A1)*Cpx*Cx / (Cx+Cpx), wherein DIFFx is each touch capacitance threshold, Cx is the touch capacitance of each sensing channel, and A2 is a constant; S140, configuring each touch capacitance threshold DIFFx, and using each touch capacitance threshold DIFF as a sensitivity parameter of each sensing channel of the touch key.

[0028] The parasitic capacitance of each sensing channel in the touch button will directly affect the sensitivity of the touch button. Smaller parasitic capacitance can make the touch button more sensitive to changes in touch signals, thereby improving sensitivity. On the other hand, excessive parasitic capacitance may introduce noise and interference, reducing the stability of the touch button. When designing and manufacturing touch buttons, it is necessary to measure and evaluate the parasitic capacitance, and understand the size and distribution of the parasitic capacitance through measurement and evaluation results.

[0029] For touch capacitance, the finger size and shape of each user is unique. Larger fingers may trigger touch keys more easily, especially when the key area is small or the spacing is narrow, while people with thinner fingers may have difficulty accurately touching the keys, especially when precise control is required. Different users also apply different forces to the keys. Some users tend to touch the keys with lighter force, while others may prefer to press harder. This difference may affect the trigger sensitivity and feedback effect of the keys.

[0030] In order to cope with these differences, designers and manufacturers need to consider various factors when developing touch buttons to ensure that the buttons can adapt to the needs and habits of different users, as well as to different application scenarios, including optimizing the layout, size, spacing and sensitivity of the buttons, and providing adjustable feedback effects (such as vibration, sound, etc.) to meet the preferences of different users. Touch buttons have been adapted to most situations as much as possible during factory debugging. However, the specific usage environment of the product varies, and the equipment cannot take into account all user situations when it leaves the factory. The method of this embodiment can adaptively adjust the sensitivity of the touch button according to changes in the actual situation, so that it can maintain the optimal use effect in the actual application environment.

[0031] In this embodiment, each sensing channel of the touch key is scanned and detected in turn with different charge and discharge frequencies, and the parasitic capacitance of each sensing channel at different charge and discharge frequencies can be obtained accordingly. Since the circuit parasitic capacitance of the touch key of the whole machine is constant, the capacitance charge and discharge time of each sensing channel is fixed. It can be concluded that the parasitic capacitance of the same sensing channel at different charge and discharge frequencies will show different trends. Exemplarily, as the charge and discharge time (the relationship between time and frequency F = 1 / T) increases, the calculated parasitic capacitance Cp is basically at the same value, and it is considered that the current charge and discharge time / charge and discharge frequency can completely charge and discharge the parasitic capacitance. Therefore, by selecting a suitable charge and discharge operating frequency, the parasitic capacitance of each sensing channel of the touch key can be in a stable state.

[0032] refer to Figure 2 As shown, the method of this embodiment can be explained by taking the calculation of the RC circuit time constant as an example. Assuming that a power source Vu charges the capacitor C through a resistor R, V0 is the initial voltage value of the capacitor, Vu is the voltage value of the capacitor after it is fully charged, and Vt is the voltage value on the capacitor at any time t, then the following calculation formula can be obtained:

[0033] Vt = V0 + (Vu–V0)*[1–exp (-t / RC)]

[0034] If the initial voltage on the capacitor is 0, the formula can be simplified to:

[0035] Vt = Vu *[1–exp(-t / RC)】

[0036] From the above formula, we can see that because the exponential value can only be infinitely close to 0 but will never be equal to 0, it takes infinite time to fully charge the capacitor.

[0037] When t = RC, Vt = 0.63Vu;

[0038] When t = 2RC, Vt = 0.86Vu;

[0039] When t = 3RC, Vt = 0.95Vu;

[0040] When t = 4RC, Vt = 0.98Vu;

[0041] When t = 5RC, Vt = 0.99Vu;

[0042] It can be seen that after 3~5 RC, the charging process is basically over. According to the RC charge and discharge constant formula: t = n*RC, that is, under 3~5RC charge and discharge time, the calculated parasitic capacitance Cp is basically unchanged, that is, it remains stable. Based on this characteristic, the method of this embodiment first uses a known time t to charge and discharge the parasitic capacitance Cpx of each touch sensing channel, and detects the voltage of Cpx. Changing the time t from small to large will change the voltage of Cpx. When the Cpx voltage is close to the known charging voltage source Vu, it means that t at this time is a suitable charge and discharge time, and the current suitable charge and discharge frequency f can be obtained. In order to leave a margin, a charge and discharge frequency lower than f is selected as the touch charge and discharge operating frequency. At the same time, the parasitic capacitance Cpx of each sensing channel can also be confirmed at this stage.

[0043] In the figure, when t=3RC, based on the basic principle of capacitor charging and discharging, it can be known that Vt3 can reach 95% of Vu, which is close to the full state of the capacitor, that is, the current capacitor can be fully charged by the current time t, so the relationship between the parasitic capacitance C and the frequency f can be calculated.

[0044] In this embodiment, after obtaining the parasitic capacitance of the current touch key, the electrical performance of the current touch key is known, and the corresponding sensing sensitivity can be designed accordingly to make the touch effect of the touch key better. Exemplarily, since the sensing sensitivity calculation method of each sensing channel is the same, one of the sensing channels is used as an example for explanation. For the sensing channel numbered 1, according to the scanning method of the aforementioned different charge and discharge frequencies, the parasitic capacitance of the sensing channel can be obtained as Cp1, and then the touch parameter of the sensing channel is calculated as K1, K1= A1 / Cp1, and then the touch capacitance threshold DIFF1 of the sensing channel is calculated, DIFF1=(A2 / A1)*Cp1*C1 / (C1+Cp1), and the touch capacitance threshold DIFF1 is used as its sensitivity parameter. Similarly, the same method can be used for the other n-1 sensing channels to calculate, and finally the touch capacitance thresholds of all the sensing channels in the touch key can be obtained, and these touch capacitance thresholds can be used as sensitivity parameters to adapt to the latest usage environment. Therefore, after configuring the optimized sensitivity parameters, when the touch button detects the user's press control again, it will operate in the best way and with the best sensitivity to meet the product adaptability requirements in different environments (including the natural environment, the touch button's own hardware conditions, and the user's operation conditions, etc.).

[0045] In one example, determining the charge and discharge operating frequency can be to scan and detect each sensing channel of the touch key at different charge and discharge frequencies to obtain the parasitic capacitance of each sensing channel at different charge and discharge frequencies; selecting a charge and discharge frequency as the charge and discharge operating frequency of the touch key, and the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state.

[0046] Furthermore, based on the charging and discharging characteristics of the above parasitic capacitance, the parasitic capacitance of each sensing channel of the touch key is in a stable state. When the charging power supply voltage of each sensing channel of the touch key is greater than 0.95 times the theoretical charging power supply voltage, it can be considered that the parasitic capacitance of each sensing channel of the touch key is in a stable state. Figure 2 As shown, at t = 3RC, the Cpx voltage is basically close to the known charging voltage source Vu.

[0047] In one example, the touch capacitance Cx of each sensing channel is an average value of touch capacitances detected multiple times.

[0048] In this embodiment, not only the single touch area and position of different users' hands cannot be guaranteed to be the same, resulting in inconsistent sensitivity of each sensing channel of the touch key, affecting the touch effect, but even for the same user, there is still a situation where the sensitivity of the touch key is inconsistent, and there may also be some accidental factors. In order to avoid the influence of these factors and reflect the accuracy of the touch capacitance as much as possible, the method of this embodiment can select the average value of the touch capacitance detected multiple times as the touch capacitance Cx of each sensing channel to reduce the influence of other adverse factors on the touch capacitance detection.

[0049] In one example, the method of this embodiment further includes detecting the touch capacitance data fluctuation of each sensing channel of the touch key when there is no sensing signal, superimposing each touch capacitance threshold DIFFx and the touch capacitance data fluctuation of each sensing channel as the sensitivity parameter of each sensing channel of the touch key. Wherein the no sensing signal is an occasional signal when there is no touch of the touch medium.

[0050] In this embodiment, the fluctuation of the touch capacitance data of each sensing channel of the touch button represents the system error of the detection circuit and the slight change of the parasitic capacitance during the detection process, which will be directly reflected in the fluctuation of the touch capacitance data. The sensitivity parameter is confirmed based on the noise fluctuation size of each sensing channel. It can be understood that the noise fluctuation is the fluctuation value range of no sensing signal is N. As long as the sensing signal size S / N exceeds a certain value, it can be considered that a sensing action has occurred. In addition, the touch button of this embodiment has a self-learning process, which will gradually adjust to the most suitable sensitivity parameter.

[0051] In one example, the method of this embodiment further includes detecting the touch capacitance of each sensing channel of the touch button during operation, and if the difference between the touch capacitance and the touch capacitance reference value is greater than a first preset difference range, starting the touch sensitivity adjustment method of the touch button.

[0052] In this embodiment, after the sensitivity parameters and other related parameters are determined, generally, within a period of time, the touch key will be in a better working state. After the touch key has been working for a period of time, with the change of environmental factors, mainly referring to the changes related to the user, this will cause the touch effect of the touch key to deteriorate. Therefore, continuing to operate according to the current sensitivity parameters of the touch key will inevitably not make the touch key work in the best state, and it is necessary to calibrate and reconfigure the sensitivity parameters of the touch key. Based on this, the method of this embodiment can set the conditions for starting execution. Specifically, if the difference between the touch capacitance and the touch capacitance reference value is greater than the first preset difference range, it can be basically judged that the user in the current time period is different from the user in the previous time period, and the sensitivity parameters of the touch key can be reconfigured at this time. Further, in this embodiment, in order to more accurately reflect whether the touch capacitance has changed, the average value of the touch capacitance detected multiple times can be used for judgment. The first preset difference range can be predetermined according to actual conditions, and this embodiment does not impose specific restrictions on it.

[0053] In one example, the method of this embodiment also includes scanning and detecting each sensing channel of the touch button at different charge and discharge frequencies to obtain the parasitic capacitance of each sensing channel at different charge and discharge frequencies. If the difference between the parasitic capacitance value of each sensing channel of the touch button in a stable state and the parasitic capacitance reference value is greater than a second preset difference range, the touch sensitivity adjustment method of the touch button is started.

[0054] As mentioned above, when the touch capacitance detected by the touch button changes, it can be considered that the user is different, and the sensitivity parameters need to be updated and reconfigured. This embodiment also takes into account another situation, that is, the natural environment or the hardware state of the touch button itself changes, which will also cause the touch button to not work in the optimal state. When this happens, the more obvious feature is that the parasitic capacitance of each sensing channel of the touch button has changed. Therefore, the method of this embodiment obtains the parasitic capacitance of each sensing channel at different charging and discharging frequencies. If the difference between the parasitic capacitance value of each sensing channel of the touch button in a stable state and the parasitic capacitance reference value is greater than the second preset difference range, the touch sensitivity adjustment method of the touch button can be activated. In this embodiment, the second preset difference range can be predetermined according to the actual situation, and this embodiment does not impose specific restrictions on it.

[0055] In one example, the method of this embodiment further includes starting the touch sensitivity adjustment method of the touch key after a preset time interval. That is, regardless of whether the internal and external environment changes, the method of this embodiment updates and reconfigures the sensitivity parameters of the touch key at a certain time interval. This method can be used as a supplement to the adjustment of environmental changes. Even if the adjustment conditions of the aforementioned environmental changes are not met, the touch sensitivity adjustment method of the touch key can be actively started, which can avoid the lag of the touch key sensitivity adjustment to a certain extent.

[0056] The touch sensitivity adjustment method of the touch key of the present embodiment first determines the charge and discharge operating frequency, which makes the parasitic capacitance of each sensing channel of the touch key in a stable state, then calculates the touch parameter Kx of each sensing channel of the touch key, and then calculates the touch capacitance threshold DIFFx of each sensing channel of the touch key, and finally saves each touch capacitance threshold DIFFx, and uses each touch capacitance threshold DIFFx as the sensitivity parameter of each sensing channel of the touch key, so as to automatically adapt to environmental changes, including adapting to panels of different thicknesses and materials, and adapting to touch media of different sizes and shapes, so as to make the touch effect more stable and reliable, and meet the diverse needs of terminal products.

[0057] refer to Figure 3 As shown, another embodiment of the present invention provides a touch sensitivity adjustment device for a touch key, and the device 300 mainly includes: a determination module 301, used to determine a charge and discharge operating frequency, and the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state; a first calculation module 302, used to calculate the touch parameter Kx of each sensing channel of the touch key, Kx = A1 / Cpx, where A1 is a constant, x=1, 2, 3, ..., n, n is the total number of sensing channels, and Cpx is the parasitic capacitance of each sensing channel; a second calculation module 303, used to calculate the touch capacitance threshold of each sensing channel of the touch key, DIFFx=(A2 / A1)*Cpx*Cx / (Cx+Cpx), where DIFFx is each touch capacitance threshold, Cx is the touch capacitance of each sensing channel, and A2 is a constant; a configuration module 304, used to configure each touch capacitance threshold DIFFx, and use each touch capacitance threshold DIFFx as the sensitivity parameter of each sensing channel of the touch key.

[0058] In one example, determining the charge and discharge operating frequency may include: scanning and detecting each sensing channel of the touch key at different charge and discharge frequencies to obtain the parasitic capacitance of each sensing channel at different charge and discharge frequencies; selecting a charge and discharge frequency as the charge and discharge operating frequency of the touch key, and the charge and discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state.

[0059] In one example, the parasitic capacitance of each sensing channel of the touch key is in a stable state when the charging power supply voltage of each sensing channel of the touch key is greater than 0.95 times the theoretical charging power supply voltage.

[0060] In one example, the touch capacitance Cx of each sensing channel is an average value of touch capacitances detected multiple times.

[0061] In one example, the device 300 may further include a correction module, which is used to detect the touch capacitance data fluctuation of each sensing channel of the touch key when there is no sensing signal, and superimpose each touch capacitance threshold DIFFx and the touch capacitance data fluctuation of each sensing channel as the sensitivity parameter of each sensing channel of the touch key.

[0062] In one example, the device 300 may also include a starting module, which is used to detect the touch capacitance of each sensing channel of the touch button during operation. If the difference between the touch capacitance and the touch capacitance reference value is greater than a first preset difference range, the touch sensitivity adjustment method of the touch button is started.

[0063] In one example, the device 300 may also include a starting module, which is used to scan and detect each sensing channel of the touch key at different charge and discharge frequencies to obtain the parasitic capacitance of each sensing channel at different charge and discharge frequencies. If the difference between the parasitic capacitance value of each sensing channel of the touch key in a stable state and the parasitic capacitance reference value is greater than a second preset difference range, the touch sensitivity adjustment method of the touch key is started.

[0064] The details of other operations performed by each module in this embodiment can be referred to the aforementioned embodiments and will not be elaborated here.

[0065] The touch sensitivity adjustment device of the touch key of the present embodiment first determines the charge and discharge operating frequency, which makes the parasitic capacitance of each sensing channel of the touch key in a stable state, then calculates the touch parameter Kx of each sensing channel of the touch key, and then calculates the touch capacitance threshold DIFFx of each sensing channel of the touch key, and finally saves each touch capacitance threshold DIFFx, and uses each touch capacitance threshold DIFFx as the sensitivity parameter of each sensing channel of the touch key, so as to automatically adapt to environmental changes, including adapting to panels of different thicknesses and materials, and adapting to touch media of different sizes and shapes, so as to make the touch effect more stable and reliable, and meet the diverse needs of terminal products.

[0066] A touch sensitivity adjustment device for a touch button in an embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal. A touch sensitivity adjustment device for a touch button in an embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

[0067] The present application also provides an electronic device, comprising: a memory for storing programs or instructions executable by a processor; and a processor for executing the above-mentioned programs or instructions to implement the various processes of the above-mentioned touch sensitivity adjustment method embodiment of the touch button, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0068] Figure 4 4 is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device 400 may include an internal communication bus 401, a processor (Processor) 402, a read-only memory (ROM) 403, a random access memory (RAM) 404, and a communication port 405. When applied to a personal computer, the electronic device 400 may also include a hard disk 406. The internal communication bus 401 can realize data communication between components of the electronic device 400. The processor 402 can make judgments and issue prompts. In some embodiments, the processor 402 can be composed of one or more processors. The communication port 405 can realize data communication between the electronic device 400 and the outside. In some embodiments, the electronic device 400 can send and receive information and data from the network through the communication port 405. The electronic device 400 may also include different forms of program storage units and data storage units, such as a hard disk 406, a read-only memory (ROM) 403 and a random access memory (RAM) 404, which can store various data files used for computer processing and / or communication, and possible programs or instructions executed by the processor 402. The processing result of the processor 402 is transmitted to the user equipment through the communication port 405 and displayed on the user interface.

[0069] The above touch sensitivity adjustment method of the touch button can be implemented as a computer program, stored in the hard disk 406, and recorded in the processor 402 for execution to implement any touch sensitivity adjustment method of the touch button in the present application.

[0070] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned touch sensitivity adjustment method embodiment of the touch button is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0071] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used for the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which can be changed according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the method of general digit retention. Although the numerical domains and parameters used to confirm the breadth of the range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values ​​is as accurate as possible within the feasible range.

[0072] Although the present application has been described with reference to the current specific embodiments, ordinary technicians in this technical field should recognize that the above embodiments are only used to illustrate the present application, and various equivalent changes or substitutions may be made without departing from the spirit of the present application. Therefore, as long as the changes and modifications to the above embodiments are within the essential spirit of the present application, they will fall within the scope of the claims of the present application.

Claims

1. A method for adjusting the touch sensitivity of a touch button, characterized in that: include: Determining a charge-discharge operating frequency, wherein the charge-discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state; Calculate the touch parameters K of each sensing channel of the touch button x , K x = A1 / Cp x , where A1 is a constant, x =1, 2, 3, ..., n, n is the total number of sensing channels, Cp x is the parasitic capacitance of each sensing channel; Calculate the touch capacitance threshold DIFF of each sensing channel of the touch button x , DIFF x =(A2 / A1)*Cp x *C x / (C x +Cp x ), where DIFF x is the touch capacitance threshold, C x is the touch capacitance of each sensing channel, A2 is a constant; Configure the touch capacitance threshold DIFF x , with each touch capacitance threshold DIFF x As the sensitivity parameter of each sensing channel of the touch button.

2. The touch sensitivity adjustment method of a touch key according to claim 1, characterized in that: Determining the charge and discharge operating frequency includes: Scan and detect each sensing channel of the touch key at different charging and discharging frequencies to obtain the parasitic capacitance of each sensing channel at different charging and discharging frequencies; A charge-discharge frequency is selected as the charge-discharge operating frequency of the touch key, and the charge-discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state.

3. The touch sensitivity adjustment method of a touch key according to claim 2, characterized in that: The parasitic capacitance of each sensing channel of the touch key is in a stable state including: When the charging power supply voltage of each sensing channel of the touch key is greater than 0.95 times the theoretical charging power supply voltage, the parasitic capacitance of each sensing channel of the touch key is in a stable state.

4. The touch sensitivity adjustment method of a touch key according to claim 1, characterized in that: The touch capacitance C of each sensing channel x is the average value of the touch capacitance detected multiple times.

5. The touch sensitivity adjustment method of a touch key according to claim 1, characterized in that: Also includes: Detect the touch capacitance data fluctuation of each sensing channel of the touch key when there is no sensing signal, and superimpose the touch capacitance threshold DIFF x The touch capacitance data fluctuations of the sensing channels are used together as sensitivity parameters of the sensing channels of the touch keys.

6. The touch sensitivity adjustment method of a touch key according to claim 1, wherein: Also includes: The touch capacitance of each sensing channel of the touch key is detected during operation, and if the difference between the touch capacitance and a touch capacitance reference value is greater than a first preset difference range, a touch sensitivity adjustment method of the touch key is started.

7. The touch sensitivity adjustment method of a touch key according to claim 1, characterized in that: Also includes: The sensing channels of the touch key are scanned and detected at different charge and discharge frequencies to obtain the parasitic capacitance of each sensing channel at different charge and discharge frequencies. If the difference between the parasitic capacitance value of each sensing channel of the touch key in a stable state and the parasitic capacitance reference value is greater than a second preset difference range, the touch sensitivity adjustment method of the touch key is started.

8. A touch sensitivity adjustment device for a touch button, characterized in that: include: A determination module, used to determine a charge-discharge operating frequency, wherein the charge-discharge operating frequency makes the parasitic capacitance of each sensing channel of the touch key in a stable state; The first calculation module is used to calculate the touch parameters K of each sensing channel of the touch button x , K x = A1 / Cp x , where A1 is a constant, x =1, 2, 3, ..., n, n is the total number of sensing channels, Cp x is the parasitic capacitance of each sensing channel; The second calculation module is used to calculate the touch capacitance threshold DIFF of each sensing channel of the touch button x , DIFF x =(A2 / A1)*Cp x *C x / (C x +Cp x ), where DIFF x is the touch capacitance threshold, C x is the touch capacitance of each sensing channel, A2 is a constant; Configuration module, used to configure each touch capacitance threshold DIFF x , with each touch capacitance threshold DIFF x As the sensitivity parameter of each sensing channel of the touch button.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the touch sensitivity adjustment method of a touch key as described in any one of claims 1 to 7 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the touch sensitivity adjustment method of the touch key as described in any one of claims 1 to 7 are implemented.