CN114401480B - Calibration method, device and medium for TWS earphone capacitive sensor - Google Patents
Calibration method, device and medium for TWS earphone capacitive sensor Download PDFInfo
- Publication number
- CN114401480B CN114401480B CN202111668817.2A CN202111668817A CN114401480B CN 114401480 B CN114401480 B CN 114401480B CN 202111668817 A CN202111668817 A CN 202111668817A CN 114401480 B CN114401480 B CN 114401480B
- Authority
- CN
- China
- Prior art keywords
- capacitance
- value
- capacitance value
- calibration
- degree detection
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000001514 detection method Methods 0.000 claims abstract description 152
- 238000012360 testing method Methods 0.000 claims abstract description 79
- 238000004519 manufacturing process Methods 0.000 claims abstract description 32
- 238000013507 mapping Methods 0.000 claims abstract description 20
- 238000003860 storage Methods 0.000 claims abstract description 11
- 238000003475 lamination Methods 0.000 claims description 18
- 238000010030 laminating Methods 0.000 claims description 5
- 230000032683 aging Effects 0.000 abstract description 8
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R5/00—Stereophonic arrangements
- H04R5/033—Headphones for stereophonic communication
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
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)
- Measurement Of Resistance Or Impedance (AREA)
Abstract
The invention discloses a calibration method, a device, equipment and a storage medium of a TWS earphone capacitive sensor, wherein the method comprises the following steps: performing capacitance detection of the earphone to obtain an actual capacitance value, and performing fitting degree detection of the earphone to obtain a fitting degree detection result; acquiring a corresponding reference capacitance value according to the fit degree detection result; and updating the capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value by the updated capacitance calibration value. According to the invention, the capacitance value sensor is calibrated in real time by using the fit degree detection, and the reference capacitance value is obtained by referring to the corresponding mapping relation obtained in advance through the production line test according to the fit degree detection result. The capacitance calibration value is updated by the capacitance difference value between the reference capacitance value and the actual capacitance value, so that the problem of wearing detection failure of the capacitive sensor caused by temperature drift, earphone structure aging and the like is solved, the reliability and accuracy of wearing detection of the capacitive sensor are improved, and the user experience is improved.
Description
Technical Field
The present invention relates to the field of TWS headphones, and in particular, to a method, apparatus, device, and computer readable storage medium for calibrating a capacitive sensor of a TWS headphone.
Background
Currently, the capacitive wearing detection scheme is a commonly used in-ear detection scheme of a TWS (True Wireless Stereo ) earphone, and the scheme detects the change of a capacitance value after skin contact through a capacitive sensor cap sensor, so as to judge whether the TWS earphone is worn. However, the solution is limited by the temperature drift of the cap sensor and the structural aging, and the calibration value of the production line is actually changed after a period of use, but the calibration cannot be performed again by the production line, so that the situation that the wearing is not detected often occurs, and the TWS earphone with multiple capacitive wearing detection solutions on the market has the problem.
Disclosure of Invention
The invention mainly aims to provide a calibration method of a TWS earphone capacitive sensor, and aims to solve the technical problem that in the prior art, the capacitive sensor fails in wearing detection due to temperature drift, earphone aging and the like.
In order to achieve the above object, the present invention provides a calibration method of a TWS headset capacitive sensor, the calibration method of the TWS headset capacitive sensor comprising:
Performing capacitance detection of the TWS earphone to obtain an actual capacitance value, and performing lamination degree detection of the TWS earphone to obtain a lamination degree detection result;
Acquiring a corresponding reference capacitance value according to the fit degree detection result;
And updating a capacitance calibration value based on a capacitance difference value between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value by the updated capacitance calibration value.
Optionally, the step of performing the lamination degree detection of the TWS earphone to obtain a lamination degree detection result includes:
And calculating by a feedback microphone of the TWS earphone based on the second test audio energy acquired by the first test audio energy to obtain the fit degree detection result.
Optionally, before the step of performing capacitance detection of the TWS earphone to obtain an actual capacitance value and performing lamination degree detection of the TWS earphone to obtain a lamination degree detection result, the method further includes:
Detecting whether the TWS earphone is in a wearing state;
and if the TWS earphone is in a wearing state, executing the detection of the capacitance of the TWS earphone to obtain an actual capacitance value, and executing the detection of the fitting degree of the TWS earphone to obtain a fitting degree detection result.
Optionally, before the step of detecting whether the TWS earphone is in a wearing state, the method further includes:
And acquiring corresponding mapping relations between detection test results of different laminating degrees and reference capacitance test values through production line tests in a production line standard environment.
Optionally, the step of obtaining the corresponding reference capacitance value according to the fit degree detection result includes:
Determining a target fit degree detection test result closest to the fit degree detection result in the fit degree detection test result, and determining a target reference capacitance test value in the mapping relation according to the target fit degree detection test result;
and calculating the reference capacitance value based on the fit degree detection result, the target fit degree detection test result and the target reference capacitance test value.
Optionally, before the step of detecting whether the TWS earphone is in a wearing state, the method further includes:
And acquiring a theoretical capacitance value and a line capacitance value under a line standard environment, and calculating the initial value of the capacitance calibration value according to the theoretical capacitance value and the line capacitance value.
Optionally, the step after updating the capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value further comprises:
judging whether the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio or not;
if the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio, executing the step of calibrating the actual capacitance value with the updated capacitance calibration value;
And if the ratio of the capacitance difference value to the actual capacitance value is not greater than a preset ratio, calibrating the actual capacitance value by using the initial value of the capacitance calibration value.
In addition, in order to achieve the above object, the present invention further provides a calibration device for a TWS headset capacitive sensor, the calibration device for a TWS headset capacitive sensor comprising:
The detection module is used for detecting the capacitance of the TWS earphone to obtain an actual capacitance value, and detecting the fitting degree of the TWS earphone to obtain a fitting degree detection result;
the acquisition module is used for acquiring a corresponding reference capacitance value according to the fit degree detection result;
And the calibration module is used for updating a capacitance calibration value based on the capacitance difference value between the reference capacitance value and the actual capacitance value, so that the updated capacitance calibration value is used for calibrating the actual capacitance value.
In addition, to achieve the above object, the present invention also provides a calibration device of a TWS headset capacitive sensor, the calibration device of a TWS headset capacitive sensor including: the calibration method comprises the steps of a memory, a processor and a calibration program of the TWS headset capacitive sensor, wherein the calibration program is stored in the memory and can be run on the processor, and the calibration program of the TWS headset capacitive sensor is executed by the processor to realize the calibration method of the TWS headset capacitive sensor.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a calibration program of a TWS headset capacitive sensor, which when executed by a processor, implements the steps of the calibration method of a TWS headset capacitive sensor as described above.
The embodiment of the invention provides a calibration method, a calibration device, calibration equipment and a computer readable storage medium of a TWS earphone capacitive sensor, wherein firstly, capacitance detection and fitting degree detection of an earphone are carried out to obtain an actual capacitance value and a fitting degree detection result; then, according to the fit degree detection result, a corresponding reference capacitance value is obtained; and finally, updating the capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value by the updated capacitance calibration value. Therefore, the capacitance value sensor is calibrated in real time by using the method of the fitting degree detection, the problem of wearing detection failure of the capacitance sensor caused by temperature drift, earphone structure aging and the like is solved, the reliability and the accuracy of wearing detection of the capacitance sensor are improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of an operating device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an embodiment of a calibration method of a TWS headset capacitive sensor according to the present invention;
Fig. 3 is a schematic flow chart illustrating an embodiment of a calibration method of a TWS headset capacitive sensor according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an operating device of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the operation device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a network interface 1003, a memory 1004. Wherein the communication bus 1002 is used to enable connected communication between these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (e.g., a wireless FIdelity (WI-FI) interface). The Memory 1004 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Non-Volatile Memory (NVM), such as a disk Memory. The memory 1004 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is not limiting of the operating device and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a calibration program for the TWS headset capacitive sensor.
In the operation device shown in fig. 1, the network interface 1003 is mainly used for data communication with other devices; the processor 1001 and the memory 1004 in the operation device of the present invention may be provided in the operation device, and the operation device calls the calibration program of the TWS headset capacitive sensor stored in the memory 1004 through the processor 1001 and performs the following operations:
Performing capacitance detection of the TWS earphone to obtain an actual capacitance value, and performing lamination degree detection of the TWS earphone to obtain a lamination degree detection result;
Acquiring a corresponding reference capacitance value according to the fit degree detection result;
And updating a capacitance calibration value based on a capacitance difference value between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value by the updated capacitance calibration value.
Further, the processor 1001 may call a calibration program of the TWS headset capacitive sensor stored in the memory 1004, and further perform the following operations:
The step of detecting the fitting degree of the TWS earphone and obtaining a fitting degree detection result comprises the following steps:
And calculating by a feedback microphone of the TWS earphone based on the second test audio energy acquired by the first test audio energy to obtain the fit degree detection result.
Further, the processor 1001 may call a calibration program of the TWS headset capacitive sensor stored in the memory 1004, and further perform the following operations:
Before the step of detecting the capacitance of the TWS earphone to obtain an actual capacitance value and detecting the fitting degree of the TWS earphone to obtain a fitting degree detection result, the method further comprises the following steps:
Detecting whether the TWS earphone is in a wearing state;
and if the TWS earphone is in a wearing state, executing the detection of the capacitance of the TWS earphone to obtain an actual capacitance value, and executing the detection of the fitting degree of the TWS earphone to obtain a fitting degree detection result.
Further, the processor 1001 may call a calibration program of the TWS headset capacitive sensor stored in the memory 1004, and further perform the following operations:
before the step of detecting whether the TWS headset is in a worn state, the method further includes:
And acquiring corresponding mapping relations between detection test results of different laminating degrees and reference capacitance test values through production line tests in a production line standard environment.
Further, the processor 1001 may call a calibration program of the TWS headset capacitive sensor stored in the memory 1004, and further perform the following operations:
The step of obtaining the corresponding reference capacitance value according to the fit degree detection result comprises the following steps:
Determining a target fit degree detection test result closest to the fit degree detection result in the fit degree detection test result, and determining a target reference capacitance test value in the mapping relation according to the target fit degree detection test result;
and calculating the reference capacitance value based on the fit degree detection result, the target fit degree detection test result and the target reference capacitance test value.
Further, the processor 1001 may call a calibration program of the TWS headset capacitive sensor stored in the memory 1004, and further perform the following operations:
before the step of detecting whether the TWS headset is in a worn state, the method further includes:
And acquiring a theoretical capacitance value and a line capacitance value under a line standard environment, and calculating the initial value of the capacitance calibration value according to the theoretical capacitance value and the line capacitance value.
Further, the processor 1001 may call a calibration program of the TWS headset capacitive sensor stored in the memory 1004, and further perform the following operations:
the step after updating the capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value further comprises:
judging whether the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio or not;
if the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio, executing the step of calibrating the actual capacitance value with the updated capacitance calibration value;
And if the ratio of the capacitance difference value to the actual capacitance value is not greater than a preset ratio, calibrating the actual capacitance value by using the initial value of the capacitance calibration value.
The embodiment of the invention provides a calibration method of a TWS earphone capacitive sensor, referring to FIG. 2, FIG. 2 is a flow chart of a first embodiment of the calibration method of the TWS earphone capacitive sensor of the invention.
In this embodiment, the calibration method of the TWS headset capacitive sensor includes:
step S10: and carrying out capacitance detection of the TWS earphone to obtain an actual capacitance value, and carrying out lamination degree detection of the TWS earphone to obtain a lamination degree detection result.
In this embodiment, when it is detected that the TWS earphone is in a wearing state, capacitance detection and fitting degree detection of the TWS earphone are performed, and an actual capacitance value C and fitting degree detection result f of the TWS earphone are obtained respectively. In the embodiment, the method for obtaining the actual capacitance value C and the fit degree detection result f of the TWS earphone is not limited.
Step S20: and obtaining a corresponding reference capacitance value according to the fit degree detection result.
In this embodiment, a preset mapping relation between the lamination degree detection result f and the reference capacitance value Cf is used, and the corresponding reference capacitance value Cf is obtained according to the lamination degree detection result f and with reference to the mapping relation. In the embodiment, the method for obtaining the corresponding mapping relationship is not limited.
Step S30: and updating a capacitance calibration value based on a capacitance difference value between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value by the updated capacitance calibration value.
In this embodiment, the capacitance difference between the reference capacitance Cf and the acquired actual capacitance C of the capacitive sensor is calculated and is denoted as Δc=cf-C. And then updating the capacitance calibration value by using the capacitance difference delta C, and calibrating the actual capacitance value C by using the updated capacitance calibration value, thereby completing the calibration of the capacitance sensor cap sensor.
Referring to fig. 3, in this embodiment, the fitting condition of the TWS earphone is obtained through the fitting degree detection function of the TWS earphone, so as to calibrate the capacitive sensor in real time. Since the fit detection is to detect the leakage of sound waves in the auditory canal through the combination of a loudspeaker and a microphone, the result is not affected by temperature drift and structural aging. Therefore, the obtained actual capacitance value of the capacitor sensor cap sensor is compared with the result of the fit degree detection as a reference, and the capacitance result is calibrated. The specific method comprises the following steps:
1. When the TWS earphone is in a wearing state, the actual capacitance value C at the moment is acquired.
2. And starting the loudspeaker and microphone combination to perform the fit degree detection, and calculating a fit degree detection result f. The method for calculating the fitting degree detection result f may be that f=t1-T2, where the energy of the test audio played by the speaker is T1, and the energy collected by the feedback microphone is T2.
3. And obtaining a corresponding reference capacitance value Cf according to the fitting degree detection result f. The corresponding mapping relation is obtained in advance through production line testing. The specific method comprises the following steps:
1) And respectively testing to obtain reference capacitance test values C1, C2 and C3 of the TWS earphone in three states of loose wearing fit, general fit and tight fit, and corresponding fit degree detection test results F1, F2 and F3.
2) Calculating which of the fit detection test results F1, F2, F3 is closer to the fit detection test result, the value of |f-fi| (i is 1, or 2, or 3) can be calculated, and the result is the closest result.
3) And calculating a reference capacitance value Cf according to the bonding degree gear to which the bonding degree detection result f belongs. Assuming that the adhesion detection result F is closer to the adhesion detection test result F2, the corresponding reference capacitance value cf=c2×f/F2.
4. And calculating a capacitance difference between the reference capacitance value Cf and the acquired actual capacitance value C of the capacitive sensor, and recording the capacitance difference as delta C=Cf-C, if delta C/C > + -10%, namely the deviation is larger than a preset ratio of 10%, updating the capacitance calibration value offset to be the capacitance difference delta C, otherwise, not updating the capacitance calibration value offset.
The initial value of the capacitance calibration value offset is obtained through calibration of a production line, and the value acquired under the same condition has an up-and-down floating error due to the differences of the process, the assembly and the like of each TWS earphone, so that the production line can be calibrated to a standard value uniformly. The calibration method comprises the following steps: and the theoretical capacitance value under the standard environment of the production line is C1, and the capacitance value of the production line actually measured by the production line under the standard environment is C2, so that the initial value of the capacitance calibration value offset=C1-C2.
However, due to the influence of temperature drift and structural aging, the value of the actual capacitance calibration value offset in use of the TWS earphone will change, for example, after structural aging, the difference between the actually measured capacitance value and the theoretical value of the TWS earphone in a standard environment will become larger and larger, and after exceeding a certain limit, the capacitance calibration value offset needs to be corrected, otherwise, normal detection of the capacitive sensor cap sensor will be affected.
5. Calibrating the actual capacitance value: c=c+offset, where C' is the capacitance after calibration.
In the embodiment, the capacitance value sensor is calibrated in real time by using the method of detecting the fitting degree, so that the problem of wearing detection failure of the capacitance sensor caused by temperature drift, earphone structure aging and the like is solved, the reliability and accuracy of wearing detection of the capacitance sensor are improved, and the user experience is improved.
Optionally, the step of performing the lamination degree detection of the TWS earphone to obtain a lamination degree detection result includes:
And calculating by a feedback microphone of the TWS earphone based on the second test audio energy acquired by the first test audio energy to obtain the fit degree detection result.
In this embodiment, when the bonding degree detection is performed on the TWS earphone, the bonding degree detection is performed by turning on the speaker and microphone combination, and the bonding degree detection result f is calculated. The method for calculating the fitting degree detection result f may be that f=t1-T2, where the test audio energy played by the speaker is T1, that is, the intensity of the sound signal, that is, the theoretical output value of the speaker, the first test audio energy, and the energy collected by the feedback microphone based on the first test audio energy T1 is T2, that is, the intensity of the sound signal, and the second test audio energy.
Optionally, before the step of performing capacitance detection of the TWS earphone to obtain an actual capacitance value and performing lamination degree detection of the TWS earphone to obtain a lamination degree detection result, the method further includes:
Detecting whether the TWS earphone is in a wearing state;
and if the TWS earphone is in a wearing state, executing the detection of the capacitance of the TWS earphone to obtain an actual capacitance value, and executing the detection of the fitting degree of the TWS earphone to obtain a fitting degree detection result.
In this embodiment, the calibration procedure for the capacitive sensor cap sensor is performed once each time the TWS headset is worn. First, whether the TWS earphone is worn or not is judged, and when the TWS earphone is detected to be in a wearing state, the TWS earphone is calibrated.
Optionally, before the step of detecting whether the TWS earphone is in a wearing state, the method further includes:
And acquiring corresponding mapping relations between detection test results of different laminating degrees and reference capacitance test values through production line tests in a production line standard environment.
In this embodiment, the production line test is performed in the production line standard environment, so that the corresponding mapping relation between the different fitting degree detection test results and the corresponding reference capacitance test values can be obtained. The corresponding mapping relation is obtained in advance through production line testing, and a corresponding reference capacitance value Cf is obtained according to the fitting degree detection result f. The specific method comprises the following steps: and respectively testing to obtain reference capacitance test values C1, C2 and C3 of the TWS earphone in three states of loose wearing fit, general fit and tight fit, and corresponding fit degree detection test results F1, F2 and F3. In this embodiment, the number of corresponding mappings of the corresponding mapping relationship between the fit degree detection test result and the corresponding reference capacitance test value is not limited, and the corresponding mapping method is not limited.
Optionally, the step of obtaining the corresponding reference capacitance value according to the fit degree detection result includes:
Determining a target fit degree detection test result closest to the fit degree detection result in the fit degree detection test result, and determining a target reference capacitance test value in the mapping relation according to the target fit degree detection test result;
and calculating the reference capacitance value based on the fit degree detection result, the target fit degree detection test result and the target reference capacitance test value.
In this embodiment, the value of |f-fi| (i is 1, or 2, or 3) can be calculated by calculating which of the fit detection results F is closer to the fit detection test results F1, F2, and F3, and the result is the closest target fit detection test result. And calculating a reference capacitance value Cf according to the bonding degree gear to which the bonding degree detection result f belongs. Assuming that the adhesion detection result F is closer to the adhesion detection test result F2, the corresponding reference capacitance value cf=c2×f/F2. In this embodiment, the calculation method and the parameters to be used for the reference capacitance Cf are not limited.
Optionally, before the step of detecting whether the TWS earphone is in a wearing state, the method further includes:
And acquiring a theoretical capacitance value and a line capacitance value under a line standard environment, and calculating the initial value of the capacitance calibration value according to the theoretical capacitance value and the line capacitance value.
In this embodiment, the initial value of the capacitance calibration value offset is obtained by calibration of the production line, and each TWS earphone has an error of floating up and down due to the differences of the process, the assembly, and the like, so that the production line can be calibrated to a standard value uniformly. The calibration method comprises the following steps: and if the theoretical capacitance value under the standard production line environment is C1 and the actual capacitance value of the production line under the standard production line environment is C2, the initial value of the capacitance calibration value offset=C1-C2, or the initial value of the capacitance calibration value offset is determined by the mathematical relationship between the other theoretical capacitance values C1 and the capacitance value C2 of the production line.
Optionally, the step after updating the capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value further comprises:
judging whether the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio or not;
if the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio, executing the step of calibrating the actual capacitance value with the updated capacitance calibration value;
And if the ratio of the capacitance difference value to the actual capacitance value is not greater than a preset ratio, calibrating the actual capacitance value by using the initial value of the capacitance calibration value.
In this embodiment, after updating the capacitance calibration value according to the capacitance difference between the reference capacitance value and the actual capacitance value, it is required to determine whether the ratio of the capacitance difference to the actual capacitance value is greater than a preset ratio. Namely, after calculating the capacitance difference between the reference capacitance Cf and the acquired actual capacitance C of the capacitive sensor, recording as Δc=cf-C, determining whether the ratio of the capacitance difference Δc to the actual capacitance C is greater than a preset ratio. In this embodiment, if ΔC/C > + -10%, i.e., the deviation is greater than 10%, the capacitance calibration value offset is updated to the capacitance difference ΔC, otherwise the capacitance calibration value offset is not updated. And then, calibrating the actual capacitance value according to the capacitance calibration value: c=c+offset, where C' is the capacitance after calibration. In this embodiment, the magnitude of the preset ratio is not limited, and the adjustment can be performed after comprehensive consideration according to actual use or testing conditions of the TWS earphone product.
In this embodiment, if the capacitance calibration value offset initial value production line calibration method is: the theoretical capacitance value under the standard environment of the production line is C1, and the capacitance value of the production line actually measured by the production line under the standard environment is C2, and then the initial value of the capacitance calibration value offset=c1-C2, and then the method for calibrating the actual capacitance value according to the capacitance calibration value is as follows: c' =c+offset; if the initial value of the capacitance calibration value offset is the other determination method, the method for calibrating the actual capacitance value according to the capacitance calibration value is correspondingly modified to be the inverse method of the other determination method.
In addition, an embodiment of the present invention further provides a calibration device for a TWS headset capacitive sensor, where the calibration device for a TWS headset capacitive sensor includes:
The detection module is used for detecting the capacitance of the TWS earphone to obtain an actual capacitance value, and detecting the fitting degree of the TWS earphone to obtain a fitting degree detection result;
the acquisition module is used for acquiring a corresponding reference capacitance value according to the fit degree detection result;
And the calibration module is used for updating a capacitance calibration value based on the capacitance difference value between the reference capacitance value and the actual capacitance value, so that the updated capacitance calibration value is used for calibrating the actual capacitance value.
In addition, an embodiment of the present invention further provides a calibration device for a TWS headset capacitive sensor, where the calibration device for a TWS headset capacitive sensor includes: the calibration method comprises the steps of a memory, a processor and a calibration program of the TWS headset capacitive sensor, wherein the calibration program is stored in the memory and can be run on the processor, and the calibration program of the TWS headset capacitive sensor is executed by the processor to realize the calibration method of the TWS headset capacitive sensor.
In addition, the embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores a calibration program of the TWS earphone capacitive sensor, and the calibration program of the TWS earphone capacitive sensor realizes the steps of the calibration method of the TWS earphone capacitive sensor when being executed by a processor.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (7)
1. A method for calibrating a TWS headset capacitive sensor, the method comprising the steps of:
Performing capacitance detection of the TWS earphone to obtain an actual capacitance value, and performing lamination degree detection of the TWS earphone to obtain a lamination degree detection result;
Acquiring a corresponding reference capacitance value according to the fit degree detection result;
updating a capacitance calibration value based on a capacitance difference between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value with the updated capacitance calibration value;
The step of obtaining the corresponding reference capacitance value according to the fit degree detection result comprises the following steps:
Determining a target fit degree detection test result closest to the fit degree detection result in the fit degree detection test result, and determining a target reference capacitance test value in a mapping relation according to the target fit degree detection test result; the method comprises the steps of obtaining corresponding mapping relations between detection test results of different laminating degrees and reference capacitance test values through production line tests in a production line standard environment;
Calculating to obtain the reference capacitance value based on the fit degree detection result, the target fit degree detection test result and the target reference capacitance test value;
the step after updating the capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value further comprises:
judging whether the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio or not;
if the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio, executing the step of calibrating the actual capacitance value with the updated capacitance calibration value;
And if the ratio of the capacitance difference value to the actual capacitance value is not greater than a preset ratio, calibrating the actual capacitance value by using the initial value of the capacitance calibration value.
2. The method for calibrating a capacitive sensor of a TWS headset of claim 1, wherein the step of performing the fit detection of the TWS headset to obtain a fit detection result comprises:
And calculating by a feedback microphone of the TWS earphone based on the second test audio energy acquired by the first test audio energy to obtain the fit degree detection result.
3. The method for calibrating a capacitive sensor of a TWS headset according to claim 1, wherein, before the step of performing the detection of the capacitance of the TWS headset to obtain an actual capacitance value and performing the detection of the fit of the TWS headset to obtain a fit detection result, further comprises:
Detecting whether the TWS earphone is in a wearing state;
and if the TWS earphone is in a wearing state, executing the detection of the capacitance of the TWS earphone to obtain an actual capacitance value, and executing the detection of the fitting degree of the TWS earphone to obtain a fitting degree detection result.
4. The method of calibrating a TWS headset capacitive sensor of claim 3, further comprising, prior to the step of detecting whether the TWS headset is in a worn state:
And acquiring a theoretical capacitance value and a line capacitance value under a line standard environment, and calculating the initial value of the capacitance calibration value according to the theoretical capacitance value and the line capacitance value.
5. A calibration device for a TWS headset capacitive sensor, the calibration device comprising:
The detection module is used for detecting the capacitance of the TWS earphone to obtain an actual capacitance value, and detecting the fitting degree of the TWS earphone to obtain a fitting degree detection result;
The acquisition module is used for acquiring a corresponding reference capacitance value according to the fit degree detection result; the method is also used for determining a target fit degree detection test result closest to the fit degree detection result in the fit degree detection test result, and determining a target reference capacitance test value in a mapping relation according to the target fit degree detection test result; the method comprises the steps of obtaining corresponding mapping relations between detection test results of different laminating degrees and reference capacitance test values through production line tests in a production line standard environment; calculating the reference capacitance value based on the fit degree detection result, the target fit degree detection test result and the target reference capacitance test value
The calibration module is used for updating a capacitance calibration value based on a capacitance difference value between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value by the updated capacitance calibration value; the method is also used for judging whether the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio; if the ratio of the capacitance difference value to the actual capacitance value is larger than a preset ratio, executing the step of calibrating the actual capacitance value with the updated capacitance calibration value; and if the ratio of the capacitance difference value to the actual capacitance value is not greater than a preset ratio, calibrating the actual capacitance value by using the initial value of the capacitance calibration value.
6. A calibration device for a TWS headset capacitive sensor, the calibration device comprising: memory, a processor and a calibration program of a TWS headset capacitive sensor stored on the memory and executable on the processor, the calibration program of the TWS headset capacitive sensor being configured to implement the steps of the method of calibrating a TWS headset capacitive sensor according to any one of claims 1 to 4.
7. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a calibration program of a TWS headset capacitive sensor, which when executed by a processor, implements the steps of the method of calibrating a TWS headset capacitive sensor according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111668817.2A CN114401480B (en) | 2021-12-30 | 2021-12-30 | Calibration method, device and medium for TWS earphone capacitive sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111668817.2A CN114401480B (en) | 2021-12-30 | 2021-12-30 | Calibration method, device and medium for TWS earphone capacitive sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114401480A CN114401480A (en) | 2022-04-26 |
CN114401480B true CN114401480B (en) | 2024-04-30 |
Family
ID=81229046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111668817.2A Active CN114401480B (en) | 2021-12-30 | 2021-12-30 | Calibration method, device and medium for TWS earphone capacitive sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114401480B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106644049A (en) * | 2016-09-29 | 2017-05-10 | 维沃移动通信有限公司 | Device and method of measuring capacitive sound |
CN106982403A (en) * | 2017-05-25 | 2017-07-25 | 深圳市金立通信设备有限公司 | Detection method and terminal that a kind of earphone is worn |
CN110244251A (en) * | 2019-07-17 | 2019-09-17 | 深圳市汇顶科技股份有限公司 | Obtain the method, apparatus and calibration chip of calibration factor |
CN112533102A (en) * | 2021-02-10 | 2021-03-19 | 深圳市汇顶科技股份有限公司 | Method for determining capacitance reference, and device and equipment for determining capacitance reference |
CN113038320A (en) * | 2021-02-26 | 2021-06-25 | 隔空(上海)智能科技有限公司 | Capacitance detection method and device and earphone |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106291121B (en) * | 2016-07-29 | 2023-10-13 | 歌尔股份有限公司 | Wearing state detection method of wearable device and wearable device |
JP6935347B2 (en) * | 2018-02-27 | 2021-09-15 | 株式会社東海理化電機製作所 | Touch sensor device and capacitance calibration program |
-
2021
- 2021-12-30 CN CN202111668817.2A patent/CN114401480B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106644049A (en) * | 2016-09-29 | 2017-05-10 | 维沃移动通信有限公司 | Device and method of measuring capacitive sound |
CN106982403A (en) * | 2017-05-25 | 2017-07-25 | 深圳市金立通信设备有限公司 | Detection method and terminal that a kind of earphone is worn |
CN110244251A (en) * | 2019-07-17 | 2019-09-17 | 深圳市汇顶科技股份有限公司 | Obtain the method, apparatus and calibration chip of calibration factor |
CN112533102A (en) * | 2021-02-10 | 2021-03-19 | 深圳市汇顶科技股份有限公司 | Method for determining capacitance reference, and device and equipment for determining capacitance reference |
CN113038320A (en) * | 2021-02-26 | 2021-06-25 | 隔空(上海)智能科技有限公司 | Capacitance detection method and device and earphone |
Non-Patent Citations (1)
Title |
---|
基于电容式传感测头的电容检测***的设计;卢歆 等;传感器与微***;20111231;第30卷(第12期);第95-97页 * |
Also Published As
Publication number | Publication date |
---|---|
CN114401480A (en) | 2022-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114143646B (en) | Detection method, detection device, earphone and readable storage medium | |
US9084035B2 (en) | System and method of detecting a plug-in type based on impedance comparison | |
US20150110295A1 (en) | System and Method for Automatic Calibration of a Transducer | |
US20130136267A1 (en) | Microphone and Method for Calibrating a Microphone | |
WO2023178869A1 (en) | Earbud wearing detection method, earbud and storage medium | |
CN113920975B (en) | Noise reduction parameter setting method and device, earphone equipment and storage medium | |
CN113794965B (en) | Earphone frequency response calibration method and device, earphone equipment and storage medium | |
WO2022100394A1 (en) | Method, apparatus and device for calibrating bone voiceprint sensor, and readable storage medium | |
WO2009023633A1 (en) | Musical, diagnostic and operational earcon | |
CN114401480B (en) | Calibration method, device and medium for TWS earphone capacitive sensor | |
US11910148B2 (en) | Method for determining capacitance reference, apparatus for determining capacitance reference, and device | |
KR101442022B1 (en) | Apparatus and method for compensation hearing loss | |
CN110784797A (en) | Wireless earphone control method and device, wireless earphone and storage medium | |
CN113613147B (en) | Hearing effect correction and adjustment method, device, equipment and medium of earphone | |
CN114567849A (en) | Detection method and device, wireless earphone and storage medium | |
EP3232906B1 (en) | Hearing test system | |
CN112637752B (en) | Simple correlation monitoring method and system for resonance frequency and ambient air pressure of loudspeaker | |
CN115103289A (en) | Earphone aging monitoring method and device, computer equipment and storage medium | |
CN114040300A (en) | Earphone active noise reduction method and device, earphone and computer readable storage medium | |
KR20220052601A (en) | Electronic device and method for controlling the same | |
CN114040293B (en) | Earphone control method and device, earphone and computer readable storage medium | |
US20170118570A1 (en) | Microphone Assembly and Method for Determining Parameters of a Transducer in a Microphone Assembly | |
Dumoulin et al. | Calibration of smartphone-based devices for noise exposure monitoring: methodology, uncertainties of measurement and implementation | |
CN114915889A (en) | Calibration method and device for earphone testing work station, earphone testing work station and medium | |
CN116567511A (en) | Audio processing method and system based on big data |
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 |