CN111698601B - Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof - Google Patents

Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof Download PDF

Info

Publication number
CN111698601B
CN111698601B CN202010509744.1A CN202010509744A CN111698601B CN 111698601 B CN111698601 B CN 111698601B CN 202010509744 A CN202010509744 A CN 202010509744A CN 111698601 B CN111698601 B CN 111698601B
Authority
CN
China
Prior art keywords
touch
pressure value
threshold
value
bluetooth headset
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.)
Active
Application number
CN202010509744.1A
Other languages
Chinese (zh)
Other versions
CN111698601A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010509744.1A priority Critical patent/CN111698601B/en
Publication of CN111698601A publication Critical patent/CN111698601A/en
Application granted granted Critical
Publication of CN111698601B publication Critical patent/CN111698601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a Bluetooth headset, a key sensitivity adjusting method and device thereof, and a readable storage medium. The key sensitivity adjusting method of the Bluetooth headset comprises the following steps: when a touch event generated by a key based on a Bluetooth headset is detected, acquiring a touch pressure value corresponding to the touch event; obtaining a current pressure threshold value, and determining to obtain a threshold value adjustment amount according to the current pressure threshold value and the touch pressure value; and adjusting and updating the current pressure threshold according to the threshold adjustment amount. The invention can realize intelligent adjustment of the button sensitivity of the Bluetooth headset.

Description

