State detection calibration method, device, wireless headset and storage medium

By calibrating the status threshold of the wireless headset, the problem of decreased accuracy of wearing state detection is solved, and the accuracy of the wearing state of wireless headset detection is improved.

CN115334390BActive Publication Date: 2025-01-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110506212.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-10
Publication Date
2025-01-28
Estimated Expiration
2041-05-10

AI Technical Summary

Technical Problem

The accuracy of the wearing status detection of wireless headphones is reduced, resulting in abnormal product functions and inability to recover.

Method used

By determining the detection value when the wireless headset is outside the box and not worn, the current school accuracy is adjusted, and then calibrate the state threshold to improve the accuracy of the state detection.

Benefits of technology

The data of wearing a detection module during the use of wireless headsets is implemented, and the status threshold is calibrated to improve the accuracy of the wearing state of wireless headset detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115334390B_ABST
    Figure CN115334390B_ABST
Patent Text Reader

Abstract

The present application discloses a state detection calibration method, device, wireless headset and storage medium. The state detection calibration method is applied to wireless headsets. The wireless headsets include a wearing detection module. The wearing state of the wireless headsets is determined according to the wearing data detected by the wearing detection module and the state threshold. The state detection calibration method includes: determining the detection value of the wearing detection module when the wireless headset is out of the box and not worn; adjusting the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold; calibrating the state threshold according to the adjusted current calibration value. This method can realize the calibration of the wearing state detection of wireless headsets and improve the accuracy of the wearing state detection of wireless headsets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wireless headsets, and more specifically, to a calibration method and device for state detection, a wireless headset, and a storage medium. Background Art

[0002] With the rapid advancement of science and technology and living standards, wireless headphones are becoming more and more widely used due to their portability and other features. Among them, True Wireless Stereo (TWS) headphones are more popular with users because they completely eliminate the trouble of wires and are more free to use. When using wireless headphones, the wearing status of wireless headphones is usually detected through wearing detection modules such as touch sensors and infrared sensors. However, due to the continuous aging of the hardware of wireless headphones during use, the accuracy of wireless headphones in detecting the wearing status based on the wearing detection module will be reduced. Summary of the invention

[0003] In view of the above problems, the present application proposes a state detection calibration method, device, wireless headset and storage medium.

[0004] In a first aspect, an embodiment of the present application provides a calibration method for state detection, which is applied to a wireless headset, wherein the wireless headset includes a wearing detection module, and the wearing state of the wireless headset is determined based on wearing data detected by the wearing detection module and a state threshold. The method includes: determining a detection value of the wearing detection module when the wireless headset is out of a box and not worn; adjusting the current calibration value based on a difference between the detection value and a current calibration value corresponding to the state threshold; and calibrating the state threshold based on the adjusted current calibration value.

[0005] In a second aspect, an embodiment of the present application provides a state detection calibration device, which is applied to a wireless headset, wherein the wireless headset includes a wearing detection module, and the wearing state of the wireless headset is determined based on the wearing data detected by the wearing detection module and a state threshold. The device includes: a detection value determination module, a calibration value adjustment module and a threshold calibration module, wherein the detection value determination module is used to determine the detection value of the wearing detection module when the wireless headset is out of the box and not worn; the calibration value adjustment module is used to adjust the current calibration value based on the difference between the detection value and the current calibration value corresponding to the state threshold; the threshold calibration module is used to calibrate the state threshold based on the adjusted current calibration value.

[0006] In a third aspect, an embodiment of the present application provides a wireless headset, comprising: a wearing detection module; one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the calibration method for status detection provided in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the calibration method for state detection provided in the first aspect above.

[0008] In the solution provided by the present application, the wearing status of the wireless headset is determined based on the wearing data detected by the wearing detection module and the status threshold. The wireless headset determines the detection value of the wearing detection module when the wireless headset is out of the box and not worn, and adjusts the current calibration value according to the difference between the detection value and the current calibration value corresponding to the status threshold. Then, the status threshold is calibrated according to the adjusted current calibration value. In this way, the status threshold can be calibrated according to the data detected by the wearing detection module during the use of the wireless headset, thereby improving the accuracy of the wireless headset in detecting the wearing status. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram of the structure of a wireless headset provided in an embodiment of the present application is shown.

[0011] Figure 2 A flow chart of a calibration method for state detection according to an embodiment of the present application is shown.

[0012] Figure 3 A schematic diagram of an interface provided in an embodiment of the present application is shown.

[0013] Figure 4 A flow chart of a calibration method for state detection according to another embodiment of the present application is shown.

[0014] Figure 5 A flowchart of step S240 in a state detection calibration method provided in another embodiment of the present application is shown.

[0015] Figure 6A flow chart of a calibration method for state detection according to yet another embodiment of the present application is shown.

[0016] Figure 7 A flow chart of a calibration method for state detection according to yet another embodiment of the present application is shown.

[0017] Figure 8 A flow chart of a calibration method for state detection according to yet another embodiment of the present application is shown.

[0018] Fig. 9 A flow chart of a calibration method for state detection according to yet another embodiment of the present application is shown.

[0019] Fig.10 A flow chart of a calibration method for state detection according to yet another embodiment of the present application is shown.

[0020] Fig.11 A block diagram of a calibration device for state detection according to an embodiment of the present application is shown.

[0021] Fig.12 It is a block diagram of a wireless headset according to an embodiment of the present application for executing a calibration method for state detection according to an embodiment of the present application.

[0022] Fig.13 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing a calibration method for state detection according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0024] Electronic devices (such as smartphones, tablets, etc.) have become one of the most commonly used consumer electronic products in people's daily lives. With the development of wireless communication technology, when users use electronic devices to play sound, wireless headphones are becoming more and more widely used due to their convenient portability. With the development of science and technology and the improvement of people's living standards, Bluetooth headsets have gradually become a must-have electronic product. Among them, True Wireless Stereo (TWS) headphones have gradually increased their market share in the headphone market due to their excellent features such as being more comfortable to wear, easy to use, unobtrusive, and more compact and beautiful.

[0025] When using wireless earphones, they usually detect the wearing status, that is, detect the wearing status and the removed status of the wireless earphones, and control the working status of the wireless earphones according to the detected wearing status. For example, the TWS earphones are small in size, and it is difficult to configure a large-capacity battery for the TWS earphones, which leads to battery life issues for the TWS earphones. In order to improve the battery life of the TWS earphones, wearing detection modules such as touch sensors and infrared proximity sensors are added to the TWS earphones, and the wearing status of the earphones is detected by the wearing detection module, so that when the earphones are detected to be removed, the sound is automatically paused or the earphones are controlled to enter a low-power mode.

[0026] After long-term research, the inventor found that wireless headphones are usually calibrated on the production line before leaving the factory to determine the detection threshold for determining the wearing status. However, after leaving the factory, the hardware of the wireless headphones will age during use, which will cause the accuracy of the wireless headphones in detecting the wearing status based on the wearing detection module to decrease, resulting in abnormal product functions of the wireless headphones and the inability to recover.

