CN107613126A - UART and USB multiplex circuits and mobile terminal - Google Patents

UART and USB multiplex circuits and mobile terminal Download PDF

Info

Publication number
CN107613126A
CN107613126A CN201710879718.6A CN201710879718A CN107613126A CN 107613126 A CN107613126 A CN 107613126A CN 201710879718 A CN201710879718 A CN 201710879718A CN 107613126 A CN107613126 A CN 107613126A
Authority
CN
China
Prior art keywords
usb
uart
connection
chip
switching switch
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
CN201710879718.6A
Other languages
Chinese (zh)
Other versions
CN107613126B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710879718.6A priority Critical patent/CN107613126B/en
Publication of CN107613126A publication Critical patent/CN107613126A/en
Application granted granted Critical
Publication of CN107613126B publication Critical patent/CN107613126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of UART and USB multiplex circuits and mobile terminal, the UART includes USB and UART multiplex interfaces with USB multiplex circuits, power management chip, switching switch, process chip and delay circuit, the first end and control terminal of power output end connection delay circuit, the second end connection power supply wire pin of delay circuit, test side connecting detection pin, correction data wire pin connection first choice end, the second selection of negative data wire pin connection end, the first correction data end positive connection ends of connection UART, first negative data end connection UART bears connection end, the second correction data end positive connection ends of connection USB, second negative data end connection USB bears connection end.The embodiment of the present invention can ensure UART interface switch to USB interface during USB device being capable of normal work.

Description

UART and USB multiplex circuits and mobile terminal
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of UART and USB multiplex circuits and mobile terminal.
Background technology
With the development of the mobile terminals such as smart mobile phone, the hardware circuit and Software for Design of mobile terminal are also more and more multiple Miscellaneous, for effective detection software bug information, most effective way is exactly to be multiplexed USB (Universal Serial Bus, USB) interface progress daily record (log) printing.
All can be by universal asynchronous receiving-transmitting transmitter (Universal Asynchronous in current mainstream hardware platform Receiver/Transmitter, UART) interface and USB interface be multiplexed, for use in log printings are carried out.When UART with USB multiplex interfaces connect when inserting USB device, it is necessary to which UART and USB multiplex interfaces are switched into USB from the UART interface of acquiescence Mouthful, because UART interface and USB interface are compatible bad with USB device in the handover, cause asking for USB device operation irregularity Topic happens occasionally.
The content of the invention
The embodiments of the invention provide a kind of UART and USB multiplex circuits and mobile terminal, can avoid UART interface The problem of causing USB device operation irregularity during switching to USB interface.
First aspect of the embodiment of the present invention provides a kind of UART and USB multiplex circuits, including general-purpose serial bus USB with leading to It is described with asynchronous receiving-transmitting transmitter UART multiplex interfaces, power management chip, switching switch, process chip and delay circuit USB includes power supply wire pin, correction data wire pin, negative data wire pin, detection pin and grounding lead with UART multiplex interfaces Pin, the switching switch include first choice end, the second selection end, the first correction data end, the second correction data end, the first negative data End, the second negative data end and control terminal, the process chip includes the positive connection ends of UART, UART bears connection end, USB is just connected End, USB bear connection end, and the power management chip includes power output end and test side;
The power output end connects the first end of the delay circuit and the control terminal, and the of the delay circuit Two ends connect the power supply wire pin, and the test side connects the detection pin, the correction data wire pin connection described the One selection end, negative data wire pin connection the second selection end, the first correction data end connects the UART and just connected End is connect, the first negative data end connects the UART and bears connection end, and the second correction data end connects the USB and just connected End, the second negative data end connect the USB and bear connection end;
When the test side of the power management chip detects that the detection of the USB and UART multiplex interfaces is drawn Pin from high level be changed into ground level when, the power management chip controls the power output end output high-level control signal extremely The control terminal of the switching switch and the first end of the delay circuit, the delay circuit are used for the high level Control signal delay exports the power supply wire pin to the USB and UART multiplex interfaces.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, including the UART of first aspect of the embodiment of the present invention with USB multiplex circuits.
In the embodiment of the present invention, by adding delay circuit so that switching switch first carries out path switching, then to USB Initialized with the USB device of UART multiplex interfaces insertion, can avoid the occurrence of switching switch switching causes USB to set not in time It is standby initialize it is unsuccessful, and then the problem of cause USB device operation irregularity.Implement the embodiment of the present invention, it is ensured that UART connects USB device being capable of normal work during mouth switches to USB interface.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of UART disclosed in the embodiment of the present invention and USB multiplex circuits structural representation;
Fig. 2 is another UART disclosed in the embodiment of the present invention and USB multiplex circuits structural representation;
Fig. 3 is another UART disclosed in the embodiment of the present invention and USB multiplex circuits structural representation;
Fig. 4 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing etc. are to be used to distinguish Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that It is to cover non-exclusive include.Such as contain process, system, product or the equipment of series of steps or unit and do not limit In listed the step of or unit, but the step of alternatively also include not listing or unit, or alternatively also include for Other intrinsic steps of these processes, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
In addition, the mobile terminal involved by the embodiment of the present invention can include various holding with radio communication function Equipment, mobile unit, wearable device, computing device or other processing equipments for being connected to radio modem, and respectively The user equipment (User Equipment, UE) of kind form, mobile station (Mobile Station, MS), terminal device (terminal device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.
The embodiment of the present invention is described in detail below.
Referring to Fig. 1, Fig. 1 is a kind of UART disclosed in the embodiment of the present invention and USB multiplex circuits structural representation, such as Shown in Fig. 1, the UART and USB multiplex circuits include general-purpose serial bus USB and connect with universal asynchronous receiving-transmitting transmitter UART multiplexings Mouth 11, power management chip 12, switching switch 13, process chip 14 and delay circuit 15, USB and UART multiplex interfaces 11 wrap Power supply wire pin 111, correction data wire pin 112, negative data wire pin 113, detection pin 114 and grounding pin 115 are included, is cut Changing switch 13 includes the selection end 132 of first choice end 131, second, the first correction data end 133, the second correction data end 134, first Negative data end 135, the second negative data end 136 and control terminal 137, process chip 14 includes the positive connection ends 141 of UART, UART is born Connection end 142, the positive connection ends 143 of USB, USB bear connection end 144, and power management chip 12 includes power output end 121 and inspection Survey end 122;
The first end 151 and switching switch 13 of the connection delay circuit 15 of power output end 121 of power management chip 12 Control terminal 137, the power supply wire pin 111 of the connection of the second end 152 USB and the UART multiplex interfaces 11 of delay circuit 15, power supply The test side 122 of managing chip 12 connects USB and UART multiplex interfaces 11 detection pin 114, USB and UART multiplex interfaces 11 The pin of correction data line 112 connection switching switch 13 first choice end 131, the negative data line of USB and UART multiplex interfaces 11 Second selection end 132 of 113 pins connection switching switch 13, the first correction data end 133 connection process chip of switching switch 13 The 14 positive connection ends 141 of UART, the UART of the first negative data end 134 connection process chip 14 of switching switch 13 bear connection end 142, the positive connection ends 143 of USB of the second correction data end 135 connection process chip 14 of switching switch 13, the of switching switch 13 The USB of two negative data ends 136 connection process chip 14 bears connection end 144;
When the test side 122 of power management chip 12 detects the detection pin 114 of USB and UART multiplex interfaces 11 from height When level is changed into ground level, power management chip 12 control power output end 121 export high-level control signal to switch switch 13 control terminal 137 and the first end 151 of delay circuit 15, delay circuit 15 are used to postpone to export by high-level control signal To USB and the power supply wire pin 111 of UART multiplex interfaces 11.
In the embodiment of the present invention, delay circuit 15 can be RC retardation ratio circuit or delay chip.Using delay core Piece, which can be realized, to be accurately delayed, and the duration for needing to be delayed can be set in delay chip.It is general in the embodiment of the present invention Asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/Transmitter, UART) interface and general string Row bus (Universal Serial Bus, USB) multiplex interface can connect USB device, can also connect UART equipment. UART equipment can be computer, single-chip microcomputer etc., after the process chip 14 in mobile terminal is connected with computer by UART interface, Computer can read software program to process chip 14 by UART interface and the software program be debugged, Ke Yiyou Effect detects the bug information in above-mentioned software program.USB device can be that USB flash disk, mobile hard disk etc. are written and read by USB interface Storage type equipment.
When USB is connected USB device with UART multiplex interfaces 11, the first choice end 131 and first of switching switch 13 is just Data terminal 133 is connected, and the second selection end 132 is connected with the first negative data end 134, and process chip 14 and USB and UART multiplexings connect USB paths are established between mouth 11, USB device can pass through the USB paths of foundation and process chip carries out usb communication transmission.
When USB is connected UART equipment with UART multiplex interfaces 11, the first choice end 131 and second of switching switch 13 is just Data terminal 135 is connected, and the second selection end 132 is connected with the second negative data end 136, and process chip 14 and USB and UART multiplexings connect Establish UART paths between mouthfuls 11, UART equipment can be communicated biography by the UART paths of foundation with process chip progress UART It is defeated.
Because USB with UART multiplex interfaces can only be connected a kind of equipment simultaneously, and in default situations, switching switch 13 The connection end 141 positive with the UART in process chip 14 of first choice end 131 be connected, switching switch 13 second selection end 132 Connection end 142 is born with the UART in process chip 14 to be connected, namely switching switch 13 is the UART paths of selection under default situations. After UART path settings, generally can all there are 1.8 volts or 2.3 volts or 2.8 on the positive connection ends 141 of UART in process chip 14 The port voltage of volt.If when USB and UART multiplex interfaces 11 insert USB device, because delay be present in switching switch 13, and USB paths are not immediately switched to, so the voltage on the positive connection ends 141 of UART can be applied on USB device.
If the embodiment of the present invention does not use delay circuit 15, when USB device insertion USB is with UART multiplex interfaces 11, USB is connected with the detection pin 114 of UART multiplex interfaces 11 with ground terminal, and power management chip 12 can export Vbus voltages can be direct To the control terminal 137 of the power supply wire pin 111 and switching switch 13 of USB and UART multiplex interfaces 11, when power supply wire pin 111 connects When receiving the Vbus voltages, USB device can proceed by initialization, and switch switch 13 and be delayed due to existing, not immediately USB paths are switched to, so the voltage on the positive connection ends 141 of UART can be applied on USB device, so as to cause USB device Initialization failure, and then cause USB device operation irregularity.
The embodiment of the present invention is by increasing delay circuit 15, when USB device insertion USB is with UART multiplex interfaces 11, USB It is connected with the detection pin 114 of UART multiplex interfaces 11 with ground terminal, power management chip 12, which can export Vbus voltages, can arrive delay The first end of circuit 15 and the control terminal 137 of switching switch 13, now USB device can proceed by initialization, and switch switch 13 are delayed due to existing, and are not immediately switched to USB paths, equally, the Vbus voltages that delay circuit 15 will also receive Delay input makes USB device delay initialization, to ensure that USB is set to USB and the power supply wire pin 111 of UART multiplex interfaces 11 Switching switch 13 has been switched to USB paths during standby initialization, prevents the voltage on the positive connection ends 141 of UART to be applied to USB In equipment, it is ensured that USB device initializes successfully, ensures USB device operation irregularity.
Optionally, the first choice end 131 that high-level control signal is used to control switching switch 13 from the first of connection just Data terminal 133 switches to the second correction data end 135, and for controlling the second of switching switch 13 to select end 132 from connection First negative data end 134 switches to the second negative data end 136.
In the embodiment of the present invention, high-level control signal can be Vbus voltage signals, and Vbus voltage signals can be 5V Voltage signal.High-level control signal is used to control switching switch 13 to switch to USB paths from UART paths.Switching switch 13 Switch to USB paths to switching switch 13 from high-level control signal is received from UART paths and certain delay often be present.
Optionally, when the test side 122 of power management chip 12 detects USB and UART multiplex interfaces 11 detection pin 14 from ground level be changed into high level when, power management chip 12 controls power output end 121 to export low level control signal to cutting The control terminal 137 of switch 13 and the first end 151 of delay circuit 15 are changed, delay circuit 15 is used to prolong low level control signal The power supply wire pin 111 to USB and UART multiplex interfaces 11 is exported late.
In the embodiment of the present invention, when the test side 122 of power management chip 12 detects USB and UART multiplex interfaces 11 Detection pin 14 from ground level be changed into high level when, show that the equipment that USB and UART multiplex interfaces 11 access is UART equipment.
Optionally, low level control signal is used to control the first choice end for switching switch from the second correction data end of connection The first correction data end is switched to, and for controlling the second selection end of switching switch to be switched to from the second negative data end of connection First negative data end.
In the embodiment of the present invention, low level control signal can be the signal that voltage is 0, and low level control signal is used to control System switching switch 13 switches to UART paths from USB paths.Switching switch 13 is opened from low level control signal is received to switching Pass 13 switches to UART paths from USB paths and certain delay often be present.
Implement the kind UART and USB multiplex circuits shown in Fig. 1, can avoid the occurrence of switching switch switching causes not in time USB device initialization is unsuccessful, and then the problem of cause USB device operation irregularity, ensures that UART interface switches to USB interface During USB device being capable of normal work.
Referring to Fig. 2, Fig. 2 is another UART disclosed in the embodiment of the present invention and USB multiplex circuits structural representation, Further optimization obtains Fig. 2 on the basis of Fig. 1, as shown in Fig. 2 on Fig. 1 basis, power management chip 12 is also Including input 123, process chip 14 also includes output end 145, and the input 123 of power management chip 12 connects process chip 14 output end 145.
Process chip 14 is used for when the USB device for detecting the insertion of process chip 14 and USB and UART multiplex interfaces 11 is held When hand fails, failure signal is shaken hands to the input 123 of power management chip 12, power management core by the output of output end 145 Piece 12 is used for according to failure signal output shutoff signal of shaking hands to the control terminal 137 for switching switch 13, and shutoff signal is used to switch Switch 13 disconnects USB device and process chip 14.
In the embodiment of the present invention, when the USB device for detecting the insertion of process chip 14 and USB and UART multiplex interfaces 11 is held When hand fails, power management chip 12 exports shutoff signal to the control terminal 137 for switching switch 13, and the shutoff signal is used for will USB device disconnects with process chip 14, specifically, switching switchs 13 by the correction data end 133 of first choice end 131 and first All disconnected with the second correction data end 135, by the second selection negative data end 134 of end 132 and first and the second negative data end 136 All disconnect, that is, now first choice end 131 and second selects end 132 to be not connected with any port, in vacant state. When process chip 14 and USB device shake hands failure, it is likely to which switching switch switching causes USB device initialization to be lost not in time Lose, now switching switch 13 directly disconnects USB device and process chip 14, prevents USB device from initializing mistake again Lose, ensure that USB device can initialize success again.After USB device initializes successfully, power management chip 12 exports reconnection Signal is to the control terminal 137 for switching switch 13, and the reconnection signal is used to reconnect USB device and process chip 14, specifically , first choice end 131 is connected by switching switch 13 with the second correction data end 135, and the negative data of end 132 and second is selected by second The connection of end 136.The embodiment of the present invention can first pass through switching switch 13 by USB device and place when USB device initializes failure Reason chip 14 is disconnected, and USB device and process chip 14 are established by switching switch 13 again after USB device initializes successfully Between USB paths, ensure UART interface switch to USB interface during USB device being capable of normal work.
Optionally, process chip 14 is used for as the USB for detecting process chip 14 and USB and the insertion of UART multiplex interfaces 11 Equipment shake hands failure when, the positive connection ends 141 of UART and UART are born into connection end 142 and are pulled to ground level.
In the embodiment of the present invention, the positive connection ends 141 of UART and UART are born connection end 142 and are pulled to ground electricity by process chip 14 Flat, process chip 14 closes UART functions, is allowed to power down, while carries out upper electricity to USB device again and complete initialization, due to closing After closing UART functions, the positive connection ends 141 of UART and UART bear connection end 142 and are pulled to ground level, in 0 voltage status, because The positive connection ends 141 of UART of this process chip 14 and UART bear connection end and the initialization of USB device will not be interfered, when The USB paths that switching switch 13 is established between USB device and process chip 14, and USB device is shaken hands into process chip 14 After work(, UART functions can be restarted, enable the positive connection ends 141 of UART of process chip 14 and the negative connections of UART normal Work.
Optionally, the delay duration of delay circuit is more than the switching delay duration of switching switch.
In the embodiment of the present invention, the delay duration of delay circuit 15 is set to be more than the switching delay duration of switching switch 13, It can ensure that switching switch 13 first switches, then USB device is initialized again, and it is too late can to avoid the occurrence of switching switch switching When cause USB device initialization unsuccessful, and then the problem of cause USB device operation irregularity, ensure that UART interface switches to USB USB device being capable of normal work during interface.
Optionally, process chip includes modem chip and application processor chip.
Wherein, modem chip, also referred to as Modem, also referred to as application processor chip, AP (Application Processor)。
Referring to Fig. 3, Fig. 3 is another UART disclosed in the embodiment of the present invention and USB multiplex circuits structural representation, Further optimization obtains Fig. 3 on the basis of Fig. 1 or Fig. 2, as shown in figure 3, the delay circuit in Fig. 1 or Fig. 2 can be RC circuits.Delay circuit 15 includes first resistor R1 and the first electric capacity C1, first resistor R1 first end connection power management core The power output end 121 of piece 12, first resistor R1 the second end connects the first electric capacity C1 first end and USB and UART is multiplexed The power supply wire pin 111 of interface 11, the first electric capacity C1 the second end ground connection.
Wherein, when power management chip 12 power output end 121 export high level signal for Vbus voltages (for example, Vbus voltages could be arranged to 5V) when, Vbus voltages are not the power supply wire pin for being applied to USB and UART multiplex interfaces 11 moment On 111, due to the first electric capacity C1 presence, the voltage at the first electric capacity C1 both ends will not undergo mutation, the first electric capacity C1 both ends Voltage can from 0 gradually rise to Vbus voltages when, USB and UART multiplex interfaces 11 start to carry out the USB device of insertion initial Change.RC circuit structures are simple, easily manufactured, and can play preferable carryover effects.
The embodiment of the present invention additionally provides a kind of mobile terminal, as shown in figure 4, for convenience of description, illustrate only and this The related part of inventive embodiments, particular technique details do not disclose, refer to the circuit part of the embodiment of the present invention.The movement Terminal can be to include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, so that mobile terminal is mobile phone as an example:
Referring to Fig. 4, Fig. 4 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention, with mobile phone in Fig. 4 Exemplified by illustrate.With reference to figure 4, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input Unit 930, display unit 940, sensor 950, voicefrequency circuit 960, Wireless Fidelity (Wireless Fidelity, WiFi) mould The parts such as block 970, processor 980 and power supply 990.It will be understood by those skilled in the art that the handset structure shown in Fig. 4 The restriction to mobile phone is not formed, can include than illustrating more or less parts, either combine some parts or difference Part arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 4:
RF circuits 910 can be used for the reception and transmission of information.Generally, RF circuits 910 include but is not limited to antenna, at least one Individual amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is more Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storage software program and module, and processor 980 is stored in memory 920 by operation Software program and module, so as to perform the various function application of mobile phone and data processing.Memory 920 can mainly include Storing program area and storage data field, wherein, storing program area can storage program area, the application journey needed at least one function Sequence etc.;Storage data field can store uses created data etc. according to mobile phone.In addition, memory 920 can be included at a high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input block 930 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with And the key signals input that function control is relevant.Specifically, input block 930 may include fingerprint recognition module 931 and other are defeated Enter equipment 932.Fingerprint recognition module 931, user can be gathered in finger print data thereon.Except fingerprint recognition module 931, input Unit 930 can also include other input equipments 932.Specifically, other input equipments 932 can include but is not limited to touch-control One kind in screen, physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. It is or a variety of.
Display unit 940 can be used for display by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display screen 941, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Display screen 941.Although in Fig. 4, fingerprint recognition module 931 and display screen 941 are the parts independent as two to realize mobile phone Input and input function, it is but in some embodiments it is possible to fingerprint recognition module 931 and display screen 941 is integrated and real The input of existing mobile phone and playing function.
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display screen 941, proximity transducer can when mobile phone is moved in one's ear, close display screen 941 and/or Backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions the big of (generally three axles) acceleration It is small, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (such as horizontal/vertical screen switching, phase Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data received conversion can be transferred to loudspeaker 961, sound is converted to by loudspeaker 961 by road 960 Signal plays;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 Voice data is changed to, then after voice data playback process device 980 is handled, through RF circuits 910 to be sent to such as another mobile phone, Or voice data is played to memory 920 further to handle.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 970 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 4 is shown WiFi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 980 is the control centre of mobile phone, utilizes various interfaces (for example, UART interface and USB interface) and circuit The various pieces of whole mobile phone are connected, by running or performing the software program and/or module that are stored in memory 920, with And the data being stored in memory 920 are called, and the various functions and processing data of mobile phone are performed, it is overall so as to be carried out to mobile phone Monitoring.Optionally, processor 980 may include one or more processing units;Preferably, processor 980 can be integrated using processing Device (AP) and modem processor (Modem), wherein, application processor mainly handles operating system, user interface and application Program etc., modem processor mainly handles radio communication.It is understood that above-mentioned modem processor can not also It is integrated into processor 980.
Mobile phone also includes the power supply 990 (such as battery) to all parts power supply, it is preferred that power supply can pass through power supply pipe Reason system and processor 980 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Mobile phone can also include camera 9100, and camera 9100 is used for shooting image and video, and by the image of shooting Handled with transmission of video to processor 980.
Mobile phone can be will not be repeated here with bluetooth module etc..
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of the unit, it is only one kind Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
The embodiment of the present invention is described in detail above, specific case used herein to the principle of the present invention and Embodiment is set forth, and the explanation of above example is only intended to help the core concept for understanding the present invention;Meanwhile for Those of ordinary skill in the art, according to the thought of the present invention, change is had in specific embodiments and applications Place, in summary, this specification content should not be construed as limiting the invention.

Claims (10)

1. a kind of UART and USB multiplex circuits, it is characterised in that transmitted including general-purpose serial bus USB and universal asynchronous receiving-transmitting Device UART multiplex interfaces, power management chip, switching switch, process chip and delay circuit, the USB and UART multiplexings connect Mouth includes power supply wire pin, correction data wire pin, negative data wire pin, detection pin and grounding pin, the switching switch Including first choice end, the second selection end, the first correction data end, the second correction data end, the first negative data end, the second negative data end And control terminal, the process chip include the positive connection ends of UART, the negative connection ends of UART, the positive connection ends of USB, the negative connection ends of USB, The power management chip includes power output end and test side;
The power output end connects the first end of the delay circuit and the control terminal, the second end of the delay circuit The power supply wire pin is connected, the test side connects the detection pin, correction data wire pin connection first choosing End, negative data wire pin connection the second selection end are selected, the first correction data end connects the positive connection ends of UART, The first negative data end connects the UART and bears connection end, and the second correction data end connects the positive connection ends of USB, described Second negative data end connects the USB and bears connection end;
When the test side of the power management chip detect the detection pin of the USB and UART multiplex interfaces from When high level is changed into ground level, the power management chip controls the power output end to export high-level control signal to described Switch the control terminal of switch and the first end of the delay circuit, the delay circuit is used to control the high level Signal delay exports the power supply wire pin to the USB and UART multiplex interfaces.
2. circuit according to claim 1, it is characterised in that
The first choice end that the high-level control signal is used to control the switching switch from described the first of connection just Data terminal switches to the second correction data end, and for controlling described the second of the switching switch to select end from connection The first negative data end switches to the second negative data end.
3. circuit according to claim 1, it is characterised in that
When the test side of the power management chip detect the detection pin of the USB and UART multiplex interfaces from When ground level is changed into high level, the power management chip controls the power output end to export low level control signal to described Switch the control terminal of switch and the first end of the delay circuit, the delay circuit is used for the low level control Signal delay exports the power supply wire pin to the USB and UART multiplex interfaces.
4. circuit according to claim 3, it is characterised in that
The first choice end that the low level control signal is used to control the switching switch from described the second of connection just Data terminal switches to the first correction data end, and for controlling described the second of the switching switch to select end from connection The second negative data end switches to the first negative data end.
5. according to the circuit described in claim any one of 1-4, it is characterised in that the power management chip also includes input End, the process chip also include output end, and the input connects the output end,
The process chip is used for when the USB device for detecting the process chip and the USB and the insertion of UART multiplex interfaces Shake hands failure when, failure signal is shaken hands to the input of the power management chip, the power supply by output end output Managing chip is used to shake hands failure signal output shutoff signal according to the control terminal of the switching switch, described to cut Break signal is used for the switching switch and disconnects the USB device and the process chip.
6. according to the circuit described in claim any one of 1-4, it is characterised in that
The process chip is used for when the USB device for detecting the process chip and the USB and the insertion of UART multiplex interfaces Shake hands failure when, the positive connection ends of the UART and the UART are born into connection end and are pulled to ground level.
7. circuit according to claim 1, it is characterised in that the delay duration of the delay circuit is more than the switching and opened The switching delay duration of pass.
8. circuit according to claim 1, it is characterised in that the process chip includes modem chip and application Processor chips.
9. according to the circuit described in claim any one of 1-8, it is characterised in that the delay circuit includes first resistor and the One electric capacity, the first end of the first resistor connect the power output end, the second end connection of the first resistor described the The first end of one electric capacity and the power supply wire pin, the second end ground connection of first electric capacity.
10. a kind of mobile terminal, it is characterised in that the mobile terminal includes the circuit as described in claim any one of 1-9.
CN201710879718.6A 2017-09-26 2017-09-26 UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal Active CN107613126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710879718.6A CN107613126B (en) 2017-09-26 2017-09-26 UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710879718.6A CN107613126B (en) 2017-09-26 2017-09-26 UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal

Publications (2)

Publication Number Publication Date
CN107613126A true CN107613126A (en) 2018-01-19
CN107613126B CN107613126B (en) 2020-03-10

Family

ID=61058286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710879718.6A Active CN107613126B (en) 2017-09-26 2017-09-26 UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal

Country Status (1)

Country Link
CN (1) CN107613126B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086233A (en) * 2018-06-30 2018-12-25 惠州华阳通用电子有限公司 A kind of communication type automatic identification and switching device and method
CN109902052A (en) * 2019-01-22 2019-06-18 苏州佳世达电通有限公司 Can adaptive switched data channel USB switching device and display
CN110442541A (en) * 2019-09-09 2019-11-12 Oppo(重庆)智能科技有限公司 Terminal device and USB interface-based data transmission method
CN112148543A (en) * 2020-10-10 2020-12-29 重庆蓝岸通讯技术有限公司 Data transmission line and method based on fault portable terminal
CN112312446A (en) * 2020-10-29 2021-02-02 努比亚技术有限公司 Price tag base station debugging circuit and price tag base station
US11238002B1 (en) 2021-04-01 2022-02-01 Motorola Solutions, Inc. Accessory interface for a portable communication device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020080186A (en) * 2001-04-12 2002-10-23 엘지전자 주식회사 Sharing interface apparatus for serial and usb port of mobile communication terminal
KR20090007892A (en) * 2007-07-16 2009-01-21 주식회사 현대오토넷 An av system and a control method having usb/uart common connector
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN102724339A (en) * 2012-05-29 2012-10-10 惠州Tcl移动通信有限公司 UART serial port and USB interface shared circuit and mobile phone
CN103853689A (en) * 2014-02-17 2014-06-11 上海大学 Device and method of automatic switchover of USB (Universal Serial Bus) and four-line serial port UART (Universal Asynchronous Receiver Transmitter)
CN104023294A (en) * 2014-05-30 2014-09-03 广东欧珀移动通信有限公司 Interface multiplexing apparatus in terminal, and adaptor panel
CN104917880A (en) * 2015-04-28 2015-09-16 广东欧珀移动通信有限公司 Mobile terminal and control method thereof
CN106301342A (en) * 2016-08-09 2017-01-04 广东欧珀移动通信有限公司 Interface circuit and terminal unit

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020080186A (en) * 2001-04-12 2002-10-23 엘지전자 주식회사 Sharing interface apparatus for serial and usb port of mobile communication terminal
KR20090007892A (en) * 2007-07-16 2009-01-21 주식회사 현대오토넷 An av system and a control method having usb/uart common connector
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN102724339A (en) * 2012-05-29 2012-10-10 惠州Tcl移动通信有限公司 UART serial port and USB interface shared circuit and mobile phone
CN103853689A (en) * 2014-02-17 2014-06-11 上海大学 Device and method of automatic switchover of USB (Universal Serial Bus) and four-line serial port UART (Universal Asynchronous Receiver Transmitter)
CN104023294A (en) * 2014-05-30 2014-09-03 广东欧珀移动通信有限公司 Interface multiplexing apparatus in terminal, and adaptor panel
CN104917880A (en) * 2015-04-28 2015-09-16 广东欧珀移动通信有限公司 Mobile terminal and control method thereof
CN106301342A (en) * 2016-08-09 2017-01-04 广东欧珀移动通信有限公司 Interface circuit and terminal unit

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086233A (en) * 2018-06-30 2018-12-25 惠州华阳通用电子有限公司 A kind of communication type automatic identification and switching device and method
CN109086233B (en) * 2018-06-30 2020-12-08 惠州华阳通用电子有限公司 Communication type automatic identification and switching device and method
CN109902052A (en) * 2019-01-22 2019-06-18 苏州佳世达电通有限公司 Can adaptive switched data channel USB switching device and display
CN110442541A (en) * 2019-09-09 2019-11-12 Oppo(重庆)智能科技有限公司 Terminal device and USB interface-based data transmission method
CN112148543A (en) * 2020-10-10 2020-12-29 重庆蓝岸通讯技术有限公司 Data transmission line and method based on fault portable terminal
CN112312446A (en) * 2020-10-29 2021-02-02 努比亚技术有限公司 Price tag base station debugging circuit and price tag base station
US11238002B1 (en) 2021-04-01 2022-02-01 Motorola Solutions, Inc. Accessory interface for a portable communication device

Also Published As

Publication number Publication date
CN107613126B (en) 2020-03-10

Similar Documents

Publication Publication Date Title
CN107613126A (en) UART and USB multiplex circuits and mobile terminal
CN107635069B (en) UART and USB multiplex circuit and mobile terminal
CN107678989A (en) UART and USB multiplex circuits and mobile terminal
CN106502826B (en) Data backup and transmission method and mobile terminal
CN106484326B (en) A kind of data transmission processing method and mobile terminal
CN108415865A (en) Interface circuit and electronic device
CN106453511A (en) Data backup method and data backup device
CN104602100A (en) Method and device for recording video and audio in applications
CN104850406A (en) Page switching method and device
CN108601201B (en) Flexible circuit board and electronic device
CN106170034A (en) A kind of sound effect treatment method and mobile terminal
CN109150221A (en) A kind of wearable device master-slave switching method and Related product
CN108600887A (en) Method of toch control based on wireless headset and Related product
CN107565650A (en) Design of Compatibility method and circuit
KR20110100014A (en) Usb dongle device and operation method thereof, dongle expanded device connected the usb dongle device
CN105611446B (en) Self-shooting bar recognition methods, device and mobile terminal
CN108873759B (en) Circuit, circuit protection method and electronic equipment
CN108920390A (en) insertion detection circuit, insertion detection method and electronic device
CN108834013A (en) A kind of wearable device electric quantity balancing method and Related product
CN108882084A (en) A kind of wearable device electric quantity balancing method and Related product
CN108650404A (en) Port start-up circuit, device and mobile terminal
CN108411310A (en) Interface circuit and electronic device
CN105321139A (en) Picture processing method and device
CN107608776A (en) Facial information method for previewing and Related product
CN107645151A (en) A kind of current foldback circuit, control method and device, terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant