CN101287202A - Earphone detecting method for mobile terminal - Google Patents

Earphone detecting method for mobile terminal Download PDF

Info

Publication number
CN101287202A
CN101287202A CNA2008100386482A CN200810038648A CN101287202A CN 101287202 A CN101287202 A CN 101287202A CN A2008100386482 A CNA2008100386482 A CN A2008100386482A CN 200810038648 A CN200810038648 A CN 200810038648A CN 101287202 A CN101287202 A CN 101287202A
Authority
CN
China
Prior art keywords
earphone
headset
detect
power amplifier
logic
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
CNA2008100386482A
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.)
Wentai Communication Science and Technology Co Ltd Jiaxing City
Original Assignee
Wentai Communication Science and Technology Co Ltd Jiaxing City
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 Wentai Communication Science and Technology Co Ltd Jiaxing City filed Critical Wentai Communication Science and Technology Co Ltd Jiaxing City
Priority to CNA2008100386482A priority Critical patent/CN101287202A/en
Publication of CN101287202A publication Critical patent/CN101287202A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention provides a method for detecting an earphone of a mobile terminal, which essentially comprises that: if the HEADSET_DETECT' of the detection circuit of an earphone interface end is low, Spreadtrum CPU detection shows that the earphone is inserted; if the HEADSET_DETECT' is high, the Spreadtrum CPU detection shows that the earphone is extracted; the HP_SENSE of an earphone insertion and extraction detection circuit at an audio power amplifier end is grounded; when the HP_LOGIC is high, the detection of an audio power amplifier shows that the earphone is inserted, when the HP_LOGIC is low, the detection of the audio power amplifier shows that the earphone is extracted; the detection circuit of a conversation button of the earphone is provided with a bleeder circuit to ensure the reliability of conversation. The application method and the circuits of the invention realizes the detection of an earphone with a stereo audio power amplifier based on a Spreadtrum platform mobile terminal and solves the problem of improper hang-up owing to a puff on the mike of the earphone during conversation.

Description

A kind of headset detection method of portable terminal
Technical field
The present invention relates to a kind of headset detection method of portable terminal, be specifically related to the headset detection method of a kind of band stereo audio power amplifier (containing earphone 3D audio) based on the portable terminal of spreadtrum platform.
Background technology
For example in the use of mobile phone, earphone identification is mainly reflected in two functions: music and conversation at portable terminal.
Along with the development of personal mobile communication technology, multimedia technology has also obtained significant progress, and audio frequency occupies critical role in multimedia, and stereo audio and even 3D then are the important embodiment of good audio frequency around audio.But because the integrally-built restriction of mobile phone, mobile phone is put the stereo effect that is difficult to obtain the picture home audio outward, we can say that people's ear is difficult to distinguish.And the earphone stereophonic effect clearly, and present cell phone platform such as spreadtrum platform just have reasonable support to earphone is stereo, as long as plug in the earphone, platform can detect a low level, is transformed into the earphone output audio.NXP and Siliconlab platform are realized headset detection by ADC, and it is the bias voltage (about 2V) of earphone MIC that earphone inserts preceding ADC detected, after the insertion, and detected voltage step-down (about 1V).
3D is the once leap of stereo development around audio, and SN4188 (with the LM4988 compatibility) just supports earphone 3D audio.For this reason, as long as just can recognize the earphone insertion as long as the respective pin of the SN4188 that plugs in the earphone detects a suitable level, and the output earpiece audio.The headset detection principle of the stereo audio power amplifier of other support earphones 3D audio is roughly the same, and as LM49270, the HPS pin is the not insertion of low explanation earphone, and the HPS pin is that height illustrates that then earphone inserts.
But it is different that the earphone of spreadtrum platform and the headset detection pin of stereo audio power amplifier SN4188 inserts the voltage range that detects level, and this has just increased the complexity of headset detection.In addition, in the earphone conversation of spreadtrum platform, also often cause the mistake of conversation to hang up to earphone Mike air blowing.
Summary of the invention
The objective of the invention is to improve the headset detection method based on spreadtrum platform portable terminal of present band stereo audio power amplifier (SN4188, LM4888 etc.), solve the mistake of in the present earphone conversation earphone Mike being blown simultaneously and hang up problem, a kind of headset detection method of portable terminal is provided.
The invention provides a kind of headset detection method of portable terminal, be used to detect with the mobile terminal earphone of stereo audio power amplifier (containing earphone 3D audio) based on the spreadtrum platform, comprise the conversation of music and earphone, its detection method mainly comprises: if the HEADSET_DETECT ' of earphone interface end testing circuit is for low, spreadtrum CPU detects and is the earphone insertion, if HEADSET_DETECT ' is high, spreadtrum CPU detection is extracted for earphone; With the HP_SENSE ground connection of audio frequency power amplifier end earphone plug testing circuit, when HP_LOGIC be high, audio frequency power amplifier detects and is the earphone insertion, and when HP_LOGIC is low, the audio frequency power amplifier detection is extracted for earphone; Earphone conversation button by testing circuit in be provided with bleeder circuit to guarantee the reliability of conversation.
Application process of the present invention and circuit have been realized the headset detection based on spreadtrum platform portable terminal of band stereo audio power amplifier (SN4188, LM4888 etc.), have solved the mistake of in the earphone conversation earphone Mike being blown and have hung up problem.Headset detection circuit with existing spreadtrum platform portable terminal is compared, and the headset detection method of a kind of portable terminal provided by the invention has following beneficial effect:
The first, the present invention can solve the headset detection problem of all platforms of spreadtrum easily;
The second, the present invention is adapted to the application of stereo audio power amplifier (SN4188, LM4888 etc.) on the spreadtrum platform with earphone 3D audio;
Three, the present invention has also solved the problem that the conversation of spreadtrum platform earphone is blown and caused mistake to hang up Mike simultaneously.
Below, describe the details and the working condition that propose method and circuit according to the present invention in conjunction with the accompanying drawings and embodiments in detail.
Description of drawings
Fig. 1 is an audio frequency power amplifier end earphone plug testing circuit;
Fig. 2 is the testing circuit of earphone interface end;
Fig. 3 is earphone and interface circuit sketch thereof;
The testing circuit that Fig. 4 presses for earphone conversation button.
Embodiment
The invention provides a kind of headset detection method of portable terminal, be used to detect with the mobile terminal earphone of stereo audio power amplifier (containing earphone 3D audio) based on the spreadtrum platform, described detection method mainly comprises: if the HEADSET_DETECT ' of earphone interface end testing circuit is for low, spreadtrum CPU detects and is the earphone insertion, if HEADSET_DETECT ' is high, spreadtrum CPU detection is extracted for earphone; With the HP_SENSE ground connection of audio frequency power amplifier end earphone plug testing circuit, when HPvLOGIC be high, audio frequency power amplifier detects and is the earphone insertion, and when HP_LOGIC is low, the audio frequency power amplifier detection is extracted for earphone; Earphone conversation button by testing circuit in be provided with bleeder circuit to guarantee the reliability of conversation.
The headset detection of the embodiment of the invention is mainly used in following two kinds of occasions: music and earphone conversation.
During music, in the effective operating voltage range of portable terminal, require spreadtrum platform CPU and audio frequency power amplifier can both detect earphone exactly, headset detection circuit such as Fig. 1, Fig. 2, shown in Figure 3.
When earphone does not insert, HEADSETvDETECT ' discord the earphone of mobile phone end earphone interface links to each other, headset detection signal HEADSET_DETECT from spreadtrum platform CPU moves VMEM on R30 and R77, be high level (as shown in Figure 2), judges that thus earphone does not insert.
When earphone inserts, as shown in Figure 2, the HEADSET_DETECT ' of mobile phone end earphone interface can receive the ground (as shown in Figure 3) of earphone end, resistance R 77=1k Ω<<R30=100k Ω, spreadtrum platform CPU can detect a low level (as shown in Figure 2) from HEADSET_DETECT, judges that thus earphone inserts.
The headset detection of audio frequency power amplifier is finished by two detection signals, as shown in Figure 1.Table 1 has reflected two kinds of detection methods that audio frequency power amplifier SN4188 earphone inserts.
Table 1SN4188 operating state
Audio frequency power amplifier enables pin The HP_LOGIC pin The HP_SENSE pin The audio frequency power amplifier operating state
With With Single-ended
With Low Low (earphone does not insert) Bridge-type/BTL
With High (earphone insertion) Single-ended
Low Turn-off
Method 1:HP_LOGIC ground connection, HP_SENSE is high, earphone inserts; HP_SENSE is low, and earphone is extracted;
Method 2:HP_SENSE ground connection, HP_LOGIC is high, earphone inserts; HP_LOGIC is low, and earphone is extracted.
The voltage range such as the following table of the high-low level correspondence of HP_LOGIC and HP_SENSE:
The voltage range of HP_SENSE and HPvLOGIC high-low level under the table 2 3V operating voltage
Parameter Representative value Limiting value Unit
VIH The HP_SENSE height 1.9 V
VIL HP_SENSE is low 1.7 V
VIHSD The HP_LOGIC height 0.9 1.1 V(min)
VILSD HP_LOGIC is low 0.6 0.4 V(max)
The voltage range of HP_SENSE and HP_LOGIC high-low level under the table 3 5V operating voltage
Parameter Representative value Limiting value Unit
VIH The HP_SENSE height 3.3 4.0 V(min)
VIL HP_SENSE is low 3.2 2.8 V(max)
VIHSD The HP_LOGIC height 1.1 1.4 V(min)
VILSD HP_LOGIC is low 1 0.4 V(max)
Our system of selection 2 herein realizes the headset detection of audio frequency power amplifier, as shown in Figure 1, HP_SENSE ground connection, whether the detection earphone inserts key is that detection HP_LOGIC is high or low.As long as HP_LOGIC is lower than 0.4V, detects to earphone and do not insert.As shown in Figure 2, when earphone did not insert, HEADSET_DETECT was high, and PNP triode T3 ends, and HP_LOGIC is by resistance R 172 and R174 ground connection, and voltage is almost 0<0.4V, does not insert so audio frequency power amplifier detects earphone.Need only HP_LOGIC and be higher than 1.4V, detecting is that earphone inserts.As shown in Figure 2, when earphone did not insert, HEADSET_DETECT was low, PNP triode T3 conducting, HP_LOGIC meets VMEM by resistance R 171, R171=2k Ω<<R172=100k Ω, the HP_LOGIC magnitude of voltage approaches VMEM, promptly about 3V, inserts so audio frequency power amplifier detects earphone.
If employing method 1 realizes headset detection, this moment, HP_LOGIC needed ground connection, from table 2, table 3, mainly was to judge the height of HP_SENSE and low.The high and low level voltage scope of HP_SENSE when operating voltage is respectively 3V and 5V, it is bigger that the high and low level voltage scope of HP_SENSE is influenced by the PA supply voltage, HP_SENSE high level scope is greater than 1.9V during the 3V operating voltage, and HP_SENSE high level scope is greater than 4V during the 5V operating voltage.The operating voltage of portable terminal is to the maximum about 4.2V, and HP_SENSE high level scope at this moment is approximately greater than 3V.As shown in Figure 2, spreadtrum platform VMEM is approximately 3.1V, and the high level voltage scope of this and HP_SENSE is very nearly the same, is easy to cause erroneous judgement, so system of selection 2 safety relatively.
If HEADSET DETECT ' is low, spreadtrum CPU detects and is the earphone insertion in the headset detection circuit of the present invention; If HEADSET_DETECT ' is high, spreadtrum CPU detection is extracted for earphone.With HP_SENSE ground connection, when HPvLOGIC is high, audio frequency power amplifier detects and is the earphone insertion; When HP_LOGIC is low, audio frequency power amplifier detects to earphone and extracts.For other platforms, as NXP, Siliconlab etc., the method for different platform CPU headset detection may be different, but headset detection method the present invention of stereo audio power amplifier still adapts to.
In earphone when conversation,, when button is pressed, as shown in Figure 4, HEAD_MIC receives the ground of earphone end, triode T1 conducting, and BUTTON_DET is by high step-down, and button is pressed and is surpassed sometime, concludes to answer or hang up the telephone.R119 less if (for example 100K Ω), normal talking may be no problem, but, if earphone Mike is blown, analog signal trough (the 0.2V-0.3V that produces, approach 0) and the T1 base stage between pressure reduction be enough to make the T1 conducting, BUTTON_DET can detect a low level thus, and then may cause phone mistake to be hung up.Earphone conversation button of the present invention is pressed testing circuit, is provided with suitable bleeder circuit to guarantee the reliability of conversation, and R120 is 45k Ω-55k Ω left and right sides resistance in the dividing potential drop road, R119 115-125k Ω left and right sides resistance.Preferred R120 is 47k Ω or 51k Ω, and R119 is a 120k Ω left and right sides resistance.
In sum, the headset detection method of a kind of portable terminal provided by the invention has realized the application of stereo audio power amplifier on the spreadtrum platform of band earphone 3D audio well, and has solved the problem of when spreadtrum platform earphone is conversed Mike being blown and hanging up by mistake.

Claims (5)

1, a kind of headset detection method of portable terminal, be used to detect with the mobile terminal earphone of stereo audio power amplifier (containing earphone 3D audio) based on the spreadtrum platform, comprise the conversation of music and earphone, it is characterized in that described detection method mainly comprises: if the HEADSET_DETECT ' of earphone interface end testing circuit is for low, spreadtrum CPU detects and is the earphone insertion, if HEADSET_DETECT ' is high, spreadtrum CPU detection is extracted for earphone; With the HP_SENSE ground connection of audio frequency power amplifier end earphone plug testing circuit, when HP_LOGIC be high, audio frequency power amplifier detects and is the earphone insertion, and when HP_LOGIC is low, the audio frequency power amplifier detection is extracted for earphone; Earphone conversation button by testing circuit in be provided with bleeder circuit to guarantee the reliability of conversation.
2, the headset detection method of a kind of portable terminal according to claim 1, when it is characterized in that earphone does not insert, the HEADSET_DETECT discord earphone of mobile phone end earphone interface links to each other, headset detection signal HEADSET_DETECT from spreadtrum platform CPU moves VMEM on R30 and R77, be high level, judge that thus earphone does not insert; When earphone inserted, the HEADSET_DETECT ' of mobile phone end earphone interface can receive the ground of earphone end, resistance R 77=1k Ω<<R30=100k Ω, spreadtrum platform CPU can detect a low level from HEADSET_DETECT, judges that thus earphone inserts.
3, the headset detection method of a kind of portable terminal according to claim 1 is characterized in that HP_SENSE ground connection, as long as HP_LOGIC is lower than 0.4V, detects to earphone and does not insert; When earphone did not insert, HEADSET_DETECT was high, and PNP triode T3 ends, and HP_LOGIC is by resistance R 172 and R174 ground connection, and voltage is almost 0<0.4V, does not insert so audio frequency power amplifier detects earphone; As long as HP_LOGIC is higher than 1.4V, detect and be the earphone insertion, when earphone does not insert, HEADSET_DETECT is low, PNP triode T3 conducting, and HP_LOGIC meets VMEM by resistance R 171, R171=2k Ω<<R172=100k Ω, the HP_LOGIC magnitude of voltage approaches VMEM, promptly about 3V, inserts so audio frequency power amplifier detects earphone.
4, the headset detection method of a kind of portable terminal according to claim 1, when it is characterized in that the earphone conversation, when button is pressed, earphone conversation button by the HEAD_MIC of testing circuit receive the ground of earphone end, triode T1 conducting, BUTTON_DET is by high step-down, and button is pressed and surpassed sometime, concludes to answer or hang up the telephone; R120 is 45k Ω-55k Ω left and right sides resistance in the dividing potential drop road, R119 115-125k Ω left and right sides resistance.
5, the headset detection method of a kind of portable terminal according to claim 1 is characterized in that described stereo audio power amplifier is SN4188 or LM4888.
CNA2008100386482A 2008-06-06 2008-06-06 Earphone detecting method for mobile terminal Pending CN101287202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100386482A CN101287202A (en) 2008-06-06 2008-06-06 Earphone detecting method for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100386482A CN101287202A (en) 2008-06-06 2008-06-06 Earphone detecting method for mobile terminal

Publications (1)

Publication Number Publication Date
CN101287202A true CN101287202A (en) 2008-10-15

Family

ID=40059122

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100386482A Pending CN101287202A (en) 2008-06-06 2008-06-06 Earphone detecting method for mobile terminal

Country Status (1)

Country Link
CN (1) CN101287202A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505333A (en) * 2008-12-18 2009-08-12 上海闻泰电子科技有限公司 Mobile terminal having direct recording function and direct recording method thereof
CN101835083A (en) * 2010-04-12 2010-09-15 惠州Tcl移动通信有限公司 Earphone hangup detection method, device and electron device
CN101924835A (en) * 2010-08-17 2010-12-22 惠州Tcl移动通信有限公司 Mobile telephone communication method and mobile telephone
CN101945172A (en) * 2010-09-17 2011-01-12 惠州Tcl移动通信有限公司 Mobile phone-based earphone recognition calling method and mobile phone
CN102325228A (en) * 2011-08-22 2012-01-18 惠州Tcl移动通信有限公司 Mobile phone and method for reducing energy consumption of headset of mobile phone
CN102413239A (en) * 2011-11-15 2012-04-11 惠州Tcl移动通信有限公司 Mobile phone and method for detecting earphone mode of mobile phone
CN103024632A (en) * 2012-12-30 2013-04-03 青岛歌尔声学科技有限公司 Noise reduction device of earphone
CN103581818A (en) * 2012-07-26 2014-02-12 深圳富泰宏精密工业有限公司 Earphone detecting circuit and communication terminal with same
CN103731542A (en) * 2012-10-11 2014-04-16 北京新媒传信科技有限公司 Method and device for managing application supporting headset operations
CN104038867A (en) * 2014-06-30 2014-09-10 无锡中星微电子有限公司 Bluetooth circuit and Bluetooth device comprising same
CN105451149A (en) * 2015-12-30 2016-03-30 潍坊歌尔电子有限公司 Loudspeaker plug detection circuit and electronic device
CN108064013A (en) * 2018-02-23 2018-05-22 西安闻泰电子科技有限公司 Earphone detection circuit, earphone detecting method and electronic equipment

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505333A (en) * 2008-12-18 2009-08-12 上海闻泰电子科技有限公司 Mobile terminal having direct recording function and direct recording method thereof
CN101835083B (en) * 2010-04-12 2013-07-03 惠州Tcl移动通信有限公司 Earphone hangup detection method, device and electron device
CN101835083A (en) * 2010-04-12 2010-09-15 惠州Tcl移动通信有限公司 Earphone hangup detection method, device and electron device
CN101924835A (en) * 2010-08-17 2010-12-22 惠州Tcl移动通信有限公司 Mobile telephone communication method and mobile telephone
CN101945172A (en) * 2010-09-17 2011-01-12 惠州Tcl移动通信有限公司 Mobile phone-based earphone recognition calling method and mobile phone
CN102325228A (en) * 2011-08-22 2012-01-18 惠州Tcl移动通信有限公司 Mobile phone and method for reducing energy consumption of headset of mobile phone
CN102413239A (en) * 2011-11-15 2012-04-11 惠州Tcl移动通信有限公司 Mobile phone and method for detecting earphone mode of mobile phone
CN103581818A (en) * 2012-07-26 2014-02-12 深圳富泰宏精密工业有限公司 Earphone detecting circuit and communication terminal with same
CN103581818B (en) * 2012-07-26 2018-02-27 深圳富泰宏精密工业有限公司 Earphone detection circuit and the communication terminal with the earphone detection circuit
CN103731542A (en) * 2012-10-11 2014-04-16 北京新媒传信科技有限公司 Method and device for managing application supporting headset operations
CN103731542B (en) * 2012-10-11 2015-12-09 北京新媒传信科技有限公司 To management method and the device of supporting the application that earphone operates
CN103024632A (en) * 2012-12-30 2013-04-03 青岛歌尔声学科技有限公司 Noise reduction device of earphone
CN104038867A (en) * 2014-06-30 2014-09-10 无锡中星微电子有限公司 Bluetooth circuit and Bluetooth device comprising same
CN104038867B (en) * 2014-06-30 2017-10-10 无锡中感微电子股份有限公司 Bluetooth circuit and the blue-tooth device including the Bluetooth circuit
CN105451149A (en) * 2015-12-30 2016-03-30 潍坊歌尔电子有限公司 Loudspeaker plug detection circuit and electronic device
CN105451149B (en) * 2015-12-30 2019-03-12 潍坊歌尔电子有限公司 A kind of loudspeaker plug-pull detecting circuit and electronic equipment
CN108064013A (en) * 2018-02-23 2018-05-22 西安闻泰电子科技有限公司 Earphone detection circuit, earphone detecting method and electronic equipment

Similar Documents

Publication Publication Date Title
CN101287202A (en) Earphone detecting method for mobile terminal
CN202634659U (en) Earphone interface self-adaptive circuit and mobile terminal
CN102404665B (en) A kind of earphone interface adaptive circuit
CN201349247Y (en) Earphone interface circuit and movable termination
CN201509235U (en) Headphone detection circuit of mobile terminal and mobile terminal thereof
CN101841588B (en) Audio interface device and electronic device using same
KR101567362B1 (en) Method and apparatus for ouputing audio signal in portable terminal
CN105491469A (en) Method and system for controlling audio output mode based on wearing earphone state
WO2012009984A1 (en) Method and device for sharing micro-usb interface between earphone and usb
WO2017181708A1 (en) Audio switching method and device for terminal, and electronic device
CN201142743Y (en) Headphone interface circuit and mobile phone with the same
CN105848028B (en) Earphone for charging for audio frequency apparatus and be audio frequency apparatus charging method
CN103974163B (en) Earphone compatible method and device and mobile terminal
CN102035911A (en) Device and method for accessing earphone of mobile phone
CN106465005A (en) Earphone type identification method, apparatus and terminal device
CN101924835A (en) Mobile telephone communication method and mobile telephone
CN202750144U (en) Walkie-talkie mobile phone
CN105050001A (en) Headset compatible circuit and working method thereof
CN201750528U (en) Audio processing device
CN105741863B (en) The method and apparatus and mobile terminal that a kind of audio frequency of mobile terminal plays
CN107635171B (en) Circuit for improving earphone compatibility
CN105373371A (en) Method and system for controlling volume of windows equipment through browser
CN105120390A (en) Headphone socket, headphone plug and electronic device
CN204968070U (en) Earphone socket, Headphone plug and electronic equipment
CN107005762A (en) Audio connector recognition methods and portable electric appts

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20081015