Method and device for calibrating proximity sensor of wireless earphone, earphone and storage medium

文档序号:780640 发布日期:2021-04-09 浏览:17次 中文

阅读说明:本技术 无线耳机的接近传感器校准方法、装置、耳机及存储介质 (Method and device for calibrating proximity sensor of wireless earphone, earphone and storage medium ) 是由 吴忠裕 戴伟 胡维超 陈浩 张文祥 李凯 赵亚军 黄为为 于 2020-12-14 设计创作,主要内容包括:本公开提供一种无线耳机的接近传感器校准方法、装置、耳机及存储介质,所述方法包括:响应于确定无线耳机位于充电盒中,获取所述接近传感器的当前检测值;根据所述当前检测值对所述接近传感器的检测阈值进行校准;所述检测阈值用于确定所述无线耳机是否被佩戴。本实施例实现对所述接近传感器的检测阈值进行校准,从而有利于提高无线耳机基于接近传感器的佩戴检测的准确率。(The present disclosure provides a method and an apparatus for calibrating a proximity sensor of a wireless headset, a headset and a storage medium, wherein the method comprises: in response to determining that a wireless headset is located in a charging box, obtaining a current detection value of the proximity sensor; calibrating a detection threshold value of the proximity sensor according to the current detection value; the detection threshold is used to determine whether the wireless headset is worn. According to the embodiment, the detection threshold value of the proximity sensor is calibrated, so that the accuracy of wearing detection of the wireless earphone based on the proximity sensor is improved.)

1. A method of calibrating a proximity sensor of a wireless headset, the method comprising:

in response to determining that the wireless headset is located in a charging box, obtaining a current detection value of the proximity sensor;

calibrating a detection threshold value of the proximity sensor according to the current detection value; the detection threshold is used to determine whether the wireless headset is worn.

2. The method of claim 1, wherein calibrating the detection threshold of the proximity sensor based on the current detection value comprises:

calibrating a detection threshold of the proximity sensor according to a difference between the current detection value and a reference detection value of the proximity sensor.

3. The method of claim 2, wherein the reference detection value comprises any one of:

a value detected by the proximity sensor when the wireless headset is located in a charging box before the wireless headset leaves a factory;

alternatively, the proximity sensor may detect a value last time the wireless headset was located in a charging box.

4. The method according to any one of claims 1 to 3, characterized in that the detection threshold of the proximity sensor is determined by at least one threshold parameter;

the calibrating the detection threshold of the proximity sensor according to the current detection value includes:

calibrating the at least one threshold parameter based on a difference between the current detection value and the reference detection value;

determining a detection threshold of the proximity sensor using the calibrated at least one threshold parameter.

5. The method of claim 4, wherein the threshold parameter comprises at least one of:

a value detected by the proximity sensor toward a designated object; alternatively, the first and second electrodes may be,

a value detected by the proximity sensor in a direction toward a direction without an obstruction.

6. The method of claim 4 or 5, wherein calibrating the at least one threshold parameter based on the difference between the current detection value and the reference detection value comprises:

obtaining an error value according to a difference value between the current detection value and the reference detection value;

and calibrating the at least one threshold parameter based on the error value, and acquiring the calibrated at least one threshold parameter.

7. The method of any one of claims 1 to 6, further comprising:

determining that the wireless headset is located in a charging box in the event that the wireless headset is detected to be in a charging state.

8. The method of any of claims 1-7, wherein obtaining the current detection value of the proximity sensor in response to determining that the wireless headset is located in a charging box comprises:

in response to determining that the wireless headset is located in a charging box and the charging box is in an off state, obtaining a current detection value of the proximity sensor.

9. A proximity sensor calibration apparatus for a wireless headset, the apparatus comprising:

a current detection value acquisition module for acquiring a current detection value of the proximity sensor in response to determining that the wireless headset is located in a charging box;

the detection threshold calibration module is used for calibrating the detection threshold of the proximity sensor according to the current detection value; the detection threshold is used to determine whether the wireless headset is worn.

10. The apparatus of claim 9, wherein the detection threshold calibration module is specifically configured to: calibrating a detection threshold of the proximity sensor according to a difference between the current detection value and a reference detection value of the proximity sensor.

11. The device according to claim 9 or 10, characterized in that the detection threshold of the proximity sensor is determined by at least one threshold parameter;

the detection threshold calibration module comprises:

a threshold parameter calibration unit for calibrating the at least one threshold parameter according to a difference between the current detection value and the reference detection value;

a detection threshold determination unit for determining a detection threshold of the proximity sensor using the calibrated at least one threshold parameter.

