Nothing Special   »   [go: up one dir, main page]

CN103888873A - Electronic device and UART output system and method - Google Patents

Electronic device and UART output system and method Download PDF

Info

Publication number
CN103888873A
CN103888873A CN201410076819.6A CN201410076819A CN103888873A CN 103888873 A CN103888873 A CN 103888873A CN 201410076819 A CN201410076819 A CN 201410076819A CN 103888873 A CN103888873 A CN 103888873A
Authority
CN
China
Prior art keywords
uart
output
earphone interface
processor
uart output
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
CN201410076819.6A
Other languages
Chinese (zh)
Other versions
CN103888873B (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.)
Qisda Suzhou Co Ltd
Original Assignee
Qisda Suzhou 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 Qisda Suzhou Co Ltd filed Critical Qisda Suzhou Co Ltd
Priority to CN201410076819.6A priority Critical patent/CN103888873B/en
Publication of CN103888873A publication Critical patent/CN103888873A/en
Application granted granted Critical
Publication of CN103888873B publication Critical patent/CN103888873B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Headphones And Earphones (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides an electronic device which is provided with a processor and a headphone jack. The processor is provided with a UART output end used for outputting the system operation log information of the electronic device, the headphone jack is provided with a left channel end and a microphone end, and the UART output end is coupled to the microphone end. When the headphone jack is in a floating state, the processor enables the UART output end to be configured to be in a high resistance state, and the UART output end does not output the system operation log information; when a headphone is connected into the headphone jack, the processor enables the UART output end to be configured to be in an outputting state, and the UART output end outputs the system operation log information. The invention further provides an UART output system and method.

Description

Electronic installation, UART output system and method
Technical field
The present invention relates to a kind of electronic installation, relate in particular to a kind of electronic installation of the UART of having debug function.
Background technology
The electronic equipment such as mobile phone, panel computer has become communication tool common in people's daily life.In these electronic equipment development phases and user's use procedure, all need debugging, in the time of debugging, research and development or maintenance personal need to extract system running log (log) information of electronics processors CPU because system running log information recording the operation information of processor itself and peripheral components.And UART interface (UART Universal Asynchronous Receiver Transmitter; Universal Asynchronous Receiver/Transmitter) be a kind of common debugging interface, but due to the reason of product design, a lot of electronic equipments all do not have extraneous UART interface, these electronic equipments are when by UART interface debugging, all must dismantle complete machine, to pull down the mainboard of electronic equipment, on the UART output of the processor of mainboard, connect holding wire, and be connected to and on system debugging aids PC, carry out the information extraction of system running log.But need to destroy like this complete machine, and easily the components and parts such as the integrated chip on mainboard be caused to damage, and unloading process also affects the debugging efficiency of electronic equipment in the time of exploitation or maintenance.
In prior art, can realize UART debug function in order to realize in the situation that does not need the machine of tearing open, conventionally by multiplexing to UART interface and earphone interface, so that system running log information is exported.As shown in Figure 1, be UART debug system schematic diagram in prior art.The processor 102 of this electronic equipment 101 has UART interface 103, and this UART interface 103 is connected in earphone interface 105 by control circuit 104.Thereby realize the multiplexing of UART interface 103 and earphone interface 105, and again by a debugging device for universal asynchronous receiver/transmitter 106, earphone interface 105 is connected to computer 110(system debugging aids).Wherein, this debugging device for universal asynchronous receiver/transmitter 106 discloses as patent CN202267960, and this debugging device for universal asynchronous receiver/transmitter 106 comprises headset plug 107, UART change-over circuit 108 and connector 109.When debugging, the headset plug of debugging device for universal asynchronous receiver/transmitter 106 107 is inserted into earphone interface 105.Connector 109 inserts the connectivity port of computer 110, is connected with computer 110.Thus, electronic equipment 101 can be set up and communicated by letter with computer 110, thereby debug.
Equally, in patent CN103078224, as shown in Figure 2, this patent also discloses a kind of control circuit of electronic equipment, this control circuit comprises earphone interface and switch unit, in earphone interface, be provided with four contacts, be respectively L channel contact L, R channel contact R, ground wire GND, microphone contact MIC, and corresponding one by one with four contacts (left channel signals line, right-channel signals line, ground signal line, microphone signal line) on headset plug.Switch unit inner classes is similar to two single-pole double-throw switch (SPDT)s, and the control end S default conditions of this switch unit are low level, and switch unit is connected voice-frequency channel.By in common earphone cord plugged earphone interface time, control unit S or the low level of switch unit, when user inserts normal earphone cord like this, can not affect the normal use of earphone.In the time that the control end S of switch unit is high level, switch unit is connected the UART input of electronic equipment with L channel contact, the UART output of electronic equipment is connected with microphone contact, and is connected to computer by connecting line.So just can pass through UART interface, be extracted the system running log information of electronic equipment by computer, and by UART interface, electronic equipment is debugged.
Although prior art can realize do not need to pull down the mainboard of electronic equipment just can extraction system running log information, in prior art, all must additionally increase a control circuit (being generally a switching controls switch) and could realize the function of earphone interface and UART interface duplex.And additionally increase ON-OFF control circuit, can increase the production cost of product, and make the more numerous and diverse redundancy of electronic equipment internal structure.
Summary of the invention
The object of the present invention is to provide a kind of electronic installation, the in the situation that of not increasing extra control switching circuit in electronic installation, realize the UART output function multiplexing with earphone interface.
In order to realize above-mentioned technical purpose, the invention provides a kind of electronic installation, this electronic installation has processor and earphone interface, this processor has the UART output for exporting this electronic apparatus system running log information, and this earphone interface has L channel end and Mike's end, and this UART output is coupled to this Mike's end, wherein, when earphone interface is in the time floating dummy status, this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output; In the time that earphone accesses this earphone interface, this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output; In the time that UART output plug accesses this earphone interface, this processor is just configured to output state by this UART output, this UART output output system running log information.
Preferably, in described electronic installation, this UART output plug comprises headset plug, the UART change-over circuit coupling with headset plug and the connector coupling with UART change-over circuit, and wherein, this connector is connected on system debugging aids.
Preferably, in described electronic installation, in the time of this UART output plug access earphone interface, this system debugging aids provides high level to the L channel end of this earphone interface.
Preferably, in described electronic installation, described connector is serial interface plug, and is connected with the serial ports of system debugging aids.
Preferably, in described electronic installation, this processor has sense terminal, and this earphone interface has insertion sense terminal, and this sense terminal is coupled to this insertion sense terminal, and this processor is according to the state of the electrical level judging earphone interface of this insertion sense terminal.
Preferably, in described electronic installation, between this sense terminal and this insertion sense terminal, be provided with RC filter circuit.
The present invention also provides a kind of UART output output system, this system comprises electronic installation, UART output plug and system debugging aids, this electronic installation has processor, this processor has the UART output for exporting this electronic apparatus system running log information, this system debugging aids is connected in this electronic installation by this UART output plug, and according to the system running log information of this UART output output, this electronic installation is debugged, this electronic installation also has earphone interface, this earphone interface has L channel end and Mike's end, this UART output is coupled to this Mike's end, wherein, when earphone interface is in the time floating dummy status, this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output, in the time that earphone accesses this earphone interface, this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output, in the time that UART output plug accesses this earphone interface, this processor is just configured to output state by this UART output, this UART output output system running log information.
Preferably, in described UART output system, this UART output plug comprises headset plug, the UART change-over circuit coupling with headset plug and the connector coupling with UART change-over circuit, and wherein, this connector is connected on system debugging aids.
Preferably, in described UART output system, this processor has sense terminal, and this earphone interface has insertion sense terminal, and this sense terminal is coupled to this insertion sense terminal, and this processor is according to the state of the electrical level judging earphone interface of this insertion sense terminal.
The present invention also provides a kind of UART output intent, the method is for having the electronic installation of earphone interface, this electronic installation comprises the processor with UART output, this earphone interface has L channel and Mike's end, this UART output is coupled to this Mike's end, this electronic installation carries out the output of UART information by earphone interface, the method comprises: whether detecting earphone interface inserts UART output plug, wherein said UART output plug comprises headset plug, the UART change-over circuit coupling with headset plug and the connector coupling with UART change-over circuit, this connector is connected on system debugging aids, if yes, now UART output plug has accessed this earphone interface, and this UART output is configured to output state by this processor, this UART output output system running log information, if NO, now earphone interface has accessed earphone in floating dummy status or this earphone interface, and this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output.
Compared with prior art, the present invention directly holds the UART output of the processor CPU of electronic installation to be connected with the Mike of earphone interface, thereby making does not need additionally to arrange control switching circuit in electronic installation, and be high-impedance state by configuration UART output, realize the multiplexing function of UART interface and earphone interface, thereby greatly reduced the manufacturing cost of product.
Accompanying drawing explanation
Fig. 1 is UART debug system schematic diagram in prior art;
Fig. 2 is the control circuit schematic diagram of electronic equipment in prior art;
Fig. 3 is the circuit connection diagram in one embodiment of the invention mobile phone;
Fig. 4 is one embodiment of the invention UART output plug schematic diagram;
Fig. 5 is one embodiment of the invention UART output system schematic diagram figure;
Fig. 6 is one embodiment of the invention UART output intent flow chart.
Embodiment
For making that object of the present invention, structure, feature and function thereof are had to further understanding, hereby coordinate embodiment to be described in detail as follows.
As shown in Figure 3, be the circuit connection diagram in one embodiment of the invention mobile phone, this mobile phone has processor 201 and earphone interface 204, in the present embodiment, electronic installation is take mobile phone as example, and certainly, for example this electronic installation also can be the embedded devices such as existing various panel computers.This processor 201 has UART output 202 and sense terminal 203.This UART output 202 is for exporting the system running log information of this mobile phone.The G27 pin of for example processor EBI2.This sense terminal 203 is for circuit for detecting level height.This processor 201(CPU) be generally the integrated chip on the mainboard that is arranged on this interior of mobile phone, and this outer handset does not arrange independent UART interface.This earphone interface 204 can allow headset plug insert or take off.This earphone interface 204 comprises that L channel end L, R channel end R, earth terminal GND, Mike hold MIC and insert sense terminal DETECT-IN, and for example, this earphone interface 204 adopts 3.5mm standard earphone interface.
Wherein this insertion sense terminal DETECT-IN is connected to GPIO end (general purpose inputoutput, universal input/output), and the sense terminal 203 that this GPIO end is this processor 201 is directly connected to this earphone interface 204 via RC filter circuit.This processor 201 is received the level of the insertion sense terminal of this earphone interface 204 by this GPIO termination, according to the type of plug in this electrical level judging plugged earphone interface 204, and according to type of plug, UART output is configured to different states.
And the present invention holds MIC to be directly connected with the Mike of earphone interface 204 the UART output 202 of processor 201, when detecting in earphone interface 204, inserts after UART output plug by processor 201, it is exportable UART information that the Mike of this earphone interface 204 holds MIC, multiplexing by UART output 202 and earphone interface 204, avoid being undertaken by disassembling complete machine the problem of UART information output, reduced the problem of damaging all parts in electronic installation.Also improved the debugging efficiency of mobile phone in the time of exploitation or maintenance.Also without in outer handset, special UART interface being set again, make mobile phone more attractive in appearance simultaneously, be conducive to the lightening design of mobile phone, reduced product cost.
In addition, owing to having at present the processor 201 of UART output 203, its UART output 203 all can be configured to high-impedance state, and wherein, described high-impedance state means this end resistance infinity, similar unsettled, is equal to off state.Thereby, hold MIC to be directly connected and disturb earphone interface 204 normally to use with Mike for fear of UART output 202, processor 201 is in the time identifying earphone interface 204 and accessed normal earphone, in the time that this earphone interface 204 has inserted normal headset plug, this insertion sense terminal DETECT-IN and L channel end L phase short circuit, because the normal general resistance of earphone is less, thereby making this insertion sense terminal DETECT-IN is low level (ground connection), this UART output 202 is configured to high-impedance state by this processor 201 so, wherein, described high-impedance state means this end resistance infinity, similar unsettled.Now not output system running log information of this UART output 202, although UART output 202 holds MIC to be connected with Mike, but because UART output 202 is configured to high-impedance state, thereby UART output 202 can output information, thus the impact of having avoided UART output 202 to use earphone interface 204.
At earphone interface 204 during in floating dummy status, be in earphone interface 204, not insert any plug, earphone interface 204 is in open-circuit condition, and now this UART output 202 is configured to high-impedance state by this processor 201, not output system running log information of this UART output 202; In the time that UART output plug accesses this earphone interface 204, this UART output plug is by an external 1.8V(high level) be connected to the L channel end L of earphone interface 204, be high level thereby make to insert sense terminal DETECT-IN, this processor 201 is just configured to output state by this UART output 202 so, this UART output 202 is by these earphone interface 204 output system running log information, and in the time that UART information is exported, Mike holds MIC inapplicablely so also can not affect.
In brief, this UART output 202 is only in the time that UART output plug accesses this earphone interface 204, this UART output 202 is just configured to normal output state by processor 201, to carry out the output of system running log information, in addition, this UART output 202 is configured to high-impedance state by processor CPU201 always, thereby has avoided this UART output 202 to the normal interference using of earphone interface 204.
Wherein, as shown in Figure 4, be one embodiment of the invention UART output plug schematic diagram, described UART output plug be comprise headset plug 301, the UART change-over circuit 302 coupling with headset plug 301 and the connector 303 coupling with UART change-over circuit 302.In the present embodiment, with USB plug (Universal SerialBus; USB) be example, this UART out splice going splice one end is that headset plug 301, the other end are USB plug 303, centre connects by UART change-over circuit 302.This headset plug 301 is 3.5mm standard plug, and this headset plug 301 has the L channel wiring corresponding with earphone interface, R channel wiring, earth connection and Mike's line.Due to UART output output be parallel data, this UART change-over circuit 302 can be converted to this UART parallel data the discernible serial data of system debugging aids.This connector is serial interface plug, and is connected with the serial ports of system debugging aids, and data are reached in system debugging aids.
Compared with prior art, the present invention is by being configured to high-impedance state by UART output, thereby carry out the switching of audio frequency and UEART function without additionally setting up switching controls switch, thereby reduce the production cost of electronic product, and save the inner valuable space of electronic installation, adapted to electronic device miniaturization growth requirement.
The present invention simultaneously is directly connected UART output with Mike's end, this is also repacking mode the easiest on earphone interface original base.The present invention is not as limit, certain, in other embodiments, and also can be using other pins of earphone interface as processor UART output output interface.
For the UART output principle of clearer this electronic installation of description, explain further combined with one embodiment of the invention UART output system.As shown in Figure 5, be one embodiment of the invention UART output system.This system comprises electronic installation 401, UART output plug 408 and system debugging aids 412.In the time this electronic installation 401 being carried out to UART debugging, this electronic installation 401 is connected on system debugging aids 412 by this UART output plug 408.
This electronic installation 401 has processor 402 and earphone interface 407, and this processor 402 has UART output 403 and sense terminal 404.This UART output 403 is for exporting this electronic installation 401 system running log information.This sense terminal 404 is for circuit for detecting level height.This earphone interface 407 can allow headset plug 409 to insert or take off.Shown in Fig. 3, this earphone interface 407 comprises that L channel end L, R channel end R, earth terminal GND, Mike hold MIC and insert sense terminal DETECT-IN.Wherein this insertion sense terminal DETECT-IN is connected to GPIO end, and the sense terminal 404 that this GPIO end is this processor 402 is directly connected to this earphone interface 407 via RC filter circuit.This processor 402 is received the level of the insertion sense terminal DETECT-IN of this earphone interface 407 by this GPIO termination, according to the type of plug in this electrical level judging plugged earphone interface 407, and according to type of plug, UART output 403 is configured to different states.
This UART output plug 408 be comprise headset plug 409, the UART change-over circuit 410 coupling with headset plug 409 and the connector 411 coupling with UART change-over circuit 410.These UART output plug 408 one end are that headset plug 409, the other end are connector 411, and centre connects by UART change-over circuit 410.This headset plug 409 has the L channel wiring corresponding with earphone interface 407, R channel wiring, earth connection and Mike's line.Due to UART output 403 export for parallel data, this UART change-over circuit 410 can be converted to this UART parallel data the discernible serial data of system debugging aids 412.This connector 411 is serial interface plug, and is connected with the serial ports of system debugging aids 412, and data are reached in system debugging aids 412.
In the time carrying out the UART information extraction of electronic installation 401, the headset plug of this UART output plug 408 409 is accessed in this earphone interface 407, simultaneously by connector 411 connecting system commissioning devices 412, shown in Fig. 3, this UART output plug 408 by an external high level (for example, 1.8V) be connected to the L channel end L of earphone interface 407, because earphone interface 407 is when the plugged earphone plug 409, L channel end L and insertion sense terminal DETECT-IN phase short circuit, also be high level thereby make to insert sense terminal DETECT-IN, the sense terminal 404 of this processor 402 detects high level, this processor 402 is according to this high level simultaneously, this UART output 403 is configured to output state.
Simultaneously, because the UART output 403 of processor 402 holds MIC to be directly connected with the Mike of earphone interface 407, this UART output 403 is configured to after normal output state, this UART output 403 can pass through these earphone interface 407 output system running log information, and in the time that UART information is exported, Mike end is inapplicablely so also can not affect.This UART information, after UART change-over circuit, is converted to the discernible data of system debugging aids 412, and transfers to system debugging aids 412, so that research and development or maintenance personal analyze debugging.
The present invention is multiplexing by UART output and earphone interface, has avoided being undertaken by disassembling complete machine the problem of UART information output, has reduced the problem of damaging all parts in electronic installation.Also improved the debugging efficiency of mobile phone in the time of exploitation or maintenance.The present invention simultaneously is directly connected UART output with Mike's end, carried out the most succinct repacking, thereby saved the space in electronic installation on earphone interface original base, is conducive to the Miniaturization Design of electronic installation, has reduced product cost.
In the time that electronic installation normally uses, now do not need to carry out the extraction of electronic installation UART information, but because the UART output of processor still holds MIC being directly connected with the Mike of earphone interface, thereby certainly will impact the normal use of earphone interface.The present invention, cleverly by UART output is configured to high-impedance state, has solved UART output Mike has been held to the normal interference using of MIC.Wherein said high-impedance state means this end resistance infinity, similar unsettled, is equal to off state.
Wherein, earphone interface, in the time of normal operating condition, comprises two kinds of situations, and one is that earphone interface does not access any plug, and in the time of floating dummy status (floating mode), earphone interface is in open-circuit condition.Because UART output is directly connected to Mike and holds MIC, so not only can there is impact to Mike's communication effect, also can there is impact to the power consumption stream of whole machine, so UART output need to be configured to high-impedance state.So time this processor this UART output is configured to high-impedance state, not output system running log information of this UART output; Another kind of situation is while having accessed common headphones in earphone interface, this insertion sense terminal DETECT-IN and L channel end L phase short circuit, because the normal general resistance of earphone is less, this insertion sense terminal DETECT-IN is equal to ground connection so, thereby making this insertion sense terminal DETECT-IN is low level (ground connection), this processor is configured to high-impedance state according to the low level detecting by this UART output so, wherein, described high-impedance state means this end resistance infinity, similar unsettled.Now not output system running log information of this UART output, although UART output is connected with Mike's end, but because UART output is configured to high-impedance state, thereby UART output can output information, thereby the impact of having avoided UART output to use earphone interface.While not inserting UART output plug in this earphone interface, this UART output is configured to high-impedance state by processor CPU always, thereby has avoided this UART output to the normal interference using of earphone interface.
As shown in Figure 6, be the UART output intent flow chart of one embodiment of the invention, the method is for having the electronic installation of earphone interface, and this electronic installation has processor and earphone interface, and this processor has UART output and sense terminal.This UART output is used for exporting this electronic apparatus system running log information.This sense terminal is for circuit for detecting level height.This earphone interface can allow headset plug insert or take off.This earphone interface has L channel end, Mike's end and inserts sense terminal.This UART output is coupled to this Mike's end, and this electronic installation carries out the output of UART information by earphone interface, and the method comprises:
Step S501, whether detecting earphone interface inserts UART output plug, wherein said UART output plug comprises headset plug, the UART change-over circuit coupling with headset plug and the connector coupling with UART change-over circuit, and this connector is connected on system debugging aids.The insertion sense terminal of this earphone interface is connected to GPIO end, and the sense terminal that this GPIO end is this processor is directly connected to this earphone interface via RC filter circuit.This processor is received the level of the insertion sense terminal of this earphone interface by this GPIO termination, according to the type of plug in this electrical level judging plugged earphone interface, and according to type of plug, UART output is configured to different states.
Step S502, now UART output plug has accessed this earphone interface, and this UART output is configured to output state by this processor, this UART output output system running log information; This UART output plug is connected to an external high level at the L channel end of earphone interface, because earphone interface is when the plugged earphone plug, L channel end and insertion sense terminal phase short circuit, also be high level thereby make to insert sense terminal, the sense terminal of this processor detects high level, this processor, according to this high level, is configured to output state by this UART output simultaneously.Simultaneously, because the UART output of processor is held directly and is connected with the Mike of earphone interface, this UART output is configured to after normal output state, this UART output can pass through this earphone interface output system running log information, and in the time that UART information is exported, Mike end is inapplicablely so also can not affect.This UART information, after UART change-over circuit, is converted to the discernible data of system debugging aids, and transfers to system debugging aids, so that research and development or maintenance personal analyze debugging.
Step S503, now earphone interface has accessed earphone in floating dummy status or this earphone interface, and this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output.In the time that electronic installation normally uses, now do not need to carry out the extraction of electronic installation UART information, but because the UART output of processor still holds MIC being directly connected with the Mike of earphone interface, can impact the normal use of earphone interface.The present invention, by UART output is configured to high-impedance state, has solved UART output Mike has been held to the normal interference using of MIC.Wherein, earphone interface, in the time of normal operating condition, comprises two kinds of situations, and one is that earphone interface does not access any plug, and in the time of floating dummy status, earphone interface is in open-circuit condition.Now this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output; Another kind of situation is while having accessed common headphones in earphone interface, this insertion sense terminal and L channel end phase short circuit, because the normal general resistance of earphone is less, this insertion sense terminal is equal to ground connection so, thereby making this insertion sense terminal is low level (ground connection), this processor is configured to high-impedance state according to the low level detecting by this UART output so, wherein, described high-impedance state means this end resistance infinity, similar unsettled.Now not output system running log information of this UART output, although UART output is connected with Mike's end, but because UART output is configured to high-impedance state, thereby UART output can output information, thereby the impact of having avoided UART output to use earphone interface.While not inserting UART output plug in this earphone interface, this UART output is configured to high-impedance state by processor CPU always, thereby has avoided this UART output to the normal interference using of earphone interface.
In sum, the present invention holds MIC multiplexing by the Mike of UART output and earphone, thereby reaches good debugging more easily.UART output by processor CPU is directly held this pin to be connected with the Mike of earphone interface.Need not dismantle complete machine and also can debug, locate fast and deal with problems.And by UART output is configured to high-impedance state, thereby carry out the switching of audio frequency and UEART function without additionally setting up switching controls switch, thereby reduce the production cost of electronic product, and saved the inner valuable space of electronic installation, adapted to electronic device miniaturization growth requirement.
Understandable, by the description of above embodiment, those skilled in the art can clearly recognize that the present invention can realize by hardware, software or their compound mode.
The present invention is described by above-mentioned related embodiment, but above-described embodiment is only for implementing example of the present invention.Must be pointed out that, the embodiment having disclosed does not limit the scope of the invention.On the contrary, the change done without departing from the spirit and scope of the present invention and retouching, all belong to scope of patent protection of the present invention.

Claims (10)

1. an electronic installation, there is processor and earphone interface, this processor has the UART output for exporting this electronic apparatus system running log information, this earphone interface has L channel end and Mike's end, it is characterized in that, this UART output is coupled to this Mike's end, wherein, when earphone interface is in the time floating dummy status, this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output; In the time that earphone accesses this earphone interface, this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output; In the time that UART output plug accesses this earphone interface, this processor is just configured to output state by this UART output, this UART output output system running log information.
2. electronic installation as claimed in claim 1, is characterized in that, this UART output plug comprises headset plug, the UART change-over circuit coupling with headset plug and the connector coupling with UART change-over circuit, and wherein, this connector is connected on system debugging aids.
3. electronic installation as claimed in claim 2, is characterized in that, in the time of this UART output plug access earphone interface, this system debugging aids provides high level to the L channel end of this earphone interface.
4. electronic installation as claimed in claim 2, is characterized in that, described connector is serial interface plug, and is connected with the serial ports of system debugging aids.
5. electronic installation as claimed in claim 1, it is characterized in that, this processor has sense terminal, and this earphone interface has insertion sense terminal, this sense terminal is coupled to this insertion sense terminal, and this processor is according to the state of the electrical level judging earphone interface of this insertion sense terminal.
6. electronic installation as claimed in claim 5, is characterized in that, between this sense terminal and this insertion sense terminal, is provided with RC filter circuit.
7. a UART output output system, comprise electronic installation, UART output plug and system debugging aids, this electronic installation has processor, this processor has the UART output for exporting this electronic apparatus system running log information, this system debugging aids is connected in this electronic installation by this UART output plug, and according to the system running log information of this UART output output, this electronic installation is debugged, this electronic installation also has earphone interface, this earphone interface has L channel end and Mike's end, it is characterized in that, this UART output is coupled to this Mike's end, wherein, when earphone interface is in the time floating dummy status, this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output, in the time that earphone accesses this earphone interface, this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output, in the time that UART output plug accesses this earphone interface, this processor is just configured to output state by this UART output, this UART output output system running log information.
8. UART output system as claimed in claim 7, it is characterized in that, this UART output plug comprises headset plug, the UART change-over circuit coupling with headset plug and the connector coupling with UART change-over circuit, and wherein, this connector is connected on system debugging aids.
9. UART output system as claimed in claim 7, it is characterized in that, this processor has sense terminal, and this earphone interface has insertion sense terminal, this sense terminal is coupled to this insertion sense terminal, and this processor is according to the state of the electrical level judging earphone interface of this insertion sense terminal.
10. a UART output intent, for thering is the electronic installation of earphone interface, this electronic installation comprises the processor with UART output, this earphone interface has L channel and Mike's end, it is characterized in that, this UART output is coupled to this Mike's end, and this electronic installation carries out the output of UART information by earphone interface, and the method comprises:
Whether detecting earphone interface inserts UART output plug, and wherein said UART output plug comprises headset plug, the UART change-over circuit coupling with headset plug and the connector coupling with UART change-over circuit, and this connector is connected on system debugging aids;
If yes, now UART output plug has accessed this earphone interface, and this UART output is configured to output state by this processor, this UART output output system running log information; If NO, now earphone interface has accessed earphone in floating dummy status or this earphone interface, and this UART output is configured to high-impedance state by this processor, not output system running log information of this UART output.
CN201410076819.6A 2014-03-04 2014-03-04 Electronic installation, UART output systems and method Expired - Fee Related CN103888873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410076819.6A CN103888873B (en) 2014-03-04 2014-03-04 Electronic installation, UART output systems and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410076819.6A CN103888873B (en) 2014-03-04 2014-03-04 Electronic installation, UART output systems and method

Publications (2)

Publication Number Publication Date
CN103888873A true CN103888873A (en) 2014-06-25
CN103888873B CN103888873B (en) 2017-06-16

Family

ID=50957559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410076819.6A Expired - Fee Related CN103888873B (en) 2014-03-04 2014-03-04 Electronic installation, UART output systems and method

Country Status (1)

Country Link
CN (1) CN103888873B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868140A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 A mobile apparatus
US9563398B2 (en) 2015-03-06 2017-02-07 Qualcomm Incorporated Impedance-based flow control for a two-wire interface system with variable frame length
CN106454677A (en) * 2016-10-09 2017-02-22 青岛海信电器股份有限公司 Signal circuit control method and display device
US9971666B2 (en) 2015-03-06 2018-05-15 Qualcomm Incorporated Technique of link state detection and wakeup in power state oblivious interface
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
CN114265531A (en) * 2021-12-22 2022-04-01 合肥联睿微电子科技有限公司 Display control right switching method, terminal device and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120058A1 (en) * 2006-11-16 2008-05-22 Samsung Electronics Co., Ltd. Multi-cpu mobile terminal and multi-cpu test system and method
CN201805529U (en) * 2010-09-09 2011-04-20 惠州Tcl移动通信有限公司 Earphone interface shared by serial port download line and earphone, and mobile terminal shared thereby
CN102073470A (en) * 2009-11-21 2011-05-25 炬力集成电路设计有限公司 Electronic equipment and control method thereof
CN102082846A (en) * 2010-12-02 2011-06-01 惠州Tcl移动通信有限公司 Terminal equipment with plurality of externally arranged shared interfaces
CN102469404A (en) * 2010-11-10 2012-05-23 深圳市创智成科技股份有限公司 Debugging method using earphone audio interface
CN202267960U (en) * 2011-09-13 2012-06-06 深圳市创智成科技股份有限公司 Debugging device for universal asynchronous receiver/transmitter
CN102724367A (en) * 2012-06-27 2012-10-10 喻应东 Mobile phone extension system, signal transfer equipment and mobile phone
CN103078224A (en) * 2013-01-07 2013-05-01 华为终端有限公司 Connecting line, control method, control circuit and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120058A1 (en) * 2006-11-16 2008-05-22 Samsung Electronics Co., Ltd. Multi-cpu mobile terminal and multi-cpu test system and method
CN102073470A (en) * 2009-11-21 2011-05-25 炬力集成电路设计有限公司 Electronic equipment and control method thereof
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 using earphone audio interface
CN102082846A (en) * 2010-12-02 2011-06-01 惠州Tcl移动通信有限公司 Terminal equipment with plurality of externally arranged shared interfaces
CN202267960U (en) * 2011-09-13 2012-06-06 深圳市创智成科技股份有限公司 Debugging device for universal asynchronous receiver/transmitter
CN102724367A (en) * 2012-06-27 2012-10-10 喻应东 Mobile phone extension system, signal transfer equipment and mobile phone
CN103078224A (en) * 2013-01-07 2013-05-01 华为终端有限公司 Connecting line, control method, control circuit and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9563398B2 (en) 2015-03-06 2017-02-07 Qualcomm Incorporated Impedance-based flow control for a two-wire interface system with variable frame length
US9971666B2 (en) 2015-03-06 2018-05-15 Qualcomm Incorporated Technique of link state detection and wakeup in power state oblivious interface
CN108737900A (en) * 2015-03-17 2018-11-02 青岛海信宽带多媒体技术有限公司 A kind of output method of terminal signaling
CN105868140A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 A mobile apparatus
WO2017161750A1 (en) * 2016-03-25 2017-09-28 乐视控股(北京)有限公司 Mobile apparatus
CN106454677A (en) * 2016-10-09 2017-02-22 青岛海信电器股份有限公司 Signal circuit control method and display device
CN109218891A (en) * 2018-10-16 2019-01-15 上海畅联智融通讯科技有限公司 The earphone interface module and mobile terminal of multiplexing serial port function
CN114265531A (en) * 2021-12-22 2022-04-01 合肥联睿微电子科技有限公司 Display control right switching method, terminal device and computer readable storage medium

Also Published As

Publication number Publication date
CN103888873B (en) 2017-06-16

Similar Documents

Publication Publication Date Title
CN103888873A (en) Electronic device and UART output system and method
CN101951421B (en) Expansion use method for cell phone earphone interface
CN101931674B (en) Method and device for sharing Micro-USB interface
EP2089805B1 (en) Enhanced communication via a serial interface
EP2597844B1 (en) Method and device for sharing micro-usb interface between earphone and usb
CN201359725Y (en) USB interface circuit and portable hand-held device provided with the circuit
CN101841586B (en) Method for expanding earphone interface of mobile phone into serial communication interface
CN205176841U (en) USB -Type -C interface converter
CN102082846B (en) Terminal equipment with plurality of externally arranged shared interfaces
US20170277650A1 (en) User equipment and method for data transmission
CN105867874A (en) A user device
CN104023294A (en) Interface multiplexing apparatus in terminal, and adaptor panel
CN101426038A (en) Portable electronic device and accessory identification method
CN103716734A (en) Apparatus and method for detecting insertion of headset into mobile station
CN201805529U (en) Earphone interface shared by serial port download line and earphone, and mobile terminal shared thereby
CN103078224B (en) Connecting line, control method, control circuit and electronic equipment
WO2021135687A1 (en) Electronic device and accessory having both quick charging function and audio transmission function
CN104617461A (en) Compatible data interface
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
CN101841588A (en) Audio interface device and electronic device using same
CN104063348A (en) Device and method for realizing compatible USB (Universal Serial Bus) communication and audio communication
CN102768574A (en) Data transmission system and peripheral device of electronic device thereof
CN204391454U (en) A kind of Campatible data-interface
CN104599672A (en) Audio encoder/decoder with audio insertion-connection detection capacity and audio insertion-connection detecting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170616

Termination date: 20210304

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