Method, device, earphone and storage medium for adjusting background noise of earphone sensor

By combining the device noise floor value calibration and scene noise floor value of the headphone sensor, the problem of poor anti-interference ability of the headphone sensor in wearing detection is solved, and the detection accuracy and anti-interference ability are improved.

CN115209300BActive Publication Date: 2025-07-22ANKER INNOVATIONS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210859049.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2025-07-22
Estimated Expiration
2042-07-21

AI Technical Summary

Technical Problem

Existing headphone sensors have poor anti-interference ability when wearing and detecting, resulting in inaccurate detection.

Method used

By controlling the transmitting end of the headphone sensor to transmit a pulse signal of a preset frequency, obtain the received data from the receiving end, calibrate the device noise floor value, and adjust the noise floor value of the headphone sensor based on the calibrated device noise floor value, and determine the final noise floor value based on the noise floor value of the scene in which the headphone is located.

Benefits of technology

It improves the accuracy of headphone wear detection, enhances anti-interference ability, and reduces the risk of misidentification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115209300B_ABST
    Figure CN115209300B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, earphone and computer-readable storage medium for adjusting the background noise of an earphone sensor. The method includes: controlling a transmitting end of the earphone sensor to transmit a pulse signal with a preset frequency; obtaining received data of a received signal with the preset frequency received by a receiving end of the earphone sensor; the received signal being the signal returned by the pulse signal; calibrating the device background noise value according to the received data and the transmitted data of the pulse signal to obtain a calibrated device background noise value; and adjusting the background noise value of the earphone sensor according to the calibrated device background noise value. By calibrating the device background noise value of the earphone sensor and adjusting the background noise value of the earphone sensor based on the calibrated device background noise value, the anti-interference ability is improved when using the earphone sensor to identify the wearing and removal of the earphone, and the accuracy of earphone wearing detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of earphones, and particularly to a method and device for adjusting the background noise of an earphone sensor, an earphone, and a computer-readable storage medium. Background Art

[0002] With the development of technology and the continuous progress of society, earphones have become an essential daily necessity for people. Wireless earphones usually automatically turn on / off or play music according to the current wearing situation when the user is using them. Therefore, wireless earphones need to accurately detect the current wearing situation of the user. Summary of the Invention

[0003] Based on this, in view of the above problems, it is necessary to provide a method and device for adjusting the background noise of an earphone sensor, an earphone, and a computer-readable storage medium, which can improve the accuracy of earphone wearing detection.

[0004] In a first aspect, this application provides a method for adjusting the background noise of an earphone sensor, including:

[0005] Controlling the transmitting end of the earphone sensor to transmit a pulse signal with a preset frequency;

[0006] Obtaining the received data of the received signal with the preset frequency received by the receiving end of the earphone sensor; the received signal is the signal returned by the pulse signal;

[0007] Calibrating the device background noise value according to the received data and the transmitted data of the pulse signal to obtain a calibrated device background noise value;

[0008] Adjusting the background noise value of the earphone sensor according to the calibrated device background noise value.

[0009] In a second aspect, this application also provides a device for adjusting the background noise of an earphone sensor, including:

[0010] A signal transmitting module, configured to control the transmitting end of the earphone sensor to transmit a pulse signal with a preset frequency;

[0011] A data obtaining module, configured to obtain the received data of the received signal with the preset frequency received by the receiving end of the earphone sensor; the received signal is the signal returned by the pulse signal;

[0012] A data processing module, configured to calibrate the device background noise value according to the received data and the transmitted data of the pulse signal to obtain a calibrated device background noise value;

[0013] A background noise adjusting module, configured to adjust the background noise value of the earphone sensor according to the calibrated device background noise value.

[0014] In a third aspect, the present application also provides a headset, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the following steps are implemented: controlling a transmitting end of a headset sensor to transmit a pulse signal with a preset frequency; obtaining received data of the received signal with the preset frequency received by a receiving end of the headset sensor; the received signal being a signal returned by the pulse signal; performing device background noise value calibration according to the received data and the transmitted data of the pulse signal to obtain a calibrated device background noise value; and adjusting the background noise value of the headset sensor according to the calibrated device background noise value.

[0015] In a fourth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: controlling a transmitting end of a headset sensor to transmit a pulse signal with a preset frequency; obtaining received data of the received signal with the preset frequency received by a receiving end of the headset sensor; the received signal being a signal returned by the pulse signal; performing device background noise value calibration according to the received data and the transmitted data of the pulse signal to obtain a calibrated device background noise value; and adjusting the background noise value of the headset sensor according to the calibrated device background noise value.

[0016] For the above-mentioned method, device, headset, and storage medium for adjusting the background noise of the headset sensor, the transmitting end of the headset sensor is controlled to transmit a pulse signal with a preset frequency, and the received data of the received signal with the preset frequency received by the receiving end of the headset sensor is obtained. Device background noise value calibration is performed according to the received data and the transmitted data of the pulse signal to obtain a calibrated device background noise value; and the background noise value of the headset sensor is adjusted according to the calibrated device background noise value. By calibrating the device background noise value of the headset sensor and adjusting the background noise value of the headset sensor based on the calibrated device background noise value, the anti-interference ability is improved when using the headset sensor to identify the wearing and removal of the headset, and the accuracy of headset wearing detection can be improved. Description of the Drawings