12. The apparatus according to claim 11, wherein the threshold parameter calibration unit is specifically configured to:

obtaining an error value according to a difference value between the current detection value and the reference detection value;

and calibrating the at least one threshold parameter based on the error value, and acquiring the calibrated at least one threshold parameter.

13. A wireless headset comprising a proximity sensor and a processor;

the proximity sensor is used for responding to the fact that the wireless earphone is located in the charging box, and obtaining a current detection value and feeding the current detection value back to the processor;

the processor is configured to implement the method of any one of claims 1 to 8.

14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 8.

Technical Field

The present disclosure relates to the field of sensor calibration technologies, and in particular, to a method and an apparatus for calibrating a proximity sensor of a wireless headset, a system, and a storage medium.

Background

With the development of science and technology and the improvement of the living standard of people, the wireless earphone gradually becomes an essential electronic product. The occupancy rate of TWS (true Wireless stereo) headphones in the headphone market is gradually increasing due to the excellent characteristics of more comfortable wearing, convenient use, low attractiveness, smaller size, more beautiful appearance, and the like.

In the related art, the wireless headset mainly uses a proximity sensor to determine whether the wireless headset is worn. However, as the wireless headset is used, the lens of the proximity sensor may gradually wear, scratch, or stain, resulting in a decrease in the accuracy of the wearing detection of the wireless headset based on the proximity sensor.

Disclosure of Invention

The disclosure provides a method and a device for calibrating a proximity sensor of a wireless headset, the headset and a storage medium.

According to a first aspect of embodiments of the present disclosure, there is provided a method of calibrating a proximity sensor of a wireless headset,

the method comprises the following steps:

in response to determining that the wireless headset is located in a charging box, obtaining a current detection value of the proximity sensor;

calibrating a detection threshold value of the proximity sensor according to the current detection value; the detection threshold is used to determine whether the wireless headset is worn.

Optionally, the calibrating the detection threshold of the proximity sensor according to the current detection value includes:

calibrating a detection threshold of the proximity sensor according to a difference between the current detection value and a reference detection value of the proximity sensor.

Optionally, the reference detection value comprises any one of: a value detected by the proximity sensor when the wireless headset is located in a charging box before the wireless headset leaves a factory; alternatively, the proximity sensor may detect a value last time the wireless headset was located in a charging box.

Optionally, the detection threshold of the proximity sensor is determined by at least one threshold parameter;

the calibrating the detection threshold of the proximity sensor according to the current detection value includes:

calibrating the at least one threshold parameter based on a difference between the current detection value and the reference detection value;

determining a detection threshold of the proximity sensor using the calibrated at least one threshold parameter.

Optionally, the threshold parameter comprises at least one of: a value detected by the proximity sensor toward a designated object; alternatively, the proximity sensor detects a value in a direction toward a direction without an obstruction.

Optionally, the calibrating the at least one threshold parameter includes:

obtaining an error value according to a difference value between the current detection value and the reference detection value;

and calibrating the at least one threshold parameter based on the error value, and acquiring the calibrated at least one threshold parameter.

Optionally, the method further comprises:

determining that the wireless headset is located in a charging box in the event that the wireless headset is detected to be in a charging state.

Optionally, the obtaining a current detection value of the proximity sensor in response to determining that the wireless headset is located in a charging box comprises:

in response to determining that the wireless headset is located in a charging box and the charging box is in an off state, obtaining a current detection value of the proximity sensor.

According to a second aspect of embodiments of the present disclosure, there is provided a proximity sensor calibration apparatus of a wireless headset, the apparatus comprising:

a current detection value acquisition module for acquiring a current detection value of the proximity sensor in response to determining that the wireless headset is located in a charging box;

the detection threshold calibration module is used for calibrating the detection threshold of the proximity sensor according to the current detection value; the detection threshold is used to determine whether the wireless headset is worn.

Optionally, the detection threshold calibration module is specifically configured to: calibrating a detection threshold of the proximity sensor according to a difference between the current detection value and a reference detection value of the proximity sensor.

Optionally, the detection threshold of the proximity sensor is determined by at least one threshold parameter;

the detection threshold calibration module comprises:

a threshold parameter calibration unit for calibrating the at least one threshold parameter according to a difference between the current detection value and the reference detection value;

a detection threshold determination unit for determining a detection threshold of the proximity sensor using the calibrated at least one threshold parameter.

Optionally, the threshold parameter calibration unit is specifically configured to:

obtaining an error value according to a difference value between the current detection value and the reference detection value;

and calibrating the at least one threshold parameter based on the error value, and acquiring the calibrated at least one threshold parameter.

According to a third aspect of embodiments of the present disclosure, there is provided a wireless headset comprising a proximity sensor and a processor;

the proximity sensor is used for responding to the fact that the wireless earphone is located in the charging box, and obtaining a current detection value and feeding the current detection value back to the processor;

the processor is configured to implement the method of any one of the first aspect.

According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of any of the methods described above.

In the embodiment of the disclosure, in consideration of the problem that the lens of the proximity sensor will be gradually worn, scratched or stained along with the use of the wireless headset, in the use process of the wireless headset, under the condition that the wireless headset is located in the charging box, the current detection value is obtained through the proximity sensor of the wireless headset and is used for calibrating the detection threshold value of the proximity sensor, so that the calibrated detection threshold value of the proximity sensor can be adapted to the lens of the proximity sensor, and the accuracy of wearing detection of the wireless headset based on the proximity sensor is improved.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.

Fig. 1 is a schematic diagram illustrating a wear detection according to an exemplary embodiment of the present disclosure.

Fig. 2 is a flow chart diagram illustrating a method of calibrating a proximity sensor according to an exemplary embodiment of the present disclosure.

Fig. 3 and 4 are schematic diagrams illustrating different mounting locations of a proximity sensor on a wireless headset according to an exemplary embodiment of the present disclosure.

Fig. 5 is a schematic diagram illustrating a wireless headset according to an exemplary embodiment of the present disclosure placed in a charging box with the charging box in a closed state.

FIG. 6 is a schematic diagram illustrating the acquisition of a first reference detection value according to an exemplary embodiment of the present disclosure.

FIG. 7 is a schematic diagram illustrating the acquisition of a second reference detection value according to an exemplary embodiment of the present disclosure.

Fig. 8 is a block diagram illustrating a calibration apparatus for a proximity sensor according to an exemplary embodiment of the present disclosure.

Fig. 9 is a block diagram of a wireless headset shown in accordance with an exemplary embodiment of the present disclosure.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.

In the related art, the wireless headset mainly uses a proximity sensor to determine whether the wireless headset is worn. A detection threshold is typically included in the wireless headset; when wearing detection is carried out, the proximity sensor acquires a current detection value, and then whether the wireless earphone is worn or not is determined through comparison between the current detection value and the detection threshold value; in one example, referring to fig. 1, the proximity sensor of the wireless headset includes two detection thresholds, namely a proximity threshold x and a distance threshold y, and assuming that the current reading value (i.e. the current detection value) of the proximity sensor is z, when z > x, the wireless headset is determined to be worn, and when z < y, the wireless headset is determined to be not worn.

Wherein the detection threshold is generally calibrated and recorded based on a lens of an unworn proximity sensor before the wireless headset leaves a factory; however, as the wireless headset is used, the lens of the proximity sensor may gradually wear, scratch or stain, which may result in a decrease in the accuracy of the wearing detection of the wireless headset based on the proximity sensor if it is still determined whether the wireless headset is worn based on the detection threshold.

Based on this, the embodiment of the present disclosure provides a method for calibrating a proximity sensor of a wireless headset, which considers the problem that a lens of the proximity sensor will gradually wear, scratch or stain along with the use of the wireless headset, and obtains a current detection value through the proximity sensor of the wireless headset when the wireless headset is located in a charging box during the use of the wireless headset, and calibrates a detection threshold of the proximity sensor, so that the calibrated detection threshold of the proximity sensor can be adapted to the lens of the proximity sensor, thereby being beneficial to improving the accuracy of the wearing detection of the wireless headset based on the proximity sensor.

The proximity sensor may be an optoelectronic proximity sensor, for example, an infrared proximity sensor, or the like, or may be another type of sensor. The proximity sensor is mounted on the wireless headset, in one example, the proximity sensor may be disposed on a head of the wireless headset, and the head of the wireless headset is in contact with a cochlea of a human body during normal wearing. Of course, the proximity sensor may be disposed in other positions, which is not limited in this disclosure.

In an exemplary embodiment, the method of calibrating a proximity sensor of a wireless headset may be performed by the wireless headset, for example, by a processor or other component of the wireless headset, and when the wireless headset is located in a charging box, the wireless headset may obtain a current detection value of the proximity sensor and then calibrate a detection threshold of the proximity sensor according to the current detection value; and then in the wearing detection process, the proximity sensor compares the calibrated detection threshold value with the detection value acquired in real time to judge whether the wireless earphone is worn.

Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a method for calibrating a proximity sensor of a wireless headset according to an embodiment of the present disclosure, where the method includes:

in step S101, in response to determining that the wireless headset is located in a charging box, a current detection value of the proximity sensor is acquired.

In step S102, calibrating a detection threshold of the proximity sensor according to the current detection value; the detection threshold is used to determine whether the wireless headset is worn.

First, a process of determining that the wireless headset is located in the charging box will be described: the wireless headset may determine that it is in the charging box if it detects that it is in a charging state. Of course, the charging box may detect whether the wireless headset is in a charging state, and feed back a detection result to the wireless headset, so that the wireless headset can determine whether the wireless headset is in the charging box.

Of course, other types of sensors may be used to detect whether the wireless headset is located in the charging box; as an example, for example, a proximity sensor may be installed in the charging box, and the proximity sensor may be used to detect whether the wireless headset is located in the charging box; for example, the charging box is provided with a hall sensor, the wireless headset is provided with a magnet element, the closer the magnet element is to the hall sensor, the larger the hall voltage value detected by the hall sensor, and conversely, the farther the magnet element is from the hall sensor, the smaller the hall voltage value detected by the hall sensor, the charging box can determine whether the wireless headset is located in the charging box through the combination of the hall sensor and the magnet element, but the invention is not limited thereto.

It can be understood that, the calibration timing of the proximity sensor is not limited in any way in the embodiments of the present disclosure, and may be specifically set according to an actual application scenario. In an example, when the computing resources are sufficient, the wireless headset may perform a subsequent calibration step each time the wireless headset is placed in the charging box, in response to determining that the wireless headset is located in the charging box, obtaining the current detection value of the proximity sensor, thereby facilitating to ensure the accuracy of the detection threshold of the proximity sensor and improve the accuracy of the wearing detection of the wireless headset based on the proximity sensor. In another example, in the case of insufficient computing resources, in order to save computing resources, the calibration process of the proximity sensor may be performed only when a preset time period is reached, or the calibration process of the proximity sensor may be performed under the condition that other trigger conditions are met, so that the accuracy of the wearing detection of the wireless headset based on the proximity sensor is improved to some extent.

In some embodiments, the proximity sensor may be mounted on the head of the headset, which is the location of contact with the cochlea of a human being during normal wear.

In some embodiments of the present disclosure, a current detection value used for calibrating the detection threshold of the proximity sensor indicates a distance between the wireless headset and the charging box detected by the proximity sensor after the wireless headset is placed in the charging box, and the obtained current detection value is used for calibration. Referring to fig. 3, if the proximity sensor 11 is installed at the position shown in fig. 3, after the wireless headset 10 is placed in the charging box 20, the detection value obtained by the proximity sensor 11 indicates the distance between the wireless headset 10 and the charging box 20, in this case, the distance between the proximity sensor and the charging box is fixed, so that the current detection value read by the proximity sensor can be used for calibration; however, referring to fig. 4, if the proximity sensor 11 is installed at the position as described in fig. 4, after the wireless headset 10 is placed in the charging box 20, if the charging box 20 is not in the closed state, in which case the distance between the proximity sensor and the charging box is not fixed, the current detection value acquired by the proximity sensor 11 may not accurately indicate the distance between the wireless headset 10 and the charging box 20, so the detection threshold of the proximity sensor 11 cannot be calibrated with the current detection value of the proximity sensor.

Therefore, in order to further ensure the accuracy of the detection threshold of the proximity sensor after calibration, it is necessary to ensure that the current detection value of the proximity sensor obtained with the distance from the proximity sensor to the charging box fixed is obtained at the time of calibration; in some possible implementations, the wireless headset may acquire the current detection value of the proximity sensor when the wireless headset is located in a charging box and the charging box is in an off state. The wireless earphone is located in the charging box, the charging box is determined to be in a closed state, accuracy of the current detection value obtained under the condition that the distance between the proximity sensor and the charging box is fixed is guaranteed, and the wireless earphone can be calibrated by the current detection value. That is to say, the wireless headset can acquire the current detection value of the proximity sensor for performing the subsequent calibration process when the wireless headset is detected to be located in the charging box and the charging box is in the closed state, so that the accuracy of wearing detection based on the proximity sensor is improved.

The process of determining the closed state of the charging box is explained here: referring to fig. 5, the charging box 20 includes a box body 21 and a box cover 22, wherein the box body is configured to be fitted with a capacitor (not shown), the box cover is configured to be fitted with a copper product (not shown), the closer the copper product is to the capacitor, the larger the capacitance value detected by the capacitor is, and the farther the copper product is from the capacitor, the smaller the capacitance value detected by the capacitor is. The charging box may acquire a capacitance value detected by the capacitor, and determine that the charging box is in an off state if the capacitance value is greater than a preset value. The preset value may be specifically set according to an actual application scenario, and this embodiment does not limit this.

