[go: up one dir, main page]

CN108647160A - USB force downloads circuit, mobile terminal, method for down loading and data line - Google Patents

USB force downloads circuit, mobile terminal, method for down loading and data line Download PDF

Info

Publication number
CN108647160A
CN108647160A CN201810684814.XA CN201810684814A CN108647160A CN 108647160 A CN108647160 A CN 108647160A CN 201810684814 A CN201810684814 A CN 201810684814A CN 108647160 A CN108647160 A CN 108647160A
Authority
CN
China
Prior art keywords
usb
force
mobile terminal
pin
pin feet
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.)
Pending
Application number
CN201810684814.XA
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810684814.XA priority Critical patent/CN108647160A/en
Publication of CN108647160A publication Critical patent/CN108647160A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of USB force downloads circuits, including:Switching circuit, the switching circuit include first end, second end and third end;It forces to start pin from USB, is electrically connected to the second end;Power pins are electrically connected to the third end;ID pins are electrically connected to the first end;Wherein, described to force to start pin and the power pins short circuit from USB when the switching circuit is connected.The present invention also provides a kind of mobile terminal and method for down loading and USB data line, said program realize by adding USB force download circuits, realize be not required to tear open machine or punching force download can be realized, it is easy to operate, improve download efficiency.

Description

USB force downloads circuit, mobile terminal, method for down loading and data line
Technical field
The present invention relates to field of mobile terminals more particularly to a kind of USB force downloads circuit, mobile terminal, method for down loading And data line.
Background technology
All it is short by the production test point reserved to mainboard for force download in the Terminal Designs circuit such as existing mobile phone The mode connect realizes force download, but to operate very inconvenient, is unfavorable for research staff's debugging.Especially complete machine shape Force download is extremely complex under state, inconvenient.
Invention content
In view of this, a kind of USB force downloads circuit of present invention proposition, mobile terminal, method for down loading and data line, with solution Certainly above-mentioned technical problem.
First, to achieve the above object, the present invention proposes a kind of USB force downloads circuit, which is characterized in that the USB Force download circuit includes:
Switching circuit, the switching circuit include first end, second end and third end;
It forces to start pin from USB, is electrically connected to the second end;
Power pins are electrically connected to the third end;
ID pins are electrically connected to the first end;
Wherein, described to force to start pin and the power pins short circuit from USB when the switching circuit is connected.
Optionally, the switching circuit includes:
The first end of transistor, the transistor is electrically connected to the ID pins, the second end electrical connection of the transistor It forces to start pin from USB in described, the third end of the transistor is electrically connected to the power pins;
Resistance, one end are electrically connected to the first end of the transistor, other end ground connection.
Optionally, the transistor is N-MOS pipes, the first end of the grids of the N-MOS pipes as the transistor, institute State second end of the source electrode of N-MOS pipes as the transistor, the third of the N-MOS pipes to drain as the transistor End.
Optionally, when the level of the ID pins is high level, the transistor turns are described to force to start from USB Pin and the power pins short circuit.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, including processor, USB interface, power supplys Pin feet, and USB force download circuits as described above;
The pressure of the processor starts pin feet from USB and is electrically connected to described force from USB startup pins;
The power supply pin feet are electrically connected to the power port;
The USB interface includes ID pin feet, and the ID pin feet in the USB interface are electrically connected to the ID pins.
Optionally, when the mobile terminal accesses special USB data line, the level of the ID pin feet is high electricity Flat, the switching circuit conducting is described to force to start pin and the power pins short circuit, the mobile terminal execution from USB The instruction of force download, wherein the ID pin feet in the special USB data line are connected with power supply pin feet.
Optionally, when the mobile terminal accesses normal USB data line, the level of the ID pin feet is low electricity Flat, the switching circuit is not turned on, and the mobile terminal execution is normally downloaded and the instruction of data transmission, wherein described normal USB data line in ID pin feet it is hanging.
In addition, to achieve the above object, the present invention also provides a kind of USB force downloads methods, are applied to as described above Mobile terminal includes the following steps:
Detect the level for forcing to start pin feet from USB;
When the level for detecting that the USB starts pin feet is high level, the instruction of force download is executed.
Optionally, when detect it is described force from USB to start the level of pin feet be low level when, execute it is normal download and The instruction of data transmission.
In addition, to achieve the above object, the present invention also provides a kind of USB data lines, are applied to as described above mobile whole End, including:First USB interface, secondary USB interface, first USB interface and the secondary USB interface are connected by data line It connects, first USB interface is the interface for accessing the mobile terminal, and first USB interface includes power supply pin feet, ground connection Pin feet, the positive pin feet of data line, data line bear pin feet, ID pin feet, and the ID pin feet are connect with the power supply pin feet.
Compared to the prior art, the USB force download circuits proposed in embodiment of the present invention, including:Switching circuit, The switching circuit includes first end, second end and third end;It forces to start pin from USB, is electrically connected to the second end;Electricity Source pin is electrically connected to the third end;ID pins are electrically connected to the first end;Wherein, when the switching circuit is connected When, it is described to force to start pin and the power pins short circuit from USB.By switching circuit control when the special USB numbers of insertion When according to line, force to start pin and the power pins short circuit from USB, so that the mobile terminal execution force download refers to It enables, exposes reserved test point without tearing machine or punching open, the mode of short circuit could execute force download instruction, operation later It is convenient, improve download efficiency.
Description of the drawings
Fig. 1 is the circuit block diagram of an embodiment of USB force downloads circuit of the present invention;
Fig. 2 is the circuit diagram of one embodiment of USB force downloads circuit of the present invention;
Fig. 3 is total schematic diagram of one embodiment of mobile terminal of the present invention
Fig. 4 is mobile terminal of the present invention one optional hardware architecture diagram of each embodiment;
Fig. 5 is the circuit block diagram of one embodiment of mobile terminal of the present invention;
Fig. 6 is the circuit block diagram of another embodiment of mobile terminal of the present invention;
Fig. 7 is the flow diagram of the first embodiment of USB force downloads method of the present invention;
Fig. 8 is the structural schematic diagram of an embodiment of the first USB interface of USB data line of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Referring to Fig. 1, it is the circuit block diagram of 10 first embodiment of USB force downloads circuit of the present invention.The USB is forced Download circuit 10 is applied in mobile terminal.
In the present embodiment, USB force downloads circuit 10 includes switching circuit 100, forces to start pin FORCE_ from USB USB_BOOT, power pins VREG_L13A_1P8 and ID pin USB_HS_ID.In a physical circuit, the pressure is from USB Start pin FORCE_USB_BOOT to connect from USB startup pin feet with the pressure in mobile terminal, power pins VREG_ L13A_1P8 is connected with the power supply PIN foot in mobile terminal, in the ID pins USB_HS_ID and mobile terminal in USB interface ID pin feet connect.
In the present embodiment, switching circuit 100 includes first end A, second end B and third end C.It forces to draw from USB startups Foot FORCE_USB_BOOT is electrically connected to second end B, and power pins VREG_L13A_1P8 is electrically connected to third end C, ID pin USB_HS_ID is electrically connected to first end A.In the present embodiment, described to force to start pin FORCE_USB_BOOT from USB to be to sentence Whether disconnected mobile terminal executes the pin of force download instruction.It forces to be specifically defined from USB startups pin FORCE_USB_BOOT It is as follows:
When mobile terminal is in normal condition, the CPU acquiescences of mobile terminal can start from EMMC, you can pass through USB numbers Computer is connected according to line mode and downloads program, but (program of EMMC itself is asked when mobile terminal processor is in abnormality Topic is damaged by uncertain factor, leads to not complete startup or None- identified port), it needs to use force download mode Download program.Download method be will force from USB startup pin FORCE_USB_BOOT draw high to power level (power level with For 1.8V), burning program can be executed automatically into force download pattern by inserting in USB preprocessors.
It will force to draw high the side generally used to power level from USB startups pin FORCE_USB_BOOT in the prior art Method is:The pressure that Mobile terminal main board is reserved starts pin FORCE_USB_BOOT and power pins VREG_ from USB L13A_1P8 test point short circuits will make two test point short circuits however, since two test points are located on mainboard, must Two test points must be exposed first, in this way, it is necessary to which punching or tear open the mode of machine could make two test points sudden and violent Dew, operation are inconvenient.
In the present embodiment, pin FORCE_USB_ is started from USB by pressure originally reserved in the prior art Switching circuit 100 and an ID pin USB_HS_ID are added between BOOT and power pins VREG_L13A_1P8 test points, So that when ID pins USB_HS_ID accesses a high level, the switching circuit 100 conducting, so that the pressure is opened from USB Dynamic pin FORCE_USB_BOOT and power pins VREG_L13A_1P8 short circuits, to which mobile terminal can enter under pressure Load pattern.The present embodiment is forced to start pin FORCE_USB_BOOT from USB by controlling the conducting of switching circuit 100 to control And power pins VREG_L13A_1P8 short circuits, so as to without exposing the pressure by way of punching or tearing machine open Start pin FORCE_USB_BOOT and power pins VREG_L13A_1P8 from USB, it is easy to operate, and can improve Efficiency.
Referring to Fig. 2, it is the circuit diagram of mono- embodiments of USB force downloads circuit 10a of the present invention.
As shown in Fig. 2, in embodiments of the present invention, USB force download circuits 10a includes transistor Q1, resistance R, by force System starts pin FORCE_USB_BOOT, power pins VREG_L13A_1P8 and ID pin USB_HS_ID from USB.Transistor The first end of Q1 is electrically connected to ID pin USB_HS_ID, and the second end of transistor Q1 is electrically connected to pressure and starts pin from USB The third end of FORCE_USB_BOOT, transistor Q1 are electrically connected to power pins VREG_L13A_1P8.One end of resistance R is electrically connected It is connected to the first end of transistor Q1, the other end ground connection of resistance R.In a physical circuit, which starts pin from USB FORCE_USB_BOOT and the pressure in mobile terminal start pin feet from USB and connects, power pins VREG_L13A_1P8 with ID pin feet in power supply PIN foot connection in mobile terminal, the ID pins USB_HS_ID and mobile terminal in USB interface connect It connects.In the present embodiment, when the level of ID pins USB_HS_ID is high level, transistor Q1 conductings, pressure is opened from USB Dynamic pin FORCE_USB_BOOT and power pins VREG_L13A_1P8 short circuits, mobile terminal can enter force download pattern.
In a specific embodiment, transistor Q1 manages for N-MOS, and the grid G of the N-MOS pipes is as transistor Q1's First end, the second end of the source Ss of the N-MOS pipes as the transistor Q1, the drain D of the N-MOS pipes is as crystal The third end of pipe Q1.It is understood that in other embodiment of the present invention, transistor Q1 may be P-MOS pipes, NPN Type triode or PNP type triode etc..
Referring to Fig. 3, it is total schematic diagram of one embodiment of mobile terminal of the present invention.
Mobile terminal can be implemented in a variety of manners.For example, mobile terminal described in the present invention may include such as Mobile phone, tablet, laptop etc..
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, construction according to the embodiment of the present invention can also apply to the device of fixed type.
Referring to Fig. 3, it is total schematic diagram of 20 1 embodiment of this mobile terminal.The USB of the mobile terminal 20 connects Mouth 230 is connect by special data line 30 with host computer (not shown), and the host computer is by taking computer as an example.Mobile terminal 20 passes through After special data line is connect with computer, you can make it when abnormality has to carry out force download, it is not necessary to pass through punching Or it tears the mode of machine open and starts pin FORCE_USB_BOOT and power pins VREG_L13A_ from USB to expose the pressure 1P8, it is easy to operate, and efficiency can be improved.
It will be understood by those skilled in the art that mobile terminal shown in Fig. 4 does not constitute the restriction to mobile terminal, move Dynamic terminal may include either combining certain components or different components arrangement than illustrating more or fewer components.
Referring to Fig. 4, it is 20 each embodiment of mobile terminal of the present invention, one optional hardware architecture diagram.
The mobile terminal 20 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio Output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, The portions such as interface unit 108, memory 109, processor 110 and power supply 111 and USB interface 230, USB force downloads circuit 10 Part.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 4 does not constitute the restriction to mobile terminal, move Dynamic terminal may include either combining certain components or different components arrangement than illustrating more or fewer components.
The all parts of mobile terminal 20 are specifically introduced with reference to Fig. 4:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 4 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 20 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 The relevant audio output of specific function executed with mobile terminal 20 can also be provided (for example, call signal receives sound, message Receive sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 20 further includes at least one sensor 105, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light The light and shade of line adjusts the brightness of display panel 1061, and proximity sensor can close aobvious when mobile terminal 20 is moved in one's ear Show panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally Three axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely It is the fingerprint sensor that can also configure in mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet The other sensors such as meter, thermometer, infrared sensor are spent, details are not described herein.
In the present embodiment, mobile terminal 20 includes there are two display unit 106, and mobile terminal 20 is arranged in one of them Front, another is arranged at the back side of mobile terminal 20.Display unit 106 is for showing information input by user or being supplied to The information of user.Display unit 106 may include display panel 1061, and liquid crystal display (Liquid Crystal may be used Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 1061.Identical display specifically may be used in two display units 106, can also use different displays.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in fig. 2, touch panel 1071 and display panel 1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 20 can by interface.For example, outer Part device may include wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless Data port, memory card port, for connect the port of device with identification module, the port audio input/output (I/O), Video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, data Information, electric power etc.) and by one or more elements that the input received is transferred in mobile terminal 20 or can use In the transmission data between mobile terminal 20 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 20 further includes the power supply 111 powered to all parts, power supply 111 can by power-supply management system with Processor 110 is logically contiguous, to realize the functions such as management charging, electric discharge and power managed by power-supply management system.
Although Fig. 4 is not shown, mobile terminal 20 can also be including bluetooth module etc., and details are not described herein.
Referring to Fig. 5, it is the circuit block diagram of 20 1 embodiment of mobile terminal of the present invention.
In the present embodiment, mobile terminal 20 includes processor 210, USB interface 230a, power supply pin feet VCC and USB Force download circuit 10.USB force downloads circuit 10 includes switching circuit 100, forces to start pin FORCE_USB_ from USB BOOT, power pins VREG_L13A_1P8 and ID pin USB_HS_ID.Pressure in processor 210 starts pin feet from USB GPIO_1 is electrically connected to pressure and starts pin FORCE_USB_BOOT from USB, and power supply pin feet VCC is electrically connected to power pins VREG_L13A_1P8.USB interface 230a includes that ID pin feet USB_ID, ID pin feet USB_ID is electrically connected to ID pins USB_ HS_ID。
In the present embodiment, switching circuit 100 includes first end A, second end B and third end C.It forces to draw from USB startups Foot FORCE_USB_BOOT is electrically connected to second end B, and power pins VREG_L13A_1P8 is electrically connected to third end C, ID pin USB_HS_ID is electrically connected to first end A.In the present embodiment, described to force to start pin FORCE_USB_BOOT from USB to be to sentence Whether disconnected mobile terminal executes the pin of force download instruction.It forces to be specifically defined from USB startups pin FORCE_USB_BOOT It is as follows:
When mobile terminal is in normal condition, the CPU acquiescences of mobile terminal can start from EMMC, you can pass through USB numbers Computer is connected according to line mode and downloads program, but (program of EMMC itself is asked when mobile terminal processor is in abnormality Topic is damaged by uncertain factor, leads to not complete startup or None- identified port), it needs to use force download mode Download program.Download method be will force from USB startup pin FORCE_USB_BOOT draw high to power level (power level with For 1.8V), burning program can be executed automatically into force download pattern by inserting in USB preprocessors.
In the present embodiment, when mobile terminal 20 accesses special USB data line, the level of ID pin feet VCC is height Level, switching circuit 100 are connected, and force to start pin FORCE_USB_BOOT and power pins VREG_L13A_1P8 from USB Short circuit, mobile terminal 20 execute the instruction of force download.In the present embodiment, the special USB data line is a kind of tool There are ID pin feet, and the data line that ID pin feet are connected with power supply pin feet.When mobile terminal 20 accesses normal USB data line When, the level of ID pin feet VCC is low level, and switching circuit 100 is not turned on, and mobile terminal 20 executes normal download and passed with data Defeated instruction.In the present embodiment, special USB data line is a kind of data line that ID pin feet are hanging.
In the present embodiment, pin FORCE_USB_ is started from USB by pressure originally reserved in the prior art Switching circuit 100 and an ID pin USB_HS_ID are added between BOOT and power pins VREG_L13A_1P8 test points, So that when ID pins USB_HS_ID accesses a high level, the switching circuit 100 conducting, so that the pressure is opened from USB Dynamic pin FORCE_USB_BOOT and power pins VREG_L13A_1P8 short circuits, to which mobile terminal can enter under pressure Load pattern.The present embodiment is forced to start pin FORCE_USB_BOOT from USB by controlling the conducting of switching circuit 100 to control And power pins VREG_L13A_1P8 short circuits, so as to without exposing the pressure by way of punching or tearing machine open Start pin FORCE_USB_BOOT and power pins VREG_L13A_1P8 from USB, it is easy to operate, and can improve Efficiency.
Referring to Fig. 6, it is the circuit block diagram of another embodiments of mobile terminal 20a of the present invention.
As shown in fig. 6, in the present embodiment, mobile terminal 20 includes processor 210, USB interface 230a, power supply pin feet VCC and USB force download circuits 10a.USB force download circuits 10a includes transistor Q1, resistance R, forces to start from USB Pin FORCE_USB_BOOT, power pins VREG_L13A_1P8 and ID pin USB_HS_ID.The first end of transistor Q1 ID pin USB_HS_ID are electrically connected to, the second end of transistor Q1 is electrically connected to pressure and starts pin FORCE_USB_ from USB The third end of BOOT, transistor Q1 are electrically connected to power pins VREG_L13A_1P8.One end of resistance R is electrically connected to transistor The first end of Q1, the other end ground connection of resistance R.In a physical circuit, which starts pin FORCE_USB_BOOT from USB Start pin feet from USB with the pressure in mobile terminal to connect, the electricity in power pins VREG_L13A_1P8 and mobile terminal Source PIN foot connection, the ID pins USB_HS_ID are connected with the ID pin feet in USB interface in mobile terminal.In present embodiment In, when the level of ID pins USB_HS_ID is high level, transistor Q1 conductings are forced to start pin FORCE_USB_ from USB BOOT and power pins VREG_L13A_1P8 short circuits, mobile terminal can enter force download pattern.
In a specific embodiment, transistor Q1 manages for N-MOS, and the grid G of the N-MOS pipes is as transistor Q1's First end, the second end of the source Ss of the N-MOS pipes as the transistor Q1, the drain D of the N-MOS pipes is as crystal The third end of pipe Q1.It is understood that in other embodiment of the present invention, transistor Q1 may be P-MOS pipes, NPN Type triode or PNP type triode etc..
In the present embodiment, when mobile terminal 20 accesses special USB data line, the level of ID pin feet VCC is height Level, switching circuit 100 are connected, and force to start pin FORCE_USB_BOOT and power pins VREG_L13A_1P8 from USB Short circuit, mobile terminal 20 execute the instruction of force download.In the present embodiment, the special USB data line is a kind of tool There are ID pin feet, and the data line that ID pin feet are connected with power supply pin feet.When mobile terminal 20 accesses normal USB data line When, the level of ID pin feet VCC is low level, and switching circuit 100 is not turned on, and mobile terminal 20 executes normal download and passed with data Defeated instruction.In the present embodiment, special USB data line is a kind of data line that ID pin feet are hanging.
Referring to Fig. 7, its flow diagram for the first embodiment of USB force downloads method of the present invention.
In the present embodiment, which is applied to mobile terminal 20, and mobile terminal 20 accesses special USB data line.The control method includes the following steps:
S701 detects the level for forcing to start pin feet from USB;
Specifically, mobile terminal 20 includes under processor 210, USB interface 230a, power supply pin feet VCC and USB pressure Carry circuit 10.USB force downloads circuit 10 includes switching circuit 100, forces to start pin FORCE_USB_BOOT, electricity from USB Source pin VREG_L13A_1P8 and ID pin USB_HS_ID.Pressure in processor 210 starts pin feet GPIO_1 from USB It is electrically connected to pressure and starts pin FORCE_USB_BOOT from USB, power supply pin feet VCC is electrically connected to power pins VREG_ L13A_1P8.USB interface 230a includes that ID pin feet USB_ID, ID pin feet USB_ID is electrically connected to ID pins USB_HS_ID.
Detection is forced to start whether the level of pin feet is preset value from USB by detection in real time, in the present embodiment, The preset value is high level, it is to be understood that in other embodiments, which may be low level.Pass through reality When detect the pressure from USB start pin feet level, so as to judge whether to need in time enter force download pattern.
S702 executes the instruction of force download when the level for detecting that the USB starts pin feet is high level.
Specifically, it forces to be defined as follows from USB startup pins:
When mobile terminal is in normal condition, the CPU acquiescences of mobile terminal can start from EMMC, you can pass through USB numbers Computer is connected according to line mode and downloads program, but (program of EMMC itself is asked when mobile terminal processor is in abnormality Topic is damaged by uncertain factor, leads to not complete startup or None- identified port), it needs to use force download mode Download program.Download method is that will force to draw high to power level (power level is by taking 1.8V as an example) from USB startup pins, is inserted Burning program can be executed in USB preprocessors automatically into force download pattern.
In the present embodiment, when mobile terminal accesses special USB data line, it can detect that USB starts pin feet Level be high level, then execute force download instruction.
Step S703 executes normal download when the level for detecting the pressure from USB startup pin feet is low level With the instruction of data transmission.
Specifically, when accessing normal USB data line, it will detect that the level for starting pin feet from USB is low level, When detecting low level, it was demonstrated that mobile terminal no exceptions can be downloaded normally and data transmission.
When in the present embodiment, by being inserted into special USB data line, force to draw with the power supply from USB startup pins Foot short circuit, so that the mobile terminal execution force download instructs, it is without tearing machine or punching open that reserved test point is sudden and violent Reveal, the mode of short circuit could execute force download instruction later, easy to operate, improve download efficiency.
Referring to Fig. 8, its structural schematic diagram for an embodiment of the first USB interface of USB data line of the present invention.
In the present embodiment, which is applied in mobile terminal 20.
The USB data line 40 includes:First USB interface, secondary USB interface, the first USB interface and secondary USB interface are logical Data line connection is crossed, the first USB interface is the interface for accessing mobile terminal 20, and the first USB interface includes power supply pin foot VBUS, It is grounded pin foot GND, the positive pin feet D+ of data line, data line bears pin feet D-, ID pin feet ID1, ID pin feet ID1 and power supply pin Foot VBUS connections.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that article or device including a series of elements include not only those elements, but also includes not having There is the other element being expressly recited, or further includes for this article or the intrinsic element of device.Do not limiting more In the case of system, the element that is limited by sentence "including a ...", it is not excluded that in article or device including the element In there is also other identical elements.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of USB force downloads circuit, which is characterized in that the USB force downloads circuit includes:
Switching circuit, the switching circuit include first end, second end and third end;
It forces to start pin from USB, is electrically connected to the second end;
Power pins are electrically connected to the third end;
ID pins are electrically connected to the first end;
Wherein, described to force to start pin and the power pins short circuit from USB when the switching circuit is connected.
2. USB force downloads circuit as described in claim 1, which is characterized in that the switching circuit includes:
The first end of transistor, the transistor is electrically connected to the ID pins, and the second end of the transistor is electrically connected to institute It states pressure and starts pin from USB, the third end of the transistor is electrically connected to the power pins;
Resistance, one end are electrically connected to the first end of the transistor, other end ground connection.
3. USB force downloads circuit as claimed in claim 2, it is characterised in that:The transistor is managed for N-MOS, the N- First end of the grid of metal-oxide-semiconductor as the transistor, the second end of the source electrodes of the N-MOS pipes as the transistor, institute State third end of the drain electrode of N-MOS pipes as the transistor.
4. USB force downloads circuit as claimed in claim 2, it is characterised in that:
When the level of the ID pins is high level, the transistor turns are described to force to start pin and the electricity from USB Source pin short circuit.
5. a kind of mobile terminal, which is characterized in that including processor, USB interface, power supply pin feet, and such as Claims 1-4 USB force download circuits described in item any one;
The pressure of the processor starts pin feet from USB and is electrically connected to described force from USB startup pins;
The power supply pin feet are electrically connected to the power pins;
The USB interface includes ID pin feet, and the ID pin feet in the USB interface are electrically connected to the ID pins.
6. mobile terminal as claimed in claim 5, it is characterised in that:
When the mobile terminal accesses special USB data line, the level of the ID pin feet is high level, the switch electricity Road is connected, described to force to start pin and the power pins short circuit, the finger of the mobile terminal execution force download from USB It enables, wherein the ID pin feet in the special USB data line are connected with power supply pin feet.
7. mobile terminal as claimed in claim 6, it is characterised in that:
When the mobile terminal accesses normal USB data line, the level of the ID pin feet is low level, the switch electricity Road is not turned on, and the mobile terminal execution is normally downloaded and the instruction of data transmission, wherein in the normal USB data line ID pin feet it is hanging.
8. a kind of USB force downloads method is applied to the mobile terminal as described in claim 5 to 7 any one, feature It is, includes the following steps:
Detect the level for forcing to start pin feet from USB;
When the level for detecting that the USB starts pin feet is high level, the instruction of force download is executed.
9. USB force downloads method as claimed in claim 8, which is characterized in that when detect it is described force from USB start When the level of pin feet is low level, the normal instruction downloaded with data transmission is executed.
10. a kind of USB data line is applied to the mobile terminal as described in claim 5 to 7 any one, which is characterized in that Including:First USB interface, secondary USB interface, first USB interface are connected with the secondary USB interface by data line, First USB interface is the interface for accessing the mobile terminal, and first USB interface includes power supply pin feet, is grounded pin Foot, the positive pin feet of data line, data line bear pin feet, ID pin feet, and the ID pin feet are connect with the power supply pin feet.
CN201810684814.XA 2018-06-28 2018-06-28 USB force downloads circuit, mobile terminal, method for down loading and data line Pending CN108647160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810684814.XA CN108647160A (en) 2018-06-28 2018-06-28 USB force downloads circuit, mobile terminal, method for down loading and data line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810684814.XA CN108647160A (en) 2018-06-28 2018-06-28 USB force downloads circuit, mobile terminal, method for down loading and data line

Publications (1)

Publication Number Publication Date
CN108647160A true CN108647160A (en) 2018-10-12

Family

ID=63750193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810684814.XA Pending CN108647160A (en) 2018-06-28 2018-06-28 USB force downloads circuit, mobile terminal, method for down loading and data line

Country Status (1)

Country Link
CN (1) CN108647160A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327581A (en) * 2018-11-28 2019-02-12 努比亚技术有限公司 A kind of downloading switching device and mobile terminal
CN109522258A (en) * 2018-10-18 2019-03-26 芜湖智久机器人有限公司 USB interface, electronic equipment, USB interface-based programming system and its method
CN109597637A (en) * 2018-12-10 2019-04-09 惠州Tcl移动通信有限公司 Force download device and the method for entering force download mode
CN109742608A (en) * 2018-12-19 2019-05-10 努比亚技术有限公司 A connection line and a method for processing downtime of a mobile terminal
CN110519422A (en) * 2019-08-12 2019-11-29 Oppo(重庆)智能科技有限公司 Custom model trigger circuit, printed circuit board, terminal device
CN110557748A (en) * 2019-07-29 2019-12-10 惠州Tcl移动通信有限公司 detection circuit based on control chip, mobile terminal and data line
CN110716891A (en) * 2019-10-09 2020-01-21 Oppo(重庆)智能科技有限公司 Forced downloading method, circuit, terminal equipment and data line
CN114301486A (en) * 2021-03-22 2022-04-08 海信集团控股股份有限公司 Debugging device and method for WiFi module
CN115801064A (en) * 2022-11-09 2023-03-14 维沃移动通信有限公司 Electronic device, download mode triggering method and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064582A (en) * 2010-12-28 2011-05-18 鸿富锦精密工业(深圳)有限公司 Terminal capable of supplying power for outside
CN102750252A (en) * 2012-05-29 2012-10-24 惠州Tcl移动通信有限公司 Circuit capable of reusing universal serial bus (USB)/ universal asynchronous receiver/ transmitter (UART) interfaces and electronic device using same
US20120284493A1 (en) * 2011-05-03 2012-11-08 Western Digital Technologies, Inc. Booting from a secondary storage device in order to accumulate disk drive performance data
CN103019991A (en) * 2012-12-03 2013-04-03 深圳市文鼎创数据科技有限公司 Interface system, switching method, USB key and UART terminal
CN104678197A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Test circuit
CN106534405A (en) * 2016-09-21 2017-03-22 青岛海信移动通信技术股份有限公司 Pin control method and smart terminal
US20180004238A1 (en) * 2016-06-30 2018-01-04 Conexant Systems, Llc Gate boosting circuit and method for an integrated power stage
CN107632949A (en) * 2017-09-30 2018-01-26 广东欧珀移动通信有限公司 Data line identification circuit, method and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064582A (en) * 2010-12-28 2011-05-18 鸿富锦精密工业(深圳)有限公司 Terminal capable of supplying power for outside
US20120284493A1 (en) * 2011-05-03 2012-11-08 Western Digital Technologies, Inc. Booting from a secondary storage device in order to accumulate disk drive performance data
CN102750252A (en) * 2012-05-29 2012-10-24 惠州Tcl移动通信有限公司 Circuit capable of reusing universal serial bus (USB)/ universal asynchronous receiver/ transmitter (UART) interfaces and electronic device using same
CN103019991A (en) * 2012-12-03 2013-04-03 深圳市文鼎创数据科技有限公司 Interface system, switching method, USB key and UART terminal
CN104678197A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Test circuit
US20180004238A1 (en) * 2016-06-30 2018-01-04 Conexant Systems, Llc Gate boosting circuit and method for an integrated power stage
CN106534405A (en) * 2016-09-21 2017-03-22 青岛海信移动通信技术股份有限公司 Pin control method and smart terminal
CN107632949A (en) * 2017-09-30 2018-01-26 广东欧珀移动通信有限公司 Data line identification circuit, method and terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522258A (en) * 2018-10-18 2019-03-26 芜湖智久机器人有限公司 USB interface, electronic equipment, USB interface-based programming system and its method
CN109327581A (en) * 2018-11-28 2019-02-12 努比亚技术有限公司 A kind of downloading switching device and mobile terminal
CN109597637B (en) * 2018-12-10 2022-03-25 惠州Tcl移动通信有限公司 Forced downloading device and method for entering forced downloading mode
CN109597637A (en) * 2018-12-10 2019-04-09 惠州Tcl移动通信有限公司 Force download device and the method for entering force download mode
CN109742608A (en) * 2018-12-19 2019-05-10 努比亚技术有限公司 A connection line and a method for processing downtime of a mobile terminal
CN109742608B (en) * 2018-12-19 2020-12-29 江苏格铭网络科技有限公司 A connection line and a method for processing downtime of a mobile terminal
CN110557748A (en) * 2019-07-29 2019-12-10 惠州Tcl移动通信有限公司 detection circuit based on control chip, mobile terminal and data line
CN110519422A (en) * 2019-08-12 2019-11-29 Oppo(重庆)智能科技有限公司 Custom model trigger circuit, printed circuit board, terminal device
CN110716891A (en) * 2019-10-09 2020-01-21 Oppo(重庆)智能科技有限公司 Forced downloading method, circuit, terminal equipment and data line
CN114301486A (en) * 2021-03-22 2022-04-08 海信集团控股股份有限公司 Debugging device and method for WiFi module
CN114301486B (en) * 2021-03-22 2024-06-04 海信集团控股股份有限公司 Debugging device and method for WiFi module
CN115801064A (en) * 2022-11-09 2023-03-14 维沃移动通信有限公司 Electronic device, download mode triggering method and readable storage medium
CN115801064B (en) * 2022-11-09 2024-09-10 维沃移动通信有限公司 Electronic device, download mode triggering method and readable storage medium

Similar Documents

Publication Publication Date Title
CN108647160A (en) USB force downloads circuit, mobile terminal, method for down loading and data line
CN109828688A (en) Screen damage processing method, mobile terminal and computer readable storage medium
CN112596625B (en) Electronic equipment, display control method and device
CN109068378A (en) The method, apparatus of mobile terminal and control mobile terminal breath screen
CN107678989A (en) UART and USB multiplexing circuit and mobile terminal
CN107635069A (en) UART and USB multiplexing circuit and mobile terminal
CN109189298A (en) A kind of language switching method and terminal
CN106558299A (en) The mode switching method and device of audio rendition
CN107391126A (en) A kind of method, terminal and computer-readable recording medium for lifting starting up speed
CN111651387B (en) Interface Circuits and Electronic Equipment
CN107066374B (en) A data processing method and mobile terminal
CN107704332A (en) Freeze screen solution method, mobile terminal and computer-readable recording medium
CN109873901A (en) A kind of screenshot method for managing resource and terminal, computer readable storage medium
CN109361807A (en) Information access control method, mobile terminal and computer readable storage medium
CN109828770A (en) A kind of method for upgrading software, terminal device and server
CN210894629U (en) A fuel gauge assembly and electronic device
CN108881596A (en) A kind of photographing information processing method, device and terminal
CN107872367A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN108710789B (en) Unlocking method and terminal equipment
CN107766089B (en) A system startup method and device
CN110147291A (en) Terminal and its log management-control method, computer readable storage medium
CN109739517A (en) Printed circuit board, terminal, firmware burning method and readable storage medium storing program for executing
CN109739454A (en) A screen display method and electronic device
CN109218526A (en) A kind of method of speech processing and mobile terminal
CN108650404A (en) Port start-up circuit, device and mobile 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181012

RJ01 Rejection of invention patent application after publication