[0027] In response to the above problems, the inventors have proposed a calibration method, device, wireless headset and storage medium for status detection provided in the embodiments of the present application, which can calibrate the status threshold according to the detection value when the wireless headset is out of the box and not worn during use of the wireless headset, thereby improving the accuracy of the wireless headset in detecting the wearing status.

[0028] The wireless headset in the embodiment of the present application is introduced below.

[0029] See also Figure 1 A wearing detection module 130 is provided on the shell of the wireless headset 100. The wearing detection module 130 is set on a designated surface of the shell of the headset 100. The designated surface is the surface where the earphone head contacts the concha cavity of the human ear when the headset 100 is worn.

[0030] In some embodiments, the wearing detection module 130 may be a light sensor, and a circular hole may be opened on the designated surface, and the light sensor is installed in the circular hole. The light sensor includes a light-emitting unit and a light-sensitive unit. The light-emitting unit can emit infrared light, which passes through the prism on the circular hole and radiates out of the headset. If there is an opaque object blocking the front, most of the light will be reflected back. The light-sensitive unit can detect the intensity of the reflected light. The wireless headset can compare the detected light intensity with the set light intensity threshold to determine whether there is an object blocking the headset head, thereby inferring whether it is in a wearing state.

[0031] Of course, there is no limitation on the specific type of the wearing detection module 130, and the wearing detection module 130 may also be a touch sensor, a pressure sensor, etc. For example, when the wearing detection module 130 is a touch sensor, it can be determined whether there is an object touching the earphone head based on the touch detection value detected by the touch sensor and compared with the set touch threshold, so as to infer whether it is in a wearing state.

[0032] The following is a detailed description of the calibration method for state detection in the embodiment of the present application.

[0033] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a calibration method for state detection provided by an embodiment of the present application. In a specific embodiment, the calibration method for state detection is applied to Fig.11 The state detection calibration device 400 and the wireless headset 100 equipped with the state detection calibration device 400 are shown in FIG. Fig.12 ). The wireless headset includes a wearing detection module, and the wireless headset can determine the wearing state of the wireless headset based on the wearing data detected by the wearing detection module and the state threshold. The wearing detection module can be an infrared sensor, a touch sensor, a pressure sensor, etc., and the specific type of the wearing detection module may not be limited. Figure 2 The process shown is described in detail, and the calibration method of the state detection may specifically include the following steps:

[0034] Step S110: determining a detection value of the wearing detection module when the wireless headset is out of the box and not worn.

[0035] As the hardware of the wireless headset continues to age during use, the accuracy of the wearing status detection module of the wireless headset will decrease. Therefore, after the wireless headset leaves the factory, the wearing status detection of the wireless headset is calibrated.

[0036] In an embodiment of the present application, the wireless headset determines the detection value of the wearing detection module when the wireless headset is out of the box and not worn. Among them, the wireless headset is usually equipped with a charging box. When the wireless headset is not in use, the wireless headset can be placed in the charging box to protect the wireless headset, charge the wireless headset, etc. At this time, the wireless headset is in the box state; when the user needs to use the wireless headset, the wireless headset is usually taken out of the charging box, and the wireless headset is in the box state. When the wireless headset is out of the box and not worn, it means that the headset is in an unloaded state. At this time, since the earphone head of the wireless headset will not contact the object, the data value usually detected by the wearing detection module is 0 under normal circumstances. However, due to the aging of the hardware of the wireless headset, for example, there will be foreign matter on the surface of the earphone shell corresponding to the wearing detection module, etc., the wearing detection module will still detect a certain size of data value when the wireless headset is out of the box and not worn, and when the wireless headset is actually worn, the data value detected by the wearing detection module will include this part of the increment, that is, the data value detected by the wearing detection module is larger than the data value that should be actually detected when worn. Therefore, the detection value of the wearing detection module when the wireless headset is out of the box and not worn can be determined. The detection value can reflect the hardware performance of the wireless headset and can therefore be used to calibrate the detection of the wearing state.

[0037] In some embodiments, a large amount of data detected by the wearing detection module when the wireless headset is in an out-of-box state can be used, and the detection value when not worn can be determined based on the large amount of data, that is, the detection value of the wearing detection module when the wireless headset is in an out-of-box state and not worn. Optionally, based on the data detected by the wearing detection module when the wireless headset is in an out-of-box state, the minimum value of these data can be determined as the detection value of the wearing detection module when the wireless headset is in an out-of-box state and not worn. It can be understood that when the wireless headset is in an out-of-box state, the value detected when the wireless headset is worn is usually larger, while the detection value when not worn is smaller. Therefore, the minimum value of the detection data of the wearing sensor during the period when the wireless headset is in an out-of-box state can be determined as the detection value of the wearing detection module when the wireless headset is in an out-of-box state and not worn.

[0038] In a possible implementation, the wireless headset can obtain data detected by the wearing detection module when the wireless headset is out of the box, and the data detected by the wearing detection module includes data sampled and detected by the wearing detection module for M consecutive times, where M is a positive integer; the minimum value of the data sampled and detected for M consecutive times is obtained as the detection value of the wearing detection module when the wireless headset is out of the box and not worn. It can be understood that the data sampled and detected by the wearing sensor for multiple consecutive times can be obtained, and the minimum value can be determined based on these data, that is, the detection value when the wireless headset is out of the box and not worn is obtained.

[0039] Optionally, the wireless headset can obtain the average value of the data detected by each N consecutive samplings based on the data detected by the continuous M samplings, and obtain multiple average values; then obtain the minimum value of the obtained multiple average values ​​as the detection value of the wearing detection module when the wireless headset is out of the box and not worn. Exemplarily, when the wireless headset is in the out-of-box state, data can be detected by sampling every 10 times, and the average value of the data for 10 times can be calculated and recorded; when the average value of the data for the next 10 times is less than the average value of the current record, the recorded average value is replaced with the newly calculated average value; this is repeated until the wireless headset is in the box, so that the minimum value of the data detected by the wearing detection module when the wireless headset is in the out-of-box state can be obtained.

[0040] In other embodiments, the wireless headset can establish a communication connection with the user's mobile terminal. When the wearing state of the wireless headset needs to be calibrated, the mobile terminal can output a specified prompt message, which is used to prompt the user to put the wireless headset out of the box and not be worn; after receiving a confirmation instruction input by the user, which is used to confirm that the wireless headset is out of the box and not worn, the mobile terminal sends a status indication instruction to the wireless headset; after receiving the status indication instruction, the wireless headset can record the data detected by the wearing detection module within a preset time after the current moment; then, based on the data detected by the wearing detection module, determine the minimum value as the detection value of the wearing detection module when the wireless headset is out of the box and not worn. For example, refer to Figure 3 , the mobile terminal may display a prompt message A1 "Please put the wireless headset out of the box and put the wireless headset in an unworn state". When the mobile terminal detects the operation of the control A2, it can determine that the confirmation instruction is received, and confirm that the wireless headset is out of the box and not worn, and then send the above-mentioned status indication instruction to the wireless headset. Of course, the specific method of the wireless headset determining the detection value of the wearing detection module when the wireless headset is out of the box and not worn is not limited.

