Earphone fault detection method and related apparatus

By detecting the frequency component amplitude changes in the acoustic transmission path of the headphone speaker and microphone when the headphone case is closed, the accuracy problem of headphone fault detection is solved, and the effective identification of speaker, microphone and pore blockage faults is achieved.

WO2025246945A1PCT designated stage Publication Date: 2025-12-04HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/094961
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-25
Filing Date
2025-05-14
Publication Date
2025-12-04

AI Technical Summary

Technical Problem

Existing technologies are insufficient for effectively detecting headphone malfunctions, especially those caused by blockages in the sound outlet and pressure relief port, as well as aging of components.

Method used

By detecting changes in the amplitude of sound frequency components through the acoustic transmission path of the headphone speaker and microphone when the headphone case is closed, and combining this with preset thresholds and frequency response values, it can be determined whether the headphones are malfunctioning.

Benefits of technology

It enables accurate detection of headphone malfunctions, improves the accuracy and reliability of judgment results, and can identify specific fault types such as speaker, microphone, and blocked holes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025094961_04122025_PF_FP_ABST
    Figure CN2025094961_04122025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an earphone fault detection method and a related apparatus. The method is applied to an audio system consisting of earphones, an earphone case, and a terminal device. In the audio system, if a first earphone (for example, a left earphone) detects that the first earphone is located in the earphone case, a loudspeaker of the first earphone can play sound, and the sound is picked up by a microphone of the same earphone or the other earphone located in the earphone case. A device (for example, the first earphone) of the audio system can determine, by comparing the amplitude value of the acquired sound with a preset sound amplitude, whether a fault has occurred to the earphone, for example, a hole blocking fault of an earphone, and the aging fault of the loudspeaker and microphone of the earphone.
Need to check novelty before this filing date? Find Prior Art

Description

Methods and related devices for headphone fault detection

[0001] This application claims priority to Chinese Patent Application No. 202410662265.1, filed on May 25, 2024, entitled "Method and Related Apparatus for Headphone Fault Detection", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic technology, and in particular to methods and related devices for detecting headphone malfunctions. Background Technology

[0003] Headphones can malfunction due to blocked headphone jacks such as the sound outlet and pressure relief vent, as well as due to aging of components like the microphone and speaker. Therefore, how to implement headphone fault detection is a pressing issue that needs to be addressed. Summary of the Invention

[0004] This application provides a method and related apparatus for detecting headphone malfunctions, which can detect headphone malfunctions based on the fixed acoustic cavity structure of the headphone and headphone case.

[0005] In a first aspect, a fault detection method is provided, applied to an audio system. The audio system includes an earphone case and earphones. The earphones include a first earphone. The earphone case is used to house the first earphone. The first earphone is provided with a first speaker and a first microphone. The earphone fault detection method includes: when the earphone case is in a closed state, the first earphone detects that the first earphone is located in the earphone case; the first earphone controls the first speaker to play a first sound; when the first speaker plays the first sound, the first earphone receives a second sound through the first microphone; if the deviation between the amplitude of a first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, the first earphone determines that the first earphone is faulty, wherein the amplitude of the first frequency component of the first sound is a preset value.

[0006] Because the headphone case creates a stable environment when closed, the acoustic transmission path from the first speaker of the first earphone to the first microphone of the first earphone is relatively stable. When the first earphone is in the closed case, the sound emitted by the first earphone can be transmitted from its first speaker to its first microphone. Earphone malfunctions can cause changes in the acoustic parameters (e.g., frequency response) of the acoustic transmission path, resulting in changes in the amplitude of some frequency components of the first sound passing through this path. For example, if the speaker experiences a blockage, the amplitude of the low-frequency components of the first sound passing through this path will change. Low-frequency components refer to sound components with frequencies less than or equal to a specific frequency (e.g., 200Hz), such as the 160Hz component. If the headphone speaker malfunctions, the energy of the sound emitted by the speaker (which can be reflected in the sound amplitude) decreases, thus reducing the amplitude of the first sound emitted by the speaker. If the headphone microphone malfunctions, the energy of the sound received by the microphone decreases, thus reducing the amplitude of the first sound received by the microphone. The amplitudes of different frequency components of the first sound (including low-frequency components and mid-to-high frequency components greater than 200Hz) are preset (or pre-stored) in an electronic device (including at least one of headphones, terminal devices, and headphone cases). Therefore, the electronic device can determine whether the first headphones have malfunctioned by comparing the amplitude of the sound measured by the first headphones with the amplitude of the first sound preset by the first headphones.

[0007] According to the first aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, the first earphone determines that the first earphone is faulty, specifically including: if the deviation between the amplitude of the low frequency component of the second sound and the amplitude of the low frequency component of the first sound exceeds the first threshold, the first earphone determines that the first earphone has a jack blockage fault.

[0008] If a speaker experiences a blockage, the amplitude of the low-frequency component of the first sound passing through the acoustic transmission path changes. Therefore, the electronic device can compare the amplitude of the low-frequency component of the sound measured by the microphone of the first earphone with the preset amplitude of the low-frequency component of the first sound to determine whether the first earphone has experienced a blockage.

[0009] According to the first aspect, in one possible implementation, the frequency of the first sound includes multiple frequency points.

[0010] The first earphone can acquire multiple amplitude values ​​of the low-frequency components of a sound including multiple frequency points. An electronic device can acquire these multiple amplitude values ​​and determine whether the first earphone has a blocked jack fault based on them. The amplitude values ​​of the low-frequency components of this first sound are preset (or pre-stored) in the electronic device (including at least one of earphones, a terminal device, and an earphone case). Therefore, the electronic device can determine whether the first earphone has a blocked jack fault by comparing the amplitude values ​​of the sound measured by the first earphone with the preset amplitude values ​​of the first sound. Using multiple low-frequency components for judgment improves the accuracy of the judgment result.

[0011] According to the first aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, the first earphone determines that the first earphone is faulty, specifically including: if the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound exceeds a third threshold, the first earphone determines that the first earphone has a device fault.

[0012] A malfunction in the first earphone component will cause a significant change in the amplitude of the mid-to-high frequency components of the first sound passing through the acoustic transmission path, while a blockage in the first earphone will cause a smaller or no change in the amplitude of the mid-to-high frequency components of the first sound passing through the acoustic transmission path. Therefore, the electronic device can compare the amplitude of the mid-to-high frequency components of the second sound with the preset amplitude of the mid-to-high frequency components of the first sound to determine whether the first earphone has experienced a malfunction.

[0013] According to the first aspect, in one possible implementation, the number of the first microphones is multiple.

[0014] By using multiple first microphones, the electronic device detects different manifestations of malfunctions in different headphone components. If the headphone speaker is malfunctioning, the electronic device detects that the amplitude of the mid-to-high frequency components of the second sound measured by each first microphone deviates significantly from the preset corresponding amplitude. If the headphone microphone is malfunctioning, the electronic device detects that the amplitude of the mid-to-high frequency components of the second sound measured by one or more first microphones deviates significantly from the preset corresponding amplitude, and also detects that the amplitude of the mid-to-high frequency components of the second sound measured by one or more first microphones deviates less significantly from the preset corresponding amplitude. The electronic device acquires the first microphone whose measured amplitude deviates significantly from the preset amplitude, and then acquires the first microphone whose measured amplitude deviates less significantly from the preset amplitude, thus determining the specific component of the first headphone that is malfunctioning. Compared to receiving data from a single microphone, receiving data from multiple microphones and comparing the amplitude deviations can improve the accuracy of the judgment result.

[0015] According to the first aspect, in one possible implementation, if the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound exceeds a third threshold, the first earphone determines that the first earphone has a device malfunction. Specifically, if one or more of the plurality of first microphones receive a first microphone whose amplitude of the mid-high frequency component of the second sound deviates from the amplitude of the mid-high frequency component of the first sound by no more than the third threshold, the first earphone determines that the first microphone is malfunctioning. The malfunctioning first microphone is the first microphone among the plurality of first microphones whose deviation exceeds the third threshold.

[0016] If the electronic device acquires one or more first microphones whose measured amplitude deviates significantly from the preset amplitude, and then acquires one or more first microphones whose measured amplitude deviates slightly from the preset amplitude, the electronic device can determine that the first microphone in the first earphone whose measured amplitude deviates significantly from the preset amplitude has malfunctioned.

[0017] According to the first aspect, in one possible implementation, if the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound exceeds a third threshold, the first earphone determines that the first earphone has a device malfunction. Specifically, if the deviation between the amplitude of the mid-high frequency component of the second sound received by each of the plurality of first microphones and the amplitude of the mid-high frequency component of the first sound exceeds the third threshold, the first earphone determines that the first speaker has a malfunction.

[0018] If the number of first microphones whose measured amplitude deviates significantly from the preset amplitude is the same as the number of all first microphones, then the number of first microphones whose measured amplitude deviates significantly from the preset amplitude is zero. This indicates that the first sound was abnormal when it was transmitted to the first microphone. At the same time, the mid-high frequency components of the first sound remain unchanged before and after transmission, indicating that the first sound played by the speaker itself is abnormal. The electronic device can then determine that the first headphone speaker has malfunctioned.

[0019] According to the first aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, the first earphone determines that the first earphone is faulty. Specifically, the first earphone compares a first frequency response value with a second frequency response value. If the deviation between the first frequency response value and the second frequency response value exceeds a fifth threshold, the first earphone is determined to be faulty. The first frequency response value is obtained by the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound, and the second frequency response value is a preset value.

[0020] The acoustic parameters (e.g., frequency response) of the acoustic transmission path are affected by the acoustic cavity structure within the first earphone. If this acoustic cavity structure is abnormal (e.g., the first earphone experiences a blockage), the acoustic parameters of the acoustic transmission path will also change. When the acoustic cavity structure is normal, the first earphone detects the frequency response of the acoustic transmission path as a second frequency response value. The first earphone can detect the frequency response of the current acoustic transmission path (first frequency response value). If the acoustic cavity structure is abnormal, the deviation between the first frequency response value and the second frequency response value will be large; if the acoustic cavity structure is normal, the deviation between the first frequency response value and the second frequency response value will be small.

[0021] Therefore, electronic devices can determine whether the first earphone has malfunctioned by comparing the calculated acoustic parameters (first frequency response value) with the preset acoustic parameters (second frequency response value).

[0022] According to the first aspect, in one possible implementation, the first earphone is further provided with an ear cover, and the method further includes: the first earphone acquiring a frequency response value corresponding to the ear cover, and performing compensation calculation on the frequency response value corresponding to the ear cover.

[0023] The ear tips on the first earphone can affect the sound quality received by the first microphone; for example, the ear tips can affect the amplitude of low-frequency components in the sound signal. Therefore, the electronic device can preset reference frequency response values ​​for different sizes of ear tips. When the electronic device detects that the earphone is equipped with ear tips, it can obtain the frequency response value corresponding to that ear tip, perform compensation calculations on that frequency response value, and avoid affecting the accuracy of the judgment result due to amplitude deviation caused by the ear tips affecting the acoustic transmission path.

[0024] According to the first aspect, in one possible implementation, the first sound includes a plurality of mid-to-high frequency sound signals, which are single-frequency signals with different frequencies; or, the first sound includes a plurality of mid-to-high frequency points.

[0025] The first earphone can acquire multiple amplitude values ​​of the mid-to-high frequency components from multiple sound signals. The electronic device can acquire these multiple amplitude values ​​and, based on these multiple amplitude values, repeatedly determine whether the first earphone has experienced a device malfunction.

[0026] It should be noted that, in the absence of conflict, the features in the various embodiments of the first aspect can be combined with each other, and any combination of features in different embodiments is also within the protection scope of this application. That is to say, the various embodiments described above can also be arbitrarily combined according to actual needs.

[0027] Secondly, a fault detection method is provided, applied to an audio system. The audio system includes a headphone case and headphones, the headphones including a first headphone and a second headphone. The headphone case is used to house the first headphone and the second headphone. The headphone case is closed. The first headphone is provided with a first speaker and a first microphone, and the second headphone is provided with a second microphone. The headphone fault detection method includes: the first headphone detecting the first headphone and the second headphone being located in the headphone case; the first headphone controlling the first speaker to play a first sound; and the first headphone receiving the first sound through the first microphone. The second earphone receives a second sound; while the first earphone plays the first sound through its first speaker, the second earphone receives a third sound through its second microphone; the second earphone sends the third sound to the first earphone; if one or more of the following conditions are met, the first earphone determines that either the first earphone or the second earphone is faulty, and the amplitude of the first frequency component of the second sound deviates from the amplitude of the first frequency component of the first sound by more than a first threshold, or the amplitude of the first frequency component of the third sound deviates from the amplitude of the first frequency component of the first sound by more than a second threshold, then the first earphone determines that either the first earphone or the second earphone is faulty, and the amplitude of the first frequency component of the first sound is a preset value.

[0028] Because the headphone case creates a stable environment when closed, the acoustic transmission path from the first speaker of the first earphone to its first microphone is a relatively stable first acoustic transmission path. Similarly, the acoustic transmission path from the first speaker of the first earphone to the second microphone of the second earphone is a relatively stable second acoustic transmission path. When both the first and second earphones are in the closed case, sound emitted by the first earphone can be transmitted from its first speaker to its first microphone, and vice versa. A malfunction in the first earphone will cause changes in the acoustic parameters (e.g., frequency response) of the first acoustic transmission path, resulting in changes in the amplitude of some frequency components of the first sound passing through this path. If the earphone speaker malfunctions, the energy of the sound emitted by the speaker (which can be reflected in the sound amplitude) decreases, thus reducing the amplitude of the first sound emitted by the speaker. If the earphone microphone malfunctions, the energy of the sound received by the microphone decreases, thus reducing the amplitude of the first sound received by the microphone. The amplitudes of different frequency components of the first sound (including low-frequency components and mid-to-high frequency components greater than 200Hz) are preset (or pre-stored) in an electronic device (including at least one of headphones, terminal devices, and headphone cases). Therefore, the electronic device can determine whether the second headphones have malfunctioned by comparing the amplitude of the sound measured by the second headphones with the amplitude of the first sound preset by the second headphones.

[0029] The electronic device can also determine whether the first earphone has malfunctioned by comparing the amplitude of the sound measured by the first earphone with the amplitude of the first preset sound of the first earphone.

[0030] According to the second aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, and the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically including: if the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound exceeds a third threshold, but the deviation between the amplitude of the mid-high frequency component of the third sound and the amplitude of the mid-high frequency component of the first sound does not exceed a fourth threshold, then the first earphone determines that the first microphone is faulty.

[0031] The electronic device acquires the number of first microphones whose measured amplitude deviates significantly from the preset amplitude of the first earphone, and then acquires the number of first microphones whose measured amplitude deviates less from the preset amplitude of the first earphone; the electronic device acquires the number of second microphones whose measured amplitude deviates significantly from the preset amplitude of the second earphone, and then acquires the number of second microphones whose measured amplitude deviates less from the preset amplitude of the second earphone.

[0032] By analyzing the difference between the number of first microphones with large amplitude deviations and the number of first microphones with small amplitude deviations, the specific component causing the first earphone malfunction can be determined; similarly, by analyzing the difference between the number of second microphones with large amplitude deviations and the number of second microphones with small amplitude deviations, the specific component causing the second earphone malfunction can be determined.

[0033] The electronic device acquires information on one or more first microphones whose measured amplitude deviates significantly from the preset amplitude of the first earphone. The electronic device then acquires information on one or more second microphones whose measured amplitude deviates slightly from the preset amplitude of the second earphone. The electronic device can then determine that the first microphone in the first earphone with the significant amplitude deviation from the preset amplitude is faulty.

[0034] According to the second aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, and the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically including: if the deviation between the amplitude of the mid-high frequency component of the third sound and the amplitude of the mid-high frequency component of the third sound exceeds a third threshold, but the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound does not exceed a fourth threshold, then the first earphone determines that the second microphone is faulty.

[0035] The electronic device acquires information on one or more second microphones whose measured amplitude deviates significantly from a preset amplitude value, and then acquires information on one or more first microphones whose measured amplitude deviates less significantly from a preset amplitude value. The electronic device can then determine that the second microphone in the first earphone with the largest measured amplitude deviation from the preset amplitude value is faulty.

[0036] According to the second aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, and the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically including: if the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound exceeds a third threshold, and the deviation between the amplitude of the mid-high frequency component of the third sound and the amplitude of the mid-high frequency component of the first sound exceeds a fourth threshold, then the first earphone determines that the first speaker is faulty.

[0037] If the number of first microphones with significantly different amplitude values ​​from the preset amplitude values ​​acquired by the electronic device is the same as the number of all first microphones, and the number of second microphones with significantly different amplitude values ​​from the preset amplitude values ​​acquired by the electronic device is the same as the number of all second microphones, then the number of first microphones with significantly different amplitude values ​​from the preset amplitude values ​​acquired by the electronic device is zero, and the number of second microphones with significantly different amplitude values ​​from the preset amplitude values ​​acquired by the electronic device is zero. This indicates that the first sound was abnormal when it was transmitted to the first microphone. Furthermore, the mid-to-high frequency components of the first sound remained unchanged before and after transmission, indicating that the first sound played by the speaker itself was abnormal. Therefore, the electronic device can determine that the first headphone speaker is malfunctioning.

[0038] According to the second aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, and the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically, if the deviation between the amplitude of the low-frequency component of the second sound and the amplitude of the low-frequency component of the first sound exceeds the first threshold, or the deviation between the amplitude of the low-frequency component of the third sound and the amplitude of the low-frequency component of the first sound exceeds the second threshold, then the first earphone determines that a jack blockage fault has occurred in the first earphone.

[0039] If a loudspeaker experiences a blockage, the amplitude of the low-frequency component of the first sound passing through the second acoustic transmission path changes. The low-frequency component refers to sound components with frequencies less than or equal to a specific frequency (e.g., 200Hz), such as the 160Hz sound component.

[0040] According to the second aspect, in one possible implementation, the frequency of the first sound includes multiple frequency points.

[0041] The second earphone can acquire multiple amplitude values ​​of the low-frequency components of sound, including multiple frequency points. The electronic device can acquire these multiple amplitude values ​​and determine multiple times whether the first earphone has a blocked jack malfunction based on these multiple amplitude values.

[0042] The electronic device can compare the amplitude of the low-frequency component of the second sound with the amplitude of the low-frequency component of the first sound preset in the first earphone, or the electronic device can compare the amplitude of the low-frequency component of the third sound with the amplitude of the low-frequency component of the first sound preset in the second earphone to determine whether the first earphone has a blocked jack fault.

[0043] According to the second aspect, in one possible implementation, if one or more of the following conditions are met: the amplitude of the first frequency component of the second sound deviates from the amplitude of the first frequency component of the first sound by more than a first threshold, or the amplitude of the first frequency component of the third sound deviates from the amplitude of the first frequency component of the first sound by more than a second threshold, then the first earphone determines that the first earphone or the second earphone is faulty. Specifically, this includes: the first earphone comparing a first frequency response value with a second frequency response value, and a third frequency response value with a fourth frequency response value; if one or more of the following conditions are met: the deviation of the first frequency response value from the second frequency response value exceeds a fifth threshold, or the deviation of the third frequency response value from the fourth frequency response value exceeds a sixth threshold, then the first earphone or the second earphone is determined to be faulty; wherein, the first frequency response value is obtained by the deviation of the amplitude of the first frequency component of the second sound from the amplitude of the first frequency component of the first sound, the second frequency response value and the fourth frequency response value are preset values, and the third frequency response value is obtained by the deviation of the amplitude of the first frequency component of the third sound from the amplitude of the first frequency component of the first sound.

[0044] The first acoustic parameter (e.g., first frequency response) of the first acoustic transmission path in the first earphone can be calculated by the deviation (e.g., difference, ratio, etc.) between the amplitude of the sound input to the first acoustic transmission path and the amplitude of the sound output to the first acoustic transmission path. The electronic device can calculate the first acoustic parameter by the deviation between the amplitude of the sound measured by the first earphone and the amplitude of the first sound.

[0045] The second acoustic parameter (e.g., third frequency response) of the second acoustic transmission path in the second earphone can be calculated by the deviation (e.g., difference, ratio, etc.) between the amplitude of the sound input to the second acoustic transmission path and the amplitude of the sound output to the second acoustic transmission path. The electronic device can calculate the second acoustic parameter by the deviation between the amplitude of the sound measured by the second earphone and the amplitude of the first sound.

[0046] The acoustic parameters of the first acoustic transmission path are preset in the electronic device and are the second frequency response value; the acoustic parameters of the second acoustic transmission path are preset in the electronic device and are the fourth frequency response value.

[0047] Therefore, the electronic device can determine whether the first earphone has malfunctioned by comparing the measured first acoustic parameter with the preset acoustic parameter value. Similarly, the electronic device can determine whether the second earphone has malfunctioned by comparing the measured second acoustic parameter with the preset acoustic parameter value.