[0017] Figure 1 It is an application environment diagram of the method for adjusting the background noise of the headset sensor in an embodiment;

[0018] Figure 2 It is a flowchart of the method for adjusting the background noise of the headset sensor in an embodiment;

[0019] Figure 3 It is a flowchart of performing device background noise value calibration according to the received data and the transmitted data of the pulse signal to obtain a calibrated device background noise value in an embodiment;

[0020] Figure 4 It is a flowchart of the method for adjusting the background noise of the headset sensor in another embodiment;

[0021] Figure 5 A flowchart for obtaining the corresponding scene background noise value according to the scene where the earphone is located in an embodiment;

[0022] Figure 6 A schematic diagram of the background noise adjustment logic of the earphone sensor in an embodiment;

[0023] Figure 7 A structural block diagram of the background noise adjustment device of the earphone sensor in an embodiment. Detailed implementation manners

[0024] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] The background noise adjustment method for the earphone sensor provided by the embodiments of the present application can be applied to an application environment as Figure 1 shown. Among them, the earphone includes a processor 1 and an earphone sensor 2, and the processor 1 is connected to the earphone sensor 2. The processor 1 controls the transmitter of the earphone sensor 2 to transmit a pulse signal of a preset frequency, and obtains the received data of the received signal of the preset frequency received by the receiver of the earphone sensor 2. The processor 1 calibrates the device background noise value according to the received data and the transmitted data of the pulse signal, obtains the calibrated device background noise value, and finally adjusts the background noise value of the earphone sensor 2 according to the calibrated device background noise value. Further, the processor 1 can also obtain the corresponding scene background noise value according to the scene where the earphone is located, and adjust the background noise value of the earphone sensor 2 according to the calibrated device background noise value and the scene background noise value.

[0026] In one embodiment, a background noise adjustment method for an earphone sensor is provided, as Figure 2 shown, and the method includes:

[0027] Step S110: Control the transmitter of the earphone sensor to transmit a pulse signal of a preset frequency.

[0028] Specifically, after the earphone is turned on, the processor can control the transmitter of the earphone sensor to transmit a pulse signal of a preset frequency so as to identify the received signal of the receiver of the earphone sensor. Among them, the processor can be a controller device such as an MCU (Micro Controller Unit), a CPU (Central Processing Unit), or an FPGA (Field Programmable Gate Array).

[0029] Step S120: Obtain the received data of the received signal with a preset frequency received by the receiving end of the headphone sensor.

[0030] Among them, the received signal is the signal returned by the pulse signal. After the processor controls the transmitting end of the headphone sensor to transmit a pulse signal with a preset frequency, it obtains the signal received by the receiving end of the headphone sensor. If the receiving end of the headphone sensor receives a received signal with a preset frequency, it extracts the received data of the received signal. It can be understood that according to the type of the headphone sensor, the specific types of the pulse signal and the received signal will also be different. For example, when the headphone sensor is an optical sensor, specifically an infrared (IR) sensor, the pulse signal emitted by the headphone sensor and the received received signal are both infrared signals, and the processor obtains the light intensity data of the received signal for subsequent background noise value calibration.

[0031] Step S130: Calibrate the device background noise value according to the received data and the transmitted data of the pulse signal to obtain the calibrated device background noise value.

[0032] Among them, the device background noise value is the background noise value affected by the hardware structure of the headphone sensor. The headphone can save an initial device background noise value before or after leaving the factory. For example, when the headphone is started for the first time after leaving the factory, the transmitting end of the headphone sensor is turned off, and the received value of the receiving end of the headphone sensor is collected as the initial device background noise value when the pulse signal is not transmitted. If the headphone sensor directly uses the initial device background noise value for headphone wearing detection, there will be a problem of inaccurate detection. Therefore, the processor also controls the transmitting end of the headphone sensor to transmit a pulse signal with a preset frequency, and calibrates the device background noise value according to the received data of the received signal and the transmitted data of the pulse signal.

[0033] In one embodiment, the headphone sensor is an optical sensor; the received data includes the received light intensity, and the transmitted data includes the transmitted light intensity. As Figure 3 shown, step S130 includes step S132 and step S134.

[0034] Step S132: Subtract the transmitted light intensity of the pulse signal from the received light intensity of the received signal to obtain difference data. According to the different pulse signals emitted by the headphone sensor, the method of subtracting the transmitted light intensity of the pulse signal from the received light intensity of the received signal will also be different. Specifically, the pulse signal may include a first light intensity for a first duration and a second light intensity for a second duration, then the received signal includes a third light intensity for the first duration and a fourth light intensity for the second duration. Among them, the first duration and the second duration may be the same or different, and can be specifically set according to actual needs. In this embodiment, both the first duration and the second duration are 10 ms. The processor subtracts the first light intensity from the third light intensity and subtracts the second light intensity from the fourth light intensity to obtain difference data.

[0035] Step S134: Filter the difference data to obtain the calibrated device background noise value. After the processor calculates the difference data, it filters the difference data to obtain the calibrated device background noise value. Among them, the method of filtering the difference data is not unique, and the filtering method can be specifically set according to the emission durations (the first duration and the second duration) of different light intensities. It can be understood that in other embodiments, the average value of the difference data can also be used as the calibrated device background noise value.

[0036] In this embodiment, by combining the light intensities of the pulse signal and the received signal for calculation and filtering processing, accurate calibration of the device background noise value can be achieved.

