CN102638745A - Earphone compatible method and system for terminal equipment and interface circuit of terminal equipment - Google Patents

Earphone compatible method and system for terminal equipment and interface circuit of terminal equipment Download PDF

Info

Publication number
CN102638745A
CN102638745A CN2012101021241A CN201210102124A CN102638745A CN 102638745 A CN102638745 A CN 102638745A CN 2012101021241 A CN2012101021241 A CN 2012101021241A CN 201210102124 A CN201210102124 A CN 201210102124A CN 102638745 A CN102638745 A CN 102638745A
Authority
CN
China
Prior art keywords
terminal equipment
interface
microphone
earphone
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012101021241A
Other languages
Chinese (zh)
Inventor
周华昭
于猛
丁志涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Bubugao Electronic Industry Co Ltd
Original Assignee
Guangdong Bubugao Electronic Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Bubugao Electronic Industry Co Ltd filed Critical Guangdong Bubugao Electronic Industry Co Ltd
Priority to CN2012101021241A priority Critical patent/CN102638745A/en
Publication of CN102638745A publication Critical patent/CN102638745A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an earphone compatible method for terminal equipment, which is characterized by including the following steps of detecting whether the interface type of an inserted earphone matches with the interface type of the terminal equipment or not; if the earphone is a matching one, grounding a microphone interface of the terminal equipment when a listening function is in use; using a microphone of the earphone and forbidding a microphone of the terminal equipment when a microphone audio input is in use; if the earphone is not a matching one, grounding the microphone interface of the terminal equipment when the listening function is in use; and using the microphone of the terminal equipment when the microphone audio input is in use. The invention further provides a system corresponding to the method and an interface circuit of the terminal equipment. By the earphone compatible method and the system for the terminal equipment and the interface circuit of the terminal equipment, earphones with interfaces of different standards are compatible to the terminal equipment without crosstalk.

Description