[0048] It should be noted that, in the absence of conflict, the features in the various embodiments of the second aspect can be combined with each other, and any combination of features in different embodiments is also within the scope of protection of this application. That is to say, the various embodiments described above can also be arbitrarily combined according to actual needs.

[0049] Thirdly, a fault detection method is provided, applied to an audio system. The audio system includes an earphone case and earphones. The earphones include a first earphone and a second earphone. The earphone case is used to house the first earphone and the second earphone. The earphone case is closed. The first earphone is provided with a first speaker, and the second earphone is provided with a second microphone. The earphone fault detection method includes: the first earphone detecting the first earphone, and the second earphone being located in the earphone case; the first earphone controlling the first speaker to play a first sound; the second earphone receiving a third sound through the second microphone while the first speaker is playing the first sound; the second earphone sending the third sound to the first earphone; if the deviation between the amplitude of a first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, then the first earphone determines that the first earphone or the second microphone is faulty.

[0050] The amplitude of the first frequency component of the first sound is a preset value.

[0051] Because the headphone case creates a stable environment when closed, the acoustic transmission path from the first speaker of the first earphone to the second microphone of the second earphone is a relatively stable acoustic transmission path. When the first and second earphones are in the headphone case in the closed state, the sound emitted by the first earphone can be transmitted from the first speaker of the first earphone to the second microphone of the second earphone.

[0052] The first headphone malfunction will cause the acoustic transmission path to change, which in turn will cause changes in the acoustic parameters (such as frequency response) of the acoustic transmission path.

[0053] If the headphone speaker malfunctions, the energy of the sound it transmits (which can be represented by the sound amplitude) decreases, therefore the amplitude of the first sound played by the headphone speaker will decrease. If the headphone microphone malfunctions, the energy of the sound received by the headphone microphone decreases, therefore the amplitude of the first sound received by the headphone microphone will decrease.

[0054] The amplitudes of different frequency components of the first sound (including low-frequency components and mid-to-high frequency components greater than 200Hz) are preset (or pre-stored) in an electronic device (including at least one of headphones, terminal devices, and headphone cases). Therefore, the electronic device can determine whether the second or first headphones have malfunctioned by comparing the amplitude of the sound measured by the second headphones with the amplitude of the first sound preset by the second headphones.

[0055] According to the third aspect, in one possible implementation, the first frequency component is specifically a mid-to-high frequency component; the number of the second microphones is multiple; if the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, then the first earphone determines that the first earphone is faulty or the second microphone is faulty, specifically including: if the deviation between the amplitude of the mid-to-high frequency component of the third sound and the amplitude of the mid-to-high frequency component of the first sound exceeds a fourth threshold, then the first earphone determines that the first earphone is faulty or the second microphone is faulty.

[0056] A fault in the first earphone device will cause a significant change in the amplitude of the mid-to-high frequency components of the first sound passing through the acoustic transmission path, while a malfunction in the first earphone's jack will cause a smaller or no change in the amplitude of the mid-to-high frequency components of the first sound passing through the acoustic transmission path.

[0057] Therefore, the electronic device can compare the amplitude of the mid-high frequency components of the sound measured by the second microphone of the second earphone with the amplitude of the mid-high frequency components of the preset first sound to determine whether the first earphone or the second earphone has experienced a device malfunction.

[0058] Using multiple secondary microphones, the electronic device detected different manifestations of malfunctions in different headphone components.

[0059] If the headphone speaker malfunctions, the electronic device detects that the amplitude of the mid-to-high frequency components of the sound measured by each second microphone deviates significantly from the preset corresponding amplitude.

[0060] If the headphone microphone malfunctions, the electronic device detects that the amplitude of the mid-to-high frequency components of the sound measured by one or more second microphones deviates significantly from the preset corresponding amplitude. The electronic device also detects that the amplitude of the mid-to-high frequency components of the sound measured by one or more second microphones deviates slightly from the preset corresponding amplitude.

[0061] The electronic device acquires the number of second microphones whose measured amplitude deviates significantly from the preset amplitude, and then acquires the number of second microphones whose measured amplitude deviates less significantly from the preset amplitude. By analyzing the difference between these two numbers, the electronic device can determine whether the problem lies with the first headphone speaker or the second headphone microphone.

[0062] According to a third aspect, in one possible implementation, if the deviation between the amplitude of the mid-high frequency component of the third sound and the amplitude of the mid-high frequency component of the first sound exceeds a fourth threshold, the first earphone determines that the first earphone is faulty or the second microphone is faulty. Specifically, if one or more of the plurality of second microphones receive a second microphone whose amplitude of the mid-high frequency component of the third sound and the amplitude of the mid-high frequency component of the first sound does not exceed the fourth threshold, the first earphone determines that the second microphone among the plurality of second microphones whose deviation exceeds the fourth threshold is faulty.

[0063] The electronic device acquires information on one or more second microphones whose measured amplitude deviates significantly from a preset amplitude value, and then acquires information on one or more second microphones whose measured amplitude deviates less significantly from a preset amplitude value. The electronic device can then determine that the second microphone in the first earphone with the largest amplitude deviation from the preset amplitude value is faulty.

[0064] According to the third aspect, in one possible implementation, if the deviation between the amplitude of the mid-high frequency component of the third sound and the amplitude of the mid-high frequency component of the first sound exceeds a fourth threshold, the first earphone determines that the first earphone is faulty or the second microphone is faulty. Specifically, if the deviation between the amplitude of the mid-high frequency component of the third sound and the amplitude of the mid-high frequency component of the first sound received by each of the plurality of second microphones exceeds the fourth threshold, the first earphone determines that the first speaker of the first earphone is faulty.

[0065] The electronic device detects that the number of second microphones with significantly different amplitude values ​​from the preset amplitude values ​​is the same as the total number of second microphones. Conversely, the electronic device detects that the number of second microphones with smaller amplitude values ​​from the preset amplitude values ​​is zero. This indicates that the first sound was abnormal when it was transmitted to the first microphone. Furthermore, the mid-to-high frequency components of the first sound remained unchanged before and after transmission, indicating that the first sound played by the speaker itself was abnormal. Therefore, the electronic device can determine that the first headphone speaker is malfunctioning.

[0066] According to the third aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically including: if the deviation between the amplitude of the low frequency component of the third sound and the amplitude of the low frequency component of the first sound exceeds the second threshold, then the first earphone determines that the first earphone has a jack blockage fault.

[0067] If a loudspeaker experiences a blockage, the amplitude of the low-frequency component of the first sound passing through that acoustic transmission path will change. The low-frequency component refers to sound components with frequencies less than or equal to a specific frequency. For example, a specific frequency might be 200Hz, and sound components with frequencies less than or equal to that frequency might be, for example, 160Hz.

[0068] According to the third aspect, in one possible implementation, the frequency of the first sound includes multiple frequency points.

[0069] The electronic device can compare the amplitude of the low-frequency component of the sound measured by the second earphone microphone with the amplitude of the low-frequency component of the preset first sound to determine whether the first earphone has a blocked jack fault.

[0070] According to a third aspect, in one possible implementation, if the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, the first earphone determines that the first earphone is faulty or the second microphone is faulty. Specifically, the first earphone compares a first frequency response value with a second frequency response value. If the deviation between the first frequency response value and the second frequency response value exceeds a fifth threshold, the first earphone is determined to be faulty or the second microphone is faulty. The first frequency response value is obtained by the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound, and the second frequency response value is a preset value.

[0071] The acoustic parameters (e.g., frequency response) of the acoustic transmission path from the first headphone speaker to the second headphone microphone can be calculated by the deviation (e.g., difference, ratio, etc.) between the amplitude of the sound input to the acoustic transmission path and the amplitude of the sound output to the acoustic transmission path. The electronic device can calculate the acoustic parameters (first frequency response value) by the deviation between the amplitude of the sound measured by the second headphone and the amplitude of the first sound.

[0072] The acoustic parameters (second frequency response value) of the acoustic transmission path (also known as the system) are preset in the electronic device. When the first frequency component is a low frequency component, the electronic device can determine whether the first earphone has malfunctioned by comparing the calculated acoustic parameters (first frequency response value) with the preset acoustic parameters (second frequency response value).

[0073] When the first frequency component is a mid-to-high frequency component, the electronic device can determine whether the second headphone speaker has malfunctioned by comparing the calculated acoustic parameters with the preset acoustic parameter values.

[0074] It should be noted that, in the absence of conflict, the features in the various embodiments of the third aspect can be combined with each other, and any combination of features in different embodiments is also within the protection scope of this application. That is to say, the multiple embodiments described above can also be arbitrarily combined according to actual needs.

[0075] Fourthly, an audio system is provided, comprising: headphones, a headphone case for housing the headphones, the headphone case being closed, and the headphones being configured to perform the methods described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, and any possible implementation of the third aspect.

[0076] Fifthly, an earphone is provided, the earphone including one or more speakers, one or more microphones, one or more memories, and one or more processors; the speakers are used to play a first sound, the microphones are used to receive the first sound played by the speakers, the memories are coupled to the one or more processors, the memories are used to store computer program code including computer instructions, and the one or more processors call the computer instructions to cause the earphone to perform the methods described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, and any possible implementation of the third aspect.

[0077] A sixth aspect provides a wireless communication system including a terminal device and an audio system, wherein the terminal device has a communication connection with the audio communication system, the audio system includes headphones and a headphone case for housing the headphones, the headphone case being closed, and the headphones in the audio system performing the method described as in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, and any possible implementation of the third aspect.

[0078] In a seventh aspect, a chip is provided for use in headphones, the chip including one or more processors, the processors being configured to invoke computer instructions to cause the headphones to perform the methods described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, and any possible implementation of the third aspect.

[0079] Eighthly, a computer-readable storage medium is provided, including instructions that, when executed on a headset, cause the headset to perform the methods described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, and any possible implementation of the third aspect.

[0080] Ninthly, a computer program product is provided, comprising computer instructions that, when executed on a headset, cause the headset to perform the method described in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, and any possible implementation of the third aspect. Attached Figure Description

[0081] Figure 1A is a schematic diagram of an earphone and earphone case structure provided in an embodiment of this application;

[0082] Figure 1B is a schematic diagram of an earphone located inside an earphone case according to an embodiment of this application;

[0083] Figure 2 is a schematic diagram of a user wearing a first earphone and a second earphone according to an embodiment of this application;

[0084] Figure 3A is a flowchart of a headphone jack blockage fault detection method provided in an embodiment of this application;

[0085] Figure 3B is a flowchart of another headphone jack blockage fault detection method provided in an embodiment of this application;

[0086] Figure 3C is a flowchart of another headphone jack blockage fault detection method provided in an embodiment of this application;

[0087] Figure 4 is a flowchart of a method for detecting blocked earphone holes in a headphone case provided in an embodiment of this application.

[0088] Figure 5A is a flowchart of a headphone device fault detection method provided in an embodiment of this application;

[0089] Figure 5B is a flowchart of another headphone device fault detection method provided in an embodiment of this application;

[0090] Figure 5C is a flowchart of another headphone device fault detection method provided in an embodiment of this application;

[0091] Figure 6 is a flowchart of a method for detecting headphone device faults in both earphones in an earphone case according to an embodiment of this application.

[0092] Figure 7A is a schematic diagram of an embodiment of this application for detecting earmuff parameters based on frequency response value;

[0093] Figure 7B is a schematic diagram of a headphone fault detection method based on frequency response value or amplitude provided in an embodiment of this application;

[0094] Figure 8 is a schematic diagram of the interface for detecting headphone malfunction in a terminal device according to an embodiment of this application;

[0095] Figure 9 is a schematic diagram of a wireless communication system provided in an embodiment of this application;

[0096] Figure 10 is a schematic diagram of the hardware structure of the terminal device provided in the embodiment of this application. Detailed Implementation

[0097] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be a limitation of this application.

[0098] In the description of the embodiments of this application, unless otherwise stated, "earphones" refers to a pair of earphones, which includes two earphones, and can be described as a left earphone and a right earphone. For example, the state of the earphones being put into the earphone case is described as the state in which both the left and right earphones are put into the earphone case.

[0099] Figure 1A illustrates the headphone and headphone case structure provided in an embodiment of this application. This headphone and headphone case structure belongs to an audio system, which may include a left headphone 10, a right headphone 11, and a headphone case 12. Figure 1A(a) shows the composition of the left headphone 10 and right headphone 11 from a visible external perspective; Figure 1A(b) shows the internal components included in the left headphone 10 and right headphone 11; and Figure 1A(c) shows the main structure of the headphone case 12.

[0100] As shown in Figures 1A(a) and (b), the left earphone 10 may include: a speaker 10-4, an internal microphone 10-5, an external microphone 10-2, a vent 10-3, and a contact 10-1.

[0101] The speaker 10-4 is used to play sound. The internal microphone 10-5 and external microphone 10-2 are used to receive sound, such as the sound played by the speaker 10-4 of the left earphone 10, the sound played by the speaker 11-4 of the right earphone 11, and ambient noise. The internal microphone 10-5, located close to the speaker 10-4, can be a feedback microphone (FBMic) and is primarily used to receive the sound emitted by the speaker 10-4. The vent 10-3 is used to adjust the frequency response of the acoustic transmission system formed by the speaker 10-4 and the microphones of the left earphone 10 (such as the internal microphone 10-5 and the external microphone 10-2). For example, when the vent 10-3 is normally open and not blocked, it can reduce the frequency response of the acoustic transmission system between the speaker 10-4 and the microphone of the left earphone 10 in the low-frequency range (e.g., below 200Hz). When the vent 10-3 is blocked, the low-frequency amplitude of the sound after transmission to the earphone housing increases. Contact 10-1 may include a positive metal plate and a negative metal plate for contacting contact 10-1 with contacts in earphone case 12, thereby enabling communication between left earphone 10 and earphone case 12, and enabling earphone case 12 to charge left earphone 10.

[0102] In this embodiment, the acoustic transmission path, also known as the acoustic transmission system, refers to the transmission path from the headphone speaker to the headphone microphone. The headphone speaker and microphone can be components on the same headphone or on different headphone devices. For example, the transmission path from the left headphone speaker to the left headphone microphone constitutes one acoustic transmission system, while the transmission path from the left headphone speaker to the right headphone microphone constitutes another acoustic transmission system. Even if the speaker and microphone are located in the same headphone, different microphones and the same speaker can still form different acoustic transmission systems. For example, the transmission path from the left headphone speaker to the internal microphone of the left headphone constitutes one acoustic transmission system, while the transmission path from the left headphone speaker to the external microphone of the left headphone constitutes another acoustic transmission system. In this embodiment, for a given speaker and a given microphone, the acoustic transmission system they form is also determined. Therefore, the frequency response of this acoustic transmission system and the amplitude of the sound picked up by the microphone can be preset in the headphone as reference data for determining whether the headphone has malfunctioned in this embodiment.

[0103] As shown in Figures 1A(a) and (b), the right earphone 11 may include: a speaker 11-4, an internal microphone 11-5, an external microphone 11-2, a vent 11-3, and a contact 11-1.

[0104] The speaker 11-4 is used to play sound. The internal microphone 11-5 and external microphone 11-2 are used to receive sound, such as the sound played by the speaker 11-4 of the right earphone 11, the sound played by the speaker 10-4 of the left earphone 10, and ambient noise. The internal microphone 11-5, located close to the speaker 11-4, can be a feed-behind microphone (FBMic) and is primarily used to receive the sound emitted by the speaker 11-4. The vent 11-3 is used to adjust the frequency response of the acoustic transmission system formed by the speaker 11-4 and the microphones of the right earphone 11 (such as the internal microphone 11-5 and the external microphone 11-2). For example, when the vent 11-3 is normally open and not blocked, it can reduce the frequency response of the acoustic transmission system between the speaker 11-4 and the microphone of the right earphone 11 in the low-frequency range (e.g., below 200Hz). When the vent 11-3 is blocked, the low-frequency amplitude of the sound after transmission to the earphone housing increases. Contact 11-1 may include a positive metal plate and a negative metal plate for contacting contacts in the earphone case 12, thereby enabling communication between the right earphone 11 and the earphone case 12, and enabling the earphone case 12 to charge the right earphone 11.

[0105] As shown in Figure 1A(c), the headphone case 12 may include a left headphone slot 12-3 and a right headphone slot 12-4. A contact 12-1 may be disposed within the left headphone slot 12-3, and a contact 12-2 may be disposed within the right headphone slot 12-4. Contacts 12-1 and 12-2 may include metal contacts and can be used for conducting electricity and transmitting electrical signals.

[0106] When the left earphone 10 is inserted into the left earphone slot 12-3 of the earphone case 12, contact 12-1 in the left earphone slot 12-3 contacts contact 10-1 of the left earphone 10. This contact can be used for communication between the earphone case 12 and the left earphone 10, and also for charging the left earphone 10. When the right earphone 11 is inserted into the right earphone slot 12-4 of the earphone case 12, contact 12-2 in the right earphone slot 12-4 contacts contact 11-1 of the right earphone 11. This contact can be used for communication between the earphone case 12 and the right earphone 11, and also for charging the right earphone 11.

[0107] The earphone case 12 and the earphones can also be equipped with a detector (not shown) for detecting whether the earphones are inserted into the case, such as a magnet provided on the earphone case 12 and the earphones, and a Hall sensor for detecting the magnetic field strength. Additionally, the contact 12-1 in the left earphone slot 12-3 and the contact 10-1 of the left earphone 10 can also cooperate to detect whether the left earphone is inserted into the case. Specifically, when contact 12-1 contacts contact 10-1, the left earphone 10 or the earphone case 12 can determine that the left earphone 10 is in the inserted state. Similarly, the contact 12-2 in the right earphone slot 12-4 and the contact 11-1 of the right earphone 11 can also cooperate to detect whether the right earphone is inserted into the case.

[0108] For the earphone case 12, earphone insertion can include the following two situations: single earphone insertion and dual earphone insertion. Single earphone insertion means that only the left earphone 10 or the right earphone 11 is placed in the earphone case 12; dual earphone insertion means that both the left earphone 10 and the right earphone 11 are placed in the earphone case 12.

[0109] The headphone case 12 may also include a detector (not shown) for detecting whether the headphone case is closed, such as an infrared sensor disposed opposite to the lid and the case body, or a magnet disposed on the lid and the case body and a Hall sensor for detecting the magnetic field strength. The headphone case can determine whether the headphone case is closed by the data obtained by the above detector, and the headphone case can also send the data obtained by the above detector to the headphones, so that the headphones can determine whether the headphone case is closed.

[0110] Figure 1A only exemplarily illustrates the left earphone, right earphone, and earphone case provided in an embodiment of this application. In practical applications, these products may include more or fewer components than illustrated, or combine some components, or separate some components, or have different component arrangements. For example, the left earphone 10 and the right earphone 11 may each include only one microphone, such as only an internal microphone.

[0111] Figure 1B illustrates the state of a pair of earphones inside the earphone case.

[0112] Figure 1B(a) shows a pair of earphones inside an earphone case with the case closed.

[0113] "A pair of earphones located inside the earphone case" means that the pair of earphones are located in the earphone slots. For example, the left earphone 10 is located in the left earphone slot 12-3 of the earphone case 12, and the right earphone 11 is located in the right earphone slot 12-4 of the earphone case 12. When both the left earphone 10 and the right earphone 11 are located in the earphone slots of the earphone case 12, the distance between the left earphone 10 and the right earphone 11 is fixed.

[0114] The lid and body of the headphone case, when closed, form a sealed acoustic cavity structure, which can include any of the following structures:

[0115] The first structure: the left earphone slot 12-3 and the right earphone slot 12-4 are directly connected, together forming a closed cavity with the case cover;

[0116] The second structure: the left earphone slot 12-3 and the right earphone slot 12-4 form two independent closed cavities with the lid of the earphone case.

[0117] The acoustic cavity structure is a defined structure, which can be determined during the design, testing, and production of a pair of earphones and their case, and can remain stable over a long period. This application does not limit the specific structure of the acoustic cavity.

[0118] The earphones and the earphone case can communicate via contact points. For example, the left earphone 10 can communicate with the earphone case 12 via contact 10-1. The left earphone 10 can convert the information to be sent into an electrical signal and send that information to the earphone case 12 via contact 10-1. The earphone case 12 can also convert the information to be sent into an electrical signal and send that information to the left earphone 10 via contact 12-1. Similarly, the right earphone 11 and the earphone case 12 can also communicate with each other via contact points, which will not be described in detail here.

[0119] The earphones and the earphone case can also communicate in other ways. For example, the left earphone 10 can wirelessly communicate with the earphone case 12 via Bluetooth. This application embodiment does not limit the specific communication method between the earphones and the earphone case.

[0120] In this embodiment of the application, the earphone can obtain the status of the earphone case through communication with the earphone case. For example, the left earphone 10 receives an electrical signal sent by the earphone case 12 through contact 10-1, and the processor of the left earphone 10 analyzes the electrical signal to obtain information that the earphone case is in the closed state.