[0037] Step S150: Adjust the background noise value of the headphone sensor according to the calibrated device background noise value. After the processor calculates the calibrated device background noise value, it can directly use the calibrated device background noise value as the final background noise value of the headphone sensor, and the processor uses the headphone sensor to perform headphone wearing detection according to the final background noise value. The processor can also analyze the scene background noise value affected by the usage environment of the headphone sensor after calculating the calibrated device background noise value, and determine the final background noise value of the headphone sensor by combining the calibrated device background noise value and the scene background noise value.

[0038] It should be noted that the processor can control the transmitting end of the headphone sensor to emit a pulse signal with a preset frequency each time the headphone is turned on, and perform a calibration of the device background noise value according to the received data of the received signal and the transmitted data of the pulse signal. The processor can also stop performing the calibration of the device background noise value after the headphone is turned on a certain number of times and the calibrated device background noise values are obtained through multiple calibrations. In subsequent use, when the headphone is turned on, the background noise value of the headphone sensor is directly adjusted according to the calibrated device background noise value.

[0039] In one embodiment, before step S110, the method further includes: after the headphone is turned on, obtain the calibration times of the device background noise value; if the calibration times of the device background noise value are less than the preset times, enter step S110. Specifically, the processor can record the calibration times of the device background noise value after each calibration of the device background noise value. After the headphone is turned on next time, the processor first obtains the calibration times of the device background noise value. If the calibration times of the device background noise value are less than the preset times, then execute step S110 to perform the calibration of the device background noise value again. On the contrary, if the obtained calibration times of the device background noise value reach the preset times, step S110 may not be executed, and step S150 may be directly executed to adjust the background noise value of the headphone sensor according to the calibrated device background noise value. The specific value of the preset times is not unique either, and it can be 5 to 10 times.

[0040] In this embodiment, after the earphone is turned on, it is first analyzed whether the calibration times of the device background noise value are less than the preset times. If so, the device background noise value calibration action is executed to ensure the accuracy of the device background noise value through multiple calibrations. If the calibration times of the device background noise value have reached the preset times, it is considered that the device background noise value has been solidified within a reference point value or a range value after multiple calibrations and will not change, and its accuracy can be guaranteed. The background noise value of the earphone sensor can be directly adjusted according to the calibrated device background noise value, saving the program.

[0041] The above-mentioned background noise adjustment method for the earphone sensor calibrates the device background noise value of the earphone sensor and adjusts the background noise value of the earphone sensor based on the calibrated device background noise value, improving the anti-interference ability when using the earphone sensor to identify the wearing and removing of the earphone, and can improve the accuracy of earphone wearing detection.

[0042] In one embodiment, as Figure 4 shown, the method further includes step S140: obtaining the corresponding scene background noise value according to the scene where the earphone is located. Among them, step S140 can be performed before, after step S130, or simultaneously with step S130, as long as it is executed before step S150. Correspondingly, step S150 includes step S152: adjusting the background noise value of the earphone sensor according to the calibrated device background noise value and the scene background noise value. Specifically, the scene where the earphone is located can include one or more scenes. For example, the scene where the earphone is located includes one or more of whether the earphone is worn, the area where the earphone is located, and the usage time of the earphone. After determining the calibrated device background noise value and the scene background noise value, the final background noise value of the earphone sensor can be determined by methods such as averaging or weighted summation according to the device background noise value and the scene background noise value.

[0043] In one embodiment, step S152 includes: performing weighted summation according to the calibrated device background noise value and the scene background noise value to obtain the background noise value of the earphone sensor; the background noise value of the earphone sensor is used for earphone wearing detection through the earphone sensor. Specifically, the processor can pre-save the weights of the device background noise value and the scene background noise value. After obtaining the calibrated device background noise value and the scene background noise value corresponding to the actual environment where the earphone is located, weighted summation is performed in combination with the saved weights to finally obtain the background noise value of the earphone sensor. The specific weights of the device background noise value and the scene background noise value are not unique either. For example, the weight value of the device background noise value can be set to 80%, and the sum of the weights of all scene background noise values is 20%. The specific weight of each scene background noise value can be set according to the actual situation.

[0044] In this embodiment, the processor obtains the corresponding ambient noise value according to the scenario where the earphone is located, and adjusts the noise value of the earphone sensor by combining the calibrated device noise value and the ambient noise value, which can reduce the interference of the actual scenario where the earphone is located on the wearing detection, and further improve the accuracy of the earphone wearing detection.

[0045] It can be understood that according to the different scenarios where the earphone is located, the types and calculation methods of the ambient noise values are also correspondingly different. In one embodiment, the ambient noise value includes the status noise value. As Figure 5 shown, step S140 includes step S142 and step S144.

[0046] Step S142: Control the earphone speaker to emit infrasound waves, and detect whether the earphone is worn according to the received data of the earphone microphone to obtain the earphone status detection result. Among them, infrasound waves refer to sound waves of 10 -4 Hz to 20 Hz. The earphone speaker is the earphone speaker, and the earphone microphone can specifically be the single rear-feed microphone of the earphone. Specifically, the processor can control the earphone speaker to emit infrasound waves, obtain the received data of the earphone microphone, and analyze whether the earphone is in the worn state according to the received data to obtain the earphone status detection result.