[0041] In some embodiments, the wireless headset can obtain the detection value of the wearing detection module each time it is out of the box and not worn, and the subsequent steps can be executed after each acquisition of the above detection value; it can also be determined whether the detection value has changed relative to the detection value acquired last time after each acquisition of the detection value. If it has changed, the detection value is updated so that when the current calibration value is subsequently adjusted, the current calibration value can be adjusted based on the most recently acquired detection value; it can also be that after acquiring the detection value when it is out of the box and not worn T times, T is a positive integer, and the average value of the detection values ​​acquired T times is obtained, and the average value is used as the detection value for adjusting the current calibration value.

[0042] In the embodiment of the present application, the specific implementation method of the wireless headset detecting whether it is in the in-box state or the out-box state may not be limited. Optionally, the charging of the wireless headset is usually based on the charging box, so the wireless headset detects whether it is in the in-box state or the out-box state, which can be determined based on the charging voltage detected by the wireless headset; if there is a charging voltage, it can be determined that the wireless headset is in the in-box state; if there is no charging voltage, it can be determined that the wireless headset is in the out-box state. Optionally, when the wireless headset is placed in the charging box for charging, the charging interface of the wireless headset will contact the power supply connector in the charging box, so the wireless headset can also determine whether the charging interface is connected to the power supply connector. If the charging interface is connected to the power supply connector, it can be determined that the wireless headset is in the in-box state; if the charging interface is not connected to the power supply connector, it can be determined that the wireless headset is out of the box.

[0043] Step S120: adjusting the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold.

[0044] In an embodiment of the present application, after the wireless headset obtains the detection value when it is out of the box and not worn, it can determine the difference between the detection value and the current calibration value corresponding to the state threshold, and calibrate the current calibration value based on this difference. Wherein, the state threshold is the state threshold used by the wireless headset to detect the wearing state. When the data value detected by the wearing detection module reaches the state threshold, it can be determined that the wireless headset is in the wearing state; when the data value detected by the wearing detection module is less than the state threshold, it can be determined that the wireless headset is in the removed state (not worn state). The current calibration value is the calibration value currently stored by the wireless headset for calibrating the state threshold, and the initial value of the current calibration value can be the calibration value set when the wireless headset leaves the factory for calibrating the state threshold. The wireless headset calibrates the state threshold according to the current calibration value, which can be to obtain the sum of the current calibration value and the state threshold, that is, to add the state threshold to the current calibration value, and update the state threshold to the sum after adding the current calibration value. Since the data value detected by the wearing detection module when the wireless headset is in the wearing state is larger than the data value that should actually be detected when worn, the calibration value is usually a positive value, that is, the state threshold will also be increased to ensure the accuracy of the wearing state detection.

[0045] In some embodiments, the wireless headset can obtain the difference between the detection value and the current calibration value, and when the difference is not 0, that is, when there is a difference between the detection value and the current calibration value, the current calibration value is adjusted to reduce the difference between the current calibration value and the above detection value. Optionally, if the detection value is greater than the current calibration value, the current calibration value can be increased to reduce the difference between the current calibration value and the above detection value; if the detection value is less than the current calibration value, the current calibration value can be reduced to reduce the difference between the current calibration value and the above detection value, so as to reduce the difference between the current calibration value and the above detection value.

[0046] Step S130: calibrating the state threshold according to the adjusted current calibration value.

[0047] In an embodiment of the present application, after adjusting the current calibration value according to the difference between the above detection value and the current calibration value, the state threshold can be calibrated according to the adjusted current calibration value. Among them, the sum of the current calibration value and the state threshold can be obtained to obtain the calibrated state threshold. After calibrating the state threshold, if the current calibration value becomes smaller, the state threshold also becomes smaller accordingly; if the current calibration value becomes larger, the state threshold also becomes larger accordingly. Thus, the state threshold can be calibrated according to the variable current calibration value, and the current calibration value is determined according to the above detection value that can reflect the hardware performance of the wireless headset. Therefore, the wireless headset can dynamically calibrate the state threshold according to the change of hardware performance after leaving the factory, thereby improving the accuracy of the wireless headset in detecting the wearing state.

[0048] See also Figure 4 , Figure 4 A flow chart of a calibration method for state detection provided by another embodiment of the present application is shown. The calibration method for state detection is applied to the above-mentioned wireless headset. Figure 4 The process shown is described in detail, and the calibration method of the state detection may specifically include the following steps:

[0049] Step S210: determining a detection value of the wearing detection module when the wireless headset is out of the box and not worn.

[0050] In the embodiment of the present application, step S210 can refer to the contents of other embodiments and will not be repeated here.

[0051] Step S220: obtaining a difference between the detection value and the current calibration value as a first difference.

[0052] In an embodiment of the present application, the difference between the detection value determined above when the wireless headset is out of the box and not worn and the current calibration value can be obtained, and the difference can be used as the first difference to determine the difference between the detection value and the current calibration value, and then the current calibration value can be adjusted based on this.

[0053] Step S230: determining an adjustment operation for the current calibration value based on the first difference, the adjustment operation comprising a first adjustment for increasing the current calibration value and a second adjustment for decreasing the current calibration value.

[0054] In the embodiment of the present application, after determining the above first difference, the wireless headset can determine the adjustment operation of the current calibration value based on the first difference. Since it is necessary to adjust the current calibration value when there is a difference between the detection value and the current calibration value so as to reduce the difference between the current calibration value and the above detection value, the adjustment operation of the current calibration value includes: a first adjustment to increase the current calibration value, or a second adjustment to decrease the current calibration value.

[0055] In some embodiments, the wireless headset determines the adjustment operation of the current calibration value based on the above first difference, which may include: if the first difference is greater than 0, determining the adjustment operation of the current calibration value is a first adjustment to increase the current calibration value; if the first difference is less than 0, determining the adjustment operation of the current calibration value is a second adjustment to decrease the current calibration value. Wherein, when the first difference is greater than 0, it means that the detection value of the wireless headset when it is out of the box and not worn is greater than the current calibration value, so the current calibration value needs to be increased to reduce the difference between the current calibration value and the detection value; when the first difference is less than 0, it means that the detection value of the wireless headset when it is out of the box and not worn is less than the current calibration value, so the current calibration value needs to be reduced to reduce the difference between the current calibration value and the detection value. When the first difference is 0, it means that there is no difference between the above detection value and the current calibration value. In this case, there is no need to adjust the current calibration value, that is, the subsequent processing steps are not performed.

[0056] Step S240: performing the first adjustment or the second adjustment on the current calibration value according to the first difference.

