CN107635069B - UART and USB multiplex circuit and mobile terminal - Google Patents

UART and USB multiplex circuit and mobile terminal Download PDF

Info

Publication number
CN107635069B
CN107635069B CN201710888732.2A CN201710888732A CN107635069B CN 107635069 B CN107635069 B CN 107635069B CN 201710888732 A CN201710888732 A CN 201710888732A CN 107635069 B CN107635069 B CN 107635069B
Authority
CN
China
Prior art keywords
uart
usb
negative
pin
connecting pin
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.)
Active
Application number
CN201710888732.2A
Other languages
Chinese (zh)
Other versions
CN107635069A (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 CN201710888732.2A priority Critical patent/CN107635069B/en
Publication of CN107635069A publication Critical patent/CN107635069A/en
Application granted granted Critical
Publication of CN107635069B publication Critical patent/CN107635069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of UART and USB multiplex circuit and mobile terminal, the UART and USB multiplex circuit include general-purpose serial bus USB and universal asynchronous receiving-transmitting transmitter UART multiplex interface, power management chip, switching switch and processing chip power output end connection control terminal and power supply wire pin, test side connecting detection pin, correction data wire pin connects first choice end, the second selection of negative data wire pin connection end, first correction data end connects the positive connecting pin UART, first negative data end connects the negative connecting pin UART, second correction data end connects the positive connecting pin USB, second negative data end connects the negative connecting pin USB.The embodiment of the present invention can guarantee that USB device can work normally during UART interface switches to USB interface.

Description

UART and USB multiplex circuit 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 circuit and mobile terminal.
Background technique
With the development of the mobile terminals such as smart phone, the hardware circuit and software design of mobile terminal are also more and more multiple Miscellaneous, for effective inspection software bug information, most effective way is exactly to be multiplexed universal serial bus (Universal Serial Bus, USB) interface progress log (log) printing.
It 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 printing is carried out.When UART with When USB multiplex interface is inserted into USB device, needs UART and USB multiplex interface switching to USB from the UART interface of default and connect Mouthful, since UART interface and USB interface are bad with the compatibility of USB device in the handover, lead to asking for USB device operation irregularity Topic happens occasionally.
Summary of the invention
The embodiment of the invention provides a kind of UART and USB multiplex circuit and mobile terminal, can be to avoid UART interface The problem of leading to 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 circuit, including general-purpose serial bus USB and logical With asynchronous receiving-transmitting transmitter UART multiplex interface, power management chip, switching switch and processing chip, the USB and UART Multiplex interface includes power supply wire pin, correction data wire pin, negative data wire pin, detects pin and grounding pin, described to cut Change switch include first choice end, it is the second selection end, the first correction data end, the second correction data end, the first negative data end, second negative Data terminal and control terminal, the processing chip include the positive connecting pin UART, the negative connecting pin UART, the positive connecting pin USB, USB negative Connecting pin, the power management chip include power output end and test side;
The power output end connects the control terminal and the power supply wire pin, and the test side connects the detection Pin, the correction data wire pin connect the first choice end, negative data wire pin connection second selection end, institute It states the first correction data end and connects the positive connecting pin UART, first negative data end connects the negative connecting pin UART, described Second correction data end connects the positive connecting pin USB, and second negative data end connects the negative connecting pin USB;
When the test side of the power management chip detects that the detection of the USB and UART multiplex interface is drawn When foot becomes ground level from high level, the power management chip controls the power output end output high-level control signal extremely The control terminal of the switching switch and the power supply wire pin of the USB and UART multiplex interface, the high level Control signal shake hands connecting for controlling the processing chip with the USB with the USB device that UART multiplex interface is inserted into;
The processing chip, which is used to work as, detects that the processing chip and the USB device are not shaken hands into preset duration When function, the processing chip stops powering to the positive connecting pin the UART and the negative connecting pin the UART.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, the UART including first aspect of the embodiment of the present invention with USB multiplex circuit.
In the embodiment of the present invention, when processing chip detects that processing chip and USB device are not shaken hands into preset duration When function, processing chip stops powering to the positive connecting pin UART and the negative connecting pin UART.It is too late to avoid the occurrence of switching switching Constantly, the voltage of the positive connecting pin UART and the negative connecting pin UART guarantees USB device to USB device initialization bring interference Initialization can be gone on smoothly, and then can guarantee that USB device being capable of normal work during UART interface switches to USB interface Make.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of a kind of UART and USB multiplex circuit disclosed by the embodiments of the present invention;
Fig. 2 is the structural schematic diagram of another kind UART and USB multiplex circuit disclosed by the embodiments of the present invention;
Fig. 3 is a kind of structural schematic diagram of mobile terminal disclosed by the embodiments of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as it contains process, system, product or the equipment of a series of steps or units and does not limit In listed step or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for Other intrinsic step or units of these processes, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing 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, mobile terminal involved by the embodiment of the present invention may include various hand-held with wireless communication function Equipment, wearable device, calculates equipment or is connected to other processing equipments of radio modem mobile unit, and each 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.
It describes in detail below to the embodiment of the present invention.
Referring to Fig. 1, Fig. 1 is the structural schematic diagram of a kind of UART and USB multiplex circuit disclosed by the embodiments of the present invention, such as Shown in Fig. 1, the UART and USB multiplex circuit includes that general-purpose serial bus USB connects with universal asynchronous receiving-transmitting transmitter UART multiplexing Mouth 11, power management chip 12, switching switch 13 and processing chip 14, USB and UART multiplex interface 11 draw including power supply line Foot 111, correction data wire pin 112, negative data wire pin 113, detection pin 114 and grounding pin 115, switching switch 13 wrap It includes first choice end 131, second and selects end 132, the first correction data end 133, the second correction data end 134, the first negative data end 135, the second negative data end 136 and control terminal 137, processing chip 14 include the positive connecting pin 141 UART, the negative connecting pin UART 142, the positive connecting pin 143 USB, the negative connecting pin 144 USB, power management chip 12 include power output end 121 and test side 122;
The control terminal 137 and USB and UART of the connection switching switch 13 of power output end 121 of power management chip 12 are multiple With the power supply wire pin 111 of interface 11, the test side 122 of power management chip 12 connects the inspection of USB and UART multiplex interface 11 Pin 114 is surveyed, USB connect the first choice end 131 of switching switch 13 with 112 pin of correction data line of UART multiplex interface 11, USB connect the second selection end 132 of switching switch 13 with 113 pin of negative data line of UART multiplex interface 11, switches switch 13 The first correction data end 133 connection processing chip 14 the positive connecting pin 141 UART, switch switch 13 the first negative data end 134 The negative connecting pin 142 UART of connection processing chip 14, the second correction data end 135 connection processing chip 14 of switching switch 13 The positive connecting pin 143 USB, the negative connecting pin 144 USB of the second negative data end 136 connection processing chip 14 of switching switch 13;
When the test side of power management chip 12 122 detects the detection pin 114 of USB and UART multiplex interface 11 from height When level becomes ground level, power management chip 12 control power output end 121 export high-level control signal to switch switch 13 control terminal 137 and USB and the power supply wire pin 111 of UART multiplex interface 11, high-level control signal is at control Reason chip 14 shake hands connecting with USB with the USB device that UART multiplex interface 11 is inserted into;
Processing chip 14 is used for when detecting that processing chip 14 and USB device are not shaken hands successfully in preset duration, place Chip 14 is managed to stop powering to the positive connecting pin UART and the negative connecting pin UART.
In the embodiment of the present invention, universal asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/ Transmitter, UART) interface and universal serial bus (Universal Serial Bus, USB) multiplex interface can connect USB device also can connect UART equipment.UART equipment can be computer, single-chip microcontroller etc., when the processing chip in mobile terminal After 14 are connect with computer by UART interface, computer can read software program simultaneously to processing chip 14 by UART interface The software program is debugged, the bug information in above-mentioned software program can be effectively detected.USB device can be USB flash disk, move The storage type equipment that dynamic hard disk etc. is written and read by USB interface.Power management chip (power management Integrated circuit, PMIC) 12 for providing supply voltage for USB and UART multiplex interface 11, guarantee USB and UART Multiplex interface 11 works normally.Preset duration can be set in advance, for example, it is 100ms that preset duration, which can be set, this is pre- If duration can according to pre-treatment chip 14 and USB device averagely duration of shaking hands successfully set, it is however generally that, can It is shaken hands successfully averagely duration so that preset duration is arranged slightly larger than processing chip 14 and USB device, if processing chip 14 and USB Equipment is not shaken hands success in preset duration, then shows the initial work of the voltage disturbance of UART interface USB device.
The shake hands premise of connection of the USB device that processing chip 14 and USB and UART multiplex interface 11 are inserted into is desirable Switch the USB access that switch 13 is established between processing chip 14 and USB device.
When USB connect USB device with UART multiplex interface 11, switching the first choice end 131 and first of switch 13 just Data terminal 133 connects, and the second selection end 132 is connect with the first negative data end 134, and processing chip 14 and USB and UART multiplexing connects USB access is established between mouth 11, USB device can carry out usb communication transmission by the USB access and processing chip of foundation.
When USB connect UART equipment with UART multiplex interface 11, switching the first choice end 131 and second of switch 13 just Data terminal 135 connects, and the second selection end 132 is connect with the second negative data end 136, and processing chip 14 and USB and UART multiplexing connects UART access is established between mouth 11, UART equipment can carry out UART with processing chip by the UART access of foundation and communicate biography It is defeated.
Since USB can only connect a kind of equipment with UART multiplex interface simultaneously, and by default, switch switch 13 First choice end 131 with processing chip 14 on the positive connecting pin 141 UART connect, switching switch 13 second select end 132 With processing chip 14 on the negative connecting pin 142 UART connect namely default situations under switch switch 13 be selection UART access. After UART path setting, handling usually can all have 1.8 volts or 2.3 volts or 2.8 on the positive connecting pin 141 UART on chip 14 The port voltage of volt.If when USB and UART multiplex interface 11 are inserted into USB device, because there is delay in switching switch 13, and It is not immediately switched to USB access, so the voltage on the positive connecting pin 141 UART can be applied on USB device.
As USB device insertion USB and when UART multiplex interface 11, the detection pin 114 of USB and UART multiplex interface 11 with Ground terminal connection, power management chip 12, which can export Vbus voltage, can directly arrive the power supply wire pin of USB Yu UART multiplex interface 11 111 and switching switch 13 control terminal 137, when power supply wire pin 111 receives the Vbus voltage, USB device can start into Row initialization, and switch switch 13 and be delayed due to existing, it is not immediately switched to USB access, so the positive connecting pin 141 UART On voltage can be applied on USB device, thus will lead to USB device initialization failure, and then cause USB device work it is different Often.
In the embodiment of the present invention, as USB device insertion USB and UART multiplex interface 11, USB and UART multiplex interface 11 Detection pin 114 connect with ground terminal, power management chip 12 can export the electricity of Vbus voltage to USB and UART multiplex interface 11 Source wire pin 111 and the control terminal 137 for switching switch 13, USB device can start to be initialized at this time, and switch switch 13 It is delayed due to existing, is not immediately switched to USB access.Voltage on the positive connecting pin 141 UART is possible to that USB can be applied to In equipment, in order to guarantee USB device initialize successfully, when detect processing chip 14 and USB device do not held in preset duration When hand success, processing chip 14 stops powering to the positive connecting pin UART and the negative connecting pin UART, prevents the positive connecting pin 141 UART On voltage be applied on USB device cause USB device initialization it is unsuccessful, implement the embodiment of the present invention, it is ensured that USB is set It is standby to initialize successfully, guarantee USB device operation irregularity.
Optionally, high-level control signal be specifically used for control switching switch 13 establish processing chip 14 and USB device it Between USB access, and initialized for controlling USB device.
In the embodiment of the present invention, believe when the power supply wire pin 111 of USB and UART multiplex interface 11 receive high level control Number when, USB and UART multiplex interface 11 be inserted into USB device start to be initialized, USB device switching 13 foundation of switch at After managing the USB access between chip 14 and USB device, handshake communication is carried out between processing chip 14.
Optionally, the USB access that high-level control signal control switching switch is established between processing chip and USB device has Body are as follows:
It is cut from the first correction data end 133 of connection at the first choice end 131 of high-level control signal control switching switch 13 Shift to the second correction data end 135, and the second selection first negative data end of the end 132 from connection for controlling switching switch 13 134 switch to the second negative data end 136.
In the embodiment of the present invention, high-level control signal can be Vbus voltage signal, and Vbus voltage signal can be 5V Voltage signal.High-level control signal switches to USB access from UART access for controlling switching switch 13.
Optionally, USB device is used to stop when processing chip 14 to the positive connecting pin UART 141 and the negative connecting pin UART After 142 power supplies, initialization is re-started according to high-level control signal.
In the embodiment of the present invention, when processing chip 14 detects that processing chip 14 and USB device are not held in preset duration When hand success, processing chip 14 stops powering to the positive connecting pin UART and the negative connecting pin UART, it can by handling chip 14 make UART power down, temporary close UART function.Due to the interference of not no UART signal, USB device can be according to high level control Signal processed re-starts initialization.Guarantee that UART power down can continue to carry out later the initialization of USB device.
Optionally, processing chip 14 is also used to stop connect negative to the positive connecting pin UART 141 and UART when processing chip 14 Connect end 142 power supply after, when detect processing chip 14 and USB device shake hands successfully when, continue to the positive connecting pin UART 141 with And the negative connecting pin 142 UART powers.
In the embodiment of the present invention, when detecting that processing chip 14 and USB device are shaken hands successfully, continue just connecting UART The negative connecting pin 142 141 and UART is held to power.UART closed state can be discharged after shaking hands successfully, be in UART just Normal output mode.Guarantee that subsequent UART function being capable of normal use.
Optionally, when the test side of power management chip 12 122 detects the detection pin of USB Yu UART multiplex interface 11 14 when becoming high level from ground level, and power management chip 12 controls power output end 121 and exports low level control signal to cutting The control terminal 137 of switch 13 and the power supply wire pin 111 of USB and UART multiplex interface 11 are changed, low level control signal is used for Control processing chip 14 shake hands connecting with USB with the UART equipment that UART multiplex interface 11 is inserted into.
In the embodiment of the present invention, when the test side of power management chip 12 122 detects USB and UART multiplex interface 11 When detection pin 14 becomes high level from ground level, show that the equipment that USB and UART multiplex interface 11 access is UART equipment.
Optionally, low level control signal be specifically used for control switching switch 13 establish processing chip 14 and UART equipment it Between UART access.
In the embodiment of the present invention, when the power supply wire pin 111 of USB and UART multiplex interface 11 receive low level control letter Number when, USB and UART multiplex interface 11 be inserted into UART equipment start to be initialized, UART equipment switching switch 13 foundation After handling the UART access between chip 14 and USB device, handshake communication is carried out between processing chip 14.
Optionally, low level control signal control switching switch 13 establishes the UART between processing chip 14 and UART equipment Access specifically:
The first choice end 131 of low level control signal control switching switch 13 switches from the second correction data end of connection 135 to the first correction data ends 133, and the second selection second negative data of the end 132 from connection for controlling switching switch 13 End 136 switches to the first negative data end 134.
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 for controlling System switching switch 13 switches to UART access from USB access.In general, switching switch 13 is from receiving low level control signal UART access, which is switched to, from USB access to switching switch 13 often there is certain delay.
Implement shown in FIG. a kind of UART and USB multiplex circuit, when can avoid the occurrence of switching switching not in time, The voltage of the positive connecting pin UART and the negative connecting pin UART guarantees that USB device can be suitable to USB device initialization bring interference Benefit is initialized, and then can guarantee that USB device can work normally during UART interface switches to USB interface.
Referring to Fig. 2, Fig. 2 is the structural schematic diagram of another kind UART and USB multiplex circuit disclosed by the embodiments of the present invention, As shown in Fig. 2, processing chip 14 includes modem chip and application processor chip.
Wherein, modem chip, also referred to as Modem, application processor chip, also referred to as AP (Application Processor).UART shown in Fig. 2 and USB multiplex circuit can integrate on the mainboard of mobile terminal.
Modem chip is used to convert digital signals into analog signal by modulation in transmitting terminal, and in receiving end Digital signal is converted analog signals into again by demodulation.Modem processor chip mainly handles wireless communication.Using place Reason device chip is for executing program instructions (for example, for detecting whether application processor shakes hands with USB device or UART equipment Successful program instruction), which can store in memory, and preset duration parameter can also be stored in memory. The main processing operation system of application processor chip, user interface and application program etc..Modem chip and application processing Device chip can integrate in system on chip (System on Chip, SoC).
The embodiment of the invention also provides a kind of mobile terminals, as shown in figure 3, for ease of description, illustrating only and this The relevant part of inventive embodiments, it is disclosed by specific technical details, please refer to the circuit part of the embodiment of the present invention.The movement Terminal can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, by taking mobile terminal is mobile phone as an example:
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of mobile terminal disclosed by the embodiments of the present invention, with mobile phone in Fig. 3 For be illustrated.With reference to Fig. 3, 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 components such as block 970, processor 980 and power supply 990.It will be understood by those skilled in the art that handset structure shown in Fig. 3 The restriction to mobile phone is not constituted, may include perhaps combining certain components or difference than illustrating more or fewer components Component layout.
It is specifically introduced below with reference to each component parts of the Fig. 3 to mobile phone:
RF circuit 910 can be used for sending and receiving for information.In general, RF circuit 910 includes but is not limited to antenna, at least one A amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless 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 it is point more Location (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (ShortMessaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence etc.;Storage data area, which can be stored, uses created data etc. according to mobile phone.In addition, memory 920 may include 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 unit 930 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 930 may include fingerprint recognition mould group 931 and other are defeated Enter equipment 932.Fingerprint recognition mould group 931 can acquire the finger print data of user on it.In addition to fingerprint recognition mould group 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 of screen, physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. Or it is a variety of.
Display unit 940 can be used for showing information input by user 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 forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Display screen 941.Although fingerprint recognition mould group 931 and display screen 941 are to realize mobile phone as two independent components in Fig. 3 Input and input function, but it is in some embodiments it is possible to fingerprint recognition mould group 931 and display screen 941 is integrated and real The input and playing function of existing mobile phone.
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 sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display screen 941, proximity sensor can when mobile phone is moved in one's ear, close display screen 941 and/or Backlight.As a kind of motion sensor, accelerometer sensor can detect all directions on (generally three axis) acceleration it is big It is small, can detect that size and the direction of gravity when static, can be used to identify 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 sensor, details are not described herein.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound 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 It is changed to audio data, then by after the processing of audio data playback process device 980, such as another mobile phone is sent to through RF circuit 910, Or audio data is played to memory 920 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 980 is the control centre of mobile phone, utilizes various interfaces (for example, UART interface and USB interface) and route The various pieces for connecting whole mobile phone, by running or executing the software program and/or module that are stored in memory 920, with And the data being stored in memory 920 are called, the various functions and processing data of mobile phone are executed, to carry out to mobile phone whole 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 the main processing operation system of application processor, user interface and application Program etc., modem processor mainly handle wireless communication.It is understood that above-mentioned modem processor can not also It is integrated into processor 980.
Mobile phone further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 980 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Mobile phone can also include camera 9100, and camera 9100 is for shooting image and video, and by the image of shooting It is handled with transmission of video to processor 980.
Mobile phone can be with bluetooth module etc., and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and Embodiment is expounded, and the above description of the embodiments is only for helping to understand the core idea of the present invention;Meanwhile for Those of ordinary skill in the art have change according to the thought of the present invention in specific embodiments and applications Place, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (9)

1. a kind of UART and USB multiplex circuit, which is characterized in that transmitted including general-purpose serial bus USB and universal asynchronous receiving-transmitting Device UART multiplex interface, power management chip, switching switch and processing chip, the USB and UART multiplex interface include electricity Source wire pin, correction data wire pin, negative data wire pin, detection pin and grounding pin, the switching switch includes first Select 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 End, the processing chip includes the positive connecting pin UART, the negative connecting pin UART, the positive connecting pin USB, the negative connecting pin USB, the power supply Managing chip includes power output end and test side;
The power output end connects the control terminal and the power supply wire pin, and the test side connection detection is drawn Foot, the correction data wire pin connect the first choice end, and negative data wire pin connection second selection end is described First correction data end connects the positive connecting pin UART, and first negative data end connects the negative connecting pin UART, and described the Two correction data ends connect the positive connecting pin USB, and second negative data end connects the negative connecting pin USB;
When the test side of the power management chip detect the detection pin of the USB and UART multiplex interface from When high level becomes ground level, the power management chip controls the power output end and exports high-level control signal to described Switch the control terminal of switch and the power supply wire pin of the USB and UART multiplex interface, the high level control Signal shake hands connecting for controlling the processing chip with the USB with the USB device that UART multiplex interface is inserted into;
The processing chip is used for when detecting the processing chip and the USB device is not shaken hands success in preset duration When, the processing chip stops powering to the positive connecting pin the UART and the negative connecting pin the UART;
Wherein, the USB device is used to stop connect negative to the positive connecting pin the UART and the UART when the processing chip After connecing end power supply, initialization is re-started according to the high-level control signal.
2. circuit according to claim 1, which is characterized in that the high-level control signal is specifically used for cutting described in control The USB access that switch is established between the processing chip and the USB device is changed, and is carried out for controlling the USB device Initialization.
3. circuit according to claim 2, which is characterized in that the high-level control signal controls the switching switch and builds Found the USB access between the processing chip and the USB device specifically:
The high-level control signal controls the first choice end of the switching switch from first correction data of connection End switches to second correction data end, and second selection end for controlling the switching switch is from described in connection First negative data end switches to second negative data end.
4. circuit according to claim 3, which is characterized in that
The processing chip is also used to stop when the processing chip to the positive connecting pin the UART and the negative connection of the UART After the power supply of end, when detecting that the processing chip and the USB device are shaken hands successfully, continue to the positive connecting pin the UART And the negative connecting pin power supply of UART.
5. circuit according to claim 1, which is characterized in that
When the test side of the power management chip detect the detection pin of the USB and UART multiplex interface from When ground level becomes high level, the power management chip controls the power output end and exports low level control signal to described Switch the control terminal of switch and the power supply wire pin of the USB and UART multiplex interface, the low level control Signal shake hands connecting for controlling the processing chip with the USB with the UART equipment that UART multiplex interface is inserted into.
6. circuit according to claim 5, which is characterized in that the low level control signal is specifically used for cutting described in control Change the UART access that switch is established between the processing chip and the UART equipment.
7. circuit according to claim 6, which is characterized in that the low level control signal controls the switching switch and builds Found the UART access between the processing chip and the UART equipment specifically:
The low level control signal controls the first choice end of the switching switch from second correction data of connection End switches to first correction data end, and second selection end for controlling the switching switch is from described in connection Second negative data end switches to first negative data end.
8. circuit according to claim 1-7, which is characterized in that the processing chip includes modem core Piece and application processor chip.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes such as the described in any item circuits of claim 1-8.
CN201710888732.2A 2017-09-27 2017-09-27 UART and USB multiplex circuit and mobile terminal Active CN107635069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710888732.2A CN107635069B (en) 2017-09-27 2017-09-27 UART and USB multiplex circuit and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710888732.2A CN107635069B (en) 2017-09-27 2017-09-27 UART and USB multiplex circuit and mobile terminal

Publications (2)

Publication Number Publication Date
CN107635069A CN107635069A (en) 2018-01-26
CN107635069B true CN107635069B (en) 2019-08-09

Family

ID=61102847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710888732.2A Active CN107635069B (en) 2017-09-27 2017-09-27 UART and USB multiplex circuit and mobile terminal

Country Status (1)

Country Link
CN (1) CN107635069B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086233B (en) * 2018-06-30 2020-12-08 惠州华阳通用电子有限公司 Communication type automatic identification and switching device and method
CN110569207A (en) * 2019-04-10 2019-12-13 北京乐驾科技有限公司 Interface multiplexing device and vehicle-mounted equipment
WO2020232582A1 (en) * 2019-05-17 2020-11-26 华为技术有限公司 Integrated circuit having interface multiplexing functionality and pin switching method
CN112835831A (en) * 2019-11-22 2021-05-25 炬芯科技股份有限公司 Circuit and electronic equipment for multiplexing USB interface and UART interface
CN110955621A (en) * 2019-12-19 2020-04-03 安徽皖兴通信息技术有限公司 Device and method for multiplexing idle ports of panel
CN112312446A (en) * 2020-10-29 2021-02-02 努比亚技术有限公司 Price tag base station debugging circuit and price tag base station
CN116719256A (en) * 2023-05-24 2023-09-08 广东匠芯创科技有限公司 Interface switching system, method, encoder and storage medium

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

Also Published As

Publication number Publication date
CN107635069A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
CN107635069B (en) UART and USB multiplex circuit and mobile terminal
CN107613126B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
US10922131B2 (en) Application function control method and related product
CN107678989B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN106484326B (en) A kind of data transmission processing method and mobile terminal
CN106507482B (en) A kind of network locating method and terminal device
CN106786961B (en) Charging method, device and terminal
CN106413070B (en) A kind of power regulating method, mobile terminal and computer readable storage medium
CN108415865A (en) Interface circuit and electronic device
CN106534288B (en) A kind of data transmission method and mobile terminal
CN110430592A (en) Network control method and Related product
CN106708633B (en) The method and mobile terminal of increasing terminal WiFi workstation mode closing velocities
US11050282B2 (en) Power supply control method and device, storage medium and electronic device
CN106020962B (en) A kind of course control method and terminal device
CN108601201B (en) Flexible circuit board and electronic device
US20180365031A1 (en) Method and device for sound effect processing and storage medium
WO2018214745A1 (en) Application control method and related product
CN108920390A (en) insertion detection circuit, insertion detection method and electronic device
CN110266359A (en) Antenna switching method and Related product
CN112437421B (en) Bluetooth control method and device, storage medium and mobile terminal
CN108650404A (en) Port start-up circuit, device and mobile terminal
CN108411310A (en) Interface circuit and electronic device
CN105321139A (en) Picture processing method and device
CN106572166B (en) Data transmission method, backup server and mobile terminal
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium

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
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.

GR01 Patent grant
GR01 Patent grant