Of course, other manners may also be used to determine whether the charging box is in a closed state, for example, the charging box is provided with a hall sensor, the wireless headset is provided with a magnet element, the closer the magnet element is to the hall sensor, the larger the hall voltage value detected by the hall sensor, and the charging box may determine whether the charging box is closed through a combination of the hall sensor and the magnet element.

Referring to fig. 5, when it is determined that the wireless headset 10 is located in the charging box 20 and the charging box 20 is in the closed state, the wireless headset 10 may acquire a current detection value of the proximity sensor 11, and then calibrate a detection threshold of the proximity sensor 11 according to the current detection value; considering that the distance between the wireless headset and the charging box is usually a relatively fixed distance, the obtained current detection value can calibrate the detection threshold value of the proximity sensor, so that the calibrated detection threshold value of the proximity sensor can be adapted to the lens of the proximity sensor, thereby being beneficial to improving the accuracy of wearing detection of the wireless headset based on the proximity sensor.

The method for calibrating the detection threshold of the proximity sensor according to the current detection value may include at least two possible implementations: in a first possible implementation manner, an original detection threshold of the proximity sensor may be adjusted according to the current detection value; in a second possible implementation, the detection threshold of the proximity sensor may be re-determined according to the current detection value. The specific setting can be performed according to the actual application scenario, and this embodiment does not limit this.

In some embodiments, the wireless headset may calibrate the detection threshold of the proximity sensor based on a difference between the current detection value and a reference detection value of the proximity sensor when calibrating the detection threshold of the proximity sensor based on the detection value. The difference between the current detection value and the reference detection value represents the detection difference caused by the abrasion, scratch or contamination of the lens of the proximity sensor, and the detection threshold value of the proximity sensor is calibrated according to the difference between the current detection value and the reference detection value, so that the calibrated detection threshold value can be adapted to the lens of the proximity sensor, and the accuracy of the wearing detection of the wireless earphone based on the proximity sensor is improved.

In some embodiments, the reference detection value may be a value detected by the proximity sensor when the wireless headset is located in a charging box before the wireless headset leaves a factory, and the wireless headset may adjust an initial detection threshold obtained by the proximity sensor before leaving the factory according to a difference between the current detection value and the reference detection value of the proximity sensor. In other embodiments, the reference detection value may also be a value detected by the proximity sensor when the wireless headset was located in the charging box last time, and the wireless headset may adjust the detection threshold obtained by the proximity sensor last time according to a difference between the current detection value and the reference detection value of the proximity sensor. The detection threshold obtained last time is adjusted, so that the influence on user experience caused by overlarge change of the calibrated detection threshold can be avoided.

In a possible implementation manner, the wireless headset may obtain an error value according to a difference between the current detection value and the reference detection value, and then adjust the detection threshold of the proximity sensor according to the error value.

Wherein the error value represents a detection difference caused after a lens of the proximity sensor is worn, scratched, or stained, and may be a difference value between the current detection value and the reference detection value; alternatively, the error value may be a product of the difference value and a preset coefficient, where the preset coefficient is determined according to an attribute of the proximity sensor (the attribute may be a type, a size, or the like of the proximity sensor), and coefficients corresponding to different attributes are different; alternatively, the error value may be determined in other manners, which is not limited in this embodiment.

The detection threshold of the proximity sensor described herein may be an initial detection threshold of the proximity sensor, for example, a detection threshold determined before factory shipment, or a detection threshold determined in a last calibration process of the proximity sensor, which is not limited in this disclosure.

In another possible implementation manner, the detection threshold of the proximity sensor may be determined by at least one threshold parameter, and the wireless headset may calibrate the at least one threshold parameter based on a difference between the current detection value and the reference detection value, and then determine the detection threshold of the proximity sensor by using the calibrated at least one threshold parameter. In this embodiment, the threshold parameter of the proximity sensor is calibrated in the use process of the wireless headset, and then the new detection threshold of the proximity sensor is determined, so that the determined new detection threshold of the proximity sensor can be adapted to the lens of the proximity sensor, thereby being beneficial to improving the accuracy of the wearing detection of the wireless headset based on the proximity sensor.

Further, when the wireless headset calibrates the at least one threshold parameter, an error value may be obtained according to a difference between the current detection value and the reference detection value, and then the at least one threshold parameter is calibrated according to the error value to obtain the calibrated at least one threshold parameter. In this embodiment, the threshold parameter may be changed due to the lens wear, scratch, or contamination of the proximity sensor, so that the detection threshold determined based on the original threshold parameter is no longer applicable, therefore, this embodiment obtains an error value that can reflect the lens wear, scratch, or contamination of the proximity sensor, calibrates the threshold parameter of the proximity sensor using the error value, adapts to the threshold parameter, and adapts to the lens of the proximity sensor, so that the determined new detection threshold of the proximity sensor may also adapt to the lens of the proximity sensor, thereby being beneficial to improving the accuracy of the wearing detection of the wireless headset based on the proximity sensor.

Wherein the error value may be a difference between the current detection value and the reference detection value; alternatively, the error value may be a product of the difference value and a preset coefficient, where the preset coefficient is determined according to an attribute of the proximity sensor (the attribute may be a type, a size, or the like of the proximity sensor), and coefficients corresponding to different attributes are different; alternatively, the error value may be determined in other manners, which is not limited in this embodiment.

Wherein the threshold parameter comprises at least one of: a value detected by the proximity sensor toward a designated object; alternatively, the proximity sensor detects a value in a direction toward a direction without an obstruction. In one example, the threshold parameter includes the first threshold parameter and/or the second threshold parameter, and/or indicates either or both. Referring to fig. 6, the proximity sensor 11 includes a lens, a transmitter for transmitting a light pulse sequence, and a receiver for receiving the light pulse sequence, and the first threshold parameter represents a value detected by the proximity sensor in a direction toward a non-obstruction object. Referring to fig. 7, the proximity sensor 11 includes a lens, a transmitter for transmitting a light pulse sequence, and a receiver for receiving the light pulse sequence, and a designated object is placed in front of the proximity sensor; the second threshold parameter represents a value detected by the proximity sensor toward a designated object; it can be understood that, in the present embodiment, there is no limitation on the number of the second reference detection values, and the number may be specifically set according to an actual application scenario.

In some embodiments, the reference detection value may be a value detected by the proximity sensor when the wireless headset is located in a charging box before the wireless headset leaves a factory, and the wireless headset may calibrate at least one threshold parameter determined by the proximity sensor before leaving the factory according to a difference between the current detection value and the reference detection value of the proximity sensor, and then determine the detection threshold of the proximity sensor using the calibrated at least one threshold parameter. In one example, the at least one threshold parameter that the proximity sensor determines prior to shipment includes at least one of: a value detected by the proximity sensor toward a designated object before shipment of the wireless headset; alternatively, the proximity sensor may detect a value in a case where the proximity sensor is oriented in a direction without a shield before the wireless headset leaves a factory.

In other embodiments, the reference detection value may also be a value detected by the proximity sensor when the wireless headset is located in the charging box last time, and the wireless headset may adjust at least one threshold parameter obtained last time by the proximity sensor according to a difference between the current detection value and the reference detection value of the proximity sensor, and then determine the detection threshold of the proximity sensor using the adjusted at least one threshold parameter. In this embodiment, the threshold parameter obtained last time is adjusted, and then a new detection threshold is determined according to the adjusted threshold parameter, so that it is possible to avoid that the change of the determined new detection threshold is too large to affect user experience.

In an exemplary embodiment, the threshold parameter includes a first threshold parameter and/or a second threshold parameter, and assuming that the wireless headset records a first threshold parameter a1 and a second threshold parameter B1, two detection thresholds of the proximity sensor are determined according to the first threshold parameter and the second threshold parameter, and assuming that the two detection thresholds are a proximity threshold x and a distance threshold y, respectively, x ═ x (B1-a1) × + a1 and y ═ y (B1-a1) × n + a1, where m is a proximity coefficient, n is a distance coefficient, and m > n, and specific values thereof may be specifically set according to an actual application scenario, which is not limited in this embodiment.

Wherein, with the use of the wireless earphone, the lens of the proximity sensor will gradually wear, scratch or stain, etc., so that the light transmittance of the lens is reduced, resulting in the second threshold parameter becoming larger, obviously, if the wearing detection is still performed by using the detection threshold determined based on the second threshold parameter before the wireless earphone is not used, it is obviously inaccurate.

Thus, the wireless headset may calibrate the first and second threshold parameters a1 and B1 based on a difference between the detection value and a reference detection value of the proximity sensor.

In a possible implementation manner, the reference detection value of the proximity sensor is a value detected by the proximity sensor when the wireless headset is located in a charging box before the wireless headset leaves a factory, the wireless headset may obtain an error value according to a difference between the detection value and the reference detection value of the proximity sensor, then calibrate the first threshold parameter a1 and the second threshold parameter B1 recorded before leaving the factory based on the error value, respectively, obtain the calibrated first threshold parameter a1 and the calibrated second threshold parameter B1, and further may re-determine the detection threshold of the proximity sensor, that is, the proximity threshold x and the distance threshold y, using the calibrated first threshold parameter a1 and the calibrated second threshold parameter B1. In this embodiment, the threshold parameter for determining the detection threshold is calibrated in the use process of the wireless headset, so that the accuracy of the obtained detection threshold of the proximity sensor is ensured, and the obtained detection threshold of the proximity sensor can be adapted to the lens of the proximity sensor, thereby improving the accuracy of the wearing detection of the wireless headset based on the proximity sensor.

In another possible implementation manner, the reference detection value may also be a value detected by the proximity sensor when the wireless headset is located in the charging box last time, the wireless headset may obtain an error value according to a difference between the detection value and the reference detection value of the proximity sensor, then calibrate the first threshold parameter a1 and the second threshold parameter B1 obtained last time based on the error value, respectively, obtain the calibrated first threshold parameter a1 and the calibrated second threshold parameter B1, and further may re-determine the detection threshold of the proximity sensor, that is, the proximity threshold value x and the distance threshold value y, using the calibrated first threshold parameter a1 and the calibrated second threshold parameter B1. In the embodiment, the threshold parameter for determining the detection threshold is calibrated in the use process of the wireless earphone, so that the accuracy of the obtained detection threshold of the proximity sensor is ensured, the obtained detection threshold of the proximity sensor can be adapted to the lens of the proximity sensor, and the accuracy of wearing detection of the wireless earphone based on the proximity sensor is improved; in addition, the threshold parameter obtained last time is calibrated, and then a new detection threshold is determined according to the calibrated threshold parameter, so that the influence on user experience caused by overlarge change of the determined new detection threshold can be avoided.

In one example, the error value may be a difference between the detection value and a threshold parameter of the proximity sensor, and then a calibrated first threshold parameter a1 may be obtained from a sum of the error value and the first threshold parameter a1, and a calibrated second threshold parameter B1 may be obtained from a sum of the error value and the second threshold parameter B1; of course, the error value and the calibrated threshold parameter may also be obtained in other manners, and may be specifically set according to an actual application scenario, for example, the error value is a product of the difference value and a preset coefficient, and the calibrated threshold parameter is a product of the threshold parameter and the error value, but is not limited thereto.

In an exemplary embodiment, a first threshold parameter a1, a second threshold parameter B1, and a reference detection value C1 of the proximity sensor are calibrated and recorded before the wireless headset leaves factory, during the use of the wireless headset, when the wireless headset is located in a charging box and the charging box is in a closed state, a current detection value C2 of the proximity sensor is obtained, an error value D is obtained according to a difference between the current detection value and the reference detection value of the proximity sensor, for example, D is C2-C1, the first threshold parameter a1 and the second threshold parameter B1 are calibrated respectively based on the error value, a calibrated first threshold parameter a1 and a calibrated second threshold parameter B1 are obtained, for example, the calibrated first threshold parameter a2 is set, a2 is a1+ D, the calibrated second threshold parameter B2 is set, b2 ═ B1+ D; and then re-determining the detection threshold of the proximity sensor by using the calibrated threshold parameter, wherein the detection threshold comprises a proximity threshold and a distance threshold, and if the calibrated proximity threshold is x2 and the calibrated distance threshold is y2, x2 is (B2-a2) × m + a2 and y2 is (B2-a2) × n + a 2. In the embodiment, the first threshold parameter and the second threshold parameter cannot be directly obtained in the use process of the wireless headset, and therefore, the first threshold parameter and the second threshold parameter are calibrated by using the difference between the current detection value obtained by the proximity sensor and the reference detection value of the proximity sensor when the wireless headset is located in the charging box and the charging box is in the closed state, so as to re-determine the detection threshold, so that the obtained detection threshold of the proximity sensor can be adapted to the lens of the proximity sensor, and the accuracy of wearing detection of the wireless headset based on the proximity sensor is improved.

The various technical features in the above embodiments can be arbitrarily combined, so long as there is no conflict or contradiction between the combinations of the features, but the combination is limited by the space and is not described one by one, and therefore, any combination of the various technical features in the above embodiments also belongs to the scope disclosed in the present specification.

Corresponding to the embodiment of the method for calibrating the proximity sensor of the wireless headset, the disclosure also provides an embodiment of a device for calibrating the proximity sensor of the wireless headset, the wireless headset applied by the device and a storage medium.