[0047] In one embodiment, step S142 includes: if the received data of the earphone microphone contains infrasound waves and the boost intensity is greater than a preset intensity threshold, the earphone status detection result is that the earphone is in the worn state. The value of the intensity threshold is not unique either, and it can also be set according to the actual situation. When the processor detects that the received data of the earphone microphone contains infrasound waves and the boost intensity is greater than the preset intensity threshold, it is considered that the earphone is worn completely at this time; on the contrary, if the received data of the earphone microphone does not contain infrasound waves, or the received data contains infrasound waves, but the boost intensity is less than or equal to the intensity threshold, it is considered that the earphone is not worn at this time. By controlling the earphone speaker to emit infrasound waves and analyzing the infrasound waves and the boost intensity in the received data, the accurate detection of the wearing state is realized.

[0048] Step S144: Adjust the status noise value of the earphone sensor according to the earphone status detection result and the received value of the receiving end of the earphone sensor. Specifically, after the earphone wearing state is detected, the processor adjusts the initial status noise value specifically according to the earphone status detection result and in combination with the received value of the receiving end of the earphone sensor to obtain the calibrated status noise value, realizing the noise value calibration in combination with the earphone wearing state.

[0049] In one embodiment, the status background noise value includes the worn background noise value. Step S144 includes: if the earphone is in the worn state and the received value is less than a preset worn threshold value, then the difference between the worn threshold value and the received value is used as the worn background noise value. The specific value of the worn threshold value is not unique either, and the worn threshold value can be set during the assembly process before leaving the factory. After the processor confirms that the earphone is in the worn state through infrasonic wave detection, it compares the received value at the receiving end of the earphone sensor with the worn threshold value. If the received value is less than the worn threshold value, then the worn threshold value minus the received value is used, and the obtained difference is saved as the worn background noise value.

[0050] Further, in one embodiment, the status background noise value further includes the non-worn background noise value. Step S144 further includes: if the earphone is in the non-worn state and the received value is greater than a preset non-worn threshold value, then the difference between the received value and the non-worn threshold value is used as the non-worn background noise value. Similarly, the specific value of the non-worn threshold value is not unique either, and the non-worn threshold value can be set during the assembly process before leaving the factory. After the processor confirms that the earphone is in the non-worn state through infrasonic wave detection, it compares the received value at the receiving end of the earphone sensor with the non-worn threshold value. If the received value is greater than the preset non-worn threshold value, then the received value minus the non-worn threshold value is used, and the obtained difference is saved as the non-worn background noise value.

[0051] It should be noted that the wearing state of the earphone can be accurately analyzed through infrasonic wave detection, but infrasonic wave detection will cause inconvenience to the user during use and affect the user experience. Therefore, after one infrasonic wave detection to determine the worn background noise value, infrasonic wave detection is no longer performed. After the processor combines the calibrated device background noise value, the worn background noise value, and other scenario background noise values to determine the final background noise value of the earphone sensor, the earphone sensor is used for wearing detection according to the final background noise value.

[0052] In one embodiment, the scenario background noise value includes the geographical area background noise value. Step S140 further includes step S146: obtaining the location information of the earphone. If it is determined according to the location information that the earphone is in a preset area, the geographical area background noise value of the earphone sensor is compensated and adjusted. Specifically, the earphone can communicate with a mobile terminal such as a mobile phone to synchronize the current location information, or a positioning unit can be installed in the earphone to directly obtain the current location information through the positioning unit. The preset area can specifically be an area such as indoors where the influence on the earphone sensor is relatively small. The processor can determine the location information of the earphone according to the received signal and the preset map data, or determine the location information of the earphone according to the strength of the received signal. For example, after the earphone is turned on, the processor obtains the current GPRS (General Packet Radio Service) signal value through the communication between the earphone and the mobile phone. If the GPRS signal value is less than the preset threshold, that is, the GPRS signal is weak, it is determined that the earphone is indoors. At this time, the influence of the sunlight signal is weak, and the geographical area background noise value of the earphone sensor can be dynamically adjusted. It can be understood that if it is determined according to the location information that the earphone is not in the preset area, for example, the earphone is outdoors, the geographical area background noise value is not adjusted at this stage.

[0053] In one embodiment, the compensation and adjustment of the geographical area background noise value of the earphone sensor in step S146 includes: performing stepped compensation adjustment on the geographical area background noise value of the earphone sensor according to the positioning signal obtained by the communication between the earphone and the terminal. Specifically, the positioning signal can be a signal with positioning function, or signals such as GPRS signal and Beidou signal that can be used to analyze the location of the place where the earphone is located. Taking the example of obtaining the GPRS signal value through the mobile phone again, if the GPRS signal is very weak or completely absent, after determining that the earphone is indoors, the processor performs stepped compensation adjustment on the geographical area background noise value of the earphone sensor according to the GPRS signal value. For example, the geographical area background noise value decreases as the GPRS signal value decreases, and the geographical area background noise value is dynamically reduced to make the geographical area background noise value of the earphone sensor more in line with the geographical location scenario where the earphone is currently located.

[0054] In addition, in one embodiment, the scenario background noise value can also include the time area background noise value. Continuing to refer to Figure 5 , step S140 can further include step S148: if the current time is in a preset time area, dynamically calibrate the time area background noise value of the earphone sensor.

[0055] Among them, the specific setting method of the preset time region is not unique. Specifically, the earphone can also communicate with the mobile phone to obtain the local sunrise and sunset times, analyze whether the current time when the earphone is in use is during the day or at night, and determine whether there will be sunlight interference at this time. For example, if the local sunset time period is from 18:00 to 19:00 and the local sunrise time period is from 6:00 to 7:00, then 18:00 to 19:00 and 6:00 to 7:00 can be set as the preset time region. After the earphone is turned on, the processor obtains the current time information through the communication between the earphone and the mobile phone. During the sunset time period, the processor gradually reduces the time region noise floor value. For example, it gradually reduces the time region noise floor value starting from 18:00 until 19:00. During the sunrise time period, the processor gradually increases the time region noise floor value. For example, it gradually increases the time region noise floor value starting from 6:00 until 7:00. By dynamically calibrating the time region noise floor value according to the current time when the earphone is in use, the time region noise floor value of the earphone sensor can be made more in line with the current usage time scenario of the earphone.

[0056] The method of dynamically calibrating the time region noise floor value of the earphone sensor is not unique either. In one embodiment, dynamically calibrating the time region noise floor value of the earphone sensor in step S148 includes: dynamically calibrating the time region noise floor value of the earphone sensor when it is in the preset time region according to the preset adjustment parameters. The processor can pre-store the adjustment parameters corresponding to different moments in the preset time region. When the current time during earphone use is in the preset time region, the corresponding adjustment parameters are retrieved according to the specific time point, and the time region noise floor value of the earphone sensor is dynamically calibrated, which is simple and reliable to operate.

[0057] In another embodiment, dynamically calibrating the time region noise floor value of the earphone sensor in step S148 includes: dynamically calibrating the time region noise floor value of the earphone sensor when it is in the preset time region according to the noise floor value at the same historical time point. The processor can save the historical noise floor values for a certain period (such as the previous day). When the current time during earphone use is in the preset time region, the noise floor value at the same historical time point is selected to dynamically calibrate the time region noise floor value, making the time region noise floor value more accurate.

[0058] To facilitate a better understanding of the above noise floor adjustment method for the earphone sensor, the following takes the noise floor adjustment of the IR sensor as an example for detailed explanation.

[0059] Currently, the headset determines whether it is worn by obtaining the sensed value of the IR sensor and combining it with the initial background noise value set before leaving the factory, resulting in poor anti-interference ability. Based on this, the present application provides a method for dynamically adjusting the background noise of the IR sensor, calibrating the device background noise value and the scene background noise value of the IR sensor, improving the recognition rate of headset wearing and removal, and thus reducing the risk of misrecognition.

[0060] Specifically, the headset first collects the received value of the IR sensor when the IR sensor transmitter is turned off as the preliminary device background noise value. As Figure 6 shown, the headset controls the transmitter of the IR sensor to emit pulsed infrared light of a specific frequency, and detects whether the receiver of the IR sensor receives pulsed light that conforms to the specific frequency. If not, the transmitter of the IR sensor is controlled to emit pulsed infrared light of the specific frequency again; if so, the received light intensity value of the pulsed light that currently conforms to the specific frequency is calculated, and the current background noise value of the IR sensor is dynamically calculated based on the received light intensity value to calibrate the device background noise value.

[0061] Furthermore, the scene background noise value includes a state background noise value, a geographical area background noise value, and a time area background noise value. The headset detects the current wearing state according to infrasound. If the headset is currently in a worn state, the difference between the received value of the IR sensor and the wearing threshold is calculated. If the headset is currently in an unworn state, the difference between the received value of the IR sensor and the non-wearing threshold is calculated. Finally, the background noise is calibrated by the threshold difference to adjust the state background noise value of the IR sensor. The headset obtains the current GPRS signal through the mobile phone and adjusts the geographical area background noise value of the IR sensor according to the GPRS signal (for example: when the current GPRS signal is very weak, the headset believes that the IR sensor is less affected by sunlight at this time, so the background noise value is adjusted down). In addition, the headset also obtains the current time through the mobile phone and adjusts the time area background noise value of the IR sensor according to the current time (for example: when it is night, the headset believes that the IR sensor is less affected by sunlight at this time, so the background noise value is adjusted down).

[0062] Among them, for the device background noise value, it can be calibrated when the headset is turned on for the first time or the first few times (5 times or 10 times), and after calibration, it is fixed in a certain area without change. After determining the state background noise value through an infrasound detection, the infrasound detection is no longer performed, and the geographical area background noise value and the time area background noise value can be calibrated once when the headset is started each time. Therefore, in actual use, when the device background noise value and the state background noise value have been fixed, the headset only needs to calibrate the geographical area background noise value and the time area background noise value each time it is turned on, and perform a weighted sum according to the device background noise value, the state background noise value, and the geographical area background noise value and the time area background noise value calibrated this time when the headset is turned on, to determine the background noise value of the IR sensor when using the headset this time, and perform wearing detection using the IR sensor according to the finally determined background noise value.

[0063] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are sequentially shown according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0064] Based on the same inventive concept, an embodiment of the present application also provides a device for adjusting the background noise of a headphone sensor for implementing the above-mentioned method for adjusting the background noise of a headphone sensor. The implementation solution provided by this device to solve the problem is similar to the implementation solution described in the above method. Therefore, the specific limitations in one or more embodiments of the device for adjusting the background noise of a headphone sensor provided below can refer to the limitations on the method for adjusting the background noise of a headphone sensor in the above text, and will not be repeated here.

[0065] In one embodiment, as Figure 7 shown, a device for adjusting the background noise of a headphone sensor is provided, including: a signal transmitting module 110, a data acquisition module 120, a data processing module 130, and a background noise adjustment module 140, where:

[0066] The signal transmitting module 110 is configured to control the transmitting end of the headphone sensor to transmit a pulse signal of a preset frequency.

[0067] The data acquisition module 120 is configured to acquire the received data of the received signal of the preset frequency received by the receiving end of the headphone sensor; the received signal is the signal returned by the pulse signal.

[0068] The data processing module 130 is configured to calibrate the device background noise value according to the received data and the transmitted data of the pulse signal to obtain the calibrated device background noise value.

[0069] The background noise adjustment module 140 is configured to adjust the background noise value of the headphone sensor according to the calibrated device background noise value.

[0070] In one embodiment, the signal transmitting module 110 is further configured to obtain the number of times of calibrating the device background noise value after the headphone is turned on; if the number of times of calibrating the device background noise value is less than the preset number of times, it controls the transmitting end of the headphone sensor to transmit a pulse signal of a preset frequency.

[0071] In one embodiment, the headphone sensor is a light sensor, the received data includes received light intensity, and the transmitted data includes transmitted light intensity. The data processing module 130 is configured to subtract the transmitted light intensity of the pulse signal from the received light intensity of the received signal to obtain difference data; filter the difference data to obtain the calibrated device background noise value.

[0072] In one embodiment, the background noise adjustment module 140 is further configured to obtain a corresponding scene background noise value according to the scene where the headphones are located; adjust the background noise value of the headphone sensor according to the calibrated device background noise value and the scene background noise value.

[0073] In one embodiment, the background noise adjustment module 140 is configured to control the headphone speaker to emit infrasound, detect whether the headphones are worn according to the received data of the headphone microphone, and obtain a headphone state detection result; adjust the state background noise value of the headphone sensor according to the headphone state detection result and the received value of the receiving end of the headphone sensor; the scene background noise value includes the state background noise value.

[0074] In one embodiment, the background noise adjustment module 140 is configured to, if the received data of the headphone microphone contains infrasound and the boost intensity is greater than a preset intensity threshold, the headphone state detection result is that the headphones are in a worn state.

[0075] In one embodiment, the background noise adjustment module 140 is configured to, if the headphones are in a worn state and the received value is less than a preset wearing threshold, use the difference between the wearing threshold and the received value as the wearing background noise value.

[0076] In one embodiment, the background noise adjustment module 140 is configured to, if the headphones are in a non-worn state and the received value is greater than a preset non-wearing threshold, use the difference between the received value and the non-wearing threshold as the non-wearing background noise value.

[0077] In one embodiment, the background noise adjustment module 140 is configured to obtain the position information of the headphones, and if it is determined according to the position information that the headphones are in a preset area, compensate and adjust the geographical area background noise value of the headphone sensor; the scene background noise value includes the geographical area background noise value.

[0078] In one embodiment, the background noise adjustment module 140 is configured to perform stepped compensation adjustment on the geographical area background noise value of the headphone sensor according to the positioning signal obtained by the communication between the headphones and the terminal.

[0079] In one embodiment, the background noise adjustment module 140 is configured to, if the current time is in a preset time area, dynamically calibrate the time area background noise value of the headphone sensor; the scene background noise value includes the time area background noise value.

[0080] In one embodiment, the background noise adjustment module 140 is configured to dynamically calibrate the background noise value of the time region of the headphone sensor when it is in a preset time region according to preset adjustment parameters.

[0081] In one embodiment, the background noise adjustment module 140 is configured to dynamically calibrate the background noise value of the time region of the headphone sensor when it is in a preset time region according to the background noise value at the same historical time point.

[0082] In one embodiment, the background noise adjustment module 140 is configured to perform weighted summation according to the calibrated device background noise value and the scene background noise value to obtain the background noise value of the headphone sensor; the background noise value of the headphone sensor is used to detect headphone wearing through the headphone sensor.

[0083] Each module in the above background noise adjustment device of the headphone sensor can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the headphone in hardware form or independent of the processor, or stored in the memory in the headphone in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0084] In one embodiment, a headphone is provided, including a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the following steps are implemented: controlling the transmitting end of the headphone sensor to transmit a pulse signal with a preset frequency; obtaining the received data of the received signal with the preset frequency received by the receiving end of the headphone sensor; the received signal is the signal returned by the pulse signal; calibrating the device background noise value according to the received data and the transmitted data of the pulse signal to obtain the calibrated device background noise value; adjusting the background noise value of the headphone sensor according to the calibrated device background noise value.

[0085] In one embodiment, when the processor executes the computer program, the following steps are further implemented: after the headphone is turned on, obtaining the number of times of device background noise value calibration; if the number of times of device background noise value calibration is less than the preset number of times, controlling the transmitting end of the headphone sensor to transmit a pulse signal with a preset frequency.

[0086] In one embodiment, when the processor executes the computer program, the following steps are further implemented: subtracting the transmitted light intensity of the pulse signal from the received light intensity of the received signal to obtain difference data; filtering the difference data to obtain the calibrated device background noise value.

[0087] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining the corresponding scene background noise value according to the scene where the headphone is located; adjusting the background noise value of the headphone sensor according to the calibrated device background noise value and the scene background noise value.