A kind of earphone compatible method of terminal equipment, system and interface circuit thereof
Technical field
The present invention relates to a kind of earphone compatible method, system and interface circuit thereof of terminal equipment
Background technology
At present, two kinds of different earphone interface types are arranged on the market, are respectively:
First kind: L, R, MIC, GND (Chinese Industrial Standards (CIS) headset type)
Second kind: L, R, GND, MIC (American-European standard earphone type)
Wherein, L refers to that earphone L channel, R refer to that earphone R channel, MIC refer to that the microphone, the GND that carry on the earphone refer to the public ground of earphone.The main distinction of above-mentioned these two kinds of earphones is: the order of MIC and GND is inconsistent, so these two kinds of earphones are in the also difference to some extent of the pairing circuit of device end.
As shown in Figure 1, the equivalent electric circuit of earphone, two earphone heads about comprising; Resistance value is about 32 ohm; The power supply of ear microphone is 1.9V, and middle biasing resistor is 2.5K, and because ear microphone has a fixing resistance value (the about 5-10K of the resistance during work); MIC_ADC is the AD acquisition port of connection device end, and the ADC of equipment end is through gathering the type that voltage on the earphone MIC can the auxiliary judgment earphone.If this earphone and main equipment end interface circuit mismatch, ear microphone is equivalent to be connected between earphone heads (MIC place) and the ground, and not only ear microphone can't normally use, and also can't use and listen sound function.
A solution is to adopt an analog switch, through the detection of CPU end, the path conversion that judgement realizes MIC and GND.As use a ST3301, its principle and internal frame diagram are as shown in Figure 2.
Another kind of scheme is to adopt the analog switch STG5223 of a single-pole double throw, builds a simple circuit through the outside and also can realize, and is as shown in Figure 3.
More than these two kinds of schemes, all can solve dissimilar earphones and the unmatched problem of main equipment terminal circuit, can realize the purpose that main equipment and employed earphone are fully compatible fully.But above these two kinds of schemes have following shortcoming:
1, no matter acquire professional IC, or the analog switch of single-pole double throw cooperates external circuit, its circuit cost also will increase to some extent.
2, because all there are conducting resistance in various degree in professional IC and analog switch, the increase of conducting resistance can make earphone cross-talk performance sharply descend.
Summary of the invention
The present invention's first purpose is to propose a kind of earphone compatible method of terminal equipment, makes that described terminal equipment can compatible distinct interface standard earphone.
A kind of earphone compatible method of terminal equipment is characterized in that, may further comprise the steps:
Detect the earphone interface type inserted whether with the interface type coupling of terminal equipment;
If the matching type earphone is when sound function is listened in use, with the microphone interface ground connection of terminal equipment; When using the microphone audio input, launch ear microphone, the microphone of forbidding terminal equipment;
The type earphone if do not match is when sound function is listened in use, with the microphone interface ground connection of terminal equipment; When using the microphone audio input, launch the microphone of terminal equipment.
This method preferentially keeps the sound function of listening of earphone under headset type and the unmatched situation of terminal device interface type, carry microphone through launching terminal equipment again, remedies the disappearance of ear microphone function, and it is compatible preferably to make terminal equipment have.
The present invention's second purpose is to propose corresponding system for carrying out said process, it is characterized in that: comprise
Detection module, be used to detect the earphone interface type inserted whether with the interface type coupling of terminal equipment;
Earthing module is used for the corresponding interface output earth potential, and its output is unsettled when different operating;
Processing module is used for input, the output of control audio, and when audio frequency is imported, launches or forbid the microphone of terminal equipment according to match condition.
The present invention's the 3rd purpose is to propose a kind of earphone compatible interface circuit of terminal equipment; Realize the controlled function of said method; Comprise the left and right acoustic channels interface, microphone interface and the ground end interface that are connected with the audio-frequency module of terminal equipment; It is characterized in that: said microphone interface is electrically connected with a control circuit, and the output state of said control circuit is held level and high-impedance state with comprising.
Further, said control circuit is the GPIO interface of processor.
When carrying out audio frequency output, GPIO interface output zero potential level, even earphone is different with the interface standard at terminal, its loud speaker also can insert to reference to ground normally, realizes listening sound function.In case thereby the complete out of use situation of having avoided headset type and main equipment not to match being caused of earphone.
When carrying out the microphone audio input; The output of GPIO interface is high-impedance state, and can normally use the function of ear microphone for the earphone of coupling this moment; And for unmatched earphone; Its microphone function lost efficacy, and processor can switch to the microphone of terminal equipment, does not so also influence the normal function of microphone.
As another implementation of such scheme, said control circuit can be the gate-controlled switch device that is electrically connected with the ground end.
Further, said control circuit comprises NPN type triode, and its collector electrode is electrically connected with microphone interface; Grounded emitter; Base stage is electrically connected with the control port of processor, and said control port when audio frequency is exported high level, output low level when microphone audio is imported.
Technique scheme not only makes full use of the processor control interface, realizes the compatibility of terminal equipment to the earphone of various criterion interface, simultaneously owing to do not set up IC chip or analog switching circuit, can not bring crosstalk problem.
The present invention has execution mode simply, flexibly, does not increase advantages such as circuit cost.
Description of drawings
Fig. 1 is existing earphone end interface schematic equivalent circuit.
Fig. 2 is the schematic equivalent circuit of existing solution one.
Fig. 3 pacifies two schematic equivalent circuit for existing solution party.
Fig. 4 is a functional block diagram of the present invention.
Fig. 5 is a method flow diagram of the present invention.
Fig. 6 is an electrical block diagram one of the present invention.
Fig. 7 is an electrical block diagram two of the present invention.
Embodiment
As shown in Figure 4, system of the present invention comprises
Detection module, be used to detect the earphone interface type inserted whether with the interface type coupling of terminal equipment;
Earthing module is used for the corresponding interface output earth potential, and its output is unsettled when different operating;
Processing module is used for input, the output of control audio, and when audio frequency is imported, launches or forbid the microphone of terminal equipment according to match condition.
The input electricity of said processing module is connected to detection module, and output links to each other with earthing module.
As shown in Figure 5, method flow of the present invention starts from step S0, detect the earphone interface type inserted whether with the interface type coupling of terminal equipment;
If the matching type earphone jumps to step S1, when sound function is listened in use, with the microphone interface ground connection of terminal equipment; When using the microphone audio input, launch ear microphone, the microphone of forbidding terminal equipment;
The type earphone if do not match jumps to step S2, when sound function is listened in use, with the microphone interface ground connection of terminal equipment; When using the microphone audio input, launch the microphone of terminal equipment.
As shown in Figure 6; A kind of earphone compatible interface circuit of terminal equipment; Comprise the left and right acoustic channels interface that is connected with the audio-frequency module of terminal equipment R, microphone interface MIC and ground end interface GND; Said microphone interface MIC is electrically connected the GPIO interface 9 of processor, between also can be serially connected with a line resistance, play the current-limiting protection effect.
When carrying out audio frequency output, GPIO interface 9 output zero potential level, it serves as with reference to ground that loud speaker inserts with this, realizes listening sound function.
When carrying out the microphone audio input, 9 outputs of GPIO interface are high-impedance state, and this moment is for the earphone of coupling; Can normally use the function of ear microphone; And for unmatched earphone, its microphone function lost efficacy, and processor can switch to the microphone of terminal equipment this moment.
As shown in Figure 7; Another kind of implementation of the present invention, said GPIO interface change NPN type triode Q1 into, and its collector electrode is electrically connected with microphone interface; Grounded emitter; Base stage is electrically connected with the control port 9 of processor, and said control port 9 when audio frequency is exported high level, output low level when microphone audio is imported.Through to the control of the switch of triode Q1, realize unsettled or to microphone interface ground connection.
Above-mentionedly be merely preferred embodiments of the present invention, do not limit the scope of this patent with this.Design all and of the present invention equivalents identical, similar or that based on this circuit execution mode has been done, improvement all belong to the protection range of this patent.

Claims (6)

1. the earphone compatible method of a terminal equipment is characterized in that, may further comprise the steps:
Detect the earphone interface type inserted whether with the interface type coupling of terminal equipment;
If the matching type earphone is when sound function is listened in use, with the microphone interface ground connection of terminal equipment; When using the microphone audio input, launch ear microphone, the microphone of forbidding terminal equipment;
The type earphone if do not match is when sound function is listened in use, with the microphone interface ground connection of terminal equipment; When using the microphone audio input, launch the microphone of terminal equipment.
2. the earphone compatible system of a terminal equipment is characterized in that: comprise
Detection module, be used to detect the earphone interface type inserted whether with the interface type coupling of terminal equipment;
Earthing module is used for the corresponding interface output zero potential, and its output is unsettled when different operating;
Processing module is used for input, the output of control audio, and when audio frequency is imported, launches or forbid the microphone of terminal equipment according to match condition.
3. the earphone compatible interface circuit of a terminal equipment; Comprise the left and right acoustic channels interface, microphone interface and the ground end interface that are connected with the audio-frequency module of terminal equipment; It is characterized in that: said microphone interface is electrically connected with a control circuit, and the output state of said control circuit is zero potential level or high-impedance state.
4. the earphone compatible interface circuit of a kind of terminal equipment according to claim 3, it is characterized in that: said control circuit is the GPIO interface of processor.
5. the earphone compatible interface circuit of a kind of terminal equipment according to claim 3 is characterized in that: said control circuit can be the gate-controlled switch device that is electrically connected with the ground end.
6. the earphone compatible interface circuit of a kind of terminal equipment according to claim 5; It is characterized in that: said control circuit comprises NPN type triode; Its collector electrode is electrically connected with microphone interface; Grounded emitter, base stage is electrically connected with the control port of processor, said control port export high low level signal.
CN2012101021241A 2012-04-09 2012-04-09 Earphone compatible method and system for terminal equipment and interface circuit of terminal equipment Pending CN102638745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101021241A CN102638745A (en) 2012-04-09 2012-04-09 Earphone compatible method and system for terminal equipment and interface circuit of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101021241A CN102638745A (en) 2012-04-09 2012-04-09 Earphone compatible method and system for terminal equipment and interface circuit of terminal equipment

Publications (1)

Publication Number Publication Date
CN102638745A true CN102638745A (en) 2012-08-15

Family

ID=46622944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101021241A Pending CN102638745A (en) 2012-04-09 2012-04-09 Earphone compatible method and system for terminal equipment and interface circuit of terminal equipment

Country Status (1)

Country Link
CN (1) CN102638745A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868141A (en) * 2016-04-18 2016-08-17 深圳市树源科技有限公司 Digital interface adapter
CN105872869A (en) * 2015-12-31 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and device for positive and negative insertion of compatible analog headphones
CN106717018A (en) * 2014-08-18 2017-05-24 海宝拉株式会社 Wired and wireless earset
CN107678991A (en) * 2017-09-30 2018-02-09 努比亚技术有限公司 A kind of data processing method and terminal, computer-readable recording medium
WO2018228111A1 (en) * 2017-06-13 2018-12-20 中兴通讯股份有限公司 Earphone, terminal and system
CN109417667A (en) * 2017-06-20 2019-03-01 华为技术有限公司 A kind of audio control method, circuit, graphic user interface, electronic equipment and storage medium
CN109889953A (en) * 2019-03-08 2019-06-14 李志飞 Sound equipment and its audio signal and microphone signal input control circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686282A (en) * 2008-09-23 2010-03-31 三星电子株式会社 Portable device including earphone circuit and operation method using the same
CN102300003A (en) * 2011-09-20 2011-12-28 惠州Tcl移动通信有限公司 Mobile terminal capable of automatically detecting earphone jack

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686282A (en) * 2008-09-23 2010-03-31 三星电子株式会社 Portable device including earphone circuit and operation method using the same
CN102300003A (en) * 2011-09-20 2011-12-28 惠州Tcl移动通信有限公司 Mobile terminal capable of automatically detecting earphone jack

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
廖义奎: "《ARM与DSP综合设计及应用》", 30 September 2009, 中国电力出版社 *
甄俊 等: "《数字电子技术基础(第四版)习题精解》", 30 September 2006, 西南交通大学出版社 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106717018A (en) * 2014-08-18 2017-05-24 海宝拉株式会社 Wired and wireless earset
CN105872869A (en) * 2015-12-31 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and device for positive and negative insertion of compatible analog headphones
CN105868141A (en) * 2016-04-18 2016-08-17 深圳市树源科技有限公司 Digital interface adapter
WO2018228111A1 (en) * 2017-06-13 2018-12-20 中兴通讯股份有限公司 Earphone, terminal and system
CN109417667A (en) * 2017-06-20 2019-03-01 华为技术有限公司 A kind of audio control method, circuit, graphic user interface, electronic equipment and storage medium
CN109417667B (en) * 2017-06-20 2021-06-22 华为技术有限公司 Audio control method, circuit, graphical user interface, electronic equipment and storage medium
CN107678991A (en) * 2017-09-30 2018-02-09 努比亚技术有限公司 A kind of data processing method and terminal, computer-readable recording medium
CN109889953A (en) * 2019-03-08 2019-06-14 李志飞 Sound equipment and its audio signal and microphone signal input control circuit

Similar Documents

Publication Publication Date Title
CN102638745A (en) Earphone compatible method and system for terminal equipment and interface circuit of terminal equipment
US9838780B2 (en) Audio I O headset plug and plug detection circuitry
US10483599B2 (en) Magnetically attached battery pack with audio interface
EP2863652B1 (en) Audio interface self-adaptation device
CN103686531B (en) The method of the terminal and the operation terminal of earphone connection interface including earphone connection interface
CN105338447A (en) Earphone control circuit and method, earphone, and audio frequency output apparatus and method
US9215541B2 (en) Apparatus for detecting type of audio interface
CN102740181B (en) Earphone interface circuit and electronic equipment
CN201142743Y (en) Headphone interface circuit and mobile phone with the same
CN205071294U (en) Headphone structure circuit, earphone, audio output device and display device
CN102158779B (en) Earphone socket and realization method thereof
CN104918154B (en) The method whether earphone socket and test earphone are inserted in place
CN102685639B (en) An electronic device and an audio accessory having a plurality of passive switches for controlling the audio device
CN108028978A (en) Audio connector and circuit
CN101990144A (en) Double earphone adapter, main board and method for detecting double earphones
CN102710821B (en) Hand microphone for interphone and interphone
CN102457798A (en) Audio switching circuit and audio playing device with same
CN105050001A (en) Headset compatible circuit and working method thereof
GB2502983A (en) Electronic host device with flexible interface for accessory connection
CN105142072B (en) A kind of audio devices and audio frequency playing method of external player
CN202713580U (en) Earphone compatible interface circuit for terminal device
US20210165055A1 (en) Circuitry for detecting jack plug insertion or removal
US11496847B1 (en) State detection device for use in an audio interface
CN105979423B (en) Mute circuit and method of microphone on earphone
CN208971820U (en) A kind of earphone insertion detection circuit, earphone isolation circuit and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120815