CN101184284A - Control method for judging insertion type of earphone by mobile phone - Google Patents
Control method for judging insertion type of earphone by mobile phone Download PDFInfo
- Publication number
- CN101184284A CN101184284A CNA2007101246263A CN200710124626A CN101184284A CN 101184284 A CN101184284 A CN 101184284A CN A2007101246263 A CNA2007101246263 A CN A2007101246263A CN 200710124626 A CN200710124626 A CN 200710124626A CN 101184284 A CN101184284 A CN 101184284A
- Authority
- CN
- China
- Prior art keywords
- earphone
- line
- mobile phone
- line control
- entered
- 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.)
- Granted
Links
Images
Abstract
The invention relates to a control method for judging the inserting kind of earphones using the mobile phones. The invention comprises the following steps: in the IDLE state of the mobile phone, the simulate switch of the mobile phone is connected with the GPIO end; when the earphone is inserted and detected, the simulate switch is connected with the MicBisa; the ADC is opened and sampling is operated; the sample value is judged and the following states are entered: the microphone of the line control earphone is connected with the normal earphone MIC and the orders ''OX02'' and ''TVOUT line'' are sent out; ''the normal stereo earphone'' and ''higher than 2 volts is line control earphone or the TVOUT line without being inserted the television''; if the detection result is ''getting the returning value'', the state ''the line control earphone is entered and the Mic has already been tripped off'' is entered; if the detected value is ''without getting the returning value'', the state ''the normal earphone without linearity'' is entered; if the detection result is ''getting the returning value OX81'', the state ''line control earphone'' is entered and if the detection result is ''getting no returning value'', the state ''TVOUT line without being inserting the television'' is entered.
Description
Technical field
The present invention relates to a kind of control method of judging insertion type of earphone by mobile phone.
Background technology
The earphone socket of the mobile phone of many in the market band line control machines all adopts the USB mode, the socket mode that it adopts and plug insert the differentiation control method of type, be not easy to the user earphone of common pin (Φ 2.5 OR Φ 3.5) is directly applied on this type of mobile phone.
At present with the mobile phone of general earphone socket (Φ 2.5 OR Φ 3.5), can not realize differentiation again by the mode that this jack interface detects automatically or manually detects simultaneously, as mobile phone line control machine plug, common headphones plug, band MIC headset plug, TVOUT plug, mobile phone games controller plug etc. to multiple insertion type of plug.
Summary of the invention
The objective of the invention is to overcome above-mentioned weak point of the prior art, provide a kind of common headphones socket (Φ 2.5 OR Φ 3.5) of using as handset port, make the very strong interface of versatility (Φ 2.5OR Φ 3.5) differentiate the insertion type of plug with software or hardware mode, compatible strong, and then realization mobile phone and common headphones, band MIC earphone, mobile phone line control machine, TV, the function of the unidirectional or two-way communication of modules such as game console, it judges that the control method of insertion type of earphone can be applied to the control method of the judging insertion type of earphone by mobile phone in the multiple Related product design again.
Purpose of the present invention can reach by following measure:
The control method of this judging insertion type of earphone by mobile phone, its special character is, comprises the following step:
(1.1) under the IDLE of mobile phone state, do not insert earphone, the analog switch on the mobile phone is received GPIO end (step 101);
(1.2) detect the insertion earphone, analog switch is received MicBisa and is opened ADC sampling (step 102);
(1.3) judge sampled value, enter " the line control earphone microphone has connected or the earphone (0.5~1.2 volt) of normal tape MIC " (step 103), " IVOUT line (0.15~0.5 volt) " (step 104), " normal stereo earphone (0 volt) " (step 105), " being higher than 2 volts is line control earphone or the TVOUT line that do not have plug-in to look " (step 106) respectively;
(1.4) step 103 enters next step 107;
(1.5) send order OX02 (step 107);
(1.6) if the testing result of step 107 is " obtaining return value ", then enter " line control earphone, and Mic disconnects " (step 109);
(1.7), then enter " being common " (step 108) not with the earphone of linearity if the testing result of step 107 be " not waiting until return value ";
(1.8) step 106 enters next step (110);
(1.9) if the testing result of step 110 for obtaining return value OX81, is then directly gone into " being line control earphone " (step 111);
(1.10) if the testing result of step 110 is " not obtaining return value ", then enter " the TVOUT line that does not have plug-in to look " (step 112).
The present invention has following advantage compared to existing technology:
1, the common headphones socket that adopts the discrimination technology that can discern multiple insertion plug (Φ 2.5 OR Φ 3.5) type not only for the user brings great convenience, also is a kind of universal design as handset port.
2, this differentiation control method, promptly differentiating agreement has two kinds of hardware detection and software detection, also this method can be applied to the design of multiple Related product.
Description of drawings
Fig. 1 is the flow chart of the control method of judging insertion type of earphone by mobile phone of the present invention.
Fig. 2 is the earphone interface circuit schematic diagram of mobile phone of the present invention.
Embodiment
The present invention is further detailed in conjunction with the accompanying drawings below:
See also shown in Figure 1ly, the control method of this judging insertion type of earphone by mobile phone comprises the following step:
(1.1) under the IDLE of mobile phone state, do not insert earphone, the analog switch on the mobile phone is received GPIO end (step 101);
(1.2) detect the insertion earphone, analog switch is received MicBisa and is opened ADC sampling (step 102);
(1.3) judge sampled value, enter " the line control earphone microphone has connected or the earphone (0.5~1.2 volt) of normal tape MIC " (step 103), " IVOUT line (0.15~0.5 volt) " (step 104), " normal stereo earphone (0 volt) " (step 105), " being higher than 2 volts is line control earphone or the TVOUT line that do not have plug-in to look " (step 106) respectively;
(1.4) step 103 enters next step 107;
(1.5) send order OX02 (step 107);
(1.6) if the testing result of step 107 is " obtaining return value ", then enter " line control earphone, and Mic disconnects " (step 109);
(1.7), then enter " being common " (step 108) not with the earphone of linearity if the testing result of step 107 be " not waiting until return value ";
(1.8) step 106 enters next step (110);
(1.9) if the testing result of step 110 for obtaining return value OX81, is then directly gone into " being line control earphone " (step 111);
(1.10) if the testing result of step 110 is " not obtaining return value ", then enter " the TVOUT line that does not have plug-in to look " (step 112).
The operation principle of earphone interface circuit:
Comprised head circuit and analog switching circuit among Fig. 2, HSMIC_LINECONTR is the output signal of head circuit, after it is selected by analog switch, imports base band again and handles.Its basic principle is: ADC5_HF_MIC detects the input signal of earphone, by the output of baseband chip processing back judgement earphone is MIC signal or line traffic control signal, control analog switch by control signal HS_LC_EN of base band output again, to realize separating of HS_MIC signal and LINE_CON_KEYPAD signal.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to claim scope of the present invention change and modify, and all should belong to the covering scope of claim of the present invention.
Claims (1)
1. the control method of a judging insertion type of earphone by mobile phone is characterized in that, comprises the following step:
(1.1) under the IDLE of mobile phone state, do not insert earphone, the analog switch on the mobile phone is received GPIO end (step 101);
(1.2) detect the insertion earphone, analog switch is received MicBisa and is opened ADC sampling (step 102);
(1.3) judge sampled value, enter " the line control earphone microphone has connected or the earphone (0.5~1.2 volt) of normal tape MIC " (step 103), " IVOUT line (0.15~0.5 volt) " (step 104), " normal stereo earphone (0 volt) " (step 105), " being higher than 2 volts is line control earphone or the TVOUT line that do not have plug-in to look " (step 106) respectively;
(1.4) step 103 enters next step 107;
(1.5) send order OX02 (step 107);
(1.6) if the testing result of step 107 is " obtaining return value ", then enter " line control earphone, and Mic disconnects " (step 109);
(1.7), then enter " being common " (step 108) not with the earphone of linearity if the testing result of step 107 be " not waiting until return value ";
(1.8) step 106 enters next step (110);
(1.9) if the testing result of step 11O for obtaining return value OX81, is then directly gone into " being line control earphone " (step 111);
(1.10) if the testing result of step 110 is " not obtaining return value ", then enter " the TVOUT line that does not have plug-in to look " (step 112).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101246263A CN101184284B (en) | 2007-11-20 | 2007-11-20 | Control method for judging insertion type of earphone by mobile phone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101246263A CN101184284B (en) | 2007-11-20 | 2007-11-20 | Control method for judging insertion type of earphone by mobile phone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101184284A true CN101184284A (en) | 2008-05-21 |
CN101184284B CN101184284B (en) | 2011-02-02 |
Family
ID=39449325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101246263A Active CN101184284B (en) | 2007-11-20 | 2007-11-20 | Control method for judging insertion type of earphone by mobile phone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101184284B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895633A (en) * | 2010-07-14 | 2010-11-24 | 中兴通讯股份有限公司 | Mobile terminal and unlocking method thereof |
CN102111699A (en) * | 2011-03-11 | 2011-06-29 | 华为终端有限公司 | Terminal and method for realizing compatibility of talkback headset and stereo headset at terminal |
CN102469190A (en) * | 2010-11-19 | 2012-05-23 | 比亚迪股份有限公司 | Complete machine debugging method and device based on mobile communication terminal |
CN102769697A (en) * | 2012-07-02 | 2012-11-07 | 惠州Tcl移动通信有限公司 | Method and system for preventing false key-pressing caused by earphone inserted into terminal device |
CN103118191A (en) * | 2013-01-28 | 2013-05-22 | Tcl通讯(宁波)有限公司 | Using control method and mobile terminal for iPhone wire control earphone |
CN106156666A (en) * | 2015-04-20 | 2016-11-23 | 联想(北京)有限公司 | A kind of method controlling electronic equipment and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2044784U (en) * | 1988-10-25 | 1989-09-20 | 廖玉云 | Multifunctional earphone plug |
KR100493858B1 (en) * | 2002-12-16 | 2005-06-10 | 삼성전자주식회사 | Multi ear jack and his control method |
CN1728082A (en) * | 2005-07-29 | 2006-02-01 | 上海贝豪通讯电子有限公司 | Method for raising versatility of earphone interface |
-
2007
- 2007-11-20 CN CN2007101246263A patent/CN101184284B/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895633A (en) * | 2010-07-14 | 2010-11-24 | 中兴通讯股份有限公司 | Mobile terminal and unlocking method thereof |
CN102469190A (en) * | 2010-11-19 | 2012-05-23 | 比亚迪股份有限公司 | Complete machine debugging method and device based on mobile communication terminal |
CN102469190B (en) * | 2010-11-19 | 2015-09-30 | 比亚迪股份有限公司 | Based on complete machine debugging method and the device of mobile communication terminal |
CN102111699A (en) * | 2011-03-11 | 2011-06-29 | 华为终端有限公司 | Terminal and method for realizing compatibility of talkback headset and stereo headset at terminal |
CN102769697A (en) * | 2012-07-02 | 2012-11-07 | 惠州Tcl移动通信有限公司 | Method and system for preventing false key-pressing caused by earphone inserted into terminal device |
CN102769697B (en) * | 2012-07-02 | 2015-03-25 | 惠州Tcl移动通信有限公司 | Method and system for preventing false key-pressing caused by earphone inserted into terminal device |
CN103118191A (en) * | 2013-01-28 | 2013-05-22 | Tcl通讯(宁波)有限公司 | Using control method and mobile terminal for iPhone wire control earphone |
CN103118191B (en) * | 2013-01-28 | 2015-01-21 | Tcl通讯(宁波)有限公司 | Using control method and mobile terminal for iPhone wire control earphone |
CN106156666A (en) * | 2015-04-20 | 2016-11-23 | 联想(北京)有限公司 | A kind of method controlling electronic equipment and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101184284B (en) | 2011-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105338447B (en) | Earphone control circuit and method, earphone and audio output device and method | |
CN101184284B (en) | Control method for judging insertion type of earphone by mobile phone | |
CN103634724B (en) | Earphone connection interface, earphone operating method and the terminal for supporting the interface and method | |
US7849238B2 (en) | Multiple-apparatus connection system and the method thereof | |
CN110166871B (en) | Earphone charging box, TWS earphone, working state switching method and storage medium | |
CN101841586B (en) | Method for expanding earphone interface of mobile phone into serial communication interface | |
CN102413239B (en) | Mobile phone and method for detecting earphone mode of mobile phone | |
CN201657320U (en) | Earphone plug-pull detecting circuit for mobile phone | |
CN201142743Y (en) | Headphone interface circuit and mobile phone with the same | |
EP2597844A1 (en) | Method and device for sharing micro-usb interface between earphone and usb | |
CN105703185B (en) | Method for transmitting signals, device and adapter | |
CN203167074U (en) | Mobile terminal configured with reuse interface | |
CN103118191B (en) | Using control method and mobile terminal for iPhone wire control earphone | |
CN101951421A (en) | Expansion use method for cell phone earphone interface | |
CN101431708A (en) | Terminal and method for recognizing headphone type | |
CN100370857C (en) | Device for identifying connection of digital camera and earphone in mobile communication terminal and method | |
CN202310062U (en) | Compatible three-section earphone insertion detection circuit | |
CN101938546A (en) | Earphone microphone detection method based on mobile phone and mobile phone | |
CN102769810A (en) | Mobile terminal with a calling misoperation preventive function | |
CN102035924B (en) | Detection circuit and detection method for four-section coaxial earphone interface of mobile phone | |
CN203933930U (en) | Earphone interface circuit and portable electron device | |
CN102053932B (en) | Electronic device and method for identifying electronic accessory therein | |
CN102073470A (en) | Electronic equipment and control method thereof | |
CN202750144U (en) | Walkie-talkie mobile phone | |
CN202696710U (en) | System using impedance to identify peripheral 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |