Earphone drive-by-wire signal identification method, apparatus and device, and audio playback system
By introducing control chips and path switching switches into the audio source device, identifying and compatible with microphone line-controlled headphones and channel line-controlled headphones, the problem of existing equipment not being able to identify special customized headphones is solved, and hardware cost savings and application scenario expansion is achieved.
Patent Information
- Application Number
- PCT/CN2024/101587
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-05
- Filing Date
- 2024-06-26
- Publication Date
- 2025-03-13
AI Technical Summary
Existing audio source devices do not recognize special custom headphones that are adapted to design, especially those that use sense resistors in left and right channel configurations.
By introducing control chips and path switching switches into the audio source device, we can detect the earphone type when the earphone is connected and switch the channel path according to the type, so as to achieve compatibility with microphone line-controlled headphones and channel line-controlled headphones.
Without changing the hardware terminal version, compatibility of microphone and channel-based headphones is achieved, reducing product line management pressure, saving hardware costs, and expanding the audio module application scenarios of audio source devices.
Smart Images

Figure CN2024101587_13032025_PF_FP_ABST
Abstract
Description
Headphone line control signal recognition method, device, equipment and audio playback system
[0001] Citation of Related Applications
[0002] This disclosure claims all rights and interests in the Chinese invention patent application with application number 202311138850.3 filed with the State Intellectual Property Office of the People's Republic of China on September 5, 2023, entitled "A headphone wire control signal recognition method, device, equipment and audio playback system", and incorporates the entire contents thereof into this disclosure by reference.
[0003] field
[0004] The present disclosure generally relates to the field of wired headset technology, and more specifically to a headset wire control signal recognition method, device, equipment, and audio playback system.
[0005] background
[0006] Based on the number of sections in the plug, existing wired headphones are divided into three-section plug headphones and four-section plug headphones. Among them, the three sections of the three-section plug headphones correspond to the left channel (positive pole), right channel (positive pole) and ground (negative pole), respectively, and cannot be controlled by wire. The four sections of the four-section plug headphones correspond to the left channel (positive pole), right channel (positive pole), microphone (positive pole) and ground (negative pole). The microphone is not only used to receive sound input from the headphone side of the audio source device connected to the headphone, but also can be configured with a wired control to adjust the volume of the audio played by the headphone, as well as the mode for playing audio and making and receiving calls.
[0007] Therefore, the inline control section of conventional wired headphones usually has three buttons: mode (HOOK), volume up, and volume down. Each button is connected in series to the headphone's microphone line through a corresponding resistor. When a button is pressed, the other end of the circuit is shorted to ground (GND). At this time, due to the presence of the series resistor, the microphone line of the headphone will cause voltage fluctuations due to voltage division. The audio source device can detect whether a button has been triggered by monitoring the voltage fluctuations on the headphone microphone line. By connecting resistors of different resistance values in series, different buttons can be distinguished.
[0008] However, with the emergence of new wired control solutions, audio source devices designed to adapt to conventional wired control headphones cannot recognize special customized headphones with button detection resistors configured on the left and right channels.
[0009] Overview
[0010] In one aspect, the present disclosure provides a headphone line control signal recognition method, which is applied to an audio source device and includes:
[0011] When detecting that an earphone is connected, identifying a signal of an earphone model detection pin of the earphone to obtain the type of the earphone;
[0012] If the type of the headset is a microphone-controlled headset, controlling the channel pin of the headset to be connected to the channel output channel of the audio source device, and detecting the key signal of the headset through the microphone pin of the audio source device;
[0013] If the type of the earphone is a channel-wire-controlled earphone, the channel-wire-controlled pin of the earphone is controlled to be connected to the voltage detection pin of the audio source device, and the key signal of the earphone is detected through the voltage detection pin.
[0014] In some embodiments, controlling the connection of the channel pin of the earphone to the channel output channel of the audio source device includes:
[0015] Controlling the path switching switch to connect the channel pin of the earphone with the channel output channel of the audio source device;
[0016] The channel line control pin for controlling the earphone is connected to the voltage detection pin of the audio source device, comprising:
[0017] The path switching switch is controlled to connect the channel wire control pin of the earphone with the voltage detection pin.
[0018] In some embodiments, detecting a key signal of the headset includes:
[0019] Detecting a voltage signal of a key pin of the headset;
[0020] Determining the key type according to the magnitude of the voltage signal of the key pin of the headset, and determining the key triggering times according to the number of changes in the voltage signal of the key pin of the headset;
[0021] Determining a key signal of the headset based on the key type and the key triggering times to perform a corresponding headset control operation;
[0022] Among them, if the headset is the microphone wire-controlled headset, the button pin of the headset is the microphone pin of the headset; if the headset is the channel wire-controlled headset, the button signal of the headset is the channel wire-controlled pin of the headset; the headset control operation includes at least one of increasing the headset playback volume, decreasing the headset playback volume and switching the headset mode.
[0023] In some embodiments, determining the button type according to the magnitude of the voltage signal of the button pin of the headset includes:
[0024] When a change in the voltage signal of the key pin of the headset is identified, calculating the resistance value of the resistor connected in series with the key pin of the headset according to the voltage value before the change and the voltage value after the change;
[0025] The button type is obtained based on the correspondence between the resistance value and the button pin type.
[0026] In some embodiments, when detecting that a headset is connected, identifying a signal of a headset model detection pin of the headset to obtain the type of the headset includes:
[0027] When the headset is detected to be connected, an interrupt signal is generated to confirm the headset connection event and enter the headset type detection process;
[0028] Reading a voltage signal of a headphone type detection pin of the headphone to determine whether the headphone is a microphone-controlled headphone or a channel-controlled headphone;
[0029] If the type of the headset is a microphone-controlled headset, controlling the channel pin of the headset to be connected to the channel output channel of the audio source device, and detecting the key signal of the headset through the microphone pin of the audio source device, including:
[0030] If the type of the headset is a microphone-controlled headset, the path switching switch is controlled to connect the channel pin of the headset with the channel output channel of the audio source device, the voltage signal of the microphone pin of the headset is detected, the key type is determined according to the magnitude of the voltage signal of the microphone pin of the audio source device, and the key triggering count is determined according to the number of changes in the voltage signal of the microphone pin of the headset, so as to determine the key signal of the headset based on the key type and the key triggering count to perform the corresponding headset control operation;
[0031] If the type of the headset is a channel-wired headset, controlling the channel-wired pin of the headset to be connected to the voltage detection pin of the audio source device, and detecting the key signal of the headset through the voltage detection pin, includes:
[0032] If the type of the headset is a microphone-wired headset, controlling the path switching switch to connect the channel wire control pin of the headset and the voltage detection pin, detecting the voltage signal of the voltage detection pin, determining the key type according to the magnitude of the voltage signal of the voltage detection pin, and determining the key triggering count according to the number of changes in the voltage signal of the voltage detection pin, so as to determine the key signal of the headset based on the key type and the key triggering count to perform the corresponding headset control operation;
[0033] The headphone control operation includes at least one of increasing the headphone playback volume, decreasing the headphone playback volume, and switching the headphone mode.
[0034] On the other hand, the present disclosure provides a headphone line control signal recognition module, which is applied to an audio source device and includes: a control chip and a path switching switch;
[0035] The microphone pin of the control chip is configured to be connected to the microphone pin of the headset, and the headset model detection pin of the control chip is configured to be connected to the headset model detection pin of the headset; the first end of the path switching switch is configured to be connected to the channel pin of the headset or the channel wire control pin of the headset, and the second end of the path switching switch is configured to be connected to the channel pin of the controller or the voltage detection pin of the controller, and the control end of the path switching switch is connected to the control pin of the control chip;
[0036] The control chip is configured to, when detecting that the headset is connected, identify the signal of the headset model detection pin of the headset to obtain the type of the headset; if the type of the headset is a microphone-wired headset, control the channel pin of the headset to be connected to the channel output channel of the audio source device, and detect the key signal of the headset through the microphone pin of the audio source device; if the type of the headset is a channel-wired headset, control the channel-wired pin of the headset to be connected to the voltage detection pin, and detect the key signal of the headset through the voltage detection pin.
[0037] In yet another aspect, the present disclosure provides an audio playback system comprising an audio source device and headphones;
[0038] Among them, the audio source device is configured to, when detecting that the headset is connected, identify the signal of the headset model detection pin of the headset to obtain the type of the headset; if the type of the headset is a microphone-wired headset, control the channel pin of the headset to be connected to the channel output channel of the audio source device, and detect the key signal of the headset through the microphone pin of the audio source device; if the type of the headset is a channel-wired headset, control the channel-wire control pin of the headset to be connected to the voltage detection pin of the audio source device, and detect the key signal of the headset through the voltage detection pin.
[0039] In another aspect, the present disclosure provides an earphone line control signal recognition device, which is applied to an audio source device and includes:
[0040] a detection unit configured to, when detecting that an earphone is connected, identify a signal of an earphone model detection pin of the earphone to obtain the type of the earphone;
[0041] A first switching unit is configured to control the connection of the channel pin of the headset to the channel output channel of the audio source device if the type of the headset is a microphone-controlled headset, and detect the key signal of the headset through the microphone pin of the audio source device;
[0042] The second switching unit is configured to control the channel wire control pin of the headset to be connected to the voltage detection pin of the audio source device if the type of the headset is a channel wire control headset, and detect the key signal of the headset through the voltage detection pin.
[0043] In another aspect, the present disclosure provides a headphone line control signal recognition device, comprising:
[0044] a memory configured to store a computer program;
[0045] The processor is configured to execute the computer program, and when the computer program is executed by the processor, the headphone line control signal recognition method described in the present disclosure is implemented.
[0046] On the other hand, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the headphone line control signal recognition method described in the present disclosure is implemented.
[0047] In certain embodiments, the headphone wire control signal identification method provided by the present disclosure is that after the audio source device detects that the headphone is connected, it obtains the type of the headphone based on the signal identification of the headphone model detection pin of the headphone. When the type of the headphone is a microphone wire-controlled headphone, the channel pin of the headphone is controlled to be connected to the channel output channel of the audio source device, and the key signal of the headphone is detected through the microphone pin of the audio source device; when the type of the headphone is a channel wire-controlled headphone, the channel wire-controlled pin of the headphone is controlled to be connected to the voltage detection pin of the audio source device, and the key signal of the headphone is detected through the voltage detection pin. Without changing the hardware terminal version, compatibility with both microphone wire-controlled headphones and channel wire-controlled headphones is achieved. There is no need to add a new product signal due to the adaptation of the channel wire-controlled headphones, which reduces the pressure on product line management, saves hardware costs, expands the application scenarios of the audio module of the audio source device, and improves the competitiveness of the module product.
[0048] BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, a brief introduction to the drawings required for the embodiments will be given below. Obviously, the drawings described below are only certain embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0050] FIG1 is a circuit diagram of a headphone wire control signal recognition module provided by an embodiment of the present disclosure;
[0051] FIG2 is a flow chart of a method for identifying a headphone wire control signal according to an embodiment of the present disclosure;
[0052] FIG3 is a schematic structural diagram of a headphone wire control signal recognition device provided by an embodiment of the present disclosure; and
[0053] FIG4 is a schematic structural diagram of a headphone wire control signal recognition device provided by an embodiment of the present disclosure.
[0054] Details
[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0056] Example 1
[0057] FIG1 is a circuit diagram of a headphone wire control signal recognition module provided in one embodiment of the present disclosure.
[0058] For ease of understanding, the architecture of the headphone wire control signal recognition module provided by the present disclosure is first introduced.
[0059] As shown in FIG1 , an earphone line control signal recognition module provided by an embodiment of the present disclosure, applied to an audio source device, includes: a control chip and a path switching switch;
[0060] The microphone pin of the control chip is configured to be connected to the microphone pin of the headset, and the headset model detection pin of the control chip is configured to be connected to the headset model detection pin of the headset; the first end of the path switching switch is configured to be connected to the channel pin of the headset or the channel line control pin of the headset, and the second end of the path switching switch is configured to be connected to the channel pin of the controller or the voltage detection pin of the controller, and the control end of the path switching switch is connected to the control pin of the control chip;
[0061] The control chip is configured to, when detecting that a headset is connected, identify the signal of the headset model detection pin of the headset to obtain the type of headset; if the type of the headset is a microphone-wired headset, control the channel pin of the headset to be connected to the channel output channel of the audio source device, and detect the headset button signal through the microphone pin of the audio source device; if the type of the headset is a channel-wired headset, control the channel-wire control pin of the headset to be connected to the voltage detection pin, and detect the headset button signal through the voltage detection pin.
[0062] It should be noted that the microphone wire-controlled earphones in the embodiment of the present disclosure are four-section plug earphones, and the arrangement order of the four-section plugs can be the national standard order of left channel, right channel, microphone, and ground, or the American standard order of left channel, right channel, ground, and microphone.
[0063] The channel-controlled earphones in the disclosed embodiment can be either three-section plug earphones or four-section plug earphones. Due to the use of channel-controlled earphones, the channel-controlled earphones are usually mono headphones, that is, only one of the left and right channels can play audio, and the other channel setting button is configured for line control, and the corresponding buttons can also include mode (HOOK), volume up, and volume down buttons. Compared to microphone-controlled earphones, one channel (either the left channel or the right channel) of the channel-controlled earphones is replaced by a line control channel, and the other channel is an audio playback channel.
[0064] To be compatible with both microphone wire control and channel wire control solutions, the headphone wire control signal recognition module provided in the embodiment of the present disclosure uses a path switching switch to switch the channel pin of the audio source device between the ordinary channel connected to the control chip and the voltage detection pin connected to the control chip.
[0065] For microphone-controlled headphones, the headphone model detection pin can be the microphone pin, the left channel pin, or the right channel pin, and the headphone model detection pin of the control chip is the corresponding pin. The voltage signals identified from these pins are used to determine whether the connected headphones are microphone-controlled headphones. Specifically, the resistance value of the headphone model detection pin is calculated based on the voltage value of the headphone model detection pin, and the type of the connected headphones is determined based on the pre-stored correspondence between the resistance value of the headphone model detection pin and the headphone type. In some embodiments, the models of microphone-controlled headphones can also be distinguished based on the different resistance values of the headphone model detection pins of different models of microphone-controlled headphones.
[0066] For channel-controlled headphones, the headphone model detection pin can be a channel pin or a line control pin. The control chip can use the corresponding headphone model detection pin and the pre-stored correspondence to identify the connected headphones as channel-controlled headphones in the same way as identifying microphone-controlled headphones. It can also determine that the connected headphones are channel-controlled headphones when the resistance value of the headphone model detection pin that is not stored is identified.
[0067] The channel switching can be implemented using the existing switching elements in the audio module of the audio source device, eliminating the need for major hardware changes to the audio source device. The channel switching switch can be a single-pole double-throw switch, so that channel switching can be controlled by a single control pin of the control chip. The channel switching switch can also be two independent single-pole single-throw switches, with channel switching controlled by two control pins of the control chip. Considering compatibility with microphone-controlled headphones, left-channel controlled headphones, and right-channel controlled headphones, a single-pole double-throw channel switching switch can be set for the left and right channels of the audio source device respectively, or two sets of single-pole single-throw channel switching switches can be set.
[0068] The control chip can be the original audio output control chip of the audio source device, and the chip type can be a system on chip (SoC). To achieve channel switching control, the control chip is equipped with a program configured to identify the type of headphones and a program configured to control the channel switching switch.
[0069] As shown in Figure 1, the first end pin IN1 of the path switching switch is connected to the pin R of the right channel of the headphone connected to the audio source device, the first pin OUT1 of the second end of the path switching switch is connected to the voltage detection pin ADC of the control chip, the second pin OUT2 of the second end of the path switching switch is connected to the right channel pin HPH_R of the control chip, the control end pin S of the path switching switch is connected to the control pin INT of the control chip, the power supply pin VCC of the path switching switch is connected to the DC power supply, and the ground pin GND of the path switching switch is grounded.
[0070] In certain embodiments, taking the right channel wire-controlled headset as an example, when the microphone wire-controlled headset is connected, the microphone pin MIC of the microphone wire-controlled headset is connected to the microphone pin MIC_P of the control chip, the left channel pin L of the microphone wire-controlled headset is connected to the left channel pin HPH_L of the control chip through the resistor RES, the right channel pin R of the microphone wire-controlled headset is connected to the first end pin IN1 of the path switching switch, and the ground pin of the microphone wire-controlled headset is grounded. The headphone access detection pin HPH_DET of the control chip can be connected to any channel pin of the microphone wire-controlled headset (such as connected to the left channel pin L of the microphone wire-controlled headset). At least one of the microphone pin MIC, microphone pin MIC, and right channel pin R of the microphone wire-controlled headset serves as the headphone model detection pin of the microphone wire-controlled headset, and the corresponding pin of the control chip is the headphone model detection pin of the audio source device. When the microphone wire-controlled headset is connected, the control chip recognizes the headphone access signal through the headphone access detection pin HPH_DET, and starts to read the voltage value of the headphone model detection pin to identify the headphone type. The control chip detects the voltage value of the headphone model detection pin of the microphone-wired headset through the headphone model detection pin, and uses it to calculate the resistance value of the headphone model detection pin of the microphone-wired headset, so as to determine whether the connected headphone type is a microphone-wired headset or even a certain type of microphone-wired headset according to the resistance value of the headphone model detection pin of the microphone-wired headset and a pre-stored correspondence table, thereby controlling the path switching switch to connect the first end pin IN1 and the right channel pin HPH_R, and detecting the button signal of the microphone-wired headset based on the microphone pin MIC_P, outputting the audio signal to the left channel of the microphone-wired headset through the left channel pin HPH_L, and outputting the audio signal to the right channel of the microphone-wired headset through the right channel pin HPH_R.
[0071] When a right-channel wired headset is connected, if the right-channel wired headset has a microphone pin, the microphone pin MIC of the right-channel wired headset is connected to the microphone pin MIC_P of the control chip; if the right-channel wired headset does not have a microphone pin, the microphone pin MIC_P of the control chip is left vacant. The left channel pin L of the right-channel wired headset is connected to the left channel pin HPH_L of the control chip through a resistor RES, the right channel pin R of the right-channel wired headset is connected to the first end pin IN1 of the path switching switch, and the ground pin of the right-channel wired headset is grounded. The headphone access detection pin HPH_DET of the control chip can be connected to the channel pin or the wire control pin of the right-channel wired headset, that is, at least one of the left channel pin L or the right channel pin R of the right-channel wired headset serves as the headphone model detection pin of the right-channel wired headset, and the corresponding pin of the control chip serves as the headphone model detection pin of the audio source device. When a right-channel wire-controlled headset is connected, the control chip recognizes the headset access signal through the headset access detection pin HPH_DET and starts to read the voltage value of the headset model detection pin to identify the headset type. The control chip detects the voltage value of the headset model detection pin of the right-channel wire-controlled headset through the headset model detection pin to calculate the resistance value of the headset model detection pin of the right-channel wire-controlled headset, so as to determine whether the connected headset type is a right-channel wire-controlled headset or even a certain type of right-channel wire-controlled headset based on the resistance value of the headset model detection pin of the right-channel wire-controlled headset and a pre-stored correspondence table, thereby controlling the path switching switch to connect the first end pin IN1 and the voltage detection pin ADC, and based on the voltage detection pin ADC, detects the key signal of the right-channel wire-controlled headset, and outputs the audio signal to the left channel of the right-channel wire-controlled headset through the left channel pin HPH_L.
[0072] The same applies if the channel wire-controlled headset is the left channel wire-controlled headset.
[0073] Example 2
[0074] Based on the above embodiments, an embodiment of the present disclosure further provides an audio playback system, which includes an audio source device and headphones;
[0075] Among them, the audio source device is configured to, when detecting that the earphone is connected, identify the signal of the headphone model detection pin of the earphone to obtain the type of the earphone; if the type of the earphone is a microphone wire-controlled earphone, control the channel pin of the earphone to be connected to the channel output channel of the audio source device, and detect the key signal of the earphone through the microphone pin of the audio source device; if the type of the earphone is a channel wire-controlled earphone, control the channel wire control pin of the earphone to be connected to the voltage detection pin of the audio source device, and detect the key signal of the earphone through the voltage detection pin.
[0076] The implementation of the embodiment of the present disclosure can refer to the description of the first embodiment of the present disclosure, which will not be repeated here.
[0077] Based on the above architecture, the headphone wire control signal recognition method provided by the embodiment of the present disclosure is described below with reference to the accompanying drawings.
[0078] Example 3
[0079] FIG2 is a flowchart of a headphone wire control signal recognition method provided by an embodiment of the present disclosure.
[0080] As shown in FIG2 , the headphone wire control signal recognition method provided by an embodiment of the present disclosure, applied to an audio source device, includes:
[0081] S201: When it is detected that the headset is connected, identifying the signal of the headset model detection pin of the headset to obtain the type of the headset;
[0082] S202: If the headset is a microphone-controlled headset, connect the audio channel pin of the headset to the audio channel output channel of the audio source device, and detect the headset key signal through the microphone pin of the audio source device; and
[0083] S203: If the type of the headset is a channel-controlled headset, control the channel-controlled pin of the headset to be connected to the voltage detection pin of the audio source device, and detect the key signal of the headset through the voltage detection pin.
[0084] The headphone line control signal recognition method provided in one embodiment of the present disclosure is implemented based on a connection relationship between a path switching switch pre-established in an audio source device and a control chip used to implement the headphone line control signal recognition method provided in the embodiment of the present disclosure, as well as a connection relationship between the path switching switch and the headphone interface of the audio source device. For details, please refer to the first embodiment of the present disclosure.
[0085] For S201, the control chip detects the voltage value of the headphone model detection pin of the connected headphone to calculate the resistance value of the headphone model detection pin of the headphone, thereby obtaining the model information of the headphone based on the resistance value of the headphone model detection pin, and compares the headphone model information with the pre-stored correspondence between the headphone model information and the headphone type to determine the type of the headphone. Alternatively, the control chip may only store the correspondence between microphone-controlled headphones and wired headphones. When the headphone type is not determined through the correspondence, the headphone type is determined to be a channel-controlled headphone. In some embodiments, the headphone types include microphone-controlled headphones and channel-controlled headphones.
[0086] For S202 and S203, depending on the type of headphone, the control headphone's channel pin is connected to the audio device's channel output channel or the audio device's voltage detection pin. For microphone-controlled headphones, the channel pin only needs to receive the channel audio signal and is connected to the corresponding channel output channel of the audio device. For audio-controlled headphones, one of the channel pins is designed as a channel-controlled pin and needs to be connected to a voltage detection pin of the audio device to detect the voltage signal to determine the key signal.
[0087] The switching between the two modes is achieved by the path switching switch. Then, controlling the channel pin of the earphone to connect with the channel output channel of the audio source device in S202 may include: controlling the path switching switch to connect the channel pin of the earphone with the channel output channel of the audio source device.
[0088] Controlling the connection between the channel wire control pin of the headset and the voltage detection pin of the audio source device in S203 may include: controlling a path switching switch to connect the channel wire control pin of the headset and the voltage detection pin.
[0089] As described in the first embodiment of the present disclosure, the path switch can be a single-pole double-throw switch or a single-pole single-throw switch. To facilitate system control, the default mode of the path switch can be set to connect the channel line control pin of the headphone to the channel output channel of the audio source device.
[0090] The headphone control signals of wire-controlled headphones usually include three signals: mode (HOOK), volume up, and volume down. These three signals are integrated into a set of wire-controlled switches. On microphone-controlled headphones, this set of wire-controlled switches is usually integrated with the microphone. On channel-controlled headphones, this set of wire-controlled switches is integrated into the channel cable. Different key switches can be connected to resistors of different resistance values. When the key is pressed, the corresponding key switch is grounded through resistors of different resistance values, bringing different voltage value changes to the channel wire-controlled pin. Then, detecting the key signal of the headphone in S202 or S203 may include:
[0091] Detect the voltage signal of the button pin of the headset;
[0092] Determine the key type according to the size of the voltage signal of the key pin of the headset, and determine the key triggering number according to the number of changes in the voltage signal of the key pin of the headset;
[0093] Determine a headset key signal based on the key type and the key triggering times to execute a corresponding headset control operation;
[0094] Among them, if the headset is a microphone wire-controlled headset, the headset's button pin is the headset's microphone pin; if the headset is a channel wire-controlled headset, the headset's button signal is the headset's channel wire-controlled pin; the headset control operation includes at least one of increasing the headset playback volume, decreasing the headset playback volume, and switching the headset mode.
[0095] Based on the generation method of the key signal of the wire-controlled headset, determining the key type according to the magnitude of the voltage signal of the key pin of the headset may further include:
[0096] When a change in the voltage signal of the key pin of the headset is identified, the resistance value of the resistor connected in series with the key pin of the headset is calculated according to the voltage value before the change and the voltage value after the change;
[0097] The button type is obtained based on the correspondence between the resistance value and the button pin type.
[0098] That is, when a voltage change is detected on a pin on a headset with a button (such as the microphone pin connected to the inline switch on a headset with a microphone inline control, or the control pin connected to the inline switch on a headset with a channel inline control), it can be determined that a button has been pressed. The audio source device reads the voltage value from the corresponding pin via a control chip. Based on the correspondence between the key switch and the series resistor being grounded, the device determines whether to calculate the resistance value of the resistor in series with the headset's button pin based on the voltage value before or after the change. The key type is then determined based on the correspondence between the resistance value and the button pin type.
[0099] In some embodiments, the size of the voltage signal on the button pin of the headset can be used to determine which inline switch is grounded (pressed), and the number of times the voltage signal is pressed can be used to determine how many times the operation needs to be performed. In some embodiments, pressing the mode (HOOK) button once switches between audio playback mode and audio pause mode, or switches between answering call mode and hanging up call mode. Pressing it twice in succession plays the next audio, and pressing it three times in succession plays the previous audio, etc. If the audio increase button is pressed once, the audio source device increases the audio volume of the channel output by a corresponding percentage. If the audio decrease button is pressed once, the audio source device decreases the audio volume of the channel output by a corresponding percentage.
[0100] An embodiment of the present disclosure provides a headphone wire control signal recognition method. After detecting that a headphone is connected, the audio source device obtains the type of the headphone based on the signal recognition of the headphone model detection pin of the headphone. When the headphone is a microphone wire-controlled headphone, the channel pin of the headphone is controlled to be connected to the channel output channel of the audio source device, and the key signal of the headphone is detected through the microphone pin of the audio source device. When the headphone is a channel wire-controlled headphone, the channel wire-controlled pin of the headphone is controlled to be connected to the voltage detection pin of the audio source device, and the key signal of the headphone is detected through the voltage detection pin. This achieves compatibility with both microphone wire-controlled headphone and channel wire-controlled headphone without changing the hardware terminal version. There is no need to add a new product signal for adapting to the channel wire-controlled headphone, which reduces the pressure on product line management, saves hardware costs, expands the application scenarios of the audio module of the audio source device, and improves the competitiveness of the module product.
[0101] Example 4
[0102] Based on the above embodiment, in the headphone wire control signal identification method provided in an embodiment of the present disclosure, S201: when detecting that a headphone is connected, identifying the signal of the headphone model detection pin of the headphone to obtain the type of the headphone may include:
[0103] When a headset is detected, an interrupt signal is generated to confirm the headset connection event and enter the headset type detection process;
[0104] Read the voltage signal of the headphone type detection pin of the headphone to determine whether the headphone is a microphone wired headphone or a channel wired headphone.
[0105] S202: If the headset is a microphone-controlled headset, controlling the connection between the audio channel pin of the headset and the audio channel output channel of the audio source device, and detecting a key signal of the headset through the microphone pin of the audio source device may include:
[0106] If the type of the headset is a microphone-controlled headset, the control path switching switch connects the channel pin of the headset and the channel output channel of the audio source device, detects the voltage signal of the microphone pin of the headset, determines the button type according to the size of the voltage signal of the microphone pin of the audio source device, and determines the button triggering count according to the number of changes in the voltage signal of the microphone pin of the headset, so as to determine the button signal of the headset based on the button type and the button triggering count to perform the corresponding headset control operation.
[0107] S203: If the type of the headset is a channel-controlled headset, controlling the channel-controlled pin of the headset to be connected to a voltage detection pin of the audio source device, and detecting a key signal of the headset through the voltage detection pin, which may include:
[0108] If the type of the headset is a microphone-controlled headset, the control path switching switch connects the channel control pin of the headset to the voltage detection pin, detects the voltage signal of the voltage detection pin, determines the key type according to the magnitude of the voltage signal of the voltage detection pin, and determines the key triggering count according to the number of changes in the voltage signal of the voltage detection pin, so as to determine the headset key signal based on the key type and the key triggering count to perform the corresponding headset control operation;
[0109] The headphone control operation includes at least one of increasing the headphone playback volume, decreasing the headphone playback volume, and switching the headphone mode.
[0110] The above describes in detail various embodiments corresponding to the headphone wire control signal recognition method. On this basis, the present disclosure also discloses a headphone wire control signal recognition device, equipment and computer-readable storage medium corresponding to the above method.
[0111] Example 5
[0112] FIG3 is a schematic structural diagram of a headphone wire control signal recognition device provided by an embodiment of the present disclosure.
[0113] As shown in FIG3 , the headphone line control signal recognition device provided by an embodiment of the present disclosure, applied to an audio source device, includes:
[0114] The detection unit 301 is configured to, when detecting that a headset is connected, identify the signal of the headset model detection pin of the headset to obtain the type of the headset;
[0115] The first switching unit 302 is configured to control the connection between the channel pin of the headset and the channel output channel of the audio source device if the headset is a microphone-controlled headset, and detect the key signal of the headset through the microphone pin of the audio source device;
[0116] The second switching unit 303 is configured to control the channel control pin of the headset to be connected to the voltage detection pin of the audio source device if the headset is a channel control headset, and detect the headset key signal through the voltage detection pin.
[0117] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.
[0118] Example 6
[0119] FIG4 is a schematic structural diagram of a headphone wire control signal recognition device provided by an embodiment of the present disclosure.
[0120] As shown in FIG4 , an embodiment of the present disclosure provides a headphone wire control signal recognition device including:
[0121] a memory 410 configured to store a computer program 411 ;
[0122] The processor 420 is configured to execute the computer program 411. When the computer program 411 is executed by the processor 420, the headphone line control signal recognition method described in the present disclosure is implemented.
[0123] In some embodiments, the processor 420 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 420 may be implemented in at least one hardware form of a digital signal processing (DSP), a field programmable gate array (FPGA), or a programmable logic array (PLA). The processor 420 may also include a main processor and a coprocessor. The main processor is a processor configured to process data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor configured to process data in a standby state. In some embodiments, the processor 420 may be integrated with a graphics processing unit (GPU), which is configured to render and draw the content to be displayed on the display screen. In some embodiments, the processor 420 may also include an artificial intelligence (AI) processor configured to process computing operations related to machine learning.
[0124] In some embodiments, the memory 410 may include one or more computer-readable storage media, which may be non-transitory. The memory 410 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the memory 410 is at least configured to store the following computer program 411, wherein, after the computer program 411 is loaded and executed by the processor 420, it can implement the relevant steps in the headphone line control signal recognition method described in the present disclosure. In some embodiments, the resources stored in the memory 410 may also include an operating system 412 and data 413, etc., and the storage method may be temporary storage or permanent storage. In some embodiments, the operating system 412 may be Windows. The data 413 may include but is not limited to the data involved in the above method.
[0125] In some embodiments, the headphone line control signal recognition device may further include a display screen 430 , a power supply 440 , a communication interface 450 , an input and output interface 460 , a sensor 470 , and a communication bus 480 .
[0126] Those skilled in the art will appreciate that the structure shown in FIG4 does not limit the headphone wire control signal recognition device, and may include more or fewer components than shown in the figure.
[0127] An embodiment of the present disclosure provides an earphone wire control signal recognition device, including a memory and a processor. When the processor executes a program stored in the memory, it can implement the above-mentioned earphone wire control signal recognition method, and the effect is the same as above.
[0128] Example 7
[0129] It should be noted that the above-described embodiments of the apparatus and equipment are merely illustrative. For example, the division of modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of the apparatus or module, which may be electrical, mechanical or other forms. The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0130] In addition, the functional modules in the various embodiments of the present disclosure may be integrated into a single processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The integrated modules may be implemented in the form of hardware or software functional modules.
[0131] If the integrated modules are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present disclosure, or the portion that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in various embodiments of the present disclosure.
[0132] To this end, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the headphone line control signal recognition method described in the present disclosure is implemented.
[0133] In some embodiments, the computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory ROM (Read-Only Memory), a random access memory RAM (Random Access Memory), a magnetic disk or an optical disk, and other media that can store program codes.
[0134] The computer program contained in the computer-readable storage medium provided in this embodiment can implement the headphone wire control signal recognition method described in this disclosure when executed by the processor, and the effect is the same as above.
[0135] The above is a detailed introduction to the headphone line control signal recognition method, device, equipment and audio playback system provided by the present disclosure. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present disclosure, several improvements and modifications can be made to the present disclosure, and these improvements and modifications also fall within the scope of protection of the claims of the present disclosure.
[0136] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
Claims
1. A headphone line control signal recognition method, applied to an audio source device, comprising: When it is detected that the earphone is connected, identifying the signal of the earphone model detection pin of the earphone to obtain the type of the earphone; If the type of the headset is a microphone wire-controlled headset, controlling the channel pin of the headset to be connected to the channel output channel of the audio source device, and detecting the key signal of the headset through the microphone pin of the audio source device; If the type of the earphone is a channel wire-controlled earphone, the channel wire-controlled pin of the earphone is controlled to be connected to the voltage detection pin of the audio source device, and the key signal of the earphone is detected through the voltage detection pin.
2. The headphone line control signal recognition method according to claim 1, wherein: The controlling the channel pin of the earphone to be connected to the channel output channel of the audio source device comprises: Control the channel switching switch to connect the channel pin of the earphone with the channel output channel of the audio source device; The channel line control pin for controlling the earphone is connected to the voltage detection pin of the audio source device, including: The path switching switch is controlled to connect the channel line control pin of the earphone with the voltage detection pin.
3. The headphone line control signal recognition method according to claim 1 or 2, wherein: Detecting the key signal of the headset includes: Detecting a voltage signal of a key pin of the headset; Determining the key type according to the magnitude of the voltage signal of the key pin of the headset, and determining the key triggering times according to the number of changes in the voltage signal of the key pin of the headset; and Determine a key signal of the headset based on the key type and the key triggering times to perform a corresponding headset control operation; If the headset is a microphone-controlled headset, the button pin of the headset is the microphone pin of the headset; if the headset is the channel wire-controlled headset, the key signal of the headset is the channel wire-controlled pin of the headset; the headset control operation includes at least one of increasing the headset playback volume, decreasing the headset playback volume and switching the headset mode.
4. The headphone line control signal recognition method according to claim 3, wherein: The step of determining the button type according to the size of the voltage signal of the button pin of the headset includes: When a change in the voltage signal of the key pin of the headset is identified, calculating the resistance value of the resistor connected in series with the key pin of the headset according to the voltage value before the change and the voltage value after the change; and The button type is obtained according to the corresponding relationship between the resistance value and the button pin type.
5. The headphone line control signal recognition method according to any one of claims 1 to 4, wherein: When detecting that an earphone is connected, identifying a signal of an earphone model detection pin of the earphone to obtain the type of the earphone includes: When the headset is detected to be connected, an interrupt signal is generated to confirm the headset connection event, and a headset type detection process is entered; Reading a voltage signal of a headphone type detection pin of the headphone to determine whether the headphone is a microphone-controlled headphone or a channel-controlled headphone; If the type of the headset is a microphone wire-controlled headset, controlling the channel pin of the headset to be connected to the channel output channel of the audio source device, and detecting the key signal of the headset through the microphone pin of the audio source device, including: If the type of the headset is a microphone wire-controlled headset, the control path switching switch is connected to the channel pin of the headset and the channel output channel of the audio source device, the voltage signal of the microphone pin of the headset is detected, the key type is determined according to the size of the voltage signal of the microphone pin of the audio source device, and the key triggering number is determined according to the number of changes in the voltage signal of the microphone pin of the headset, so as to determine the key signal of the headset based on the key type and the key triggering number to perform the corresponding headset control operation; If the type of the headset is a channel wire-controlled headset, controlling the channel wire-controlled pin of the headset to be connected to the voltage detection pin of the audio source device, and detecting the key signal of the headset through the voltage detection pin, includes: If the type of the headset is a microphone wire-controlled headset, the path switching switch is controlled to connect the channel wire-controlled pin of the headset and the voltage detection pin, the voltage signal of the voltage detection pin is detected, the key type is determined according to the magnitude of the voltage signal of the voltage detection pin, and the key triggering number is determined according to the number of changes of the voltage signal of the voltage detection pin, so as to determine the key signal of the headset based on the key type and the key triggering number to perform the corresponding headset control operation; The headphone control operation includes at least one of increasing the headphone playback volume, decreasing the headphone playback volume, and switching the headphone mode.
6. Headphone line control signal recognition module, applied to audio source equipment, including: Control chip and path switching switch; The microphone pin of the control chip is configured to be connected to the microphone pin of the headset, and the headset model detection pin of the control chip is configured to be connected to the headset model detection pin of the headset; the first end of the path switching switch is configured to be connected to the channel pin of the headset or the channel line control pin of the headset, the second end of the path switching switch is configured to be connected to the channel pin of the controller or the voltage detection pin of the controller, and the control end of the path switching switch is connected to the control pin of the control chip; The control chip is configured to, when detecting that the headset is connected, identify the signal of the headset model detection pin of the headset to obtain the type of the headset; if the type of the headset is a microphone-wired headset, control the channel pin of the headset to be connected to the channel output channel of the audio source device, and detect the key signal of the headset through the microphone pin of the audio source device; if the type of the headset is a channel-wired headset, control the channel-wired pin of the headset to be connected to the voltage detection pin, and detect the key signal of the headset through the voltage detection pin.
7. An audio playback system, which includes an audio source device and headphones; in, The audio source device is configured to, when detecting that the earphone is connected, identify the signal of the earphone model detection pin of the earphone to obtain the type of the earphone; if the type of the earphone is a microphone wire-controlled earphone, control the channel pin of the earphone to be connected to the channel output channel of the audio source device, and detect the microphone pin of the audio source device through the microphone pin of the audio source device. Detect the key signal of the headset; if the type of the headset is a channel wire-controlled headset, control the channel wire-controlled pin of the headset to be connected to the voltage detection pin of the audio source device, and detect the key signal of the headset through the voltage detection pin.
8. An earphone line control signal recognition device, applied to an audio source device, comprising: A detection unit, configured to, when detecting that an earphone is connected, identify a signal of an earphone model detection pin of the earphone to obtain the type of the earphone; A first switching unit is configured to control the channel pin of the headset to be connected to the channel output channel of the audio source device if the type of the headset is a microphone wire-controlled headset, and detect the key signal of the headset through the microphone pin of the audio source device; as well as The second switching unit is configured to control the channel wire control pin of the headset to be connected to the voltage detection pin of the audio source device if the type of the headset is a channel wire control headset, and detect the key signal of the headset through the voltage detection pin.
9. Headphone line control signal recognition device, comprising: a memory configured to store a computer program; A processor is configured to execute the computer program, and when the computer program is executed by the processor, the headphone line control signal recognition method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the headphone line control signal recognition method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Earphone interface self-adaptation circuit
CN102404665A
Using control method and mobile terminal for iPhone wire control earphone
CN103118191A
Communication device
CN104618836A
Earphone drive-by-wire signal identification method, device and equipment and audio playing system
CN117014760A
Earphone interface circuit and movable termination
CN201349247Y