CN103888873B - Electronic installation, UART output systems and method - Google Patents

Electronic installation, UART output systems and method Download PDF

Info

Publication number
CN103888873B
CN103888873B CN201410076819.6A CN201410076819A CN103888873B CN 103888873 B CN103888873 B CN 103888873B CN 201410076819 A CN201410076819 A CN 201410076819A CN 103888873 B CN103888873 B CN 103888873B
Authority
CN
China
Prior art keywords
uart
output
earphone interface
sense terminal
output ends
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410076819.6A
Other languages
Chinese (zh)
Other versions
CN103888873A (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

Landscapes

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

Abstract

The present invention provides a kind of electronic installation, it has processor and earphone interface, the processor has the UART output ends for exporting the electronic apparatus system running log information, the earphone interface has L channel end and Mike end, the UART output ends are coupled to the Mike end, when earphone interface is in floating state, the UART output ends are configured to high-impedance state by the processor, the UART output ends not output system running log information;When earphone accesses the earphone interface, the UART output ends are configured to high-impedance state by the processor, the UART output ends not output system running log information;When UART output plugs access the earphone interface, the UART output ends are just configured as output to state by the processor, the UART output end output system running log information.Present invention also offers a kind of UART output systems and method.

Description

Electronic installation, UART output systems and method
Technical field
The present invention relates to a kind of electronic installation, more particularly to a kind of electronic installation with UART debugging functions.
Background technology
The electronic equipments such as mobile phone, panel computer have become common communication tool in people's daily life.In these electricity Debugging is required for during sub- equipment development stage and user's use, in debugging, research and development or maintenance personal need to extract electricity The system operation daily record of sub- device handler CPU(log)Information because system operation log information recording processor in itself with And the operation information of peripheral components.And UART interface(UART Universal Asynchronous Receiver Transmitter;Universal Asynchronous Receiver/Transmitter)It is a kind of common debugging interface, but due to product design, many electronic equipments All without extraneous UART interface, these electronic equipments by UART interface when being debugged, it is necessary to dismantles whole machine, to pull down electricity The mainboard of sub- equipment, connects holding wire, and be connected on system debugging aids PC in the UART output ends of the processor of mainboard Carry out system operation log information extraction.But so need to destroy whole machine, and easily to the unit such as integrated chip on mainboard device Part causes to damage, and unloading process also have impact on debugging efficiency of the electronic equipment in exploitation or maintenance.
In the prior art, in order to be implemented without being capable of achieving UART debugging functions in the case of tearing machine open, generally by UART Interface is multiplexed with earphone interface, and system operation log information is exported.As shown in figure 1, for UART in the prior art is adjusted Test system schematic diagram.The processor 102 of the electronic equipment 101 has UART interface 103, and the UART interface 103 is by controlling electricity Road 104 is connected to earphone interface 105.So as to realize the multiplexing of UART interface 103 and earphone interface 105, and pass through one again Debugging device for universal asynchronous receiver/transmitter 106, computer 110 is connected to by earphone interface 105(System debugging aids).Wherein, this leads to With asynchronism transceiver debugging apparatus 106 as disclosed by patent CN202267960, the debugging device for universal asynchronous receiver/transmitter 106 is wrapped Include headset plug 107, UART change-over circuits 108 and connector 109.During debugging, by debugging device for universal asynchronous receiver/transmitter 106 Headset plug 107 be inserted into earphone interface 105.Connector 109 inserts the connectivity port of computer 110, is connected with computer 110. Thus, you can electronic equipment 101 is set up with computer 110 and is communicated, so as to be debugged.
Equally, in patent CN103078224, as shown in Fig. 2 the patent also discloses that the control electricity of a kind of electronic equipment Road, the control circuit includes earphone interface and switch unit, is provided with four contacts in earphone interface, respectively L channel contact L, Right channel contact R, ground wire GND, microphone contact MIC, and with headset plug on four contacts(Left channel signals line, R channel Holding wire, ground signal line, microphone signal line)Correspond.Similar to two single-pole double-throw switch (SPDT)s inside switch unit, this is cut The control end S default conditions of unit are changed for low level, switch unit connects voice-frequency channel.Common earphone cord insertion earphone is connect When in mouthful, the control unit S or low level of switch unit when such user inserts normal earphone cord, do not interfere with earphone Normal use.When the control end S of switch unit is high level, be input into the UART of electronic equipment and L channel by switch unit Contact is connected, and the UART outputs of electronic equipment is connected with microphone contact, and be connected to computer by connecting line.Thus can be with By UART interface, the system operation log information of electronic equipment is extracted by computer, and electronic equipment is entered by UART interface Row debugging.
Although prior art has been able to be implemented without the mainboard for pulling down electronic equipment just energy extraction system running log Information, but all must additionally increase a control circuit in the prior art(Usually one switching control switch)Could realize The function that earphone interface is multiplexed with UART interface.And additionally increase ON-OFF control circuit, the production cost of product can be increased, and So that the more numerous and diverse redundancy of electronic equipment internal structure.
The content of the invention
It is an object of the invention to provide a kind of electronic installation, extra control switching circuit is not increased in an electronic In the case of, realize the function of UART outputs and earphone interface multiplexing.
In order to realize above-mentioned technical purpose, the invention provides a kind of electronic installation, the electronic installation have processor and Earphone interface, the processor has the UART output ends for exporting the electronic apparatus system running log information, and the earphone connects Mouth has L channel end and Mike end, and the UART output ends are coupled to the Mike end, wherein, when earphone interface is in floating state When, the UART output ends are configured to high-impedance state by the processor, the UART output ends not output system running log information;Work as ear When machine accesses the earphone interface, the UART output ends are configured to high-impedance state by the processor, the UART output ends not output system Running log information;When UART output plugs access the earphone interface, just be configured to for the UART output ends defeated by the processor Do well, the UART output end output system running log information.
Preferably, in described electronic installation, the UART output plugs include what headset plug and headset plug were coupled UART change-over circuits and the connector coupled with UART change-over circuits, wherein, the connector is connected on system debugging aids.
Preferably, in described electronic installation, when the UART output plugs access earphone interface, the system debug sets The standby L channel end to the earphone interface provides high level.
Preferably, in described electronic installation, described connector is serial interface plug, and with the string of system debugging aids Mouth is connected.
Preferably, in described electronic installation, the processor has sense terminal, there is the earphone interface insertion to detect End, the sense terminal is coupled to the insertion sense terminal, shape of the processor according to the electrical level judging earphone interface of the insertion sense terminal State.
Preferably, in described electronic installation, RC filter circuits are provided between the sense terminal and the insertion sense terminal.
Present invention also offers a kind of UART output ends output system, the system includes electronic installation, UART output plugs And system debugging aids, the electronic installation has processor, and the processor has for exporting electronic apparatus system operation day The UART output ends of will information, the system debugging aids are connected to the electronic installation by the UART output plugs, and according to this The system operation log information of UART output ends output is debugged to the electronic installation, and the electronic installation also connects with earphone Mouthful, the earphone interface has L channel end and Mike end, and the UART output ends are coupled to the Mike end, wherein, work as earphone interface During in floating state, the UART output ends are configured to high-impedance state by the processor, the UART output ends not output system operation Log information;When earphone accesses the earphone interface, the UART output ends are configured to high-impedance state by the processor, UART outputs Hold not output system running log information;When UART output plugs access the earphone interface, the processor is just defeated by the UART Go out end and be configured as output to state, the UART output end output system running log information.
Preferably, in described UART output systems, the UART output plugs include headset plug and headset plug coupling The UART change-over circuits for connecing and the connector coupled with UART change-over circuits, wherein, the connector is connected to system debugging aids On.
Preferably, in described UART output systems, the processor has sense terminal, the earphone interface is detectd with insertion End is surveyed, the sense terminal is coupled to the insertion sense terminal, and the processor is according to the electrical level judging earphone interface of the insertion sense terminal State.
Present invention also offers a kind of UART output intents, the method is used in the electronic installation with earphone interface, should Electronic installation includes the processor with UART output ends, and the earphone interface has L channel and Mike end, the UART output ends The Mike end is coupled to, the electronic installation carries out UART information outputs by earphone interface, and the method includes:Detecting earphone interface Whether UART output plug is inserted, wherein described UART output plugs include the UART that headset plug and headset plug are coupled Change-over circuit and the connector coupled with UART change-over circuits, the connector are connected on system debugging aids;If it is, now UART output plugs have accessed the earphone interface, and the UART output ends are configured as output to state by the processor, UART outputs End output system running log information;If it has not, now earphone interface is in floating state or the earphone interface has accessed earphone, The UART output ends are configured to high-impedance state by the processor, the UART output ends not output system running log information.
Compared with prior art, the present invention by the UART output ends of the processor CPU of electronic installation directly and earphone interface Mike end be connected so that need not additionally set control switching circuit in electronic installation, and exported by configuring UART It is high-impedance state to hold, and realizes the function of UART interface and earphone interface multiplexing, thus greatly reduce the manufacturing of product into This.
Brief description of the drawings
Fig. 1 is UART debugging systems schematic diagram in the prior art;
Fig. 2 is the control circuit diagram of electronic equipment in the 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 diagrames;
Fig. 5 is one embodiment of the invention UART output system schematic diagram figures;
Fig. 6 is one embodiment of the invention UART output intent flow charts.
Specific embodiment
To make have further understanding to the purpose of the present invention, construction, feature and its function, hereby coordinate embodiment detailed It is described as follows.
As shown in figure 3, being the circuit connection diagram in one embodiment of the invention mobile phone, the mobile phone has processor 201 With earphone interface 204, in the present embodiment, by taking mobile phone as an example, certainly, such as electronic installation can also be existing each to electronic installation Plant the embedded devices such as panel computer.The processor 201 has UART output ends 202 and sense terminal 203.The UART output ends The 202 system operation log informations for being used to export the mobile phone.The G27 pins of such as processor EBI2.The sense terminal 203 is used to detect Level is just in slowdown monitoring circuit.The processor 201(CPU)The integrated chip on the mainboard of the interior of mobile phone is generally arranged on, and And the outer handset is not provided with single UART interface.The earphone interface 204 can allow headset plug to insert or remove.The ear Machine interface 204 includes L channel end L, R channel end R, earth terminal GND, Mike end MIC and insertion sense terminal DETECT-IN, example Such as, the earphone interface 204 uses 3.5mm standard earphone interfaces.
Wherein insertion sense terminal DETECT-IN is connected to GPIO ends(General purpose inputoutput, lead to Use input/output terminal), the GPIO ends are that the sense terminal 203 of the processor 201 is directly connected to the earphone and connects via RC filter circuits Mouth 204.The processor 201 receives the level of the insertion sense terminal of the earphone interface 204 by the GPIO ends, is sentenced according to the level Type of plug in disconnected insertion earphone interface 204, and different states are configured to UART output ends according to type of plug.
And with the Mike end MIC of earphone interface 204 be directly connected to the UART output ends 202 of processor 201 by the present invention, After UART output plugs are inserted during processor 201 detects earphone interface 204, the Mike end MIC of the earphone interface 204 is Exportable UART information, by the multiplexing of UART output ends 202 and earphone interface 204, it is to avoid carried out by disassembling whole machine The problem of UART information outputs, reduces the problem for damaging all parts in electronic installation.Mobile phone is also improved to develop or tieing up Debugging efficiency when repairing.Simultaneously without again in the UART interface that outer handset setting is special so that mobile phone is more attractive in appearance, favorably In the lightening design of mobile phone, product cost is reduced.
Further, since having the processor 201 of UART output ends 203 at present, its UART output end 203 all can be configured to High-impedance state, wherein, described high-impedance state means the end infinite, is similar to vacantly, is equal to off state.Thus, in order to UART output ends 202 are avoided to be directly connected to Mike end MIC and disturb earphone interface 204 normally to use, processor 201 is in identification When going out earphone interface 204 and having accessed normal earphone, i.e., when the earphone interface 204 inserts normal headset plug, the insertion is detectd End DETECT-IN and L channel end L phase short circuits are surveyed, because the general resistance of normal earphone is smaller, so that the insertion sense terminal DETECT-IN is low level(Ground connection), then the UART output ends 202 are configured to high-impedance state by the processor 201, wherein, institute The high-impedance state stated means the end infinite, is similar to hanging.Now the UART output ends 202 not believe by output system running log Breath, although UART output ends 202 are connected with Mike end MIC, but because UART output ends 202 are configured as high-impedance state, because And UART output ends 202 will not output information, so as to avoid the influence that UART output ends 202 are used earphone interface 204.
When earphone interface 204 is in floating state, i.e., any plug, earphone interface 204 are not inserted into earphone interface 204 In open-circuit condition, now the UART output ends 202 are configured to high-impedance state by the processor 201, and the UART output ends 202 are not defeated Go out system operation log information;When UART output plugs access the earphone interface 204, the UART output plugs are external by one 1.8V(High level)The L channel end L of earphone interface 204 is connected to, so that insertion sense terminal DETECT-IN is high level, So the UART output ends 202 are configured as output to state by the ability of processor 201, and the UART output ends 202 are connect by the earphone Mouthful 204 output system running log information, and in UART information outputs, Mike end MIC is inapplicable so also will not Influence.
In brief, the UART output ends 202 are only when UART output plugs access the earphone interface 204, the UART The ability of output end 202 is configured to normal output state by processor 201, to carry out the output of system operation log information, in addition, The UART output ends 202 are configured to high-impedance state by processor CPU201 always, so as to avoid the UART output ends 202 to earphone The interference that interface 204 is normally used.
Wherein, as shown in figure 4, being one embodiment of the invention UART output plug schematic diagrames, described UART output plugs Be include headset plug 301 and headset plug 301 coupling UART change-over circuits 302 and with UART change-over circuits 302 couple Connector 303.In the present embodiment, with USB plug (Universal SerialBus;USB) as a example by, i.e., should UART out splice going splices one end is that the headset plug 301, other end is USB plug 303, and centre is connected by UART change-over circuits 302. The headset plug 301 is 3.5mm standard plugs, and the headset plug 301 has L channel wiring, the right side corresponding with earphone interface Sound channel wiring, ground wire and Mike's line.Due to the output of UART output ends is parallel data, and the UART change-over circuits 302 can be by The UART parallel datas are converted to the recognizable serial data of system debugging aids.The connector is serial interface plug, and and system The serial ports of commissioning device is connected, and data are reached into system debugging aids.
Compared with prior art, the present invention is configured to high-impedance state by by UART output ends, so as to be cut without additional Change controlling switch to carry out the switching of audio and UEART functions, so as to reduce the production cost of electronic product, and save electricity The valuable space in sub-device inside, has adapted to electronic device miniaturization growth requirement.
Simultaneously the present invention directly UART output ends are connected with Mike end, this be also on earphone interface original base most It is easy repacking mode.The present invention is not limited thereto, certainly, in other embodiments, also can by earphone interface its His pin is used as processor UART output end output interfaces.
For the UART output principles of the clearer description electronic installation, further combined with one embodiment of the invention UART Output system is explained.As shown in figure 5, being one embodiment of the invention UART output systems.The system is filled including electronics Put 401, UART output plugs 408 and system debugging aids 412.When UART debugging is carried out to the electronic installation 401, the electronics Device 401 is connected on system debugging aids 412 by the UART output plugs 408.
The electronic installation 401 has processor 402 and earphone interface 407, and the processor 402 has UART output ends 403 With sense terminal 404.The UART output ends 403 are used to export the system operation log information of electronic installation 401.The sense terminal 404 For level in circuit for detecting just.The earphone interface 407 can allow headset plug 409 to insert or remove.Incorporated by reference to Fig. 3 institutes Show, the earphone interface 407 includes L channel end L, R channel end R, earth terminal GND, Mike end MIC and insertion sense terminal DETECT-IN.Wherein insertion sense terminal DETECT-IN is connected to GPIO ends, and the GPIO ends are the sense terminal of the processor 402 404 are directly connected to the earphone interface 407 via RC filter circuits.The processor 402 receives the earphone interface by the GPIO ends The level of 407 insertion sense terminal DETECT-IN, the type of plug in earphone interface 407, and root are inserted according to the electrical level judging Different states are configured to UART output ends 403 according to type of plug.
The UART output plugs 408 are the UART change-over circuits 410 for including headset plug 409 and the coupling of headset plug 409 And the connector 411 coupled with UART change-over circuits 410.I.e. the one end of UART output plugs 408 is headset plug 409, another It is connector 411 to hold, and centre is connected by UART change-over circuits 410.The headset plug 409 has relative with earphone interface 407 L channel wiring, R channel wiring, ground wire and the Mike's line answered.Due to the output of UART output ends 403 is parallel data, should The UART parallel datas can be converted to the recognizable serial data of system debugging aids 412 by UART change-over circuits 410.The connection Device 411 is serial interface plug, and is connected with the serial ports of system debugging aids 412, and data are reached into system debugging aids 412 In.
When the UART information extractions of electronic installation 401 are carried out, the headset plug 409 of the UART output plugs 408 is connect In entering the earphone interface 407, while by the access system commissioning device 412 of connector 411, incorporated by reference to shown in Fig. 3, the UART is defeated Go out plug 408 by an external high level(For example, 1.8V)The L channel end L of earphone interface 407 is connected to, due to earphone interface 407 insert headset plug 409 when, L channel end L with insertion sense terminal DETECT-IN phase short circuits so that insertion detect End DETECT-IN is also high level, and the sense terminal 404 of the processor 402 detects high level, while the processor 402 According to the high level, the UART output ends 403 are configured as output to state.
Simultaneously as the UART output ends 403 of processor 402 are directly connected to the Mike end MIC of earphone interface 407, should After UART output ends 403 are configured as normal output state, the UART output ends 403 can be defeated by the earphone interface 407 Go out system operation log information, and in UART information outputs, Mike end is inapplicable also not interfere with so.The UART Information is transmitted to system debugging aids by after UART change-over circuits, being converted to the recognizable data of system debugging aids 412 412, in order to research and develop or maintenance personal is analyzed debugging.
Multiplexing that the present invention passes through UART output ends and earphone interface, it is to avoid carry out UART information by disassembling whole machine The problem of output, reduces the problem for damaging all parts in electronic installation.Also improve tune of the mobile phone in exploitation or maintenance Examination efficiency.Directly with Mike end be connected UART output ends by the present invention simultaneously, has been carried out most on earphone interface original base Succinct repacking, so as to save the space in electronic installation, is conducive to the Miniaturization Design of electronic installation, reduce product into This.
When electronic installation is normally used, the extraction of electronic installation UART information need not be now carried out, but due to place The UART output ends for managing device are still directly connected to the Mike end MIC of earphone interface, thus certainly will be to the normal of earphone interface Using impacting.The present invention is cleverly configured to high-impedance state by UART output ends, solves UART output ends to Mike The normal interference for using of end MIC.Wherein described high-impedance state means the end infinite, is similar to vacantly, is equal to breaking shape State.
Wherein, when earphone interface is in normal operating condition, including two kinds of situations, it is any that one kind is that earphone interface is not accessed Plug, in floating state(floating mode)When, i.e., earphone interface is in open-circuit condition.Because UART output ends are direct Mike end MIC is connected to, so can not only be had an impact to Mike's communication effect, can also had an impact to the power consumption stream of whole machine, So UART output ends are configured to high-impedance state by needs.So when the processor UART output ends are configured to high-impedance state, should UART output ends not output system running log information;When another situation in earphone interface to have accessed common headphones, this is inserted Enter sense terminal DETECT-IN and L channel end L phase short circuits, because the general resistance of normal earphone is smaller, then the insertion sense terminal DETECT-IN is equal to ground connection, so that insertion sense terminal DETECT-IN is low level(Ground connection), then the processor The UART output ends are configured to by high-impedance state according to the low level for detecting, wherein, described high-impedance state mean the end resistance without It is poor big, it is similar to hanging.The now UART output ends not output system running log information, although UART output ends and Mike end phase Connection, but because UART output ends are configured as high-impedance state, thus UART output ends will not output information, so as to avoid The influence that UART output ends are used earphone interface.When being not inserted into UART output plugs in the earphone interface, the UART is defeated Go out end and high-impedance state be configured to by processor CPU always, so as to avoid the UART output ends it is normal to earphone interface use it is dry Disturb.
As shown in fig. 6, being the UART output intent flow charts of one embodiment of the invention, the method is used for having earphone interface Electronic installation in, the electronic installation has processor and earphone interface, and the processor has UART output ends and sense terminal.Should UART output ends are used to export the electronic apparatus system running log information.The sense terminal be used for circuit for detecting in level just. The earphone interface can allow headset plug to insert or remove.The earphone interface has L channel end, Mike end and insertion detecting End.The UART output ends are coupled to the Mike end, and the electronic installation carries out UART information outputs, the method bag by earphone interface Include:
Whether step S501, detecting earphone interface inserts UART output plugs, wherein described UART output plugs include Headset plug and the UART change-over circuits and the connector with the coupling of UART change-over circuits of headset plug coupling, the connector connect It is connected on system debugging aids.The insertion sense terminal of the earphone interface is connected to GPIO ends, and the GPIO ends are detecing for the processor Survey end and be directly connected to the earphone interface via RC filter circuits.The processor receives the insertion of the earphone interface by the GPIO ends The level of sense terminal, inserts the type of plug in earphone interface, and UART is exported according to type of plug according to the electrical level judging The different state of end configuration.
Step S502, now UART output plugs accessed the earphone interface, the processor by the UART output ends configure It is output state, the UART output end output system running log information;The UART output plugs connect an external high level The L channel end of earphone interface is connected to, because earphone interface is when headset plug is inserted, L channel end is mutually short with insertion sense terminal Connect, so that insertion sense terminal is also high level, the sense terminal of the processor is to detect high level, while the processor root According to the high level, the UART output ends are configured as output to state.Simultaneously as the UART output ends and earphone interface of processor Mike end be directly connected to, after the UART output ends are configured as normal output state, the UART output ends can by should Earphone interface output system running log information, and in UART information outputs, Mike end is inapplicable so also will not Influence.The UART information is transmitted to system by after UART change-over circuits, being converted to the recognizable data of system debugging aids Commissioning device, in order to research and develop or maintenance personal is analyzed debugging.
Step S503, now earphone interface is in floating state or the earphone interface has accessed earphone, and the processor should UART output ends are configured to high-impedance state, the UART output ends not output system running log information.I.e. when electronic installation normally makes Used time, need not now carry out the extraction of electronic installation UART information, but due to processor UART output ends still with ear The Mike end MIC of machine interface is directly connected to, and normal use of earphone interface can be impacted.The present invention is by defeated to UART Go out end and be configured to high-impedance state, solve the interference that UART output ends are normally used Mike end MIC.Wherein, earphone interface is in During normal operating condition, including two kinds of situations, one kind is that earphone interface does not access any plug, during in floating state, i.e. ear Machine interface is in open-circuit condition.Now the UART output ends are configured to high-impedance state by the processor, and the UART output ends are not exported System operation log information;Another situation is in earphone interface when having accessed common headphones, the insertion sense terminal and L channel End phase short circuit, because the general resistance of normal earphone is smaller, then the insertion sense terminal is equal to ground connection, so that the insertion is detectd Survey end is low level(Ground connection), then the UART output ends are configured to high-impedance state by the processor according to the low level for detecting, Wherein, described high-impedance state means the end infinite, is similar to hanging.Now output system does not run day to the UART output ends Will information, although UART output ends are connected with Mike end, but because UART output ends are configured as high-impedance state, thus UART Output end will not output information, so as to avoid the influence that UART output ends are used earphone interface.I.e. in the earphone interface When being not inserted into UART output plugs, the UART output ends are configured to high-impedance state by processor CPU always, so as to avoid the UART The output end interference for using normal to earphone interface.
In sum, the present invention is multiplexed by the Mike end MIC of UART output ends and earphone, so as to reach it is good more just The debugging of profit.Directly the pin is connected with the Mike end of earphone interface by the UART output ends of processor CPU.Without dismounting Whole machine can also be debugged, quick to position and solve problem.And high-impedance state is configured to by by UART output ends, so that without volume It is outer to set up switching control switch to carry out the switching of audio and UEART functions, so that the production cost of electronic product is reduced, and The valuable space in electronic installation inside is saved, electronic device miniaturization growth requirement has been adapted to.
It should be understood that the description for passing through above example, those skilled in the art can be clearly understood that the present invention Can be realized with hardware, software or their combination.
The present invention is been described by by above-mentioned related embodiment, but above-described embodiment is only to implement example of the invention. It must be noted that, the embodiment for having disclosed is not limiting as the scope of the present invention.On the contrary, do not depart from it is of the invention spirit and In the range of the change made and retouching, belong to scope of patent protection of the invention.

Claims (8)

1. a kind of electronic installation, with processor and earphone interface, the processor has for exporting electronic apparatus system fortune The UART output ends and the sense terminal for level height in circuit for detecting of row log information, the earphone interface have L channel End, Mike end and insertion sense terminal, it is characterised in that the UART output ends are coupled to the Mike end, and the sense terminal is coupled to this Insertion sense terminal, wherein, when earphone interface is in floating state, the UART output ends are configured to high-impedance state by the processor, The UART output ends not output system running log information;When earphone accesses the earphone interface, the sense terminal detects this and inserts Enter sense terminal for low level, now the UART output ends are configured to high-impedance state by the processor, and the UART output ends do not export and are System running log information;When UART output plugs access the earphone interface, it is height that the sense terminal detects the insertion sense terminal Level, now the processor just the UART output ends are configured as output to state, the UART output end output system running logs Information.
2. electronic installation as claimed in claim 1, it is characterised in that the UART output plugs include headset plug and earphone The UART change-over circuits of plug coupling and the connector coupled with UART change-over circuits, wherein, the connector is connected to system tune In examination equipment.
3. electronic installation as claimed in claim 2, it is characterised in that when the UART output plugs access earphone interface, should System debugging aids provide high level to the L channel end of the earphone interface.
4. electronic installation as claimed in claim 2, it is characterised in that described connector is serial interface plug, and adjusted with system The serial ports of examination equipment is connected.
5. electronic installation as claimed in claim 1, it is characterised in that RC filters are provided between the sense terminal and the insertion sense terminal Wave circuit.
6. a kind of UART output systems, including electronic installation, UART output plugs and system debugging aids, the electronic installation have Processor, the processor has for exporting the UART output ends of the electronic apparatus system running log information and for detecting electricity The sense terminal of level height in road, the system debugging aids are connected to the electronic installation by the UART output plugs, and according to The system operation log information of UART output ends output is debugged to the electronic installation, and the electronic installation also connects with earphone Mouthful, the earphone interface has L channel end, Mike end and insertion sense terminal, it is characterised in that the UART output ends are coupled to this Mike end, the sense terminal is coupled to the insertion sense terminal, wherein, when earphone interface is in floating state, the processor should UART output ends are configured to high-impedance state, the UART output ends not output system running log information;Connect when earphone accesses the earphone During mouth, the sense terminal detects the insertion sense terminal for low level, and now the UART output ends are configured to high resistant by the processor State, the UART output ends not output system running log information;When UART output plugs access the earphone interface, the sense terminal The insertion sense terminal is detected for high level, now the UART output ends are just configured as output to state by the processor, the UART Output end output system running log information.
7. UART output systems as claimed in claim 6, it is characterised in that the UART output plugs include headset plug and The UART change-over circuits of headset plug coupling and the connector coupled with UART change-over circuits, wherein, the connector is connected to and is On system commissioning device.
8. a kind of UART output intents, in the electronic installation with earphone interface, the electronic installation is comprising having UART defeated Go out the processor of end and sense terminal, the earphone interface has L channel, Mike end and insertion sense terminal, it is characterised in that should UART output ends are coupled to the Mike end, and the sense terminal is coupled to the insertion sense terminal, and the electronic installation is entered by earphone interface Row UART information outputs, the method includes:
The sense terminal detects whether the insertion sense terminal is high level, is used to judge whether the earphone interface inserts UART outputs and insert Head, wherein described UART output plugs include the UART change-over circuits that headset plug and the headset plug couple and with this The connector of UART change-over circuits coupling, the connector is connected on system debugging aids;
If it is, now the UART output plugs have accessed the earphone interface, be configured to for the UART output ends defeated by the processor Do well, the UART output end output system running log information;If it has not, now the earphone interface is in floating state or is somebody's turn to do Earphone interface has accessed earphone, and the UART output ends are configured to high-impedance state by the processor, the UART output ends not output system Running log information.
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 CN103888873A (en) 2014-06-25
CN103888873B true 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)

Families Citing this family (7)

* 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
CN104731734B (en) * 2015-03-17 2018-08-03 青岛海信宽带多媒体技术有限公司 A kind of output method and device of terminal signaling
CN105868140A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 A 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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN202267960U (en) * 2011-09-13 2012-06-06 深圳市创智成科技股份有限公司 Debugging device for universal asynchronous receiver/transmitter
CN103078224A (en) * 2013-01-07 2013-05-01 华为终端有限公司 Connecting line, control method, control circuit and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100787974B1 (en) * 2006-11-16 2007-12-24 삼성전자주식회사 Portable device and multi-center processing unit testing system and testing method using the same
CN102469404A (en) * 2010-11-10 2012-05-23 深圳市创智成科技股份有限公司 Debugging method by utilizing earphone audio interface
CN102082846B (en) * 2010-12-02 2014-01-15 惠州Tcl移动通信有限公司 Terminal equipment with plurality of externally arranged shared interfaces
CN102724367B (en) * 2012-06-27 2014-09-10 喻应东 Mobile phone extension system, signal transfer equipment and mobile phone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN202267960U (en) * 2011-09-13 2012-06-06 深圳市创智成科技股份有限公司 Debugging device for universal asynchronous receiver/transmitter
CN103078224A (en) * 2013-01-07 2013-05-01 华为终端有限公司 Connecting line, control method, control circuit and electronic equipment

Also Published As

Publication number Publication date
CN103888873A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN103888873B (en) Electronic installation, UART output systems and method
EP2597844B1 (en) Method and device for sharing micro-usb interface between earphone and usb
CN101931674B (en) Method and device for sharing Micro-USB interface
US10198386B2 (en) Connectors for audio data transfer
CN104023294B (en) Interface duplex device and pinboard in terminal
JP4406612B2 (en) General-purpose audio jacks and plugs
CN101951421B (en) Expansion use method for cell phone earphone interface
CN102082846B (en) Terminal equipment with plurality of externally arranged shared interfaces
CN203167074U (en) Mobile terminal configured with reuse interface
KR20130133897A (en) Mobile device auto detection apparatus and method
CN101426038A (en) Portable electronic device and accessory identification method
CN104683916B (en) Circuit and method for detecting pins of microphone
CN201066840Y (en) Mobile phone with earphone interface multiplexing circuit
CN103078224A (en) Connecting line, control method, control circuit and electronic equipment
CN201919041U (en) Terminal equipment with plurality of peripheral sharing interfaces
CN102469404A (en) Debugging method by utilizing earphone audio interface
CN104459376B (en) A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit
CN204244455U (en) Earphone
CN104581527B (en) A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit
CN103312842B (en) For the terminal of annex detection and control, annex and system
CN105977740B (en) A kind of earphone joint
CN105049584B (en) Attachment management and data communication are carried out using audio port
TWI394045B (en) Portable electronic device and method of identifying its accessories
CN103002382A (en) Headset plug transverter
CN105979422A (en) Mobile terminal, and earphone base control system and method thereof

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