[0121] The earphones can also communicate with the headphone case to send the sound received by the earphones back to the headphone case. For example, the left earphone 10 sends a signal to the headphone case via contact 10-1 indicating that the left earphone microphone has received the sound.

[0122] The earphones can also communicate with the charging case to send other information to the charging case. For example, the left earphone 10 sends its battery level and device status to the charging case via contact 10-1.

[0123] The earphone case can communicate with the earphones to instruct them to perform earphone malfunction detection. For example, if the earphone case 12 receives a long press operation on a button on the earphone case 12, it will send a signal to the left earphone 10 and the right earphone 11 respectively to activate earphone malfunction detection. Alternatively, if the earphone case 12 receives a message from a terminal device instructing the earphones to perform malfunction detection, then the earphone case 12 can instruct the left earphone 10 and the right earphone 11 to perform malfunction detection via Bluetooth.

[0124] The earphone case can also communicate with the earphones to send other information about the earphone case. For example, the earphone case 12 can send the battery level of the earphone case 12 and the device status of the earphone case 12 to the left earphone 10.

[0125] Figure 1B(b) shows the earphones inside the earphone case, with the earphone case in the open position.

[0126] The open state of the headphone case refers to the case lid being open, with both the left earphone slot 12-3 and the right earphone slot 12-4 being open acoustic chamber structures. Figure 1B only exemplarily illustrates the state of the headphones located inside the headphone case according to this embodiment. In practical applications, these products may include more or fewer components than shown, or combine some components, or separate some components, or have different component arrangements. For example, the headphone case 12 may contain only one of the left earphone 10 and the right earphone 11, such as containing only the left earphone 10.

[0127] The earphone shown in Figure 1B(b) is located inside the earphone case, as described in Figure 1B(a) above; the earphone insertion detection method can be found in Figure 1A(c) above; the communication method and content between the earphone and the earphone case can be found in Figure 1B(a) above, and will not be repeated here.

[0128] Figure 2 shows a user wearing the first and second earphones. Earphones can malfunction during use, including at least one of the following: pore blockage or earphone aging.

[0129] Headphone jack blockage manifests as foreign objects blocking the pressure relief holes (including front and rear vents) and sound outlets in the headphones. When the first headphone jack is blocked, the frequency of the first sound transmission remains unchanged. However, after reaching the microphone of the first or second headphone, the energy of the low-frequency components (such as the amplitude of the low-frequency sound) will be abnormally high. Headphone aging manifests as malfunctions in the headphones' components, such as aging of the microphone and / or speaker of the first headphone. Specifically, speaker aging in the first headphone manifests as a decrease in the energy of the first sound played by the speaker, while microphone aging manifests as a decrease in the energy of the second sound received by the microphone.

[0130] Regarding how to conveniently detect headphone malfunctions, embodiments of this application provide a method for headphone malfunction detection. This method can utilize the acoustic cavity structure of the headphone and headphone case to detect headphone jack blockage malfunctions and headphone aging malfunctions.

[0131] With the headphone case closed, the case and headphones form a stable acoustic cavity structure. Because of this stable acoustic cavity structure, the sound played by the headphone speakers has a stable propagation path within the headphone case.

[0132] When the headphone case is open, although the headphones cannot form a stable acoustic cavity with the case, the relative positions of the headphone speakers and microphones are fixed. This ensures a relatively stable sound propagation path within the case. For example, when the headphones are placed in the case, the relative positions of the speaker 10-4 on the left headphone 10 and the microphones on the left and right headphone 11 are fixed, providing a stable sound propagation path from the speaker of the left headphone 10 to the microphones of the left and right headphones. Similarly, when the headphones are placed in the case, a stable sound propagation path also exists from the speaker of the right headphone 11 to the microphones of the left and right headphones.

[0133] If, assuming a stable sound propagation path, the amplitude of the sound received by the microphone on the headphones deviates significantly from the amplitude of the sound emitted by the speaker, it indicates a headphone malfunction. Headphone malfunctions can include jack blockage and component failure.

[0134] When the headphone jack is blocked, the impurities accumulated inside the headphone alter the original acoustic cavity structure, thereby changing the amplitude of the low-frequency components in the sound detected by the microphone.

[0135] A blocked microphone can be detected by comparing the amplitude of the low-frequency components in the sound received by the microphone with the amplitude of the low-frequency components in the sound emitted by the speaker. If so, the problem can be identified as a blocked microphone.

[0136] When a component malfunctions, the acoustic cavity structure formed by the headphone case and the headphones remains unchanged. However, the malfunctioning component affects the playback or reception of sound. For example, the energy (e.g., the amplitude) of the same sound played before and after a speaker malfunctions decreases, and the energy of the same sound received before and after a microphone malfunctions decreases.

[0137] Device malfunctions can be detected by comparing the sound received by the microphone with the sound emitted by the speaker. By determining whether the amplitude of the mid-to-high frequency components in the sound received by the microphone deviates significantly from the amplitude of the mid-to-high frequency components in the sound emitted by the speaker, a microphone malfunction can be detected. If the mid-to-high frequency components in the sound received by the microphone deviate significantly from the mid-to-high frequency components in the sound emitted by the speaker, then the microphone with the significant deviation is identified as faulty. If all microphones exhibit significant deviations, then the speaker is identified as faulty.

[0138] Among them, "large deviation" can be constrained by setting a threshold.

[0139] For example, when the first earphone detects the amplitude of the low-frequency components in the sound, if the deviation exceeds a first threshold, it is considered to have a "significant deviation." When the second earphone detects the amplitude of the low-frequency components in the sound, if the deviation exceeds a second threshold, it is also considered to have a "significant deviation." A microphone with a "significant deviation" is one where the low-frequency components in the received sound deviate significantly from the low-frequency components in the sound emitted by the speaker; a microphone without a "significant deviation" is one where the low-frequency components in the received sound do not deviate significantly from the low-frequency components in the sound emitted by the speaker.

[0140] For example, when the first earphone detects the amplitude of the mid-to-high frequency components in the sound, if the deviation exceeds the third threshold, it is considered to have a "significant deviation." When the second earphone detects the amplitude of the mid-to-high frequency components in the sound, if the deviation exceeds the fourth threshold, it is also considered to have a "significant deviation." A microphone with a "significant deviation" is one where the mid-to-high frequency components in the received sound deviate significantly from those in the sound emitted by the speaker; a microphone without a "significant deviation" is one where the mid-to-high frequency components in the received sound do not deviate significantly from those in the sound emitted by the speaker.

[0141] The headphone fault detection method provided in this application embodiment may include the following three specific detection schemes and their combinations:

[0142] Option 1: After inserting one or both earbuds into the case, use the same earbud (left or right) to play and receive sound, and compare the amplitude of the received sound with the amplitude of the sound emitted by the speaker to determine whether the earbuds are malfunctioning.

[0143] Option 2: After both earphones are placed in the case, one earphone plays sound while the other earphone receives sound. The amplitude of the received sound is compared with the amplitude of the sound emitted by the speaker to determine whether the earphones are malfunctioning.

[0144] Option 3: After both earbuds are placed in the case, one earbud plays sound, and both earbuds receive sound. The amplitude of the sound received by one earbud is compared with the amplitude of the sound emitted by the earbud's speaker, and the amplitude of the sound received by the other earbud is compared with the amplitude of the sound emitted by the earbud's speaker, in order to determine whether the earbuds are malfunctioning.

[0145] The first frequency component may include low-frequency components, in which case the headphone fault detection method can be used to detect jack blockage faults; the first frequency component may also include mid-to-high frequency components, in which case the headphone fault detection method can be used to detect headphone component faults, such as headphone speaker faults or headphone microphone faults.

[0146] The headphone fault detection method provided in the embodiments of this application is described in detail below.

[0147] This application can use the aforementioned Scheme 1, Scheme 2, Scheme 3, or any combination of the three schemes to detect hole blockage faults.

[0148] When the sound outlet of an earphone is blocked, the energy of the sound emitted by the earphone's speaker is mainly concentrated within the earphone's own acoustic cavity structure, with only a small portion of the sound able to propagate through the sound outlet. Based on this, embodiments of this application can detect earphone jack blockage faults using the earphone's internal microphone, further improving the accuracy of the detection.

[0149] The following describes a method for detecting headphone jack blockage in conjunction with Figure 3A. In Figure 3A, the first headphone can be the left headphone 10 or the right headphone 11 in Figure 1A; the headphone case can be the headphone case 12 in Figure 1A. The headphone case is used to house the first headphone. The first headphone includes a first speaker and a first microphone. For example, the first headphone can be the left headphone 10, the first speaker can be the speaker 10-4 of the left headphone in Figure 1A, and the first microphone can be the internal microphone 10-5 of the left headphone in Figure 1A. As another example, the first headphone can be the right headphone 11, the first speaker can be the speaker 11-4 of the right headphone in Figure 1A, and the first microphone can be the internal microphone 11-5 of the right headphone in Figure 1A.

[0150] As shown in Figure 3A, an embodiment of this application provides a method for detecting headphone jack blockage faults, which may include the following specific steps:

[0151] S101. The headphone case is detected to be in the closed state.

[0152] Whether the earphone case is closed can be detected by the earphone case itself or by the earphones.

[0153] Specifically, the headphone case can detect whether it is closed using a sensor (such as an infrared sensor, Hall effect sensor, etc.) and send this information to the headphones. For details on how to detect whether the headphone case is closed, please refer to the description in the embodiment shown in Figure 1A above; it will not be repeated here.

[0154] Specifically, the first earphone can detect that the earphone case is closed by contacting the contacts inside the earphone slot.

[0155] S102. The first earphone has been detected entering the earphone case.

[0156] Specifically, S102 can be executed by the first earphone. For details on how to implement the earphone's insertion detection, please refer to the relevant description in the embodiment shown in Figure 1A above, which will not be repeated here. In some embodiments, S102 can also be executed by the earphone case. The earphone case can detect the earphone entering the case through contact points with the earphone, or it can detect the earphone entering the case through a Hall sensor, infrared sensor, or similar means.

[0157] S103. Control the first speaker of the first earphone to play the first sound.

[0158] The first earphone can play the first sound through the first speaker. Here, the first sound refers to the sound at the first speaker, not the sound at the sound hole, and will not be affected by the earphone's jack blockage.

[0159] The first sound includes low-frequency components. These low-frequency components refer to sound components at frequencies less than or equal to a specific frequency. This specific frequency can be obtained through extensive analysis of headphone jack blockage faults, or it can include frequencies where the amplitude of the sound received by a headphone experiencing a jack blockage fault deviates significantly from the amplitude of the sound received by a non-faulty headphone, such as 200Hz. For example, the low-frequency component may include a sound component at 160Hz.

[0160] The first sound may include multiple frequency points, or it may include multiple low-frequency single-frequency signals.

[0161] In some embodiments, S103 can also be executed by the earphone case, which can control the speaker in the earphone to play the first sound through a communication connection between the earphone case and the earphone (such as a Bluetooth connection or a wired communication connection formed by metal contacts). In some embodiments, S103 can also be executed by a terminal device, which can transmit control signals to the earphone case through a communication connection between itself and the earphone case to control the speaker in the earphone to play the first sound; furthermore, the earphone case controls the speaker in the earphone to play the first sound through a communication connection between itself and the earphone.

[0162] S104. When the first speaker plays the first sound, the second sound is received through the first microphone of the first earphone.

[0163] The first earphone can receive a second sound through the first microphone. This second sound is the first sound played by the first speaker, which is received by the first microphone after passing through the acoustic cavity structure from the first speaker to the first microphone.

[0164] In some embodiments, S104 can be executed by the headphone case, which can control the microphone in the headphones to receive sound through a communication connection between the headphone case and the headphones. In some embodiments, S104 can also be executed by a terminal device, which can transmit control signals to the headphone case through a communication connection between itself and the headphone case to control the microphone in the headphones to receive sound; furthermore, the headphone case controls the microphone in the headphones to receive sound through a communication connection between itself and the headphones.

[0165] S105. Compare the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound, and determine whether the deviation exceeds a first threshold.

[0166] In some embodiments, at least one parameter of the amplitude and phase of the second sound after passing through the acoustic transmission path is different from that of the first sound. For example, the amplitude (amplitude value) of the second sound is different from that of the first sound.

[0167] In some embodiments, the sound received by the microphone (e.g., a first microphone) may include digital signals obtained by analog-to-digital conversion of the audio received by the microphone by headphones (e.g., a first headphone and / or a second headphone), or audio received directly by the microphone without analog-to-digital conversion.

[0168] The second sound received by the first microphone may include an analog-to-digital conversion of the audio received by multiple first microphones to obtain a digital signal. In some embodiments, the second sound received by the first microphone may include audio received by multiple first microphones.

[0169] The second sound received by the first microphone will be affected by changes in the acoustic cavity structure. Therefore, the first earphone can compare the amplitude of the first sound with the amplitude of the second sound to determine whether the first earphone has a blocked hole fault.

[0170] The first earphone can process the received second sound to obtain the amplitude of the low-frequency component in the second sound signal.

[0171] The amplitude of the first frequency component of the first sound may include a preset amplitude. This preset amplitude may be pre-set in the headphones during design, testing, or production, and may represent the amplitude of the low-frequency component of the first sound played by the first speaker when the first headphones are functioning without faults. The amplitude of the low-frequency component of the first sound is also a preset amplitude.

[0172] In some embodiments, the first earphone may be equipped with ear tips that affect the low-frequency components of the second sound received by the first microphone. The first earphone has different preset reference frequency response values ​​for different sized ear tips. The frequency response values ​​of different ear tip parameters differ within a specific frequency range (e.g., 300Hz-600Hz). For example, within the 300Hz-600Hz frequency range, the large ear tip corresponds to the largest frequency response value, the small ear tip to the smallest, and the medium ear tip to a frequency response value between the maximum and minimum values. This specific frequency band is higher than the low-frequency band for detecting earphone jack blockage faults, and the first earphone's detection of ear tip size within this specific frequency band is not affected by earphone jack blockage faults.

[0173] Within this specific frequency range, the first earphone acquires a frequency response value. It then compares this frequency response value with the frequency response values ​​corresponding to different ear tip parameters, and determines the ear tip parameter corresponding to the closest frequency response value as the ear tip parameter for the first earphone. The first earphone then determines the preset amplitude of the first frequency component based on this ear tip parameter.

[0174] The first earphone can acquire a preset amplitude value and compare the deviation between the amplitude of the low-frequency component of the second sound received by the first microphone of the first earphone and the preset amplitude value. For example, the first earphone can calculate the difference between the two amplitude values ​​to obtain the deviation between the two amplitude values, or calculate the ratio between the two amplitude values ​​to obtain the deviation between the two amplitude values.

[0175] The first earpiece determines whether the deviation exceeds a first threshold. If the deviation exceeds the first threshold, the first earpiece executes step S106; if the deviation is less than or equal to the first threshold, the first earpiece executes step S107.

[0176] The first threshold is a threshold for distinguishing between normal and faulty headphones. This threshold may include the difference between the amplitude of the low-frequency component of the second sound received by the first headphone when it malfunctions and the amplitude of the low-frequency component of the second sound received by the first headphone when it is functioning normally, for example, 5 dB. This application does not limit the specific value of the first threshold.

[0177] In some embodiments, S105 can be executed by the headphone case. The headphones can transmit the sound they receive to the headphone case through a communication connection between the headphone case and the headphones. The headphone case may contain a processor or controller, and the headphone case can perform the aforementioned comparison through the processor or controller. In some embodiments, S105 can also be executed by a terminal device. The terminal device can receive the signal transmitted by the headphone case through a communication connection between itself and the headphone case. The terminal device may contain a processor or controller, and the terminal device can perform the aforementioned comparison through the processor or controller.

[0178] S106. It is determined that the first earphone has a blocked hole fault.

[0179] The first earphone determined that it had a blocked port malfunction.

[0180] The first earpiece can also alert the user to any malfunctions and guide them through troubleshooting. For example, the first earpiece might send a message to the terminal device, displaying a message on the terminal device's interface indicating a blocked earpiece jack.

[0181] In some embodiments, S106 can be executed by the headphone case, whereby the earphone can transmit the received sound to the headphone case via a communication connection between the headphone case and the earphone, and the headphone case determines that the first earphone has experienced a jack blockage fault. In some embodiments, S106 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first earphone has experienced a jack blockage fault.

[0182] S107. Confirm that the first earphone is not faulty.

[0183] The first earpiece was confirmed to be normal and there was no blockage fault.

[0184] In some embodiments, S107 can be executed by the headphone case, whereby the earphone can transmit the received sound to the headphone case via a communication connection between the headphone case and the earphone, and the headphone case determines that the first earphone is fault-free. In some embodiments, S107 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first earphone is fault-free.

[0185] Based on the headphone jack blockage fault detection method shown in Figure 3A, a blockage fault in a single headphone can be detected simply by placing it in the headphone case. Even if a user loses one headphone during use, the remaining headphones can still be tested for faults.

[0186] Another headphone jack blockage detection method will be described in detail below with reference to Figure 3B. In Figure 3B, the first headphone can be either the left headphone 10 or the right headphone 11 in Figure 1A; if the first headphone is the left headphone 10, then the second headphone is the right headphone 11; if the first headphone is the right headphone 11, then the second headphone is the left headphone 10; the headphone case can be the headphone case 12 in Figure 1A. The headphone case is used to house the first headphone and the second headphone. The first headphone is provided with a first speaker, and the second headphone is provided with a second microphone. For example, the first headphone can be the left headphone 10, the second headphone can be the right headphone 11, and the second microphone can be the internal microphone 11-5 of the right headphone in Figure 1A. Alternatively, the first headphone can be the right headphone 11, the second headphone can be the left headphone 10, and the second microphone can be the internal microphone 10-5 of the left headphone in Figure 1A.

[0187] As shown in Figure 3B, another headphone jack blockage fault detection method provided in this application embodiment may include the following specific steps:

[0188] S201. The headphone case is detected to be in the closed state.

[0189] The headphone case detects that it is in the closed state. For details, please refer to step S101 in Figure 3A above, which will not be repeated here.

[0190] The first earphone can detect that the earphone case is closed by making contact with the contact points inside the earphone slot.

[0191] The second earphone can detect that the earphone case is closed by contacting the contacts inside the earphone slot.

[0192] S202. The first and second earphones have been detected entering the earphone case.

[0193] The first earphone detects that the first earphone is inside the earphone case. For details, please refer to step S102 in Figure 3A above, which will not be repeated here.

[0194] When the second earbud enters the charging case, a signal indicating that it has entered the case is sent to the first earbud. This signal can be received by the first earbud via a wireless connection (such as Bluetooth) or by the metal contacts between the first earbud and the charging case. Similarly, when the first earbud enters the charging case, a signal indicating that it has entered the case is also sent to the second earbud.

[0195] The second earphone can be detected by a sensor (such as a Hall sensor) that detects its entry into the earphone case, or by contact between the second earphone and the contact points inside the earphone slot. For details on how the second earphone's entry detection is implemented, please refer to the description of the earphone case in Figure 1A(c) above; it will not be repeated here.

[0196] In some embodiments, S202 can also be performed by the headphone case, which can detect the earphone entering the headphone case through contact points with the earphone, or by means of a Hall sensor, infrared sensor, etc.

[0197] S203. Control the first speaker of the first earphone to play the first sound.

[0198] The first earphone controls the first speaker to play the first sound. For details, please refer to step S103 in Figure 3A above, which will not be repeated here.

[0199] In some embodiments, S203 can be executed by the headphone case, which can control the speaker in the headphones to play the first sound through a communication connection between the headphone case and the headphones. In some embodiments, S203 can also be executed by a terminal device, which can transmit a control signal to the headphone case through a communication connection between itself and the headphone case to control the speaker in the headphones to play the first sound; furthermore, the headphone case controls the speaker in the headphones to play the first sound through a communication connection between itself and the headphones.

[0200] S204. When the first speaker plays the first sound, the third sound is received through the second microphone of the second earphone.

[0201] The second earphone can receive a third sound through the second microphone. This third sound is the first sound played by the first speaker, which is received by the second microphone after passing through the acoustic cavity structure from the first speaker to the second microphone.

[0202] In some embodiments, S204 can be executed by the headphone case, which can control the microphone in the headphones to receive sound through a communication connection between the headphone case and the headphones. In some embodiments, S204 can also be executed by a terminal device, which can transmit control signals to the headphone case through a communication connection between itself and the headphone case to control the microphone in the headphones to receive sound; furthermore, the headphone case controls the microphone in the headphones to receive sound through a communication connection between itself and the headphones.

[0203] S205. Compare the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound, and determine whether the deviation exceeds the second threshold.

[0204] In some embodiments, at least one parameter of the amplitude and phase of the third sound after passing through the acoustic transmission path is different from that of the first sound. For example, the amplitude (amplitude value) of the third sound is different from that of the first sound.

[0205] In some embodiments, the sound received by the microphone (e.g., a second microphone) may include digital signals obtained by analog-to-digital conversion of the audio received by the microphone by headphones (e.g., a second pair of headphones), or it may include audio received directly by the microphone without analog-to-digital conversion.