[0057] In an embodiment of the present application, after the wireless headset determines the adjustment operation for the current calibration value according to the first difference, it can perform the first adjustment or the second adjustment in the above-determined adjustment operation on the current calibration value according to the first difference.

[0058] In some embodiments, according to the first difference, the above first adjustment or second adjustment is performed on the current calibration value, and the first difference of a preset ratio can be taken, that is, the product of the first difference and the preset ratio is obtained, and then the current calibration value is increased by the size of the product, or the current calibration value is reduced by the size of the product. The preset ratio can be a positive number less than 1. By adjusting the current calibration value in this way, the difference between the current calibration value and the above detection value can be reduced, and it can be avoided that the current calibration value is adjusted too much, which makes the calibration amplitude of the state threshold too large, resulting in inaccurate detection of subsequent wearing states.

[0059] In one possible implementation, see Figure 5 , performing the adjustment operation on the current calibration value according to the first difference may include:

[0060] Step S241: obtaining a difference between a preset calibration value and the current calibration value as a second difference, wherein the preset calibration value is a calibration value set when the wireless headset leaves the factory and is used to calibrate the state threshold.

[0061] In this implementation, when the wireless headset adjusts the current calibration value according to the difference between the above detection value and the current calibration value, the difference between the preset calibration value and the current calibration value can be obtained as the second difference. The preset calibration value is a calibration value set when the wireless headset leaves the factory for calibrating the state threshold, so the second difference can represent the change in hardware performance of the wireless headset after leaving the factory. If the second difference is large, it means that the hardware performance of the wireless headset has changed greatly compared to that when it left the factory. If the second difference is small, it means that the hardware performance of the wireless headset has changed little compared to that when it left the factory.

[0062] Step S242: Based on the second difference, determining an adjustment ratio corresponding to the adjustment operation.

[0063] In this implementation, after determining the above second difference, that is, determining the change in the current hardware performance of the wireless headset relative to the hardware performance at the factory, the adjustment ratio corresponding to the adjustment operation can be determined based on the second difference.

[0064] Optionally, the wireless headset determines the adjustment ratio corresponding to the adjustment operation based on the second difference, which may include: if the absolute value of the second difference is less than a first threshold, determining the adjustment ratio corresponding to the adjustment operation as a first preset ratio, wherein the first preset ratio corresponding to the first adjustment is a first ratio, the first preset ratio corresponding to the second adjustment is a second ratio, and the first ratio and the second ratio are both less than 1; if the absolute value is greater than or equal to the first threshold, and the second difference is a positive value, determining the adjustment ratio as a second preset ratio, wherein the second preset ratio corresponding to the first adjustment is greater than the first ratio, and the second preset ratio corresponding to the second adjustment is less than the second ratio; if the absolute value is greater than or equal to the first threshold, and the second difference is a negative value, determining the adjustment ratio as a third preset ratio, wherein the third preset ratio corresponding to the first adjustment is less than the first ratio, and the third preset ratio corresponding to the second adjustment is greater than the second ratio.

[0065] It can be understood that if the absolute value of the second difference is less than the first threshold, it means that the current hardware performance of the wireless headset has changed little relative to the hardware performance at the factory. Therefore, if the adjustment operation is the first adjustment, the adjustment ratio is set to the first ratio, and if the adjustment operation is the second adjustment, the adjustment ratio is set to the second ratio. Both the first ratio and the second ratio are less than 1, and their specific values ​​may not be limited. Optionally, since the second adjustment may only occur when the hardware performance changes greatly, the first ratio may be less than the second ratio, that is, the adjustment ratio of the second adjustment is greater than the adjustment ratio of the first adjustment. For example, the first ratio may be 0.2, and the second ratio may be 0.3.

[0066] If the absolute value of the second difference is greater than or equal to the first threshold, and the second difference is a positive value, it means that the current hardware performance of the wireless headset has changed significantly compared to the hardware performance at the factory, and the preset calibration value is greater than the current calibration value. In this case, the adjustment ratio of the first adjustment can be larger than the first ratio when the hardware performance change is small, so that when the current calibration value needs to be increased, the current calibration value can be increased with a larger adjustment ratio. The adjustment ratio of the second adjustment can be smaller than the second ratio when the hardware performance change is small, so as to reduce the reduction of the current calibration value and avoid the current calibration value being adjusted too small. Exemplarily, the third ratio can be 2 times the first ratio, and the fourth ratio can be 0.5 times the second ratio.

[0067] If the absolute value of the second difference is greater than or equal to the first threshold, and the second difference is a negative value, it means that the current hardware performance of the wireless headset has changed significantly compared to the hardware performance at the factory, and the preset calibration value is less than the current calibration value. In this case, the adjustment ratio of the first adjustment can be smaller than the first ratio when the hardware performance change is small, so as to reduce the increase in the current calibration value and avoid the current calibration value being adjusted too much. The adjustment ratio of the second adjustment can be smaller than the second ratio when the hardware performance change is small, so that when the current calibration value needs to be reduced, the current calibration value can be reduced with a larger adjustment ratio. Exemplarily, the third ratio can be 0.5 times the first ratio, and the fourth ratio can be 2 times the second ratio.

[0068] Step S243: performing the first adjustment or the second adjustment on the current calibration value based on the adjustment ratio and the first difference.

[0069] In this implementation, after the adjustment ratio is determined, the current calibration value can be adjusted accordingly based on the adjustment ratio and the first difference. Optionally, the product of the first difference and the adjustment ratio can be obtained; the sum of the current calibration value and the product is obtained to obtain the adjusted current calibration value. In this method, if the first difference is positive, the current calibration value is increased; if the first difference is negative, the current calibration value is decreased. Moreover, by limiting the above adjustment ratio, the adjustment of the current calibration value can be adapted to the change in hardware performance, and the learning speed can be adjusted according to different user scenarios, so as to achieve faster calibration of the wireless headset to detect the wearing status.

[0070] Step S250: calibrating the state threshold according to the adjusted current calibration value.

[0071] In the embodiment of the present application, step S250 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0072] The state detection calibration method provided in the embodiment of the present application can enable the state threshold to be calibrated according to the variable current calibration value, and the current calibration value is determined according to the above detection value that can reflect the hardware performance of the wireless headset. Therefore, after the wireless headset leaves the factory, it can dynamically calibrate the state threshold according to the change of hardware performance, thereby improving the accuracy of the wireless headset in detecting the wearing state. In addition, when adjusting the current calibration value according to the first difference, the adjustment ratio is determined according to the change of the hardware performance of the wireless headset relative to the hardware performance when leaving the factory, so that the adjustment of the current calibration value is adapted to the change of the hardware performance, and the learning speed can be adjusted according to the scenarios used by different users, so as to achieve faster calibration of the wireless headset in detecting the wearing state.