Bluetooth headset, key sensitivity adjusting method and device thereof and readable storage medium
Technical Field
The invention relates to the technical field of portable listening equipment, in particular to a Bluetooth headset, a key sensitivity adjusting method and device thereof, and a readable storage medium.
Background
Along with the rapid development of mobile terminal technology and chip technology, the earphone market has been rapidly developed, especially the bluetooth earphone market. Bluetooth headsets include various types such as a neck-line type, head-mounted and bone conduction bluetooth headset, and a TWS (True Wireless Stereo) headset.
In bluetooth headset's design, often can choose for use the pressure sensor who has characteristics such as low cost, low-power consumption, high accuracy to design bluetooth headset's touch button to whether the user presses the button is judged to the accessible through the pressure value that acquires pressure sensor, and then carries out the operation that the button corresponds, like the increase and decrease of volume.
After the bluetooth headset used for a long time, can appear slight deformation or because of different users 'touch dynamics habit is different because of bluetooth headset face lid for individual difference appears in bluetooth headset's touch button, thereby can lead to touch button to appear the touch not sensitive or the too high problem of sensitivity. Therefore, how to realize intelligent adjustment of the key sensitivity of the bluetooth headset so as to avoid the situation that the touch is not flexible or the sensitivity is too high when the user touches the key is a problem which needs to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide a Bluetooth headset, a method and a device for adjusting key sensitivity of the Bluetooth headset and a readable storage medium, and aims to realize intelligent adjustment of the key sensitivity of the Bluetooth headset.
In order to achieve the above object, the present invention provides a method for adjusting the sensitivity of a bluetooth headset, where the method for adjusting the sensitivity of a bluetooth headset comprises:
when a touch event generated by a key based on a Bluetooth headset is detected, acquiring a touch pressure value corresponding to the touch event;
obtaining a current pressure threshold value, and determining to obtain a threshold value adjustment amount according to the current pressure threshold value and the touch pressure value;
and adjusting and updating the current pressure threshold according to the threshold adjustment amount.
Optionally, when a touch event generated based on a key of a bluetooth headset is detected, the step of obtaining a touch pressure value corresponding to the touch event includes:
acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time;
detecting whether the first real-time pressure value is greater than the current pressure threshold value;
if the first real-time pressure value is larger than the current pressure threshold value, judging that a touch event generated by a key based on a Bluetooth headset is detected, and continuously acquiring a second real-time pressure value corresponding to the touch event every other second preset time;
and calculating to obtain an average pressure value according to the first real-time pressure value and the second real-time pressure value, and taking the average pressure value as a touch pressure value corresponding to the touch event.
Optionally, after the step of continuously obtaining the second real-time pressure value corresponding to the touch event every second preset time, the method further includes:
when the touch event is detected to be finished, the following steps are continuously executed: and acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time.
Optionally, the step of obtaining the current pressure threshold and determining a threshold adjustment amount according to the current pressure threshold and the touch pressure value includes:
acquiring a current pressure threshold, and calculating a first difference value between the touch pressure value and the current pressure threshold;
determining a target difference interval where the first difference is located according to a mapping relation between a preset difference interval and the touch intensity, and determining the target touch intensity according to the target difference interval;
and determining a threshold adjustment amount according to the target touch intensity.
Optionally, the step of determining a threshold adjustment amount according to the target touch intensity includes:
and determining a threshold adjustment amount corresponding to the target touch intensity according to a mapping relation between preset touch intensity and the threshold adjustment amount.
Optionally, the step of determining a threshold adjustment amount according to the target touch intensity includes:
determining a threshold adjusting direction according to the target touch intensity, and calculating a second difference value between the touch pressure value and an end point value of the target difference value interval;
and determining to obtain a threshold adjustment amount according to the threshold adjustment direction and the second difference.
Optionally, the method for adjusting key sensitivity of a bluetooth headset further includes:
and determining a target key corresponding to the touch event, and executing an adjusting operation corresponding to the target key.
In addition, in order to achieve the above object, the present invention further provides a device for adjusting sensitivity of a bluetooth headset, where the device for adjusting sensitivity of a bluetooth headset comprises:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a touch pressure value corresponding to a touch event when the touch event generated by a key based on a Bluetooth headset is detected;
the adjustment quantity determining module is used for acquiring a current pressure threshold value and determining a threshold adjustment quantity according to the current pressure threshold value and the touch pressure value;
and the threshold adjusting module is used for adjusting and updating the current pressure threshold according to the threshold adjusting amount.
In addition, to achieve the above object, the present invention also provides a bluetooth headset, including: the Bluetooth headset comprises a memory, a processor and a key sensitivity adjusting program which is stored on the memory and can run on the processor, wherein the key sensitivity adjusting program realizes the steps of the key sensitivity adjusting method of the Bluetooth headset when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a key sensitivity adjustment program stored thereon, which, when executed by a processor, implements the steps of the key sensitivity adjustment method of the bluetooth headset as described above.
The invention provides a key sensitivity adjusting method of a Bluetooth headset, the Bluetooth headset and a computer readable storage medium, when a touch event generated by a key based on the Bluetooth headset is detected, a touch pressure value corresponding to the touch event is obtained; then, obtaining a current pressure threshold, and determining to obtain a threshold adjustment amount according to the current pressure threshold and the touch pressure value; and adjusting and updating the current pressure threshold according to the threshold adjustment amount. By the method, the threshold adjustment amount can be determined according to the touch pressure value of the touch event generated when the user presses the key of the Bluetooth headset, and then the current pressure threshold is adjusted and updated based on the threshold adjustment amount, wherein the current pressure threshold is a pressure value for judging whether effective key touch is generated. Through the mode, the intelligent adjustment of the button sensitivity of the Bluetooth headset can be realized, the pressure threshold value after adjustment can better accord with the pressing habit of the user to the button of the Bluetooth headset, and the condition that the touch is not flexible or the sensitivity is too high when the user touches the button is avoided, so that the use experience of the user can be improved.
Drawings
Fig. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a key sensitivity adjustment method of a bluetooth headset according to a first embodiment of the present invention;
FIG. 3 is a detailed flowchart of step S10 in the first embodiment of the present invention;
fig. 4 is a detailed flowchart of step S20 in the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a Bluetooth headset.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, and a memory 1003. The communication bus 1002 is used to implement connection communication among these components. The memory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a sensor or the like. Such as light sensors, motion sensors, and other sensors, among others. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may detect whether the bluetooth headset is in a wearing state according to the brightness of ambient light. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when the motion sensor is stationary, and the gravity acceleration sensor can be used for application of terminal gesture recognition, related functions of vibration recognition and the like; of course, the terminal may also be configured with other sensors such as a temperature sensor and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include a network communication module and a key sensitivity adjustment program therein.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client and performing data communication with the client; and the processor 1001 may be configured to call the key sensitivity adjustment program stored in the memory 1005 and perform the following operations:
when a touch event generated based on a key of a Bluetooth headset is detected, acquiring a touch pressure value corresponding to the touch event;
acquiring a current pressure threshold, and determining to obtain a threshold adjustment amount according to the current pressure threshold and the touch pressure value;
and adjusting and updating the current pressure threshold according to the threshold adjustment amount.
Further, the processor 1001 may call the key sensitivity adjustment program stored in the memory 1005, and also perform the following operations:
acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time;
detecting whether the first real-time pressure value is greater than the current pressure threshold value;
if the first real-time pressure value is larger than the current pressure threshold value, judging that a touch event generated by a key based on a Bluetooth headset is detected, and continuously acquiring a second real-time pressure value corresponding to the touch event every other second preset time;
and calculating to obtain an average pressure value according to the first real-time pressure value and the second real-time pressure value, and taking the average pressure value as a touch pressure value corresponding to the touch event.
Further, the processor 1001 may call the key sensitivity adjustment program stored in the memory 1005, and also perform the following operations:
when the touch event is detected to be finished, the following steps are continuously executed: and acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time.
Further, the processor 1001 may call the key sensitivity adjustment program stored in the memory 1005, and also perform the following operations:
acquiring a current pressure threshold value, and calculating a first difference value between the touch pressure value and the current pressure threshold value;
determining a target difference interval where the first difference is located according to a mapping relation between a preset difference interval and the touch intensity, and determining the target touch intensity according to the target difference interval;
and determining a threshold adjustment amount according to the target touch intensity.
Further, the processor 1001 may call the key sensitivity adjustment program stored in the memory 1005, and also perform the following operations:
and determining a threshold adjustment amount corresponding to the target touch intensity according to a mapping relation between preset touch intensity and the threshold adjustment amount.
Further, the processor 1001 may call the key sensitivity adjustment program stored in the memory 1005, and also perform the following operations:
determining a threshold adjusting direction according to the target touch intensity, and calculating a second difference value between the touch pressure value and an end point value of the target difference value interval;
and determining to obtain a threshold adjustment amount according to the threshold adjustment direction and the second difference.
Further, the processor 1001 may call the key sensitivity adjustment program stored in the memory 1005, and also perform the following operations:
and determining a target key corresponding to the touch event, and executing adjustment operation corresponding to the target key.
Based on the hardware structure, the invention provides various embodiments of the key sensitivity adjusting method of the Bluetooth headset.
The invention provides a method for adjusting the key sensitivity of a Bluetooth headset.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for adjusting key sensitivity of a bluetooth headset according to a first embodiment of the present invention.
In this embodiment, the method for adjusting the sensitivity of the bluetooth headset includes:
step S10, when a touch event generated by a key of a Bluetooth headset is detected, acquiring a touch pressure value corresponding to the touch event;
in this embodiment, an execution main body of the method for adjusting the key sensitivity of the bluetooth headset is a bluetooth chip in the bluetooth headset, the bluetooth chip communicates with the pressure sensor through an I2C (Inter-Integrated Circuit) interface, can read a real-time pressure value of the pressure sensor under the key, and performs analysis and processing based on the real-time pressure value to adjust the current pressure threshold.
In this embodiment, when a touch event generated based on a key of a bluetooth headset is detected, a touch pressure value corresponding to the touch event is acquired.
The detection process of the touch event comprises the following steps:
acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time; detecting whether the first real-time pressure value is larger than a current pressure threshold value; and if the first real-time pressure value is larger than the current pressure threshold value, judging that the touch event generated by the key based on the Bluetooth headset is detected.
The manner of obtaining the touch pressure value corresponding to the touch event may include, but is not limited to:
1) directly taking the obtained first real-time pressure value as a touch pressure value corresponding to the touch event;
2) when the first real-time pressure value is detected to be larger than the current pressure threshold value, acquiring a third real-time pressure value corresponding to the touch event at intervals of first preset time, and then taking an average value calculated according to the first real-time pressure value and the third real-time pressure value as a touch pressure value corresponding to the touch event;
3) when the first real-time pressure value is larger than the current pressure threshold value, a second real-time pressure value corresponding to the touch event is obtained every second preset time (smaller than the first preset time), and then an average value obtained through calculation according to the first real-time pressure value and the second real-time pressure value is used as the touch pressure value corresponding to the touch event.
For a specific process of obtaining the touch pressure value, reference may be made to the following embodiments, which are not described herein again.
Step S20, obtaining a current pressure threshold value, and determining a threshold adjustment amount according to the current pressure threshold value and the touch pressure value;
and then, acquiring a current pressure threshold, and determining to obtain a threshold adjustment amount according to the current pressure threshold and the touch pressure value. Specifically, a first difference between the touch pressure value and the current pressure threshold value may be calculated first, then, a target difference interval where the first difference is located is determined according to a mapping relationship between a preset difference interval and the touch intensity, and the target touch intensity is determined according to the target difference interval; and then determining a threshold adjustment amount according to the target touch intensity. For the specific implementation process, reference may be made to the following embodiments, which are not described herein again.
It should be noted that when the difference between the touch pressure value and the current pressure threshold is small, that is, the touch intensity is weak, it indicates that the key pressing pressure of the user is small, the threshold adjustment amount is a negative value, and the current pressure threshold is adjusted downward to improve the key sensitivity and avoid the situation of poor touch. When the difference value between the touch pressure value and the current pressure threshold value is larger, namely the touch strength is stronger, the fact that the pressing force of the key of the user is larger is indicated, the threshold adjustment amount is a positive value, the current pressure threshold value is adjusted upwards, the key sensitivity is reduced, and the situation that the touch sensitivity is too high is avoided.
And step S30, adjusting and updating the current pressure threshold according to the threshold adjustment amount.
After the threshold adjustment amount is determined, the current pressure threshold is adjusted and updated according to the threshold adjustment amount. The updated threshold adjustment amount is the sum of the current pressure threshold and the threshold adjustment amount, that is, the updated threshold adjustment amount is equal to the current pressure threshold + the threshold adjustment amount.
The embodiment of the invention provides a method for adjusting the key sensitivity of a Bluetooth headset, which comprises the steps of acquiring a touch pressure value corresponding to a touch event when the touch event generated by a key based on the Bluetooth headset is detected; then, obtaining a current pressure threshold, and determining to obtain a threshold adjustment amount according to the current pressure threshold and the touch pressure value; and adjusting and updating the current pressure threshold according to the threshold adjustment amount. By the method, the threshold adjustment amount can be determined according to the touch pressure value of the touch event generated when the user presses the key of the Bluetooth headset, and then the current pressure threshold is adjusted and updated based on the threshold adjustment amount, wherein the current pressure threshold is a pressure value for judging whether effective key touch is generated. Through the mode, the intelligent adjustment of the button sensitivity of the Bluetooth headset can be realized, the pressure threshold value after adjustment can better accord with the pressing habit of a user to the button of the Bluetooth headset, and the condition that the touch is inflexible or the sensitivity is too high when the user touches the button is avoided, so that the use experience of the user can be improved.
Further, referring to fig. 3, fig. 3 is a detailed flowchart of step S10 in the first embodiment of the present invention.
In the present embodiment, step S10 includes:
step S11, acquiring a first real-time pressure value of a pressure sensor under a Bluetooth headset key at intervals of a first preset time;
as one of the obtaining manners of the touch pressure value, in this embodiment, a first real-time pressure value of the pressure sensor under the button of the bluetooth headset may be obtained every first preset time to detect whether the user triggers a touch event. The first preset time can be optionally set to 200ms, and certainly, in specific implementation, the first preset time can be flexibly set according to actual needs.
Step S12, detecting whether the first real-time pressure value is greater than the current pressure threshold value;
step S13, if the first real-time pressure value is larger than the current pressure threshold value, determining that a touch event generated by a key based on a Bluetooth headset is detected, and continuously acquiring a second real-time pressure value corresponding to the touch event every second preset time;
and then, detecting whether the first real-time pressure value is larger than a current pressure threshold value, if the first real-time pressure value is larger than the current pressure threshold value, judging that a touch event generated based on a key of the Bluetooth headset is detected, at the moment, switching to a high-frequency mode, and continuously acquiring a second real-time pressure value corresponding to the touch event every second preset time. The second preset time can be optionally set to 15ms, and of course, in specific implementation, the second preset time can be flexibly set based on actual needs. The second preset time is less than the first preset time.
It should be noted that, when the second real-time pressure value corresponding to the touch event is continuously obtained every other two preset times, once the real-time pressure value is detected to be less than or equal to the current pressure threshold, it is indicated that the touch event is ended, and at this time, the frequency is switched to every other first preset time to obtain the real-time pressure value of the pressure sensor.
If the first real-time pressure value is smaller than or equal to the current pressure threshold value, judging that the touch event generated by the key based on the Bluetooth headset is not detected, and further continuously executing the following steps: and acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time.
Step S14, calculating an average pressure value according to the first real-time pressure value and the second real-time pressure value, and taking the average pressure value as a touch pressure value corresponding to the touch event.
And then, calculating to obtain an average pressure value according to the first real-time pressure value and the second real-time pressure value, and taking the average pressure value as a touch pressure value corresponding to the touch event. In this embodiment, by calculating the average pressure value in a manner of taking the average pressure value as the touch pressure value corresponding to the touch event, an error may be reduced, and accuracy of obtaining the touch pressure value may be improved, so that when the current pressure threshold is adjusted based on the touch pressure value, accuracy of adjusting the pressure threshold may be improved.
Further, after the step S13, the method further includes:
when the touch event end is detected, continuing to execute step S11: and acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time.
When the touch event is detected to be ended, namely the real-time pressure value of the pressure sensor is acquired at intervals of a second preset time, once the real-time pressure value is detected to be larger than the current pressure threshold value, the touch event is judged to be ended. At the moment, the mode is switched to a slow frequency mode, and a first real-time pressure value of the pressure sensor under the button of the Bluetooth headset is obtained every first preset time.
It should be noted that, as another way of obtaining the touch pressure value, in a specific embodiment, the real-time pressure value of the pressure sensor may also be obtained in a slow-frequency mode all the time, which is recorded as the first real-time pressure value, then when the first real-time pressure value is detected to be larger than the current pressure threshold value, judging that a touch event generated by a key based on the Bluetooth headset is detected, further directly taking the first real-time pressure value as a touch pressure value corresponding to the touch event, or continuously acquiring a third real-time pressure value corresponding to the touch event at intervals of first preset time (namely acquiring the real-time pressure value at intervals of the first preset time until the acquired real-time pressure value is less than or equal to the current pressure threshold value, recording the acquired data greater than the current pressure threshold value as the third real-time pressure value), and taking an average value obtained by calculating the first real-time pressure value and the third real-time pressure value as the touch pressure value corresponding to the touch event. Of course, it can be understood that, compared to the above method for determining a touch pressure value, the accuracy of the obtained touch pressure value in this embodiment is relatively poor.
In this embodiment, in a normal state, a first real-time pressure value of the pressure sensor is obtained in a slow-frequency mode (i.e., every first preset time), and when a touch event is detected, the mode is switched to a fast-frequency mode (i.e., every second preset time) to obtain a second real-time pressure value of the pressure sensor, so as to obtain an average pressure value of the touch event as a touch pressure value corresponding to the touch event. Through the mode, the electric quantity and the power consumption of the Bluetooth headset can be saved. Meanwhile, the touch pressure value is determined in the above mode, so that the error can be reduced, and the accuracy of acquiring the touch pressure value is improved, so that the accuracy of adjusting the pressure threshold value can be improved when the current pressure threshold value is adjusted based on the touch pressure value.
Further, referring to fig. 4, fig. 4 is a detailed flowchart of step S20 in the first embodiment of the present invention.
In the present embodiment, step S20 includes:
step S21, acquiring a current pressure threshold value, and calculating a first difference value between the touch pressure value and the current pressure threshold value;
in this embodiment, a method for determining the threshold adjustment amount is described, specifically as follows:
the method comprises the steps of firstly obtaining a current pressure threshold, calculating a difference value between a touch pressure value and the current pressure threshold, recording the difference value between the touch pressure value and the current pressure threshold as a first difference value for being distinguished from the difference value between the subsequent touch pressure value and the end point value of a target difference value interval, wherein the first difference value is the touch pressure value-the current pressure threshold.
Step S22, determining a target difference interval where the first difference is located according to a mapping relation between a preset difference interval and the touch intensity, and determining the target touch intensity according to the target difference interval;
and then, determining a target difference interval where the first difference is located according to a mapping relation between a preset difference interval and the touch intensity, and determining the target touch intensity according to the target difference interval.
And the mapping relation between the difference interval and the touch intensity is constructed in advance. The pressure sensor can correspond to a pressure maximum value, the pressure maximum value is obtained through pre-determination and is recorded as a preset pressure maximum value, when the production of the Bluetooth headset is completed, a default pressure value (namely, a pressure value of the Bluetooth headset to the pressure sensor when the button of the Bluetooth headset is in a non-touch state) of each button corresponding to the pressure sensor can be determined, and then an initial pressure threshold value is determined according to the default pressure value. Then, a mapping relationship between the difference interval and the touch intensity may be constructed according to the initial pressure threshold and the preset pressure maximum. The mapping relationship may be in the form of a table.
When the mapping relationship is constructed, the construction method may be as follows: the level of the touch intensity is preset, and by taking setting 3 levels (such as stronger, medium and weaker) as an example for explanation, the difference between the initial pressure threshold and the preset maximum pressure value is calculated, and then the range between the difference and 0 is averagely divided into 3 intervals, and the 3 intervals are respectively mapped into the weaker, medium and stronger touch intensities according to the sequence from small to large.
And step S23, determining a threshold adjustment amount according to the target touch intensity.
After the target touch intensity is determined, the threshold adjustment amount is determined according to the target touch intensity.
Specifically, step S23 includes:
step a231, determining a threshold adjustment amount corresponding to the target touch intensity according to a mapping relationship between preset touch intensity and the threshold adjustment amount.
As one of the determining manners of the threshold adjustment amount, the threshold adjustment amount corresponding to the target touch intensity may be determined according to a mapping relationship between the preset touch intensity and the threshold adjustment amount. Wherein, the mapping relation between the touch intensity and the threshold adjustment amount is preset.
The mapping relationship may be set as a calculation formula of a touch intensity corresponding to a fixed threshold adjustment amount or a threshold adjustment amount, and the calculation formula may be set according to an endpoint value of a pressure threshold interval corresponding to the touch intensity and/or a current pressure threshold.
Step S23 may further include:
step a232, determining a threshold adjusting direction according to the target touch intensity, and calculating a second difference value between the touch pressure value and an end point value of the target difference value interval;
step a233, determining to obtain a threshold adjustment amount according to the threshold adjustment direction and the second difference.
As another determination method of the threshold adjustment amount, the threshold adjustment direction may be determined according to the target touch intensity, the difference between the touch pressure value and the endpoint value of the target difference interval is calculated, the difference is distinguished from the difference between the touch pressure value and the current pressure threshold, and the difference between the touch pressure value and the endpoint value of the target difference interval is recorded as a second difference.
The direction of the threshold adjustment, i.e. the sign, i.e. the positive or negative sign, of the threshold adjustment amount is determined. When determining the threshold adjustment direction, the threshold adjustment direction may be determined according to the target touch intensity, the preset touch intensity and the threshold adjustment direction, for example, when the touch intensity is "weak", the threshold adjustment direction is negative, and when the touch intensity is "medium" and "strong", the threshold adjustment direction is positive.
It should be noted that, because the end point values of the target difference interval include two, when calculating the second difference between the touch pressure value and the end point value of the target difference interval, it may be predefined that the smaller value of the end point values of the target difference interval is subtracted from the unified value to obtain the second difference, and of course, it may also be calculated to calculate the difference between the touch pressure value and the end point values of the two target difference intervals, and then take the average value or the larger value or the smaller value of the difference as the second difference.
And then, determining to obtain a threshold adjustment amount according to the threshold adjustment direction and the difference value. For example, if the touch intensity is "weak", it is considered that the touch pressure value at this time is small and touch is not easy, and it is necessary to improve the key sensitivity. For another example, if the touch intensity is "strong", it is considered that the touch pressure value at this time is large, there is a possibility that the pressure calibration value is shifted, and it is necessary to decrease the key sensitivity, at this time, it is determined that the threshold adjustment direction is a plus sign, and if the second difference is b, it is determined that the threshold adjustment amount is b, so as to adjust the current pressure threshold upward.
In the embodiment, a current pressure threshold is obtained, and a mapping relation between a pressure threshold interval and the touch intensity is established according to the current pressure threshold; then, determining a target pressure threshold interval where the touch pressure value is located according to the mapping relation, and determining target touch intensity according to the target pressure threshold interval; and determining the threshold adjustment amount according to the target touch intensity. Through the mode, the threshold adjustment amount can be determined, the pressure threshold value for detecting the key pressing effectiveness is adjusted correspondingly, the intelligent adjustment of the sensitivity of the Bluetooth headset key can be realized, the pressing habit of the user on the Bluetooth headset key is better met, and the use experience of the user is improved.
The invention also provides a device for adjusting the button sensitivity of the Bluetooth headset.
In this embodiment, the apparatus for adjusting sensitivity of a bluetooth headset comprises:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a touch pressure value corresponding to a touch event when the touch event generated by a key based on a Bluetooth headset is detected;
the adjustment quantity determining module is used for acquiring a current pressure threshold value and determining a threshold adjustment quantity according to the current pressure threshold value and the touch pressure value;
and the threshold adjusting module is used for adjusting and updating the current pressure threshold according to the threshold adjusting amount.
Further, the first obtaining module comprises:
the first acquisition unit is used for acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of first preset time;
the first detection unit is used for detecting whether the first real-time pressure value is larger than the current pressure threshold value or not;
the second obtaining unit is used for judging that a touch event generated by a key based on the Bluetooth headset is detected if the first real-time pressure value is larger than the current pressure threshold value, and continuously obtaining a second real-time pressure value corresponding to the touch event every second preset time;
and the first calculating unit is used for calculating an average pressure value according to the first real-time pressure value and the second real-time pressure value, and taking the average pressure value as a touch pressure value corresponding to the touch event.
Further, the first obtaining module is further configured to:
when the touch event is detected to end, continuing to execute the following steps: and acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time.
Further, the adjustment amount determination module includes:
the second calculation unit is used for acquiring a current pressure threshold value and calculating a first difference value between the touch pressure value and the current pressure threshold value;
the first determining unit is used for determining a target difference interval where the first difference is located according to a mapping relation between a preset difference interval and the touch intensity, and determining the target touch intensity according to the target difference interval;
and the second determining unit is used for determining the threshold adjustment amount according to the target touch intensity.
Further, the second determination unit includes:
and the first determining subunit is configured to determine, according to a mapping relationship between preset touch intensity and a threshold adjustment amount, the threshold adjustment amount corresponding to the target touch intensity.
Further, the second determination unit further includes:
the second determining subunit is used for determining a threshold adjusting direction according to the target touch intensity and calculating a second difference value between the touch pressure value and an endpoint value of the target difference value interval;
and the third determining subunit is used for determining to obtain the threshold adjusting amount according to the threshold adjusting direction and the second difference.
Further, the device for adjusting the sensitivity of the bluetooth headset further comprises:
and the operation execution module is used for determining a target key corresponding to the touch event and executing the adjustment operation corresponding to the target key.
The function implementation of each module in the key sensitivity adjustment device of the bluetooth headset corresponds to each step in the embodiment of the key sensitivity adjustment method of the bluetooth headset, and the function and implementation process are not described in detail herein.
The present invention further provides a computer-readable storage medium, on which a key sensitivity adjustment program is stored, wherein the key sensitivity adjustment program, when executed by a processor, implements the steps of the method for adjusting the key sensitivity of a bluetooth headset according to any of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the method for adjusting the sensitivity of the bluetooth headset, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (9)

