CN102480563B - Control method and device in process of inserting earphone into earphone socket - Google Patents

Control method and device in process of inserting earphone into earphone socket Download PDF

Info

Publication number
CN102480563B
CN102480563B CN201010577017.5A CN201010577017A CN102480563B CN 102480563 B CN102480563 B CN 102480563B CN 201010577017 A CN201010577017 A CN 201010577017A CN 102480563 B CN102480563 B CN 102480563B
Authority
CN
China
Prior art keywords
earphone
place
control unit
inserts
detecting unit
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.)
Expired - Fee Related
Application number
CN201010577017.5A
Other languages
Chinese (zh)
Other versions
CN102480563A (en
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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201010577017.5A priority Critical patent/CN102480563B/en
Publication of CN102480563A publication Critical patent/CN102480563A/en
Application granted granted Critical
Publication of CN102480563B publication Critical patent/CN102480563B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Stereophonic Arrangements (AREA)

Abstract

The invention provides a control method and device in a process of inserting an earphone into an earphone socket, wherein the method comprises the following steps: receiving an earphone insertion signal, and controlling an earphone insertion in-place detection circuit to detect whether the earphone is inserted in place or not according to the earphone insertion signal; and switching a mobile communication terminal to an earphone mode when detecting that the earphone is inserted in place. According to the control method and device disclosed by the invention, the earphone insertion in-place detection circuit is controlled to detect whether the earphone is inserted in place or not according to the earphone insertion signal, and the mobile terminal is switched to the earphone mode for implementing an earphone function after the earphone is detected to be indeed inserted in place, so that the problem that a phone call is put through or hung up by mistake during the process of inserting the earphone can be avoided, and the reliability is also improved. Furthermore, the method is simple and practicable and the production cost cannot be increased.

Description

Control method and device when earphone plugged earphone socket
Technical field
The present invention relates to communication technical field, particularly control method and device when a kind of earphone plugged earphone socket.
Background technology
Whether the mechanical switch that prior art is normally come on Test earphone socket by earphone detection circuit connects to judge whether earphone inserts, that is to say, before and after inserting according to earphone, the variation of the low and high level of earphone insertion detection signal judges whether earphone inserts.Insert after mobile communication terminal at earphone, realize connecting or disconnecting of phone by pressing earphone keystroke.The present inventor finds, the problem that this method exists is, because the switch on earphone socket is a mechanical trip switch, in the insertion process of earphone, each of headset plug section all can contact (different with the contact condition of final needs) from the different contacts of earphone socket, often earphone also completely insert put in place in, just produce earphone and inserted detection signal, whether mobile communication terminal inserts detection signal according to earphone and is switched to headset mode, go Test earphone button to press down and carry out connection or hang up the telephone.Therefore, also do not insert in the process putting in place completely at earphone, if there is phone call in or converse, all may or hang up closing of the circuit.
Voltage above the earphone Mike line that the another kind of method that judges whether earphone inserts is direct-detection earphone socket, but in the insertion process of earphone, Mike's line still there will be low level situation, therefore, the situation that misconnection is listened or hung up still can occur.
Also having a kind of method that judges that earphone inserts is that headset detection line is directly received on the left and right acoustic channels line of earphone.The problem of this method is, when earphone inserts, a sound channel has noise, and earpiece volume misoperation can occur when large, also can be to the coupling in connect sound channel large capacitor charge and discharge, cause this sound channel problem such as slow of speaking.
Summary of the invention
Object of the present invention is intended at least solve one of above-mentioned technological deficiency, and control method and device while particularly proposing a kind of earphone plugged earphone socket, to prevent in earphone insertion process mistake by closing of the circuit or to hang up.
For achieving the above object, control method when one aspect of the present invention proposes a kind of earphone plugged earphone socket, comprise the following steps: receive earphone and insert signal, and insert signal controlling earphone according to described earphone and insert the testing circuit Test earphone that puts in place and whether insert and put in place; And in the time detecting that described earphone insertion puts in place, mobile communication terminal is switched to headset mode.
Control device when the present invention also proposes a kind of earphone plugged earphone socket on the other hand, described control device is electrically connected with earphone socket, and described control device comprises: the first detecting unit, control unit and the second detecting unit.Wherein, the first detecting unit is for detection of whether plugged earphone socket of earphone, and in the time detecting that earphone inserts, produces earphone and insert signal; Control unit is in the time that the earphone that receives described the first detecting unit transmission inserts signal, start the second detecting unit, and judge according to the detection signal of described the second detecting unit feedback whether earphone inserts and put in place, and in the time judging that earphone insertion puts in place, mobile communication terminal is switched to headset mode; Whether described the second detecting unit inserts and puts in place for detection of described earphone, and sends detection signal to described control unit.
The present invention inserts signal by receiving earphone, and insert signal according to described earphone and control earphone and insert the testing circuit Test earphone that puts in place and whether insert and put in place, just mobile terminal is switched to headset mode detecting that earphone really inserts after putting in place, carry out ear-phone function, therefore can avoid in earphone insertion process, missing closing of the circuit or hanging up, improve reliability.And the method is simple, can not increase production cost.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Brief description of the drawings
The present invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments obviously and easily and understand, wherein:
The flow chart of control method when Fig. 1 is the earphone plugged earphone socket of the embodiment of the present invention;
The structural representation of control device when Fig. 2 is the earphone plugged earphone socket of the embodiment of the present invention; And
Fig. 3 is the circuit diagram of the cell phone mainboard earphone portion circuit of a specific embodiment of the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.
The flow chart of the control method while being illustrated in figure 1 the earphone plugged earphone socket of the embodiment of the present invention, the method comprises the following steps:
Whether step S101, receives earphone and inserts signal, and insert signal controlling earphone according to earphone and insert the testing circuit Test earphone that puts in place and insert and put in place.
In one embodiment of the invention, in the time of earphone plugged earphone socket, can detect that earphone inserts signal, insert signal according to earphone earphone is inserted to the testing circuit conducting that puts in place, make power supply to the earphone sound channel line power supply of inserting mobile communication terminal, the output voltage of Test earphone sound channel line, and judge according to output voltage whether earphone inserts and put in place.Particularly, whether the output voltage that judges earphone sound channel line in predefined voltage range, if in predefined voltage range, judge that earphone inserts to put in place, if not in predefined voltage range, judges that earphone does not insert to put in place.
In one embodiment of the invention, predefined voltage range is 0.1V~0.2V.Should be understood that, because earphone there will be a lot of resistances during insertion, such as earphone Mike resistance etc., therefore there will be multiple voltage, so can not judge by simple high level or low level the insertion state of earphone.Will also be understood that, insert the difference of load resistance and the difference of supply voltage of the testing circuit that puts in place according to earphone sound channel resistance and earphone, different voltage ranges can be set, but, the load resistance that inserts with respect to earphone the testing circuit that puts in place due to the left and right acoustic channels resistance of earphone is less value, and therefore the end value of this predefined voltage range is the lower magnitude of voltage close to 0V.
Step S102, in the time detecting that earphone insertion puts in place, switches to headset mode by mobile communication terminal.
In one embodiment of the invention, judging that earphone inserts while putting in place, also can control earphone and insert the testing circuit that puts in place and close, cut off the electricity supply to the power supply of earphone sound channel line, in order to avoid mobile terminal is switched to the audio performance that affects earphone sound channel after headset mode.
In order to realize above-described embodiment, control device when the present invention also provides a kind of earphone plugged earphone socket.The structural representation of the control device while being illustrated in figure 2 the earphone plugged earphone socket of the embodiment of the present invention, this control device is electrically connected with earphone socket 40, comprising: the first detecting unit 10, control unit 20 and the second detecting unit 30.
Wherein, the first detecting unit 10 is for detection of whether plugged earphone socket 40 of earphone, and in the time detecting that earphone inserts, produces earphone and insert signal.Control unit 20 is in the time receiving earphone that the first detecting unit 10 sends and insert signal, start the second detecting unit 30, and the detection signal feeding back according to the second detecting unit 30 judges whether earphone inserts and puts in place, in the time judging that earphone insertion puts in place, mobile communication terminal is switched to headset mode.Whether the second detecting unit 30 inserts and puts in place for detection of earphone, and sends detection signal to control unit 20.
In one embodiment of the invention, control unit 20 is also used in when mobile communication terminal is switched to headset mode, closes the second detecting unit 30, in order to avoid mobile terminal is switched to the audio performance that affects earphone sound channel after headset mode.
Fig. 3 is the circuit diagram of the cell phone mainboard earphone portion circuit of a specific embodiment of the present invention.As shown in Figure 3,1 pin ground connection of earphone socket, 2 pin are electrically connected with earphone Mike line, and 3 pin are electrically connected with earphone L channel line, and 4 pin are electrically connected with earphone R channel line, and 5 pin insert detection line with earphone and are electrically connected, and 6 pin are unsettled.
Earphone inserts detection line one end and is electrically connected with the primary processor (not shown) of mobile phone, the other end is electrically connected with earphone L channel line, and be electrically connected with the power supply of 2.8V by resistance R 1, form earphone insertion detection circuit, whether insert by the voltage detecting earphone on Test earphone L channel line.
Metal-oxide-semiconductor Q1, resistance R 911, R912, R915, R916 form earphone and insert the testing circuit that puts in place together with R923.Wherein, the source electrode of metal-oxide-semiconductor Q1 is electrically connected with the power supply of 2.8V by resistance R 911, the drain electrode of metal-oxide-semiconductor Q1 is electrically connected with resistance R 912, and by resistance R 915 ADC (the Analog to DigitalConvert with the primary processor of mobile phone, analog-to-digital conversion) detect a mouthful electrical connection, the grid of metal-oxide-semiconductor Q1 is electrically connected with primary processor by resistance R 916.One end of resistance R 912 is electrically connected with the drain electrode of metal-oxide-semiconductor Q1, and the other end is electrically connected with earphone R channel line, and by resistance R 923 ground connection.
In Fig. 3, R911 is 4.7K Ω, and R912 is 100 Ω, and R915 and R916 are 2.2K Ω, and R923 is 470K Ω.In the time that the earphone of 3.5mm or 2.5mm inserts, earphone inserts detection line and receives earphone insertion signal, and this earphone is inserted to signal and sends to the primary processor (not shown) of mobile phone, when primary processor receives earphone insertion signal, by the control signal of control signal end output low level, metal-oxide-semiconductor Q1 grid is low level, therefore metal-oxide-semiconductor Q1 conducting, it is upper that the supply voltage of 2.8V is added to earphone sound channel line (i.e. 4 pin in figure), and primary processor detects mouthful voltage that earphone R channel line (i.e. 4 pin in figure) can be detected by ADC.Because in the process of inserting at earphone, there will be a lot of resistances, such as earphone Mike resistance etc., so there will be multiple voltage.In the present embodiment, only have in the time that primary processor detects that voltage on 4 pin is 0.1V~0.2V, just confirm that earphone insertion puts in place, mobile communication terminal is switched to headset mode by primary processor, carry out relevant ear-phone function, for example can pass through earphone receiving phone, to alleviate the impact of Radiation On Human body.The control signal of the high level of the control signal end of primary processor output simultaneously, metal-oxide-semiconductor Q1 grid is high level, therefore metal-oxide-semiconductor Q1 disconnects, cuts off the power supply of the supply voltage of 2.8V, to avoid affecting in call or the process of listening to the music the audio performance of left and right acoustic channels.
While should be understood that the type change when selected earphone and earphone socket, the thing followed, the component parameter that need to adopt above-mentioned control device is adjusted accordingly.Certainly,, when the resistance of the earphone sound channel line of insertion changes and/or supply voltage changes and/or the size of the impedance of resistance R 911, R912, R915, R916 and R923 changes, confirm that earphone inserts the voltage range putting in place and also should change thereupon.Will also be understood that, can control earphone with dissimilar metal-oxide-semiconductor and insert put in place conducting and the disconnection of testing circuit, such as PMOS pipe or NMOS pipe etc., according to the difference of metal-oxide-semiconductor type, primary processor also can send different level signals controls conducting or the disconnection of metal-oxide-semiconductor.In concrete enforcement, except adopting metal-oxide-semiconductor as control switch, can also adopt the control switch of other types, conducting and disconnection that for example controllable silicon is controlled earphone and inserted the testing circuit that puts in place.These amendments or replacement all should be included in protection scope of the present invention.
The present invention inserts signal by receiving earphone, and insert signal according to described earphone and control earphone and insert the testing circuit Test earphone that puts in place and whether insert and put in place, just mobile terminal is switched to headset mode detecting that earphone really inserts after putting in place, carry out ear-phone function, therefore can avoid in earphone insertion process, missing closing of the circuit or hanging up, improve reliability.And the method is simple, can not increase production cost.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, amendment, replacement and modification to these embodiment, scope of the present invention is by claims and be equal to and limit.

Claims (6)

1. control method when earphone plugged earphone socket, is characterized in that, comprises the following steps:
Receive earphone and insert signal, and insert signal controlling earphone according to described earphone and insert the testing circuit startup that puts in place, so that power supply is powered to earphone sound channel line;
Detect the output voltage of described earphone sound channel line;
Judging according to described output voltage whether described earphone inserts puts in place; And
Detect that described earphone inserts while putting in place, mobile communication terminal be switched to headset mode, and close described earphone and insert the testing circuit that puts in place, wherein, describedly judge according to described output voltage whether described earphone inserts to put in place and specifically comprise:
Judge that described output voltage is whether in predefined voltage range;
If judge that described output voltage is in described predefined voltage range, judge that described earphone insertion puts in place; And
If judge that described output voltage is not in described predefined voltage range, judge that described earphone does not insert to put in place.
2. control method when earphone plugged earphone socket according to claim 1, is characterized in that, described predefined voltage range is 0.1V~0.2V.
3. control device when earphone plugged earphone socket, is characterized in that, described control device is electrically connected with earphone socket, and described control device comprises: the first detecting unit, control unit and the second detecting unit, wherein:
The first detecting unit, for detection of whether plugged earphone socket of earphone, and in the time detecting that earphone inserts, produce earphone and insert signal, wherein, described the first detecting unit comprises that earphone inserts detection line, and described earphone inserts detection line one end and is electrically connected with described control unit, the other end is electrically connected with earphone L channel line, and is connected with power supply by the first resistance;
Control unit, for in the time that the earphone that receives described the first detecting unit transmission inserts signal, start the second detecting unit, and judge according to the detection signal of described the second detecting unit feedback whether earphone inserts and put in place, and in the time judging that earphone insertion puts in place, mobile communication terminal is switched to headset mode; And
Described the second detecting unit, whether insert and put in place for detection of described earphone, and send detection signal to described control unit, described control unit is also in the time being switched to headset mode by mobile communication terminal, close described the second detecting unit, wherein, described the second detecting unit comprises control switch, the control end of described control switch is electrically connected with described control unit, carry out conducting or turn-off the first link and second link of described control switch according to the signal of described control unit, the first link of described control switch is connected with power supply, the second link of described control switch is connected with earphone R channel line, and the second link of described control switch is connected with described control unit, to described control unit feedback detection signal.
4. control device when earphone plugged earphone socket according to claim 3, is characterized in that, described control switch is specially controllable silicon or metal-oxide-semiconductor.
5. control device when earphone plugged earphone socket according to claim 4, is characterized in that, when described control switch is metal-oxide-semiconductor, described the second detecting unit specifically comprises:
Metal-oxide-semiconductor, the source electrode of described metal-oxide-semiconductor is connected with described power supply by the second resistance, the grid of described metal-oxide-semiconductor is electrically connected the control signal sending for reception control unit with described control unit by the 3rd resistance, the drain electrode of described metal-oxide-semiconductor is connected with earphone R channel line by the 4th resistance, be electrically connected the voltage for send the described earphone R channel line detecting to described control unit with described control unit by the 5th resistance, described earphone R channel line is by the 6th grounding through resistance.
6. control device when earphone plugged earphone socket according to claim 5, it is characterized in that, described earphone diameter is 2.5mm or 3.5mm, when the detection voltage range from described metal-oxide-semiconductor drain feedback that described control unit receives is 0.1V~0.2V, judge that described earphone insertion puts in place.
CN201010577017.5A 2010-11-30 2010-11-30 Control method and device in process of inserting earphone into earphone socket Expired - Fee Related CN102480563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010577017.5A CN102480563B (en) 2010-11-30 2010-11-30 Control method and device in process of inserting earphone into earphone socket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010577017.5A CN102480563B (en) 2010-11-30 2010-11-30 Control method and device in process of inserting earphone into earphone socket

Publications (2)

Publication Number Publication Date
CN102480563A CN102480563A (en) 2012-05-30
CN102480563B true CN102480563B (en) 2014-07-02

Family

ID=46093037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010577017.5A Expired - Fee Related CN102480563B (en) 2010-11-30 2010-11-30 Control method and device in process of inserting earphone into earphone socket

Country Status (1)

Country Link
CN (1) CN102480563B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683913B (en) * 2013-11-28 2018-03-23 展讯通信(上海)有限公司 Electronic equipment and earphone detection circuit
CN104683915B (en) * 2013-11-28 2018-10-16 展讯通信(上海)有限公司 Electronic equipment and earphone detection circuit, method and apparatus
CN105792069B (en) * 2014-12-26 2019-04-16 联芯科技有限公司 A kind of earphone base interface circuit
CN105828229B (en) * 2015-08-28 2019-02-15 维沃移动通信有限公司 A kind of earphone, terminal and earphone detecting method
CN105430549B (en) * 2015-12-14 2019-06-04 惠州Tcl移动通信有限公司 A kind of device and method preventing earphone insertion maloperation
CN109602337B (en) * 2017-10-11 2024-04-02 江苏东成机电工具有限公司 Sweeping robot
US11395080B2 (en) 2017-10-23 2022-07-19 Maxim Integrated Products, Inc. Systems and methods for accessory and impedance detection
CN110209543B (en) * 2019-05-28 2023-03-21 维沃移动通信有限公司 Earphone socket detection method and terminal
CN113271530B (en) * 2021-05-20 2022-09-06 深圳市通标科技有限公司 Plug-pull detection method and device of earphone equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506828A (en) * 2002-12-06 2004-06-23 瑞昱半导体股份有限公司 Automatic analog signal output/input distinguishing device and method
CN101308187A (en) * 2008-06-27 2008-11-19 深圳华为通信技术有限公司 Method and terminal for detecting earphones plug inserting to position
CN101453510A (en) * 2007-12-05 2009-06-10 德信智能手机技术(北京)有限公司 Earphone recognition apparatus and method for mobile communication terminal
CN101778320A (en) * 2009-12-25 2010-07-14 中兴通讯股份有限公司 Microphone key-press earphone and state identification method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100396267B1 (en) * 2001-10-24 2003-09-02 삼성전자주식회사 Method for confirming ear microphone state in communication terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506828A (en) * 2002-12-06 2004-06-23 瑞昱半导体股份有限公司 Automatic analog signal output/input distinguishing device and method
CN101453510A (en) * 2007-12-05 2009-06-10 德信智能手机技术(北京)有限公司 Earphone recognition apparatus and method for mobile communication terminal
CN101308187A (en) * 2008-06-27 2008-11-19 深圳华为通信技术有限公司 Method and terminal for detecting earphones plug inserting to position
CN101778320A (en) * 2009-12-25 2010-07-14 中兴通讯股份有限公司 Microphone key-press earphone and state identification method

Also Published As

Publication number Publication date
CN102480563A (en) 2012-05-30

Similar Documents

Publication Publication Date Title
CN102480563B (en) Control method and device in process of inserting earphone into earphone socket
CN102761803B (en) Voice frequency interface self-adaptive device
CN202634659U (en) Earphone interface self-adaptive circuit and mobile terminal
EP2645737B1 (en) Apparatus and method for interfacing earphone
EP2336895B1 (en) Electronic device and method thereof for identifying electronic accessory
CN201928419U (en) Earphone and mobile communication terminal provided with same
CN101841586B (en) Method for expanding earphone interface of mobile phone into serial communication interface
EP2720476A1 (en) Apparatus and method for detecting insertion of headset into mobile station
CN201509235U (en) Headphone detection circuit of mobile terminal and mobile terminal thereof
US20060080476A1 (en) Multiple-apparatus connection system and the method thereof
EP2806662B1 (en) Apparatus for detecting the type of an audio interface
CN101431708A (en) Terminal and method for recognizing headphone type
CN101783986A (en) Earphone interface circuit and electronic equipment
CN102769810B (en) A kind of mobile terminal preventing call misoperation
CN101938546A (en) Earphone microphone detection method based on mobile phone and mobile phone
KR20130066880A (en) Detecting system for connecting of earphone and electric device supporting the same
CN202721789U (en) Audio interface adaptive device
CN101198192A (en) Electronic device capable of automatically estimating telephone earphone species and correlation technique thereof
CN103067601B (en) Mobile terminal and detecting method of earphone inserting state thereof
CN102053932A (en) Electronic device and method for identifying electronic accessory therein
CN103997704A (en) Audio playing device and Bluetooth loudspeaker box
CN105516844A (en) Earphone device, electronic device provided with earphone device, and control method thereof
US11852694B2 (en) Circuitry for detecting jack plug insertion or removal
KR20070022442A (en) Mobile phone had a function of blocking the Pop-Up Noise when an ear phone connected with the mobile phone
CN203883981U (en) Headset with microphone signal MIC and GND automatic switching function

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140702

CF01 Termination of patent right due to non-payment of annual fee