CN-121397417-B - Earphone identification circuit, earphone identification method and electronic equipment
Abstract
The application relates to an earphone identification circuit, an earphone identification method and electronic equipment. The device comprises a processor, a control circuit, a switching circuit, a target electrical signal and a processor, wherein the processor is used for outputting a first high-level signal through the control circuit under the condition that the earphone is detected to be connected, the control circuit is used for inputting the first high-level signal into the switching circuit, the switching circuit is used for receiving the output signal of the earphone and outputting the target electrical signal to the processor according to the output signal and the first high-level signal, and the processor is used for determining the identification result of the type of the earphone according to the target electrical signal. In the embodiment of the application, the processor enables the control circuit to output the first high-level signal and inputs the first high-level signal to the switch circuit under the condition that the earphone is connected, and the switch circuit outputs the target level signal to the processor based on the output signal on the basis of the first high-level signal, so that the earphone type is determined, the audio equipment can be automatically adapted to various earphones, the expansibility of the audio equipment is increased, and the use cost of a user is reduced.
Inventors
- JIN JIANGONG
- KE QINHUA
Assignees
- 重庆瑞景信息科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251223
Claims (8)
- 1. An earphone identification circuit, characterized in that the earphone identification circuit comprises: The processor is connected with the control circuit and is used for outputting a first high-level signal through the control circuit under the condition that the earphone access is detected; the control circuit is connected with the switch circuit and is used for inputting the first high-level signal to the switch circuit; The switch circuit is connected with the earphone and the processor and is used for receiving an output signal of the earphone and outputting a target electric signal to the processor according to the output signal and the first high-level signal; the processor is used for determining the recognition result of the type of the earphone according to the target electric signal; The switching circuit includes: The cathode of the diode is connected with the earphone, the anode of the diode is connected with the base electrode of the triode, and the diode is used for receiving the output signal and inputting the output signal to the triode; the collector of the triode is connected with the processor, and the emitter of the triode is connected with the control circuit and is used for outputting a target electric signal to the processor according to the output signal and the first high-level signal; the control circuit includes: The grid electrode of the first MOS tube is connected with the processor, the drain electrode of the first MOS tube is connected with the grid electrode of the second MOS tube, and the source electrode of the first MOS tube is grounded and is used for receiving a second high-level signal output by the processor through the grid electrode of the first MOS tube and is in a conducting state under the action of the second high-level signal; the source electrode of the second MOS tube is connected with an external power supply, the drain electrode of the second MOS tube is connected with the emitter electrode of the triode, and the second MOS tube is used for being in a conducting state under the action of a first high-level signal output by the first MOS tube and the external power supply and outputting the first high-level signal to the triode through the drain electrode of the second MOS tube.
- 2. The headset identification circuit of claim 1 wherein, The triode is used for being in a conducting state under the action of the first low-level signal and the first high-level signal under the condition that the received output signal is the first low-level signal, and outputting the first high-level signal to the processor; And the triode is used for being in an off state under the action of the suspended signal and the first high-level signal under the condition that the received output signal is the suspended signal, and outputting a second low-level signal to the processor.
- 3. The headset identification circuit of claim 2 wherein, The processor is used for determining that the recognition result of the type of the earphone is a standard earphone according to the first high-level signal; The processor is used for determining that the identification result of the type of the earphone is a customized earphone according to the second low-level signal.
- 4. The headset identification circuit of claim 1, wherein the control circuit further comprises: The first end of the first resistor is connected with the drain electrode of the first MOS tube and the grid electrode of the second MOS tube, and the second end of the first resistor is connected with the source electrode of the second MOS tube.
- 5. The headset identification circuit of claim 1, wherein the switching circuit further comprises: And the base electrode of the triode is connected with the anode of the diode through the second resistor.
- 6. The headset identification circuit of claim 1, wherein the switching circuit further comprises: and the base electrode of the triode is connected with the emitting electrode of the triode through the third resistor.
- 7. A headset identification method, characterized in that the method is applied to the headset identification circuit of any one of claims 1-6, the method comprising: Outputting a first high-level signal through a control circuit in the earphone identification circuit under the condition that earphone access is detected, so that the control circuit inputs the first high-level signal to a triode of a switching circuit in the earphone identification circuit; The diode of the switch circuit receives the output signal of the earphone and inputs the output signal to the triode, and the triode outputs according to the output signal and the first high-level signal; Determining a recognition result of the type of the earphone according to the target electric signal; the outputting, by the control circuit in the headset identifying circuit, a first high level signal includes: The second MOS tube is in a conducting state under the action of the first high-level signals output by the first MOS tube and an external power supply, and outputs the first high-level signals to the triode of the switching circuit through the drain electrode of the second MOS tube.
- 8. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of claim 7 when executing the computer program.
Description
Earphone identification circuit, earphone identification method and electronic equipment Technical Field The present application relates to the field of electronic devices, and in particular, to an earphone identification circuit, an earphone identification method, and an electronic device. Background With the wide application of audio equipment, 3.5mm analog audio interfaces are widely applied to communication equipment, portable players, professional audio tools and industrial control terminals due to the universality and reliability of the audio interfaces. Headphones with 3.5mm interfaces are mainly divided into two types, namely a standard stereo headphone, wherein a plug of the headphone comprises a left channel, a right channel and three contacts of a public ground, the left and right speakers are respectively driven, and a special customized functional headphone generally reforms the right channel contacts into a key input channel, and the key is grounded through a touch switch, so that only the left channel is reserved for audio playing, and the functions of integrating audio listening and physical key control on a single headphone cable are realized, which are commonly seen in specific scenes such as intercom systems, calling equipment or navigation instruments. The current audio equipment with 3.5mm interface has its internal circuit design defaults to the standard stereo earphone. Thus, after the audio device is powered on, the audio device may continuously or as desired output audio signals to the left and right channel pins. When a user inserts the custom earphone, the audio device cannot respond to the control intention of the user because the host cannot automatically identify the earphone type and the key function of the custom earphone is completely disabled. Disclosure of Invention In view of the foregoing, it is desirable to provide an earphone recognition circuit, an earphone recognition method, and an electronic apparatus capable of recognizing an earphone type. In a first aspect, the present application provides a headset identification circuit comprising: The processor is connected with the control circuit and is used for outputting a first high-level signal through the control circuit under the condition that the earphone access is detected; the control circuit is connected with the switch circuit and is used for inputting the first high-level signal to the switch circuit; The switch circuit is connected with the earphone and the processor and is used for receiving an output signal of the earphone and outputting a target electric signal to the processor according to the output signal and the first high-level signal; the processor is used for determining the recognition result of the type of the earphone according to the target electric signal. In one embodiment, the switching circuit includes: The cathode of the diode is connected with the earphone, the anode of the diode is connected with the base electrode of the triode, and the diode is used for receiving the output signal and inputting the output signal to the triode; The triode, the collecting electrode of triode with the treater is connected, the projecting pole of triode with control circuit is connected, is used for according to output signal with first high level signal, to the treater output target electrical signal. In one embodiment, the triode is configured to be in a conducting state under the action of the first low-level signal and the first high-level signal when the received output signal is the first low-level signal, and output the first high-level signal to the processor; And the triode is used for being in an off state under the action of the suspended signal and the first high-level signal under the condition that the received output signal is the suspended signal, and outputting a second low-level signal to the processor. In one embodiment, the processor is configured to determine, according to the first high-level signal, that the recognition result of the type of the earphone is a standard earphone; The processor is used for determining that the identification result of the type of the earphone is a customized earphone according to the second low-level signal. In one embodiment, the control circuit includes: The grid electrode of the first MOS tube is connected with the processor, the drain electrode of the first MOS tube is connected with the grid electrode of the second MOS tube, and the source electrode of the first MOS tube is grounded and is used for receiving a second high-level signal output by the processor through the grid electrode of the first MOS tube and is in a conducting state under the action of the second high-level signal; the source electrode of the second MOS tube is connected with an external power supply, the drain electrode of the second MOS tube is connected with the emitter electrode of the triode, and the second MOS tube is used for being in a conducting state under the action of a