[0088] In one embodiment, when the processor executes the computer program, the following steps are further implemented: controlling the headphone speaker to emit infrasound, detecting whether the headphones are worn according to the received data of the headphone microphone, and obtaining a headphone state detection result; adjusting the state background noise value of the headphone sensor according to the headphone state detection result and the received value of the receiving end of the headphone sensor; the scenario background noise value includes the state background noise value.

[0089] In one embodiment, when the processor executes the computer program, the following steps are further implemented: if the received data of the headphone microphone contains infrasound and the boosting intensity is greater than a preset intensity threshold, the headphone state detection result is that the headphones are in a worn state.

[0090] In one embodiment, when the processor executes the computer program, the following steps are further implemented: if the headphones are in a worn state and the received value is less than a preset wearing threshold, the difference between the wearing threshold and the received value is used as the wearing background noise value.

[0091] In one embodiment, when the processor executes the computer program, the following steps are further implemented: if the headphones are in a non-worn state and the received value is greater than a preset non-wearing threshold, the difference between the received value and the non-wearing threshold is used as the non-wearing background noise value.

[0092] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining the position information of the headphones, and if it is determined according to the position information that the headphones are in a preset area, compensating and adjusting the geographical area background noise value of the headphone sensor; the scenario background noise value includes the geographical area background noise value.

[0093] In one embodiment, when the processor executes the computer program, the following steps are further implemented: performing stepped compensation adjustment on the geographical area background noise value of the headphone sensor according to the positioning signal obtained by the communication between the headphones and the terminal.

[0094] In one embodiment, when the processor executes the computer program, the following steps are further implemented: if the current time is in a preset time area, dynamically calibrating the time area background noise value of the headphone sensor; the scenario background noise value includes the time area background noise value.

[0095] In one embodiment, when the processor executes the computer program, the following steps are further implemented: dynamically calibrating the time area background noise value of the headphone sensor when it is in a preset time area step by step according to preset adjustment parameters.

[0096] In one embodiment, when the processor executes the computer program, the following steps are further implemented: dynamically calibrating the time area background noise value of the headphone sensor when it is in a preset time area step by step according to the background noise value at the same historical time point.

[0097] In one embodiment, when the processor executes the computer program, the following steps are further implemented: performing weighted summation based on the calibrated device background noise value and the scene background noise value to obtain the background noise value of the headphone sensor; using the background noise value of the headphone sensor for headphone wearing detection through the headphone sensor.

[0098] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the following steps are implemented: controlling the transmitting end of the headphone sensor to transmit a pulse signal with a preset frequency; obtaining the received data of the received signal with the preset frequency received by the receiving end of the headphone sensor; the received signal is the signal returned by the pulse signal; calibrating the device background noise value according to the received data and the transmitted data of the pulse signal to obtain the calibrated device background noise value; adjusting the background noise value of the headphone sensor according to the calibrated device background noise value.

[0099] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: after the headphone is turned on, obtaining the number of times of device background noise value calibration; if the number of times of device background noise value calibration is less than the preset number of times, controlling the transmitting end of the headphone sensor to transmit a pulse signal with a preset frequency.

[0100] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: subtracting the transmitted light intensity of the pulse signal from the received light intensity of the received signal to obtain difference data; filtering the difference data to obtain the calibrated device background noise value.

[0101] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining the corresponding scene background noise value according to the scene where the headphone is located; adjusting the background noise value of the headphone sensor according to the calibrated device background noise value and the scene background noise value.

[0102] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: controlling the headphone speaker to emit infrasound, detecting whether the headphone is worn according to the received data of the headphone microphone to obtain the headphone state detection result; adjusting the state background noise value of the headphone sensor according to the headphone state detection result and the received value of the receiving end of the headphone sensor; the scene background noise value includes the state background noise value.

[0103] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the received data of the headphone microphone contains infrasound and the boost intensity is greater than the preset intensity threshold, the headphone state detection result is that the headphone is in the worn state.

[0104] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the headphone is in the worn state and the received value is less than the preset wearing threshold, using the difference between the wearing threshold and the received value as the wearing background noise value.

[0105] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: If the earphone is in a non-worn state and the received value is greater than a preset non-worn threshold, the difference between the received value and the non-worn threshold is used as the non-worn background noise value.

[0106] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: Obtain the position information of the earphone. If it is determined according to the position information that the earphone is in a preset area, compensate and adjust the geographical area background noise value of the earphone sensor; the scene background noise value includes the geographical area background noise value.

[0107] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: Perform stepwise compensation adjustment on the geographical area background noise value of the earphone sensor according to the positioning signal obtained by the communication between the earphone and the terminal.

[0108] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: If the current time is in a preset time area, dynamically calibrate the time area background noise value of the earphone sensor; the scene background noise value includes the time area background noise value.

[0109] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: Dynamically calibrate the time area background noise value of the earphone sensor when it is in a preset time area step by step according to the preset adjustment parameters.

[0110] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: Dynamically calibrate the time area background noise value of the earphone sensor when it is in a preset time area step by step according to the background noise value at the same historical time point.

[0111] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: Perform weighted summation according to the calibrated device background noise value and the scene background noise value to obtain the background noise value of the earphone sensor; the background noise value of the earphone sensor is used for earphone wearing detection through the earphone sensor.

[0112] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0113] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0114] The above embodiments only represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A method for adjusting the background noise of a headphone sensor, characterized in that Including: Controlling the transmitting end of the headphone sensor to emit a pulse signal with a preset frequency; Obtaining the received data of the received signal with the preset frequency received by the receiving end of the headphone sensor; The received signal is the signal returned by the pulse signal; Calibrating the device background noise value according to the received data and the transmitted data of the pulse signal to obtain the calibrated device background noise value; Obtaining the corresponding scene background noise value according to the scene where the headphone is located; Adjusting the background noise value of the headphone sensor according to the calibrated device background noise value and the scene background noise value; The scene background noise value includes a state background noise value. Obtaining the corresponding scene background noise value according to the scene where the headphone is located includes: Controlling the headphone speaker to emit infrasound, detecting whether the headphone is worn according to the received data of the headphone microphone to obtain a headphone state detection result. If the headphone state detection result is that the headphone is in a worn state and the received value of the receiving end of the headphone sensor is less than a preset wearing threshold, then taking the difference between the wearing threshold and the received value as the wearing background noise value. The state background noise value includes the wearing background noise value.

2. The method according to claim 1, wherein Before controlling the transmitting end of the headphone sensor to emit a pulse signal with a preset frequency, it further includes: After the headphone is turned on, obtaining the number of times of device background noise value calibration; If the number of times of device background noise value calibration is less than a preset number of times, entering the step of controlling the transmitting end of the headphone sensor to emit a pulse signal with a preset frequency.

3. The method according to claim 1 or 2, characterized in that, The headphone sensor is a light sensor; the received data includes received light intensity, and the transmitted data includes transmitted light intensity; Calibrating the device background noise value according to the received data and the transmitted data of the pulse signal to obtain the calibrated device background noise value, including: Subtracting the transmitted light intensity of the pulse signal from the received light intensity of the received signal to obtain difference data; Filtering the difference data to obtain the calibrated device background noise value.

4. The method according to claim 1, wherein Detecting whether the headphone is worn according to the received data of the headphone microphone to obtain a headphone state detection result, including: If the received data of the headphone microphone contains infrasound and the boosting intensity is greater than a preset intensity threshold, the headphone state detection result is that the headphone is in a worn state.

5. The method according to claim 1, characterized in that, The state background noise value further includes a non-wearing background noise value; the method further includes: If the headphone is in a non-worn state and the received value is greater than a preset non-wearing threshold, then taking the difference between the received value and the non-wearing threshold as the non-wearing background noise value.

6. The method according to claim 1, wherein Obtaining the corresponding scene background noise value according to the scene where the headphone is located, further includes: Obtaining the position information of the headphone. If it is determined according to the position information that the headphone is in a preset area, compensating and adjusting the geographical area background noise value of the headphone sensor; the scene background noise value includes the geographical area background noise value.

7. The method according to claim 6, characterized in that, Compensating and adjusting the geographical area background noise value of the headphone sensor, including: Performing a stepped compensation adjustment on the geographical area background noise value of the headphone sensor according to the positioning signal obtained by the headphone communicating with the terminal.

8. The method according to claim 1, characterized in that Obtaining the corresponding scene background noise value according to the scene where the headphone is located, further includes: If the current time is within a preset time range, dynamically calibrate the time-range background noise value of the headphone sensor; the scenario background noise value includes the time-range background noise value.

9. The method according to claim 8, wherein The dynamically calibrating the time-range background noise value of the headphone sensor includes: Gradually and dynamically calibrate the time-range background noise value of the headphone sensor when it is within the preset time range according to preset adjustment parameters; Or Gradually and dynamically calibrate the time-range background noise value of the headphone sensor when it is within the preset time range according to the background noise values at the same historical time points.

10. The method according to any one of claims 4-9, characterized in that, The adjusting the background noise value of the headphone sensor according to the calibrated device background noise value and the scenario background noise value includes: performing weighted summation according to the calibrated device background noise value and the scenario background noise value to obtain the background noise value of the headphone sensor; the background noise value of the headphone sensor is used for headphone wearing detection through the headphone sensor.

11. A device for adjusting the background noise of a headphone sensor, characterized in that, It includes: A signal transmitting module, configured to control the transmitting end of the headphone sensor to transmit a pulse signal with a preset frequency; A data acquisition module, configured to acquire the received data of the received signal with the preset frequency received by the receiving end of the headphone sensor; The received signal is the signal returned by the pulse signal; A data processing module, configured to perform device background noise value calibration according to the received data and the transmitted data of the pulse signal to obtain a calibrated device background noise value; A background noise adjustment module, configured to obtain a corresponding scenario background noise value according to the scenario where the headphone is located, and adjust the background noise value of the headphone sensor according to the calibrated device background noise value and the scenario background noise value; The scenario background noise value includes a state background noise value. Obtaining a corresponding scenario background noise value according to the scenario where the headphone is located includes: controlling the headphone speaker to emit infrasound, detecting whether the headphone is worn according to the received data of the headphone microphone to obtain a headphone state detection result. If the headphone state detection result is that the headphone is in a worn state and the received value at the receiving end of the headphone sensor is less than a preset wearing threshold, then use the difference between the wearing threshold and the received value as the wearing background noise value. The state background noise value includes the wearing background noise value.

12. An earphone, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 10.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method and device for calibrating ground noise parameter of distance sensor, terminal and medium

    CN114061505A