[0206] The second microphone of the second earphone receives the third sound and transmits it to the first earphone via a wireless link. The sound received by the second microphone can be affected by changes in the earphone's acoustic cavity structure. The first earphone can compare the amplitude of the first sound with the amplitude of the third sound received by the second microphone to determine whether the first earphone has experienced a blockage fault.

[0207] In some implementations, the first earphone may be equipped with ear tips. For details on how to determine the preset amplitude of the first frequency component based on different ear tip parameters, please refer to step S105 in Figure 3A above; further details will not be provided here.

[0208] The amplitude of the first frequency component of the first sound may include a preset amplitude. This preset amplitude may be pre-set in the headphones during design, testing, or production, and may represent the amplitude of the low-frequency component of the first sound detected by the first speaker in the absence of a malfunction in the second headphones. The amplitude of the low-frequency component of the first sound is also a preset amplitude.

[0209] The first earphone can acquire the preset amplitude and compare the deviation between the amplitude of the low-frequency component of the third sound received by the second microphone and the preset amplitude. For example, the first earphone can calculate the difference between the two amplitudes to obtain the deviation between the two amplitudes, or calculate the ratio between the two amplitudes to obtain the deviation between the two amplitudes.

[0210] The first earpiece determines whether the deviation exceeds the second threshold. If the deviation exceeds the second threshold, the first earpiece executes step S206; if the deviation is less than or equal to the second threshold, the first earpiece executes step S207.

[0211] The second threshold is a threshold for distinguishing between normal and faulty headphones. This threshold may include the difference between the amplitude of the low-frequency component of the third sound received by the second headphone when it is faulty and the amplitude of the low-frequency component of the third sound received by the second headphone when it is not faulty, for example, 5 dB. The specific value of the second threshold may be the same as the specific value of the first threshold. This application embodiment does not limit the specific value of the second threshold.

[0212] In some embodiments, S205 can be executed by the headphone case. The headphones can transmit the sound they receive to the headphone case through a communication connection between the headphone case and the headphones. The headphone case may contain a processor or controller, and the headphone case can perform the aforementioned comparison through the processor or controller. In some embodiments, S205 can also be executed by a terminal device. The terminal device can receive the signal transmitted by the headphone case through a communication connection between itself and the headphone case. The terminal device may contain a processor or controller, and the terminal device can perform the aforementioned comparison through the processor or controller.

[0213] S206. It is determined that the first earphone has a blocked hole fault.

[0214] The first earphone was determined to have a blocked hole fault. For details, please refer to step S106 in Figure 3A above, which will not be repeated here.

[0215] In some embodiments, S206 can be executed by the headphone case, whereby the earphone can transmit the received sound to the headphone case via a communication connection between the headphone case and the earphone, and the headphone case determines that the first earphone has experienced a jack blockage fault. In some embodiments, S206 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first earphone has experienced a jack blockage fault.

[0216] S207. Confirm that the first earphone is not faulty.

[0217] The first earphone was confirmed to be fault-free. For details, please refer to step S107 in Figure 3A above, which will not be repeated here.

[0218] In some embodiments, S207 can be executed by the headphone case, whereby the headphones can transmit the received sound to the headphone case via a communication connection between the headphone case and the headphones, and the headphone case determines that the first headphones are functioning correctly. In some embodiments, S207 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first headphones are functioning correctly.

[0219] Based on the headphone fault detection method shown in Figure 3B, the two headphones can communicate wirelessly, and one headphone can obtain the sound received by the other headphone to determine whether the headphone has a blocked jack fault.

[0220] Another headphone jack blockage detection method will be described in detail below with reference to Figure 3C. In Figure 3C, the first headphone can be the left headphone 10 or the right headphone 11 in Figure 1A; if the first headphone is the left headphone 10, then the second headphone is the right headphone 11; if the first headphone is the right headphone 11, then the second headphone is the left headphone 10; the headphone case can be the headphone case 12 in Figure 1A. The headphone case is used to house the first headphone and the second headphone. The first headphone is provided with a first speaker and a first microphone, and the second headphone is provided with a second microphone. For example, the first headphone can be the right headphone 11, the first speaker can be the speaker 11-4 of the right headphone in Figure 1A, the first microphone can be the internal microphone 11-5 of the right headphone in Figure 1A, and the second microphone can be the internal microphone 10-5 of the left headphone in Figure 1A. As another example, the first headphone can be the left headphone 10, the first speaker can be the speaker 10-4 of the left headphone in Figure 1A, the first microphone can be the internal microphone 10-5 of the left headphone in Figure 1A, and the second microphone can be the internal microphone 11-5 of the right headphone in Figure 1A.

[0221] As shown in Figure 3C, another headphone jack blockage fault detection method provided in this application embodiment may include the following steps:

[0222] S301. The headphone case is detected to be closed.

[0223] The headphone case detects that it is in the closed state. For details, please refer to step S101 in Figure 3A above, which will not be repeated here.

[0224] The first and second earphones detected that the earphone case was in the closed state. For details, please refer to step S201 in Figure 3B above, which will not be repeated here.

[0225] S302. The first and second earphones have been detected entering the earphone case.

[0226] The first earphone detects that the first earphone is inside the earphone case. For details, please refer to step S102 in Figure 3A above, which will not be repeated here.

[0227] The first earphone detects that the second earphone is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here.

[0228] The second earphone detects that it is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here.

[0229] The second earphone detects that the first earphone is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here.

[0230] In some embodiments, S302 can also be performed by the headphone case, which can detect the earphone entering the headphone case through contact points with the earphone, or the headphone case can detect the earphone entering the headphone case through a Hall sensor, an infrared sensor, or the like.

[0231] S303. Control the first speaker of the first earphone to play the first sound.

[0232] The first earphone controls the first speaker to play the first sound. For details, please refer to step S103 in Figure 3A above, which will not be repeated here.

[0233] In some embodiments, S303 can also be executed by the headphone case, which can control the speaker in the headphones to play the first sound through the communication connection between the headphone case and the headphones. In some embodiments, S303 can also be executed by a terminal device, which can transmit a control signal to the headphone case through the communication connection between itself and the headphone case to control the speaker in the headphones to play the first sound; furthermore, the headphone case controls the speaker in the headphones to play the first sound through the communication connection between itself and the headphones.

[0234] S304. When the first speaker plays the first sound, the second sound is received through the first microphone of the first earphone and the third sound is received through the second microphone of the second earphone.

[0235] The first earphone can receive the second sound through the first microphone. For details, please refer to step S104 in Figure 3A above, which will not be repeated here.

[0236] The second earphone can receive the third sound through the second microphone. For details, please refer to step S204 in Figure 3B above, which will not be repeated here.

[0237] In some embodiments, S304 can also be executed by the headphone case, which can control the microphone in the headphones to receive sound through the communication connection between the headphone case and the headphones. In some embodiments, S304 can also be executed by a terminal device, which can transmit control signals to the headphone case through the communication connection between itself and the headphone case to control the microphone in the headphones to receive sound; furthermore, the headphone case controls the microphone in the headphones to receive sound through the communication connection between itself and the headphones.

[0238] S305. Compare one or more of the deviation between the amplitude of the first frequency component of the second sound received by the first microphone and the amplitude of the first frequency component of the first sound, and the deviation between the amplitude of the first frequency component of the third sound received by the second microphone and the amplitude of the first frequency component of the first sound, and determine whether the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, or whether the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold.

[0239] In some embodiments, the sound received by the microphone (e.g., a first microphone and / or a second microphone) may include digital signals obtained by analog-to-digital conversion of the audio received by the microphone by headphones (e.g., a first headphone and / or a second headphone), or audio received directly by the microphone without analog-to-digital conversion.

[0240] The second microphone of the second earphone receives the third sound and transmits the third sound to the first earphone through the wireless link. For details, please refer to step S205 in Figure 3B above, which will not be repeated here.

[0241] In some implementations, the first earphone may be equipped with ear tips. For details on how to determine the preset amplitude of the first frequency component based on different ear tip parameters, please refer to step S105 in Figure 3A above; further details will not be provided here.

[0242] The amplitude of the first frequency component of the first sound may include a preset amplitude. This preset amplitude may be a value set during the design, testing, or production of the headphones, and may represent the amplitude of the low-frequency component of the first sound played by the first speaker when both the second and first headphones are functioning without faults. The amplitude of the low-frequency component of the first sound is also a preset amplitude.

[0243] The first earphone can acquire preset amplitude values ​​from both the first and second earphones, and compare the deviation between the amplitude of the low-frequency component of the second sound and the preset amplitude value from the first earphone. The first earphone can also compare the deviation between the amplitude of the low-frequency component of the third sound and the preset amplitude value from the second earphone.

[0244] The first earphone determines whether the deviation between the amplitude of the low-frequency component of the second sound and the preset amplitude of the first earphone exceeds a first threshold, or whether the deviation between the amplitude of the low-frequency component of the third sound and the preset amplitude of the second earphone exceeds a second threshold. If the deviation between the amplitude of the low-frequency component of the second sound and the preset amplitude of the first earphone exceeds the first threshold, or the deviation between the amplitude of the low-frequency component of the third sound and the preset amplitude of the second earphone exceeds the second threshold, then the first earphone executes step S306; otherwise, the first earphone executes step S307.

[0245] In some embodiments, S305 can also be executed by the headphone case. The headphones can transmit the sound they receive to the headphone case through a communication connection between the headphone case and the headphones. The headphone case may contain a processor or controller, and the headphone case can perform the aforementioned comparison through the processor or controller. In some embodiments, S305 can also be executed by a terminal device. The terminal device can receive the signal transmitted by the headphone case through a communication connection between itself and the headphone case. The terminal device may contain a processor or controller, and the terminal device can perform the aforementioned comparison through the processor or controller.

[0246] S306. It is determined that the first earphone has a blocked hole fault.

[0247] The first earphone was determined to have a blocked hole fault. For details, please refer to step S106 in Figure 3A above, which will not be repeated here.

[0248] In some embodiments, S306 can also be executed by the headphone case, whereby the headphones can transmit the received sound to the headphone case via a communication connection between the headphone case and the headphones, and the headphone case determines that the first headphone has experienced a jack blockage fault. In some embodiments, S306 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first headphone has experienced a jack blockage fault.

[0249] S307. Confirm that the first earphone is not faulty.

[0250] The first earphone was confirmed to be fault-free. For details, please refer to step S107 in Figure 3A above, which will not be repeated here.

[0251] In some embodiments, S307 can be executed by the headphone case, whereby the headphones can transmit the received sound to the headphone case via a communication connection between the headphone case and the headphones, and the headphone case determines that the first headphones are not faulty. In some embodiments, S307 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first headphones are not faulty.

[0252] Based on the headphone fault detection method shown in Figure 3C, the headphone compares the sounds received by the two headphone microphones, increasing the basis for detecting headphone jack blockage faults. This allows the headphone to detect headphone jack blockage faults more accurately.

[0253] The above-mentioned schemes 1, 2, and 3 can all be used to detect jack blockage faults in both earphones. Figure 4 illustrates how to perform jack blockage detection on both earphones.

[0254] Figure 4 further illustrates a method for detecting blocked holes in both earphones in an earphone case.

[0255] S401. Headphones report customs box status.

[0256] Both the first and second earphones include a communication module. This communication module enables wireless communication (such as Bluetooth communication) between the earphones and the terminal device. The earphones can send information about their location within the earphone case to the terminal device. The earphones can also obtain the earphone case's status information (such as whether it's open or closed) and send this status information back to the terminal device. The earphones can then send the earphone case's status information and the earphone case's status information to a mobile phone. A specific application on the terminal device (such as an earphone malfunction detection application) can display the earphone case's status.

[0257] In some embodiments, S401 can be performed by the headphone case. The headphone case may also include a communication module. This communication module enables wireless communication between the headphone case and the terminal device, allowing the headphone case to send headphone status information (such as whether the headphones are in the headphone case) and headphone case status information to the terminal device.

[0258] S402-1. Terminal equipment determines whether the user has enabled headphone malfunction periodic detection.

[0259] The terminal device can determine whether the user has enabled periodic headphone malfunction detection. If the terminal device determines that the user has enabled periodic detection, then whenever the time set in the detection cycle is reached, the terminal device instructs the headphones to perform malfunction detection and executes the subsequent step S403. If the terminal device determines that periodic detection is not enabled, the terminal device needs to further determine whether the user has enabled malfunction detection and execute the subsequent step S402-2.

[0260] S402-2. The terminal device determines whether the user clicks on the application to trigger the detection function.

[0261] The terminal device receives the user's operation and determines whether the operation triggers headphone malfunction detection. If the operation triggers headphone malfunction detection, the terminal device sends a message to the headphone to enable headphone malfunction detection. Upon receiving this message, the headphone executes the subsequent step S403. For example, the user can operate the headphone malfunction detection application (such as clicking the "Enable Malfunction Detection" button in the headphone malfunction detection application) to instruct the headphone to enable malfunction detection. The user can also choose not to trigger headphone malfunction detection and execute the subsequent step S409.

[0262] S403. Terminal device triggers headphone fault detection.

[0263] The terminal device instructs the earphones to activate earphone malfunction detection. The first earphone performs earphone malfunction detection and proceeds to step S404; the second earphone performs earphone malfunction detection and proceeds to step S405.

[0264] In some embodiments, step S403 can be triggered by the earphone case to detect an earphone malfunction. For example, the earphone case receives a long press operation from a user on a button on the earphone case, which instructs the earphone case to trigger an earphone power-on malfunction detection.

[0265] In some embodiments, step S403 can be triggered by the earphones to detect earphone malfunction. The earphones can detect the current state of the earphone case via a Hall sensor, or they can determine whether the earphones are being worn via a wear sensor. If the earphones detect that the earphones are in the earphone case, and the earphone case is closed, and the earphones are not being worn by the user, then the earphones can automatically perform earphone malfunction detection.

[0266] The earphone case can contain either a first earphone or a second earphone. When the first earphone is present in the earphone case, step S404 can be executed. When the second earphone is present in the earphone case, step S405 can be executed.

[0267] S404. The first earphone speaker plays sounds including different frequencies, and the first earphone microphone picks up the sound.

[0268] The first earphone speaker plays a first sound including different frequencies, which can be received by the microphone of the first earphone. The different frequencies can include sounds less than or equal to a specific frequency (e.g., 160Hz), or multiple frequencies less than or equal to the specific frequency (e.g., sounds including 40Hz, 80Hz, 120Hz, 160Hz, and 200Hz). The sounds less than or equal to the specific frequency can be used to detect faults such as a decrease in low-frequency sound amplitude caused by blockage of the first earphone's sound outlet and / or pressure relief hole.

[0269] Once the earphones detect that they are inside the charging case and determine that the case is closed, they can receive ambient noise from the closed case via their microphone. The earphones can then cancel out this ambient noise upon receiving sound, based on its amplitude.

[0270] S405. The second earphone speaker plays sounds including different frequencies, and the microphone of the second earphone picks up the sound.

[0271] The second earphone speaker plays a fourth sound including different frequencies, which is received by the microphone of the second earphone. For details on how the second earphone speaker plays sound and how the microphone of the second earphone picks up the sound, please refer to the method described in step S404 above.

[0272] The fourth sound has a different frequency from the first sound. This different frequency can include sounds less than or equal to the first frequency (e.g., 200Hz) (e.g., 180Hz), or sounds with multiple frequencies less than or equal to a specific frequency (e.g., sounds with frequencies of 20Hz, 60Hz, 100Hz, 140Hz, and 180Hz). This sound with frequencies less than or equal to the specific frequency can be used to detect faults caused by blockage of the sound outlet and / or pressure relief hole of the first earphone, resulting in a decrease in the amplitude of the low-frequency sound.

[0273] The first and second earphone speakers can play sounds at different frequencies, and the microphone of the second earphone can pick up the first sound played by the second earphone speaker. If the microphone of the second earphone receives the sound played by the first earphone speaker, the second earphone can distinguish and exclude the received sound played by the first earphone speaker.

[0274] In some embodiments, the second headphone microphone can obtain the amplitude of sounds at different frequencies by detecting multiple sound frequencies. The frequencies of the first sound and the fourth sound are different.

[0275] For example, the sound frequencies played by the first headphone speaker include, but are not limited to, one or more of the following frequencies: 80Hz, 120Hz, 160Hz. The sound frequencies played by the second headphone speaker include, but are not limited to, one or more of the following frequencies: 100Hz, 140Hz, 180Hz. After the second headphone receives sound through its microphone, if the second headphone determines that the frequency of the sound belongs to the frequency of the sound played by the first headphone speaker, it can clear the received sound, thereby eliminating interference to the detection of the second headphone.

[0276] For example, a first headphone speaker plays sounds at multiple frequencies, including 40Hz, 80Hz, 120Hz, 160Hz, and 200Hz. A second headphone speaker plays sounds at different frequencies, including 20Hz, 60Hz, 100Hz, 140Hz, and 180Hz. If the second headphone microphone receives a frequency corresponding to the sound played by the first headphone speaker, the second headphone can clear that received sound, thereby eliminating interference with the second headphone's detection.

[0277] The first speaker of the first earphone and the second speaker of the second earphone can play sound in parallel or in sequence. When detecting earphone malfunctions in both earphones within the earphone case, both earphones can simultaneously detect malfunctions without interference, improving the speed of earphone malfunction detection. This application does not limit whether both the first and second earphones play sound.

[0278] S406. The first earphone calculates the frequency response value of the acoustic cavity transmission system based on the sound received by the microphone of the first earphone, and the second earphone calculates the frequency response value of the acoustic cavity transmission system based on the sound received by the microphone of the second earphone.

[0279] The first earphone can acquire the sound received by its microphone and calculate the frequency response value of the acoustic cavity transmission system. For example, if the first sound is a low-frequency sound, the first earphone detects the amplitude of the sound. If the first sound includes both low-frequency and high-frequency components, the first earphone detects the amplitude of the low-frequency component. The first earphone calculates the ratio of the amplitude of the acquired low-frequency component to the amplitude of the low-frequency component in the first sound to obtain the frequency response value of the acoustic cavity transmission system.

[0280] For calculating the frequency response value of the acoustic cavity transmission system of the second earphone, you can refer to the specific method for calculating the frequency response value of the acoustic cavity transmission system of the first earphone, which will not be repeated here.

[0281] Frequency response value refers to the response value of signals of different frequencies after passing through a system. A first or second earphone's speaker plays sounds of different frequencies. This sound is transmitted through an acoustic transmission system with a path from the speaker to the microphone (e.g., from the speaker of the first earphone to the microphone of the first earphone). The earphones receive the received sound data through the microphone (e.g., the first earphones receive the received sound data through the microphone of the first earphone). The data during sound playback is preset data (e.g., sound with a fixed amplitude). The device compares the received data with the preset data to obtain the frequency response value of the acoustic transmission system. This frequency response value is a second frequency response value.

[0282] In some embodiments, step S406 may also involve the terminal device acquiring the sound received by the first headphone microphone and / or the second headphone microphone, acquiring preset data, and calculating the frequency response value of the acoustic cavity transmission system.

[0283] In some embodiments, step S406 may also involve the headphone box acquiring the sound received by the first headphone microphone and / or the second headphone microphone, acquiring preset data, and calculating the frequency response value of the acoustic cavity transmission system.

[0284] S407. The first earphone determines the ear tip parameters based on the frequency response value obtained by the first earphone, and the second earphone determines the ear tip parameters based on the frequency response value obtained by the second earphone.

[0285] The ear tips on the first or second earphone will affect the sound quality received by the microphone, primarily influencing the amplitude of the low-frequency components of the sound signal. Users may change the ear tips on the first earphone, altering the original ear tip parameters. Therefore, different reference frequency response values ​​can be preset for different sizes of ear tips.

[0286] Different ear tip parameters result in different frequency response values ​​within a specific frequency range (e.g., 300Hz-600Hz). For example, within the 300Hz-600Hz range, the larger ear tip corresponds to the largest frequency response value, the smaller ear tip to the smallest, and the medium ear tip to a value between the maximum and minimum. At frequencies greater than or equal to 600Hz, the impact of different ear tip parameters on the frequency response value is relatively small, and the frequency response values ​​are the same for all ear tip parameters. For instance, within this specific frequency range, the first earphone compares its frequency response value with the corresponding frequency response values ​​for different ear tip parameters, and determines the ear tip parameter corresponding to the closest frequency response value as the ear tip parameter for the first earphone.

[0287] This specific frequency band is higher than the low frequency band for detecting headphone jack blockage faults, so the detection of ear tip size by the first and second headphones within this specific frequency band will not be affected by headphone jack blockage faults.

