Method, device, storage medium and electronic device for adjusting touch sensitivity
By detecting and adjusting the upper and lower sensing limits of the touch sensing technology, the problem of the inability to adaptively adjust the touch sensitivity in the prior art is solved, and the sensitivity and safety of the buttons are improved.
Patent Information
- Application Number
- CN202111107180.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2041-09-22
AI Technical Summary
In the existing touch sensing technology, touch buttons or touch screens lack the adaptive ability to touch sensitivity and cannot adjust the response threshold according to the user's finger size, resulting in the problem of being unable to trigger the fingers too small or touching the fingers accidentally when they are too large.
By detecting the touch operation of the finger, the first sensing value is obtained, and the sensing range is adjusted according to the sensing upper limit value and the sensing lower limit value, and the touch sensitivity is dynamically adjusted to adapt to the use of different users.
The sensitivity adaptive adjustment of touch buttons or touch screens is realized, which improves the effectiveness and security of buttons, avoids mist touching, and enhances the user experience.
Smart Images

Figure CN113849080B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch sensing technology, and in particular to a touch sensitivity adjustment method, device, storage medium, and electronic device. Background Art
[0002] Currently, in terms of touch sensing technology, devices such as touch buttons or touch screens that use touch sensing technology do not have the ability to adapt to touch sensitivity, and their response thresholds are set at the factory. During use, they can only respond to trigger operations when the sensing value is greater than the sensing threshold, otherwise they cannot respond to trigger operations, thus causing inconvenience in use.
[0003] For example, the touch button cannot adjust the response threshold according to the finger size of different users. Therefore, the following situations may occur: when the user needs to use the touch button, the touch button cannot be triggered to start because the user's finger is too small; or when the user does not need to use the touch button, the user's finger is too large, and it is easy to accidentally touch the touch button and trigger the touch button to start. Summary of the Invention
[0004] Embodiments of the present application provide a touch sensitivity adjustment method, device, storage medium, and electronic device, which can adaptively adjust the touch sensitivity according to the size of the user's finger.
[0005] In a first aspect, an embodiment of the present application provides a method for adjusting touch sensitivity, comprising:
[0006] Detecting a touch operation of a finger and obtaining a first sensing value generated by the touch operation;
[0007] Get the upper and lower sensing limits;
[0008] When the first sensing value is less than the sensing lower limit value or greater than the sensing upper limit value, the sensing lower limit value or the sensing upper limit value is adjusted based on the first sensing value.
[0009] In a second aspect, an embodiment of the present application further provides a touch sensitivity adjustment device, comprising:
[0010] A touch detection module, configured to detect a touch operation of a finger and obtain a first sensing value generated by the touch operation;
[0011] A data acquisition module is used to obtain the upper limit value and the lower limit value of the sensing;
[0012] The data processing module is configured to adjust the lower sensing limit value or the upper sensing limit value based on the first sensing value when the first sensing value is less than the lower sensing limit value or greater than the upper sensing limit value.
[0013] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is run on a computer, the computer executes a touch sensitivity adjustment method as provided in any embodiment of the present application.
[0014] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a processor and a memory, wherein the memory contains a computer program, and the processor calls the computer program to execute a touch sensitivity adjustment method as provided in any embodiment of the present application.
[0015] The technical solution provided by the embodiment of the present application detects the user's touch operation during use and generates a first sensing value. When the first sensing value cannot trigger a response to the touch operation, the sensing upper limit value or the sensing lower limit value is adjusted according to the first sensing value, thereby avoiding the problem of setting the response threshold to a fixed value in the prior art, which cannot be adaptively adjusted according to usage conditions and easily causes insensitive sensing or false touches. The present application can adaptively adjust the sensing range between the sensing upper limit value and the sensing lower limit value according to the usage conditions of different users, thereby improving the touch sensitivity. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 This is a schematic diagram of a first flow chart of a touch sensitivity adjustment method provided in an embodiment of the present application.
[0018] Figure 2 This is a schematic diagram of a second flow chart of the touch sensitivity adjustment method provided in an embodiment of the present application.
[0019] Figure 3 This is a schematic diagram of a third flow chart of the touch sensitivity adjustment method provided in an embodiment of the present application.
[0020] Figure 4 A schematic diagram of the structure of a touch sensitivity adjustment device provided in an embodiment of the present application.
[0021] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0023] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0024] The present invention provides a method for adjusting touch sensitivity. The method can be performed by the touch sensitivity adjustment device provided in the present invention, or an electronic device incorporating the touch sensitivity adjustment device. The touch sensitivity adjustment device can be implemented in hardware or software, and the electronic device can be a smartphone, tablet computer, PDA, fingerprint detector, household appliance, or other device with a touch screen or touch buttons.
[0025] See also Figure 1 , Figure 1 This is a schematic diagram of a first flow chart of the touch sensitivity adjustment method provided in an embodiment of the present application. The specific flow of the touch sensitivity adjustment method provided in an embodiment of the present application may be as follows:
[0026] 101. Detect a touch operation of a finger and obtain a first sensing value generated by the touch operation.
[0027] For example, taking the electronic device in the present application as an example, the electronic device in the present application can be a household appliance with a touch panel or touch buttons, such as a common household appliance such as a washing machine, a microwave oven, a refrigerator, a television, etc.
[0028] The touch panel or touch button of a household appliance uses capacitive touch sensing technology, wherein the touch panel or touch button of a household appliance includes an outer cover, a sensor board and a chip. The outer cover is arranged above the sensor board, and the outer cover and the sensor board are connected by pins. A circuit is set between the sensor board and the chip. There is a parasitic capacitance C between the sensor board and the sensor board. p When the human finger touches the outer layer, a grounded conductive layer is formed due to the human body current, which in turn forms a parallel capacitor C f , at this time, the total capacitance is C x =C p+C f Generally speaking, C p than C f An order of magnitude larger.
[0029] Among them, the parasitic capacitance C p The chip is transmitted to the chip through the pins, and the chip has a parasitic capacitance C p Processing is performed to obtain the original induction value D0. The total capacitance is transmitted to the chip through the pin, and the chip calculates the total capacitance C x Processing is performed to obtain the total sensing value D1, wherein the first sensing value is D h =D1-D0.
[0030] Since household appliances use capacitive touch sensing technology, when the human finger is larger, the total capacitance C generated x The higher the value, the greater the first induction value. Conversely, the smaller the human finger, the greater the total capacitance C x The smaller it is, the smaller the first sensing value is. Therefore, the size of the human finger can be directly evaluated according to the size of the first sensing value.
[0031] 102. Obtain the upper and lower sensing limits.
[0032] Among them, the sensing upper limit value and the sensing lower limit value are set in advance in the household appliance. When the touch operation of the human finger is detected, the sensing upper limit value and the sensing lower limit value are obtained. It can be understood that the sensing upper limit value and the sensing lower limit value can be stored in the control program of the household appliance, or in the chip of the touch panel or touch button of the household appliance, and the chip is connected to the control program of the household appliance. The storage location of the sensing upper limit value and the sensing lower limit value is not limited here, as long as the pre-stored sensing upper limit value and the sensing lower limit value can be obtained.
[0033] For example, the upper and lower sensing limits can be set before leaving the factory. After leaving the factory, the upper and lower sensing limits can be directly obtained and compared with the first sensing value to determine whether to respond to the touch operation of the finger.
[0034] In some embodiments, the upper and lower sensing limits may be directly specified by those skilled in the art based on practical experience, and during the use of the household appliance, the upper and lower sensing limits may be adjusted directly based on the first sensing value generated by the touch operation.
[0035] In some embodiments, the upper and lower limits of the sensing may also be obtained by calculation. For example, by simulating the sizes of m fingers with different sizes and repeatedly touching the key K times, m×k D values may be obtained. h Value, which can be expressed as D 13 …D ij, where 1 < i < m, that is, the number of fingers is at least one, and 3 < j < k, that is, the number of times of touching the same button with one finger is not less than 3 times. It can be understood that here, limiting the number of times of touching the same button to at least 3 times is only for example, and those skilled in the art can set the number of times of touching the button according to actual needs, and the number of times is not limited.
[0036] Among them, multiple sensed values D of each finger h are recorded as a set of sample touch control data, then m sets of sample touch control data are obtained. The m sets of sample touch control data are recorded as a data set, and one button corresponds to one data set.
[0037] Of course, multiple buttons can also be set on the household appliance at the same time. Before leaving the factory, the upper limit value and lower limit value of the sensing of multiple buttons can be calculated respectively. When there are multiple buttons, the circuits of multiple buttons are independent and do not interfere with each other. When there are n buttons, m×k×n sensed values D are generated h , which can be expressed as D 113 …D nij , where n represents the number of buttons, the number of buttons is at least one, 1 < i < m, that is, the number of fingers is at least one, and 3 < j < k, that is, the number of times of touching the same button with one finger is not less than 3 times.
[0038] Among them, multiple sensed values D of each finger touching the same button h values are recorded as a set of sample touch control data, then m×n sets of sample touch control data can be obtained. Each set of sample touch control data of n buttons is recorded as a data set, and n buttons correspond to n data sets.
[0039] When calculating, the upper limit value and lower limit value of the sensing of different buttons are calculated respectively. For example, when calculating the upper limit value and lower limit value of the sensing of one button, among them, there are m sets of sample touch control data in a data set, and one set of sample touch control data has k sensed values D h . The average value of each set of sample touch control data is calculated respectively to obtain m average values. Among them, the maximum value of the m average values represents the sensed value of the largest finger, and the minimum value represents the sensed value of the smallest finger. Furthermore, the maximum value is selected from the m average values as the upper limit value of the sensing, and the minimum value is selected as the lower limit value of the sensing.
[0040] Exemplarily, after removing the maximum value and the minimum value in each set of sample touch control data, the average value of the remaining sensed values D h is obtained, and m average values V i are obtained. Furthermore, the maximum value V max is selected from the m average values as the upper limit value of the sensing, and the minimum value V min is selected as the lower limit value of the sensing.
[0041] For example, after removing the maximum value and the minimum value in each set of sample touch data, the deviation value E of each set of sample touch data can be obtained. i , the deviation value is each induction value D h The average of the differences from the mean value, resulting in m deviation values E i , where the deviation value can be positive or negative. Then, m deviation values E i Perform deviation compensation on m average values respectively to obtain m deviation compensation values, expressed as V1+E1,…,V i +E i , and then select the maximum value from the m deviation compensation values as the upper limit of the sensing value, and the minimum value as the lower limit of the sensing value. By performing deviation compensation on the average value, the impact of environmental noise and electromagnetic noise on the sensing value can be reduced.
[0042] In this embodiment, by calculating the upper and lower sensing limits and setting them for different keys, the influence of the physical properties of the keys on the sensing values can be reduced. Furthermore, by calculating the upper and lower sensing limits for multiple keys using multiple data sets, the upper and lower sensing limits for different keys are determined based on the sensing values in the data sets. Therefore, the upper and lower sensing limits for different keys may not be exactly the same.
[0043] 103. When the first sensing value is less than the sensing lower limit or greater than the sensing upper limit, adjust the sensing lower limit or the sensing upper limit based on the first sensing value.
[0044] When the first sensing value generated by the touch operation of the human finger is less than the sensing lower limit, the sensing lower limit is lowered; when the first sensing value is greater than the sensing upper limit, the sensing upper limit is increased.
[0045] It can be understood that when the first sensing value is not less than the sensing lower limit value or not greater than the sensing upper limit value, the function of the button is triggered to be enabled in response to the finger touch operation.
[0046] During specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.
[0047] The method for adaptively adjusting the upper and lower sensing limits in the embodiments of the present application facilitates detection of touch operations from fingers of different sizes, improving the effectiveness of touch operations. Adjusting the upper and lower sensing limits based on the first sensing value generated by the touch operation can enhance the key's adaptability to the environment and improve key sensitivity. Furthermore, setting two values, namely the upper and lower sensing limits, effectively prevents users from accidentally touching the keys, compared to the prior art method of setting only a single response threshold, thereby enhancing the safety of key usage.
[0048] The method described in the above embodiments will be further described in detail below with examples.
[0049] See also Figure 2 , Figure 2 This is a second flow chart of the touch sensitivity adjustment method provided in the embodiment of the present application. The specific process can be as follows:
[0050] 201. Detect a touch operation of a finger, and obtain a first sensing value generated by the touch operation.
[0051] 202. Determine a target control corresponding to the touch operation, and obtain a sensing upper limit value and a sensing lower limit value of the target control.
[0052] The target control is the touch panel or touch button in the above embodiment. After the button touched by the finger is determined, the upper and lower sensing limits of the button are directly obtained.
[0053] Whenever the user touches a key, the upper and lower sensing limits of the key are obtained, and the first sensing value is compared with the upper and lower sensing limits respectively each time.
[0054] 203. When the first sensing value is less than the sensing lower limit or greater than the sensing upper limit, calculate a first difference between the first sensing value and the sensing lower limit, or calculate a second difference between the first sensing value and the sensing upper limit.
[0055] When the first sensing value is less than the sensing lower limit, the difference between the first sensing value and the sensing lower limit is calculated and recorded as the first difference.
[0056] When the first sensing value is greater than the sensing upper limit value, a difference between the first sensing value and the sensing upper limit value is calculated and recorded as a second difference value.
[0057] It can be understood that each touch operation generates only one first sensing value. Therefore, there are only two incompatible situations, namely, the first sensing value is less than the sensing lower limit, or the first sensing value is greater than the sensing upper limit.
[0058] Of course, after obtaining the first difference or the second difference, the lower limit or upper limit of the sensing of the target control can also be adjusted directly according to the first sensing value. Specifically, when the first difference is obtained, the lower limit of the sensing is lowered according to the first sensing value, or when the second difference is obtained, the upper limit of the sensing is increased according to the first sensing value.
[0059] 204. If the absolute value of the first difference or the second difference is less than the preset threshold, adjust the sensing lower limit or the sensing upper limit of the target control based on the first sensing value.
[0060] Exemplarily, a preset threshold is also set. The storage method of the preset threshold can refer to the upper limit value of sensing and the lower limit value of sensing, which will not be repeated here. Each target control has a preset threshold. The preset threshold of each target control can be the same or different. It is not limited here and can be customized according to actual needs.
[0061] By setting a preset threshold, the screening conditions for the first sensing value can be reasonably controlled, and the first sensing values caused by the user's fingers being too large or too small can be screened out, ensuring the accuracy and effectiveness of adjusting the upper or lower sensing limit value, and then reasonably controlling the adjustment range of the upper or lower sensing limit value.
[0062] That is, when the absolute value of the first difference or the second difference is less than the preset threshold, the first sensing value is used to adjust the lower sensing limit or the upper sensing limit. When the absolute value of the first difference or the second difference is greater than the preset threshold, the first sensing value is not used to adjust the lower sensing limit or the upper sensing limit, and the touch operation is determined to be an erroneous operation.
[0063] In one embodiment, the first sensing values that meet the requirements may be accumulated to form a plurality of first sensing values for adjusting the lower sensing limit value or the upper sensing limit value.
[0064] See also Figure 3 , Figure 3 This is a third flow chart of the touch sensitivity adjustment method provided in an embodiment of the present application. In one embodiment, step 204 may include:
[0065] 2041. If the number of times the first difference or the second difference is continuously detected is greater than a preset number, a preset number of first sensing values are obtained.
[0066] For example, when a finger touches a key to generate a first sensing value, and the first sensing value is outside the range of the upper and lower sensing limits, and the first difference with the lower sensing limit is less than a preset threshold, or the second difference with the upper sensing limit is less than the preset threshold, the first sensing value is recorded. When the number of first sensing values that meet this condition on the same key is greater than a preset number, the preset number of first sensing values are used to adjust the lower or upper sensing limit of the key.
[0067] The preset number can be customized according to actual needs, or the preset number can be set to the above k times, and the specific setting is not limited here.
[0068] 2042. Adjust the lower sensing limit or the upper sensing limit of the target control based on a preset number of first sensing values.
[0069] In this embodiment, the plurality of first sensing values can be directly used to adjust the lower sensing limit value or the upper sensing limit value of the target control.
[0070] For example, the average value of multiple first sensing values is calculated, and the average value is compared with the sensing upper limit value and the sensing lower limit value respectively. If the average value is less than the sensing lower limit value, the average value is set as the sensing lower limit value; if the average value is greater than the sensing upper limit value, the average value is set as the sensing upper limit value.
[0071] Similarly, the maximum and minimum values among the multiple sensing values may be eliminated and the average value may be obtained. The method of adjusting the sensing upper limit value or the sensing upper limit value by the average value is as described above and will not be described in detail here.
[0072] Of course, a deviation value can also be obtained, and then the average value can be compensated by the deviation value to obtain a deviation compensation value. The method of adjusting the sensing upper limit value or the sensing upper limit value by the deviation compensation value can refer to the above average value and will not be repeated here.
[0073] By setting the preset number, this embodiment can reduce the error in obtaining the upper or lower sensing limit value, thereby improving the accuracy of adjusting the upper or lower sensing limit value.
[0074] In one embodiment, multiple first sensing values can also be added to the above-mentioned one or more data sets for calculation, wherein the lower sensing limit value or the upper sensing limit value of each key is calculated based on a preset data set, and the preset data set includes multiple groups of sample touch data, and each group of sample touch data has multiple sensing values.
[0075] Adjusting a lower sensing limit value or an upper sensing limit value of a target control based on a preset number of first sensing values includes:
[0076] A preset number of first sensing values are used as a new set of sample touch data and added to the preset data set.
[0077] Adjust the lower or upper sensing limit of the target control according to the added preset data set.
[0078] For example, when adjusting the upper or lower limit of sensing, calculations can be performed only on the newly added multiple first sensing values. The calculation method can refer to the above-mentioned average value, or the average value can be obtained after eliminating the maximum and minimum values, or the average value can be compensated for the deviation by obtaining the deviation value, and then the average value or the deviation compensation value is obtained, and the average value or the deviation compensation value is compared with the upper or lower limit of sensing, and then the upper or lower limit of sensing is adjusted.
[0079] In some embodiments, adjusting the lower sensing limit or the upper sensing limit of the target control according to the added preset data set includes:
[0080] Determine a second sensing value for each set of sample touch data in a preset data set;
[0081] determining a maximum value and a minimum value from the plurality of second sensed values;
[0082] If the maximum value is greater than the upper limit of the induction, adjust the upper limit of the induction to the maximum value;
[0083] If the minimum value is less than the lower limit of sensing, adjust the lower limit of sensing to the minimum value.
[0084] For example, the newly added multiple first sensing values and the original multiple sensing values in the data set may be reclassified, and then a new upper sensing limit value and a new lower sensing limit value may be obtained.
[0085] For example, the sensing values are sorted in order, and the first sensing value and the original sensing value in the data set are divided into m+1 groups of touch data, where the number of sensing values in each group is the same, and each group of touch data corresponds to m+1 fingers in descending order or in descending order. Then, the average value corresponding to the m+1 groups of touch data is calculated, or the average value is calculated after excluding the maximum and minimum values, or the average value is compensated for by calculating the deviation value. Specifically, refer to the calculation method in the above embodiment, and then m+1 average values or deviation compensation values are obtained, and the maximum value of the m+1 average values or deviation compensation values is set as the sensing upper limit value, and the minimum value is set as the sensing lower limit value.
[0086] Alternatively, the maximum value is compared with the upper limit of sensing. When the maximum value is greater than the upper limit of sensing, the maximum value is set as the upper limit of sensing. When the minimum value is less than the lower limit of sensing, the minimum value is set as the lower limit of sensing.
[0087] Through the method of this embodiment, the upper and lower sensing limits can be adapted to fingers of different sizes, and the adjustment accuracy of the upper and lower sensing limits is improved. Furthermore, the problem of inaccurate initial setting of the upper and lower sensing limits can be compensated.
[0088] In one embodiment, a response threshold may be set according to an upper sensing limit or a lower sensing limit, wherein the response threshold may be taken between the upper sensing limit or the lower sensing limit, and the specific value selection method may be customized, or a fixed value may be selected by proportion, for example, setting the middle value between the upper sensing limit and the lower sensing limit as the response threshold.
[0089] After detecting the touch operation of the finger and generating the first sensing value, the method further includes:
[0090] When the first sensing value is not less than the response threshold and not greater than the sensing upper limit, the finger touch operation is responded to, and the response threshold is less than the sensing upper limit and not less than the sensing lower limit.
[0091] During implementation, the first sensing value is directly compared with the response threshold. When the first sensing value is greater than or equal to the response threshold, the first sensing value is further compared with the sensing upper limit value. When the first sensing value is less than the sensing upper limit value, the finger touch operation is responded to; when the first sensing value is less than the response threshold, it indicates that the button is not triggered; when the first sensing value is greater than the response threshold and greater than the sensing upper limit value, it indicates an incorrect touch and the button will not be triggered.
[0092] In one embodiment, after the upper sensing limit or the lower sensing limit is readjusted, the response threshold is also adjusted accordingly.
[0093] After adjusting the lower or upper sensing limit of the target control according to the added preset data set, the following is also included:
[0094] The response threshold is adjusted according to the adjusted lower sensing limit value or upper sensing limit value.
[0095] When the lower sensing limit is increased, the response threshold can be appropriately increased, and when the lower sensing limit is decreased, the response threshold can be appropriately decreased. The magnitude of the increase or decrease in the response threshold can be determined based on specific needs. The response threshold can also be adjusted accordingly with reference to the adjustment magnitude of the upper sensing limit or the lower sensing limit. It is understood that the specific adjustment magnitude of the response threshold is not limited herein; it is sufficient to explain that the response threshold varies based on the lower sensing limit and / or the upper sensing limit.
[0096] The adjusted response threshold can adapt to touch operations with more different finger sizes, and can effectively avoid problems such as poor sensing or accidental touches, thereby ensuring adaptive sensitivity adjustment and facilitating user use.
[0097] As can be seen from the above, the touch sensitivity adjustment method proposed in the embodiments of the present invention can detect a user's touch operation and thereby generate a first sensing value. The first sensing value is then compared with an upper sensing limit and a lower sensing limit. If the first sensing value is within the range of the upper sensing limit and the lower sensing limit, the touch operation is responded to. If the first sensing value is outside the upper sensing limit and the lower sensing limit, the first sensing value is further filtered according to a preset threshold value, and the first sensing value with a smaller variation range relative to the preset threshold value is used to adjust the upper sensing limit or the lower sensing limit. When adjusting the upper sensing limit or the lower sensing limit, the first sensing values can also be accumulated, and the upper sensing limit or the lower sensing limit is adjusted based on multiple first sensing values, thereby ensuring adjustment accuracy. Subsequently, the newly detected first sensing value is continuously judged based on the adjusted upper sensing limit and the lower sensing limit, thereby achieving a cyclic judgment of the first sensing value and continuously updating the upper sensing limit and the lower sensing limit, ensuring the environmental adaptability of the upper sensing limit and the lower sensing limit, and improving the sensitivity of touch operation.
[0098] In one embodiment, a device for adjusting touch sensitivity is also provided. Figure 4 , Figure 4 This is a schematic diagram of the structure of a touch sensitivity adjustment device 300 provided in an embodiment of the present application. The touch sensitivity adjustment device 300 is applied to an electronic device and includes a touch detection module 301, a data acquisition module 302, and a data processing module 303, as follows:
[0099] A touch detection module 301 is configured to detect a touch operation of a finger and obtain a first sensing value generated by the touch operation;
[0100] A data acquisition module 302 is used to obtain a sensing upper limit value and a sensing lower limit value;
[0101] The data processing module 303 is configured to adjust the lower sensing limit or the upper sensing limit based on the first sensing value when the first sensing value is less than the lower sensing limit or greater than the upper sensing limit.
[0102] In some embodiments, the data acquisition module 302 is further configured to:
[0103] Determine the target control corresponding to the touch operation and obtain the upper and lower sensing limits of the target control.
[0104] In some embodiments, the data processing module 303 is further configured to:
[0105] When the first sensing value is less than the sensing lower limit or greater than the sensing upper limit, calculating a first difference between the first sensing value and the sensing lower limit, or calculating a second difference between the first sensing value and the sensing upper limit;
[0106] If the absolute value of the first difference or the second difference is smaller than the preset threshold, the sensing lower limit or the sensing upper limit of the target control is adjusted based on the first sensing value.
[0107] In some embodiments, the data processing module 303 is further configured to:
[0108] If the number of times the first difference or the second difference is continuously detected is greater than a preset number, a preset number of first sensing values are obtained;
[0109] The lower sensing limit value or the upper sensing limit value of the target control is adjusted based on a preset number of first sensing values.
[0110] In some embodiments, the sensing lower limit value or the sensing upper limit value is calculated based on a preset data set, which includes multiple sets of sample touch data;
[0111] The data processing module 303 is further configured to:
[0112] Adding a preset number of first sensing values as a new set of sample touch data to a preset data set;
[0113] Adjust the lower or upper sensing limit of the target control according to the added preset data set.
[0114] In some embodiments, the data processing module 303 is further configured to:
[0115] Determine a second sensing value for each set of sample touch data in a preset data set;
[0116] determining a maximum value and a minimum value from the plurality of second sensed values;
[0117] If the maximum value is greater than the upper limit of the induction, adjust the upper limit of the induction to the maximum value;
[0118] If the minimum value is less than the lower limit of sensing, adjust the lower limit of sensing to the minimum value.
[0119] In some embodiments, the data processing module 303 is further configured to:
[0120] When the first sensing value is not less than the sensing lower limit value and not greater than the sensing upper limit value, the touch operation is responded to.
[0121] In some embodiments, the data processing module 303 is further configured to:
[0122] When the first sensing value is not less than the response threshold and not greater than the sensing upper limit, the finger touch operation is responded to, and the response threshold is less than the sensing upper limit and not less than the sensing lower limit.
[0123] After adjusting the lower or upper sensing limit of the target control according to the added preset data set, the following is also included:
[0124] The response threshold is adjusted according to the adjusted lower sensing limit value or upper sensing limit value.
[0125] It should be noted that the touch sensitivity adjustment device 300 provided in the embodiment of the present application belongs to the same concept as the touch sensitivity adjustment method in the above embodiment. Any method provided in the touch sensitivity adjustment method embodiment can be implemented through the touch sensitivity adjustment device 300. The specific implementation process is detailed in the touch sensitivity adjustment method embodiment, which will not be repeated here.
[0126] As can be seen from the above, the touch sensitivity adjustment device proposed in the embodiment of the present application can detect the user's touch operation and then generate a first sensing value. The first sensing value is compared with the sensing upper limit value and the sensing lower limit value. When it is within the range of the sensing upper limit value and the sensing lower limit value, the touch operation is responded to. When it is outside the sensing upper limit value and the sensing lower limit value, the first sensing value is further screened according to the preset threshold value, and the first sensing value with a smaller variation range relative to the preset threshold value is used to adjust the sensing upper limit value or the sensing lower limit value. When adjusting the sensing upper limit value or the sensing lower limit value, the first sensing value can also be accumulated, and the sensing upper limit value or the sensing lower limit value is adjusted by multiple first sensing values, thereby ensuring the adjustment accuracy. Afterwards, the newly detected first sensing value is continuously judged by the adjusted sensing upper limit value and the sensing lower limit value, thereby realizing a cyclic judgment of the first sensing value and continuously updating the sensing upper limit value and the sensing lower limit value, ensuring the environmental adaptability of the sensing upper limit value and the sensing lower limit value, and improving the sensitivity of the touch operation.
[0127] The embodiment of the present application also provides an electronic device, which can be a smart phone, tablet computer, PDA, fingerprint detector, household appliance or other device with a touch screen or touch button. Figure 5 As shown, Figure 5 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. It will be understood by those skilled in the art that the electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0128] The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device 400. By running or loading software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the electronic device 400 and processes data, thereby monitoring the electronic device 400 as a whole.
[0129] In the embodiment of the present application, the processor 401 in the electronic device 400 loads instructions corresponding to one or more application processes into the memory 402 according to the following steps, and the processor 401 runs the application stored in the memory 402 to implement various functions:
[0130] Detecting a touch operation of a finger and obtaining a first sensing value generated by the touch operation;
[0131] Get the upper and lower sensing limits;
[0132] When the first sensing value is less than the sensing lower limit value or greater than the sensing upper limit value, the sensing lower limit value or the sensing upper limit value is adjusted based on the first sensing value.
[0133] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0134] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0135] As can be seen from the above, the electronic device provided in this embodiment can detect a user's touch operation and thereby generate a first sensing value. The first sensing value is then compared with an upper sensing limit and a lower sensing limit. When the sensing value is within the range of the upper sensing limit and the lower sensing limit, the touch operation is responded to. When the sensing value is outside the upper sensing limit and the lower sensing limit, the first sensing value is further screened according to a preset threshold value, and the first sensing value with a smaller variation range relative to the preset threshold value is used to adjust the upper sensing limit or the lower sensing limit. When adjusting the upper sensing limit or the lower sensing limit, the first sensing values can also be accumulated, and the upper sensing limit or the lower sensing limit is adjusted based on multiple first sensing values, thereby ensuring adjustment accuracy. Subsequently, the newly detected first sensing value is continuously judged based on the adjusted upper sensing limit and the lower sensing limit, thereby achieving a cyclic judgment of the first sensing value and continuously updating the upper sensing limit and the lower sensing limit, ensuring the environmental adaptability of the upper sensing limit and the lower sensing limit, and improving the sensitivity of touch operation.
[0136] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0137] To this end, the embodiments of the present application provide a computer-readable storage medium. Persons skilled in the art will appreciate that all or part of the steps in the above-described embodiment methods can be implemented by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. When executed, the program includes the following steps:
[0138] Detecting a touch operation of a finger and obtaining a first sensing value generated by the touch operation;
[0139] Get the upper and lower sensing limits;
[0140] When the first sensing value is less than the sensing lower limit value or greater than the sensing upper limit value, the sensing lower limit value or the sensing upper limit value is adjusted based on the first sensing value.
[0141] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0142] The aforementioned storage medium may be ROM / RAM, a magnetic disk, an optical disk, etc. Since the computer program stored in the storage medium can execute the steps of any of the touch sensitivity adjustment methods provided in the embodiments of the present application, the beneficial effects achievable by any of the touch sensitivity adjustment methods provided in the embodiments of the present application can be achieved. For details, please refer to the previous embodiments and will not be repeated here.
[0143] The above is a detailed introduction to a touch sensitivity adjustment method, device, medium and electronic device provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. At the same time, for those skilled in the art, based on the ideas of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A method for adjusting touch sensitivity, characterized in that: include: Detecting a touch operation by a finger and obtaining a first sensing value generated by the touch operation, wherein the first sensing value is a difference between a total sensing value obtained during the finger touch operation and an original sensing value corresponding to a parasitic capacitance in the touch panel or touch key; Determine a target control corresponding to the touch operation, and obtain a sensing upper limit value and a sensing lower limit value of the target control; When the first sensing value is less than the sensing lower limit value or greater than the sensing upper limit value, a first difference between the first sensing value and the sensing lower limit value is calculated, or a second difference between the first sensing value and the sensing upper limit value is calculated. If the absolute value of the first difference or the second difference is less than a preset threshold, the sensing lower limit value or the sensing upper limit value of the target control is adjusted based on the first sensing value to respond to the touch operation of the finger, trigger the activation of the button function, and improve the touch sensitivity of the target control.
2. The touch sensitivity adjustment method according to claim 1, characterized in that: If the absolute value of the first difference or the second difference is less than a preset threshold, adjusting the sensing lower limit or the sensing upper limit of the target control based on the first sensing value includes: If the number of times the first difference or the second difference is continuously detected is greater than a preset number, obtaining the preset number of first sensing values; The sensing lower limit value or the sensing upper limit value of the target control is adjusted based on the preset number of the first sensing values.
3. The touch sensitivity adjustment method according to claim 2, characterized in that: The sensing lower limit value or the sensing upper limit value is calculated based on a preset data set, and the preset data set includes multiple sets of sample touch data; The adjusting the sensing lower limit value or the sensing upper limit value of the target control based on the preset number of the first sensing values includes: taking the preset number of the first sensing values as a new set of sample touch data and adding the new set to the preset data set; The sensing lower limit value or the sensing upper limit value of the target control is adjusted according to the added preset data set.
4. The touch sensitivity adjustment method according to claim 3, characterized in that: The adjusting the sensing lower limit value or the sensing upper limit value of the target control according to the added preset data set includes: Determining a second sensing value of each set of sample touch data in the added preset data set; determining a maximum value and a minimum value from a plurality of said second sensed values; If the maximum value is greater than the upper limit of sensing, adjusting the upper limit of sensing to the maximum value; If the minimum value is smaller than the sensing lower limit value, the sensing lower limit value is adjusted to the minimum value.
5. The touch sensitivity adjustment method according to any one of claims 1 to 4, characterized in that: After detecting the touch operation of the finger and generating the first sensing value, the method further includes: When the first sensing value is not less than the sensing lower limit value and not greater than the sensing upper limit value, the touch operation is responded to.
6. The touch sensitivity adjustment method according to claim 1, characterized in that: After detecting the touch operation of the finger and generating the first sensing value, the method further includes: When the first sensing value is not less than a response threshold and not greater than the sensing upper limit, the touch operation is responded to, and the response threshold is less than the sensing upper limit and not less than the sensing lower limit.
7. The touch sensitivity adjustment method according to claim 6, characterized in that: When the first sensing value is less than the sensing lower limit or greater than the sensing upper limit, after adjusting the sensing lower limit or the sensing upper limit based on the first sensing value, the method further includes: The response threshold is adjusted according to the adjusted lower sensing limit value or upper sensing limit value.
8. A touch sensitivity adjustment device, characterized in that: include: a touch detection module, configured to detect a touch operation by a finger and obtain a first sensing value generated by the touch operation, wherein the first sensing value is the difference between a total sensing value obtained during the finger touch operation and an original sensing value corresponding to a parasitic capacitance in the touch panel or touch key; A data acquisition module, configured to determine a target control corresponding to the touch operation, and acquire an upper sensing limit value and a lower sensing limit value of the target control; A data processing module is used to calculate a first difference between the first sensing value and the sensing lower limit value, or calculate a second difference between the first sensing value and the sensing upper limit value when the first sensing value is less than the sensing lower limit value or greater than the sensing upper limit value; if the absolute value of the first difference or the second difference is less than a preset threshold, adjust the sensing lower limit value or the sensing upper limit value of the target control based on the first sensing value to respond to the touch operation of the finger, trigger the activation of the button function, and improve the touch sensitivity of the target control.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is run on a computer, the computer is enabled to execute the touch sensitivity adjustment method according to any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, wherein: The processor is configured to execute the touch sensitivity adjustment method according to any one of claims 1 to 7 by calling the computer program.
Citation Information
Patent Citations
Method and device for dynamically adjusting sensitivity of touch screen
CN104881174A