CN101841586B - Method for expanding earphone interface of mobile phone into serial communication interface - Google Patents
Method for expanding earphone interface of mobile phone into serial communication interface Download PDFInfo
- Publication number
- CN101841586B CN101841586B CN201010163609.2A CN201010163609A CN101841586B CN 101841586 B CN101841586 B CN 101841586B CN 201010163609 A CN201010163609 A CN 201010163609A CN 101841586 B CN101841586 B CN 101841586B
- Authority
- CN
- China
- Prior art keywords
- earphone
- interface
- mobile phone
- serial communication
- communication interface
- 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
Links
Images
Abstract
The invention relates to a method for expanding the earphone interface of a mobile phone into a serial communication interface. The method involves an earphone connector, an earphone interface and a control circuit which is arranged on a main board of the mobile phone and is connected with the earphone interface. The method comprises the following steps: S1, making the uploading port and downloading port of the serial communication interface be able to function as the pins of the left channel and right channel of the earphone connector; S2, arranging an analogue switch on the main board of the mobile phone for switching the serial communication interface and the interface of the left and right channels; and S3, arranging an analog-to-digital conversion pin in a microphone audio circuit of the main board of the mobile phone for detecting the voltage when the earphones are plugged in. The method for expanding the earphone interface of the mobile phone into the serial communication interface of the embodiment of the invention increases the functions of the earphones of the mobile phone, and enables convenient serial communication. Meanwhile, the scheme is also applicable to other mobile phone platforms, and has high generality.
Description
Technical field
The present invention relates to moving communicating field, more particularly, relate to a kind of method that earphone interface of mobile phone is expanded to serial communication interface.
Background technology
At present, in China, Mini 10pin USB interface is the main flow of mobile phone USB interface on market, as shown in Figure 1, has comprised charging, data wire (D-, D+), Serial Port Line (TX, RX) and audio interface (MIC, Speaker) etc. in this 10pin pin.
On June 30th, 2009, European commission of European Union represents, for environmental protection and consumer's convenience, from 1 day January in 2010, Europe charger for mobile phone standard, by the Micro 5pin USB mouth (as Fig. 2) of unified employing standard, has comprised charging, data wire (D-, D+), ID and GND in this 5pin, meanwhile, new Chinese Industrial Standards (CIS) requires handset audio to use 3.5mm earphone interface.But mobile phone also needs to use serial communication line, such as programming program.But do not have extra interface to provide.Industry usually adopts the mode of test point welding fly line to meet this requirement, and this mode is complicated operation not only, and easily produces defective products.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of method that earphone interface of mobile phone is expanded to serial communication interface.
The technical solution adopted for the present invention to solve the technical problems is: a kind of method that earphone interface of mobile phone is expanded to serial communication interface is provided, comprise there is common port ground, the Earphone joint of microphone audio, R channel and 4 pins of L channel, at the control circuit of the mobile phone terminal earphone interface corresponding with Earphone joint and the common port ground, microphone audio, R channel and the L channel that dock with earphone interface on cell phone mainboard, described method comprises the following steps:
S1, the upwards transmission port of serial communication interface and download port (being TX/RX) is shared with the L channel of Earphone joint and the pin of R channel;
S2, analog switch is set on cell phone mainboard, for switching the interface of serial communication interface and left and right acoustic channels;
S3, analog-to-digital conversion is set on the microphone audio circuit of cell phone mainboard detects pin, the voltage while inserting for detection of earphone; When the voltage detecting is 1.9~2.2V, analog switch is switched to earphone left and right acoustic channels channel status; When the voltage detecting is 2.4~2.8V, analog switch is switched to serial communication channel status.
More specifically, a kind of above-described method that earphone interface of mobile phone is expanded to serial communication interface, in described step S2, analog switch default serial port communication interface path.
More specifically, a kind of above-described method that earphone interface of mobile phone is expanded to serial communication interface, described earphone interface is 3.5mm.
Implement a kind of method that earphone interface of mobile phone is expanded to serial communication interface of the present invention, there is following beneficial effect:
Expanded the function of handset earphone, can carry out easily serial communication, solved due to the problem of mobile phone serial communication inconvenience that adopts the 5pin USB mouth of European standard, this scheme is also applicable to other cell phone platforms simultaneously, has versatility widely.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is mobile phone Mini 10pin USB interface structural representation;
Fig. 2 is European mobile phone standard Micro 5pin USB interface structural representation;
Fig. 3 is a kind of structural representation that earphone interface of mobile phone is expanded to the method Earphone joint of serial communication interface of the present invention;
Fig. 4 is a kind of serial ports 4 utmost point plug construction schematic diagrames that earphone interface of mobile phone expanded to the method for serial communication interface of the present invention;
Fig. 5 is a kind of outside bleeder circuit schematic diagram of Serial Port Line that earphone interface of mobile phone is expanded to the method for serial communication interface of the present invention;
Fig. 6 is a kind of embodiment MT6239 platform processes circuit theory diagrams that earphone interface of mobile phone expanded to the method for serial communication interface of the present invention;
Fig. 7 is a kind of partial enlarged drawing that earphone interface of mobile phone is expanded to method Fig. 6 of serial communication interface of the present invention;
Fig. 8 is a kind of embodiment serial ports input circuit schematic diagram that earphone interface of mobile phone is expanded to the method for serial communication interface of the present invention;
Fig. 9 is a kind of embodiment earphone interface of mobile phone and analog switch commutation circuit schematic diagram that earphone interface of mobile phone is expanded to the method for serial communication interface of the present invention.
Embodiment
In a kind of embodiment of the method that earphone interface of mobile phone is expanded to serial communication interface of the present invention, comprise the mobile phone 3.5mm Earphone joint with call function, it has four pins (pin pin), as Fig. 3, A, B, C, D are followed successively by common port ground, microphone audio (mic pin), R channel and L channel.At mobile phone terminal, there is the earphone interface corresponding with Earphone joint.The control circuit that has the common port ground, microphone audio, R channel and the L channel that dock with earphone interface on cell phone mainboard.At cell phone mainboard 3.5mm circuit interface place, the left and right acoustic channels of the TX/RX of serial ports and audio frequency is shared, with an analog switch, switch, analog switch default serial port communication interface is in channel status, when plugged earphone, be just switched to earphone left and right acoustic channels channel status, after extracting, revert to again serial ports channel status.
Accordingly, one end that Serial Port Line is inserted into mobile phone also needs to make the shape of 3.5mm earphone, and as shown in Figure 4, its four sections of A, B, C, D corresponding to Earphone joint are followed successively by common port ground, and serial ports detects pin ID, serial ports RX, serial ports TX.
For the detection of serial ports, we adopt the mode (as Fig. 8 and Fig. 9) of ADC (analog-to-digital conversion).An ADC is set on microphone audio (Mic) road of mobile phone circuit and detects pin, voltage when earphone inserts, being detected is 1.9V (according to the bias voltage setting of Mic, voltage is generally at 1.9V~2.2V); Mic pin when the serial ports detection pin ID on Serial Port Line is equivalent to earphone insertion, the voltage of this ID pin comes from outer handset, specifically come from the USB of computer or the serial ports power supply 5V voltage of computer obtains after dividing potential drop, as Fig. 5, by dividing potential drop design, make the voltage of 2.6V of this pin stable output of serial ports, during actual use, can select an interval, as 2.4V~2.8V.When ADC detects this outside dividing potential drop 2.6V, just can know the insertion of serial ports, the analog switch of cell phone mainboard is just cut into serial communication path, can know that serial ports extracts during the non-2.4V~2.8V of voltage, and the analog switch of cell phone mainboard is just switched to earphone left and right acoustic channels path.
As Fig. 6 and Fig. 7, the MT6239 platform processes circuit of mobile phone of take is example, on mainboard, with left and right acoustic channels/serial ports, switch the left and right acoustic channels path that chip UM3258 (as Fig. 9) switches serial ports TX, RX path and audio frequency, with left and right acoustic channels/serial ports switching controls pin, GPI066 controls, during high level, get to the output of serial ports path, during low level, get to the output of left and right acoustic channels path.
When mobile phone is not downloaded software, on hardware, to GPI066, add pull-up resistor, on draw voltage to select mobile phone once the voltage of the Voltage-output that powers on, guarantee that (paster as firm in mobile phone completes when the uncontrollable mobile phone of software, while never downloading any program, while needing to use serial ports again), a start powers on GPT066 mouth for high, switch will be switched on serial ports path, for the use of mobile phone-downloaded software.
After mobile phone-downloaded software, in order to prevent pulling mouth electric leakage on analog switch, acquiescence GPI066 mouth sets high.As Fig. 9, plugged earphone, the interruption EINT3 on HR/URXD is dragged down, and the R channel of earphone only has 32 Ohmic resistances, and approximate shorted to earth thinks that earphone inserts, GPI066 mouth output low level, analog switch is got to voice-frequency channel; Earphone is extracted rear interruption EINT3 can be high, thinks that earphone extracts, and GPI066 mouth is drawn high.
Insert Serial Port Line: the ADC on earphone MIC/ID (the detection pin that is equivalent to Serial Port Line) circuit detects 2.6V, think that serial ports inserts, for preventing that in serial ports transmitting procedure, low level causes mistake to interrupt, error detection is that earphone inserts, software masking interrupts the function of EINT3, GPI066 sets high, transmission data; Serial ports is extracted rear ADC and be can't detect 2.6V, thinks that serial ports extracts, and discharges and interrupts EINT3.
In sum, as those of ordinary skill is scrutable in the art, described in this specification is a preferred embodiment of the present invention, and all changes of making under this invention's idea or modification all should be in claim protection ranges of the present invention.
Claims (3)
1. a method that earphone interface of mobile phone is expanded to serial communication interface, comprise there is common port ground, the Earphone joint of microphone audio, R channel and 4 pins of L channel, at the control circuit of the mobile phone terminal earphone interface corresponding with Earphone joint and the common port ground, microphone audio, R channel and the L channel that dock with earphone interface on cell phone mainboard, it is characterized in that, described serial communication interface has common port ground, analog-to-digital conversion detection port, receiving port and transmit port, and described method comprises the following steps:
S1, common port ground, analog-to-digital conversion detection port, receiving port and the transmit port of serial communication interface are shared with the pin of common port ground, microphone audio, R channel and the L channel of Earphone joint respectively;
S2, analog switch is set on cell phone mainboard, for switching the interface of serial communication interface and left and right acoustic channels;
S3, analog-to-digital conversion is set on the microphone audio circuit of cell phone mainboard detects pin, the voltage while inserting for detection of earphone; Serial Port Line adopts bleeder circuit, and when the voltage detecting is 1.9V, analog switch is switched to earphone left and right acoustic channels channel status; When the voltage detecting is 2.6V, analog switch is switched to serial communication channel status, described bleeder circuit specifically comprises voltage V2, resistance R 1 and the resistance R 2 when external power source V1, Serial Port Line insert, wherein, voltage V2 when external power source V1 inserts with earphone respectively by resistance R 1 is connected with one end of resistance R 2, the other end ground connection of resistance R 2, wherein, external power source V1 is 5V, and resistance R 1 is that 12K and resistance R 2 are 13K.
2. a kind of method that earphone interface of mobile phone is expanded to serial communication interface according to claim 1, is characterized in that, in described step S2, and analog switch default serial port communication interface path.
3. a kind of method that earphone interface of mobile phone is expanded to serial communication interface according to claim 1 and 2, is characterized in that, described earphone interface is 3.5mm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010163609.2A CN101841586B (en) | 2010-04-27 | 2010-04-27 | Method for expanding earphone interface of mobile phone into serial communication interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010163609.2A CN101841586B (en) | 2010-04-27 | 2010-04-27 | Method for expanding earphone interface of mobile phone into serial communication interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101841586A CN101841586A (en) | 2010-09-22 |
CN101841586B true CN101841586B (en) | 2014-01-22 |
Family
ID=42744701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010163609.2A Expired - Fee Related CN101841586B (en) | 2010-04-27 | 2010-04-27 | Method for expanding earphone interface of mobile phone into serial communication interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101841586B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102469404A (en) * | 2010-11-10 | 2012-05-23 | 深圳市创智成科技股份有限公司 | Debugging method by utilizing earphone audio interface |
CN102469190B (en) * | 2010-11-19 | 2015-09-30 | 比亚迪股份有限公司 | Based on complete machine debugging method and the device of mobile communication terminal |
CN102082846B (en) * | 2010-12-02 | 2014-01-15 | 惠州Tcl移动通信有限公司 | Terminal equipment with plurality of externally arranged shared interfaces |
CN102158575A (en) * | 2011-02-21 | 2011-08-17 | 深圳桑菲消费通信有限公司 | Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface |
EP2728899A4 (en) * | 2011-10-20 | 2014-09-03 | Huawei Device Co Ltd | Multi-purpose connector for multiplexing headset interface into high definition video and audio interface and handheld electronic device |
CN102448007A (en) * | 2011-12-21 | 2012-05-09 | 上海博泰悦臻电子设备制造有限公司 | Microphone diagnosis circuit |
CN103489431B (en) * | 2012-10-18 | 2015-09-09 | 天津三星电子有限公司 | A kind of display terminal |
CN103079144B (en) * | 2012-12-24 | 2016-08-03 | 上海摩软通讯技术有限公司 | Mobile terminal |
CN103079138B (en) * | 2013-01-25 | 2015-05-27 | 青岛歌尔声学科技有限公司 | Earphone and method for realizing automatic recognition switching control of earphone |
CN103383675A (en) * | 2013-05-23 | 2013-11-06 | 上海斐讯数据通信技术有限公司 | Main board communication method and main board |
CN104661158A (en) * | 2013-11-25 | 2015-05-27 | 华为技术有限公司 | Stereophone, terminal and audio signal processing method of stereophone and terminal |
CN104363404B (en) * | 2014-10-28 | 2017-06-23 | 广州创维平面显示科技有限公司 | Terminal multiplexing circuit and multimedia terminal equipment |
CN104581527B (en) * | 2014-11-18 | 2018-04-17 | 青岛海信移动通信技术股份有限公司 | A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit |
CN104459376B (en) * | 2014-11-18 | 2018-03-23 | 青岛海信移动通信技术股份有限公司 | A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit |
CN105306089B (en) * | 2015-12-08 | 2019-02-12 | 上海新储集成电路有限公司 | Integrate the communication system and method for NFC and SIM |
CN109218891A (en) * | 2018-10-16 | 2019-01-15 | 上海畅联智融通讯科技有限公司 | The earphone interface module and mobile terminal of multiplexing serial port function |
CN110650399A (en) * | 2019-09-27 | 2020-01-03 | 晶晨半导体(深圳)有限公司 | Method for realizing compatibility of earphone and serial port function through earphone pin |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2750584Y (en) * | 2004-12-02 | 2006-01-04 | 上海贝豪通讯电子有限公司 | A three-in-one handset interface realizing functions of earphone, serial port, and charging |
CN1992737A (en) * | 2005-12-27 | 2007-07-04 | 中兴通讯股份有限公司 | Communication method of mobile telephone |
GB2461248A (en) * | 2008-04-25 | 2009-12-30 | Viewsonic Corp | Communication method between a desktop monitor and a computer |
-
2010
- 2010-04-27 CN CN201010163609.2A patent/CN101841586B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2750584Y (en) * | 2004-12-02 | 2006-01-04 | 上海贝豪通讯电子有限公司 | A three-in-one handset interface realizing functions of earphone, serial port, and charging |
CN1992737A (en) * | 2005-12-27 | 2007-07-04 | 中兴通讯股份有限公司 | Communication method of mobile telephone |
GB2461248A (en) * | 2008-04-25 | 2009-12-30 | Viewsonic Corp | Communication method between a desktop monitor and a computer |
Also Published As
Publication number | Publication date |
---|---|
CN101841586A (en) | 2010-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101841586B (en) | Method for expanding earphone interface of mobile phone into serial communication interface | |
CN101951421B (en) | Expansion use method for cell phone earphone interface | |
EP2863652A1 (en) | Audio interface self-adaptation device | |
US9414147B2 (en) | Method and device for earphone and USB to share micro-USB interface | |
CN110166871B (en) | Earphone charging box, TWS earphone, working state switching method and storage medium | |
EP2336895B1 (en) | Electronic device and method thereof for identifying electronic accessory | |
CN101102119B (en) | A charging detection circuit of appliance device and charging detection method | |
CN201359725Y (en) | USB interface circuit and portable hand-held device provided with the circuit | |
EP2806662B1 (en) | Apparatus for detecting the type of an audio interface | |
CN101316454B (en) | Audio interface device and method | |
US11611221B2 (en) | Electronic device and accessory with quick charging and audio transmission functions | |
CN102769810B (en) | A kind of mobile terminal preventing call misoperation | |
CN102300003A (en) | Mobile terminal capable of automatically detecting earphone jack | |
CN102480563B (en) | Control method and device in process of inserting earphone into earphone socket | |
CN102143266A (en) | Method for extending universal serial bus (USB) interface of mobile terminal into serial communication interface | |
CN102158575A (en) | Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface | |
EP3905714A1 (en) | Terminal device, adapter, and charging method | |
CN202721789U (en) | Audio interface adaptive device | |
CN203933930U (en) | Earphone interface circuit and portable electron device | |
US11316308B2 (en) | Adapter, multi-device detection system and detection method thereof | |
CN103888873A (en) | Electronic device and UART output system and method | |
CN201075704Y (en) | Detection circuit of electrical equipment and mobile phone having the circuit | |
CN102156681A (en) | Mobile terminal and USB interface connection control device thereof | |
CN104093114A (en) | Detection device, system and method for headset buttons | |
CN210780912U (en) | Electronic equipment and accessory with quick charging and audio transmission functions |
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: 20140122 Termination date: 20190427 |
|
CF01 | Termination of patent right due to non-payment of annual fee |