Calibration method, device, equipment and medium for TWS headset capacitive sensor

By obtaining and comparing the capacitance value changes in the suspended and worn state of the capacitance sensor of the TWS headphones and updating the calibration value, the problem of inaccurate wear detection of capacitance sensors in the prior art is solved, and the reliability and user experience of detection are improved .

CN114630228BActive Publication Date: 2024-11-05GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210327042.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-11-05
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

In actual use, the existing TWS headphone capacitive sensors are not accurate enough or even fail in the wear detection, and cannot be effectively calibrated due to temperature floating and structural aging.

Method used

By obtaining the first capacitance value and the second capacitance value of the capacitance sensor within the preset dangling time period, the current capacitance value change is calculated, and compared with the historical capacitance value change is determined based on the comparison results. , update the calibration value to adapt to the changes in the headset.

Benefits of technology

It improves the reliability and accuracy of the wear detection of capacitive sensors, solves the problem of wear detection failure caused by temperature floating and headphone aging, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114630228B_ABST
    Figure CN114630228B_ABST
Patent Text Reader

Abstract

The present invention discloses a calibration method, device, equipment and storage medium for a TWS headset capacitive sensor, the method comprising: obtaining a first capacitance value of a capacitive sensor within a preset suspension time and a second capacitance value after wearing a TWS headset; determining a current capacitance value change based on the first capacitance value and the second capacitance value, comparing the current capacitance value change with a historical capacitance value change to obtain a comparison result; and determining a calibration value of the TWS headset based on the comparison result. The wearing capacitance value and the suspended capacitance value of the TWS headset are collected, and the current capacitance value change is determined based on the wearing capacitance value and the suspended capacitance value. When the difference between the current capacitance value change and the historical capacitance value change is too large, the current calibration value is updated and calibrated based on various current headset parameters, so as to solve the technical problem that the capacitive sensor wearing detection is not accurate enough or even fails due to actual use such as temperature drift and headset aging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of TWS earphones, and in particular to a calibration method, device, equipment and computer-readable storage medium for a capacitive sensor of a TWS earphone. Background Art

[0002] At present, determining the wearing condition of TWS (True Wireless Stereo) headphones by detecting capacitive sensors is a common in-ear detection solution for TWS headphones. This solution uses a capacitive sensor capsensor to detect changes in capacitance after skin contact to determine whether the headphones are worn. The capacitive sensor cap sensor needs to be calibrated on the production line before leaving the factory to eliminate differences in the process and assembly of TWS headphones. However, traditional calibration solutions are limited by the temperature drift of the capacitive sensor cap sensor and the influence of structural aging, so it is often impossible to detect wearing. Many headphones on the market with capacitive wearing detection solutions have such problems. Summary of the invention

[0003] The main purpose of the present invention is to provide a calibration method for a TWS headset capacitive sensor, aiming to solve the technical problem in the prior art that the capacitive sensor wearing detection is not accurate or even fails due to actual use.

[0004] To achieve the above object, the present invention provides a calibration method for a TWS earphone capacitive sensor, the calibration method for the TWS earphone capacitive sensor comprising:

[0005] Obtaining a first capacitance value of the capacitive sensor within a preset suspension time and a second capacitance value after wearing the TWS headset;

[0006] Determine a current capacitance value change based on the first capacitance value and the second capacitance value, and compare the current capacitance value change with a historical capacitance value change to obtain a comparison result;

[0007] A calibration value of the TWS headset is determined based on the comparison result.

[0008] Optionally, before the step of obtaining a first capacitance value of the capacitive sensor within a preset suspension time, the method further includes:

[0009] Outputting a first prompt message, wherein the first prompt message is a preset hanging time for keeping the TWS headset in a hanging state;

[0010] Before the step of obtaining the second capacitance value after wearing the TWS headset, the method further includes:

[0011] Output a second prompt message, where the second prompt message is to wear the TWS headset.