Accordingly, referring to fig. 8, an embodiment of the present disclosure further provides a device for calibrating a proximity sensor of a wireless headset, where the device includes:

a current detection value obtaining module 201, configured to obtain a current detection value of the proximity sensor in response to determining that the wireless headset is detected in the charging box.

A detection threshold calibration module 202, configured to calibrate a detection threshold of the proximity sensor according to the current detection value; the detection threshold is used to determine whether the wireless headset is worn.

In an embodiment, the detection threshold calibration module 202 is specifically configured to: calibrating a detection threshold of the proximity sensor according to a difference between the current detection value and a reference detection value of the proximity sensor.

In an embodiment, the reference detection value comprises any one of:

a value detected by the proximity sensor when the wireless headset is located in a charging box before the wireless headset leaves a factory;

alternatively, the proximity sensor may detect a value last time the wireless headset was located in a charging box.

In one embodiment, the detection threshold of the proximity sensor is determined by at least one threshold parameter;

the detection threshold calibration module 202 includes:

a threshold parameter calibration unit for calibrating the at least one threshold parameter according to a difference between the current detection value and the reference detection value;

a detection threshold determination unit for determining a detection threshold of the proximity sensor using the calibrated at least one threshold parameter.

In an embodiment, the threshold parameter comprises at least one of: a value detected by the proximity sensor toward a designated object; alternatively, the proximity sensor detects a value in a direction toward a direction without an obstruction.

In an embodiment, the threshold parameter calibration unit is configured to: obtaining an error value according to a difference value between the current detection value and the reference detection value; and calibrating the at least one threshold parameter based on the error value, and acquiring the calibrated at least one threshold parameter.

In one embodiment, the method further comprises: the wireless headset charging device comprises a detection module and a charging module, wherein the detection module is used for determining that the wireless headset is positioned in a charging box under the condition that the wireless headset is detected to be in a charging state.

In an embodiment, the current detection value obtaining module 201 is specifically configured to: in response to determining that the wireless headset is located in a charging box and the charging box is in an off state, obtaining a current detection value of the proximity sensor.

The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.

For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.

Correspondingly, the present disclosure also provides a wireless headset, comprising: comprises a proximity sensor and a processor;

the proximity sensor is used for responding to the fact that the wireless earphone is located in the charging box, and obtaining a current detection value and feeding the current detection value back to the processor;

the processor is configured to: acquiring a current detection value of the proximity sensor; calibrating a detection threshold value of the proximity sensor according to the current detection value; the detection threshold is used to determine whether the wireless headset is worn.

Correspondingly, the embodiment of the disclosure also provides a calibration system of a proximity sensor, which comprises the wireless earphone and the charging box.

Accordingly, the present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.

The present disclosure may take the form of a computer program product embodied on one or more storage media including, but not limited to, disk storage, CD-ROM, optical storage, and the like, having program code embodied therein. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.

As shown in fig. 9, fig. 9 is a block diagram of a wireless headset shown in accordance with an exemplary embodiment of the present disclosure.

Referring to fig. 9, the wireless headset 300 may include one or more of the following components: processing component 302, memory 304, power component 306, audio component 310, input/output (I/O) interface 312, sensor component 314, and communication component 316.

The processing component 302 generally controls the overall operation of the wireless headset 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.

The memory 304 is configured to store various types of data to support operation at the wireless headset 300. Examples of such data include instructions for any application or method operating on the wireless headset 300, audio data, and the like. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.

The power supply component 306 provides power to the various components of the wireless headset 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the wireless headset 300.

The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the wireless headset 300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.

The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

The sensor assembly 314 includes one or more sensors for providing various aspects of state assessment for the wireless headset 300. For example, the sensor assembly 314 may detect an open/closed state of the wireless headset 300, the relative positioning of the components, such as a display and keypad of the wireless headset 300, the sensor assembly 314 may also detect a change in the position of the wireless headset 300 or one of the components of the wireless headset 300, the presence or absence of user contact with the wireless headset 300, the orientation or acceleration/deceleration of the wireless headset 300, and a change in the temperature of the wireless headset 300. Sensor assembly 314 may include a proximity sensor 3141 configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 316 is configured to facilitate wireless communication between the wireless headset 300 and other devices. The wireless headset 300 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, or 4G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

In an exemplary embodiment, the wireless headset 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), digital signal processing wireless headsets (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.

In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 304 comprising instructions, executable by the processor 320 of the wireless headset 300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种船用井式测量装置及测量方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!