CN103078224A - Connecting line, control method, control circuit and electronic equipment - Google Patents

Connecting line, control method, control circuit and electronic equipment Download PDF

Info

Publication number
CN103078224A
CN103078224A CN2013100051899A CN201310005189A CN103078224A CN 103078224 A CN103078224 A CN 103078224A CN 2013100051899 A CN2013100051899 A CN 2013100051899A CN 201310005189 A CN201310005189 A CN 201310005189A CN 103078224 A CN103078224 A CN 103078224A
Authority
CN
China
Prior art keywords
electronic equipment
contact
switch unit
interface
channel
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
Application number
CN2013100051899A
Other languages
Chinese (zh)
Other versions
CN103078224B (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201310005189.9A priority Critical patent/CN103078224B/en
Publication of CN103078224A publication Critical patent/CN103078224A/en
Application granted granted Critical
Publication of CN103078224B publication Critical patent/CN103078224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a connecting line, a control method of electronic equipment, a control circuit and the electronic equipment, which belong to the technical field of electronic information and can be used for extracting running log information of a system without detaching a mainboard of the electronic equipment. One end of the connecting line is provided with an earphone plug, and the other end of the connecting line is connected to a computer; the earphone plug is provided with four contacts, i.e., a left channel contact, a right channel contact, a ground wire contact and a microphone contact respectively; four leads are arranged inside the connecting line; and the four contacts are connected with the computer through the four leads respectively. The control method of the electronic equipment comprises the following steps of: when the earphone plug is inserted into the earphone interface of the electronic equipment, detecting the level of the right channel contact of the earphone plug; and when the right channel contact of the earphone plug is at a high level, connecting the UART (Universal Asynchronous Receiver Transmitter) input interface of the electronic equipment to the left channel contact, and connecting the UART output interface of the electronic equipment to the microphone contact. The connecting line is applied to electronic equipment such as mobile phones and panel computers.

Description

Connecting line, control method, control circuit and electronic equipment
Technical field
The invention belongs to electronic information technical field, be specifically related to control method, control circuit and the electronic equipment of a kind of connecting line, electronic equipment.
Background technology
Along with the development of electronic technology, the electronic equipments such as mobile phone, panel computer have become means of communication common in people's daily life.Take mobile phone as example, in development phase and user's use procedure, when breaking down, research and development or maintenance personal need to extract system's running log (log) information of mobile phone kernel control chip, because system's running log information recording/the operation information of kernel control chip itself and peripheral components, and these information are vital to location, problem analysis point.
The method of extraction system running log information is to pull down the mainboard of mobile phone at present, general asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/Transmitter at the kernel control chip of mainboard, UART) transmission on (TX) and receive welding two signal line on (RX) pin, and be connected to computer and carry out system's running log information extraction.
The inventor finds in realizing process of the present invention, there is following problem at least in prior art: in the exploitation or maintenance of electronic equipment, need to destroy complete machine, pull down the mainboard of electronic equipment, easily to (the Chip Scale Package of the chip size packages on the mainboard, CSP) components and parts, and each components and parts of other parts cause damage, and also unloading process has also affected the debugging efficiency of electronic equipment when exploitation or maintenance.
Summary of the invention
The embodiment of the invention provides control method, control circuit and the electronic equipment of a kind of connecting line, electronic equipment, does not need to pull down the mainboard of electronic equipment, just can extraction system running log information.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, the invention provides a kind of connecting line, an end of described connecting line is headset plug, and the other end of described connecting line is connected to computer;
Described headset plug is provided with four contacts, and described four contacts are respectively L channel contact, R channel contact, ground wire contact and microphone contact;
Described connecting line inside comprises four wires, and described four contacts are connected with computer by described four wires respectively.
In the possible implementation of the first, by described four wires, described L channel contact is connected to the UART output interface in the computer, described R channel contact is connected to the high level in the computer, described ground wire contact is connected to the ground wire in the computer, and described microphone contact is connected to the UART input interface in the computer.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described headset plug is used for inserting the earphone interface of electronic equipment, is provided with switch unit in the described electronic equipment;
Described R channel contact is connected to the control end of described switch unit, described L channel contact is connected to the UART input interface of described electronic equipment by described switch unit, and described microphone contact is connected to the UART output interface of described electronic equipment by described switch unit.
In conjunction with the first or the possible implementation of the second, in the third possible implementation, the other end of described connecting line is serial interface plug, and is connected to the serial ports of computer.
On the other hand, the present invention also provides a kind of control method of electronic equipment, comprising:
When in the earphone interface of described electronic equipment during the plugged earphone plug, detect the level of the R channel contact of described headset plug;
When the R channel contact of described headset plug is high level, the UART input interface of described electronic equipment is connected to the L channel contact of described headset plug, the UART output interface of described electronic equipment is connected to the microphone contact of described headset plug;
When the R channel contact of described headset plug is low level, the left channel signals line of described electronic equipment is connected to the L channel contact of described headset plug, the microphone signal line of described electronic equipment is connected to the microphone contact of described headset plug.
In the possible implementation of the first, the control method of this electronic equipment also comprises:
The CPU of described electronic equipment is by universal input/output (General Purpose Input Output, GPIO) interface receives the level of the R channel contact of described headset plug, and inserts the type of the headset plug in the described earphone interface according to this electrical level judging.
On the other hand, the present invention also provides a kind of control circuit of electronic equipment, comprises earphone interface and switch unit;
Be provided with four contacts in the described earphone interface, described four contacts are respectively L channel contact, R channel contact, ground wire contact and microphone contact;
Described L channel contact and described microphone contact all are connected to described switch unit, and described R channel contact is connected to the control end of described switch unit, and described R channel contact also is connected to the right-channel signals line, described ground wire contact ground connection;
When the control end of described switch unit was high level, described L channel contact was connected to the UART input interface of described electronic equipment by described switch unit, and described microphone contact is connected to the UART output interface of described electronic equipment by described switch unit;
When the control end of described switch unit was low level, described L channel contact was connected to the left channel signals line by described switch unit, and described microphone contact is connected to the microphone signal line by described switch unit.
In the possible implementation of the first, be provided with filter unit between the control end of described R channel contact and described switch unit.
In conjunction with the possible implementation of the first, in the possible implementation of the second, the control end of described switch unit also links to each other with the GPIO interface of described electronic equipment, so that the CPU of described electronic equipment receives the level of the control end of described switch unit by described GPIO interface, and insert the type of the headset plug in the described earphone interface according to this electrical level judging.
On the other hand, the present invention also provides a kind of electronic equipment, and described electronic equipment links to each other with external equipment by the described connecting line of above-mentioned any one implementation, is provided with the described control circuit of above-mentioned any one implementation in the described electronic equipment.
Compared with prior art, technique scheme provided by the present invention has following advantage: when common earphone cord being inserted in the earphone interface of electronic equipment, the control end of switch unit is low level, the right-channel signals line of electronic equipment is connected to earphone by the R channel contact at earphone interface place, and ground wire is connected to earphone by the ground wire contact.Switch unit is connected to the L channel contact with the left channel signals line of electronic equipment, and further is connected to earphone, and the microphone signal line with electronic equipment is connected to the microphone contact simultaneously, and further is connected to earphone.When the user inserts normal earphone cord like this, can not affect the normal use of earphone.
When connecting line provided by the invention being inserted in the earphone interface of electronic equipment, the control end of the switch unit in the control circuit can be at the R channel contact place of earphone interface be connected to high level in the computer by connecting line, and the ground wire of electronic equipment is connected to ground wire in the computer by the ground wire contact.At this moment, switch unit links to each other the UART input interface of electronic equipment with the L channel contact, and is connected to the UART output interface of computer by connecting line; Simultaneously, switch unit also links to each other the UART output interface of electronic equipment with the microphone contact, and is connected to the UART input interface of computer by connecting line.So just can pass through the UART interface, extract system's running log information of electronic equipment by computer, and by the UART interface electronic equipment be debugged.Therefore technical scheme provided by the invention does not need to pull down the mainboard of electronic equipment, just can extraction system running log information, avoided the damage to all parts in the electronic equipment, and also improved electronic equipment in exploitation or the debugging efficiency when keeping in repair.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use was done to introduce simply during the below will describe embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic diagram of the connecting line that Fig. 1 provides for embodiments of the invention;
Another schematic diagram of the connecting line that Fig. 2 provides for embodiments of the invention;
The schematic diagram of the control circuit that Fig. 3 provides for embodiments of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not paying creative work belongs to the scope of protection of the invention.
As depicted in figs. 1 and 2, the embodiment of the invention provides a kind of connecting line, and an end of this connecting line is headset plug, and the other end of connecting line is connected to computer.As shown in Figure 1, headset plug is provided with four contacts, and four contacts are respectively L channel contact, R channel contact, ground wire contact and microphone contact; Connecting line inside comprises four wires, and four contacts are connected with computer by four wires respectively.
As shown in Figure 2, in the present embodiment, an end of connecting line is headset plug, and the other end is serial interface plug, and is connected to the serial ports of computer.By above-mentioned four wires, the L channel contact is connected to general asynchronous receiving-transmitting transmitter (the Universal Asynchronous Receiver/Transmitter in the computer, UART) output interface, the R channel contact is connected to the high level in the computer, the ground wire contact is connected to the ground wire in the computer, and the microphone contact is connected to the UART input interface in the computer.
Certainly, the other end of connecting line also can pass through USB plug or other data-interfaces, is connected to the UART of computer.
As a preferred version, the implementation of above-mentioned high level can be to utilize a pull-up resistor R1, provides 3V voltage by computer.
The embodiment of the invention also provides a kind of control method of electronic equipment, comprising:
When in the earphone interface of electronic equipment during the plugged earphone plug, the level of the R channel contact of Test earphone plug;
When the R channel contact of headset plug is high level, the UART input interface of electronic equipment is connected to the L channel contact of headset plug, the UART output interface of electronic equipment is connected to the microphone contact of headset plug;
When the R channel contact of headset plug is low level, the left channel signals line of electronic equipment is connected to the L channel contact of headset plug, the microphone signal line of electronic equipment is connected to the microphone contact of headset plug.
Further, the control method of this electronic equipment also comprises:
The CPU of electronic equipment is by the level of the R channel contact of universal input/output (General Purpose Input Output, GPIO) interface reception headset plug, and according to the type of the headset plug in this electrical level judging plugged earphone interface.
As shown in Figure 3, the embodiment of the invention also provides a kind of control circuit of electronic equipment, and present embodiment describes as an example of mobile phone example, also this control circuit can be applied in the electronic equipments such as panel computer, navigator in other embodiments.This control circuit comprises earphone interface and switch unit; Be provided with four contacts in the earphone interface, be respectively L channel contact L, R channel contact R, ground wire GND, microphone contact MIC, and corresponding one by one with four contacts on the headset plug.
Usually above-mentioned four contacts are connected to respectively left channel signals line, right-channel signals line, ground wire, the microphone signal line of mobile phone.In the present embodiment, the L channel contact is connected to switch unit, and optionally is connected to left channel signals line or UART input interface by switch unit; The microphone contact also is connected to switch unit, and optionally is connected to microphone signal line or UART output interface by switch unit; The R channel contact is connected to the control end S of switch unit, also is connected to simultaneously the right-channel signals line; Ground wire contact ground connection.As a preferred version, the control end S of switch unit also links to each other with the GPIO interface of mobile phone, so that the CPU of mobile phone receives the level of the control end S of switch unit by the GPIO interface, and according to the type of the headset plug in this electrical level judging plugged earphone interface, be the headset plug on the connecting line that provides of common headphones plug or the embodiment of the invention.
When the control end S of switch unit was high level, the L channel contact was connected to the UART input interface of mobile phone by switch unit, and the microphone contact is connected to the UART output interface of mobile phone by switch unit.When the control end S of switch unit was low level, the L channel contact was connected to the left channel signals line by switch unit, and the microphone contact is connected to the microphone signal line by switch unit.
The switch unit inner classes is similar to two single-pole double-throw switch (SPDT)s, the control end S of switch unit is by a pull down resistor R0 ground connection, its default conditions are low level, switch unit is connected voice-frequency channel, namely by default, the L channel contact is connected the left channel signals line, and the microphone contact is connected the microphone signal line.When common earphone cord being inserted in the earphone interface of mobile phone, control end S or the low level of switch unit, the right-channel signals line of mobile phone is connected to earphone by the R channel contact by the earphone interface place, and ground wire is connected to earphone by the ground wire contact.Switch unit is connected to the L channel contact with the left channel signals line of mobile phone, and further is connected to earphone, and the microphone signal line with mobile phone is connected to the microphone contact simultaneously, and further is connected to earphone.The GPIO interface also is low level simultaneously, and mobile phone CPU is judged as and has inserted normal headset plug, when the user inserts normal earphone cord like this, can not affect the normal use of earphone.
When the connecting line that the embodiment of the invention is provided inserts in the earphone interface of mobile phone, the control end S of the switch unit in the control circuit can be at the R channel contact place of earphone interface be connected to high level in the computer by connecting line, and the ground wire of mobile phone is connected to ground wire in the computer by the ground wire contact.At this moment, switch unit is connected the UART path, namely the L channel contact is connected the UART input interface of mobile phone, and the microphone contact is connected the UART output interface.So just the UART input interface of mobile phone can be connected to the UART output interface of computer by connecting line; Simultaneously, also the UART output interface of mobile phone is connected to the UART input interface of computer by connecting line.The GPIO interface also is high level simultaneously, and mobile phone CPU is judged as and has inserted the cable plug that is used for the UART transfer of data.So just can pass through the UART interface, extract system's running log information of mobile phone by computer, and by the UART interface mobile phone be debugged.Therefore the technical scheme that provides of the embodiment of the invention does not need to pull down the mainboard of mobile phone, just can extraction system running log information, avoided the damage to all parts in the mobile phone, and also improved mobile phone in exploitation or the debugging efficiency when keeping in repair.
Below introduce the various situations when mobile phone uses loudspeaker music playing or hand-free call:
When inserting external sound equipment or power amplifier, because all draw or drop-down level on not on the L channel of external sound equipment or power amplifier and the R channel, so the control end S of switch unit also keeps the low level given tacit consent to, the GPIO interface also is low level, mobile phone CPU is judged as and has inserted common headphones (sound equipment) plug, mobile phone CPU can not close voice-frequency channel, and audio frequency plays back from external sound equipment or power amplifier.
When inserting normal earphone cord, the R channel of earphone cord draws or drop-down level on not, so the control end S of switch unit also keeps the low level given tacit consent to, the GPIO interface also is low level, mobile phone CPU is judged as and has inserted the common headphones plug, mobile phone CPU can not close voice-frequency channel, and audio frequency plays back from earphone.
When inserting the connecting line that the embodiment of the invention provides, the level that the R channel of connecting line draws on having artificially, so the control end S of switch unit becomes high level, the GPIO interface also is high level, mobile phone CPU is judged as and has inserted the cable plug that is used for the UART transfer of data, mobile phone CPU does not close voice-frequency channel, and audio frequency still plays back from the loudspeaker of mobile phone.The computer expert crosses system's running log information that earphone interface extracts mobile phone, and mobile phone is debugged.
Further, also be provided with filter unit between the control end S of R channel contact and switch unit, filter unit specifically comprises filter resistance R and the filter capacitor C of series connection, forms the RC filter, wherein the size of filter resistance R is 10k Ω, and the size of filter capacitor C is 100nF.
In earphone interface, insert normal headset plug, during playing audio signal, audio signal with transmission R channel on the right-channel signals line that the R channel contact links to each other, because this audio signal is AC signal, so need to filter unit be set at the front end of the control end S of switch unit, make the low level of control end S held stationary, thereby make switch unit connect all the time voice-frequency channel.
Should be noted that, the embodiment of the invention is the UART input interface of the left channel signals line in the earphone circuit as mobile phone, the UART output interface of the microphone signal line in the earphone circuit as mobile phone, move the 3V high level to by a resistance on the right-channel signals line in the earphone circuit, this is the mode of reequiping the most easily on the earphone cord original base.Certainly, in other embodiments, also can be with the UART input interface of right-channel signals line as mobile phone, the 3V high level will be moved to simultaneously on the left channel signals line, namely the left channel signals line in the present embodiment and right-channel signals line are exchanged, can realize equally the function of UART transfer of data.
The present invention also provides a kind of electronic equipment, specifically can be mobile phone or panel computer (pad) etc., this electronic equipment links to each other with external equipment (for example computer) by the connecting line in above-described embodiment, and is provided with the control circuit in above-described embodiment in this electronic equipment.
In the embodiment of the invention, be used for connecting line that electronic equipment links to each other with computer as depicted in figs. 1 and 2, an end of connecting line is headset plug, and the other end of connecting line is connected to computer.Headset plug is provided with four contacts, and four contacts are respectively L channel contact, R channel contact, ground wire contact and microphone contact; Connecting line inside comprises four wires, and four contacts are connected with UART in the computer by four wires respectively.
Control circuit in the electronic equipment that the embodiment of the invention provides as shown in Figure 3, this control circuit comprises earphone interface and switch unit; Be provided with four contacts in the earphone interface, be respectively L channel contact L, R channel contact R, ground wire GND, microphone contact MIC, and corresponding one by one with four contacts on the headset plug.
The L channel contact is connected to switch unit, and optionally is connected to left channel signals line or UART input interface by switch unit; The microphone contact also is connected to switch unit, and optionally is connected to microphone signal line or UART output interface by switch unit; The R channel contact is connected to the control end S of switch unit, also is connected to simultaneously the right-channel signals line; Ground wire contact ground connection.When the control end S of switch unit was high level, the L channel contact was connected to the UART input interface of electronic equipment by switch unit, and the microphone contact is connected to the UART output interface of electronic equipment by switch unit.When the control end S of switch unit was low level, the L channel contact was connected to the left channel signals line by switch unit, and the microphone contact is connected to the microphone signal line by switch unit.
The switch unit inner classes is similar to two single-pole double-throw switch (SPDT)s, and the control end S of switch unit is by a pull down resistor R0 ground connection, and its default conditions are low level.When common earphone cord being inserted in the earphone interface of electronic equipment, control end S or the low level of switch unit, the right-channel signals line of electronic equipment is connected to earphone by the R channel contact by the earphone interface place, and ground wire is connected to earphone by the ground wire contact.Switch unit is connected to the L channel contact with the left channel signals line of electronic equipment, and further is connected to earphone, and the microphone signal line with electronic equipment is connected to the microphone contact simultaneously, and further is connected to earphone.The GPIO interface also is low level simultaneously, and electronic equipment CPU is judged as and has inserted normal headset plug, when the user inserts normal earphone cord like this, can not affect the normal use of earphone.
As a preferred version, the control end S of switch unit also links to each other with the GPIO interface of electronic equipment, so that the CPU of electronic equipment receives the level of the control end S of switch unit by the GPIO interface, and according to the type of the headset plug in this electrical level judging plugged earphone interface, be the headset plug on the connecting line that provides of common headphones plug or the embodiment of the invention.
When connecting line being inserted in the earphone interface of electronic equipment, the control end S of the switch unit in the control circuit can be at the R channel contact place of earphone interface be connected to high level in the computer by connecting line, and the ground wire of electronic equipment is connected to ground wire in the computer by the ground wire contact.At this moment, switch unit is connected the UART path, namely the L channel contact is connected the UART input interface of electronic equipment, and the microphone contact is connected the UART output interface.So just the UART input interface of electronic equipment can be connected to the UART output interface of computer by connecting line; Simultaneously, also the UART output interface of electronic equipment is connected to the UART input interface of computer by connecting line.The GPIO interface also is high level simultaneously, and electronic equipment CPU is judged as and has inserted the cable plug that is used for the UART transfer of data.So just can pass through the UART interface, extract system's running log information of electronic equipment by computer, and by the UART interface electronic equipment be debugged.Therefore the technical scheme that provides of the embodiment of the invention does not need to pull down the mainboard of electronic equipment, just can extraction system running log information, avoided the damage to all parts in the electronic equipment, and also improved electronic equipment in exploitation or the debugging efficiency when keeping in repair.
Through the above description of the embodiments, the those skilled in the art can be well understood to the present invention and can realize with hardware, or the firmware realization, or their compound mode realizes.When using software to realize, above-mentioned functions can be stored in the computer-readable medium or as one or more instructions or code on the computer-readable medium and transmit.Computer-readable medium comprises computer-readable storage medium and communication media, and wherein communication media comprises any medium of being convenient to transmit from a place to another place computer program.Storage medium can be any usable medium that computer can access.As example but be not limited to: computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc storage, magnetic disk storage medium or other magnetic storage apparatus or can be used in the program code that carries or store the expectation with instruction or data structure form and can be by any other medium of computer access.In addition.Any connection can be suitable become computer-readable medium.For example, if software be use coaxial cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line (DSL) or the wireless technology such as infrared ray, radio and microwave from the website, server or the transmission of other remote source, under coaxial cable, optical fiber cable, twisted-pair feeder, DSL or the wireless technology such as infrared ray, wireless and microwave are included in so in the photographic fixing of medium.As used in the present invention, dish (Disk) and dish (disc) comprise compression laser disc (CD), laser dish, laser disc, digital universal laser disc (DVD), floppy disk and Blu-ray Disc, the copy data of the common magnetic of its mid-game, dish then come the copy data of optics with laser.Top combination also should be included within the protection range of computer-readable medium.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. connecting line, it is characterized in that: an end of described connecting line is headset plug, and the other end of described connecting line is connected to computer;
Described headset plug is provided with four contacts, and described four contacts are respectively L channel contact, R channel contact, ground wire contact and microphone contact;
Described connecting line inside comprises four wires, and described four contacts are connected with computer by described four wires respectively.
2. connecting line according to claim 1, it is characterized in that: by described four wires, described L channel contact is connected to the general asynchronous receiving-transmitting transmitter UART output interface in the computer, described R channel contact is connected to the high level in the computer, described ground wire contact is connected to the ground wire in the computer, and described microphone contact is connected to the UART input interface in the computer.
3. connecting line according to claim 1 and 2 is characterized in that: described headset plug is used for inserting the earphone interface of electronic equipment, is provided with switch unit in the described electronic equipment;
Described R channel contact is connected to the control end of described switch unit, described L channel contact is connected to the UART input interface of described electronic equipment by described switch unit, and described microphone contact is connected to the UART output interface of described electronic equipment by described switch unit.
4. connecting line according to claim 1 and 2, it is characterized in that: the other end of described connecting line is serial interface plug, and is connected to the serial ports of computer.
5. the control method of an electronic equipment is characterized in that, comprising:
When in the earphone interface of described electronic equipment during the plugged earphone plug, detect the level of the R channel contact of described headset plug;
When the R channel contact of described headset plug is high level, the UART input interface of described electronic equipment is connected to the L channel contact of described headset plug, the UART output interface of described electronic equipment is connected to the microphone contact of described headset plug;
When the R channel contact of described headset plug is low level, the left channel signals line of described electronic equipment is connected to the L channel contact of described headset plug, the microphone signal line of described electronic equipment is connected to the microphone contact of described headset plug.
6. the control method of electronic equipment according to claim 5 is characterized in that, also comprises:
The CPU of described electronic equipment receives the level of the R channel contact of described headset plug by universal input/output GPIO interface, and inserts the type of the headset plug in the described earphone interface according to this electrical level judging.
7. the control circuit of an electronic equipment is characterized in that: comprise earphone interface and switch unit;
Be provided with four contacts in the described earphone interface, described four contacts are respectively L channel contact, R channel contact, ground wire contact and microphone contact;
Described L channel contact and described microphone contact all are connected to described switch unit, and described R channel contact is connected to the control end of described switch unit, and described R channel contact also is connected to the right-channel signals line, described ground wire contact ground connection;
When the control end of described switch unit was high level, described L channel contact was connected to the UART input interface of described electronic equipment by described switch unit, and described microphone contact is connected to the UART output interface of described electronic equipment by described switch unit;
When the control end of described switch unit was low level, described L channel contact was connected to the left channel signals line by described switch unit, and described microphone contact is connected to the microphone signal line by described switch unit.
8. the control circuit of electronic equipment according to claim 7 is characterized in that: be provided with filter unit between the control end of described R channel contact and described switch unit.
9. the control circuit of electronic equipment according to claim 7, it is characterized in that: the control end of described switch unit also links to each other with the GPIO interface of described electronic equipment, so that the CPU of described electronic equipment receives the level of the control end of described switch unit by described GPIO interface, and insert the type of the headset plug in the described earphone interface according to this electrical level judging.
10. electronic equipment is characterized in that: described electronic equipment links to each other with external equipment by each described connecting line of claim 1 to 4, is provided with each described control circuit of claim 7 to 9 in the described electronic equipment.
CN201310005189.9A 2013-01-07 2013-01-07 Connecting line, control method, control circuit and electronic equipment Active CN103078224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310005189.9A CN103078224B (en) 2013-01-07 2013-01-07 Connecting line, control method, control circuit and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310005189.9A CN103078224B (en) 2013-01-07 2013-01-07 Connecting line, control method, control circuit and electronic equipment

Publications (2)

Publication Number Publication Date
CN103078224A true CN103078224A (en) 2013-05-01
CN103078224B CN103078224B (en) 2016-04-13

Family

ID=48154675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310005189.9A Active CN103078224B (en) 2013-01-07 2013-01-07 Connecting line, control method, control circuit and electronic equipment

Country Status (1)

Country Link
CN (1) CN103078224B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634718A (en) * 2013-11-27 2014-03-12 衡阳加一电子科技有限公司 Earphone and line control device for same
CN103888873A (en) * 2014-03-04 2014-06-25 苏州佳世达电通有限公司 Electronic device and UART output system and method
CN105681952A (en) * 2016-01-29 2016-06-15 广东欧珀移动通信有限公司 Selfie stick, selfie stick recognition method and device, and mobile terminal
CN103634718B (en) * 2013-11-27 2016-11-30 加一联创电子科技有限公司 A kind of wire-controlled apparatus for earphone and earphone
CN106207687A (en) * 2016-08-30 2016-12-07 硅谷数模半导体(北京)有限公司 The conversion method of data-interface and device
CN106253011A (en) * 2016-08-30 2016-12-21 硅谷数模半导体(北京)有限公司 The conversion equipment of data-interface
CN108028989A (en) * 2015-08-24 2018-05-11 三星电子株式会社 Detect the method for external equipment and the electronic equipment of processing this method
CN108737900A (en) * 2015-03-17 2018-11-02 青岛海信宽带多媒体技术有限公司 A kind of output method of terminal signaling
CN109218891A (en) * 2018-10-16 2019-01-15 上海畅联智融通讯科技有限公司 The earphone interface module and mobile terminal of multiplexing serial port function
CN110247265A (en) * 2019-06-28 2019-09-17 上海创功通讯技术有限公司 Multifunctional data line, switching circuit and switching method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599140A (en) * 2003-09-19 2005-03-23 富士康(昆山)电脑接插件有限公司 Cable deivce for data transmission
US20080166924A1 (en) * 2007-01-05 2008-07-10 Ensky Technology (Shenzhen) Co., Ltd. Audio signal switcher
CN201805529U (en) * 2010-09-09 2011-04-20 惠州Tcl移动通信有限公司 Earphone interface shared by serial port download line and earphone, and mobile terminal shared thereby
CN102469404A (en) * 2010-11-10 2012-05-23 深圳市创智成科技股份有限公司 Debugging method by utilizing earphone audio interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599140A (en) * 2003-09-19 2005-03-23 富士康(昆山)电脑接插件有限公司 Cable deivce for data transmission
US20080166924A1 (en) * 2007-01-05 2008-07-10 Ensky Technology (Shenzhen) Co., Ltd. Audio signal switcher
CN201805529U (en) * 2010-09-09 2011-04-20 惠州Tcl移动通信有限公司 Earphone interface shared by serial port download line and earphone, and mobile terminal shared thereby
CN102469404A (en) * 2010-11-10 2012-05-23 深圳市创智成科技股份有限公司 Debugging method by utilizing earphone audio interface

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634718B (en) * 2013-11-27 2016-11-30 加一联创电子科技有限公司 A kind of wire-controlled apparatus for earphone and earphone
CN103634718A (en) * 2013-11-27 2014-03-12 衡阳加一电子科技有限公司 Earphone and line control device for same
CN103888873B (en) * 2014-03-04 2017-06-16 苏州佳世达电通有限公司 Electronic installation, UART output systems and method
CN103888873A (en) * 2014-03-04 2014-06-25 苏州佳世达电通有限公司 Electronic device and UART output system and method
CN108737900A (en) * 2015-03-17 2018-11-02 青岛海信宽带多媒体技术有限公司 A kind of output method of terminal signaling
CN108028989A (en) * 2015-08-24 2018-05-11 三星电子株式会社 Detect the method for external equipment and the electronic equipment of processing this method
CN108028989B (en) * 2015-08-24 2021-03-23 三星电子株式会社 Method of detecting external device and electronic device processing the same
CN105681952A (en) * 2016-01-29 2016-06-15 广东欧珀移动通信有限公司 Selfie stick, selfie stick recognition method and device, and mobile terminal
CN106207687A (en) * 2016-08-30 2016-12-07 硅谷数模半导体(北京)有限公司 The conversion method of data-interface and device
CN106253011A (en) * 2016-08-30 2016-12-21 硅谷数模半导体(北京)有限公司 The conversion equipment of data-interface
CN106253011B (en) * 2016-08-30 2019-06-04 硅谷数模半导体(北京)有限公司 The conversion equipment of data-interface
CN106207687B (en) * 2016-08-30 2019-10-22 硅谷数模半导体(北京)有限公司 The conversion method and device of data-interface
CN109218891A (en) * 2018-10-16 2019-01-15 上海畅联智融通讯科技有限公司 The earphone interface module and mobile terminal of multiplexing serial port function
CN110247265A (en) * 2019-06-28 2019-09-17 上海创功通讯技术有限公司 Multifunctional data line, switching circuit and switching method

Also Published As

Publication number Publication date
CN103078224B (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN103078224B (en) Connecting line, control method, control circuit and electronic equipment
US11768787B2 (en) Connectors for audio data transfer
EP3149832B1 (en) Baseband pd communication over usb standard a connector
CN201359725Y (en) USB interface circuit and portable hand-held device provided with the circuit
EP2089805B1 (en) Enhanced communication via a serial interface
EP2720476A1 (en) Apparatus and method for detecting insertion of headset into mobile station
EP2706463A1 (en) Method and apparatus for detecting insertion of external audio outputting device in electronic device
CN103369420A (en) Apparatus and method for interfacing earphone
US7833066B2 (en) Earphone jack device and portable electronic device employing the same
CN104023294A (en) Interface multiplexing apparatus in terminal, and adaptor panel
CN105578344B (en) Earphone interface state detection system and method
CN103888873A (en) Electronic device and UART output system and method
CN104461952A (en) Interface sharing method and terminal
EP3849209A1 (en) Audio signal processing method and apparatus
CN104244160A (en) Electronic device capable of being debugged through earphone port
CN107209378B (en) Head-mounted display device and head-mounted display system
CN113937832A (en) Charging cable, and identification method and system of charging cable
US20170039153A1 (en) Mobile device and method for reading uart data
CN210274510U (en) Protection device for preventing mobile terminal from being eavesdropped
CN113810816B (en) Earphone, frequency modulation signal receiving system and method
WO2022042199A1 (en) Interface circuit, protection method for same, and terminal device
CN113949755B (en) Electronic equipment and wired earphone
EP2879403A1 (en) Downlink transmission device for audio signal and electronic signature tool
CN109218914B (en) Audio playing device and audio transmission circuit
TWI394045B (en) Portable electronic device and method of identifying its accessories

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
TR01 Transfer of patent right

Effective date of registration: 20171106

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: Huawei Device Co., Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI terminal (Dongguan) Co., Ltd.

CP01 Change in the name or title of a patent holder