[0288] Based on the size of the ear tips, the headphones store multiple preset frequency response values. Before determining whether a jack blockage fault has occurred, the headphones need to obtain the ear tip size and determine a preset frequency response value from that size. For example, the first headphones have preset frequency response values ​​for three types of ear tips: large, medium, and small. The first headphones compare the frequency response value calculated by the first headphones with the preset frequency response values ​​for the three types of ear tips to determine the size of the first headphones' ear tips. The second headphones determine the ear tip parameters for the first headphones using the same steps as described above, and will not be repeated here. The determination of ear tip parameters based on frequency response values ​​can also be referred to the relevant description in Figure 7A below, and will not be repeated here.

[0289] In some embodiments, step S407 can be performed by the earphone box comparing the preset frequency response values ​​corresponding to the first and second earphones to determine the ear tip parameters. The earphone box has a communication connection with the first and second earphones, and the first and second earphones can send the preset frequency response values ​​and their respective calculated frequency response values ​​to the earphone box.

[0290] In some embodiments, step S407 can also involve the terminal device comparing the preset frequency response values ​​corresponding to the first and second earphones to determine the ear tip parameters. The terminal device has a communication connection with the first and second earphones, and the first and second earphones can send the preset frequency response values ​​and their respective calculated frequency response values ​​to the terminal device.

[0291] In some embodiments, the first and second earphones can each pre-detect ear tip parameters before detecting an earphone malfunction. When detecting an earphone malfunction, the first and second earphones can acquire their historically detected ear tip parameters and determine the corresponding frequency response values. The first and second earphones may also each have preset ear tip parameters; when detecting an earphone malfunction, the first and second earphones acquire their respective preset ear tip parameters and determine their corresponding frequency response values. This application does not limit the specific method for determining the ear tip parameters.

[0292] The headphones are an integrated design, excluding ear tips. After the microphone in the headphones picks up sound, it compares and analyzes it with a preset first sound to determine if the two sounds are different. The headphones then execute the subsequent S408 step.

[0293] S408. The first earphone determines whether the calculated frequency response value is different from the preset frequency response value in the first earphone, and the second earphone determines whether the calculated frequency response value is different from the preset frequency response value in the second earphone.

[0294] The first earphone compares the preset frequency response value with the calculated frequency response value and determines whether the frequency response value in the low-frequency range is different. The second earphone compares the preset frequency response value with the calculated frequency response value and determines whether the frequency response value in the low-frequency range is different. The first earphone is wearing the ear tip detected in step S407, and the preset frequency response value of the first earphone is its normal frequency response value when the ear tip is worn. The second earphone is wearing the ear tip detected in step S407, and the preset frequency response value of the second earphone is its normal frequency response value when the ear tip is worn.

[0295] Taking the first earphone as an example, the methods for determining the earphone include any one or more of the following two methods:

[0296] The first method involves comparing the calculated frequency response value with the frequency response value corresponding to the earcup size in the low-frequency range (e.g., less than or equal to 200Hz). If the deviation between the two values ​​exceeds a fifth threshold (e.g., 5 dB), the first earcup determines that the two frequency response values ​​are different. For details on how this first method is implemented, please refer to Figure 7B(a) below; it will not be elaborated upon here.

[0297] The second method involves dividing the low-frequency band into multiple sub-bands. Within each sub-band, the first earphone determines whether the calculated frequency response value differs from the frequency response value corresponding to the earcup size. For example, the first earphone divides the frequency band below 160Hz into three sub-bands: 0Hz to 65Hz, 65Hz to 100Hz, and 100Hz to 160Hz. The first earphone identifies sub-bands where the difference between two frequency response values ​​is greater than a fifth threshold. If the number of such sub-bands is greater than or equal to a seventh threshold, the first earphone determines that the two frequency response values ​​are different. This seventh threshold includes half the number of all sub-bands. For instance, in the sub-bands 0Hz to 65Hz and 65Hz to 100Hz, if the difference between the frequency response value calculated by the first earphone with the middle earcup and the frequency response value corresponding to the middle earcup is greater than 5dB, and the number of sub-bands with this deviation greater than 5dB is 2 (more than half the number of all sub-bands, 1.5), the first earphone determines that the two frequency response values ​​are different.

[0298] For details on how to implement the second method, please refer to the description in Figure 7B(b) below, which will not be elaborated here.

[0299] For the specific method of determining whether the frequency response value calculated by the second earphone is different from the preset frequency response value in the second earphone, please refer to the first earphone mentioned above, and it will not be repeated here.

[0300] The low-frequency band may include frequencies that distinguish normal headphones from faulty headphones by statistical analysis of a large number of faulty headphones, such as the frequency band less than or equal to 200Hz.

[0301] If the first earphone determines that the calculated frequency response value is different from the frequency response value corresponding to the earcup size, then the first earphone is determined to have a problem with a blocked sound outlet and / or a blocked pressure relief hole. Similarly, if the second earphone determines that the calculated frequency response value is different from the frequency response value corresponding to the earcup size, then the second earphone is determined to have a blocked sound outlet and / or a blocked pressure relief hole, and proceed to step S410. If the first earphone determines that the two frequency response values ​​are the same, then the first earphone is determined to be normal. If the second earphone determines that the two frequency response values ​​are the same, then the second earphone is determined to be normal, and proceed to step S409.

[0302] When the first and / or second earphones are fitted with ear tips or the size of the preset ear tips changes, the first and / or second earphones can determine a preset frequency response value based on the detected size of the ear tips, and compare the preset frequency response value with the calculated frequency response value.

[0303] In some embodiments, step S408 may involve the earphone case determining whether the frequency response value calculated by the first earphone is different from a preset frequency response value in the first earphone, or the earphone case may determine whether the frequency response value calculated by the second earphone is different from a preset frequency response value in the second earphone. The first and second earphones may send the preset frequency response value and the calculated frequency response value to the earphone case.

[0304] In some embodiments, step S408 may also involve the terminal device determining whether the frequency response value calculated by the first earphone is different from the preset frequency response value in the first earphone, and vice versa. The terminal device has a communication connection with both the first and second earphones, and can send the preset frequency response value and the calculated frequency response value to the terminal device.

[0305] The first earphone compares the amplitude of the sound received by the microphone with a preset first sound amplitude. This application embodiment does not limit the specific data used by the earphone to determine whether a jack blockage fault has occurred.

[0306] S409. Fault detection for both the first and second earphones is complete.

[0307] After the first earpiece completes the test or the test terminates, it can send a message indicating that the test is complete to the terminal device. Similarly, after the second earpiece completes the test or the test terminates, it can send a message indicating that the test is complete to the terminal device. The terminal device then displays the message indicating that the test is complete or normal, such as displaying a "test complete" interface on a mobile phone.

[0308] Once the terminal device test is complete, a message indicating "Test complete" or "Earphones are working properly" will be displayed on the terminal device. For example, a "Test complete" screen will be displayed on a mobile phone.

[0309] After the headphone fault detection is completed, the first and / or second earphones can exit the headphone fault detection directly without displaying the detection results.

[0310] S410. The terminal device prompts the user that there is an abnormality and guides the user to clear the fault.

[0311] The earphones send a malfunction message to the terminal device via the communication module. The terminal device displays a message indicating that the earphones may have a blocked sound outlet and / or pressure relief hole, guiding the user through troubleshooting. For example, if the terminal device indicates that the sound outlet and / or pressure relief hole of the first and / or second earphones is blocked, it can prompt the user to use cleaning putty or detergent to clear the blockage in the pressure relief hole. The earphones can then retest for the blockage to determine if it has been resolved.

[0312] When the headphones detect a blockage in the sound outlet and / or pressure relief hole, they can reduce the low-frequency components of the sound played by the speaker to prevent the sound from becoming too blurry or distorted due to excessively high low-frequency components. For example, when the first headphones detect a blockage in their sound outlet and / or pressure relief hole, they detect the amplitude of the low-frequency components of the received sound and calculate the deviation between the amplitude of the low-frequency components and the amplitude of the low-frequency components of the first sound. Based on this deviation, the first headphones reduce the amplitude of the low-frequency components of the sound played by the speaker. This application does not limit the processing method after the headphones detect a fault.

[0313] The earphones and charging case can also alert the user to any malfunctions and guide them in troubleshooting. For example, the earphones can alert the user to the malfunction via voice announcements. Similarly, the charging case can alert the user to any malfunctions via flashing lights. This application does not limit the specific device used to alert the user to earphone malfunctions.

[0314] Based on the method shown in Figure 4 for detecting earphone jack blockage faults in both earphones in the earphone case, this method allows for the detection of earphone jack blockage faults in both earphones, improving the detection efficiency. Furthermore, when ear tips are worn in the earphones, the influence of the ear tips on the sound played by the earphone speakers can be avoided.

[0315] This application can use the aforementioned Scheme 1, Scheme 2, Scheme 3, or any combination of the three schemes to detect headphone device faults.

[0316] The sound received by the microphone in headphones is related to the acoustic cavity structure, the sound playback capability of the headphone speaker, and the sound reception capability of the headphone microphone. For the mid-to-high frequency components of the sound played by the headphone speaker, changes to the acoustic cavity structure (such as blocking the headphone jack) have a relatively small impact on the mid-to-high frequency components of the sound reaching the headphone microphone. Therefore, when detecting the mid-to-high frequency components of the sound played by the speaker, the influence of changes in the acoustic cavity structure on these components can be disregarded.

[0317] The ability of a headphone speaker to reproduce sound refers to its capacity to output an audio signal. The stronger the speaker's sound reproduction capability, the smaller the difference between the amplitude of the sound reproduced by the speaker and the amplitude of the sound set in the input audio signal.

[0318] The ability of a headphone microphone to receive sound refers to its capacity to pick up sound. The stronger the microphone's sound-receiving ability, the smaller the difference between the amplitude of the sound received and the amplitude of the sound received by the microphone.

[0319] When the mid-to-high frequency components of the sound received by the headphones change, this can be due to a speaker malfunction (such as speaker aging), which alters the mid-to-high frequency components of the sound played by the headphones; or it can be due to a microphone malfunction (such as microphone aging), which alters the mid-to-high frequency components of the sound received by the microphone. The malfunctioning device changes the amplitude of the mid-to-high frequency components of the sound detected by the headphones.

[0320] Headphones can determine whether a speaker or microphone is faulty by analyzing the characteristics of the sound received by multiple microphones: if the sound received by all microphones changes, the headphones determine that the speaker is faulty; if the sound received by any microphone does not change, the headphones determine that the microphone that received the changed sound is faulty.

[0321] The following describes a fault detection method for an earphone device in detail with reference to Figure 5A. In Figure 5A, the first earphone can be the left earphone 10 or the right earphone 11 in Figure 1A; the earphone case can be the earphone case 12 in Figure 1A. The earphone case is used to house the first earphone. The first earphone is provided with a first speaker and a first microphone, which can be multiple microphones. For example, when the first earphone is the left earphone 10, the first speaker is the speaker 10-4 of the left earphone in Figure 1A, and the first microphone can be one or more internal microphones 10-5 of the left earphone in Figure 1A, or it can be one or more external microphones 10-2 of the left earphone in Figure 1A. As another example, when the first earphone is the right earphone 11, the first speaker is the speaker 11-4 of the right earphone in Figure 1A, and the first microphone can be one or more internal microphones 11-5 of the right earphone in Figure 1A, or it can be one or more external microphones 11-2 of the right earphone in Figure 1A.

[0322] As shown in Figure 5A, a headphone device fault detection method provided in this application embodiment may include the following steps:

[0323] S501. The headphone case is detected to be closed.

[0324] The headphone case detects that it is in the closed state. For details, please refer to step S101 in Figure 3A above, which will not be repeated here.

[0325] The first earphone detects that the earphone case is in the closed state. For details, please refer to step S201 in Figure 3B above, which will not be repeated here.

[0326] S502. The first earphone has been detected entering the earphone case.

[0327] The first earphone detects that the first earphone is inside the earphone case. For details, please refer to step S102 in Figure 3A above, which will not be repeated here.

[0328] In some embodiments, S502 can also be performed by the headphone case, which can detect the earphone entering the headphone case through contact points with the earphone, or by means of a Hall sensor, infrared sensor, etc.

[0329] S503. Control the first speaker of the first earphone to play the first sound.

[0330] The first earphone can play the first sound through the first speaker.

[0331] The first sound includes mid-to-high frequency components. These mid-to-high frequency components refer to sound components above a specific frequency. This specific frequency can be obtained through extensive headphone component failure analysis, or it can include frequencies where the amplitude of the sound received by a faulty headphone deviates significantly from the amplitude of the sound received by a fault-free headphone, such as 200Hz. For example, the mid-to-high frequency components may include a 2000Hz sound component. The first sound may include multiple frequency points or multiple low-frequency single-frequency signals.

[0332] In some embodiments, S503 can also be executed by the headphone case, which can control the speaker in the headphones to play the first sound through the communication connection between the headphone case and the headphones. In some embodiments, S503 can also be executed by a terminal device, which can transmit a control signal to the headphone case through the communication connection between itself and the headphone case to control the speaker in the headphones to play the first sound; furthermore, the headphone case controls the speaker in the headphones to play the first sound through the communication connection between itself and the headphones.

[0333] S504. While the first sound is played by the first speaker, multiple second sounds are received through the first microphone of multiple first headphones.

[0334] The first earphone can receive a second sound through multiple first microphones. This second sound is the sound received by the multiple first microphones after the first sound played by the speaker passes through an acoustic cavity structure from the first speaker to the multiple first microphones. The multiple first microphones may include one or more internal microphones and one or more external microphones.

[0335] In some embodiments, S504 can also be executed by the headphone case, which can control multiple microphones in the headphones to receive sound through a communication connection between the headphone case and the headphones. In some embodiments, S504 can also be executed by a terminal device, which can transmit control signals to the headphone case through a communication connection between itself and the headphone case to control multiple microphones in the headphones to receive sound; furthermore, the headphone case controls multiple microphones in the headphones to receive sound through a communication connection between itself and the headphones.

[0336] S505. Compare the deviations between the amplitudes of the first frequency components of the plurality of second sounds and the amplitudes of the first frequency components of the first sound, and determine whether the plurality of deviations exceed a third threshold.

[0337] In some embodiments, at least one parameter of the amplitude and phase of the second sound after passing through the acoustic transmission path is different from that of the first sound. For example, the amplitude (amplitude value) of the second sound is different from that of the first sound.

[0338] The second sound received by the first earpiece from the first microphone may include a digital signal obtained by performing an analog-to-digital conversion on the audio received by the first microphone. This digital signal is the plurality of sounds.

[0339] The first earphone can process the received second sound to obtain the amplitude of the mid-to-high frequency components of the multiple second sounds.

[0340] The amplitude of the first frequency component of the first sound may include a preset value. This preset amplitude may be pre-set in the headphones during design, testing, or production, and may represent the amplitude of the mid-to-high frequency components of the first sound played by the first speaker when the first headphones are functioning without faults. The amplitude of the mid-to-high frequency components of the first sound is also a preset amplitude.

[0341] The first earphone can detect a preset amplitude and compare the amplitudes of the mid-to-high frequency components of the multiple second sounds with the preset amplitudes.

[0342] If the first earpiece determines that any of the multiple deviations exceeds a third threshold, then the first earpiece determines that the first earpiece is faulty. Further, the first earpiece determines that if the amplitude of the mid-to-high frequency component of the second sound received by each of the multiple first microphones deviates from the amplitude of the mid-to-high frequency component of the first sound exceeding the third threshold, then it indicates that there is no normal first speaker, and the first earpiece executes step S506.

[0343] If the first earpiece determines that one of the multiple deviations exceeds the third threshold, then the first earpiece determines that the first earpiece is faulty. Further, the first earpiece determines that if the amplitude of the mid-high frequency component of the second sound received by one or more of the multiple first microphones deviates from the amplitude of the mid-high frequency component of the first sound by more than the third threshold, then it indicates that there is a normal first speaker and first microphone, and the first earpiece executes step S507;

[0344] If the first earphone determines that none of the multiple deviations exceed the third threshold, then the first earphone executes step S508.

[0345] The third threshold is a threshold for distinguishing between normal and faulty headphones. This threshold can include the difference between the amplitude of the mid-to-high frequency components of the second sound received by the first headphone when the headphone malfunctions and the amplitude of the high frequency components of the second sound received by the first headphone when it is functioning normally, for example, 5 dB. This application does not limit the specific value of the third threshold in its embodiments.

[0346] In some embodiments, S505 can be executed by the headphone case. The headphones can transmit the sound they receive to the headphone case through a communication connection between the headphone case and the headphones. The headphone case may contain a processor or controller, and the headphone case can perform the aforementioned comparison through the processor or controller. In some embodiments, S505 can also be executed by a terminal device. The terminal device can receive the signal transmitted by the headphone case through a communication connection between itself and the headphone case. The terminal device may contain a processor or controller, and the terminal device can perform the aforementioned comparison through the processor or controller.

[0347] S506. The first speaker is confirmed to be faulty.

[0348] If the first earpiece determines that the deviation between the second sound received by all first microphones and the first sound exceeds a third threshold, it indicates that the first sound played by the first earpiece is already deviated. Therefore, the first earpiece determines that the speaker has malfunctioned.

[0349] S507. Determine that the first microphone of the first earphone is faulty.

[0350] If the deviation between the second sound received by a portion of the first microphone and the first sound exceeds a third threshold, and the deviation between the second sound received by a portion of the first microphone and the first sound does not exceed the third threshold, then the first sound played by the first earphone is normal, and the first microphone whose deviation of the second sound does not exceed the third threshold is normal. Therefore, the first earphone determines that the first microphone whose deviation of the second sound exceeds the third threshold is faulty. In some embodiments, steps S506 and S507 can also be executed by the earphone case. The earphone can transmit the sound it receives to the earphone case through the communication connection between the earphone case and the earphone, and the earphone case can determine the faulty component of the earphone. In some embodiments, steps S506 and S507 can also be executed by the terminal device. The terminal device can receive the signal transmitted by the earphone case through the communication connection (such as Bluetooth connection) between itself and the earphone case, and the terminal device can determine the faulty component of the earphone.

[0351] S508. Confirm that the first earphone is not faulty.

[0352] The first earphone determines that its first speaker is not faulty, and the first earphone determines that its first microphone is not faulty.

[0353] In some embodiments, S508 can be executed by the headphone case, whereby the headphones can transmit the received sound to the headphone case via a communication connection between the headphone case and the headphones, and the headphone case determines that the first headphone is not faulty. In some embodiments, S508 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first headphone is not faulty.

[0354] Based on the headphone fault detection method shown in Figure 5A, a fault in a single headphone can be detected simply by placing it in the headphone case. Even if a user loses one headphone during use, fault detection can still be performed on the remaining headphones.

[0355] Another headphone device fault detection method will be described in detail below with reference to Figure 5B. In Figure 5B, the first headphone can be the left headphone 10 or the right headphone 11 in Figure 1A. When the first headphone is the left headphone 10, the second headphone is the right headphone 11 in Figure 1A; when the first headphone is the right headphone 11, the second headphone is the left headphone 10 in Figure 1A. The headphone case can be the headphone case 12 in Figure 1A. The headphone case is used to house the first and second headphone. The first headphone is provided with a first speaker, and the second headphone is provided with a second microphone, which can be multiple microphones. For example, when the first headphone is the left headphone 10, the second headphone is the right headphone 11. The first speaker is the speaker 10-4 of the left headphone in Figure 1A, and the second microphone can be the internal microphone 11-5 of one or more right headphones in Figure 1A, or the second microphone can be the external microphone 11-2 of one or more right headphones in Figure 1A. Again, for example, when the first headphone is the right headphone 11, the second headphone is the left headphone 10. The first speaker is the speaker 11-4 of the right earphone in Figure 1A. The second microphone can be the internal microphone 10-5 of one or more left earphones in Figure 1A. The second microphone can be the external microphone 10-2 of one or more left earphones in Figure 1A.

[0356] As shown in Figure 5B, another headphone device fault detection method provided in this application embodiment may include the following steps:

[0357] S601. The headphone case is detected to be closed.

[0358] The headphone case detects that it is in the closed state. For details, please refer to step S101 in Figure 3A above, which will not be repeated here.

[0359] The first and second earphones detected that the earphone case was in the closed state. For details, please refer to step S201 in Figure 3B above, which will not be repeated here.

[0360] S602. The first and second earphones have been detected entering the earphone case.

[0361] The first earphone detects that the first earphone is inside the earphone case. For details, please refer to step S102 in Figure 3A above, which will not be repeated here.

[0362] The first earphone detects that the second earphone is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here.

[0363] The second earphone detects that it is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here.

[0364] The second earphone detects that the first earphone is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here. In some embodiments, S602 can also be executed by the earphone case itself. The earphone case can detect the earphone entering the case through contact points with the earphone, or it can detect the earphone entering the case through sensors such as Hall effect sensors or infrared sensors.

[0365] S603. Control the first speaker of the first earphone to play the first sound.

[0366] The first earphone controls the first speaker to play the first sound. For details, please refer to step S503 in Figure 5A above, which will not be repeated here.

[0367] In some implementations, S603 can also be executed by the headphone case, which can control the speaker in the headphones to play the first sound through a communication connection between the headphone case and the headphones.

[0368] In some implementations, S603 can also be executed by a terminal device, which can transmit control signals to the headphone box via its communication connection with the headphone box to control the speaker in the headphones to play the first sound; furthermore, the headphone box controls the speaker in the headphones to play the first sound via its communication connection with the headphones.

[0369] S604. While the first sound is played by the first speaker, multiple third sounds are received through the second microphones of multiple second headphones.

[0370] The second earpiece can receive a third sound through multiple second microphones. These multiple sounds are the third sound received by the multiple second microphones after the first sound played by the first speaker passes through the acoustic cavity structure from the first speaker to the multiple second microphones. The multiple second microphones may include one or more internal microphones and one or more external microphones.

[0371] In some embodiments, S604 can also be executed by the headphone case, which can control multiple microphones in the headphones to receive sound through a communication connection between the headphone case and the headphones. In some embodiments, S604 can also be executed by a terminal device, which can transmit control signals to the headphone case through a communication connection between itself and the headphone case to control the multiple microphones in the headphones to receive sound; furthermore, the headphone case controls the multiple microphones in the headphones to receive sound through a communication connection between itself and the headphones.

[0372] S605. Compare the deviations between the amplitudes of the first frequency components of the plurality of third sounds and the amplitudes of the first frequency components of the first sound, and determine whether the plurality of deviations exceed a fourth threshold.

[0373] In some embodiments, at least one parameter of the amplitude or phase of the third sound after passing through the acoustic transmission path differs from that of the first sound. For example, the amplitude (amplitude value) of the second sound differs from that of the first sound.

[0374] In the embodiment of Figure 5B, the first frequency component may include mid-to-high frequency components.

[0375] The third sound received by the multiple second microphones may include an analog-to-digital conversion operation performed on the audio received by the multiple second microphones to obtain a digital signal. In some embodiments, the third sound received by the multiple second microphones may include audio received by the multiple second microphones.

[0376] The second earpiece has multiple second microphones that receive multiple third sounds, which are then transmitted to the first earpiece via a wireless link. The sounds received by the second microphones can be affected by changes in the earpiece's acoustic cavity structure. The first earpiece can compare the amplitude of the first sound with the amplitude of the third sounds received by the second microphones to determine whether either the first or second earpiece device has malfunctioned.

[0377] The first frequency component is a mid-to-high frequency component, and the first earphone can obtain the amplitude of the mid-to-high frequency component of the third sound received by the multiple second microphones.

[0378] The amplitude of the first frequency component of the first sound may include a preset value. This preset amplitude may be pre-set in the headphones during design, testing, or production, and may represent the amplitude of the mid-to-high frequency components of the first sound played by the first speaker when the second headphones are functioning without faults. The amplitude of the mid-to-high frequency components of the first sound is also a preset amplitude.

[0379] The first earpiece can detect a preset amplitude and compare the amplitude of the mid-to-high frequency components of the third sound received by the multiple second microphones with multiple deviations from the preset amplitude.

[0380] If the first earpiece determines that any of the multiple deviations exceeds a fourth threshold, then the first earpiece determines that the first speaker or the second microphone is faulty. Further, the first earpiece determines that if the amplitude of the mid-to-high frequency component of the third sound received by each of the multiple second microphones deviates from the amplitude of the mid-to-high frequency component of the first sound beyond the fourth threshold, then it indicates that there is no normal first speaker, and the first earpiece executes step S606.

[0381] If the first earpiece determines that any of the multiple deviations exceeds a fourth threshold, then the first earpiece determines that the first speaker or the second microphone is faulty. Further, the first earpiece determines that if the amplitude of the mid-to-high frequency component of the third sound received by one or more of the multiple second microphones deviates from the amplitude of the mid-to-high frequency component of the first sound by more than the fourth threshold, then it indicates that there are normal first speakers and second microphones, and the first earpiece executes step S607.

[0382] If the first earpiece determines that none of the multiple deviations exceed the fourth threshold, then the first earpiece executes step S608.

[0383] The fourth threshold is a threshold for distinguishing between normal and faulty headphones. This threshold may include the difference between the amplitude of the mid-to-high frequency components of the third sound received by the second headphone when the headphone malfunctions and the amplitude of the high frequency components of the third sound received by the second headphone when it is functioning normally, for example, 5 dB. The specific value of the third threshold may be the same as the specific value of the fourth threshold, and the embodiments of this application do not limit the specific value of the fourth threshold.

[0384] In some embodiments, S605 can be executed by the headphone case. The headphones can transmit the received sound to the headphone case via a communication connection between the headphone case and the headphones. The headphone case may contain a processor or controller, which can perform the aforementioned comparison. In some embodiments, S605 can also be executed by a terminal device. The terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case. The terminal device may contain a processor or controller, which can perform the aforementioned comparison.

[0385] S606. The first speaker is confirmed to be faulty.

[0386] If the first earpiece determines that the deviation between the third sound received by all second microphones and the first sound exceeds a fourth threshold, it indicates that the first earpiece is playing a deviated sound. Therefore, the first earpiece determines that the speaker is malfunctioning.

[0387] S607. Determine that the second microphone of the second earphone is faulty.

[0388] If the deviation between the third sound received by some of the second microphones and the first sound exceeds a fourth threshold, and the deviation between the third sound received by some of the second microphones and the first sound does not exceed the fourth threshold, then the first sound played by the first earphone is normal, and the second microphones whose received sound deviation does not exceed the fourth threshold are normal. Therefore, the first earphone determines that the second microphone whose received third sound deviation exceeds the fourth threshold is faulty.

[0389] In some embodiments, S606 and S607 can also be executed by the headphone case, whereby the headphones can transmit the received sound to the headphone case via a communication connection between the headphones and the headphone case, allowing the headphone case to determine the faulty component in the headphones. In some embodiments, S606 and S607 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, allowing the terminal device to determine the faulty component in the headphones.

[0390] S608. Confirm that the first and second earpieces are not faulty.

[0391] The first earpiece determines that its first speaker is not faulty, and the first earpiece determines that its second microphone is not faulty.

[0392] In some embodiments, S608 can be executed by the headphone case, whereby the headphones can transmit the received sound to the headphone case via a communication connection between the headphone case and the headphones, and the headphone case determines that the first headphone is not faulty. In some embodiments, S608 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first headphone is not faulty.

[0393] Based on the headphone fault detection method shown in Figure 5B, the two headphones can communicate wirelessly. One headphone can obtain the sound received by the other headphone and determine whether the headphone has a component failure, that is, whether the headphone speaker and headphone microphone have failed.

[0394] Another headphone device fault detection method will be described in detail below with reference to Figure 5C. In Figure 5C, the first headphone can be the left headphone 10 or the right headphone 11 in Figure 1A. When the first headphone is the left headphone 10, the second headphone is the right headphone 11 in Figure 1A, and when the first headphone is the right headphone 11, the second headphone is the left headphone 10 in Figure 1A. The headphone case can be the headphone case 12 in Figure 1A. The headphone case is used to house the first and second headphone. The first headphone is provided with a first speaker and a first microphone, and the second headphone is provided with a second speaker and a second microphone. For example, when the first headphone is the left headphone 10, the second headphone is the right headphone 11. The first speaker is the speaker 10-4 of the left headphone in Figure 1A, and the first microphone can be the internal microphone 10-5 of the left headphone in Figure 1A, or the external microphone 10-2 of the left headphone in Figure 1A. The second speaker is the speaker 11-4 of the right headphone in Figure 1A, and the second microphone can be the internal microphone 11-5 of the right headphone in Figure 1A, or the external microphone 11-2 of the right headphone in Figure 1A.

[0395] Figure 5C illustrates another headphone device fault detection method provided in an embodiment of this application.

[0396] S701. The headphone case is detected to be closed.

[0397] The headphone case detects that it is in the closed state. For details, please refer to step S101 in Figure 3A above, which will not be repeated here.

[0398] The first and second earphones detected that the earphone case was in the closed state. For details, please refer to step S201 in Figure 3B above, which will not be repeated here.

[0399] S702. The first and second earphones have been detected entering the earphone case.

[0400] The first earphone detects that the first earphone is inside the earphone case. For details, please refer to step S102 in Figure 3A above, which will not be repeated here.

[0401] The first earphone detects that the second earphone is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here.

[0402] The second earphone detects that it is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here.

[0403] The second earphone detects that the first earphone is inside the earphone case. For details, please refer to step S202 in Figure 3B above, which will not be repeated here.

[0404] In some embodiments, S702 can also be performed by the headphone case, which can detect the earphone entering the headphone case through contact points with the earphone, or by means of a Hall sensor, infrared sensor, etc.

[0405] S703. Control the first speaker of the first earphone to play the first sound.

[0406] The first earphone controls the first speaker to play the first sound. For details, please refer to step S503 in Figure 5A above, which will not be repeated here.

[0407] In some embodiments, S703 can also be executed by the headphone case, which can control the speaker in the headphones to play the first sound through the communication connection between the headphone case and the headphones. In some embodiments, S703 can also be executed by a terminal device, which can transmit a control signal to the headphone case through the communication connection between itself and the headphone case to control the speaker in the headphones to play the first sound; furthermore, the headphone case controls the speaker in the headphones to play the first sound through the communication connection between itself and the headphones.

[0408] S704. When the first speaker plays the first sound, the second sound is received through the first microphone of the first earphone and the third sound is received through the second microphone of the second earphone;

[0409] The first earphone can receive the second sound through the first microphone. For details, please refer to step S504 in Figure 5A above, which will not be repeated here.

[0410] The second earphone can receive the third sound through the second microphone. For details, please refer to step S604 in Figure 5B above, which will not be repeated here.

[0411] In some embodiments, S704 can also be executed by the headphone case, which can control multiple microphones in the headphones to receive sound through a communication connection between the headphone case and the headphones. In some embodiments, S704 can also be executed by a terminal device, which can transmit control signals to the headphone case through a communication connection between itself and the headphone case to control multiple microphones in the headphones to receive sound; furthermore, the headphone case controls multiple microphones in the headphones to receive sound through a communication connection between itself and the headphones.

[0412] S705. By comparing one or more of the deviation between the amplitude of the first frequency component of the second sound received by the first microphone and the amplitude of the first frequency component of the first sound, and the deviation between the amplitude of the first frequency component of the third sound received by the second microphone and the amplitude of the first frequency component of the first sound, it is determined whether the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a third threshold, or whether the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a fourth threshold.

[0413] The second sound received by the multiple first microphones may include an analog-to-digital conversion of the audio received by the multiple first microphones to obtain a digital signal. In some embodiments, the second sound received by the multiple first microphones may include audio received by the multiple first microphones.

[0414] The third sound received by the multiple second microphones may include an analog-to-digital conversion of the audio received by the multiple second microphones to obtain a digital signal. In some embodiments, the third sound received by the multiple second microphones may include audio received by the multiple second microphones.

[0415] The second microphone of the second earphone receives multiple third sounds and transmits these multiple third sounds to the first earphone via a wireless link. For details, please refer to step S605 in Figure 5B above, which will not be repeated here.

[0416] The amplitude of the first frequency component of the first sound may include a preset value. This preset amplitude may be pre-set in the headphones during design, testing, or production, and may represent the amplitude of the mid-to-high frequency components of the first sound played by the first speaker in a fault-free condition, including both the second and first headphones. The amplitude of the mid-to-high frequency components of the first sound is also a preset amplitude.

[0417] The first earphone can acquire the preset amplitude of the first earphone and the preset amplitude of the second earphone, and compare whether the deviation between the amplitude of the mid-high frequency component of the second sound received by the plurality of first microphones and the preset amplitude of the mid-high frequency component of the first sound of the first earphone exceeds a third threshold, and whether the deviation between the amplitude of the mid-high frequency component of the third sound received by the plurality of second microphones and the preset amplitude of the mid-high frequency component of the first sound of the second earphone exceeds a fourth threshold.

[0418] If the first earpiece determines that any of the multiple deviations exceeds a third threshold or a fourth threshold, then the first earpiece determines that the first speaker, the first microphone, or the second microphone is faulty. Further, the first earpiece determines that if the amplitude of the mid-to-high frequency component of the sound received by each of the multiple first microphones deviates from the amplitude of the mid-to-high frequency component of the first sound preset by the first earpiece, exceeding the third threshold, and the amplitude of the mid-to-high frequency component of the sound received by each of the multiple second microphones deviates from the amplitude of the mid-to-high frequency component of the first sound preset by the second earpiece, exceeding the fourth threshold, then it indicates that there is no normal first speaker, and the first earpiece executes step S706.

[0419] If the first earpiece determines that any of the multiple deviations exceeds a third threshold, then the first earpiece determines that the first speaker, the first microphone, or the second microphone is faulty. Further, the first earpiece determines that if the amplitude of the mid-to-high frequency component of the second sound received by one or more of the multiple second microphones and the multiple first microphones deviates from the amplitude of the corresponding mid-to-high frequency component of the first sound by no more than the third threshold, or if the amplitude of the mid-to-high frequency component of the third sound received by one or more of the second microphones deviates from the amplitude of the corresponding mid-to-high frequency component of the first sound by no more than a fourth threshold, then it indicates that a normal first speaker exists, and the first earpiece executes step S707.

[0420] If the first earpiece determines that none of the multiple deviations exceed the third or fourth threshold, then the first earpiece executes step S708.

[0421] In some embodiments, S705 and S706 can also be performed by the headphone case. The headphones can transmit the sound they receive to the headphone case through a communication connection between the headphone case and the headphones. The headphone case may contain a processor or controller, and the headphone case can perform the aforementioned comparison through the processor or controller. In some embodiments, S705 and S706 can also be performed by a terminal device. The terminal device can receive the signal transmitted by the headphone case through a communication connection (such as a Bluetooth connection) between itself and the headphone case. The terminal device may contain a processor or controller, and the terminal device can perform the aforementioned comparison through the processor or controller.

[0422] S706. The first speaker is confirmed to be faulty.

[0423] If the first earpiece determines that the deviation between the second sound received by all second microphones and the corresponding first sound exceeds a third threshold, it indicates that the first earpiece is playing a deviated first sound. Therefore, the first earpiece determines that the speaker is malfunctioning.

[0424] S707. Determine that the first microphone of the first earphone or the second microphone of the second earphone is faulty.

[0425] If the first earpiece determines that the deviation between the third sound received by some of the second microphones and the first sound exceeds a fourth threshold, while the deviation between the third sound received by some of the second microphones and the first sound does not exceed the fourth threshold, then it indicates that the first sound played by the first earpiece is normal, and the second microphones whose received sound deviation does not exceed the fourth threshold are normal. Therefore, the second microphones whose received third sound deviation exceeds the fourth threshold, as determined by the first earpiece, are faulty.

[0426] If the first earphone determines that the deviation between the second sound received by some of the first microphones and the first sound exceeds a third threshold, and the deviation between the second sound received by some of the first microphones and the first sound does not exceed the third threshold, then it indicates that the first sound played by the first earphones is normal, and the first microphones whose deviation between the second sound and the first sound does not exceed the third threshold are normal. Therefore, the first earphones determine that the first microphone whose deviation between the second sound and the first sound exceeds the third threshold is faulty.

[0427] In some embodiments, S706 and S707 can also be executed by the headphone case, whereby the headphones can transmit the received sound to the headphone case via a communication connection between the headphone case and the headphones, and the headphone case can determine the faulty component of the headphones. In some embodiments, S706 and S707 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device can determine the faulty component of the headphones.

[0428] S708. Confirm that the first and second earpieces are not faulty.

[0429] The first earpiece determines that its first speaker and first microphone are not faulty, and the first earpiece determines that its second microphone is not faulty.

[0430] In some embodiments, S708 can be executed by the headphone case, whereby the headphones can transmit the received sound to the headphone case via a communication connection between the headphone case and the headphones, and the headphone case determines that the first headphones are not faulty. In some embodiments, S708 can also be executed by a terminal device, whereby the terminal device can receive the signal transmitted by the headphone case via a communication connection between itself and the headphone case, and the terminal device determines that the first headphones are not faulty.

[0431] Based on the headphone fault detection method shown in Figure 5C, the headphone can directly determine whether the speaker is faulty and whether the microphones in both headphones are faulty by comparing the sound received by the microphones of the two headphones.

[0432] The above-mentioned schemes 1, 2, and 3 can all be used to detect component faults in both earphones. Scheme 3 will be used as an example below, and Figure 6 further illustrates a method for detecting component faults in both earphones in the earphone case.

[0433] Figure 6 further illustrates a method for detecting headphone device faults in both earphones in a headphone case.

[0434] S801. Headphones report customs box status.

[0435] When the headphone case is closed, the left and right earphone slots are directly connected, meaning one earphone can receive sound from the other earphone; for example, the first earphone can receive sound from the second earphone. The details of how the earphones report the closed state of the headphone case can be found in step S401 of Figure 4 above, and will not be elaborated upon here.

[0436] S802-1. Terminal equipment determines whether the user has enabled the periodic detection of headphone malfunction.

[0437] The terminal device receives the user's operation and determines whether the operation triggers the headphone fault detection. For details, please refer to the description of step S402-1 in Figure 4 above, which will not be repeated here.

[0438] The S802-2 terminal device determines whether the user clicks on the application to trigger the detection function.

[0439] The terminal device receives the user's operation to enable headphone fault detection. For details, please refer to the description of step S402-2 in Figure 4 above, which will not be repeated here.

[0440] S803. Terminal device triggers headphone fault detection.

[0441] The terminal device triggers headphone fault detection, which can be referred to in step S403 above, and will not be repeated here.

[0442] If the headphones are used for headphone malfunction detection by playing sound through the speaker of the first headphone, then proceed to step S804. If the headphones are used for headphone malfunction detection by playing sound through the speaker of the second headphone, then proceed to step S805.

[0443] In some embodiments, step S803 can be automatically triggered by the earphone to detect earphone malfunctions, as described in step S403 above, and will not be repeated here.

[0444] In some embodiments, step S803 can be triggered by the earphone case to detect earphone malfunctions, as described in step S403 above, and will not be repeated here.

[0445] S804. The first earphone speaker plays a sound of a specific frequency, and the microphone of the first earphone and / or the microphone of the second earphone picks up the sound.

[0446] The left and right earphone slots in the headphone case are directly connected. The sound played by the speaker of the first earphone (also known as the first sound) can be received by the microphones of the first and second earphones. Specifically, the amplitude of the sound is acquired by the internal microphone and the external microphone of the first earphone. The amplitude of the sound is also acquired by the internal microphone and the external microphone of the second earphone. For example, if the speaker of the first earphone plays a sound of a specific frequency (e.g., 2000Hz), any one or more of the following microphones can receive the sound: the internal microphone of the first earphone, the external microphone of the first earphone, the internal microphone of the second earphone, and the external microphone of the second earphone. This specific frequency can include mid-to-high frequency sounds (e.g., 2000Hz). If the earphones are fitted with ear tips, the interference with the amplitude of the mid-to-high frequency sound is minimal, and its impact can be ignored. If there is a jack blockage in the earphones, the interference with the amplitude of the mid-to-high frequency sound is minimal, and its impact can be ignored. If there is a component malfunction in the earphones, the interference with the amplitude of the mid-to-high frequency sound is significant. Therefore, the detection scheme based on this mid-to-high frequency sound can ensure the correct detection of device faults in the headphones.

[0447] For the use of multiple microphones to acquire the sound played by the first earphone, please refer to step S604 in Figure 5B above, which will not be repeated here.

[0448] S805. The second earphone speaker plays a sound of a specific frequency, and the microphone of the first earphone and / or the microphone of the second earphone picks up the sound.

[0449] The second earphone's speaker plays a fourth sound at different frequencies, which can be received by the microphone of the first earphone and / or the microphone of the second earphone. For details on how the second earphone's speaker picks up the sound, the specific method described in step S804 above can be referred to.

[0450] Both the first and second earphones can play sound. However, the frequencies of the sound played by the first and second earphones differ; for example, the first earphone might play sound at 2000Hz, while the second earphone might play sound at 1000Hz. When the microphones of the first and second earphones receive sound from the first earphone's speaker and are detecting a malfunction in the first earphone's speaker, the first earphone microphone can detect and eliminate the sound from the second earphone's speaker, thus preventing interference from different speaker frequencies in the earphone malfunction detection.

[0451] The first speaker of the first earphone and the second speaker of the second earphone can play sound in parallel or in sequence. When detecting earphone malfunctions in both earphones within the earphone case, both earphones can simultaneously detect malfunctions without interference, improving the speed of earphone malfunction detection. This application does not limit whether both the first and second earphones play sound.

[0452] S806. The first earphone calculates the amplitude of the sound based on the sound acquired by the microphone of the first earphone and / or the microphone of the second earphone.

