Sensitivity adjusting method and device, electronic equipment, storage medium and computer program product
By obtaining the touch button data triggered by the conductor and calculating the sensitivity threshold, the problem of inaccurate touch button sensitivity of the smart device is solved, and the accuracy of sensitivity and user experience are improved.
Patent Information
- Application Number
- CN202510374300.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-07-01
AI Technical Summary
The touch button sensitivity of the smart device is preset and fixed. It is affected by structural part tolerances, electronic parts errors and assembly tolerances, resulting in low sensitivity accuracy and different performances.
By acquiring data generated by triggering the touch button setting number using the conductive body with a set diameter, the sensitivity threshold of the touch button is determined. The method includes triggering effective and invalid touch data using conductors of different diameters, based on which sensitivity thresholds are calculated.
The accuracy of the touch button sensitivity threshold is improved, so that the sensitivity thresholds of different touch buttons can be different, and the consistency of the user experience is improved.
Smart Images

Figure CN120233906A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch technology, and in particular, to a sensitivity adjustment method, device, electronic device, storage medium, and computer program product. Background Art
[0002] Currently, the sensitivity of the touch keys of each intelligent device is preset, and once the sensitivity is determined, the sensitivity of the touch keys of this type of intelligent device will not change. However, each intelligent device is affected by factors such as structural part tolerances, electronic component errors, and assembly tolerances, resulting in different performances of the touch keys of the intelligent device under the same sensitivity, either not sensitive enough or too sensitive, and there is a problem of low sensitivity accuracy. Summary of the Invention
[0003] To solve the related technical problems, embodiments of this application provide a sensitivity adjustment method, device, electronic device, storage medium, and computer program product.
[0004] The technical solution of the embodiments of this application is implemented as follows:
[0005] Embodiments of this application provide a sensitivity adjustment method, and the method includes:
[0006] Obtain first data, where the first data includes data generated by triggering a touch key a set number of times using a conductor with a set diameter;
[0007] Determine a sensitivity threshold of the touch key based on the first data.
[0008] In the above solution, the first data includes second data and third data; determining the sensitivity threshold of the touch key based on the first data includes:
[0009] Determine the sensitivity threshold of the touch key based on the second data and the third data; where
[0010] the second data includes valid touch data generated by triggering the touch key a first set number of times using at least one conductor with a first set diameter, and the third data includes invalid touch data generated by triggering the touch key a second set number of times using at least one conductor with a second set diameter, and the at least one first set diameter is greater than the at least one second set diameter.
[0011] In the above solution, determining the sensitivity threshold of the touch key based on the second data and the third data includes one or more of the following:
[0012] Based on the first value and the second value, determine the first sensitivity threshold of the touch button; the first value represents the average value of the second data, and the second value represents the average value of the third data;
[0013] Based on the third value and the fourth value, determine the second sensitivity threshold of the touch button; the third value represents the minimum value in the second data, and the fourth value represents the maximum value in the third data;
[0014] When the first sensitivity threshold is greater than the fourth value and less than the third value, determine the maximum value of the first sensitivity threshold and the second sensitivity threshold as the final sensitivity threshold of the touch button;
[0015] When the first sensitivity threshold is less than or equal to the fourth value, and / or the first sensitivity threshold is greater than or equal to the third value, determine the second sensitivity threshold as the final sensitivity threshold of the touch button.
[0016] In the above solution, the first sensitivity threshold is the mean value determined based on the first value and the second value; and / or,
[0017] The second sensitivity threshold is the mean value determined based on the third value and the fourth value.
[0018] In the above solution, the first data includes the fourth data; determining the sensitivity threshold of the touch button based on the first data includes:
[0019] Determine the third sensitivity threshold of the touch button based on the fourth data; wherein, the fourth data includes valid touch data generated by triggering the touch button a third set number of times using a conductor with a third set diameter, the third set diameter is greater than the second set diameter and less than the first set diameter.
[0020] In the above solution, determining the third sensitivity threshold of the touch button based on the fourth data includes:
[0021] Determine the third sensitivity threshold of the touch button based on the fifth value, and the fifth value represents the average value of the data in the fourth data except for the maximum value and the minimum value.
[0022] The embodiment of the present application further provides a sensitivity adjustment device, and the device includes:
[0023] An acquisition module, configured to acquire first data, where the first data includes data generated by triggering a touch button a set number of times using a conductor with a set diameter;
[0024] A determination module, configured to determine a sensitivity threshold of the touch key based on the first data.
[0025] An embodiment of the present application further provides an electronic device, including a processor and a memory for storing a computer program that can run on the processor. Wherein, when the processor is used to run the computer program, it executes the steps of any of the above methods.
[0026] An embodiment of the present application further provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of any of the above methods.
[0027] An embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the steps of any of the above methods.
[0028] In the sensitivity adjustment method, device, electronic device, storage medium and computer program product provided by the embodiments of the present application, a sensitivity threshold of a touch key is determined based on first data, and the first data includes data generated by triggering the touch key a set number of times using a conductive body with a set diameter. In the above solution, by triggering the touch key with a conductive body of a set diameter, it is possible to simulate the triggering of the touch key by, for example, a human hand in actual applications, obtain the first data, and determine the sensitivity threshold of the touch key based on the first data, so that the sensitivity thresholds of different touch keys can be different, improving the accuracy of the sensitivity threshold. Description of the Drawings
[0029] Figure 1 Schematic diagram of the ink thickness distribution of the same type of intelligent device applicable to the embodiments of the present application in the related art;
[0030] Figure 2 Schematic diagram of the flow of a sensitivity adjustment method according to an embodiment of the present application;
[0031] Figure 3 Schematic diagram of the overall flow of the sensitivity adjustment method according to an embodiment of the present application;
[0032] Figure 4 Schematic diagram of the flow of determining the sensitivity threshold of a touch key according to an embodiment of the present application;
[0033] Figure 5 Schematic diagram of the flow of another method for determining the sensitivity threshold of a touch key according to an embodiment of the present application;
[0034] Figure 6 Schematic diagram of the structure of the sensitivity adjustment device according to an embodiment of the present application;
[0035] Figure 7 Schematic diagram of the structure of the electronic device according to an embodiment of the present application. Detailed implementation manners
[0036] Currently, the sensitivity of the touch keys of each intelligent device is preset, and once the sensitivity is determined, the sensitivity of the touch keys of this type of intelligent device will not change. However, each intelligent device is affected by factors such as structural part tolerances, electronic component errors, and assembly tolerances, resulting in different performances of the touch keys of intelligent devices under the same sensitivity, either not sensitive enough or too sensitive, and there is a problem of low sensitivity accuracy.
[0037] For example, the ink thickness of the same type of intelligent device may be different, and the ink thickness will affect the sensitivity of the touch keys of the intelligent device. Figure 1 The figure shows a schematic diagram of the ink thickness distribution of the same type of intelligent device applicable to the embodiments of the present application in the related art. Figure 1 In the figure, the horizontal axis is the ink thickness and the vertical axis is the number of intelligent devices; it can be seen that even the ink thickness of the same type of intelligent device is different, indicating that it is difficult to ensure the consistency of intelligent devices, resulting in different performances of the touch keys of intelligent devices under the same sensitivity. It should be understood that the sensitivities of different touch keys on the same intelligent device may also be different.
[0038] Based on this, in various embodiments of the present application, a sensitivity threshold of the touch key is determined based on first data, and the first data includes data generated by triggering the touch key a set number of times using a conductive body with a set diameter. In the above solution, by triggering the touch key with a conductive body of a set diameter, it is possible to simulate, for example, a human hand triggering the touch key in actual application to obtain the first data, and determine the sensitivity threshold of the touch key based on the first data, so that the sensitivity thresholds of different touch keys can be different, improving the accuracy of the sensitivity threshold. Determining the sensitivity threshold can improve the touch experience consistency of different touch keys on the same intelligent device and the touch experience consistency of intelligent devices in the same batch. That is, when a user uses the same touch operation to operate different touch keys on the same device or different devices in the same batch, a relatively stable and consistent response can be obtained, and the user's operation experience is better.
[0039] The following further describes the present application in detail with reference to the drawings and embodiments.
[0040] The embodiments of the present application provide a sensitivity adjustment method, which is applied to an electronic device. The electronic device may have a display screen or a display function, or may be connected to a display screen; the electronic device includes a terminal and / or a device with a display screen or a display function, such as an intelligent home appliance device; the electronic device may be deployed on an intelligent device configured with touch keys, or may not be deployed on an intelligent device configured with touch keys, that is, the electronic device and the intelligent device are independent devices; the intelligent device may include intelligent home appliance devices, such as rice cookers, washing machines, air conditioners, etc. As Figure 2 shown, it includes:
[0041] Step 201: Obtain the first data.
[0042] Among them, the first data includes data generated by triggering a touch button a set number of times using a conductor with a set diameter.
[0043] Here, the method of triggering the touch button is not limited. It can be clicking the touch button or swiping on the touch button. The first data includes data generated by triggering the touch button a set number of times using a conductor with a set diameter. The material and shape of the conductor are not limited. For example, the conductor can be a copper rod. The data type of the first data is not limited. For example, the data type of the first data can be capacitance. The set diameter and the set number of times can be set according to actual needs. The first data can include the second data and the third data, or can include the fourth data. The second data and the fourth data represent valid touch data, and the third data represents invalid touch data; the valid touch data can trigger the set function or button event corresponding to the touch button, and the invalid touch data cannot trigger the set function or button event corresponding to the touch button. It should be understood that the larger the set diameter of the conductor, the larger the contact area with the touch button, and it is easier to generate valid touch data.
[0044] Step 202: Determine the sensitivity threshold of the touch button based on the first data.
[0045] Here, the first data can be processed or set operations can be performed to determine the sensitivity threshold of the touch button. For example, according to the set algorithm or method for calculating the sensitivity threshold of the touch button, the first data is processed to obtain the sensitivity threshold of the touch button.
[0046] In the case where the first data includes the second data and the third data, determining the sensitivity threshold of the touch button based on the first data can be determining the sensitivity threshold of the touch button based on the second data and the third data; in the case where the first data includes the fourth data, determining the sensitivity threshold of the touch button based on the first data can also be determining the sensitivity threshold of the touch button based on the fourth data.
[0047] It should be noted that Steps 201 to 202 give a method for determining the sensitivity threshold of any touch button. If it is necessary to determine the sensitivity thresholds of multiple touch buttons, Steps 201 to 202 can be executed for each touch button to obtain the sensitivity thresholds of each touch button.
[0048] It should be understood that if the value of triggering the touch button is greater than or equal to the sensitivity threshold, it represents a valid trigger; if the value of triggering the touch button is less than the sensitivity threshold, it represents an invalid trigger.
[0049] In this embodiment, by triggering the touch button with a conductor of a set diameter, it is possible to simulate the triggering of the touch button by, for example, a human hand in actual applications, obtain first data, and determine the sensitivity threshold of the touch button based on the first data, so that the sensitivity thresholds of different touch buttons can be different, improving the accuracy of the sensitivity threshold and enhancing the user experience.
[0050] In one embodiment, the first data includes second data and third data; the determining the sensitivity threshold of the touch button based on the first data includes:
[0051] Determining the sensitivity threshold of the touch button based on the second data and the third data; where
[0052] the second data includes valid touch data generated by triggering the touch button a first set number of times with at least one conductor of a first set diameter, and the third data includes invalid touch data generated by triggering the touch button a second set number of times with at least one conductor of a second set diameter, and the at least one first set diameter is greater than the at least one second set diameter.
[0053] It should be noted that the conductors of the first set diameter and the conductors of the second set diameter are made of the same material, and other characteristics such as length can be different or the same; the triggering parameters for triggering the touch button with at least one conductor of the first set diameter and the triggering parameters for triggering the touch button with at least one conductor of the second set diameter can be different or the same; the triggering parameters include but are not limited to triggering force and / or triggering duration.
[0054] Here, to determine the sensitivity threshold of the touch button based on the second data and the third data, the sensitivity threshold of the touch button can be determined by the average value of the second data and the average value of the third data; or the sensitivity threshold of the touch button can be determined by the minimum value in the second data and the maximum value in the third data.
[0055] Among them, the first set diameter and the second set diameter can be set according to actual needs. It should be noted that the different first set diameters among the at least one first set diameter can be different, and the different second set diameters among the at least one second set diameter can be different; the first set diameters corresponding to different intelligent devices can be different, and the second set diameters corresponding to different intelligent devices can also be different; different touch buttons of the same intelligent device can be tested with conductors of the same or different first set diameters to obtain the second data corresponding to different touch buttons; different touch buttons of the same intelligent device can be tested with conductors of the same or different second set diameters to obtain the third data corresponding to different touch buttons. The first set number and the second set number can be set according to actual needs, and the first set number and the second set number can be the same or different.
[0056] In this embodiment, the sensitivity threshold of the touch button is determined by valid touch data and invalid touch data, with a more comprehensive consideration, which can improve the accuracy of the sensitivity threshold of the touch button.
[0057] In one embodiment, determining the sensitivity threshold of the touch button based on the second data and the third data includes one or more of the following:
[0058] Based on a first value and a second value, determine a first sensitivity threshold of the touch button; the first value represents the average value of the second data, and the second value represents the average value of the third data;
[0059] Based on a third value and a fourth value, determine a second sensitivity threshold of the touch button; the third value represents the minimum value in the second data, and the fourth value represents the maximum value in the third data;
[0060] When the first sensitivity threshold is greater than the fourth value and the first sensitivity threshold is less than the third value, determine the maximum value of the first sensitivity threshold and the second sensitivity threshold as the final sensitivity threshold of the touch button;
[0061] When the first sensitivity threshold is less than or equal to the fourth value, and / or the first sensitivity threshold is greater than or equal to the third value, determine the second sensitivity threshold as the final sensitivity threshold of the touch button.
[0062] Here, determining the first sensitivity threshold of the touch button based on the first value and the second value includes:
[0063] Perform a weighted sum of the first value and the second value to obtain the first sensitivity threshold of the touch button; or, take the average of the first value and the second value to obtain the first sensitivity threshold of the touch button.
[0064] Determining the second sensitivity threshold of the touch button based on the third value and the fourth value includes:
[0065] Take the average of the third value and the fourth value to obtain the second sensitivity threshold of the touch button; or,
[0066] Perform a weighted sum of the third value and the fourth value to obtain the second sensitivity threshold of the touch button.
[0067] The first sensitivity threshold or the second sensitivity threshold can be used as the final sensitivity threshold of the touch button. Alternatively, the first sensitivity threshold can be compared with the third value and the fourth value respectively, and the final sensitivity threshold can be determined from the first sensitivity threshold or the second sensitivity threshold based on the comparison results.
[0068] In this embodiment, the method for determining the sensitivity threshold of the touch button based on the second data and the third data is clarified, which improves the determination efficiency of the sensitivity threshold of the touch button. Also, considering different situations, the first sensitivity threshold or the second sensitivity threshold is determined as the final sensitivity threshold of the touch button, further improving the accuracy of the final sensitivity threshold of the touch button.
[0069] In one embodiment, the first sensitivity threshold is the mean value determined based on the first value and the second value; and / or,
[0070] The second sensitivity threshold is the mean value determined based on the third value and the fourth value.
[0071] In this embodiment, the determination method of the first sensitivity threshold and / or the second sensitivity threshold is clarified, which improves the determination efficiency of the first sensitivity threshold and / or the second sensitivity threshold.
[0072] In one embodiment, the first data includes the fourth data; the determining the sensitivity threshold of the touch button based on the first data includes:
[0073] Determining a third sensitivity threshold of the touch button based on the fourth data; wherein, the fourth data includes valid touch data generated by triggering the touch button a third set number of times using a conductor with a third set diameter, the third set diameter is greater than the second set diameter and less than the first set diameter.
[0074] Here, to determine the third sensitivity threshold of the touch button based on the fourth data, the third sensitivity threshold of the touch button can be determined by the average value of the fourth data, or can be determined by the average value of the data in the fourth data excluding the minimum value and the maximum value.
[0075] Among them, the third set diameter and the third set number of times can be set according to actual needs. It should be noted that the third set diameter is determined based on the first set diameter and the second set diameter. The third set diameter can be the minimum diameter of the conductor that can obtain effective touch data. The third set diameters corresponding to different intelligent devices can be different. The conductors with the same or different third set diameters can be used to test different touch keys of the same intelligent device to obtain the fourth data of different touch keys. For the same touch key of the intelligent device, one or more conductors with the third set diameter can be used to test to obtain the fourth data of the touch key. In practical applications, the third set number of times is greater than the first set number of times and greater than the second set number of times.
[0076] In this embodiment, determining the third sensitivity threshold of the touch key based on the fourth data simplifies the method of determining the sensitivity threshold of the touch key, can improve the determination efficiency of the sensitivity threshold of the touch key, and considering that the fourth data is effective touch data, the third set diameter is greater than the second set diameter, the third set diameter is less than the first set diameter, and the first set diameter is greater than the second set diameter, it can ensure that using the conductor with the third set diameter to trigger the touch key can obtain effective touch data, and ensure the accuracy of the determined third sensitivity threshold of the touch key.
[0077] In one embodiment, the determining the third sensitivity threshold of the touch key based on the fourth data includes:
[0078] Determining the third sensitivity threshold of the touch key based on a fifth value, where the fifth value represents the average value of the data in the fourth data except the maximum value and the minimum value.
[0079] Here, calculate the average value of the data in the fourth data except the maximum value and the minimum value to obtain the fifth value; determine the third sensitivity threshold of the touch key based on the fifth value. Among them, determining the third sensitivity threshold of the touch key based on the fifth value includes:
[0080] Determine the fifth value as the third sensitivity threshold of the touch key; or,
[0081] Determine the product of the fifth value and the set deviation as the third sensitivity threshold of the touch key, and the set deviation can be set according to actual needs.
[0082] In this embodiment, clearly determining the third sensitivity threshold of the touch key based on the fifth value can improve the determination efficiency of the sensitivity threshold of the touch key, and the fifth value represents the average value of the data in the fourth data except the maximum value and the minimum value, excluding the interference of the minimum value and the maximum value in the fourth data, improving the accuracy of the fifth value, and further improving the accuracy of the third sensitivity threshold of the touch key.
[0083] The following further describes the present application in detail with application examples. The overall flow diagram of the sensitivity adjustment method is shown as Figure 3 follows, including the following steps:
[0084] Step 1: Start.
[0085] Specifically, for any touch button, start to determine the sensitivity threshold of the touch button.
[0086] Step 2: Collect valid touch data.
[0087] Specifically, collect the second data and / or the fourth data. The second data includes valid touch data generated by triggering the touch button a first set number of times using at least one conductor with a first set diameter, and the fourth data includes valid touch data generated by triggering the touch button a third set number of times using at least one conductor with a third set diameter.
[0088] Step 3: Determine whether the collection of valid touch data is completed. If the amount of valid touch data reaches the first set number of times and / or the third set number of times, it indicates that the collection is completed, and execute Step 4 and Step 6; if the amount of valid touch data does not reach the first set number of times and / or the third set number of times, it indicates that the collection is not completed, and return to execute Step 2.
[0089] Step 4: Collect invalid touch data.
[0090] Specifically, collect the third data. The third data includes invalid touch data generated by triggering the touch button a second set number of times using at least one conductor with a second set diameter.
[0091] Step 5: Determine whether the collection of invalid touch data is completed. If the amount of invalid touch data reaches the second set number of times, it indicates that the collection is completed, and execute Step 6; if the amount of invalid touch data does not reach the second set number of times, it indicates that the collection is not completed, and return to execute Step 4.
[0092] Step 6: Store the data.
[0093] Specifically, store the valid touch data and the invalid touch data.
[0094] Step 7: Calculate the sensitivity threshold.
[0095] Specifically, based on the second data and the third data, or based on the fourth data, determine the sensitivity threshold of the touch button.
[0096] Step 8: Verify and store the sensitivity threshold of the touch button.
[0097] Specifically, when the calculated sensitivity threshold of the touch button passes the verification, store the sensitivity threshold of the touch button. It should be noted that the calculated sensitivity threshold of the touch button can be verified by artificial or intelligent devices. If it meets the requirements, the verification passes; if it does not meet the requirements, the verification fails.
[0098] Step Nine: Complete.
[0099] Specifically, the determination of the sensitivity threshold of the touch button is completed; if there are other touch buttons, continue to determine the sensitivity threshold of the next touch button.
[0100] Taking an intelligent device with 6 touch buttons as an example, where the intelligent device uses a 9-millimeter (mm) copper rod trigger as a valid trigger and a 5-mm copper rod trigger as an invalid trigger, the flow schematic diagram for determining the sensitivity threshold of the touch button based on the second data and the third data is as Figure 4 shown, including the following steps:
[0101] Step 1: Start.
[0102] Specifically, start determining the sensitivity threshold of the touch button for the intelligent device.
[0103] Step 2: Prepare to adjust the touch button.
[0104] Specifically, prepare to start determining the sensitivity threshold of the first touch button of the intelligent device. It should be understood that subsequently, the second, third touch buttons are determined in sequence until all 6 touch buttons of the intelligent device are determined.
[0105] Step 3: Collect the second data.
[0106] Specifically, use a 9-mm copper rod to trigger the corresponding touch button.
[0107] Step 4: Determine whether the first set number of triggers, for example, 10 times, is completed. If it is completed, execute Step 5 and Step 7; if it is not completed, return to execute Step 3.
[0108] Step 5: Collect the third data.
[0109] Specifically, use a 5-mm copper rod to trigger the corresponding touch button.
[0110] Step 6: Determine whether the second set number of triggers, for example, 10 times, is completed. If it is completed, execute Step 7; if it is not completed, return to execute Step 5.
[0111] Step 7: Store and analyze the second data and the third data.
[0112] Specifically, the second data is marked as M1 to M10 for storage, and the third data is marked as N1 to N10 for storage. Determine the average value of the second data, which is the first value, denoted as AverM; determine the minimum value in the second data, which is the third value, denoted as MinM; determine the average value of the third data, which is the second value, denoted as AverN; determine the maximum value in the third data, which is the fourth value, denoted as MaxN.
[0113] Step 8: Calculate the sensitivity threshold of the touch button.
[0114] Specifically, the first sensitivity threshold Threshold1 = (AverM + AverN) / 2;
[0115] The second sensitivity threshold Threshold2 = (MinM + MaxN) / 2;
[0116] In the case where MaxN < Threshold1 < MinM, determine the maximum value of the first sensitivity threshold and the second sensitivity threshold as the final sensitivity threshold of the touch button; in the case where the first sensitivity threshold is less than or equal to the fourth value, and / or the first sensitivity threshold is greater than or equal to the third value, determine the second sensitivity threshold as the final sensitivity threshold of the touch button.
[0117] Step 9: Verify and store the sensitivity threshold of the touch button.
[0118] Specifically, in the case where the calculated sensitivity threshold of the touch button passes the verification, store the sensitivity threshold of the touch button. It should be noted that the calculated sensitivity threshold of the touch button can be verified by manual or intelligent device. If it meets the requirements, the verification passes; if it does not meet the requirements, the verification fails.
[0119] Step 10: Determine whether the sensitivity thresholds of all touch buttons are determined. If so, execute Step 11; if not, return to execute Step 2.
[0120] Step 11: End.
[0121] Specifically, the sensitivity thresholds of all touch buttons of the intelligent device are determined, and the process ends.
[0122] Based on the fourth data, the schematic flow chart for determining the sensitivity threshold of the touch button is as Figure 5 shown, including the following steps:
[0123] Step a: Start.
[0124] Specifically, start to determine the sensitivity threshold of the touch button for the intelligent device.
[0125] Step b: Preparation for adjusting touch buttons.
[0126] Specifically, prepare to start determining the sensitivity threshold of the first touch button of the smart device. It should be understood that subsequently, the second, third touch buttons are determined in sequence until all 6 touch buttons of the smart device are determined.
[0127] Step c: Fourth data acquisition.
[0128] Specifically, use a 7mm copper rod to trigger the corresponding touch button.
[0129] Step d: Determine whether the third set number of times, for example 30 times, of triggering is completed. If it is completed, execute step e; if not, return to execute step c.
[0130] Step e: Determine and store the sensitivity threshold of the touch button.
[0131] Specifically, mark the fourth data as Q1 - Q30 for storage, determine the average value of the data in the fourth data except for the maximum value and the minimum value as the sensitivity threshold of the touch button, and store the sensitivity threshold of the touch button.
[0132] Step f: Determine whether the sensitivity thresholds of all touch buttons are determined. If so, execute step g; if not, return to execute step b.
[0133] Step g: End.
[0134] Specifically, the sensitivity thresholds of all touch buttons of the smart device are determined, and the process ends.
[0135] The sensitivity adjustment method provided in this application automatically adjusts the sensitivity threshold of each touch button of each smart device according to the characteristics of the smart device itself, improves the accuracy of the sensitivity threshold of the touch button, and enhances the user experience.
[0136] To implement a sensitivity adjustment method provided in an embodiment of this application, an embodiment of this application also provides a sensitivity adjustment device, as Figure 6 shown, the device includes:
[0137] An acquisition module 601, configured to acquire first data, where the first data includes data generated by triggering a touch button a set number of times using a conductor with a set diameter;
[0138] A determination module 602, configured to determine the sensitivity threshold of the touch button based on the first data.
[0139] In one embodiment, the first data includes second data and third data; the determining module 602 is specifically configured to determine a sensitivity threshold of the touch button based on the second data and the third data; wherein, the second data includes valid touch data generated by triggering the touch button a first set number of times using at least one conductor with a first set diameter, the third data includes invalid touch data generated by triggering the touch button a second set number of times using at least one conductor with a second set diameter, and the at least one first set diameter is greater than the at least one second set diameter.
[0140] In one embodiment, the determining module 602 is specifically configured to perform one or more of the following:
[0141] Determine a first sensitivity threshold of the touch button based on a first value and a second value; the first value represents an average value of the second data, and the second value represents an average value of the third data;
[0142] Determine a second sensitivity threshold of the touch button based on a third value and a fourth value; the third value represents a minimum value in the second data, and the fourth value represents a maximum value in the third data;
[0143] In a case where the first sensitivity threshold is greater than the fourth value and the first sensitivity threshold is less than the third value, determine a maximum value between the first sensitivity threshold and the second sensitivity threshold as the final sensitivity threshold of the touch button;
[0144] In a case where the first sensitivity threshold is less than or equal to the fourth value, and / or the first sensitivity threshold is greater than or equal to the third value, determine the second sensitivity threshold as the final sensitivity threshold of the touch button.
[0145] In one embodiment, the first sensitivity threshold is an average value determined based on the first value and the second value; and / or,
[0146] The second sensitivity threshold is an average value determined based on the third value and the fourth value.
[0147] In one embodiment, the first data includes fourth data; the determining module 602 is specifically configured to determine a third sensitivity threshold of the touch button based on the fourth data; wherein, the fourth data includes valid touch data generated by triggering the touch button a third set number of times using a conductor with a third set diameter, the third set diameter is greater than the second set diameter and less than the first set diameter.
[0148] In one embodiment, the determining module 602 is specifically configured to determine a third sensitivity threshold of the touch button based on a fifth value, where the fifth value represents an average value of data in the fourth data except for the maximum value and the minimum value.
[0149] In practical applications, the obtaining module 601 and the determining module 602 can be implemented by a processor in the sensitivity adjustment device in combination with a communication interface.
[0150] It should be noted that when the sensitivity adjustment device provided in the above embodiment performs sensitivity adjustment, only the division of the above program modules is used for illustration. In practical applications, the above processing can be allocated to different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-described processing. In addition, the sensitivity adjustment device provided in the above embodiment and the method embodiment of the sensitivity adjustment method belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be elaborated here.
[0151] Based on the hardware implementation of the above program modules, and in order to implement a sensitivity adjustment method provided in an embodiment of the present application, an embodiment of the present application also provides an electronic device, such as Figure 7 shown, the electronic device 700 includes:
[0152] A communication interface 701 capable of interacting with other electronic devices;
[0153] A processor 702, connected to the communication interface 701 to implement information interaction with other electronic devices, and when running a computer program, executes the method provided by one or more of the above technical solutions. And the computer program is stored on the memory 703.
[0154] Specifically, the communication interface 701 is used to obtain first data, where the first data includes data generated by triggering a touch button a set number of times using a conductor with a set diameter.
[0155] The processor 702 is used to determine a sensitivity threshold of the touch button based on the first data.
[0156] In one embodiment, the first data includes second data and third data; the processor 702 is specifically configured to determine a sensitivity threshold of the touch button based on the second data and the third data; where the second data includes valid touch data generated by triggering the touch button a first set number of times using at least one conductor with a first set diameter, and the third data includes invalid touch data generated by triggering the touch button a second set number of times using at least one conductor with a second set diameter, and the at least one first set diameter is greater than the at least one second set diameter.
[0157] In one embodiment, the processor 702 is specifically configured to perform one or more of the following:
[0158] Based on a first value and a second value, determine a first sensitivity threshold of the touch button; the first value represents an average value of the second data, and the second value represents an average value of the third data;
[0159] Based on a third value and a fourth value, determine a second sensitivity threshold of the touch button; the third value represents a minimum value in the second data, and the fourth value represents a maximum value in the third data;
[0160] In a case where the first sensitivity threshold is greater than the fourth value and less than the third value, determine the maximum value of the first sensitivity threshold and the second sensitivity threshold as the final sensitivity threshold of the touch button;
[0161] In a case where the first sensitivity threshold is less than or equal to the fourth value, and / or the first sensitivity threshold is greater than or equal to the third value, determine the second sensitivity threshold as the final sensitivity threshold of the touch button.
[0162] In one embodiment, the first sensitivity threshold is an average value determined based on the first value and the second value; and / or,
[0163] The second sensitivity threshold is an average value determined based on the third value and the fourth value.
[0164] In one embodiment, the first data includes fourth data; the processor 702 is specifically configured to determine a third sensitivity threshold of the touch button based on the fourth data; wherein, the fourth data includes valid touch data generated by triggering the touch button a third set number of times using a conductor with a third set diameter, the third set diameter is greater than a second set diameter and less than a first set diameter.
[0165] In one embodiment, the processor 702 is specifically configured to determine the third sensitivity threshold of the touch button based on a fifth value, and the fifth value represents an average value of the data in the fourth data excluding the maximum value and the minimum value.
[0166] It should be noted that: The specific processing procedures of the communication interface 701 and the processor 702 can be understood with reference to the above method.
[0167] Of course, in practical applications, each component in the electronic device 700 is coupled together through the bus system 704. It can be understood that the bus system 704 is used to implement the connection and communication between these components. In addition to the data bus, the bus system 704 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 7 all kinds of buses are labeled as the bus system 704.
[0168] The memory 703 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device 700. Examples of these data include: any computer program for operating on the electronic device 700.
[0169] The method disclosed in the embodiment of the present application above can be applied to the processor 702 or implemented by the processor 702. The processor 702 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 702 or by instructions in the form of software. The above-mentioned processor 702 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 702 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. Combining the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as being executed and completed by the hardware decoding processor, or by a combination of the hardware and software modules in the decoding processor. The software module may be located in the storage medium, and this storage medium is located in the memory 703. The processor 702 reads the information in the memory 703 and combines its hardware to complete the steps of the foregoing method.
[0170] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application-specific integrated circuits (ASICs, Application Specific Integrated Circuits), DSPs, programmable logic devices (PLDs, Programmable Logic Devices), complex programmable logic devices (CPLDs, Complex Programmable Logic Devices), field-programmable gate arrays (FPGAs, Field-Programmable Gate Arrays), general-purpose processors, controllers, microcontroller units (MCUs, Micro Controller Units), microprocessors (Microprocessors), or other electronic components, and is used to execute the foregoing method.
[0171] It can be understood that the memory 703 in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), sync link dynamic random access memory (SLDRAM), direct rambus random access memory (DRRAM).The memory 703 described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memories.
[0172] In an exemplary embodiment, the embodiments of the present application further provide an electronic device, including a processor and a memory for storing a computer program that can run on the processor. Wherein, when the processor is used to run the computer program, it executes the steps of any of the above methods.
[0173] The embodiments of the present application further provide a storage medium, specifically a computer-readable storage medium, such as a memory 703 that stores a computer program. The above computer program can be executed by the processor 702 of the electronic device 700 to complete the steps of the foregoing method. The computer-readable storage medium can be a FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM, etc.
[0174] The embodiments of the present application further provide a computer program product, including a computer program that implements the steps of any of the above methods when executed by a processor.
[0175] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "one or more" in this article means any one or at least two of multiple items in any combination. For example, including one or more of A, B, and C can represent any one or at least two or more elements selected from the set composed of A, B, and C.
[0176] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0177] The above is only a preferred embodiment of the present application and is not used to limit the protection scope of the present application.
Claims
1. A sensitivity adjustment method, characterized in that: The method comprises: Acquire first data, wherein the first data includes data generated by using a conductive body of a set diameter to trigger a touch key a set number of times; A sensitivity threshold of the touch key is determined based on the first data.
2. The method according to claim 1, characterized in that The first data includes second data and third data; and determining the sensitivity threshold of the touch key based on the first data includes: The sensitivity threshold of the touch key is determined based on the second data and the third data; wherein, The second data includes valid touch data generated by triggering the touch key a first set number of times using at least one conductor of a first set diameter, and the third data includes invalid touch data generated by triggering the touch key a second set number of times using at least one conductor of a second set diameter, wherein the at least one first set diameter is larger than the at least one second set diameter.
3. The method according to claim 2, characterized in that The determining the sensitivity threshold of the touch key based on the second data and the third data includes one or more of the following: Determine a first sensitivity threshold of the touch key based on a first value and a second value, wherein the first value represents an average value of the second data, and the second value represents an average value of the third data; Determine a second sensitivity threshold of the touch key based on a third value and a fourth value, wherein the third value represents a minimum value in the second data, and the fourth value represents a maximum value in the third data; When the first sensitivity threshold is greater than the fourth value and the first sensitivity threshold is less than the third value, determining the maximum value of the first sensitivity threshold and the second sensitivity threshold as the final sensitivity threshold of the touch key; When the first sensitivity threshold is less than or equal to the fourth value, and / or the first sensitivity threshold is greater than or equal to the third value, the second sensitivity threshold is determined as the final sensitivity threshold of the touch key.
4. The method according to claim 3, characterized in that The first sensitivity threshold is a mean value determined based on the first value and the second value; and / or, The second sensitivity threshold is a mean value determined based on the third value and the fourth value.
5. The method according to claim 1, characterized in that The first data includes fourth data; and determining the sensitivity threshold of the touch key based on the first data includes: The third sensitivity threshold of the touch button is determined based on the fourth data; wherein the fourth data includes effective touch data generated by triggering the touch button a third set number of times using a conductor of a third set diameter, the third set diameter is larger than the second set diameter, and the third set diameter is smaller than the first set diameter.
6. The method according to claim 5, characterized in that The determining the third sensitivity threshold of the touch key based on the fourth data includes: A third sensitivity threshold of the touch key is determined based on a fifth value, where the fifth value represents an average value of the data except the maximum value and the minimum value in the fourth data.
7. A sensitivity adjustment device, characterized in that: The device comprises: An acquisition module, configured to acquire first data, wherein the first data includes data generated by using a conductor of a set diameter to trigger a touch key a set number of times; A determination module is used to determine a sensitivity threshold of the touch key based on the first data.
8. An electronic device, characterized in that: comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 6.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.