[0012] Optionally, the step of obtaining a first capacitance value of the capacitive sensor within a preset suspension time includes:

[0013] Acquire the suspended capacitance value of the capacitive sensor within the preset suspended time, and take the minimum value of the suspended capacitance value as the first capacitance value;

[0014] The step of obtaining a second capacitance value after wearing the TWS headset includes:

[0015] After wearing the TWS headset, the wearing capacitance value is collected at a preset frequency, and the maximum value of the wearing capacitance value is used as the second capacitance value.

[0016] Optionally, the step of determining the calibration value of the TWS headset based on the comparison result includes:

[0017] Get the current calibration value of the TWS headset;

[0018] If the comparison result is greater than a preset threshold, determining a target calibration value of the TWS headset, and using the target calibration value as the new current calibration value;

[0019] If the comparison result is not greater than the preset threshold, the current calibration value is kept unchanged.

[0020] Optionally, before the step of determining the calibration value of the TWS headset based on the comparison result, the method further includes:

[0021] The preset threshold is determined based on a production line calibration value of the TWS headset when it leaves the factory.

[0022] Optionally, the step of determining a target calibration value of the TWS headset includes:

[0023] The target calibration value is determined based on the current capacitance value change, the historical capacitance value change, and the current calibration value.

[0024] Optionally, after the step of determining to obtain the target calibration value, the method further comprises:

[0025] The historical capacitance value change is updated based on the current capacitance value change.

[0026] In addition, to achieve the above-mentioned purpose, the present invention also provides a calibration device for a TWS earphone capacitive sensor, the calibration device for the TWS earphone capacitive sensor comprising:

[0027] An acquisition module, used to acquire a first capacitance value of the capacitive sensor within a preset suspension time and a second capacitance value after wearing the TWS headset;

[0028] a comparison module, configured to determine a current capacitance value change based on the first capacitance value and the second capacitance value, and compare the current capacitance value change with a historical capacitance value change to obtain a comparison result;

[0029] A determination module is used to determine a calibration value of the TWS headset based on the comparison result.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a calibration device for a TWS earphone capacitive sensor, and the calibration device for the TWS earphone capacitive sensor includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the calibration method for the TWS earphone capacitive sensor as described above are implemented.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the calibration method of the TWS headset capacitive sensor as described above are implemented.

[0032] The embodiments of the present invention propose a calibration method, device, equipment and computer-readable storage medium for a TWS headset capacitive sensor, which obtain a first capacitance value of the capacitive sensor within a preset suspension time and a second capacitance value after wearing the TWS headset; determine a current capacitance value change based on the first capacitance value and the second capacitance value, and compare the current capacitance value change with a historical capacitance value change to obtain a comparison result; determine a calibration value of the TWS headset based on the comparison result.

[0033] The contact capacitance values ​​of the TWS headset in different contact states, i.e., the wearing capacitance value, and the suspended capacitance value in the suspended state when the TWS headset is taken out, are collected, and the current capacitance value change is determined based on the wearing capacitance value and the suspended capacitance value. When the difference between the current capacitance value change and the historical capacitance value change is too large, it means that the current calibration value cannot adapt to solve the problem of capacitive sensor wearing detection failure caused by temperature drift, headset aging, etc. When the difference between the current capacitance value change and the historical capacitance value change is too large, the current calibration value is updated and calibrated based on the current various headset parameters to adapt to the changes in the TWS headset, and solve the technical problem that the capacitive sensor wearing detection is not accurate or even fails due to actual use such as temperature drift and headset aging. The reliability and accuracy of capacitive sensor wearing detection are improved, and ultimately the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a schematic diagram of the structure of the operating device of the hardware operating environment involved in the embodiment of the present invention;

[0035] Figure 2 A schematic diagram of a flow chart of an embodiment of a calibration method for a TWS headset capacitive sensor of the present invention;

[0036] Figure 3 The present invention is a schematic diagram of an implementation flow of a method for calibrating a capacitive sensor of a TWS headset according to an embodiment of the present invention.

[0037] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0038] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0039] Reference Figure 1 , Figure 1 It is a schematic diagram of the structure of the operating equipment of the hardware operating environment involved in the embodiment of the present invention.

[0040] like Figure 1 As shown, the operating device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0041] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the operating device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0042] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a computer program.

[0043] exist Figure 1 In the running device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the running device of the present invention can be set in the running device, and the running device calls the computer program stored in the memory 1005 through the processor 1001, and performs the following operations:

[0044] Obtaining a first capacitance value of the capacitive sensor within a preset suspension time and a second capacitance value after wearing the TWS headset;

[0045] Determine a current capacitance value change based on the first capacitance value and the second capacitance value, and compare the current capacitance value change with a historical capacitance value change to obtain a comparison result;

[0046] A calibration value of the TWS headset is determined based on the comparison result.

[0047] Further, the processor 1001 may call the computer program stored in the memory 1005 and perform the following operations:

[0048] Before the step of obtaining the first capacitance value of the capacitive sensor within a preset suspension time, the method further includes:

[0049] Outputting a first prompt message, wherein the first prompt message is a preset hanging time for keeping the TWS headset in a hanging state;

[0050] Before the step of obtaining the second capacitance value after wearing the TWS headset, the method further includes:

[0051] Output a second prompt message, where the second prompt message is to wear the TWS headset.

[0052] Further, the processor 1001 may call the computer program stored in the memory 1005 and perform the following operations:

[0053] The step of obtaining a first capacitance value of the capacitive sensor within a preset suspension time includes:

[0054] Acquire the suspended capacitance value of the capacitive sensor within the preset suspended time, and take the minimum value of the suspended capacitance value as the first capacitance value;

[0055] The step of obtaining a second capacitance value after wearing the TWS headset includes:

[0056] After wearing the TWS headset, the wearing capacitance value is collected at a preset frequency, and the maximum value of the wearing capacitance value is used as the second capacitance value.

[0057] Further, the processor 1001 may call the computer program stored in the memory 1005 and perform the following operations:

[0058] The step of determining the calibration value of the TWS headset based on the comparison result includes:

[0059] Get the current calibration value of the TWS headset;

[0060] If the comparison result is greater than a preset threshold, determining a target calibration value of the TWS headset, and using the target calibration value as the new current calibration value;

[0061] If the comparison result is not greater than the preset threshold, the current calibration value is kept unchanged.

[0062] Further, the processor 1001 may call the computer program stored in the memory 1005 and perform the following operations:

[0063] Before the step of determining the calibration value of the TWS headset based on the comparison result, the method further includes:

[0064] The preset threshold is determined based on a production line calibration value of the TWS headset when it leaves the factory.

[0065] Further, the processor 1001 may call the computer program stored in the memory 1005 and perform the following operations:

[0066] The step of determining a target calibration value of the TWS headset comprises:

[0067] The target calibration value is determined based on the current capacitance value change, the historical capacitance value change, and the current calibration value.

[0068] Further, the processor 1001 may call the computer program stored in the memory 1005 and perform the following operations:

[0069] After the step of determining the target calibration value, the method further includes:

[0070] The historical capacitance value change is updated based on the current capacitance value change.

[0071] The embodiment of the present invention provides a calibration method for a TWS headset capacitive sensor, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a calibration method for a TWS headset capacitive sensor of the present invention.

[0072] In this embodiment, the calibration method of the TWS headset capacitive sensor includes:

[0073] Step S10: Obtain a first capacitance value of the capacitive sensor within a preset suspension time and a second capacitance value after wearing the TWS headset.

[0074] The principle of the capacitive sensor to detect whether the TWS headset is worn is to obtain the capacitance value when it contacts the skin, and then calculate the change in the capacitance value compared to the capacitance value when it is suspended, so as to determine whether the TWS headset is worn. This embodiment is used to improve the accuracy and precision of TWS headset wearing detection.

[0075] After the TWS earphones are taken out of the charging box and connected to the smart terminal device, the user can actively start the self-calibration of the capacitive sensor cap sensor through the "wearing calibration" function of the smart terminal device. Alternatively, the first capacitance value and the second capacitance value are not obtained according to the prompt of the smart terminal device, but the capacitive sensor obtains the first capacitance value and the second capacitance value "unintentionally" by the user during the wearing process of the user, so that the calibration value is updated and calibrated without the user's awareness.

[0076] Among them, the first capacitance value is the capacitance value collected when the in-ear part of the TWS headset is in a suspended state, and the in-ear part is the part where the capacitance sensor for collecting the first capacitance value is installed. For example, the user pinches the earphone handle and suspends the capacitance sensor installed on the side of the earphone close to the user's ear skin. Among them, the second capacitance value is the capacitance value of the capacitance sensor in full contact with the user's skin. In this embodiment, the skin contact corresponding to the second capacitance value can be full skin contact with the skin on the inside of the user's ear, or it can be skin contact when the user actively holds the in-ear part, or it can be skin contact from the user taking out to tightly wearing the TWS headset during non-sensing update.

[0077] Step S20: determining a current capacitance value change based on the first capacitance value and the second capacitance value, and comparing the current capacitance value change with a historical capacitance value change to obtain a comparison result.

[0078] Step S30: Determine a calibration value of the TWS headset based on the comparison result.

[0079] After obtaining the first capacitance value C0 and the second capacitance value C1, the current capacitance value change ΔC=C1-C0 is determined based on the first capacitance value C0 and the second capacitance value C1, and the current capacitance value change ΔC is compared with the historical capacitance value change ΔCh to obtain a comparison result |ΔC-ΔCh|. Based on the comparison result |ΔC-ΔCh|, it is determined whether the calibration value of the TWS headset needs to be updated, and if so, how to update it.

[0080] In this embodiment, the calibration method of the TWS earphone capacitive sensor includes the following steps: obtaining a first capacitance value of the capacitive sensor within a preset hanging time and a second capacitance value after wearing the TWS earphone; determining a current capacitance value change based on the first capacitance value and the second capacitance value, and comparing the current capacitance value change with the historical capacitance value change to obtain a comparison result; determining a calibration value of the TWS earphone based on the comparison result.

[0081] The contact capacitance values ​​of the TWS headset in different contact states, i.e., the wearing capacitance value, and the suspended capacitance value in the suspended state when the TWS headset is taken out, are collected, and the current capacitance value change is determined based on the wearing capacitance value and the suspended capacitance value. When the difference between the current capacitance value change and the historical capacitance value change is too large, it means that the current calibration value cannot adapt to solve the problem of capacitive sensor wearing detection failure caused by temperature drift, headset aging, etc. When the difference between the current capacitance value change and the historical capacitance value change is too large, the current calibration value is updated and calibrated based on the current various headset parameters to adapt to the changes in the TWS headset, and solve the technical problem that the capacitive sensor wearing detection is not accurate or even fails due to actual use such as temperature drift and headset aging. The reliability and accuracy of capacitive sensor wearing detection are improved, and ultimately the user experience is improved.

[0082] Optionally, before the step of obtaining a first capacitance value of the capacitive sensor within a preset suspension time, the method further includes:

[0083] Outputting a first prompt message, wherein the first prompt message is a preset hanging time for keeping the TWS headset in a hanging state;

[0084] Before the step of obtaining the second capacitance value after wearing the TWS headset, the method further includes:

[0085] Output a second prompt message, where the second prompt message is to wear the TWS headset.

[0086] In this embodiment, after the TWS earphones are out of the box and connected to the smart terminal device, the user can actively start the self-calibration of the capacitive sensor cap sensor through the "wearing calibration" function of the APP in the smart terminal device. At this time, the first prompt information is output to let the user keep the TWS earphones in the suspended state for a preset suspension time, such as prompting the user to suspend the earphones for 5 seconds by text, voice or video.

[0087] Before obtaining the second capacitance value after wearing the TWS headset, output a second prompt message to prompt the user to wear the headset and try to wear it tightly to obtain a better calibration effect. Alternatively, since the user's ear shape has different fitting effects when wearing the headset, the second prompt message can be to prompt the user to hold the earphone in-ear part with his hand, hold it for 5 seconds, and then wear the headset tightly. Based on the capacitance values ​​in these two processes, the second capacitance value is obtained.

[0088] In this embodiment, there is no limitation on the types of the first prompt information and the second prompt information, and there is no limitation on the prompting methods for implementing the first prompt information and the second prompt information.

[0089] In addition, the prompt information can be omitted, and the first capacitance value and the second capacitance value can be actively obtained when the user takes out the earphones and puts them on. When the user takes out the earphones, it is likely that they will fit the skin of the fingers tightly, and when the user wears the earphones, they will definitely fit the skin inside the ears. After taking out the earphones and before wearing them, it is also likely that the earphones will be suspended in the air, that is, the installation part of the capacitance sensor is suspended in the air and not in contact with any skin. In this way, the calibration value can be updated without the user noticing.

[0090] Optionally, the step of obtaining a first capacitance value of the capacitive sensor within a preset suspension time includes:

[0091] Acquire the suspended capacitance value of the capacitive sensor within the preset suspended time, and take the minimum value of the suspended capacitance value as the first capacitance value;

[0092] The step of obtaining a second capacitance value after wearing the TWS headset includes:

[0093] After wearing the TWS headset, the wearing capacitance value is collected at a preset frequency, and the maximum value of the wearing capacitance value is used as the second capacitance value.

[0094] The minimum value of the suspended capacitance value collected by the capacitive sensor of the TWS headset in the suspended state within the preset suspended time is used as the first capacitance value, and the maximum value of the wearing capacitance value collected by the capacitive sensor of the TWS headset in the worn state at a preset frequency is used as the second capacitance value. Among them, the preset frequency for obtaining the second capacitance value is 100HZ, and the frequencies in different working modes are set for the TWS headset, such as working mode, calibration mode, sleep standby mode, etc. There are different frequencies. There is no time limit for obtaining the second capacitance value, and it is assumed that the capacitance value does not change after being worn on the ear.

[0095] Optionally, the step of determining the calibration value of the TWS headset based on the comparison result includes:

[0096] Get the current calibration value of the TWS headset;

[0097] If the comparison result is greater than a preset threshold, determining a target calibration value of the TWS headset, and using the target calibration value as the new current calibration value;

[0098] If the comparison result is not greater than the preset threshold, the current calibration value is kept unchanged.

[0099] The capacitive sensor cap sensor needs to be calibrated on the production line to eliminate differences in the process and assembly of the headphones. The principle of the production line calibration is: obtain the capacitance value K0 of the headphones in the suspended state and the capacitance value K1 when the headphones are fitted with the production line calibration fixture, and the capacitance value change obtained is K=K1-K0. When the product ID model and material are determined, the capacitance value change should theoretically remain consistent. The theoretical capacitance value change is T, and the production line calibration value offset of the headphones is TK. When the headphones are in use, the capacitance value Ki collected in real time needs to be added to the production line calibration value offset to obtain the final capacitance value Kj=Ki+offset reported to the main chip.

[0100] In this embodiment, after the TWS headset leaves the factory, the current calibration value is obtained each time the user actively performs the "wearing calibration" function. When the TWS headset is used for the first time after leaving the factory, the current calibration value is the production line calibration value offset. In subsequent uses, the current calibration value is the calibration value after the last calibration.

[0101] If the comparison result |ΔC-ΔCh|>preset threshold M, it is considered that the current calibration value does not meet the current wearing or use requirements, and the wearing detection of the TWS headset may not be accurate enough, and calibration is required. In this case, the target calibration value is determined and used as the new current calibration value.

[0102] If the comparison result |ΔC-ΔCh|≤preset threshold M, it is considered that the current calibration value still meets the needs of current wearing or use and is "sufficient", so the current calibration value is kept unchanged and there is no need to update the calibration.

[0103] Optionally, before the step of determining the calibration value of the TWS headset based on the comparison result, the method further includes:

[0104] The preset threshold is determined based on a production line calibration value of the TWS headset when it leaves the factory.

[0105] The preset threshold M of the TWS headset is determined by the production line calibration value offset at the time of leaving the factory. In this embodiment, after obtaining the production line calibration value offset, the preset threshold M=0.1*offset is determined. In addition, the proportional relationship between the preset threshold and the production line calibration value offset can be corrected based on user feedback or the accuracy of wearing detection during actual use. In this embodiment, the method for determining the preset threshold is not limited.

[0106] Optionally, the step of determining a target calibration value of the TWS headset includes:

[0107] The target calibration value is determined based on the current capacitance value change, the historical capacitance value change, and the current calibration value.

[0108] The method for determining the target calibration value is: target calibration value offset`=(ΔC / ΔCh)*offset. Wherein, offset is the production line calibration value, ΔC is the current capacitance value change, and ΔCh is the pre-stored historical capacitance value change. In this embodiment, based on the positive correlation between the calibration value and the capacitance value change, a proportional relationship between the calibration value and the capacitance value change is given, so that the target calibration value offset` is determined based on the current capacitance value change ΔC, the historical capacitance value change ΔCh and the current calibration value.

[0109] Optionally, after the step of determining to obtain the target calibration value, the method further comprises:

[0110] The historical capacitance value change is updated based on the current capacitance value change.

[0111] If the current calibration value does not need to be calibrated and updated, the current capacitance value change ΔC is kept unchanged. If the current calibration value needs to be calibrated and updated, after the current calibration value is calibrated and updated with the target calibration value offset`, the current capacitance value change ΔC is used to update the historical capacitance value change ΔCh. The current capacitance value change ΔC can be directly used as the historical capacitance value change ΔCh, or the average value of the historical capacitance value change ΔCh 10 times or 50 times before the current update calibration is used as the new historical capacitance value change ΔCh. In this embodiment, the method for updating the historical capacitance value change ΔCh is not limited.

[0112] In this embodiment, after the TWS headset leaves the factory, the current calibration value is obtained each time the user actively performs the "wearing calibration" function. When the TWS headset is used for the first time after leaving the factory, the current calibration value is the production line calibration value offset. In subsequent uses, the current calibration value is the calibration value after the last calibration.

[0113] Reference Figure 3 , Figure 3 The present invention is a schematic diagram of the implementation process of a calibration method for a capacitive sensor of a TWS headset. This embodiment designs a method for prompting the user to perform corresponding operations through an APP (Application), collecting the capacitance values ​​of the capacitive sensor under different operating states, thereby obtaining the wearing capacitance value and the suspended capacitance value respectively, and updating the calibration value of the capacitive sensor cap sensor. The specific method is as follows:

[0114] 1. The TWS earphones are out of the box and connected to the smart terminal device. The user starts the self-calibration of the capacitive sensor through the "wearing calibration" function of the APP in the smart terminal device.

[0115] 2. The APP prompts the user to keep the earphone in the ear state for 5 seconds. The TWS earphone collects the capacitance value during the suspension period and takes the minimum value as the suspension capacitance value C0.

[0116] 3. The APP prompts the user to hold the earphone in-ear part with his hand for 5 seconds; after completion, the user is prompted to wear the TWS earphone and try to wear it tightly to obtain a better calibration effect. During this process, the TWS earphone collects capacitance values ​​at an operating acquisition frequency of 100Hz, and takes the maximum value as the wearing capacitance value C1. Due to individual differences in user ear shapes, the capacitance value of the user when wearing TWS earphones may not be in full contact with the skin. Therefore, before the user wears it, the user can be prompted to actively hold the earphone in-ear part to obtain the capacitance value that is in full contact with the skin, so as to ensure that an accurate wearing capacitance value C1 can be obtained, and the negative impact of individual differences on calibration can be eliminated.

[0117] 4. Calculate the current capacitance change ΔC = C1 - C0 and save the result.

[0118] 5. Compare the recorded historical capacitance value changes ΔCh and ΔC. If |ΔC-ΔCh|>M, recalculate the target calibration value offset`=(ΔC / ΔCh)*offset, otherwise keep the current calibration value offset unchanged. Where M is the preset threshold value, which is obtained by the production line calibration value when the earphone leaves the factory. In this embodiment, it is set to M=0.1*offset.

[0119] 6. If the calibration value is recalculated, ΔCh=ΔC, offset=offset` is updated, that is, the current capacitance value change ΔC is used as the historical capacitance value change ΔCh for the next calibration, and the target calibration value offset` is used as the current calibration value offset.

[0120] In addition, an embodiment of the present invention further provides a calibration device for a TWS earphone capacitive sensor, the calibration device for the TWS earphone capacitive sensor comprising:

[0121] An acquisition module, used to acquire a first capacitance value of the capacitive sensor within a preset suspension time and a second capacitance value after wearing the TWS headset;

[0122] a comparison module, configured to determine a current capacitance value change based on the first capacitance value and the second capacitance value, and compare the current capacitance value change with a historical capacitance value change to obtain a comparison result;

[0123] A determination module is used to determine a calibration value of the TWS headset based on the comparison result.

[0124] Optionally, the calibration device for the TWS earphone capacitive sensor further includes: a prompt module, which is used, before the step of obtaining the first capacitance value of the capacitive sensor within a preset suspension time,

[0125] Outputting a first prompt message, wherein the first prompt message is a preset hanging time for keeping the TWS headset in a hanging state;

[0126] Before the step of obtaining the second capacitance value after wearing the TWS headset,

[0127] Output a second prompt message, where the second prompt message is to wear the TWS headset.

[0128] Optionally, the prompt module includes a collection unit, which is used to obtain the suspended capacitance value of the capacitive sensor within the preset suspended time, and take the minimum value of the suspended capacitance value as the first capacitance value;

[0129] After wearing the TWS headset, the wearing capacitance value is collected at a preset frequency, and the maximum value of the wearing capacitance value is used as the second capacitance value.

[0130] Optionally, the determination module includes a comparison unit, configured to obtain a current calibration value of the TWS headset;

[0131] If the comparison result is greater than a preset threshold, determining a target calibration value of the TWS headset, and using the target calibration value as the new current calibration value;

[0132] If the comparison result is not greater than the preset threshold, the current calibration value is kept unchanged.

[0133] Optionally, the calibration device for the TWS earphone capacitive sensor further includes: a threshold determination module, configured to, before the step of determining the calibration value of the TWS earphone based on the comparison result,

[0134] The preset threshold is determined based on a production line calibration value of the TWS headset when it leaves the factory.

[0135] Optionally, the determination module further includes a target calibration value determination unit, configured to determine the target calibration value based on the current capacitance value change, the historical capacitance value change and the current calibration value.

[0136] Optionally, the determination module further comprises an updating unit, which is used, after the step of determining to obtain the target calibration value,

[0137] The historical capacitance value change is updated based on the current capacitance value change.

[0138] In addition, an embodiment of the present invention also provides a calibration device for a TWS earphone capacitive sensor, and the calibration device for the TWS earphone capacitive sensor includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the calibration method for the TWS earphone capacitive sensor as described above are implemented.

[0139] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the calibration method of the TWS headset capacitive sensor as described above are implemented.

[0140] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0141] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0143] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A calibration method for a TWS headset capacitive sensor, characterized in that: The calibration method of the TWS headset capacitive sensor comprises the following steps: Obtaining a first capacitance value of the capacitive sensor within a preset suspension time and a second capacitance value after wearing the TWS headset; Determine a current capacitance value change based on the first capacitance value and the second capacitance value, and compare the current capacitance value change with a historical capacitance value change to obtain a comparison result; Determining a calibration value of the TWS headset based on the comparison result; The step of determining the calibration value of the TWS headset based on the comparison result includes: Get the current calibration value of the TWS headset; If the comparison result is greater than a preset threshold, determining a target calibration value of the TWS headset, and using the target calibration value as the new current calibration value; If the comparison result is not greater than the preset threshold, keeping the current calibration value unchanged; After the step of determining the target calibration value of the TWS headset, the method further includes: The historical capacitance value change is updated based on the current capacitance value change.

2. The calibration method of the TWS headset capacitive sensor according to claim 1, characterized in that: Before the step of obtaining the first capacitance value of the capacitive sensor within a preset suspension time, the method further includes: Outputting a first prompt message, wherein the first prompt message is a preset hanging time for keeping the TWS headset in a hanging state; Before the step of obtaining the second capacitance value after wearing the TWS headset, the method further includes: Output a second prompt message, where the second prompt message is to wear the TWS headset.

3. The calibration method of the TWS headset capacitive sensor according to claim 1, characterized in that: The step of obtaining a first capacitance value of the capacitive sensor within a preset suspension time includes: Acquire the suspended capacitance value of the capacitive sensor within the preset suspended time, and take the minimum value of the suspended capacitance value as the first capacitance value; The step of obtaining a second capacitance value after wearing the TWS headset includes: After wearing the TWS headset, the wearing capacitance value is collected at a preset frequency, and the maximum value of the wearing capacitance value is used as the second capacitance value.

4. The calibration method of the TWS headset capacitive sensor according to claim 1, characterized in that: Before the step of determining the calibration value of the TWS headset based on the comparison result, the method further includes: The preset threshold is determined based on a production line calibration value of the TWS headset when it leaves the factory.

5. The calibration method of the TWS headset capacitive sensor according to claim 1, characterized in that: The step of determining a target calibration value of the TWS headset comprises: The target calibration value is determined based on the current capacitance value change, the historical capacitance value change, and the current calibration value.

6. A calibration device for a capacitive sensor of a TWS headset, characterized in that: The calibration device of the TWS headset capacitive sensor comprises: An acquisition module, used to acquire a first capacitance value of the capacitive sensor within a preset suspension time and a second capacitance value after wearing the TWS headset; a comparison module, configured to determine a current capacitance value change based on the first capacitance value and the second capacitance value, and compare the current capacitance value change with a historical capacitance value change to obtain a comparison result; A determination module, configured to determine a calibration value of the TWS headset based on the comparison result; The determination module comprises: A comparison unit, configured to obtain a current calibration value of the TWS headset; if the comparison result is greater than a preset threshold, determine a target calibration value of the TWS headset, and use the target calibration value as the new current calibration value; if the comparison result is not greater than the preset threshold, keep the current calibration value unchanged; An updating unit is used to update the historical capacitance value change based on the current capacitance value change after the step of determining the target calibration value of the TWS headset.

7. A calibration device for a capacitive sensor of a TWS headset, characterized in that: The calibration device of the TWS earphone capacitive sensor comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the calibration method of the TWS earphone capacitive sensor as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the calibration method of the TWS earphone capacitive sensor according to any one of claims 1 to 5 are implemented.