[0453] Based on the sound received by the microphone of the first earphone and / or the microphone of the second earphone in step S804 above, the first earphone detects the amplitude of the acquired sound. For example, if the first sound is a high-frequency sound (e.g., greater than 2000Hz), the first earphone detects the amplitude of the sound. If the first sound includes low-frequency components (e.g., less than or equal to 200Hz) and high-frequency components (greater than 2000Hz), the first earphone detects the amplitude of the high-frequency components of the sound.

[0454] The first and / or second earpieces may include multiple microphones. For example, the first earpiece includes one or more internal microphones, and the first earpiece also includes one or more external microphones. All microphones in the first earpiece can capture the amplitude of sound.

[0455] The second earphone can detect the amplitude of the acquired sound. The specific method can be referred to the method for the first earphone to acquire the amplitude of the sound, which will not be repeated here.

[0456] In some implementations, in step S806, the terminal device can acquire the sound received by the first headphone microphone and / or the second headphone microphone, and calculate the amplitude of the sound.

[0457] In some implementations, in step S806, the headphone box can also acquire the sound received by the first headphone microphone and / or the second headphone microphone, and calculate the amplitude of the sound.

[0458] S807. The second earphone calculates the amplitude of the sound based on the sound acquired by the microphone of the second earphone and / or the microphone of the first earphone.

[0459] The second earphone detects the amplitude of the acquired sound based on the sound received by the microphone of the second earphone in step S805 above. For details, please refer to step S806 above, which will not be repeated here.

[0460] S808. The first earphone determines whether the amplitude of the calculated sound is different from the preset amplitude in the earphone, and the second earphone determines whether the amplitude of the calculated sound is different from the preset amplitude in the earphone.

[0461] The first earpiece can sequentially analyze the sound received from different microphones and played by the first earpiece speaker and the second earpiece speaker, thus identifying the faulty speaker and microphone. Similarly, the second earpiece can identify the faulty speaker and microphone.

[0462] The first earphone determines the faulty device by analyzing the amplitude of the sound played by the speaker and the amplitude of a preset first sound, based on one or more of the following methods:

[0463] The first method involves determining if the amplitude of the sound received by different microphones deviates from the preset amplitude of the first sound on the corresponding headphones by a greater than a corresponding threshold. For example, if the first headphone speaker plays a sound of a specific frequency (e.g., 2000Hz), and the amplitude of the sound received by the first headphone from both the external and internal microphones deviates from the preset amplitude of the corresponding microphone by a greater than a third threshold, then the first headphone speaker is faulty. Similarly, if the first headphone speaker plays a sound of a specific frequency (e.g., 2000Hz), and the amplitude of the sound received by the second headphone from both the external and internal microphones deviates from the preset amplitude of the corresponding microphone by a greater than a fourth threshold, then the first headphone speaker is faulty.

[0464] The first earphone includes multiple external microphones and multiple internal microphones. The deviation between the amplitude of the sound received by all microphones of the first earphone and the amplitude of a preset first sound value for that microphone is greater than a third threshold. For example, if the first earphone speaker plays a sound at a specific frequency (e.g., 2000Hz), and the deviation between the amplitude of the sound received by each external microphone and / or internal microphone and the preset amplitude of the corresponding microphone is greater than the third threshold, then the first earphone speaker is faulty.

[0465] The first earphone includes an external microphone or an internal microphone. The first earphone acquires the amplitude of the sound received by the second earphone microphone, and the first earphone acquires the amplitude of the sound received by the first earphone microphone. The first earphone compares the amplitudes of the two acquired sounds with the amplitude of a preset first sound, and the deviations of both amplitudes from the first sound amplitude are greater than a third threshold. For example, if the first earphone speaker plays a sound of a specific frequency (e.g., 2000Hz), the first earphone acquires the amplitude of the sound from both the external and / or internal microphones of the first earphone, and also acquires the amplitude of the sound received by the second earphone microphone. If the first earphone determines that the deviation between the amplitude of the sound acquired by the first earphone and the preset amplitude of the first sound is greater than a third threshold, and the first earphone determines that the deviation between the amplitude of the sound acquired by the second earphone and the preset amplitude of the second sound is greater than a fourth threshold, then the first earphone speaker is faulty. This application embodiment does not limit the specific method for determining speaker faults.

[0466] The second method: The deviation between the amplitude of the sound received by a certain microphone and the preset amplitude of the first sound of the first earphone is greater than a third threshold. For example, if the speaker of the first earphone plays a sound of a specific frequency, and the deviation between the amplitude of the sound received by the external microphone of the first earphone and the preset amplitude of the external microphone is greater than the third threshold, while the deviation between the amplitude of the sound received by the internal microphone of the first earphone and the preset amplitude of the corresponding first sound is less than or equal to the third threshold, then it indicates that the external microphone of the first earphone is faulty.

[0467] The first earphone includes multiple external microphones and multiple internal microphones. If the amplitude of the sound received by one or more microphones in the first earphone deviates from the amplitude of a preset first sound value for that microphone, it indicates a third threshold. For example, if the first earphone speaker plays a sound at a specific frequency (e.g., 2000Hz), and the amplitude of the sound received by the first earphone from one or more external microphones and / or internal microphones deviates from the preset amplitude of the corresponding microphone, it indicates a malfunction of those one or more external microphones and / or internal microphones.

[0468] The first earphone includes an external microphone or an internal microphone. The first earphone acquires the amplitude of the sound received by the second earphone microphone, and the first earphone acquires the amplitude of the sound received by the first earphone microphone. The first earphone compares the amplitudes of the two acquired sounds with the amplitude of a preset first sound for each earphone. If the deviation between the amplitude of the sound acquired by one earphone and the amplitude of the first sound is greater than a third threshold, for example, if the first earphone speaker plays a sound of a specific frequency (e.g., 2000Hz), the first earphone acquires the amplitude of the sound from both the external and / or internal microphones of the first earphone, and also acquires the amplitude of the sound received by the second earphone microphone. If the first earphone determines that the deviation between the amplitude of the sound acquired by the first earphone and the preset amplitude of the first sound is greater than the third threshold, or if the first earphone determines that the deviation between the amplitude of the sound acquired by the second earphone and the preset amplitude of the second sound is greater than a fourth threshold, then either the first earphone microphone or the second earphone microphone is faulty. The specific method by which this application determines whether the first or second earphone microphone is faulty is not limited.

[0469] The first earphone includes multiple external microphones. If the first earphone speaker plays a sound of a specific frequency, and the deviation between the amplitude of the sound received by the first earphone from one or more external microphones and the preset amplitude of the first sound of the one or more external microphones is greater than a third threshold, and at the same time, the deviation between the amplitude of the sound received by the other external microphones and the internal microphones of the first earphone and the preset amplitude of the corresponding amplitude of the first sound of the first earphone is less than or equal to the third threshold, then it indicates that the external microphones of the one or more first earphones are faulty.

[0470] The amplitude of the sound received by the first earphone microphone is compared with the amplitude of a preset first sound value of the first earphone. For example, if the difference between the amplitude of the sound received by all microphones in the first earphone and the preset first sound amplitude exceeds a third threshold, it can be determined that the speaker of the first earphone is faulty. As shown in Figure 7B(c) below, at a specific frequency (e.g., 2000Hz), there is a deviation between the amplitude of the sound received by all microphones and the preset first sound amplitude, and this deviation exceeds the third threshold, for example, 5dB. For another example, if the difference between the amplitude of the sound received by one or more microphones in the first earphone and the preset first sound amplitude exceeds the third threshold, and there are differences that do not exceed the third threshold, it can be determined that one or more microphones are faulty. For example, at a specific frequency (e.g., 2000Hz), there is a deviation between the amplitude of the sound received by the external microphone of the first earphone and the corresponding preset first sound amplitude of the first earphone, and this deviation exceeds the third threshold (e.g., 5dB), while the deviation between the amplitude of the sound received by the other microphones and the corresponding preset amplitude of the earphone does not exceed the third threshold, it can be determined that the external microphone of the first earphone is faulty. The embodiments of this application do not limit the specific method by which the first earphone determines whether the speaker and / or microphone is faulty.

[0471] The specific method for determining the fault of the earphone components in the second earphone can be referred to the aforementioned method for determining the fault of the earphone components in the first earphone, and will not be repeated here.

[0472] If the first earpiece determines that there is a speaker and / or microphone malfunction, or if the second earpiece determines that there is a speaker and / or microphone malfunction, then proceed to step S809-2. If both the first and second earpieces determine that the earpieces are normal, then proceed to step S809-1.

[0473] The first earphone can send the amplitude information of the sound received by the microphone to the terminal device, which then determines whether the amplitude of the sound received by the microphone differs from the amplitude of a preset first sound in the earphone. If the amplitudes differ, the user is prompted to troubleshoot; otherwise, the earphone is displayed as normal. This application embodiment does not limit the device used to determine whether the speaker and / or microphone is faulty.

[0474] S809-1. Fault detection for both the first and second earphones is complete.

[0475] The terminal device displays that the detection is complete. For details, please refer to the description of step S409 in Figure 4 above, which will not be repeated here.

[0476] S809-2. The first earphone determines that the corresponding earphone speaker or the corresponding microphone is faulty, and the second earphone determines that the corresponding earphone speaker or the corresponding microphone is faulty.

[0477] The first earpiece can confirm a speaker malfunction or a microphone malfunction. For example, the first earpiece confirms a malfunction in its external microphone, wherein the amplitude of the sound received by the external microphone differs from the amplitude of a preset first sound by more than a third threshold, while the amplitude of the sound received by the internal microphone differs from the amplitude of a preset first sound by less than or equal to the third threshold. As another example, the first earpiece confirms a speaker malfunction in the second earpiece, wherein the amplitude of the sound played by the second speaker differs significantly from the amplitude of a preset fourth sound. After confirming a speaker malfunction or a corresponding microphone malfunction, step S810 is executed.

[0478] The second earpiece can confirm a speaker malfunction or a microphone malfunction. For example, the second earpiece can confirm a malfunction in its external microphone, where the amplitude of the sound received by the external microphone differs from a preset amplitude value of the second earpiece by more than a fourth threshold, while the amplitude of the sound received by the internal microphone differs from a preset amplitude value of the second earpiece by less than or equal to the fourth threshold. As another example, the second earpiece can confirm a speaker malfunction in the first earpiece, where the amplitude of the sound played by the first speaker differs significantly from a preset first sound amplitude value. After confirming a speaker malfunction or a corresponding microphone malfunction, step S810 is executed.

[0479] S810. The terminal device prompts the user that there is an abnormality and guides the user to clear the fault.

[0480] The first earphone sends a malfunction message to the terminal device via the communication module, and the terminal device guides the user to troubleshoot the problem. For details, please refer to the description of step S410 in Figure 4 above, which will not be repeated here.

[0481] Based on the method shown in Figure 6 for detecting device faults in both earphones in the earphone case, device faults can be detected in both earphones in the earphone case, thus improving the detection efficiency of earphone device faults.

[0482] Next, referring to Figure 7A, we will explain how to detect ear cover parameters based on frequency response values ​​in step S407 of Figure 4.

[0483] Ear tips, specifically referring to the ear tips that fit over the sound outlet of headphones, are also known as earplugs. Ear tips come in various shapes, sizes, and other parameters. These parameters can be preset values ​​for the headphones, such as those detected at the factory. Alternatively, they can be detected after a user replaces the ear tips, showing the parameters after the replacement.

[0484] The earphones are located in the earphone case, as shown in Figure 7A. Figure 7A shows multiple frequency response curves, including preset frequency response curves for the earphones with large, medium, and small ear tips. These three frequency response curves are represented by solid lines. Different frequency response curves have different frequency response values.

[0485] Figure 7A includes frequency response values ​​measured based on a microphone, represented by dashed lines. The headphones compare these microphone-measured frequency response values ​​with the frequency response values ​​corresponding to the different ear tips, determining the closest frequency response value within a specific frequency range (e.g., between 300Hz and 600Hz). This specific frequency range has frequencies higher than the low-frequency range used to detect earphone jack blockage faults. For example, Figure 7A shows that the measured frequency response value is closest to the preset frequency response value corresponding to the middle ear tip; therefore, the headphones determine that the ear tip parameter is the middle ear tip. The headphones determine the ear tip parameter by calculating the deviation between the microphone-measured frequency response value and multiple frequency response values ​​within the specific frequency range, and selecting the ear tip parameter corresponding to the frequency response value with the smallest deviation as the ear tip parameter. This application embodiment does not limit the specific calculation method for determining the ear tip parameter. In Figure 7A, when the frequency is between 300Hz and 600Hz, the deviation between the microphone-measured frequency response value and the preset frequency response value corresponding to the middle ear tip is the smallest; therefore, the ear tip parameter is the middle ear tip.

[0486] In some implementations, the headphones can preset amplitude values ​​corresponding to different ear tip parameters. The headphones compare the amplitude of the sound measured by the microphone with the preset amplitude values ​​corresponding to different ear tips, and determine the closest preset amplitude value within a specific frequency range (such as between 300Hz and 600Hz). The ear tip parameters corresponding to this closest preset amplitude value are the ear tip parameters detected by the headphones. This application embodiment does not limit the specific method of detecting ear tip parameters.

[0487] Next, referring to Figure 7B, we will explain how to use frequency response values ​​or amplitude values ​​to detect headphone malfunctions.

[0488] Headphone malfunctions include headphone jack blockage and headphone component (microphone and / or speaker) malfunctions. The method for detecting headphone jack blockage is as follows:

[0489] The earphones are located in the earphone case. In the low-frequency range, the frequency response value obtained by the earphones is compared with a preset frequency response value, or the amplitude obtained by the earphones in the low-frequency range is compared with a preset amplitude to determine if the earphone jack is blocked. Taking the determination of whether the first earphone has a blocked jack as an example, the first earphone speaker plays sounds of different frequencies, and the frequency response value and amplitude can be obtained by the first earphone microphone, as shown in Figure 7B(a) or Figure 7B(b). If the solid curve in the figure represents the preset frequency response value of the first earphone, then the dashed curve in the figure represents the frequency response value obtained by the first earphone based on the sound picked up by the first earphone microphone. If the solid curve in the figure represents the preset amplitude of the first earphone, then the dashed curve in the figure represents the amplitude obtained by the first earphone based on the sound picked up by the first earphone microphone. The first earphone determines whether it has a blocked jack in the following two ways:

[0490] 1. Within a frequency band less than or equal to a specific frequency, if the deviation between the frequency response value acquired by the first earphone based on the first earphone microphone and a preset frequency response value is greater than a fifth threshold within the first frequency band (including multiple consecutive frequency points or multiple discrete frequency points), or if the deviation between the amplitude acquired by the first earphone based on the first earphone microphone and a preset amplitude is greater than a first threshold within the first frequency band, then the first earphone is determined to have a jack blockage fault, as shown in Figure 7B(a). In a frequency band less than or equal to 200Hz, if the deviation between the frequency response value acquired by the first earphone microphone and the preset frequency response value is greater than 5dB, or if the deviation between the amplitude acquired by the first earphone microphone and the preset amplitude is greater than 5dB, then the first earphone is determined to have a jack blockage fault, as shown in Figure 7B(a).

[0491] 2. The first earphone divides a frequency band less than or equal to a specific frequency range into sub-intervals. This frequency band includes multiple sub-intervals, which can be determined by methods such as uniformly dividing the frequency band or specifying the sub-interval frequency band length. For example, within a frequency band less than or equal to 160Hz, the first earphone divides the frequency range into three sub-intervals: 0Hz to 65Hz, 65Hz to 100Hz, and 100Hz to 160Hz. In each sub-interval, the first earphone calculates the deviation between the frequency response value obtained by the first earphone based on the sound pickup from the first earphone microphone and a preset frequency response value, or calculates the deviation between the amplitude obtained by the first earphone based on the sound pickup from the first earphone microphone and a preset amplitude value, and determines the sub-intervals where the deviation is greater than a fifth threshold. For example, in the 0Hz-65Hz frequency band, the average deviation between the frequency response value picked up by the microphone of the first earphone and the preset frequency response value can be calculated to be 15dB, or the average deviation between the amplitude picked up by the microphone of the first earphone and the preset amplitude can be calculated to be 15dB. The average deviation calculated in the 65Hz-100Hz range is 8dB, and the average deviation calculated in the 100Hz-160Hz range is 4dB. Finally, the sub-intervals with a deviation greater than 5dB are determined to be the sub-intervals from 0Hz to 65Hz and from 65Hz to 100Hz.

[0492] If the first earphone calculates the deviation between two frequency response values, it can compare the sub-intervals with deviations greater than a fifth threshold with other sub-intervals to determine whether the first earphone has a jack blockage fault. For example, if the number of sub-intervals with deviations greater than the fifth threshold is 2, and the number of other sub-intervals is 1, the number of sub-intervals with deviations greater than the fifth threshold is greater than the number of other sub-intervals, indicating that the first earphone has a jack blockage fault. Another example: if the frequency range length of the sub-interval with deviations greater than the fifth threshold is 100Hz, and the frequency range length of other sub-intervals is 60Hz, the frequency range length of the sub-interval with deviations greater than the fifth threshold is greater than the frequency range length of other sub-intervals, indicating that the first earphone has a jack blockage fault, as shown in Figure 7B(b).

[0493] If the first earphone calculates the deviation between two amplitudes, it can compare the sub-interval where the deviation is greater than a first threshold with other sub-intervals to determine whether the first earphone has experienced a jack blockage fault. This application embodiment does not limit the specific method for determining whether the first earphone has experienced a jack blockage fault.

[0494] The following are methods for detecting headphone microphone and / or speaker malfunctions:

[0495] The earphones are located in the charging case. When sound is played by the speaker in one earphone, the microphones on both earphones receive the sound. In the mid-to-high frequency range of the sound, the earphones analyze the amplitude of the sound received by all microphones and compare it with the factory-set amplitude of the microphones to determine whether there is a malfunction in the microphone or the speaker.

[0496] The first earphone speaker plays a first sound, and the sound is received by the internal microphone of the first earphone, the external microphone of the first earphone, the internal microphone of the second earphone, and the external microphone of the second earphone. Taking the sound received by the internal microphone of the first earphone as an example, the first earphone can compare the amplitude of the received sound with the preset amplitude of the internal microphone in the mid-to-high frequency component (e.g., 2000Hz). The preset amplitude of the internal microphone can be represented by a solid line, and the amplitude of the sound received by the internal microphone can be represented by a dashed line, as shown in Figure 7B(c). The sounds received by the external microphone of the first earphone, the internal microphone of the second earphone, and the external microphone of the second earphone can all be described in the same way, and will not be repeated here.

[0497] The first and second earpieces are wirelessly connected (e.g., via Bluetooth). If the second microphone of the second earpiece receives sound, the first earpiece can acquire that sound via the wireless connection. Similarly, the second earpiece can also acquire the sound received by the first microphone of the first earpiece.

[0498] In the mid-to-high frequency range (e.g., 2000Hz), the first speaker of the first earphone plays a first sound. If the amplitude of the third sound received by all microphones (including the internal microphone of the first earphone, the external microphone of the first earphone, the internal microphone of the second earphone, and the external microphone of the second earphone) deviates from the amplitude of the corresponding preset sound by more than a third threshold, then the first earphone speaker is confirmed to be faulty. That is, at a frequency of 2000Hz, if the amplitude of the sound received by all microphones of the first earphone deviates from the preset amplitude by more than a third threshold (e.g., 5dB), as shown in Figure 7B(c) (the figure only shows the sound received by one microphone as an example), then the first earphone speaker is confirmed to be faulty.

[0499] If the amplitude of the second sound received by the first earphone through multiple internal microphones and multiple external microphones of the first earphone deviates from the amplitude of the corresponding preset sound by more than a third threshold, then it is confirmed that the first earphone speaker has malfunctioned.

[0500] If the amplitude of the third sound received by the second earphone through multiple internal microphones and multiple external microphones of the second earphone deviates from the amplitude of the corresponding preset sound of the earphone by more than a fourth threshold (e.g., 5dB), then it is confirmed that the first earphone speaker has malfunctioned. In this embodiment of the application, no restriction is placed on the microphone that receives the speaker audio signal.

[0501] If the amplitude of the sound received by one or more of the following microphones (first internal microphone, first external microphone, second internal microphone, and second external microphone) deviates from the preset amplitude of the corresponding sound by a factor greater than a third threshold, and the amplitude deviation of the sound received by the other microphones does not exceed the third threshold, then it is confirmed that the one or more microphones are malfunctioning. For example, if the amplitude of the second sound received by the first external microphone deviates from the preset amplitude of the corresponding sound by a factor greater than the third threshold, and the amplitude deviation of the second sound received by the first internal microphone does not exceed the preset amplitude of the corresponding sound by a factor greater than the third threshold, then it is confirmed that the first external microphone is malfunctioning.

[0502] In some implementations, after the first earphone confirms that the speaker is not faulty, if the amplitude of the audio signal received by the microphone in the first earphone deviates from the amplitude of the corresponding earphone when it is not faulty by more than a third threshold, then the microphone transmission is determined to be faulty. For example, after confirming that the first earphone speaker is not faulty, if the amplitude of the audio signal received by the external microphone of the first earphone deviates from the amplitude of the corresponding earphone when it is not faulty by more than a third threshold, then the external microphone of the first earphone is considered to be faulty.

[0503] In some implementations, the first external microphone of the earphone includes one or more microphones, and the second external microphone of the earphone includes one or more microphones. If the amplitude of the sound received by one or more microphones deviates from the amplitude of the preset sound of the corresponding earphone by more than a third threshold, and the amplitude of the sound received by other microphones deviates from the amplitude of the preset sound of the corresponding earphone by no more than the third threshold, then it is determined that the one or more microphones have malfunctioned.

[0504] In some implementations, the headphones can obtain a frequency response value by comparing the received sound amplitude with a preset sound amplitude through all microphones. The headphones analyze and calculate this frequency response value and compare it with the preset frequency response value of the corresponding headphone microphone to determine a microphone and / or speaker malfunction. This application does not limit the specific detection parameters for the headphones to determine microphone and / or speaker malfunctions.

[0505] Figure 8 shows a schematic diagram of the interface for detecting headphone malfunction on a terminal device.

[0506] Figure 8(a) shows the main interface of the terminal device, which includes an icon for the headphone malfunction detection application. The terminal device can receive user actions (such as clicks, touches, and drags) applied to the icon of the headphone malfunction detection application, and respond to the user actions by displaying the main interface of the headphone malfunction detection application shown in Figure 8(b).

[0507] Figure 8(b) shows the main interface of the headphone malfunction detection application. This interface displays the current status of the headphones as "in the charging case" and the charging case as "closed." The main interface also displays a headphone malfunction detection icon and a detection settings icon. It can receive user input to activate the headphone malfunction detection function, causing the headphones to perform the steps shown in Figures 3A to 3B above. Users can also set the time interval for headphone malfunction detection, such as setting it to start detection every Saturday at 6 PM. The interface can also display the detection results for the left and right headphones separately, with the left headphone being the first headphone and the right headphone being the second. Before the headphone malfunction detection begins, the terminal device can display a "Pending Detection" message. After the user instructs the headphones to perform malfunction detection, the terminal device can display the detection results as shown in Figure 8(c) within the headphone malfunction detection application.

[0508] The headphone malfunction detection application displays the test results for the left and right headphones separately. As shown in Figure 8(c), the test results indicate that the sound outlet and / or pressure relief hole of the left headphone are blocked, and the user is advised to clean them. The test results for the right headphone show that the headphone is normal and does not require cleaning.

[0509] The headphone fault detection method provided in this application embodiment will be further described in detail below with reference to Figure 9, focusing on the communication interaction between the audio system and the terminal device (such as a mobile phone).

[0510] Step 1. The earphones are detected as being inserted into the case, and the earphone case is detected as being closed.

[0511] The earphone detection is located in the earphone case. For details, please refer to step S102 in Figure 3A above, which will not be repeated here.

[0512] The headphone case detects that it is in the closed state. For details, please refer to step S101 in Figure 3A above, which will not be repeated here.

[0513] The earphones can wirelessly connect to the terminal device (such as via Bluetooth) to send earphone information (such as whether the earphones are in the charging case and the earphone battery level) and charging case information (such as whether the charging case is closed) to the terminal device and display them on the terminal device.

[0514] The headphone case can also detect headphone information through the connection between the headphone case and the headphone (such as Bluetooth connection, metal contact connection, etc.), and send the headphone information and headphone case information to the terminal device through the wireless connection between the headphone case and the terminal device (such as Bluetooth), and display it on the terminal device.

[0515] Step 2. The terminal device sends a message to the processor instructing the headset to perform fault detection.

[0516] The terminal device receives the user's instruction to perform a headphone malfunction detection operation and instructs the headphone to perform a malfunction detection.

[0517] The headphones perform a fault detection, and the headphone's processor instructs the speaker to play the first sound.

[0518] When the headphones are set to automatic detection, the headphone processor can instruct the speaker to play sound as soon as it detects that the headphone case is closed and the headphones are inside the headphone case, without needing to receive information from the terminal device.

[0519] Step 3. The headphone microphone receives the sound played from the speaker.

[0520] The microphone in the earphone can receive sound from the speaker on one side of the earphone, or it can receive sound from the speaker on the other side of the earphone. For example, when the case is closed, if the left and right earphone slots are directly connected, the external microphone in the left earphone can receive sound from both the left and right earphone speakers; if the left and right earphone slots are not directly connected, the external microphone in the left earphone can receive sound from the left earphone speaker.

[0521] Step 4. The processor determines whether the headphones are faulty.

[0522] The headphone's processor compares the acquired sound with the headphone's preset first sound, for example, by comparing the amplitude, to determine whether the headphone has malfunctioned.

[0523] The processor calculates the frequency response of the headphone's acoustic cavity structure. The headphone's processor can then compare the calculated frequency response with the headphone's preset frequency response to determine if the headphone has malfunctioned.

[0524] The earphone can wirelessly connect to the terminal device to send the detected earphone malfunction results to the terminal device, and the detection results can be displayed on the terminal device.

[0525] The headphones can wirelessly connect to a terminal device, transmitting parameters such as frequency response and sound signal amplitude to the terminal device. The terminal device then determines whether the headphones are malfunctioning. For example, the terminal device compares the acquired amplitude with the amplitude of a preset first sound on the headphones to determine if a malfunction has occurred. Alternatively, the terminal device can compare the amplitude of the sound acquired by the microphone with that of the first sound to obtain the frequency response, and then compare this frequency response with the preset frequency response on the headphones to determine if a malfunction has occurred.

[0526] The earphones can communicate with the charging case to send parameters such as frequency response and sound signal amplitude to the charging case, which then determines whether the earphones are malfunctioning. This application does not limit the specific device used to determine earphone malfunctions.

[0527] The earphone case can wirelessly connect to the terminal device to send the detected earphone malfunction results to the terminal device, and display the detection results on the terminal device.

[0528] Step 5. The terminal device guides the user to troubleshoot the headphone malfunction.

[0529] When a headphone malfunction is detected, the terminal device can display the malfunction and guide the user to resolve it. For example, if the headphone jack and / or pressure relief vent are blocked, the terminal device can display a message indicating a blockage, prompting the user to clean the jack. The headphone itself can also alert the user to a malfunction, such as by playing an audio message indicating the malfunction. The headphone case can also indicate a malfunction, such as by emitting a flashing light indicating a malfunction.

[0530] If the headphones detect a malfunction, the headphone processor can also handle the malfunction. For example, when the headphone processor detects a blockage in the headphone's sound outlet and / or pressure relief port, the headphone processor can reduce the amplitude of the low-frequency components in the sound played by the speaker, thus addressing the issue of excessively strong low-frequency components in the sound due to the blockage of the headphone's sound outlet and / or pressure relief port. This application does not limit the specific method by which the processor handles headphone malfunctions.

[0531] Terminal devices can be portable terminal devices running an operating system, such as mobile phones, tablets, desktop computers, laptops, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices and / or smart city devices, etc.

[0532] Figure 10 shows a schematic diagram of the hardware structure of the terminal device provided in an embodiment of this application.

[0533] The terminal device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 2, a wireless communication module 160, a sensor module 180, and a display screen 194, etc.

[0534] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0535] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0536] The processor 110 is used to call the corresponding software and hardware modules to execute the operations shown in Figures 3A to 9 in the terminal device.

[0537] The controller can serve as the central nervous system and command center of the terminal device 100. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0538] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0539] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0540] USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge terminal device 100, and can also be used for data transfer between terminal device 100 and peripheral devices. USB interface 130 can also be used to connect headphones to receive audio signals and play sound. This interface can also be used to connect other terminal devices, such as AR devices.

[0541] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may also employ different interface connection methods or a combination of multiple interface connection methods as described above.

[0542] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the terminal device 100. While charging the battery 142, the charging management module 140 can also supply power to the terminal device via the power management module 141.

[0543] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0544] The wireless communication function of the terminal device 100 can be implemented through the antenna 2, the wireless communication module 160, the modem processor, and the baseband processor.

[0545] Antenna 2 is used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands.

[0546] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.

[0547] The wireless communication module 160 can be used for wireless communication between the terminal device 100 and the headphone case and headphones.

[0548] Terminal device 100 can receive information sent by headphones and headphone case via wireless communication module 160. For example, terminal device 100 and headphone case communicate via BT, and terminal device receives information from headphone case (such as headphone case closing information, headphone case battery information, etc.).

[0549] Terminal device 100 can also send information to the earphones and earphone case via wireless communication module 160 to instruct the earphones and earphone case to perform operations. For example, terminal device 100 can send information to the earphones via BT to instruct the earphones to activate fault detection. The wireless connection method between terminal device 100 and earphones / earphone case shown in Figures 3A to 9 is executed.

[0550] Terminal device 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0551] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microLEDs, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, terminal device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0552] Display screen 194 can show the interface of the headphone fault detection software as shown in Figure 8.

[0553] The terminal device 100 can process digital signals using a digital signal processor. For example, when the terminal device 100 selects a frequency point, the digital signal processor can perform Fourier transform on the frequency point energy, etc.

[0554] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).

[0555] Random access memory can include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc.

[0556] Non-volatile memory can include disk storage devices and flash memory.

[0557] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.

[0558] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0559] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0560] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0561] It should be understood that the steps in the above-described method embodiments provided in this application can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.

[0562] This application also provides a chip system, which includes at least one processor for implementing the functions involved in the methods executed by the terminal device in any of the above embodiments.

[0563] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located inside or outside the processor.

[0564] The chip system can consist of chips or include chips and other discrete components.

[0565] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.

[0566] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.

[0567] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0568] This application also provides a computer program product, which includes a computer program (also referred to as code or instructions) that, when run, causes a computer to execute the method executed by the terminal device in any of the above embodiments.

[0569] This application also provides a computer-readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is run, it causes the computer to perform the method executed by the terminal device in any of the foregoing embodiments.

[0570] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0571] In the foregoing embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk).

[0572] Those skilled in the art will understand that implementing all or part of the processes in the foregoing embodiments can be accomplished by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the foregoing method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0573] In summary, the above description is merely an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the disclosure of this application should be included within the scope of protection of this application.

Claims

1. A fault detection method, characterized in that, An audio system is applied to a method comprising a headphone case and headphones, the headphones including a first headphone, the headphone case for housing the first headphone, the headphone case being closed, and the first headphone comprising a first speaker and a first microphone. The first earphone detected that it was located in the earphone case; The first earphone controls the first speaker to play the first sound; When the first sound is played by the first speaker, the first earphone receives the second sound through the first microphone; If the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, the first earphone determines that the first earphone is faulty, wherein the amplitude of the first frequency component of the first sound is a preset value.

2. The method according to claim 1, characterized in that, If the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, then the first earphone is determined to be faulty, specifically including: If the amplitude of the low-frequency component of the second sound deviates from the amplitude of the low-frequency component of the first sound by more than a first threshold, then the first earphone determines that the first earphone has a jack blockage fault.

3. The method according to claim 1 or 2, characterized in that, The frequency of the first sound includes multiple frequency points.

4. The method according to any one of claims 1-3, characterized in that, The number of the first microphones is multiple. If the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, then the first earphone is determined to be faulty, specifically including: If the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound exceeds a third threshold, then the first earphone determines that the first earphone has a device malfunction.

5. The method according to claim 4, characterized in that, If the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound exceeds a third threshold, then the first earphone determines that a device malfunction has occurred, specifically including: If the amplitude of the mid-high frequency component of the second sound received by one or more of the first microphones deviates from the amplitude of the mid-high frequency component of the first sound by more than the third threshold, then the first earphone determines that the first microphone is faulty, and the faulty first microphone is the first microphone among the plurality of first microphones whose deviation exceeds the third threshold.

6. The method according to claim 4 or 5, characterized in that, If the deviation between the amplitude of the mid-high frequency component of the second sound and the amplitude of the mid-high frequency component of the first sound exceeds a third threshold, then the first earphone determines that a device malfunction has occurred, specifically including: If the deviation between the amplitude of the mid-high frequency component of the second sound received by each of the multiple first microphones and the amplitude of the mid-high frequency component of the first sound exceeds the third threshold, then the first earphone determines that the first speaker is faulty.

7. The method according to any one of claims 1-6, characterized in that, If the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, then the first earphone is determined to be faulty, specifically including: The first earphone is compared with a first frequency response value and a second frequency response value. If the deviation between the first frequency response value and the second frequency response value exceeds a fifth threshold, the first earphone is determined to be faulty. The first frequency response value is obtained by the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound, and the second frequency response value is a preset value.

8. The method according to claim 7, characterized in that, The first earphone is also provided with an ear cover, and the method further includes: The first earphone acquires the frequency response value corresponding to the ear tip, and determines that the first earphone is faulty based on the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound.

9. The method according to any one of claims 4-8, characterized in that, The first sound includes multiple sound signals, which are multiple single-frequency signals with different frequencies; or, the frequency of the first sound includes multiple frequency points.

10. A fault detection method, characterized in that, An audio system is applied to an audio system comprising a headphone case and headphones, the headphones comprising a first headphone and a second headphone, the headphone case for housing the first headphone and the second headphone, the headphone case being closed, the first headphone being provided with a first speaker and a first microphone, and the second headphone being provided with a second microphone; the method includes: The first earphone detected that the first earphone and the second earphone were located in the earphone case; The first earphone controls the first speaker to play the first sound; When the first sound is played by the first speaker, the first earphone receives the second sound through the first microphone; When the first sound is played by the first speaker, the second earphone receives the third sound through the second microphone; The second earphone sends the second sound to the first earphone; If one or more of the following conditions are met: the amplitude of the first frequency component of the second sound deviates from the amplitude of the first frequency component of the first sound by more than a first threshold, or the amplitude of the first frequency component of the third sound deviates from the amplitude of the first frequency component of the first sound by more than a second threshold, then the first earphone determines that either the first earphone or the second earphone is faulty; the amplitude of the first frequency component of the first sound is a preset value.

11. The method according to claim 10, characterized in that, The statement that if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, and the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically includes: If the amplitude of the mid-high frequency component of the second sound deviates from the amplitude of the mid-high frequency component of the first sound by more than a third threshold, but the amplitude of the mid-high frequency component of the third sound deviates from the amplitude of the mid-high frequency component of the first sound by no more than a fourth threshold, then the first earphone determines that the first microphone is faulty.

12. The method according to claim 10 or 11, characterized in that, The statement that if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, and the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds the second threshold, specifically includes: If the amplitude of the mid-high frequency component of the third sound deviates from the amplitude of the mid-high frequency component of the first sound by more than a third threshold, but the amplitude of the mid-high frequency component of the second sound deviates from the amplitude of the mid-high frequency component of the first sound by more than a fourth threshold, then the first earphone determines that the second microphone is faulty.

13. The method according to any one of claims 10-12, characterized in that, The statement that if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, and the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically includes: If the amplitude of the mid-high frequency component of the second sound deviates from the amplitude of the mid-high frequency component of the first sound by more than a third threshold, and the amplitude of the mid-high frequency component of the third sound deviates from the amplitude of the mid-high frequency component of the first sound by more than a fourth threshold, then the first earphone determines that the first speaker is faulty.

14. The method according to any one of claims 10-13, characterized in that, The statement that if the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound exceeds a first threshold, and the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically includes: If the amplitude of the low-frequency component of the second sound deviates from the amplitude of the low-frequency component of the first sound by more than a first threshold, or the amplitude of the low-frequency component of the third sound deviates from the amplitude of the low-frequency component of the first sound by more than a second threshold, then the first earphone determines that a jack blockage fault has occurred in the first earphone.

15. The method according to any one of claims 10-14, characterized in that, If one or more of the following conditions are met: the amplitude of the first frequency component of the second sound deviates from the amplitude of the first frequency component of the first sound by more than a first threshold, or the amplitude of the first frequency component of the third sound deviates from the amplitude of the first frequency component of the first sound by more than a second threshold, then the first earphone determines that either the first earphone or the second earphone is faulty. Specifically, this includes: The first earphone compares the first frequency response value with the second frequency response value, the third frequency response value with the fourth frequency response value, and if one or more of the following conditions are met: the deviation between the first frequency response value and the second frequency response value exceeds a fifth threshold, or the deviation between the third frequency response value and the fourth frequency response value exceeds a sixth threshold, then the first earphone or the second earphone is determined to be faulty. The first frequency response value is obtained by the deviation between the amplitude of the first frequency component of the second sound and the amplitude of the first frequency component of the first sound. The second frequency response value and the fourth frequency response value are preset values. The third frequency response value is obtained by the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound.

16. A fault detection method, characterized in that, An audio system is applied to an audio system comprising a headphone case and headphones, the headphones comprising a first headphone and a second headphone, the headphone case for housing the first headphone and the second headphone, the headphone case being closed, the first headphone having a first speaker, and the second headphone having a second microphone, the method comprising: The first earphone detects the first earphone, and the second earphone is located in the earphone case; The first earphone controls the first speaker to play the first sound; When the first sound is played by the first speaker, the second earphone receives the third sound through the second microphone; The second earphone sends the third sound to the first earphone; If the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, the first earphone determines that the first earphone is faulty or the second microphone is faulty; the amplitude of the first frequency component of the first sound is a preset value.

17. The method according to claim 16, characterized in that, The number of the second microphone is multiple; If the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, then the first earphone determines that either the first earphone or the second microphone is faulty, specifically including: If the amplitude of the mid-high frequency component of the third sound deviates from the amplitude of the mid-high frequency component of the first sound by more than a fourth threshold, then the first earphone determines that either the first earphone or the second microphone is faulty.

18. The method according to claim 17, characterized in that, If the amplitude of the mid-high frequency component of the third sound deviates from the amplitude of the mid-high frequency component of the first sound by more than a fourth threshold, then the first earphone determines that either the first earphone or the second microphone is faulty, specifically including: If the amplitude of the mid-to-high frequency component of the third sound received by one or more of the plurality of second microphones deviates from the amplitude of the mid-to-high frequency component of the first sound by no more than a fourth threshold, then the first earphone determines that the second microphone among the plurality of second microphones whose deviation exceeds the fourth threshold is faulty.

19. The method according to claim 17 or 18, characterized in that, If the amplitude of the mid-high frequency component of the third sound deviates from the amplitude of the mid-high frequency component of the first sound by more than a fourth threshold, then the first earphone determines that either the first earphone or the second microphone is faulty, specifically including: If the amplitude of the mid-to-high frequency component of the third sound received by each of the plurality of second microphones deviates from the amplitude of the mid-to-high frequency component of the first sound by more than a fourth threshold, then the first earphone determines that the first speaker of the first earphone is faulty.

20. The method according to any one of claims 16-19, characterized in that, If the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, specifically including: If the amplitude of the low-frequency component of the third sound deviates from the amplitude of the low-frequency component of the first sound by more than a second threshold, then the first earphone determines that a jack blockage fault has occurred in the first earphone.

21. The method according to any one of claims 16-20, characterized in that, If the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound exceeds a second threshold, then the first earphone determines that either the first earphone or the second microphone is faulty, specifically including: The first earphone compares the first frequency response value with the second frequency response value. If the deviation between the first frequency response value and the second frequency response value exceeds the fifth threshold, then the first earphone or the second microphone is determined to be faulty. The first frequency response value is obtained by the deviation between the amplitude of the first frequency component of the third sound and the amplitude of the first frequency component of the first sound, and the second frequency response value is a preset value.

22. An audio system, the audio system comprising: Earphones, earphone case, the earphone case for housing the earphones, the earphone case being closed, characterized in that the earphones are used to perform the method as described in any one of claims 1-21.

23. An earphone, characterized in that, The headphones include one or more speakers, one or more microphones, one or more memory, and one or more processors; The speaker is used to play the first sound, the microphone is used to receive the first sound played by the speaker, the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the headphones to perform the method as described in any one of claims 1-21.

24. A wireless communication system, comprising a terminal device and an audio system, characterized in that, The terminal device has a communication connection with the audio communication system, the audio system includes headphones and a headphone case, the headphone case is used to house the headphones, the headphone case is closed, and the headphones in the audio system perform the method as described in any one of claims 1-21.

25. A chip, said chip being used in an earphone, characterized in that, The chip includes one or more processors, the processors being configured to invoke computer instructions to cause the earphones to perform the method as described in any one of claims 1-21.

26. A computer-readable storage medium comprising instructions, characterized in that, When the instruction is executed on the headphones, the headphones perform the method as described in any one of claims 1-21.

27. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed on the headphones, the headphones cause the headphones to perform the method as described in any one of claims 1-21.

Citation Information

Patent Citations

  • Hole-blockage detection method for loudspeaker, and related products.

    CN109121059A

  • Microphone hole blockage detection method and related product

    CN109151698A

  • Microphone hole blockage detection method and related product

    CN109151701A

  • Earphone in-out box detection method and earphone box

    CN112351361A

  • Wearing detection method of headphone

    CN115134707A