CN114401480A - Calibration method, device and medium for TWS earphone capacitive sensor - Google Patents

Calibration method, device and medium for TWS earphone capacitive sensor Download PDF

Info

Publication number
CN114401480A
CN114401480A CN202111668817.2A CN202111668817A CN114401480A CN 114401480 A CN114401480 A CN 114401480A CN 202111668817 A CN202111668817 A CN 202111668817A CN 114401480 A CN114401480 A CN 114401480A
Authority
CN
China
Prior art keywords
capacitance
value
tws
calibration
capacitance value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111668817.2A
Other languages
Chinese (zh)
Other versions
CN114401480B (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 CN202111668817.2A priority Critical patent/CN114401480B/en
Priority claimed from CN202111668817.2A external-priority patent/CN114401480B/en
Publication of CN114401480A publication Critical patent/CN114401480A/en
Application granted granted Critical
Publication of CN114401480B publication Critical patent/CN114401480B/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
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication

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: carrying out capacitance detection on the earphone to obtain an actual capacitance value, and carrying out fit degree detection on the earphone to obtain a fit degree detection result; acquiring a corresponding reference capacitance value according to the fitting degree detection result; and updating the capacitance calibration value based on the 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 invention utilizes the detection of the degree of adhesion to calibrate the capacitance sensor in real time, and obtains the reference capacitance value according to the detection result of the degree of adhesion by referring to the corresponding mapping relation obtained in advance through the production line test. The capacitance calibration value is updated according to the capacitance difference value of the reference capacitance value and the actual capacitance value, the problem of failure in wearing detection of the capacitive sensor due to temperature drift, aging of an earphone structure and the like is solved, the reliability and accuracy of wearing detection of the capacitive sensor are improved, and user experience is improved.

Description

Calibration method, device and medium for TWS earphone capacitive sensor
Technical Field
The invention relates to the field of TWS earphones, in particular to a calibration method, a calibration device, calibration equipment and a computer readable storage medium for a TWS earphone capacitive sensor.
Background
At present, a capacitive wearing detection scheme is an in-ear detection scheme commonly used for a TWS (True Wireless Stereo) headset, and the scheme detects the change of a capacitance value after skin contact through a capacitance sensor cap sensor so as to judge whether the TWS headset is worn. However, the scheme is limited by the influence of temperature drift and structure aging of the cap sensor, the calibration value of the production line actually changes after the production line is used for a period of time, but the production line cannot be returned to the production line again for calibration, so that the wearing condition is often not detected, and the TWS earphones adopting a plurality of capacitive wearing detection schemes in the market have the problems.
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 wearing detection of the capacitive sensor in the prior art is invalid 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 headphone capacitive sensor, including:
carrying out capacitance detection on the TWS earphone to obtain an actual capacitance value, and carrying out fit degree detection on the TWS earphone to obtain a fit degree detection result;
acquiring a corresponding reference capacitance value according to the fitting degree detection result;
updating a capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value with the updated capacitance calibration value.
Optionally, the step of performing the fitting degree detection on the TWS headset to obtain a fitting degree detection result includes:
and calculating to obtain the fitting degree detection result by using first test audio energy played by a loudspeaker of the TWS earphone and second test audio energy acquired by a feedback microphone of the TWS earphone based on the first test audio energy.
Optionally, before the step of performing capacitance detection on the TWS headset to obtain an actual capacitance value and performing fit degree detection on the TWS headset to obtain a fit 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 capacitance detection of the TWS earphone to obtain an actual capacitance value, and performing the fit degree detection of the TWS earphone to obtain a fit degree detection result.
Optionally, before the step of detecting whether the TWS headset is in a wearing state, the method further includes:
and obtaining the corresponding mapping relation between different fitting degree detection test results and the reference capacitance test value through the production line test in the production line standard environment.
Optionally, the step of obtaining a corresponding reference capacitance value according to the fitting degree detection result includes:
determining a target fitting degree detection test result which is closest to the fitting degree detection result value in the fitting degree detection test results, and determining a target reference capacitance test value in the mapping relation according to the target fitting degree detection test result;
and calculating to obtain the reference capacitance value based on the fitting degree detection result, the target fitting degree detection test result and the target reference capacitance test value.
Optionally, before the step of detecting whether the TWS headset is in a wearing state, the method further includes:
and acquiring a theoretical capacitance value and a production line capacitance value in a production line standard environment, and calculating to obtain an initial value of the capacitance calibration value according to the theoretical capacitance value and the production 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 includes:
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 greater than a preset ratio, executing the step of calibrating the actual capacitance value by 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, to achieve the above object, the present invention also provides a calibration device for a TWS headphone capacitive sensor, including:
the detection module is used for carrying out capacitance detection on the TWS earphone to obtain an actual capacitance value, and carrying out fit degree detection on the TWS earphone to obtain a fit degree detection result;
the obtaining module is used for obtaining a corresponding reference capacitance value according to the fitting degree detection result;
and the calibration module is used for updating the capacitance calibration value based on the capacitance difference value between the reference capacitance value and the actual capacitance value so as to calibrate the actual capacitance value by the updated capacitance calibration value.
Furthermore, to achieve the above object, the present invention also provides a calibration device for a TWS headphone capacitive sensor, including: a memory, a processor and a calibration program for a TWS earpiece capacitive sensor stored on the memory and executable on the processor, the calibration program for a TWS earpiece capacitive sensor when executed by the processor implementing the steps of the calibration method for a TWS earpiece capacitive sensor as described above.
Furthermore, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a calibration program of a TWS headphone capacitive sensor, which when executed by a processor, implements the steps of the calibration method of the TWS headphone capacitive sensor as described above.
According to the calibration method, the calibration device, the calibration equipment and the computer-readable storage medium of the TWS earphone capacitive sensor provided by the embodiment of the invention, firstly, capacitance detection and fit degree detection of an earphone are carried out to obtain an actual capacitance value and fit degree detection result; then, acquiring a corresponding reference capacitance value according to a fitting degree detection result; and finally, updating the capacitance calibration value based on the 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. Therefore, the capacitance sensor is calibrated in real time by using the method for detecting the fitting degree, the problem of failure in wearing detection of the capacitance sensor due to temperature drift, aging of an earphone structure and the like is solved, the reliability and accuracy of wearing detection of the capacitance sensor are improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware execution environment execution device according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart illustrating an embodiment of a calibration method for a TWS headset capacitive sensor according to the present invention;
fig. 3 is a schematic flow chart illustrating an embodiment of a calibration method for a TWS headset capacitive sensor according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an operating device in 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 (CPU), a communication bus 1002, a network interface 1003, and a memory 1004. Wherein a communication bus 1002 is used to enable connective 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 Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the operating device and may include more or fewer components than shown, or some 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 therein a calibration program of an operating system, a data storage module, a network communication module, a user interface module, and a TWS headset capacitive sensor.
In the operating 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 operating device of the present invention may be provided in the operating device, which calls the calibration program of the TWS headphone capacitive sensor stored in the memory 1004 through the processor 1001 and performs the following operations:
carrying out capacitance detection on the TWS earphone to obtain an actual capacitance value, and carrying out fit degree detection on the TWS earphone to obtain a fit degree detection result;
acquiring a corresponding reference capacitance value according to the fitting degree detection result;
updating a capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value with the updated capacitance calibration value.
Further, the processor 1001 may invoke a calibration procedure for the TWS earpiece capacitive sensor stored in the memory 1004, and also perform the following operations:
the step of detecting the fitting degree of the TWS earphone to obtain a fitting degree detection result includes:
and calculating to obtain the fitting degree detection result by using first test audio energy played by a loudspeaker of the TWS earphone and second test audio energy acquired by a feedback microphone of the TWS earphone based on the first test audio energy.
Further, the processor 1001 may invoke a calibration procedure for the TWS earpiece capacitive sensor stored in the memory 1004, and also perform the following operations:
before the step of performing capacitance detection on the TWS earphone to obtain an actual capacitance value and performing fit degree detection on the TWS earphone to obtain a fit degree detection result, the method further comprises the following steps of:
detecting whether the TWS earphone is in a wearing state;
and if the TWS earphone is in a wearing state, executing the capacitance detection of the TWS earphone to obtain an actual capacitance value, and performing the fit degree detection of the TWS earphone to obtain a fit degree detection result.
Further, the processor 1001 may invoke a calibration procedure for the TWS earpiece capacitive sensor stored in the memory 1004, and also perform the following operations:
before the step of detecting whether the TWS headset is in a wearing state, the method further comprises the following steps:
and obtaining the corresponding mapping relation between different fitting degree detection test results and the reference capacitance test value through the production line test in the production line standard environment.
Further, the processor 1001 may invoke a calibration procedure for the TWS earpiece capacitive sensor stored in the memory 1004, and also perform the following operations:
the step of obtaining the corresponding reference capacitance value according to the fitting degree detection result comprises the following steps:
determining a target fitting degree detection test result which is closest to the fitting degree detection result value in the fitting degree detection test results, and determining a target reference capacitance test value in the mapping relation according to the target fitting degree detection test result;
and calculating to obtain the reference capacitance value based on the fitting degree detection result, the target fitting degree detection test result and the target reference capacitance test value.
Further, the processor 1001 may invoke a calibration procedure for the TWS earpiece capacitive sensor stored in the memory 1004, and also perform the following operations:
before the step of detecting whether the TWS headset is in a wearing state, the method further comprises the following steps:
and acquiring a theoretical capacitance value and a production line capacitance value in a production line standard environment, and calculating to obtain an initial value of the capacitance calibration value according to the theoretical capacitance value and the production line capacitance value.
Further, the processor 1001 may invoke a calibration procedure for the TWS earpiece capacitive sensor stored in the memory 1004, and also perform the following operations:
after the step of updating the capacitance calibration value based on the capacitance difference value of the reference capacitance value and the actual capacitance value, further comprising:
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 greater than a preset ratio, executing the step of calibrating the actual capacitance value by 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.
An embodiment of the present invention provides a calibration method for a TWS headset capacitive sensor, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the calibration method for the TWS headset capacitive sensor according to the present invention.
In this embodiment, the method for calibrating the TWS headphone capacitive sensor includes:
step S10: and carrying out capacitance detection on the TWS earphone to obtain an actual capacitance value, and carrying out fit degree detection on the TWS earphone to obtain a fit degree detection result.
In this embodiment, when it is detected that the TWS headset is in a wearing state, capacitance detection and fitting degree detection of the TWS headset are performed to obtain an actual capacitance value C and a fitting degree detection result f of the TWS headset, respectively. In the embodiment, the obtaining manner of the actual capacitance value C and the fitting degree detection result f of the TWS headphone is not limited.
Step S20: and acquiring a corresponding reference capacitance value according to the fitting degree detection result.
In this embodiment, a preset mapping relationship between the result f of detecting the degree of attachment and the reference capacitance value Cf is used, and the corresponding reference capacitance value Cf is obtained by referring to the mapping relationship according to the result f of detecting the degree of attachment. In the embodiment, the obtaining manner of the corresponding mapping relationship is not limited.
Step S30: updating a capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value with the updated capacitance calibration value.
In the present embodiment, a capacitance difference between the reference capacitance value Cf and the acquired actual capacitance value C of the capacitive sensor is calculated, and is denoted as Δ C — C. And then updating the capacitance calibration value by using the capacitance difference value deltaC, and calibrating the actual capacitance value C by using the updated capacitance calibration value, thereby completing the calibration of the cap sensor of the capacitance sensor.
Referring to fig. 3, in the present embodiment, the fitting condition of the TWS headset is obtained through the fitting degree detection function of the TWS headset, so as to calibrate the capacitive sensor in real time. Since the fit detection is to detect the leakage of sound waves in the ear canal by the combination of the speaker and the microphone, the result is not affected by temperature drift and structural aging. Therefore, the obtained actual capacitance value of the capacitive sensor cap sensor is compared with the result of the adhesion detection as a reference, and the capacitance result is calibrated. The specific method comprises the following steps:
1. and when the TWS earphone is in a wearing state, acquiring the actual capacitance C at the moment.
2. And (5) opening the combination of the loudspeaker and the microphone to detect the fitting degree, and calculating a fitting degree detection result f. The calculation method of the fitting degree detection result f may be that f is T1-T2, where the test audio energy played by the speaker is T1, and the energy collected by the feedback microphone is T2.
3. And acquiring a corresponding reference capacitance value Cf according to the fitting degree detection result f. The corresponding mapping relationship is obtained in advance through production line testing. The specific method comprises the following steps:
1) the reference capacitance test values C1, C2 and C3 of the TWS earphone in three states of loose wearing fit, common fitting fit and tight fitting are obtained through respective tests, and corresponding fitting degree detection test results F1, F2 and F3 are obtained.
2) The value of | F-Fi | (i is 1, 2, or 3) can be calculated to calculate which one of the results of the adhesion degree test F1, F2, and F3 is closer, and the result with the smallest value is the closest.
3) And calculating a reference capacitance value Cf according to the fitting degree gear to which the fitting degree detection result f belongs. Assuming that the result F of the adhesion detection is closer to the result F2, the corresponding reference capacitance value Cf is C2F/F2.
4. And calculating a capacitance difference value between the reference capacitance value Cf and the acquired actual capacitance value C of the capacitive sensor, and recording as deltaC-Cf-C, if deltaC/C > +/-10%, namely the deviation is greater than a preset ratio of 10%, updating a capacitance calibration value offset to be the capacitance difference value deltaC, otherwise not updating the capacitance calibration value offset.
The initial value of the capacitance calibration value offset is obtained by calibrating a production line, and the value acquired under the same condition has an up-and-down floating error due to the difference of the process, the assembly and the like of each TWS earphone, so that the production line can be uniformly calibrated to a standard value. The calibration method comprises the following steps: the theoretical capacitance value in the standard environment of the production line is C1, and the capacitance value actually measured by the production line in the standard environment is C2, so that the initial value of the capacitance calibration value offset is C1-C2.
However, due to the influence of temperature drift and structural aging, the value of the actual capacitance calibration value offset in the use of the TWS headset may change, for example, after the structural aging, the difference between the actually measured capacitance value of the TWS headset under the standard environment and the theoretical value may become larger and larger, and after a certain limit is exceeded, the capacitance calibration value offset needs to be corrected, otherwise, the normal detection of the capacitive sensor cap sensor will be affected.
5. Calibrating the actual capacitance value: c ═ C + offset, where C' is the calibrated capacitance value.
In this embodiment, the capacitance sensor is calibrated in real time by using a method for detecting the degree of fitting, so that the problem of failure in wearing detection of the capacitance sensor due to temperature drift, aging of an earphone structure 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 fitting degree detection on the TWS headset to obtain a fitting degree detection result includes:
and calculating to obtain the fitting degree detection result by using first test audio energy played by a loudspeaker of the TWS earphone and second test audio energy acquired by a feedback microphone of the TWS earphone based on the first test audio energy.
In this embodiment, when the TWS headset is subjected to the fitting degree detection, the fitting degree detection is performed by turning on the combination of the speaker and the microphone, and the fitting degree detection result f is calculated. The method for calculating the result f of the fitness level detection may be, where f is T1-T2, where the test audio energy played by the speaker is T1, that is, the intensity of the sound signal, that is, the speaker theoretical output value, and 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 on the TWS headset to obtain an actual capacitance value and performing fit degree detection on the TWS headset to obtain a fit 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 capacitance detection of the TWS earphone to obtain an actual capacitance value, and performing the fit degree detection of the TWS earphone to obtain a fit degree detection result.
In the present embodiment, the calibration process for the capacitive sensor cap sensor is performed once each time the TWS headset is worn. Firstly, 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 headset is in a wearing state, the method further includes:
and obtaining the corresponding mapping relation between different fitting degree detection test results and the reference capacitance test value through the production line test in the production line standard environment.
In this embodiment, a production line test is performed in a production line standard environment, and a mapping relationship between different fitting degree detection test results and corresponding reference capacitance test values can be obtained. The corresponding mapping relation is obtained in advance through production line testing, and the corresponding reference capacitance value Cf is obtained according to the fitting degree detection result f. The specific method comprises the following steps: the reference capacitance test values C1, C2 and C3 of the TWS earphone in three states of loose wearing fit, common fitting fit and tight fitting are obtained through respective tests, and corresponding fitting degree detection test results F1, F2 and F3 are obtained. In this embodiment, the number of corresponding mappings of the corresponding mapping relationship between the test result of the conformity degree detection and the corresponding test value of the reference capacitance is not limited, and the corresponding mapping method is not limited.
Optionally, the step of obtaining a corresponding reference capacitance value according to the fitting degree detection result includes:
determining a target fitting degree detection test result which is closest to the fitting degree detection result value in the fitting degree detection test results, and determining a target reference capacitance test value in the mapping relation according to the target fitting degree detection test result;
and calculating to obtain the reference capacitance value based on the fitting degree detection result, the target fitting degree detection test result and the target reference capacitance test value.
In this embodiment, the value of | F-Fi | (i is 1, 2, or 3) may be calculated to calculate which one of the results F of the adhesion detection is closer to the results F1, F2, and F3, and the result with the smallest value is the closest target adhesion detection test result. And calculating a reference capacitance value Cf according to the fitting degree gear to which the fitting degree detection result f belongs. Assuming that the result F of the adhesion detection is closer to the result F2, the corresponding reference capacitance value Cf is C2F/F2. In this embodiment, the calculation method of the reference capacitance Cf and the parameters to be used are not limited.
Optionally, before the step of detecting whether the TWS headset is in a wearing state, the method further includes:
and acquiring a theoretical capacitance value and a production line capacitance value in a production line standard environment, and calculating to obtain an initial value of the capacitance calibration value according to the theoretical capacitance value and the production line capacitance value.
In this embodiment, the initial value of the capacitance calibration value offset is obtained by calibrating a production line, and the value acquired under the same condition has an error of up-and-down fluctuation due to differences in processes, assembly and the like of each TWS headset, so that the production line can be calibrated to a standard value uniformly. The calibration method comprises the following steps: the theoretical capacitance value in the standard environment of the production line is C1, and the capacitance value actually measured by the production line in the standard environment is C2, so that the initial value of the capacitance calibration value offset is C1-C2, or the initial value of the capacitance calibration value offset is determined by the mathematical relationship between the theoretical capacitance value 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 includes:
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 greater than a preset ratio, executing the step of calibrating the actual capacitance value by 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 the capacitance calibration value is updated according to the capacitance difference between the reference capacitance and the actual capacitance, it is necessary to determine whether the ratio of the capacitance difference to the actual capacitance is greater than a preset ratio. That is, after a capacitance difference between the reference capacitance Cf and the acquired actual capacitance C of the capacitive sensor is calculated and recorded as Δ C — Cf, it is determined whether a ratio of the capacitance difference Δ C to the actual capacitance C is greater than a preset ratio. In the present embodiment, if Δ C/C > ± 10%, that is, the deviation is greater than 10%, the capacitance calibration value offset is updated to be 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 calibrated capacitance value. In this embodiment, the magnitude of the preset ratio is not limited, and may be adjusted after comprehensive consideration according to the actual use or test condition of the TWS headset product.
In this embodiment, if the calibration method for the production line of the initial value of the capacitance calibration value offset is as follows: the theoretical capacitance value in the standard environment of the production line is C1, the capacitance value actually measured by the production line in the standard environment is C2, and then the initial value of the capacitance calibration value offset is 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 in other determination methods, the method for calibrating the actual capacitance value according to the capacitance calibration value is correspondingly modified to be the inverse method of other determination methods.
In addition, an embodiment of the present invention further provides a calibration apparatus for a TWS headphone capacitive sensor, where the calibration apparatus for a TWS headphone capacitive sensor includes:
the detection module is used for carrying out capacitance detection on the TWS earphone to obtain an actual capacitance value, and carrying out fit degree detection on the TWS earphone to obtain a fit degree detection result;
the obtaining module is used for obtaining a corresponding reference capacitance value according to the fitting degree detection result;
and the calibration module is used for updating the capacitance calibration value based on the capacitance difference value between the reference capacitance value and the actual capacitance value so as to calibrate the actual capacitance value by the updated capacitance calibration value.
In addition, an embodiment of the present invention further provides a calibration device for a TWS headphone capacitive sensor, where the calibration device for the TWS headphone capacitive sensor includes: a memory, a processor and a calibration program for a TWS earpiece capacitive sensor stored on the memory and executable on the processor, the calibration program for a TWS earpiece capacitive sensor when executed by the processor implementing the steps of the calibration method for a TWS earpiece capacitive sensor as described above.
Furthermore, an embodiment of the present invention further provides a computer readable storage medium, on which a calibration program of the TWS headphone capacitive sensor is stored, which when executed by a processor implements the steps of the calibration method of the TWS headphone capacitive sensor as described above.
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, 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 (10)

1. A calibration method of a TWS headphone capacitive sensor, characterized by comprising the steps of:
carrying out capacitance detection on the TWS earphone to obtain an actual capacitance value, and carrying out fit degree detection on the TWS earphone to obtain a fit degree detection result;
acquiring a corresponding reference capacitance value according to the fitting degree detection result;
updating a capacitance calibration value based on the capacitance difference between the reference capacitance value and the actual capacitance value, and calibrating the actual capacitance value with the updated capacitance calibration value.
2. The method of calibrating a TWS headset capacitive sensor of claim 1 wherein said step of performing a fit detection of the TWS headset resulting in a fit detection result comprises:
and calculating to obtain the fitting degree detection result by using first test audio energy played by a loudspeaker of the TWS earphone and second test audio energy acquired by a feedback microphone of the TWS earphone based on the first test audio energy.
3. The method of calibrating a TWS headset capacitive sensor of claim 1 wherein prior to the steps of performing a capacitance test of the TWS headset to obtain an actual capacitance value, performing a conformity test of the TWS headset to obtain a conformity test result, further comprising:
detecting whether the TWS earphone is in a wearing state;
and if the TWS earphone is in a wearing state, executing the capacitance detection of the TWS earphone to obtain an actual capacitance value, and performing the fit degree detection of the TWS earphone to obtain a fit 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 obtaining the corresponding mapping relation between different fitting degree detection test results and the reference capacitance test value through the production line test in the production line standard environment.
5. The method of calibrating a TWS headset capacitive sensor of claim 4 wherein the step of obtaining a corresponding reference capacitance value based on the fit detection comprises:
determining a target fitting degree detection test result which is closest to the fitting degree detection result value in the fitting degree detection test results, and determining a target reference capacitance test value in the mapping relation according to the target fitting degree detection test result;
and calculating to obtain the reference capacitance value based on the fitting degree detection result, the target fitting degree detection test result and the target reference capacitance test value.
6. 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 production line capacitance value in a production line standard environment, and calculating to obtain an initial value of the capacitance calibration value according to the theoretical capacitance value and the production line capacitance value.
7. The method of calibrating a TWS earpiece capacitive sensor of claim 6, wherein the step after updating a capacitance calibration value based on the capacitance difference of 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 greater than a preset ratio, executing the step of calibrating the actual capacitance value by 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.
8. A calibration device for a TWS headphone capacitive sensor, the calibration device comprising:
the detection module is used for carrying out capacitance detection on the TWS earphone to obtain an actual capacitance value, and carrying out fit degree detection on the TWS earphone to obtain a fit degree detection result;
the obtaining module is used for obtaining a corresponding reference capacitance value according to the fitting degree detection result;
and the calibration module is used for updating the capacitance calibration value based on the capacitance difference value between the reference capacitance value and the actual capacitance value so as to calibrate the actual capacitance value by the updated capacitance calibration value.
9. A calibration device for a TWS earpiece capacitive sensor, the calibration device comprising: memory, a processor and a calibration program of a TWS earpiece capacitive sensor stored on the memory and executable on the processor, the calibration program of a TWS earpiece capacitive sensor being configured to implement the steps of the calibration method of a TWS earpiece capacitive sensor as claimed in any one of claims 1 to 7.
10. 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 calibration method of a TWS headset capacitive sensor according to any one of claims 1 to 7.
CN202111668817.2A 2021-12-30 Calibration method, device and medium for TWS earphone capacitive sensor Active CN114401480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111668817.2A CN114401480B (en) 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 Calibration method, device and medium for TWS earphone capacitive sensor

Publications (2)

Publication Number Publication Date
CN114401480A true CN114401480A (en) 2022-04-26
CN114401480B CN114401480B (en) 2024-04-30

Family

ID=

Citations (7)

* Cited by examiner, † Cited by third party
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
US20190215611A1 (en) * 2016-07-29 2019-07-11 Goertek Inc. Wearing state detection method for wearable device, and wearable device
US20190265836A1 (en) * 2018-02-27 2019-08-29 Kabushiki Kaisha Tokai Rika Denki Seisakusho Touch sensor device and capacitance calibration method
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190215611A1 (en) * 2016-07-29 2019-07-11 Goertek Inc. Wearing state detection method for wearable device, and wearable device
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
US20190265836A1 (en) * 2018-02-27 2019-08-29 Kabushiki Kaisha Tokai Rika Denki Seisakusho Touch sensor device and capacitance calibration method
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)

* Cited by examiner, † Cited by third party
Title
卢歆 等: "基于电容式传感测头的电容检测系统的设计", 传感器与微系统, vol. 30, no. 12, 31 December 2011 (2011-12-31), pages 95 - 97 *

Similar Documents

Publication Publication Date Title
WO2014130322A2 (en) System and method of detecting a plug-in type based on impedance comparison
US11864886B2 (en) Hearing diagnostic system
CN110753296B (en) Sensitivity calibration method and device for left loudspeaker and right loudspeaker of wireless earphone and earphone box
CN114143646B (en) Detection method, detection device, earphone and readable storage medium
CN113475097B (en) Feedback control of a display as a sound emitter
CN111683333B (en) Microphone testing equipment, calibration method thereof and readable storage medium
WO2023178869A1 (en) Earbud wearing detection method, earbud 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
JP2013528335A (en) System and method for measuring and confirming the obstruction effect of a hearing aid user
CN110557711B (en) Earphone testing method and earphone
CN113920975B (en) Noise reduction parameter setting method and device, earphone equipment and storage medium
TWI429298B (en) Microphone calibration method
KR102628612B1 (en) Method for determining capacitance standard value, devices and equipment for determining capacitance standard value
KR101442022B1 (en) Apparatus and method for compensation hearing loss
CN114401480B (en) Calibration method, device and medium for TWS earphone capacitive sensor
CN114401480A (en) Calibration method, device and medium for TWS earphone capacitive sensor
CN113613121B (en) Method and device for obtaining sound pressure level of earphone and earphone
CN112714391B (en) Microphone internal sealing performance testing method and device and computer equipment
DK3232906T3 (en) HEARING TEST SYSTEM
CN109068225B (en) Earphone, control method thereof and computer storage medium
KR20220052601A (en) Electronic device and method for controlling the same
CN111757211A (en) Noise reduction method, terminal device and storage medium
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN114098722A (en) Hearing test method and device, storage medium and electronic equipment

Legal Events

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