[0073] See also Figure 6 , Figure 6 A flow chart of a calibration method for state detection provided by another embodiment of the present application is shown. The calibration method for state detection is applied to the above wireless headset. Figure 6 The process shown is described in detail, and the calibration method of the state detection may specifically include the following steps:

[0074] Step S310: determining a detection value of the wearing detection module when the wireless headset is out of the box and not worn.

[0075] In the embodiment of the present application, step S310 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0076] Step S320: Determine whether the number of historical adjustments to the current calibration value is less than a threshold number.

[0077] In an embodiment of the present application, before the wireless headset adjusts the current calibration value based on the difference between the above detection value and the current calibration value, it can obtain the historical number of adjustments to the current calibration value. Among them, the wireless headset can record each adjustment to the current calibration value and accumulate the number of adjustments. The wireless headset can compare the historical number of adjustments with the number threshold to determine whether the historical number of adjustments is less than the number threshold; if the historical number of adjustments is less than the number threshold, it means that the number of adjustments to the current calibration value is small, that is, the use cycle of the wireless headset after leaving the factory is short; if the historical number of adjustments is greater than the number threshold, it means that the number of adjustments to the current calibration value is large, and the use cycle of the wireless headset after leaving the factory is long. Among them, the specific value of the number threshold may not be limited, for example, the number threshold may be 15, 20, 25, etc.

[0078] Step S330: If the historical adjustment times are less than the times threshold, the current calibration value is adjusted to the detection value.

[0079] In an embodiment of the present application, after comparing the number of historical adjustments with the number threshold, if the number of historical adjustments is less than the number threshold, it means that the wireless headset has a short usage cycle after leaving the factory. At this time, the wireless headset's detection of wearing status has not yet adapted to the user's usage habits and usage environment. Therefore, the current calibration value can be directly adjusted to the detection value, so that the difference between the current calibration value and the above detection value is 0, thereby calibrating the current calibration value with a larger adjustment range, so that the wireless headset's detection of wearing status can quickly adapt to the user's usage habits and usage environment.

[0080] Step S340: If the number of historical adjustments is greater than or equal to the number threshold, the current calibration value is adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold.

[0081] In the embodiment of the present application, after comparing the historical adjustment times with the times threshold, if the historical adjustment times are greater than or equal to the times threshold, it means that the wireless headset has been used for a long period of time after leaving the factory, and the detection of the wearing state of the wireless headset at this time basically adapts to the user's usage habits and usage environment. In this case, the current calibration value can be adjusted in the manner of adjusting the current calibration value according to the difference between the detection value and the current calibration value in the aforementioned embodiment.

[0082] Step S350: calibrating the state threshold according to the adjusted current calibration value.

[0083] In the embodiment of the present application, step S350 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0084] The state detection calibration method provided in the embodiment of the present application can enable the state threshold to be calibrated according to the variable current calibration value, and the current calibration value is determined according to the above detection value that can reflect the hardware performance of the wireless headset. Therefore, after the wireless headset leaves the factory, it can dynamically calibrate the state threshold according to the change of hardware performance, thereby improving the accuracy of the wireless headset in detecting the wearing state. In addition, according to the above detection value, before adjusting the current calibration value, it is also determined whether the number of historical adjustments to the current calibration value is less than the number threshold, and when the number of historical adjustments is less than the number threshold, the current calibration value is directly adjusted to the detection value, so that the difference between the current calibration value and the above detection value is 0, thereby calibrating the current calibration value with a larger adjustment range, so that the detection of the wearing state by the wireless headset can quickly adapt to the user's usage habits and usage environment.

[0085] See also Figure 7 , Figure 7 A flow chart of a calibration method for state detection provided by another embodiment of the present application is shown. The calibration method for state detection is applied to the above wireless headset. Figure 7 The process shown is described in detail, and the calibration method of the state detection may specifically include the following steps:

[0086] Step S410: determining a detection value of the wearing detection module when the wireless headset is out of the box and not worn.

[0087] In the embodiment of the present application, step S410 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0088] Step S420: Determine whether the difference between the detection value and the current calibration value corresponding to the state threshold is greater than a second threshold.

[0089] Step S430: If it is less than or equal to the second threshold, the current calibration value is not adjusted.

[0090] Step S440: If it is greater than the second threshold, adjust the current calibration value according to the difference.

[0091] In an embodiment of the present application, when the current calibration value is calibrated according to the difference between the above detection value and the current calibration value, it can be determined whether the difference between the detection value and the current calibration value corresponding to the state threshold is greater than the second threshold. Among them, the second threshold can be a lower limit condition set to control the adjustment of the current calibration value. If the difference is less than or equal to the second threshold, no subsequent adjustment of the current calibration value is performed to avoid misadjustment of the current calibration value, that is, to avoid miscalibration of the state threshold; if the difference is greater than the second threshold, the current calibration value can be calibrated according to the difference between the detection value and the current calibration value. The specific value of the second threshold may not be limited. For example, the second threshold may be 0, that is, when the above detection value is different from the current calibration value, the current calibration value will be calibrated according to the difference between the detection value and the current calibration value.

[0092] Step S450: calibrating the state threshold according to the adjusted current calibration value.

[0093] In the embodiment of the present application, step S450 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0094] The state detection calibration method provided in the embodiment of the present application can enable the state threshold to be calibrated according to the variable current calibration value, and the current calibration value is determined according to the above-mentioned detection value that can reflect the hardware performance of the wireless headset. Therefore, after the wireless headset leaves the factory, it can dynamically calibrate the state threshold according to the change of hardware performance, thereby improving the accuracy of the wireless headset in detecting the wearing state. In addition, a lower limit condition for calibrating the current calibration value is set. Only when the difference between the detection value and the current calibration value corresponding to the state threshold is greater than the second threshold, the current calibration value is calibrated according to the difference between the detection value and the current calibration value, thereby avoiding the misadjustment of the current calibration value, that is, avoiding the miscalibration of the state threshold.

[0095] See also Figure 8 , Figure 8 A flow chart of a calibration method for state detection provided by another embodiment of the present application is shown. The calibration method for state detection is applied to the above-mentioned wireless headset. Figure 8 The process shown is described in detail, and the calibration method of the state detection may specifically include the following steps:

[0096] Step S510: determining a detection value of the wearing detection module when the wireless headset is out of the box and not worn.

[0097] In the embodiment of the present application, step S510 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0098] Step S520: determining whether the difference between the preset calibration value and the current calibration value is less than a third threshold.

[0099] The preset calibration value is a calibration value set when the wireless headset leaves the factory and is used to calibrate the state threshold.

[0100] Step S530: If it is greater than or equal to the second threshold, the current calibration value is not adjusted.

[0101] Step S540: If it is less than the third threshold, the current calibration value is adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold.

[0102] In the embodiment of the present application, when the current calibration value is calibrated according to the difference between the above detection value and the current calibration value, it can be preset whether the difference between the calibration value and the current calibration value is less than the third threshold value, and the preset calibration value is the calibration value set when the wireless headset leaves the factory for calibrating the state threshold value. Among them, the third threshold value can be the upper limit condition set to control the adjustment of the current calibration value, and the difference between the preset calibration value and the current calibration value indicates the change in the current hardware performance of the wireless headset relative to the hardware performance at the factory. If the difference between the preset calibration value and the current calibration value is less than the third threshold value, it indicates that the change in hardware performance is within a reasonable range, so the current calibration value can be calibrated according to the difference between the detection value and the current calibration value; if the difference between the preset calibration value and the current calibration value is greater than or equal to the third threshold value, it indicates that the change in hardware performance is not within a reasonable range, that is, the above detection value obtained this time may be inaccurate, so no subsequent adjustment of the current calibration value is performed to avoid misadjustment of the current calibration value, that is, to avoid miscalibration of the state threshold.

[0103] In addition, in the calibration method for state detection provided in the aforementioned embodiment, when determining the adjustment ratio, the difference between the preset calibration value and the current calibration value is also referred to, so the third threshold value may be correlated with the first threshold value, wherein the third threshold value may be greater than the first threshold value in the aforementioned embodiment. For example, the third threshold value may be twice the first threshold value.

[0104] Step S550: calibrating the state threshold according to the adjusted current calibration value.

[0105] In the embodiment of the present application, step S550 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0106] The state detection calibration method provided in the embodiment of the present application can enable the state threshold to be calibrated according to the variable current calibration value, and the current calibration value is determined according to the above detection value that can reflect the hardware performance of the wireless headset. Therefore, after the wireless headset leaves the factory, it can dynamically calibrate the state threshold according to the change of hardware performance, thereby improving the accuracy of the wireless headset in detecting the wearing state. In addition, an upper limit condition for calibrating the current calibration value is set. Only when the difference between the preset calibration value and the current calibration value is less than the third threshold value, the current calibration value is calibrated according to the difference between the detection value and the current calibration value, avoiding the misadjustment of the current calibration value, that is, avoiding the miscalibration of the state threshold.

[0107] See also Fig. 9 , Fig. 9 FIG. 1 is a flow chart of a calibration method for state detection provided by yet another embodiment of the present application. The calibration method for state detection is applied to the above-mentioned wireless headset. Fig. 9 The process shown is described in detail, and the calibration method of the state detection may specifically include the following steps:

[0108] Step S610: Determine a detection value of the wearing detection module when the wireless headset is out of the box and not worn.

[0109] In the embodiment of the present application, step S610 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0110] Step S620: when it is detected that the wireless headset is in the in-box state, determine the state value of the wireless headset in the in-box state according to the data detected by the wearing detection module when the wireless headset is in the in-box state.

[0111] In an embodiment of the present application, the wireless headset can perform a calibration process for the state threshold when it is detected that it is in the in-box state. The wireless headset determines the detection value when the wireless headset is in the out-of-box state and not worn based on the data detected by the wearing detection module. The detection value when the wireless headset is in the out-of-box state and not worn before the in-box state is detected this time can be determined based on the data detected by the wearing detection module when the wireless headset is in the out-of-box state before the in-box state is detected this time. Therefore, after obtaining the detection value, the subsequent calibration process is performed when it is in the in-box state, so that each time the wireless headset is in the in-box state, the current calibration value is adjusted according to the difference between the detection value and the current calibration value, and the state threshold is calibrated subsequently.

[0112] In an embodiment of the present application, when it is detected that the wireless headset is in the box, before adjusting the current calibration value based on the difference between the detection value and the current calibration value, the state value of the wireless headset when it is in the box can also be obtained to determine the validity of the detection value obtained when the wireless headset is outside the box and not worn based on the state value.

[0113] In some embodiments, after the wireless headset detects that it is in the box state, it can obtain data detected by the wearing detection module within a preset time period, and obtain the average value of these data as the state value of the wireless headset when it is in the box state.

[0114] Step S630: Determine whether the ratio of the detection value to the state value is less than a preset ratio.

[0115] Wherein, the preset ratio is less than 1.

[0116] Step S640: If the ratio of the detection value to the state value is greater than or equal to a preset ratio, the current calibration value is not adjusted.

[0117] Step S650: If the ratio of the detection value to the state value is less than a preset ratio, the current calibration value is adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold.

[0118] Step S660: Calibrate the state threshold according to the adjusted current calibration value.

[0119] In the embodiment of the present application, step S660 can refer to the contents of the aforementioned embodiment and will not be repeated here.

[0120] In the embodiment of the present application, after the wireless headset obtains the above detection value and state value, it can obtain the ratio of the detection value to the state value, and determine whether the ratio is less than the preset ratio, and the preset ratio is less than 1. It can be understood that when the wireless headset is usually in the box state, the data value detected by the wearing detection module will be greater than the data value when the wireless headset is out of the box and not worn, so it is determined whether the ratio is less than the preset ratio, and the validity of the above detection value is determined according to the judgment result. If the ratio is less than the preset ratio, it means that the detection value is valid, so the current calibration value can be adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold; and when the ratio is greater than or equal to the preset ratio, it means that the detection value is invalid, so the current calibration value is not adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold. Among them, the specific value of the preset ratio can be not limited, for example, the preset ratio can be 0.5, etc.

[0121] The calibration method for state detection provided in the embodiment of the present application can enable the state threshold to be calibrated according to the variable current calibration value, and the current calibration value is determined according to the above detection value that can reflect the hardware performance of the wireless headset. Therefore, after the wireless headset leaves the factory, it can dynamically calibrate the state threshold according to the change of hardware performance, thereby improving the accuracy of the wireless headset detecting the wearing state. In addition, by executing the calibration process when it is detected that the wireless headset is in the box state, it is possible to calibrate each time the wireless headset is in the box state, thereby improving the accuracy of wearing detection. Moreover, the validity of the above detection value is determined based on the state value detected by the wearing detection module when the headset is in the box state. When the validity is determined to be passed, the current calibration value is adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold, thereby avoiding the occurrence of miscalibration.

[0122] See also Fig.10 , Fig.10 The flowchart of the calibration method of state detection provided by yet another embodiment of the present application is shown, and the calibration method of state detection is applied to the above wireless headset. The calibration method of state detection provided by the embodiment of the present application is a combination of the implementation methods provided by the above multiple embodiments. Fig.10 The process shown is described in detail, and the calibration method of the state detection may specifically include the following steps:

[0123] Step S701: determining a detection value of the wearing detection module when the wireless headset is out of the box and not worn.

[0124] Step S702: when it is detected that the wireless headset is in the box state, determine the state value of the wireless headset in the box state according to the data detected by the wearing detection module when the wireless headset is in the box state.

[0125] Step S703: Determine whether the ratio of the detection value to the state value is less than a preset ratio.

[0126] Wherein, the preset ratio is less than 1;

[0127] If the ratio of the detection value to the state value is greater than or equal to the preset ratio, step S704 is executed: the process ends.

[0128] Step S705: If the ratio of the detection value to the state value is less than a preset ratio, determine whether the difference between the detection value and the current calibration value corresponding to the state threshold is greater than a second threshold.

[0129] If it is less than or equal to the second threshold, execute step S704: end the process.

[0130] Step S706: If it is greater than the second threshold, determine whether the difference between the preset calibration value and the current calibration value is less than a third threshold.

[0131] The preset calibration value is a calibration value set when the wireless headset leaves the factory and is used to calibrate the state threshold.

[0132] If it is greater than or equal to the third threshold, execute step S704: end the process.

[0133] Step S707: If it is less than the third threshold, determine whether the number of historical adjustments to the current calibration value is less than the number threshold.

[0134] Step S708: If the number of historical adjustments is greater than or equal to the number threshold, the current calibration value is adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold.

[0135] Step S709: If the historical adjustment times are less than the times threshold, the current calibration value is adjusted to the detection value.

[0136] See also Fig.11 , which shows a structural block diagram of a state detection calibration device 400 provided in an embodiment of the present application. The state detection calibration device 400 applies the above-mentioned wireless headset, and the wireless headset includes a wearing detection module, and the wearing state of the wireless headset is determined according to the wearing data detected by the wearing detection module and the state threshold. The state detection calibration device 400 includes: a detection value determination module 410, a calibration value adjustment module 420 and a threshold calibration module 430. Among them, the detection value determination module 410 is used to determine the detection value of the wearing detection module when the wireless headset is out of the box and not worn; the calibration value adjustment module 420 is used to adjust the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold; the threshold calibration module 430 is used to calibrate the state threshold according to the adjusted current calibration value.

[0137] In some embodiments, the calibration value adjustment module 420 can be specifically used to: obtain the difference between the detection value and the current calibration value as a first difference; determine an adjustment operation for the current calibration value based on the first difference, the adjustment operation including a first adjustment to increase the current calibration value and a second adjustment to decrease the current calibration value; perform the first adjustment or the second adjustment on the current calibration value according to the first difference.

[0138] In a possible implementation, the calibration value adjustment module 420 performs the first adjustment or the second adjustment on the current calibration value according to the first difference, including: obtaining the difference between a preset calibration value and the current calibration value as the second difference, the preset calibration value being the calibration value set when the wireless headset leaves the factory for calibrating the state threshold; based on the second difference, determining an adjustment ratio corresponding to the adjustment operation; based on the adjustment ratio and the first difference, performing the first adjustment or the second adjustment on the current calibration value.

[0139] In a possible implementation, the calibration value adjustment module 420 performs the first adjustment or the second adjustment on the current calibration value based on the adjustment ratio and the first difference, including: obtaining the product of the first difference and the adjustment ratio; obtaining the sum of the current calibration value and the product to obtain the adjusted current calibration value.

[0140] In a possible implementation, the calibration value adjustment module 420 determines an adjustment ratio corresponding to the adjustment operation based on the second difference, including: if the absolute value of the second difference is less than a first threshold, determining the adjustment ratio corresponding to the adjustment operation as a first preset ratio, wherein the first preset ratio corresponding to the first adjustment is a first ratio, the first preset ratio corresponding to the second adjustment is a second ratio, and the first ratio and the second ratio are both less than 1; if the absolute value is greater than or equal to the first threshold and the second difference is a positive value, determining the adjustment ratio as a second preset ratio, wherein the second preset ratio corresponding to the first adjustment is greater than the first ratio, and the second preset ratio corresponding to the second adjustment is less than the second ratio; if the absolute value is greater than or equal to the first threshold and the second difference is a negative value, determining the adjustment ratio as a third preset ratio, wherein the third preset ratio corresponding to the first adjustment is less than the first ratio, and the third preset ratio corresponding to the second adjustment is greater than the second ratio.

[0141] In one possible implementation, the calibration value adjustment module 420 determines an adjustment operation on the current calibration value based on the first difference, including: if the first difference is greater than 0, determining that the adjustment operation on the current calibration value is a first adjustment to increase the current calibration value; if the first difference is less than 0, determining that the adjustment operation on the current calibration value is a second adjustment to decrease the current calibration value.

[0142] In some embodiments, the state detection calibration device 400 may further include a first judgment module. The first judgment module is used to judge whether the number of historical adjustments to the current calibration value is less than a number threshold; if the number of historical adjustments is greater than or equal to the number threshold, the calibration value adjustment module 420 adjusts the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold.

[0143] In a possible implementation manner, the calibration value adjustment module 420 is further configured to adjust the current calibration value to the detection value if the number of historical adjustments is less than the number threshold.

[0144] In some embodiments, the calibration value adjustment module 420 can be specifically used to: determine whether the difference between the detection value and the current calibration value corresponding to the state threshold is greater than a second threshold; if greater than the second threshold, adjust the current calibration value according to the difference.

[0145] In some embodiments, the state detection calibration device 400 may further include a second judgment module. The second judgment module is used to judge whether the difference between the preset calibration value and the current calibration value is less than a third threshold value, and the preset calibration value is a calibration value set by the wireless headset when it leaves the factory for calibrating the state threshold value; if it is less than the third threshold value, the calibration value adjustment module 420 adjusts the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold value.

[0146] In some embodiments, the detection value determination module 410 can be specifically used to: obtain data detected by the wearing detection module during the period when the wireless headset is in an out-of-box state, the data detected by the wearing detection module includes data sampled and detected by the wearing detection module M times in a row, where M is a positive integer; obtain the minimum value of the data sampled and detected M times in a row as the detection value of the wearing detection module when the wireless headset is in an out-of-box state and is not worn.

[0147] In some embodiments, the calibration value adjustment module 420 may be used to: when detecting that the wireless headset is in the in-box state, adjust the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold. The state detection calibration device 400 may also include a state value acquisition module, which is used to determine the state value of the wireless headset when it is in the in-box state according to the data detected by the wearing detection module when the wireless headset is in the in-box state; if the ratio of the detection value to the state value is less than a preset ratio, the calibration value adjustment module 420 performs the adjustment of the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold, wherein the preset ratio is less than 1.

[0148] In some implementations, the threshold calibration module 430 may be specifically configured to: obtain a sum of the current calibration value and the state threshold to obtain a calibrated state threshold.

[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0150] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0151] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0152] To summarize, in the solution provided by the present application, the wearing status of the wireless headset is determined based on the wearing data detected by the wearing detection module and the status threshold. The wireless headset determines the detection value of the wearing detection module when the wireless headset is out of the box and not worn, and adjusts the current calibration value according to the difference between the detection value and the current calibration value corresponding to the status threshold. Then, the status threshold is calibrated according to the adjusted current calibration value. In this way, the status threshold can be calibrated according to the data detected by the wearing detection module during the use of the wireless headset, thereby improving the accuracy of the wireless headset in detecting the wearing status.

[0153] Please refer to Fig.12 , which shows a block diagram of a wireless headset provided in an embodiment of the present application. The wireless headset 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a wearing detection module 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0154] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect the various parts of the entire wireless headset 100, and executes various functions and processes data of the wireless headset 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0155] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the wireless headset 100 during use.

[0156] The wearing detection module 130 is used to detect the wearing state data of the wireless headset, so as to determine the wearing state of the wireless headset according to the detected data. The wearing detection module 130 can be an infrared sensor, a touch sensor, a pressure sensor, etc., and the specific type of the wearing detection module 130 is not limited.

[0157] Please refer to Fig.13 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0158] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.

[0159] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A calibration method for state detection, characterized in that: Applied to a wireless headset, the wireless headset includes a wearing detection module, the wearing state of the wireless headset is determined according to wearing data detected by the wearing detection module and a state threshold, and the method includes: Determine a detection value of the wearing detection module when the wireless headset is out of the box and not worn; adjusting the current calibration value according to a difference between the detection value and a current calibration value corresponding to the state threshold, wherein the current calibration value is a calibration value currently stored by the wireless headset and used to calibrate the state threshold; The state threshold is calibrated according to the adjusted current calibration value.

2. The method according to claim 1, characterized in that The adjusting the current calibration value according to the difference between the detection value and the current calibration value comprises: Acquire a difference between the detection value and the current calibration value as a first difference; determining an adjustment operation on the current calibration value based on the first difference, the adjustment operation comprising a first adjustment to increase the current calibration value and a second adjustment to decrease the current calibration value; The first adjustment or the second adjustment is performed on the current calibration value according to the first difference.

3. The method according to claim 2, characterized in that The performing the first adjustment or the second adjustment on the current calibration value according to the first difference includes: Acquire a difference between a preset calibration value and the current calibration value as a second difference, wherein the preset calibration value is a calibration value set by the wireless headset when it leaves the factory and used to calibrate the state threshold; Based on the second difference, determining an adjustment ratio corresponding to the adjustment operation; Based on the adjustment ratio and the first difference, the first adjustment or the second adjustment is performed on the current calibration value.

4. The method according to claim 3, characterized in that The performing the first adjustment or the second adjustment on the current calibration value based on the adjustment ratio and the first difference includes: Obtaining a product of the first difference and the adjustment ratio; The sum of the current calibration value and the product is obtained to obtain an adjusted current calibration value.

5. The method according to claim 3, characterized in that: The determining, based on the second difference, an adjustment ratio corresponding to the adjustment operation includes: If the absolute value of the second difference is less than the first threshold, determining the adjustment ratio corresponding to the adjustment operation as the first preset ratio, wherein the first preset ratio corresponding to the first adjustment is the first ratio, the first preset ratio corresponding to the second adjustment is the second ratio, and the first ratio and the second ratio are both less than 1; If the absolute value is greater than or equal to the first threshold value, and the second difference is a positive value, the adjustment ratio is determined to be a second preset ratio, wherein the second preset ratio corresponding to the first adjustment is greater than the first ratio, and the second preset ratio corresponding to the second adjustment is less than the second ratio; If the absolute value is greater than or equal to the first threshold and the second difference is a negative value, the adjustment ratio is determined to be a third preset ratio, wherein the third preset ratio corresponding to the first adjustment is smaller than the first ratio, and the third preset ratio corresponding to the second adjustment is larger than the second ratio.

6. The method according to claim 2, characterized in that The determining an adjustment operation of the current calibration value based on the first difference value comprises: If the first difference is greater than 0, determining that the adjustment operation on the current calibration value is a first adjustment to increase the current calibration value; If the first difference is less than 0, it is determined that the adjustment operation on the current calibration value is a second adjustment to reduce the current calibration value.

7. The method according to any one of claims 1 to 6, characterized in that: Before adjusting the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold, the method further includes: Determining whether the number of historical adjustments to the current calibration value is less than a number threshold; If the number of historical adjustments is greater than or equal to the number threshold, the current calibration value is adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold.

8. The method according to claim 7, characterized in that After determining whether the number of historical adjustments to the current calibration value is less than a number threshold, the method further includes: If the historical adjustment times are less than the times threshold, the current calibration value is adjusted to the detection value.

9. The method according to any one of claims 1 to 6, characterized in that: The adjusting the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold value includes: determining whether a difference between the detection value and a current calibration value corresponding to the state threshold is greater than a second threshold; If it is greater than a second threshold, the current calibration value is adjusted according to the difference.

10. The method according to any one of claims 1 to 6, characterized in that: Before adjusting the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold, the method further includes: Determine whether a difference between a preset calibration value and the current calibration value is less than a third threshold, wherein the preset calibration value is a calibration value set when the wireless headset leaves the factory and is used to calibrate the state threshold; If it is less than a third threshold, the current calibration value is adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold.

11. The method according to any one of claims 1 to 6, characterized in that: The determining of the detection value of the wearing detection module when the wireless headset is out of the box and not worn includes: Acquire data detected by the wearing detection module during the period when the wireless headset is in an out-of-box state, wherein the data detected by the wearing detection module includes data sampled and detected by the wearing detection module M times continuously, where M is a positive integer; The minimum value of the data detected by the continuous M sampling times is obtained as the detection value of the wearing detection module when the wireless headset is out of the box and not worn.

12. The method according to any one of claims 1 to 6, characterized in that: The adjusting the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold value includes: When it is detected that the wireless headset is in the in-box state, adjusting the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold; Before adjusting the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold, the method further includes: Determine the state value of the wireless headset when it is in the box state according to the data detected by the wearing detection module when the wireless headset is in the box state; If the ratio of the detection value to the state value is less than a preset ratio, the current calibration value is adjusted according to the difference between the detection value and the current calibration value corresponding to the state threshold, wherein the preset ratio is less than 1.

13. The method according to any one of claims 1 to 6, characterized in that: The step of calibrating the state threshold according to the adjusted current calibration value includes: The sum of the current calibration value and the state threshold is obtained to obtain the calibrated state threshold.

14. A state detection calibration device, characterized in that: Applied to a wireless headset, the wireless headset includes a wearing detection module, the wearing state of the wireless headset is determined according to the wearing data detected by the wearing detection module and a state threshold, the device includes: a detection value determination module, a calibration value adjustment module and a threshold calibration module, wherein: The detection value determination module is used to determine the detection value of the wearing detection module when the wireless headset is out of the box and not worn; The calibration value adjustment module is used to adjust the current calibration value according to the difference between the detection value and the current calibration value corresponding to the state threshold, and the current calibration value is the calibration value currently stored by the wireless headset for calibrating the state threshold; The threshold calibration module is used to calibrate the state threshold according to the adjusted current calibration value.

15. A wireless headset, characterized in that: include: Wearing detection module; one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-13.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Proximity sensor calibration method and device for wireless earphone, earphone and storage medium

    CN112630861A