CN110672262A - Pressure key threshold calibration method and device, storage medium and electronic equipment - Google Patents

Pressure key threshold calibration method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110672262A
CN110672262A CN201810719068.3A CN201810719068A CN110672262A CN 110672262 A CN110672262 A CN 110672262A CN 201810719068 A CN201810719068 A CN 201810719068A CN 110672262 A CN110672262 A CN 110672262A
Authority
CN
China
Prior art keywords
pressure
pressing pressure
pressing
pressure value
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810719068.3A
Other languages
Chinese (zh)
Other versions
CN110672262B (en
Inventor
袁石林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810719068.3A priority Critical patent/CN110672262B/en
Publication of CN110672262A publication Critical patent/CN110672262A/en
Application granted granted Critical
Publication of CN110672262B publication Critical patent/CN110672262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L25/00Testing or calibrating of apparatus for measuring force, torque, work, mechanical power, or mechanical efficiency

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the application provides a method and a device for calibrating a pressure key threshold, a storage medium and electronic equipment, wherein the method for calibrating the pressure key threshold comprises the following steps: acquiring a plurality of pressing pressure values through a pressure sensor, wherein each pressing pressure value is greater than a first pressure threshold value; sequencing the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue; acquiring an Nth pressing pressure value from the sorting queue according to a preset rule; calibrating the first pressure threshold according to the Nth compression pressure value. In the pressure key threshold calibration method, the calibrated pressure threshold is closer to the use habit of a user. Therefore, the pressure key can more accurately detect the pressing operation of the user, and the occurrence of misoperation can be reduced.

Description

Pressure key threshold calibration method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method and an apparatus for calibrating a pressure key threshold, a storage medium, and an electronic device.
Background
With the development of electronic technology, electronic devices such as smart phones have more and more abundant functions, and users use the electronic devices more and more frequently.
Generally, a key is provided on an electronic device. The key responds to the operation of the user by detecting the pressing pressure of the user. As the use time of the electronic device becomes longer, or the environment (for example, temperature, humidity, etc.) in which the user uses the electronic device changes, the detection sensitivity of the key on the electronic device also changes. Therefore, the electronic device detects the operation of the user inaccurately, and the electronic device is easy to operate by mistake.
Disclosure of Invention
The embodiment of the application provides a method and a device for calibrating a pressure key threshold, a storage medium and electronic equipment, which can reduce the times of misoperation of the electronic equipment.
The embodiment of the application provides a pressure key threshold calibration method, which comprises the following steps:
acquiring a plurality of pressing pressure values through a pressure sensor, wherein each pressing pressure value is greater than a first pressure threshold value;
sequencing the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue;
acquiring an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer;
calibrating the first pressure threshold according to the Nth compression pressure value.
The embodiment of the present application further provides a pressure button threshold calibration device, including:
the first acquisition module is used for acquiring a plurality of pressing pressure values through a pressure sensor, and each pressing pressure value is larger than a first pressure threshold value;
the sorting module is used for sorting the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sorting queue;
the second obtaining module is used for obtaining an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer;
and the calibration module is used for calibrating the first pressure threshold value according to the Nth pressing pressure value.
The embodiment of the application also provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is enabled to execute the pressure key threshold calibration method.
The embodiment of the application further provides electronic equipment, which comprises a storage circuit and a processing circuit, wherein a computer program is stored in the storage circuit, and the processing circuit is used for executing the pressure key threshold calibration method by calling the computer program stored in the storage circuit.
An embodiment of the present application further provides an electronic device, the electronic device includes a pressure sensor and a processing circuit, the pressure sensor with processing circuit electric connection, wherein:
the pressure sensor is used for acquiring a plurality of pressing pressure values, and each pressing pressure value is larger than a first pressure threshold value;
the processing circuit is used for sequencing the plurality of pressing pressure values according to the magnitude of each pressing pressure value to obtain a sequencing queue;
the processing circuit is further configured to obtain an nth pressing pressure value from the sorting queue according to a preset rule, where N is a positive integer;
the processing circuit is further configured to calibrate the first pressure threshold according to the nth compression pressure value.
The method for calibrating the pressure key threshold provided by the embodiment of the application comprises the following steps: acquiring a plurality of pressing pressure values through a pressure sensor, wherein each pressing pressure value is greater than a first pressure threshold value; sequencing the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue; acquiring an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer; calibrating the first pressure threshold according to the Nth compression pressure value. In the method for calibrating the pressure key threshold, because the electronic device obtains a plurality of pressing pressure values in the using process of the user and obtains the Nth pressing pressure value from the plurality of pressing pressure values, after the first pressure threshold is calibrated according to the Nth pressing pressure value, the calibrated pressure threshold is closer to the using habit of the user. Therefore, the pressure key can more accurately detect the pressing operation of the user, and the occurrence of misoperation can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is an exploded view of the electronic device shown in fig. 1.
Fig. 4 is a schematic diagram of a key circuit in an electronic device according to an embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating a method for calibrating a threshold of a pressure button according to an embodiment of the present disclosure.
Fig. 6 is another schematic flow chart of a pressure key threshold calibration method according to an embodiment of the present disclosure.
Fig. 7 is a schematic flowchart of a method for calibrating a threshold of a pressure button according to an embodiment of the present disclosure.
Fig. 8 is a schematic flow chart of a pressure key threshold calibration method according to an embodiment of the present disclosure.
Fig. 9 is a schematic structural diagram of a pressure key threshold calibration apparatus according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, electronic device, system comprising a list of steps is not necessarily limited to those steps or modules or units explicitly listed, may include steps or modules or units not explicitly listed, and may include other steps or modules or units inherent to such process, method, apparatus, electronic device, or system.
The embodiment of the application provides electronic equipment. The electronic device may be a smart phone, a tablet computer, or other devices, and may also be a game device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playing device, a video playing device, a notebook, a desktop computing device, or other devices.
In some embodiments, referring to fig. 1 and 3, the electronic device 100 includes a display screen 11, a middle frame 12, a circuit board 13, a battery 14, and a rear cover 15.
The display screen 11 may be mounted on the middle frame 12 and connected to the rear cover 15 through the middle frame 12 to form a display surface of the electronic device 100. The display screen 11 serves as a front case of the electronic device 100, and forms a housing of the electronic device 100 together with the rear cover 15 for accommodating other electronic elements or functional components of the electronic device 100. Meanwhile, the display screen 11 forms a display surface of the electronic apparatus 100 for displaying information such as images, texts, and the like. The display screen 11 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) display screen.
In some embodiments, a glass cover plate may be disposed over the display screen 11. The glass cover plate may cover the display screen 11 to protect the display screen 11 and prevent the display screen 11 from being scratched or damaged by water.
In some embodiments, as shown in FIG. 1, the display screen 11 may include a display area 111 and a non-display area 112. The display area 111 performs a display function of the display screen 11 for displaying information such as images and texts. The non-display area 112 may be used to set up functional elements such as a distance sensor, a receiver, and a touch electrode of a display screen. In some embodiments, the non-display area 112 may include at least one area located above and below the display area 111.
In some embodiments, as shown in FIG. 2, the display screen 11 may be a full-face screen. At this time, the display screen 11 may display information in a full screen, so that the electronic apparatus 100 has a large screen occupation ratio. The display screen 11 includes only the display region 111 and does not include the non-display region, or the area of the non-display region is small. In this case, functional components such as a distance sensor and an ambient light sensor in the electronic device 100 may be hidden under the display screen 11, and the fingerprint recognition module of the electronic device 100 may be disposed on the back of the electronic device 100.
The middle frame 12 may have a thin plate-like or sheet-like structure, or may have a hollow frame structure. The middle frame 12 may be accommodated in a housing formed by the display panel 11 and the rear cover 15. The middle frame 12 is used for providing a supporting function for the electronic components or functional modules in the electronic device 100, so as to mount the electronic components or functional modules in the electronic device together. For example, functional components such as a receiver, a circuit board, and a battery in the electronic apparatus may be mounted on the center frame 12 for fixing. In some embodiments, the material of the middle frame 12 may include metal or plastic.
The circuit board 13 is mounted inside the housing of the electronic device 100. The circuit board 13 may be a main board of the electronic device 100. The circuit board 13 is provided with a grounding point to realize grounding of the circuit board 13. The circuit board 13 has processing circuitry integrated thereon. The processing circuit is used for processing applications and data in the electronic device 100. One, two or more of the functional components such as a motor, a microphone, a speaker, a receiver, an earphone interface, a universal serial bus interface (USB interface), a distance sensor, an ambient light sensor, a gyroscope, etc. may also be integrated on the circuit board 13. Meanwhile, the display screen 11 may be electrically connected to the circuit board 13.
The battery 14 is mounted inside the housing of the electronic device 100. Wherein, the battery 14 can be electrically connected to the circuit board 13 to enable the battery 14 to supply power to the electronic device 100. Wherein, the circuit board 13 may be provided with a power management circuit. The power management circuit is used to distribute the voltage provided by battery 14 to the various electronic components in electronic device 100.
The rear cover 15 is used to form an outer contour of the electronic apparatus 100. The rear cover 15 may be integrally formed. In the forming process of the rear cover 15, structures such as a rear camera hole and a fingerprint identification module mounting hole can be formed on the rear cover 15.
In some embodiments, as shown in fig. 1 and 2, the electronic device 100 is provided with keys 16. The number of the keys 16 may be one or more. The keys 16 may be disposed on a bezel of the electronic device 100. The key 16 may be a pressure key. The key 16 is used for detecting a pressing operation of a user, so that the electronic device 100 can execute corresponding functions according to the pressing operation of the user, such as locking a screen, lighting the screen, turning on a mute mode, starting an application, and the like. The key 16 may be a mechanical key or a virtual touch key.
In some embodiments, referring to fig. 4, fig. 4 is a key circuit diagram corresponding to the key 16. The key 16 includes a pressure sensor 161 and a signal processing circuit 162 connected to the pressure sensor 161.
The pressure sensor 161 may include one or more piezoresistors R. When the piezoresistor is stressed, the resistance value of the piezoresistor changes, and the voltage on the piezoresistor changes accordingly, so that a corresponding electric signal is generated.
The signal processing circuit 162 may be disposed on the circuit board 13 of the electronic device 100. The signal processing circuit 162 includes a power amplifier PGA, an analog-to-digital converter ADC, a micro control unit MCU, and a processor AP, which are connected in sequence. The processor AP may be a processor of the electronic device 100. The electrical signal generated by the pressure sensor 161 is processed by the PGA, the ADC and the MCU in sequence and then transmitted to the processor AP. The AP responds to the processed electrical signal, so that the electronic device 100 performs a corresponding function.
The embodiment of the present application provides a method for calibrating a threshold of a pressure key, which can be applied to the electronic device 100.
As shown in fig. 5, the method for calibrating the pressure key threshold may include the following steps:
and 110, acquiring a plurality of pressing pressure values through the pressure sensor, wherein each pressing pressure value is greater than a first pressure threshold value.
During the use of the electronic device by the user, the electronic device can acquire a plurality of pressing pressure values of the user through the pressure sensor. For example, each time the user presses the pressure key, the electronic device responds to the pressing operation of the user, and the electronic device may acquire and record a pressing pressure value detected by the pressure sensor.
The electronic equipment is provided with a first pressure threshold value aiming at the pressure key. For example, the first pressure threshold may be 2N (newtons). The first pressure threshold represents a boundary line between a pressure value when the user successfully presses the pressure key and a pressure value when the user unsuccessfully presses the pressure key. That is, when the pressing pressure value of the user pressing the pressure key is greater than the first pressure threshold, the user is indicated to successfully press the pressure key, and at this time, the electronic device responds to the pressing operation of the user. And when the pressing pressure value of the user pressing the pressure key is smaller than or equal to the first pressure threshold value, the user does not successfully press the pressure key, and the error operation of the user may be performed at this time, so that the electronic device may not respond to the pressing operation of the user.
The electronic equipment obtains a plurality of pressing pressure values through the pressure sensor, wherein each pressing pressure value is larger than the first pressure threshold value.
And 120, sorting the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sorting queue.
After the electronic equipment acquires a plurality of pressing pressure values, the pressing pressure values can be sequenced according to the magnitude of each pressing pressure value, so that a sequencing queue is obtained. For example, if the number of the press pressure values acquired by the electronic device is 30, the 30 press pressure values may be sorted from small to large or from large to small to obtain a sorting queue.
And 130, acquiring an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer.
The electronic device may be provided with a preset rule. The preset rule is used for acquiring a certain pressing pressure value from a sequencing queue obtained by the electronic equipment. For example, the preset rule may be the first pressing pressure value from the head of the sorting queue to the back, or may also be the first pressing pressure value from the tail of the sorting queue to the front.
After the electronic equipment obtains the sorting queue, the Nth pressing pressure value can be obtained from the sorting queue according to the preset rule. Wherein N is a positive integer. For example, N may be 10, 20, etc.
140, calibrating the first pressure threshold according to the nth compression pressure value.
After the electronic device obtains the nth pressing pressure value from the sorting queue, the first pressure threshold value can be calibrated according to the nth pressing pressure value.
Because the electronic device obtains a plurality of pressing pressure values in the using process of the user and obtains the Nth pressing pressure value from the plurality of pressing pressure values, after the first pressure threshold value is calibrated according to the Nth pressing pressure value, the calibrated pressure threshold value is closer to the using habit of the user. Therefore, the pressure key can more accurately detect the pressing operation of the user, and the occurrence of misoperation can be reduced.
In some embodiments, as shown in fig. 6, step 110, acquiring a plurality of compression pressure values by the pressure sensor, comprises the steps of:
111, when the pressure sensor detects a pressing pressure value, judging whether the pressing pressure value is greater than a first pressure threshold value;
112, if the pressing pressure value is greater than the first pressure threshold, determining whether the duration of the pressure sensor continuously detecting the pressing pressure value is greater than a preset duration;
113, if the duration of the pressure sensor continuously detecting the pressing pressure value is longer than the preset duration, storing the pressing pressure value, and increasing the count of the pressing pressure value by 1;
step 120, sorting the plurality of pressing pressure values according to the magnitude of each pressing pressure value to obtain a sorting queue, including the following steps:
and 121, when the count of the pressing pressure values reaches a preset number, sorting the plurality of stored pressing pressure values according to the size of each pressing pressure value to obtain a sorting queue, wherein the preset number is greater than N.
During the use of the electronic device by the user, the electronic device may count the number of valid presses of the pressure key by the user.
When the pressure sensor in the pressure key detects a pressing pressure value, the electronic equipment judges whether the pressing pressure value is larger than a first pressure threshold value. If the pressing pressure value is not greater than the first pressure threshold value, that is, is less than or equal to the first pressure threshold value, it is determined that the pressing pressure of the pressing operation detected this time is too small. The operation detected this time can be regarded as a malfunction. The misoperation is a pressing operation caused by the fact that the user touches the pressure key unintentionally or another object (such as a table, a backpack, etc.) except the user touches the pressure key.
If the pressing pressure value is larger than the first pressure threshold value, the electronic equipment continues to judge whether the duration of the pressing pressure value continuously detected by the pressure sensor is larger than a preset duration. The preset time duration is a time duration value preset in the electronic device, for example, 100ms (milliseconds). The preset duration is used for further judging whether the pressing operation detected by the pressure key is misoperation. If the duration of the pressure value detected by the pressure sensor is not longer than the preset duration, that is, is less than or equal to the preset duration, it indicates that the duration of the detected pressing operation is too short. Then, the operation detected this time may also be regarded as an erroneous operation.
If the duration of the pressure sensor continuously detecting the pressing pressure value is longer than the preset duration, which indicates that the pressing pressure of the pressing operation detected by the pressure sensor at this time and the duration of the pressing operation both meet the conditions, the detected pressing operation is considered to be effective operation. At this time, the electronic device may store the detected pressing pressure value and increase the count of pressing pressure values by 1.
When the counting of the electronic equipment on the pressing pressure values reaches a preset number, the electronic equipment sorts the stored pressing pressure values according to the size of each pressing pressure value so as to obtain a sorting queue. Wherein the preset number is a value set in the electronic device. The preset number is greater than N. For example, the preset number may be 100. That is, each time the count of the press pressure values by the electronic device reaches 100, the electronic device may sort the stored 100 press pressure values and perform the subsequent pressure threshold calibration operation.
In some embodiments, as shown in fig. 6, step 140, calibrating the first pressure threshold according to the nth compression pressure value, comprises the steps of:
141, calculating a second pressure threshold according to the nth pressing pressure value and a preset pressure offset;
142, replacing the first pressure threshold with the second pressure threshold.
Wherein, the electronic equipment is provided with a preset pressure offset. The preset pressure offset is a pressure value. For example, the preset pressure offset may be 1N (newton).
After the electronic device obtains the nth pressing pressure value from the sorting queue, the second pressure threshold may be calculated according to the nth pressing pressure value and the preset pressure offset. Subsequently, the first pressure threshold is replaced with the second pressure threshold to enable calibration of the first pressure threshold. For example, if the first pressure threshold is 2N (newton) and the calculated second pressure threshold is 3N (newton), the electronic device replaces the first pressure threshold with 3N (newton), thereby completing the update of the pressure thresholds of the pressure keys in the electronic device.
In practical applications, the electronic device may continue to perform the above-mentioned pressure threshold calibration operation during the use of the user. That is, when the count of the pressed pressure values in the electronic device reaches the preset number, the pressure threshold of the pressure key can be calibrated, so that the pressure threshold of the pressure key can be continuously calibrated, and the detection sensitivity of the pressure key is better adapted to the use habit of a user.
In some embodiments, when calculating the second pressure threshold according to the nth compression pressure value and the preset pressure offset amount, the electronic device calculates according to the following formula:
F2=FN+Foffset
wherein, F2Is said second pressure threshold, FNIs the Nth pressing pressure value, FoffsetIs the preset pressure offset.
For example, the nth pressing pressure value F acquired by the electronic deviceNIs 2N (Newton), and the offset F of the preset pressureoffsetIs 1N (newton), then a second calculated pressure threshold F is obtained2It is 3N (Newton).
In some embodiments, as shown in fig. 7, the step 120 of sorting the plurality of pressing pressure values according to the magnitude of each of the pressing pressure values to obtain a sorting queue includes the following steps:
122, arranging the plurality of pressing pressure values in a descending order according to the magnitude of each pressing pressure value to obtain a descending order queue;
step 130, obtaining the nth pressing pressure value from the sorting queue according to a preset rule, including the following steps:
131, obtaining the Nth last pressing pressure value from the descending queue.
After the electronic device obtains the plurality of pressing pressure values, the plurality of pressing pressure values can be arranged in a descending order according to the size of each pressing pressure value, namely, the pressing pressure values are arranged in a descending order, so that a descending order queue is obtained. Subsequently, the electronic device obtains the Nth last pressing pressure value from the descending queue.
For example, the electronic device acquires 100 pressing pressure values. According to the principle of 10% failure in the pressing operation, the nth pressing pressure value acquired by the electronic device is the 11 th last pressing pressure value in the descending queue, namely the 11 th pressing pressure value from the tail to the front in the descending queue. Then N is 11 at this time.
In some embodiments, as shown in fig. 8, the step 120 of sorting the plurality of pressing pressure values according to the magnitude of each of the pressing pressure values to obtain a sorting queue includes the following steps:
123, arranging the plurality of pressing pressure values in an ascending order according to the magnitude of each pressing pressure value to obtain an ascending order queue;
step 130, obtaining the nth pressing pressure value from the sorting queue according to a preset rule, including the following steps:
132, obtaining the Nth pressing pressure value from the ascending queue.
After the electronic device obtains the plurality of pressing pressure values, the plurality of pressing pressure values may be arranged in an ascending order according to the magnitude of each pressing pressure value, that is, in a descending order, so as to obtain an ascending order queue. Subsequently, the electronic device obtains the Nth pressing pressure value from the ascending queue.
For example, the electronic device acquires 100 pressing pressure values. According to the principle of 10% failure in the pressing operation, the nth pressing pressure value acquired by the electronic device is the 11 th pressing pressure value in the ascending queue, namely the 11 th pressing pressure value from the head of the queue to the back of the ascending queue. Then N is 11 at this time.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the method for calibrating a threshold of a pressure button provided in the embodiment of the present application includes: acquiring a plurality of pressing pressure values through a pressure sensor, wherein each pressing pressure value is greater than a first pressure threshold value; sequencing the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue; acquiring an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer; calibrating the first pressure threshold according to the Nth compression pressure value. In the method for calibrating the pressure key threshold, because the electronic device obtains a plurality of pressing pressure values in the using process of the user and obtains the Nth pressing pressure value from the plurality of pressing pressure values, after the first pressure threshold is calibrated according to the Nth pressing pressure value, the calibrated pressure threshold is closer to the using habit of the user. Therefore, the pressure key can more accurately detect the pressing operation of the user, and the occurrence of misoperation can be reduced.
The embodiment of the present application further provides a calibration apparatus for a threshold of a pressure key, which may be integrated in the electronic device 100.
As shown in fig. 9, the pressure key threshold calibration apparatus 200 may include: a first acquisition module 201, a sorting module 202, a second acquisition module 203, and a calibration module 204.
The first obtaining module 201 is configured to obtain a plurality of pressing pressure values through a pressure sensor, where each of the pressing pressure values is greater than a first pressure threshold.
During the use of the electronic device by the user, the first obtaining module 201 may obtain a plurality of pressing pressure values of the user through the pressure sensor. For example, each time the user presses the pressure button, the electronic device responds to the pressing operation of the user, the first obtaining module 201 may obtain a pressing pressure value detected by the pressure sensor, and record the pressing pressure value.
The electronic equipment is provided with a first pressure threshold value aiming at the pressure key. For example, the first pressure threshold may be 2N (newtons). The first pressure threshold represents a boundary line between a pressure value when the user successfully presses the pressure key and a pressure value when the user unsuccessfully presses the pressure key. That is, when the pressing pressure value of the user pressing the pressure key is greater than the first pressure threshold, the user is indicated to successfully press the pressure key, and at this time, the electronic device responds to the pressing operation of the user. And when the pressing pressure value of the user pressing the pressure key is smaller than or equal to the first pressure threshold value, the user does not successfully press the pressure key, and the error operation of the user may be performed at this time, so that the electronic device may not respond to the pressing operation of the user.
The first obtaining module 201 obtains, by using a pressure sensor, a plurality of pressing pressure values, each of which is greater than the first pressure threshold.
The sorting module 202 is configured to sort the plurality of pressing pressure values according to the magnitude of each pressing pressure value, so as to obtain a sorting queue.
After the first obtaining module 201 obtains the plurality of pressing pressure values, the sorting module 202 may sort the plurality of pressing pressure values according to the magnitude of each pressing pressure value, so as to obtain a sorting queue. For example, if the number of the pressing pressure values acquired by the first acquiring module 201 is 30, the sorting module 202 may sort the 30 pressing pressure values in a descending order or a descending order, so as to obtain a sorting queue.
The second obtaining module 203 is configured to obtain an nth pressing pressure value from the sorting queue according to a preset rule, where N is a positive integer.
The electronic device may be provided with a preset rule. The preset rule is used for obtaining a certain pressing pressure value from the sorting queue obtained by the sorting module 202. For example, the preset rule may be the first pressing pressure value from the head of the sorting queue to the back, or may also be the first pressing pressure value from the tail of the sorting queue to the front.
After the sorting module 202 obtains the sorting queue, the second obtaining module 203 may obtain the nth pressing pressure value from the sorting queue according to the preset rule. Wherein N is a positive integer. For example, N may be 10, 20, etc.
A calibration module 204, configured to calibrate the first pressure threshold according to the nth compression pressure value.
After the second obtaining module 203 obtains the nth pressing pressure value from the sorting queue, the calibration module 204 may calibrate the first pressure threshold according to the nth pressing pressure value.
Since the pressure key threshold calibration device 200 is a plurality of pressing pressure values obtained in the using process of the user and an nth pressing pressure value obtained from the plurality of pressing pressure values, after the first pressure threshold is calibrated according to the nth pressing pressure value, the calibrated pressure threshold is closer to the using habit of the user. Therefore, the pressure key can more accurately detect the pressing operation of the user, and the occurrence of misoperation can be reduced.
In some embodiments, the first obtaining module 201 is configured to perform the following steps:
when the pressure sensor detects a pressing pressure value, judging whether the pressing pressure value is greater than a first pressure threshold value;
if the pressing pressure value is greater than the first pressure threshold, judging whether the duration of the pressing pressure value continuously detected by the pressure sensor is greater than a preset duration;
if the pressure sensor continuously detects that the duration of the pressing pressure value is longer than the preset duration, storing the pressing pressure value, and increasing the count of the pressing pressure value by 1;
the sorting module 202 is configured to perform the following steps:
when the count of the pressing pressure values reaches a preset number, sequencing the plurality of stored pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue, wherein the preset number is greater than N.
During the use of the electronic device by the user, the first obtaining module 201 may count the number of valid presses of the pressure button pressed by the user.
When a pressure sensor in the pressure button detects a pressing pressure value, the first obtaining module 201 determines whether the pressing pressure value is greater than a first pressure threshold. If the pressing pressure value is not greater than the first pressure threshold value, that is, is less than or equal to the first pressure threshold value, it is determined that the pressing pressure of the pressing operation detected this time is too small. The operation detected this time can be regarded as a malfunction. The misoperation is a pressing operation caused by the fact that the user touches the pressure key unintentionally or another object (such as a table, a backpack, etc.) except the user touches the pressure key.
If the pressing pressure value is greater than the first pressure threshold, the first obtaining module 201 continues to determine whether the duration of the pressure sensor that continuously detects the pressing pressure value is greater than a preset duration. The preset time duration is a time duration value preset in the electronic device, for example, 100ms (milliseconds). The preset duration is used for further judging whether the pressing operation detected by the pressure key is misoperation. If the duration of the pressure value detected by the pressure sensor is not longer than the preset duration, that is, is less than or equal to the preset duration, it indicates that the duration of the detected pressing operation is too short. Then, the operation detected this time may also be regarded as an erroneous operation.
If the duration of the pressure sensor continuously detecting the pressing pressure value is longer than the preset duration, which indicates that the pressing pressure of the pressing operation detected by the pressure sensor at this time and the duration of the pressing operation both meet the conditions, the detected pressing operation is considered to be effective operation. At this time, the first obtaining module 201 may store the detected pressing pressure value and increase the count of the pressing pressure values by 1.
When the count of the pressing pressure values by the first obtaining module 201 reaches a preset number, the sorting module 202 sorts the stored pressing pressure values according to the magnitude of each pressing pressure value, so as to obtain a sorting queue. Wherein the preset number is a value set in the electronic device. The preset number is greater than N. For example, the preset number may be 100. That is, the sorting module 202 may sort the stored 100 pressing pressure values each time the count of the pressing pressure values by the first obtaining module 201 reaches 100.
In some embodiments, the calibration module 204 is configured to perform the following steps:
calculating a second pressure threshold value according to the Nth pressing pressure value and a preset pressure offset;
replacing the first pressure threshold with the second pressure threshold.
Wherein, the electronic equipment is provided with a preset pressure offset. The preset pressure offset is a pressure value. For example, the preset pressure offset may be 1N (newton).
After the second obtaining module 203 obtains the nth pressing pressure value from the sorting queue, the calibration module 204 may calculate the second pressure threshold according to the nth pressing pressure value and the preset pressure offset. Subsequently, the first pressure threshold is replaced with the second pressure threshold to enable calibration of the first pressure threshold. For example, the first pressure threshold is 2N (newton), and the calculated second pressure threshold is 3N (newton), the calibration module 204 replaces the first pressure threshold with 3N (newton), thereby completing the update of the pressure thresholds of the pressure keys in the electronic device.
In practical applications, the pressure key threshold calibration apparatus 200 may continue to perform the above-mentioned pressure threshold calibration operation during the use of the user. That is, when the count of the pressed pressure values in the electronic device reaches the preset number, the pressure threshold of the pressure key can be calibrated, so that the pressure threshold of the pressure key can be continuously calibrated, and the detection sensitivity of the pressure key is better adapted to the use habit of a user.
In some embodiments, when calculating the second pressure threshold according to the nth compression pressure value and the preset pressure offset, the calibration module 204 calculates according to the following formula:
F2=FN+Foffset
wherein, F2Is said second pressure threshold, FNIs the Nth pressing pressure value, FoffsetIs the preset pressure offset.
For example, the Nth acquired pressing pressure value FNIs 2N (Newton), and the offset F of the preset pressureoffsetIs 1N (newton), then a second calculated pressure threshold F is obtained2It is 3N (Newton).
In some embodiments, the ranking module 202 is configured to perform the following steps:
according to the magnitude of each pressing pressure value, performing descending arrangement on the plurality of pressing pressure values to obtain a descending queue;
the second obtaining module 203 is configured to perform the following steps:
and acquiring the Nth last pressing pressure value from the descending queue.
After the first obtaining module 201 obtains the plurality of pressing pressure values, the sorting module 202 may sort the plurality of pressing pressure values in a descending order according to the magnitude of each pressing pressure value, that is, in a descending order, to obtain a descending order queue. Subsequently, the second obtaining module 203 obtains the nth last pressing pressure value from the descending queue.
For example, the first acquiring module 201 acquires 100 pressing pressure values. According to the principle of 10% failure in the pressing operation, the nth pressing pressure value acquired by the second acquiring module 203 is the 11 th last pressing pressure value in the descending queue, that is, the 11 th pressing pressure value from the tail to the front in the descending queue. Then N is 11 at this time.
In some embodiments, the ranking module 202 is configured to perform the following steps:
according to the magnitude of each pressing pressure value, performing ascending arrangement on the plurality of pressing pressure values to obtain an ascending queue;
the second obtaining module 203 is configured to perform the following steps:
and acquiring the Nth pressing pressure value from the ascending queue.
After the first obtaining module 201 obtains the plurality of pressing pressure values, the sorting module 202 may sort the plurality of pressing pressure values in an ascending order according to the magnitude of each pressing pressure value, that is, in a descending order, to obtain an ascending order queue. Subsequently, the second obtaining module 203 obtains the nth pressing pressure value from the ascending queue.
For example, the first acquiring module 201 acquires 100 pressing pressure values. According to the principle of 10% failure in the pressing operation, the nth pressing pressure value acquired by the second acquiring module 203 is the 11 th pressing pressure value in the ascending queue, that is, the 11 th pressing pressure value from the head of the queue to the back of the queue in the ascending queue. Then N is 11 at this time.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, in the calibration device 200 for the threshold of the pressure button provided in the embodiment of the present application, the first obtaining module 201 obtains a plurality of pressing pressure values through the pressure sensor, where each of the pressing pressure values is greater than the first pressure threshold; the sorting module 202 sorts the plurality of pressing pressure values according to the magnitude of each pressing pressure value to obtain a sorting queue; the second obtaining module 203 obtains an nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer; the calibration module 204 calibrates the first pressure threshold according to the nth compression pressure value. In the pressure key threshold calibration device, because the electronic device obtains a plurality of pressing pressure values in the using process of the user and obtains the Nth pressing pressure value from the plurality of pressing pressure values, after the first pressure threshold is calibrated according to the Nth pressing pressure value, the calibrated pressure threshold is closer to the using habit of the user. Therefore, the pressure key can more accurately detect the pressing operation of the user, and the occurrence of misoperation can be reduced.
The embodiment of the application also provides the electronic equipment. The electronic device may be a smartphone, a tablet computer, a gaming device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as a watch, glasses, a helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like.
As shown in fig. 10, the electronic device 300 may include a control circuit. Wherein the control circuit may include a storage circuit 310 and a processing circuit 320. The memory circuit 310 is connected to the processing circuit 320.
The storage circuit 310 may include a memory, such as a hard disk drive memory, a non-volatile memory (e.g., a flash memory or other electronic programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., a static or dynamic random access memory, etc.), and the like, which are not limited in this embodiment.
The memory circuit 310 may be used to store computer programs and data. The computer program stored in the storage circuit 310 includes instructions executable in the processing circuit 320. The computer program may constitute various functional modules. The processing circuit 320 executes various functional applications and data processing by calling computer programs and data stored in the storage circuit 310.
The processing circuit 320 may be used to control the operation of the electronic device 300. The processing circuit 320 may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The processing circuit 320 may be used to run applications in the electronic device, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) phone call application, an email application, a media playing application, an operating system function, and so on. These applications may be used to perform control operations such as camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, functions associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in an electronic device, to which embodiments of the present application are not limited.
In this embodiment, the processing circuit 320 in the electronic device 300 may call the computer program stored in the storage circuit 310 according to the following steps, load instructions corresponding to one or more processes of the computer program into the storage circuit 310, and the processing circuit 320 runs the computer program stored in the storage circuit 310, so as to implement the following functions:
acquiring a plurality of pressing pressure values through a pressure sensor, wherein each pressing pressure value is greater than a first pressure threshold value;
sequencing the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue;
acquiring an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer;
calibrating the first pressure threshold according to the Nth compression pressure value.
In some embodiments, when multiple compression pressure values are obtained by the pressure sensor, the processing circuit 320 performs the following steps:
when the pressure sensor detects a pressing pressure value, judging whether the pressing pressure value is greater than a first pressure threshold value;
if the pressing pressure value is greater than the first pressure threshold, judging whether the duration of the pressing pressure value continuously detected by the pressure sensor is greater than a preset duration;
if the pressure sensor continuously detects that the duration of the pressing pressure value is longer than the preset duration, storing the pressing pressure value, and increasing the count of the pressing pressure value by 1;
when the plurality of pressing pressure values are sorted according to the magnitude of each pressing pressure value to obtain a sorting queue, the processing circuit 320 performs the following steps:
when the count of the pressing pressure values reaches a preset number, sequencing the plurality of stored pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue, wherein the preset number is greater than N.
In some embodiments, when the plurality of compression pressure values are sorted according to the magnitude of each compression pressure value to obtain a sorting queue, the processing circuit 320 performs the following steps:
according to the magnitude of each pressing pressure value, performing descending arrangement on the plurality of pressing pressure values to obtain a descending queue;
when the nth pressing pressure value is obtained from the sorting queue according to the preset rule, the processing circuit 320 executes the following steps:
and acquiring the Nth last pressing pressure value from the descending queue.
In some embodiments, when the plurality of compression pressure values are sorted according to the magnitude of each compression pressure value to obtain a sorting queue, the processing circuit 320 performs the following steps:
according to the magnitude of each pressing pressure value, performing ascending arrangement on the plurality of pressing pressure values to obtain an ascending queue;
when the nth pressing pressure value is obtained from the sorting queue according to the preset rule, the processing circuit 320 executes the following steps:
and acquiring the Nth pressing pressure value from the ascending queue.
In some embodiments, when calibrating the first pressure threshold according to the nth compression pressure value, processing circuitry 320 performs the steps of:
calculating a second pressure threshold value according to the Nth pressing pressure value and a preset pressure offset;
replacing the first pressure threshold with the second pressure threshold.
In some embodiments, when calculating the second pressure threshold according to the nth compression pressure value and the preset pressure offset amount, the processing circuit 320 calculates according to the following formula:
F2=FN+Foffset
wherein, F2Is said second pressure threshold, FNIs the Nth pressing pressure value, FoffsetIs the preset pressure offset.
The electronic device 300 may also include input-output circuitry 330. The input/output circuit 330 is connected to the processing circuit 320. The input-output circuit 330 may be used to enable the electronic device 300 to enable input and output of data, i.e., to allow the electronic device to receive data from and output data to an external device. The user can input commands through the input-output circuit to control the operation of the electronic device, and can use the output data of the input-output circuit to receive the state information and other output information of the electronic device.
The input-output circuitry 330 may include one or more sensors 331. The sensors 331 may include ambient light sensors, optical or capacitive or acoustic wave based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
The input-output circuitry 330 may include one or more displays 332. The display 332 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display 332 may include an array of touch sensors (i.e., the display 332 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed by using other touch technologies, such as acoustic wave touch, pressure-sensitive touch, resistive touch, optical touch, and the like, which is not limited by the embodiments of the present application.
The input-output circuitry 330 may include audio circuitry 333. The audio circuitry 333 may be used to provide audio input and/or audio output functionality for the electronic device. The audio circuitry 333 may include a receiver speaker, a microphone, a buzzer, a tone generator, and other components for generating and/or detecting sound.
The input-output circuitry 330 may include communication circuitry 334. The communication circuitry 334 may be used to provide the electronic device with the ability to communicate with external devices. The communication circuit 334 may include an analog signal input-output circuit, a digital signal input-output circuit, a wireless communication circuit based on a radio frequency signal and/or an optical signal, and the like. The wireless communication circuit in the communication circuit may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier circuit, a switch component, a filter circuit, an antenna, and the like. For example, the wireless Communication circuitry in the Communication circuitry may include circuitry to support Near Field Communication (NFC) by transmitting and/or receiving Near Field coupled electromagnetic signals. For example, the communication circuit may include a near field communication antenna and a near field communication transceiver. The communication circuit may also include a cellular telephone transceiver and a cellular telephone antenna, a wireless local area network transceiver and a wireless local area network antenna, and the like.
The input-output circuit 330 may also include other input-output cells 335. For example, the input and output unit 335 may include buttons, a joystick, a click wheel, a scroll wheel, a touch pad, a keyboard, a camera, light emitting diodes, and other status indicators, etc.
The electronic device 300 may also include a power source 340. The power supply 340 is used to power various components of the electronic device. The power source 340 may be logically connected to the processing circuit 320 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
As can be seen from the above, an embodiment of the present application provides an electronic device, where the electronic device performs the following steps: acquiring a plurality of pressing pressure values through a pressure sensor, wherein each pressing pressure value is greater than a first pressure threshold value; sequencing the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue; acquiring an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer; calibrating the first pressure threshold according to the Nth compression pressure value. In the electronic device, because the electronic device obtains a plurality of pressing pressure values in the using process of the user and obtains an nth pressing pressure value from the plurality of pressing pressure values, after the first pressure threshold is calibrated according to the nth pressing pressure value, the calibrated pressure threshold is closer to the using habit of the user. Therefore, the pressure key can more accurately detect the pressing operation of the user, and the occurrence of misoperation can be reduced.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the pressure key threshold calibration method according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The method, the device, the storage medium and the electronic device for calibrating the pressure key threshold provided by the embodiment of the application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A pressure key threshold calibration method is characterized by comprising the following steps:
acquiring a plurality of pressing pressure values through a pressure sensor, wherein each pressing pressure value is greater than a first pressure threshold value;
sequencing the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue;
acquiring an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer;
calibrating the first pressure threshold according to the Nth compression pressure value.
2. The method of claim 1, wherein the step of obtaining a plurality of values of the pressing pressure via the pressure sensor comprises:
when the pressure sensor detects a pressing pressure value, judging whether the pressing pressure value is greater than a first pressure threshold value;
if the pressing pressure value is greater than the first pressure threshold, judging whether the duration of the pressing pressure value continuously detected by the pressure sensor is greater than a preset duration;
if the pressure sensor continuously detects that the duration of the pressing pressure value is longer than the preset duration, storing the pressing pressure value, and increasing the count of the pressing pressure value by 1;
the step of sorting the plurality of pressing pressure values according to the magnitude of each pressing pressure value to obtain a sorting queue comprises:
when the count of the pressing pressure values reaches a preset number, sequencing the plurality of stored pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue, wherein the preset number is greater than N.
3. The method for calibrating a pressing key threshold according to claim 1, wherein the step of sorting the plurality of pressing pressure values according to the magnitude of each pressing pressure value to obtain a sorting queue comprises:
according to the magnitude of each pressing pressure value, performing descending arrangement on the plurality of pressing pressure values to obtain a descending queue;
the step of obtaining the Nth pressing pressure value from the sorting queue according to a preset rule comprises the following steps:
and acquiring the Nth last pressing pressure value from the descending queue.
4. The method for calibrating a pressing key threshold according to claim 1, wherein the step of sorting the plurality of pressing pressure values according to the magnitude of each pressing pressure value to obtain a sorting queue comprises:
according to the magnitude of each pressing pressure value, performing ascending arrangement on the plurality of pressing pressure values to obtain an ascending queue;
the step of obtaining the Nth pressing pressure value from the sorting queue according to a preset rule comprises the following steps:
and acquiring the Nth pressing pressure value from the ascending queue.
5. A method for calibrating a pressing key threshold according to claim 1, wherein the step of calibrating the first pressing threshold according to the nth pressing pressure value comprises:
calculating a second pressure threshold value according to the Nth pressing pressure value and a preset pressure offset;
replacing the first pressure threshold with the second pressure threshold.
6. The method for calibrating press key threshold of claim 5, wherein when calculating the second pressure threshold according to the Nth press pressure value and the preset pressure offset, the second pressure threshold is calculated according to the following formula:
F2=FN+Foffset
wherein, F2Is said second pressure threshold, FNIs the Nth pressing pressure value, FoffsetIs the preset pressure offset.
7. A pressure key threshold calibration device, comprising:
the first acquisition module is used for acquiring a plurality of pressing pressure values through a pressure sensor, and each pressing pressure value is larger than a first pressure threshold value;
the sorting module is used for sorting the plurality of pressing pressure values according to the size of each pressing pressure value to obtain a sorting queue;
the second obtaining module is used for obtaining an Nth pressing pressure value from the sorting queue according to a preset rule, wherein N is a positive integer;
and the calibration module is used for calibrating the first pressure threshold value according to the Nth pressing pressure value.
8. The apparatus for calibrating a threshold of a pressure key of claim 7, wherein the first obtaining module is configured to:
when the pressure sensor detects a pressing pressure value, judging whether the pressing pressure value is greater than a first pressure threshold value;
if the pressing pressure value is greater than the first pressure threshold, judging whether the duration of the pressing pressure value continuously detected by the pressure sensor is greater than a preset duration;
if the pressure sensor continuously detects that the duration of the pressing pressure value is longer than the preset duration, storing the pressing pressure value, and increasing the count of the pressing pressure value by 1;
the sorting module is configured to:
when the count of the pressing pressure values reaches a preset number, sequencing the plurality of stored pressing pressure values according to the size of each pressing pressure value to obtain a sequencing queue, wherein the preset number is greater than N.
9. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the pressure key threshold calibration method of any one of claims 1 to 6.
10. An electronic device, comprising a storage circuit and a processing circuit, wherein the storage circuit stores a computer program, and the processing circuit is configured to execute the pressure key threshold calibration method according to any one of claims 1 to 6 by calling the computer program stored in the storage circuit.
11. An electronic device, comprising a pressure sensor and a processing circuit, the pressure sensor being electrically connected to the processing circuit, wherein:
the pressure sensor is used for acquiring a plurality of pressing pressure values, and each pressing pressure value is larger than a first pressure threshold value;
the processing circuit is used for sequencing the plurality of pressing pressure values according to the magnitude of each pressing pressure value to obtain a sequencing queue;
the processing circuit is further configured to obtain an nth pressing pressure value from the sorting queue according to a preset rule, where N is a positive integer;
the processing circuit is further configured to calibrate the first pressure threshold according to the nth compression pressure value.
CN201810719068.3A 2018-07-03 2018-07-03 Pressure key threshold calibration method and device, storage medium and electronic equipment Active CN110672262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810719068.3A CN110672262B (en) 2018-07-03 2018-07-03 Pressure key threshold calibration method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810719068.3A CN110672262B (en) 2018-07-03 2018-07-03 Pressure key threshold calibration method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110672262A true CN110672262A (en) 2020-01-10
CN110672262B CN110672262B (en) 2021-04-23

Family

ID=69066026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810719068.3A Active CN110672262B (en) 2018-07-03 2018-07-03 Pressure key threshold calibration method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110672262B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360027A (en) * 2021-06-30 2021-09-07 歌尔科技有限公司 False touch prevention method, wearable device and storage medium
CN114076657A (en) * 2021-10-29 2022-02-22 歌尔科技有限公司 Pressure self-adaptive calibration method, terminal equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699318A (en) * 2014-01-06 2014-04-02 联想(北京)有限公司 Touch response method and touch response device of electronic device
CN103870181A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Handheld device control method, handheld device control device and handheld device
CN105184125A (en) * 2015-08-13 2015-12-23 芜湖美的厨卫电器制造有限公司 User habit parameter determination method and system
CN106055157A (en) * 2016-06-03 2016-10-26 芯海科技(深圳)股份有限公司 Sensitivity consistency correction method for pressure touch device
CN106598319A (en) * 2015-10-20 2017-04-26 中兴通讯股份有限公司 Method and device for calibrating sensitivity of pressure screen
CN107506077A (en) * 2017-08-14 2017-12-22 郑州朗睿科技有限公司 A kind of resistive touch screen calibration method
KR20180004943A (en) * 2016-07-05 2018-01-15 엘지전자 주식회사 Mobile terminal and method for controlling the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870181A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Handheld device control method, handheld device control device and handheld device
CN103699318A (en) * 2014-01-06 2014-04-02 联想(北京)有限公司 Touch response method and touch response device of electronic device
CN105184125A (en) * 2015-08-13 2015-12-23 芜湖美的厨卫电器制造有限公司 User habit parameter determination method and system
CN106598319A (en) * 2015-10-20 2017-04-26 中兴通讯股份有限公司 Method and device for calibrating sensitivity of pressure screen
CN106055157A (en) * 2016-06-03 2016-10-26 芯海科技(深圳)股份有限公司 Sensitivity consistency correction method for pressure touch device
KR20180004943A (en) * 2016-07-05 2018-01-15 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN107506077A (en) * 2017-08-14 2017-12-22 郑州朗睿科技有限公司 A kind of resistive touch screen calibration method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360027A (en) * 2021-06-30 2021-09-07 歌尔科技有限公司 False touch prevention method, wearable device and storage medium
CN114076657A (en) * 2021-10-29 2022-02-22 歌尔科技有限公司 Pressure self-adaptive calibration method, terminal equipment and readable storage medium
CN114076657B (en) * 2021-10-29 2024-04-09 歌尔科技有限公司 Pressure self-adaptive calibration method, terminal equipment and readable storage medium

Also Published As

Publication number Publication date
CN110672262B (en) 2021-04-23

Similar Documents

Publication Publication Date Title
US10949012B2 (en) Electronic device comprising force sensor
EP2112763B1 (en) Contact-sensing device, mobile information terminal, and capacitance calibration program and method
CN109587992B (en) Electronic equipment
CN108475136B (en) Fingerprint identification method and electronic equipment
CN110109759B (en) Catton optimization method, server, electronic device and computer-readable storage medium
CN108733298B (en) Touch information processing method and device, storage medium and electronic equipment
CN108646948B (en) Method and device for adjusting sensitivity of touch key, storage medium and electronic equipment
CN110427741B (en) Fingerprint identification method and related product
CN111458935A (en) Display panel and terminal
EP3518085A1 (en) Mobile terminal and method for controlling the same
CN108696639A (en) Put out screen display methods, mobile terminal and storage medium
CN108710468A (en) Image acquiring method, device, storage medium and electronic equipment
CN109067978A (en) Button operation processing method, device, storage medium and electronic equipment
CN110672262B (en) Pressure key threshold calibration method and device, storage medium and electronic equipment
CN109348528A (en) Display control method and Related product
CN110058980B (en) Terminal start time early warning method, electronic device and computer readable storage medium
CN109151143B (en) Foreign matter detection structure and method and mobile terminal
CN108834206B (en) Control method of electronic device and electronic device
CN108595105A (en) Light filling lamp control method, device, storage medium and electronic equipment
CN111241022B (en) GPIO state query method, device and storage medium
CN108650456A (en) focusing method, device, storage medium and electronic equipment
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN113396433B (en) User portrait construction method and related products
CN109885201B (en) Touch area detection method for touch screen, electronic device and computer readable storage medium
CN109359453B (en) Unlocking method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant