[go: up one dir, main page]

CN111654773B - Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium - Google Patents

Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium Download PDF

Info

Publication number
CN111654773B
CN111654773B CN202010477003.XA CN202010477003A CN111654773B CN 111654773 B CN111654773 B CN 111654773B CN 202010477003 A CN202010477003 A CN 202010477003A CN 111654773 B CN111654773 B CN 111654773B
Authority
CN
China
Prior art keywords
infrared light
value
calibrated
earphone
light 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.)
Active
Application number
CN202010477003.XA
Other languages
Chinese (zh)
Other versions
CN111654773A (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 CN202010477003.XA priority Critical patent/CN111654773B/en
Publication of CN111654773A publication Critical patent/CN111654773A/en
Application granted granted Critical
Publication of CN111654773B publication Critical patent/CN111654773B/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
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a Bluetooth headset, a calibration method of the Bluetooth headset, a device and a storage medium, wherein when a headset calibration instruction is detected, the headset to be calibrated is determined according to the headset calibration instruction, each infrared light value of the headset to be calibrated in a wearing state is acquired, and a first infrared light value set is generated; acquiring each infrared light value of the headset to be calibrated in an unworn state as a second infrared light value set; and calculating and determining the calibrated infrared light threshold of the earphone to be calibrated based on a preset calculation rule, the first infrared light value set and the second infrared light value set, and finishing the updating of the infrared light threshold of the earphone. The invention provides a method for a user to calibrate an infrared light threshold of a Bluetooth headset by himself, which improves the measurement sensitivity of an infrared sensor of the Bluetooth headset, improves the wearing state identification accuracy of the Bluetooth headset, and solves the technical problem that the wearing state identification accuracy of the Bluetooth headset based on the infrared sensor is reduced.

Description

Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium
Technical Field
The present invention relates to the field of bluetooth communication technologies, and in particular, to a bluetooth headset, a calibration method and device for the bluetooth headset, and a computer-readable storage medium.
Background
With the development of science and technology and the improvement of the living standard of people, the bluetooth headset gradually becomes an essential electronic product. The occupancy rate of TWS (true Wireless stereo) headphones in the headphone market is gradually increasing due to the excellent characteristics of more comfortable wearing, convenient use, low attractiveness, smaller size, more beautiful appearance, and the like. Since the TWS headset itself is small, it is difficult to configure the TWS headset with a battery having a large capacity, thereby causing a problem of cruising of the TWS headset. In order to improve the cruising ability of the TWS earphone, an infrared proximity sensor is added on the TWS earphone, the wearing state of the earphone is identified through the infrared proximity sensor, and the earphone is automatically paused or controlled to enter a low power consumption mode when the condition that a user takes off the earphone is detected.
However, wearing habit differences of different people, skin color differences and damage to the infrared sensor lens due to long-term use of the earphone cause reduction of the wearing state identification accuracy of the earphone based on the infrared sensor.
Disclosure of Invention
The invention mainly aims to provide a Bluetooth headset, a calibration method and equipment of the Bluetooth headset and a computer readable storage medium, and aims to solve the technical problem that the wearing state identification accuracy of the Bluetooth headset based on an infrared sensor is reduced.
In order to achieve the above object, the present invention provides a calibration method for a bluetooth headset, which is characterized in that the calibration method for the bluetooth headset comprises the following steps:
when an earphone calibration instruction is detected, determining an earphone to be calibrated according to the earphone calibration instruction, acquiring each infrared light value of the earphone to be calibrated in a wearing state, and generating a first infrared light value set;
acquiring each infrared light value of the headset to be calibrated in an unworn state as a second infrared light value set;
and calculating and determining the calibrated infrared light threshold of the earphone to be calibrated based on a preset calculation rule, the first infrared light value set and the second infrared light value set, and finishing the updating of the infrared light threshold of the earphone.
Optionally, the step of acquiring each infrared light value of the to-be-calibrated headset in a wearing state and generating a first infrared light value set specifically includes:
acquiring each infrared light value of the earphone to be calibrated in a wearing state, and judging whether an invalid value which does not belong to a preset range exists in each infrared light value of the earphone to be calibrated in the wearing state;
and if the invalid value exists, deleting the invalid value in each infrared light value of the earphone to be calibrated in the wearing state, and generating the first infrared light value set.
Optionally, the step of calculating and determining the calibrated infrared light threshold of the headset to be calibrated based on a preset calculation rule, the first infrared light value set, and the second infrared light value set specifically includes:
determining corresponding points of the first infrared light value set matched with the second infrared light value set based on the acquisition time points of the infrared light values in the first infrared light value set and the acquisition time points of the infrared light values in the second infrared light value set;
and respectively calculating the average infrared light value of each pair of corresponding points to generate an average infrared light value set, and determining the calibrated infrared light threshold value based on each average infrared light value in the average infrared light value set to complete the updating of the infrared light threshold value of the earphone.
Optionally, the step of determining, based on the collection time point of each infrared value in the first infrared value set and the collection time point of each infrared value in the second infrared value set, each corresponding point of the first infrared value set that matches with the second infrared value set specifically includes:
acquiring an infrared light value in the first infrared light value set as a target infrared light value, and acquiring a first acquisition time point corresponding to the target infrared light value;
determining time points corresponding to the first acquisition time points in all acquisition time points corresponding to the second infrared light value set based on a preset corresponding table to serve as second acquisition time points;
determining the infrared light values acquired by the second acquisition time point in the second infrared light value set as corresponding points of the target infrared light value to determine corresponding points of the first infrared light value set matched with the second infrared light value set;
and acquiring a next infrared light value in the first infrared light value set as a target infrared light value to determine each corresponding point of the first infrared light value set matched with the second infrared light value set.
Optionally, after the step of determining, based on the collection time point of each infrared value in the first infrared value set and the collection time point of each infrared value in the second infrared value set, each corresponding point of the first infrared value set that matches the second infrared value set, the method further includes:
judging whether an invalid corresponding point with a difference value exceeding a preset difference value exists in each matched corresponding point;
and if the invalid corresponding points exist in the matched corresponding points, eliminating the invalid corresponding points from the matched corresponding points.
Optionally, the step of respectively calculating the average infrared light values of each pair of corresponding points, generating an average infrared light value set, and determining the update of the calibrated infrared light threshold based on each average infrared light value in the average infrared light value set specifically includes:
respectively calculating the average infrared light value of each pair of corresponding points to generate an average infrared light value set;
calculating the average value of a preset maximum infrared light threshold value and each average infrared light value in the average infrared light value set as the calibrated maximum infrared light threshold value;
and acquiring a calibration fixed value corresponding to the earphone to be calibrated, and calculating a difference value between the calibrated maximum infrared light threshold value and the calibration fixed value to be used as the calibrated minimum infrared light threshold value.
Optionally, after the step of determining the headset to be calibrated according to the headset calibration instruction when the headset calibration instruction is detected, the method further includes:
sending a calibration reminding message to a user through an earphone or a terminal in communication connection with the earphone to be calibrated so that the user can wear and take off the earphone to be calibrated;
when detecting that a user wears the earphone, acquiring and storing infrared light values of the earphone to be calibrated in a wearing state;
and when the user is detected to take off the headset, acquiring and storing each infrared light value of the headset to be calibrated in an unworn state.
In addition, to achieve the above object, the present invention further provides a bluetooth headset, which includes an infrared sensor, a processor, a memory, and a calibration program of the bluetooth headset stored on the memory and executable by the processor, wherein the calibration program of the bluetooth headset is executed by the processor to implement the steps of the calibration method of the bluetooth headset as described above.
In addition, to achieve the above object, the present invention further provides a calibration device for a bluetooth headset, the calibration device for a bluetooth headset comprising a processor, a memory, and a calibration program for a bluetooth headset stored on the memory and executable by the processor, wherein when the calibration program for a bluetooth headset is executed by the processor, the steps of the calibration method for a bluetooth headset as described above are implemented.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, which stores a calibration program of a bluetooth headset, wherein the calibration program of the bluetooth headset is executed by a processor to implement the steps of the calibration method of the bluetooth headset as described above.
The invention provides a calibration method of a Bluetooth headset, which comprises the steps of determining a headset to be calibrated according to a headset calibration instruction when the headset calibration instruction is detected, acquiring each infrared light value of the headset to be calibrated in a wearing state, and generating a first infrared light value set; acquiring each infrared light value of the headset to be calibrated in an unworn state as a second infrared light value set; and calculating and determining the calibrated infrared light threshold of the earphone to be calibrated based on a preset calculation rule, the first infrared light value set and the second infrared light value set, and finishing the updating of the infrared light threshold of the earphone. Through the mode, the method can calculate and determine the latest infrared light threshold value of the earphone to be calibrated based on the first infrared light value set of the earphone to be calibrated in a wearing state and the second infrared light value set of the earphone to be calibrated in an unworn state, so that the method for the user to calibrate the infrared light threshold value of the Bluetooth earphone by himself is provided, the measuring sensitivity of the infrared sensor of the Bluetooth earphone is improved, the wearing state identification accuracy of the Bluetooth earphone is improved, and the technical problem that the wearing state identification accuracy of the Bluetooth earphone based on the infrared sensor is reduced is solved.
Drawings
Fig. 1 is a schematic hardware structure diagram of a calibration apparatus for a bluetooth headset according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a calibration method for a Bluetooth headset according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a calibration method for a Bluetooth headset according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a calibration method for a bluetooth headset according to a third 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.
The calibration method of the Bluetooth headset related by the embodiment of the invention is mainly applied to calibration equipment of the Bluetooth headset, and the calibration equipment of the Bluetooth headset can be equipment with display and processing functions, such as a PC (personal computer), a portable computer, a mobile terminal and the like.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a calibration apparatus for a bluetooth headset according to an embodiment of the present invention. In an embodiment of the present invention, the calibration apparatus of the bluetooth headset may include a processor 1001 (e.g., a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory, or may be a non-volatile memory (e.g., a magnetic disk memory), and optionally, the memory 1005 may be a storage device independent of the processor 1001.
Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 does not constitute a limitation of the calibration apparatus of the bluetooth headset, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of computer-readable storage medium, may include an operating system, a network communication module, and a calibration program for a bluetooth headset.
In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and the processor 1001 may call a calibration program of the bluetooth headset stored in the memory 1005 and perform the calibration method of the bluetooth headset according to the embodiment of the present invention.
The embodiment of the invention provides a calibration method of a Bluetooth headset.
Referring to fig. 2, fig. 2 is a flowchart illustrating a calibration method of a bluetooth headset according to a first embodiment of the present invention.
In this embodiment, the calibration method for the bluetooth headset includes the following steps:
step S10, when detecting an earphone calibration instruction, determining an earphone to be calibrated according to the earphone calibration instruction, acquiring each infrared light value of the earphone to be calibrated in a wearing state, and generating a first infrared light value set;
in order to improve the cruising ability of the TWS earphone, an infrared proximity sensor is added on the TWS earphone, the wearing state of the earphone is identified through the infrared proximity sensor, and the earphone is automatically paused or controlled to enter a low power consumption mode when the condition that a user takes off the earphone is detected. However, wearing habit differences of different people, skin color differences and damage to the infrared sensor lens due to long-term use of the earphone cause reduction of the wearing state identification accuracy of the earphone based on the infrared sensor. In order to solve the problems, the invention can calculate and determine the latest infrared light threshold value of the earphone to be calibrated based on the first infrared light value set of the earphone to be calibrated in a wearing state and the second infrared light value set of the earphone to be calibrated in an unworn state, thereby providing a method for a user to calibrate the infrared light threshold value of the Bluetooth earphone by himself, improving the measurement sensitivity of an infrared sensor of the Bluetooth earphone and improving the wearing state identification accuracy of the Bluetooth earphone. Specifically, the calibration method of the Bluetooth headset is applied to the Bluetooth headset, and the Bluetooth headset comprises a calibration module and an infrared sensor. In this embodiment, the calibration module is used as an execution main body. The infrared sensor in a TWS headset consists of two devices, namely a radiation source for emitting light pulses and a photodiode for converting the received infrared energy into digital values. When infrared light from the radiation source hits an object block, the remaining infrared light, except for being absorbed by the object, is reflected to the photodiode, which converts the infrared energy into a digital Value IR _ Value. Comparing the value with a high threshold and a low threshold which are arranged in the infrared sensor, and if the value is larger than a set High Threshold (HT), the infrared sensor is considered to be close to the object, namely the TWS earphone is in a wearing state; if the value is less than the set Low Threshold (LT) the infrared sensor is considered to be far away from the object, i.e. the TWS headset is shown in an unworn state. Namely, wearing state: IR _ Value > HT; the non-wearing state: IR Value < LT. In order to facilitate the user to calibrate the infrared sensor by himself, the touch chip is registered in the MCU to interrupt the pin, so that the user can start the calibration mode of the earphone by pressing the earphone touch sensing piece for a long time. In a specific embodiment, after the step of determining the headset to be calibrated according to the headset calibration instruction when the headset calibration instruction is detected, the method further includes: sending a calibration reminding message to a user through an earphone or a terminal in communication connection with the earphone to be calibrated so that the user can wear and take off the earphone to be calibrated; when detecting that a user wears the earphone, acquiring and storing infrared light values of the earphone to be calibrated in a wearing state; and when the user is detected to take off the headset, acquiring and storing each infrared light value of the headset to be calibrated in an unworn state. The right earphone calibration mode can be started by long pressing of the left earphone touch control induction sheet. The left earphone is used for prompting that the right earphone is worn through voice, or a reminding message for prompting that the right earphone is worn through a terminal connected with the Bluetooth earphone in a communication mode or the voice is used for prompting that the right earphone is worn by a user. Upon detecting that the user wears the right headphone, a value converted by the photodiode, i.e., an infrared light value, may be collected once every 20ms, generating a first set of infrared light values. In further embodiments, in order to improve accuracy of the infrared light threshold, the step of acquiring each infrared light value of the headset to be calibrated in a wearing state and generating a first infrared light value set specifically includes: acquiring each infrared light value of the earphone to be calibrated in a wearing state, and judging whether an invalid value which does not belong to a preset range exists in each infrared light value of the earphone to be calibrated in the wearing state; and if the invalid value exists, deleting the invalid value in each infrared light value of the earphone to be calibrated in the wearing state, and generating the first infrared light value set. That is, the value of the infrared sensor in the state of not being close to the skin at the start of wearing and immediately before the end of taking off is close to 0 or less than 10, which is an invalid value.
Step S20, acquiring each infrared light value of the headset to be calibrated in an unworn state as a second infrared light value set;
in this embodiment, when it is detected that the user does not wear the right headphone, a value converted by the photodiode, that is, an infrared light value, may be collected once every 20ms, and a second infrared light value set is generated.
Step S30, calculating and determining the calibrated infrared light threshold of the headset to be calibrated based on a preset calculation rule, the first infrared light value set, and the second infrared light value set, and completing updating the headset infrared light threshold.
In this embodiment, the average value of the first infrared light value set and the average value of the second infrared light value set may be calculated, and then the average value of the two average values is used as the maximum infrared light threshold. Or based on the acquisition time point, setting each infrared value in the first infrared value set and each infrared value in the second infrared value set as corresponding points, and calculating the average value of each corresponding point. The calibrated infrared light threshold is determined based on the average value of each corresponding point. Specifically, the right headphone calibration will be described as an example. If the left earphone is worn, the TOUCH control interrupt can be triggered by LONG pressing of the left earphone TOUCH control induction sheet for 5s, and meanwhile, the right earphone is put into a box through the voice prompt of the left earphone, and the TOUCH control chip feeds back an interrupt event INT _ LONG _ TOUCH to the MCU end; after receiving the interrupt event, the left earphone MCU end sends a fixed data packet to the right earphone through BLE, namely, sends a prompt message to the right earphone; the right earphone analyzes the data packet sent by the left earphone after receiving the data packet; after the right earphone analyzes the mark for starting the calibration of the infrared sensor, the infrared sensor enters a calibration mode, and a mark for successful receiving is sent to the left earphone; after the left earphone receives the correct information fed back by the right earphone, prompting a reminding message of 'starting to calibrate the right earphone' and 'please wear the right earphone' by voice; the right earphone always acquires the value converted by the photodiode in the wearing process, and after the setting is stable, a complete wearing mark of the right earphone is sent to the left earphone through BLE; after the left earphone receives the mark that the right earphone is completely worn, the voice prompts 'please take off the right earphone'; collecting the value converted by the broadcasting diode all the time in the process of picking the right earphone, and stopping data collection when the value is stable or almost approaches to 0, and sending a calibration end mark to the left earphone; and after the left earphone receives the right earphone calibration end mark, the user is prompted by voice to 'end the right ear calibration'. After the right earphone is completely worn, the value is the maximum value _ max in the calibration process, the value is taken as a symmetrical point, symmetrical effective values recorded in the wearing and taking-off processes are compared and subtracted, if the difference value range is within +/-10, the two values are taken as effective values, the average value of the two values is taken as a new recorded value _ new, and the average value of the value _ max and the n values _ new is taken as a high threshold value. Namely, in the wearing process, the infrared light value is gradually increased, in the picking process, the infrared light value is gradually decreased to finish wearing the earphone as a peak point, the wearing process and the infrared light value in the picking process form a symmetrical relation, and the collecting time point is used as an associated identifier. And reducing a fixed value (different infrared chips have different values) on the basis of the high threshold value to be used as a low threshold value, exiting the calibration mode and updating the calibration threshold value after the calibration is finished, and replacing the original calibration value with the new calibration value by the earphone.
The embodiment provides a calibration method of a bluetooth headset, which includes determining a headset to be calibrated according to a headset calibration instruction when the headset calibration instruction is detected, acquiring infrared light values of the headset to be calibrated in a wearing state, and generating a first infrared light value set; acquiring each infrared light value of the headset to be calibrated in an unworn state as a second infrared light value set; and calculating and determining the calibrated infrared light threshold of the earphone to be calibrated based on a preset calculation rule, the first infrared light value set and the second infrared light value set, and finishing the updating of the infrared light threshold of the earphone. Through the mode, the method can calculate and determine the latest infrared light threshold value of the earphone to be calibrated based on the first infrared light value set of the earphone to be calibrated in a wearing state and the second infrared light value set of the earphone to be calibrated in an unworn state, so that the method for the user to calibrate the infrared light threshold value of the Bluetooth earphone by himself is provided, the measuring sensitivity of the infrared sensor of the Bluetooth earphone is improved, the wearing state identification accuracy of the Bluetooth earphone is improved, and the technical problem that the wearing state identification accuracy of the Bluetooth earphone based on the infrared sensor is reduced is solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a calibration method for a bluetooth headset according to a second embodiment of the present invention.
Based on the foregoing embodiment shown in fig. 2, in this embodiment, the step S30 specifically includes:
step S31, determining each corresponding point of the first infrared light value set and the second infrared light value set, based on the collection time point of each infrared light value in the first infrared light value set and the collection time point of each infrared light value in the second infrared light value set;
in this embodiment, an infrared light value is obtained from the first infrared light value set as a target infrared light value, and a first collection time point corresponding to the target infrared light value is obtained; determining time points corresponding to the first acquisition time points in all acquisition time points corresponding to the second infrared light value set based on a preset corresponding table to serve as second acquisition time points; determining the infrared light values acquired by the second acquisition time point in the second infrared light value set as corresponding points of the target infrared light value to determine corresponding points of the first infrared light value set matched with the second infrared light value set; and acquiring a next infrared light value in the first infrared light value set as a target infrared light value to determine each corresponding point of the first infrared light value set matched with the second infrared light value set.
Step S32, respectively calculating average infrared light values of each pair of corresponding points, generating an average infrared light value set, determining the calibrated infrared light threshold value based on each average infrared light value in the average infrared light value set, and completing updating the infrared light threshold value of the headset.
In this embodiment, the average infrared light values of each pair of corresponding points are respectively calculated to generate an average infrared light value set; calculating a preset maximum infrared thresholdAnd taking the average value of the value and each average infrared light value in the average infrared light value set as the calibrated maximum infrared light threshold value. And acquiring a calibration fixed value corresponding to the earphone to be calibrated, and calculating a difference value between the calibrated maximum infrared light threshold value and the calibration fixed value to be used as the calibrated minimum infrared light threshold value. Specifically, during the wearing of the right earphone, the values converted by the photodiode are collected every 20ms, and the invalid value smaller than 10 is filtered. Collecting effective value and corresponding collection time point tw0、tw1...twn-2、twn-1、twnWherein twnThe maximum infrared light threshold value _ max in the wearing state; starting to take off the right earphone and zeroing the time schedule; in the process of removing the right earphone, recording the value converted by the photodiode once every 20ms, discarding an invalid value less than 10, and recording an effective value and a corresponding time point tr0、tr1...trn-2、trn-1、trn(ii) a Will tr0、tr1...trn-2、trn-1、trnThe corresponding values at the time points are respectively corresponding to twn、twn-1、twn-2...tw1、tw0Making difference on the numerical value of the corresponding moment; if the difference value ranges within +/-10, the value is an effective value, and the average value of the two is taken as a new effective value _ new0、value_new1、value_new2...; take the new valid value _ new0、value_new1、value_new2.., and the mean value of value _ max is used as the maximum infrared light threshold value after calibration; and reducing a fixed value (which is different for different infrared chips) on the basis of the calibrated maximum infrared light threshold value to serve as the calibrated minimum infrared light threshold value.
Referring to fig. 4, fig. 4 is a flowchart illustrating a calibration method for a bluetooth headset according to a third embodiment of the present invention.
Based on the foregoing embodiment shown in fig. 3, in this embodiment, after step S31, the method further includes:
step S33, judging whether each matched corresponding point has an invalid corresponding point with a difference value exceeding a preset difference value;
step S34, if the invalid corresponding point exists in each pair of matched corresponding points, removing the invalid corresponding point from each pair of matched corresponding points.
In this embodiment, in order to improve the accuracy of the infrared light threshold, when the difference of the infrared light values of the corresponding point exceeds a preset difference, for example, 10, the corresponding point is marked as an invalid corresponding point. Specifically, let tr0、tr1...trn-2、trn-1、trnThe corresponding values at the time points are respectively corresponding to twn、twn-1、twn-2...tw1、tw0Making difference on the numerical value of the corresponding moment; if the difference value ranges within +/-10, the value is an effective value, and the average value of the two is taken as a new effective value _ new0、value_new1、value_new2...; take the new valid value _ new0、value_new1、value_new2.., and the mean value of value _ max is used as the maximum infrared light threshold value after calibration; and reducing a fixed value (which is different for different infrared chips) on the basis of the calibrated maximum infrared light threshold value to serve as the calibrated minimum infrared light threshold value.
In addition, the embodiment of the invention also provides a calibration device of the Bluetooth headset.
In this embodiment, the calibration apparatus for a bluetooth headset includes:
the device comprises a first light value set generating module, a second light value set generating module and a control module, wherein the first light value set generating module is used for determining the earphone to be calibrated according to the earphone calibration instruction when the earphone calibration instruction is detected, acquiring each infrared light value of the earphone to be calibrated in a wearing state and generating a first infrared light value set;
the second light value set generating module is used for acquiring each infrared light value of the headset to be calibrated in an unworn state as a second infrared light value set;
and the infrared light threshold calibration module is used for calculating and determining the calibrated infrared light threshold of the earphone to be calibrated based on a preset calculation rule, the first infrared light value set and the second infrared light value set, and updating the infrared light threshold of the earphone.
Further, the first light value set generating module is further configured to:
acquiring each infrared light value of the earphone to be calibrated in a wearing state, and judging whether an invalid value which does not belong to a preset range exists in each infrared light value of the earphone to be calibrated in the wearing state;
and if the invalid value exists, deleting the invalid value in each infrared light value of the earphone to be calibrated in the wearing state, and generating the first infrared light value set.
Further, the infrared light threshold calibration module is further configured to:
determining corresponding points of the first infrared light value set matched with the second infrared light value set based on the acquisition time points of the infrared light values in the first infrared light value set and the acquisition time points of the infrared light values in the second infrared light value set;
and respectively calculating the average infrared light value of each pair of corresponding points to generate an average infrared light value set, and determining the calibrated infrared light threshold value based on each average infrared light value in the average infrared light value set to complete the updating of the infrared light threshold value of the earphone.
Further, the infrared light threshold calibration module is further configured to:
acquiring an infrared light value in the first infrared light value set as a target infrared light value, and acquiring a first acquisition time point corresponding to the target infrared light value;
determining time points corresponding to the first acquisition time points in all acquisition time points corresponding to the second infrared light value set based on a preset corresponding table to serve as second acquisition time points;
determining the infrared light values acquired by the second acquisition time point in the second infrared light value set as corresponding points of the target infrared light value to determine corresponding points of the first infrared light value set matched with the second infrared light value set;
and acquiring a next infrared light value in the first infrared light value set as a target infrared light value to determine each corresponding point of the first infrared light value set matched with the second infrared light value set.
Further, the infrared light threshold calibration module is further configured to:
judging whether an invalid corresponding point with a difference value exceeding a preset difference value exists in each matched corresponding point;
and if the invalid corresponding points exist in the matched corresponding points, eliminating the invalid corresponding points from the matched corresponding points.
Further, the infrared light threshold calibration module is further configured to:
respectively calculating the average infrared light value of each pair of corresponding points to generate an average infrared light value set;
and calculating the average value of the preset maximum infrared light threshold value and each average infrared light value in the average infrared light value set as the calibrated maximum infrared light threshold value.
And acquiring a calibration fixed value corresponding to the earphone to be calibrated, and calculating a difference value between the calibrated maximum infrared light threshold value and the calibration fixed value to be used as the calibrated minimum infrared light threshold value.
Further, the first light value set generating module is further configured to:
sending a calibration reminding message to a user through an earphone or a terminal in communication connection with the earphone to be calibrated so that the user can wear and take off the earphone to be calibrated;
when detecting that a user wears the earphone, acquiring and storing infrared light values of the earphone to be calibrated in a wearing state;
and when the user is detected to take off the headset, acquiring and storing each infrared light value of the headset to be calibrated in an unworn state.
Each module in the calibration apparatus of the bluetooth headset corresponds to each step in the calibration method embodiment of the bluetooth headset, and the functions and implementation processes thereof are not described in detail herein.
In addition, the embodiment of the invention also provides the Bluetooth headset.
The Bluetooth headset comprises an infrared sensor, a processor, a memory and a calibration program of the Bluetooth headset, wherein the calibration program of the Bluetooth headset is stored on the memory and can be executed by the processor, and when the calibration program of the Bluetooth headset is executed by the processor, the steps of the calibration method of the Bluetooth headset are realized.
The method for implementing the calibration procedure of the bluetooth headset when executed may refer to various embodiments of the calibration method of the bluetooth headset of the present invention, and will not be described herein again.
In addition, the embodiment of the invention also provides calibration equipment of the Bluetooth headset.
The calibration device of the Bluetooth headset comprises a processor, a memory and a calibration program of the Bluetooth headset, wherein the calibration program of the Bluetooth headset is stored on the memory and can be executed by the processor, and when the calibration program of the Bluetooth headset is executed by the processor, the steps of the calibration method of the Bluetooth headset are realized.
The method for implementing the calibration procedure of the bluetooth headset when executed may refer to various embodiments of the calibration method of the bluetooth headset of the present invention, and will not be described herein again.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention stores a calibration program of a bluetooth headset, wherein the calibration program of the bluetooth headset is executed by a processor to implement the steps of the calibration method of the bluetooth headset as described above.
The method for implementing the calibration procedure of the bluetooth headset when executed may refer to various embodiments of the calibration method of the bluetooth headset of the present invention, 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 above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. 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 not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A calibration method of a Bluetooth headset is characterized by comprising the following steps:
when an earphone calibration instruction is detected, determining an earphone to be calibrated according to the earphone calibration instruction, acquiring each infrared light value acquired by the earphone to be calibrated in the wearing process, and generating a first infrared light value set;
acquiring each infrared light value acquired by the earphone to be calibrated in the taking-off process as a second infrared light value set;
calculating and determining a calibrated infrared light threshold value of the earphone to be calibrated based on a preset calculation rule, the first infrared light value set and the second infrared light value set, and completing updating of the infrared light threshold value of the earphone;
the step of calculating and determining the calibrated infrared light threshold of the headset to be calibrated based on a preset calculation rule, the first infrared light value set and the second infrared light value set, and completing updating of the headset infrared light threshold specifically includes:
determining corresponding points of the first infrared light value set matched with the second infrared light value set based on the acquisition time points of the infrared light values in the first infrared light value set and the acquisition time points of the infrared light values in the second infrared light value set;
and respectively calculating the average infrared light value of each pair of corresponding points to generate an average infrared light value set, and determining the calibrated infrared light threshold value based on each average infrared light value in the average infrared light value set to complete the updating of the infrared light threshold value of the earphone.
2. The method for calibrating a bluetooth headset according to claim 1, wherein the step of obtaining the infrared light values collected by the headset to be calibrated in the wearing process and generating the first infrared light value set specifically comprises:
acquiring infrared light values acquired by the earphone to be calibrated in the wearing process, and judging whether invalid values which do not belong to a preset range exist in the infrared light values acquired by the earphone to be calibrated in the wearing process;
and if the invalid value exists, deleting the invalid value in the infrared light values collected in the wearing process of the earphone to be calibrated, and generating the first infrared light value set.
3. The method for calibrating a bluetooth headset according to claim 1, wherein the step of determining corresponding points of the first set of infrared light values and the second set of infrared light values based on the collection time points of the infrared light values in the first set of infrared light values and the collection time points of the infrared light values in the second set of infrared light values comprises:
acquiring an infrared light value in the first infrared light value set as a target infrared light value, and acquiring a first acquisition time point corresponding to the target infrared light value;
determining time points corresponding to the first acquisition time points in all acquisition time points corresponding to the second infrared light value set based on a preset corresponding table to serve as second acquisition time points;
determining the infrared light values acquired by the second acquisition time point in the second infrared light value set as corresponding points of the target infrared light value to determine corresponding points of the first infrared light value set matched with the second infrared light value set;
and acquiring a next infrared light value in the first infrared light value set as a target infrared light value to determine each corresponding point of the first infrared light value set matched with the second infrared light value set.
4. The method of calibrating a bluetooth headset according to claim 1, wherein the step of determining corresponding points of the first set of infrared light values that match the second set of infrared light values based on the acquisition time points of the respective infrared light values in the first set of infrared light values and the acquisition time points of the respective infrared light values in the second set of infrared light values further comprises, after the step of:
judging whether an invalid corresponding point with a difference value exceeding a preset difference value exists in each matched corresponding point;
and if the invalid corresponding points exist in the matched corresponding points, eliminating the invalid corresponding points from the matched corresponding points.
5. The method of claim 1, wherein the step of calculating the average infrared light value of each pair of corresponding points, generating a set of average infrared light values, and determining the update of the calibrated infrared light threshold based on each average infrared light value in the set of average infrared light values specifically comprises:
respectively calculating the average infrared light value of each pair of corresponding points to generate an average infrared light value set;
calculating the average value of a preset maximum infrared light threshold value and each average infrared light value in the average infrared light value set as the calibrated maximum infrared light threshold value;
and acquiring a calibration fixed value corresponding to the earphone to be calibrated, and calculating a difference value between the calibrated maximum infrared light threshold value and the calibration fixed value to be used as the calibrated minimum infrared light threshold value.
6. The method for calibrating a bluetooth headset according to any one of claims 1 to 5, wherein after the step of determining the headset to be calibrated according to the headset calibration command when the headset calibration command is detected, the method further comprises:
sending a calibration reminding message to a user through an earphone or a terminal in communication connection with the earphone to be calibrated so that the user can wear and take off the earphone to be calibrated;
when detecting that a user wears the earphone, acquiring and storing infrared light values acquired by the earphone to be calibrated in the wearing process;
and when the user is detected to take off the earphone, acquiring and storing each infrared light value acquired by the earphone to be calibrated in the taking off process.
7. A Bluetooth headset comprising an infrared sensor, a processor, a memory, and a calibration program for a Bluetooth headset stored on the memory and executable by the processor, wherein the calibration program for a Bluetooth headset when executed by the processor implements the steps of the calibration method for a Bluetooth headset of any one of claims 1 to 6.
8. A calibration device for a Bluetooth headset, comprising a processor, a memory, and a calibration program for a Bluetooth headset stored on the memory and executable by the processor, wherein the calibration program for a Bluetooth headset when executed by the processor implements the steps of the calibration method for a Bluetooth headset according to any one of claims 1 to 6.
9. A computer-readable storage medium, having a calibration program for a bluetooth headset stored thereon, wherein the calibration program for the bluetooth headset implements the steps of the calibration method for the bluetooth headset according to any one of claims 1 to 6 when executed by a processor.
CN202010477003.XA 2020-05-29 2020-05-29 Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium Active CN111654773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010477003.XA CN111654773B (en) 2020-05-29 2020-05-29 Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010477003.XA CN111654773B (en) 2020-05-29 2020-05-29 Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium

Publications (2)

Publication Number Publication Date
CN111654773A CN111654773A (en) 2020-09-11
CN111654773B true CN111654773B (en) 2022-04-22

Family

ID=72352738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010477003.XA Active CN111654773B (en) 2020-05-29 2020-05-29 Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium

Country Status (1)

Country Link
CN (1) CN111654773B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112584268B (en) * 2020-12-10 2024-05-03 南京天易合芯电子有限公司 Earphone light sensation calibration device and method
CN112630861A (en) * 2020-12-14 2021-04-09 安徽华米信息科技有限公司 Method and device for calibrating proximity sensor of wireless earphone, earphone and storage medium
CN113596657A (en) * 2021-07-19 2021-11-02 Tcl通力电子(惠州)有限公司 Earphone in-ear detection method, terminal and computer readable storage medium
CN114268872A (en) * 2021-11-29 2022-04-01 歌尔科技有限公司 Wireless earphone wearing detection method, device and storage medium
CN114650493A (en) * 2022-03-24 2022-06-21 肇庆德庆冠旭电子有限公司 Bluetooth headset sensor calibration method and device, electronic device, storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665008A (en) * 2012-05-08 2012-09-12 广东欧珀移动通信有限公司 Detecting algorithm for infrared proximity sensor of touch screen mobile phone
CN106210227A (en) * 2016-07-06 2016-12-07 广东欧珀移动通信有限公司 Calibration method, device and mobile terminal of an infrared proximity sensor
CN108566584A (en) * 2018-05-30 2018-09-21 广东思派康电子科技有限公司 Touch calibration method and TWS earphone with touch function
CN108848254A (en) * 2018-05-25 2018-11-20 维沃移动通信有限公司 A kind of calibration method and system of proximity sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665008A (en) * 2012-05-08 2012-09-12 广东欧珀移动通信有限公司 Detecting algorithm for infrared proximity sensor of touch screen mobile phone
CN106210227A (en) * 2016-07-06 2016-12-07 广东欧珀移动通信有限公司 Calibration method, device and mobile terminal of an infrared proximity sensor
CN108848254A (en) * 2018-05-25 2018-11-20 维沃移动通信有限公司 A kind of calibration method and system of proximity sensor
CN108566584A (en) * 2018-05-30 2018-09-21 广东思派康电子科技有限公司 Touch calibration method and TWS earphone with touch function

Also Published As

Publication number Publication date
CN111654773A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111654773B (en) Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium
WO2022000998A1 (en) Earphone state detection method and device, earphone, and readable storage medium
CN109905907B (en) A kind of network search method and mobile terminal
CN110443769B (en) Image processing method, image processing device and terminal equipment
CN107463883A (en) Biometric methods and related products
CN111698601B (en) Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof
CN109065060B (en) Voice awakening method and terminal
CN110113528B (en) Parameter obtaining method and terminal equipment
CN109962514B (en) Charging method and mobile terminal
CN109215683B (en) A prompt method and terminal
CN107527020A (en) Biometric methods and related products
CN108881782B (en) A video call method and terminal device
CN107239737A (en) A kind of optical finger print recognition methods and Related product
CN108777827A (en) Wireless headset, method for regulation of sound volume and Related product
CN107863110A (en) Safety prompt function method, intelligent earphone and storage medium based on intelligent earphone
CN113194395A (en) Parameter adjusting method, device and system of auxiliary listening equipment and readable storage medium
CN103460289A (en) Method and apparatus for detecting facial changes
CN106096367A (en) A kind of mobile terminal wakes up processing method, device and equipment up
CN111787452B (en) TWS earphone, TWS earphone control method, TWS earphone control device and computer readable storage medium
CN107341122B (en) Device access processing method, device access processing device and mobile terminal
CN112804612A (en) Earphone control method, earphone control device, earphone and computer readable storage medium
CN108429956A (en) Wireless earphone, control operation method and related product
CN108668018A (en) Mobile terminal, volume control method and related product
WO2025016109A1 (en) Noise reduction method and apparatus for helmet, and helmet and computer-readable storage medium
CN109948311B (en) Screen unlocking method and device

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