1. A key sensitivity adjusting method of a Bluetooth headset is characterized by comprising the following steps:
when a touch event generated by a key based on a Bluetooth headset is detected, acquiring a touch pressure value corresponding to the touch event;
obtaining a current pressure threshold value, and determining to obtain a threshold value adjustment amount according to the current pressure threshold value and the touch pressure value;
adjusting and updating the current pressure threshold according to the threshold adjustment amount;
the step of acquiring a touch pressure value corresponding to a touch event when the touch event generated by a key of a Bluetooth headset is detected comprises the following steps:
acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time;
detecting whether the first real-time pressure value is greater than the current pressure threshold value;
if the first real-time pressure value is larger than the current pressure threshold value, judging that a touch event generated by a key based on a Bluetooth headset is detected, and continuously acquiring a second real-time pressure value corresponding to the touch event every other second preset time;
and calculating to obtain an average pressure value according to the first real-time pressure value and the second real-time pressure value, and taking the average pressure value as a touch pressure value corresponding to the touch event.
2. The method for adjusting key sensitivity of a bluetooth headset according to claim 1, wherein after the step of continuously acquiring the second real-time pressure value corresponding to the touch event every second preset time, the method further comprises:
when the touch event is detected to be finished, the following steps are continuously executed: and acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of a first preset time.
3. The method of any of claims 1 to 2, wherein the step of obtaining a current pressure threshold and determining a threshold adjustment amount according to the current pressure threshold and the touch pressure value comprises:
acquiring a current pressure threshold, and calculating a first difference value between the touch pressure value and the current pressure threshold;
determining a target difference interval where the first difference is located according to a mapping relation between a preset difference interval and the touch intensity, and determining the target touch intensity according to the target difference interval;
and determining a threshold adjustment amount according to the target touch intensity.
4. The method of claim 3, wherein the step of determining a threshold adjustment amount according to the target touch intensity comprises:
and determining a threshold adjustment amount corresponding to the target touch intensity according to a mapping relation between preset touch intensity and the threshold adjustment amount.
5. The method of claim 3, wherein the step of determining a threshold adjustment amount according to the target touch intensity comprises:
determining a threshold adjusting direction according to the target touch intensity, and calculating a second difference value between the touch pressure value and an end point value of the target difference value interval;
and determining to obtain a threshold adjustment amount according to the threshold adjustment direction and the second difference value.
6. The key sensitivity adjustment method of a bluetooth headset according to any of claims 1 to 2, wherein the key sensitivity adjustment method of a bluetooth headset further comprises:
and determining a target key corresponding to the touch event, and executing adjustment operation corresponding to the target key.
7. A key sensitivity adjusting device of a Bluetooth headset, the key sensitivity adjusting device of the Bluetooth headset comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a touch pressure value corresponding to a touch event when the touch event generated by a key based on a Bluetooth headset is detected;
the adjustment quantity determining module is used for acquiring a current pressure threshold value and determining a threshold adjustment quantity according to the current pressure threshold value and the touch pressure value;
the threshold adjusting module is used for adjusting and updating the current pressure threshold according to the threshold adjusting amount;
wherein the first obtaining module comprises:
the first acquisition unit is used for acquiring a first real-time pressure value of a pressure sensor under a key of the Bluetooth headset at intervals of first preset time;
the first detection unit is used for detecting whether the first real-time pressure value is larger than the current pressure threshold value or not;
the second obtaining unit is used for judging that a touch event generated by a key based on the Bluetooth headset is detected if the first real-time pressure value is larger than the current pressure threshold value, and continuously obtaining a second real-time pressure value corresponding to the touch event every second preset time;
and the first calculating unit is used for calculating an average pressure value according to the first real-time pressure value and the second real-time pressure value, and taking the average pressure value as a touch pressure value corresponding to the touch event.
8. A Bluetooth headset, comprising: a memory, a processor and a key sensitivity adjustment program stored on the memory and executable on the processor, the key sensitivity adjustment program when executed by the processor implementing the steps of the key sensitivity adjustment method of a bluetooth headset of any one of claims 1 to 6.
9. A computer-readable storage medium, having a key sensitivity adjustment program stored thereon, which when executed by a processor, implements the steps of the key sensitivity adjustment method of the bluetooth headset of any one of claims 1 to 6.
CN202010509744.1A 2020-06-05 2020-06-05 Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof Active CN111698601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010509744.1A CN111698601B (en) 2020-06-05 2020-06-05 Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010509744.1A CN111698601B (en) 2020-06-05 2020-06-05 Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof

Publications (2)

Publication Number Publication Date
CN111698601A CN111698601A (en) 2020-09-22
CN111698601B true CN111698601B (en) 2022-08-19

Family

ID=72479697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010509744.1A Active CN111698601B (en) 2020-06-05 2020-06-05 Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof

Country Status (1)

Country Link
CN (1) CN111698601B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258809B (en) * 2020-09-30 2022-04-05 歌尔科技有限公司 Loss detection method and device of wireless earphone and earphone
CN114205726B (en) * 2021-09-01 2024-04-12 珠海市杰理科技股份有限公司 Method and device for testing finished earphone and earphone manufacturing system
CN114430325A (en) * 2022-02-07 2022-05-03 吴倩倩 Message verification system and method based on communication network
CN115103290B (en) * 2022-07-15 2022-11-22 龙旗电子(惠州)有限公司 Earphone testing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101644966A (en) * 2009-09-03 2010-02-10 苏州达方电子有限公司 Input device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100881186B1 (en) * 2007-01-04 2009-02-05 삼성전자주식회사 Touch screen display device
CN104714703A (en) * 2013-12-11 2015-06-17 中兴通讯股份有限公司 Sensitivity adjustment method and device
CN109660241A (en) * 2018-11-06 2019-04-19 深圳和而泰智能控制股份有限公司 A kind of method and device adjusting touch key-press sensitivity

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101644966A (en) * 2009-09-03 2010-02-10 苏州达方电子有限公司 Input device

Also Published As

Publication number Publication date
CN111698601A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111698601B (en) Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof
CN106598335B (en) A kind of touch screen control method, device and mobile terminal of mobile terminal
EP3133473A1 (en) Method of sensing pressure by touch sensor and electronic device adapted thereto
CN108390117B (en) Charging method and mobile terminal
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
WO2015024434A1 (en) Devices and methods for audio volume adjustment
CN108681413B (en) Control method of display module and mobile terminal
CN108008859B (en) Screen control method and mobile terminal
KR20150087638A (en) Method, electronic device and storage medium for obtaining input in electronic device
CN107463897B (en) Fingerprint identification method and mobile terminal
CN108289270B (en) Loudspeaker and mobile terminal
CN113453122A (en) Wearing detection method, wearing detection device, wearing detection equipment and computer-readable storage medium
CN113194395A (en) Parameter adjusting method, device and system of auxiliary listening equipment and readable storage medium
CN107784298B (en) Identification method and device
CN108540642B (en) Mobile terminal and operation method thereof
CN112804612A (en) Earphone control method, earphone control device, earphone and computer readable storage medium
CN108848265B (en) Screen brightness adjusting method and device for local area, terminal and storage medium
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN114264365B (en) Wind noise detection method, device, terminal equipment and storage medium
CN115905828A (en) Motion gesture recognition method and device, storage medium and wearable device
CN112399012B (en) Proximity sensor setting method, device and storage medium
CN109189256B (en) Touch data processing method and device, mobile terminal and storage medium
CN112102794B (en) Method and device for eliminating touch trace of touch screen and computer readable storage medium
CN113918757A (en) Application recommendation method and device, electronic equipment and storage medium
CN109032482B (en) Split screen control method and device, storage medium and electronic equipment

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