CN107525997A - A kind of USB charging circuits short circuit detection method and power supply adaptor - Google Patents
A kind of USB charging circuits short circuit detection method and power supply adaptor Download PDFInfo
- Publication number
- CN107525997A CN107525997A CN201710755291.9A CN201710755291A CN107525997A CN 107525997 A CN107525997 A CN 107525997A CN 201710755291 A CN201710755291 A CN 201710755291A CN 107525997 A CN107525997 A CN 107525997A
- Authority
- CN
- China
- Prior art keywords
- adapter
- mobile terminal
- charging
- usb
- default
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/50—Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/0031—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/0036—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
Abstract
The invention discloses a kind of detection method and adapter of USB charging circuits void short circuit.The detection method includes step:Judge the USB adapter whether with mobile terminal establish charging physical connection;If so, obtain the output current of adapter described in prediction number and calculate the average value of the output current of the preset times;Compare the average value and judge current value with default imaginary short;And when the average value judges electric current more than the default imaginary short, judge to have empty short circuit between the adapter and the mobile terminal and give corresponding prompt message, the empty short circuit be Type C-terminals mouth on the USB adapter or the USB data line that is connected with the USB adapter on the power pins of Type C-terminal mouths made electrical contact with other pins on the power pins pin periphery.So, the detection method judges that the relation between current value can quickly know that the charging circuit whether there is the situation of imaginary short by the output current value and default empty short circuit that compare adapter.
Description
Technical field
The present invention relates to USB Charge Management technical fields, more particularly to a kind of USB charging circuits short circuit detection method and electricity
Source adapter.
Background technology
Mobile terminal (such as smart mobile phone, tablet personal computer etc.) turns into instrument indispensable in people's daily life, especially
Be mobile device various applications it is more and more extensive so that the electrical source consumption of mobile terminal is also increasing.Therefore, mobile terminal
The battery capacity carried is also increasing, and requirement of the people to the charging rate of mobile terminal is also more and more faster.
In order to meet the needs of mobile terminal quick charge, more and more producers use Type C interface (Type C interface
Include 24 pins) replace common Micro USB interfaces (common USB interface includes 5 pins).Due to Type C
The pin of interface is more and arrangement is closeer, so plug repeatedly cause Type C interface be easy to occur Vbus pins with
The situation that other pins near Vbus pins are connected.When Vbus pins are connected with other pins on periphery (following letter
Claim " imaginary short "), the electric current of charging circuit now may be hundreds of milliamperes, not up to charging circuit short circuit when overcurrent protection
Electric current, therefore overcurrent protection can not work to this micro-short circuit of TType C interface, so as to cause the electricity of Type C interface
Road continues the rise of micro-short circuit temperature and burns out Type C connectors, or even burns out mobile terminal.
It is so visible, it is necessary to which that the charging circuit of USB data line is detected with the presence or absence of the situation of above-mentioned empty short circuit
Handle and corresponding protection operation is provided, with call user's attention, avoid causing unnecessary loss.
The content of the invention
In view of this, the present invention proposes a kind of detection method and adapter of USB charging circuits void short circuit, above-mentioned to solve
Technical problem.
To achieve these goals, the detection method of USB charging circuits void short circuit provided in an embodiment of the present invention, runs on
On adapter, the adapter includes a Type C-terminal mouths, and the detection method comprises the following steps:
Judge whether to establish charging physical connection with mobile terminal;
When the adapter and the mobile terminal establish charging connection, the output electricity of the prediction time adapter is obtained
Flow and calculate the average value of the output current of the preset times;
Compare the average value and judge current value with default imaginary short;And
When the average current value judges current value more than the default imaginary short, the adapter and the shifting are judged
Empty short circuit be present between dynamic terminal and give corresponding prompt message, the empty short circuit is the Type C-terminal mouths of the adapter
Vbus pins and other Pin pins on the Vbus pins periphery make electrical contact with.
In some embodiments of the invention, a resistance has been disposed in series on the adapter VCC line, obtained each time
The charging current specifically includes:
Gather the voltage at the resistance both ends;
The voltage difference at the resistance both ends is calculated according to the voltage collected;And
Electric current by the resistance is calculated according to the voltage difference, wherein, it is equal to institute by the electric current of the resistance
State the output current of adapter.
In some embodiments of the invention, it is described when the average value of the output current is sentenced more than the default imaginary short
When powering off flow valuve, the step of judging to have short circuit between the adapter and the mobile terminal and give corresponding prompt message
Specifically include:
When the average value of the output current judges current value more than default imaginary short but is less than the 5 times default void
When short circuit judges current value, judge slight empty short circuit between the adapter and mobile terminal be present, and pass through default mode
Give the charging connection re-established between the mobile terminal or the suggestion for changing charging electric wire.
In some embodiments of the invention, the detection method reminded by default mode re-establish with it is described
Also include after charging connection or replacing charging electric wire step between mobile terminal:
Judge whether re-establish charging connection with the mobile terminal in default time interval;
If not re-establishing charging connection with the mobile terminal in default time interval, control the adapter
Output voltage be adjusted to 5 volts.
In some embodiments of the invention, it is described when the average value of the output current is sentenced more than the default imaginary short
When powering off flow valuve, the step of judging to have short circuit between the adapter and the mobile terminal and give corresponding prompt message
Specifically include:
When the default imaginary short of the average value of the output current more than 5 times judges current value, judge described suitable
Severe void short circuit between orchestration and mobile terminal be present, and control the charging connection between the cut-out and the mobile terminal
To stop charging to the mobile terminal.
In some embodiments of the invention, the detection method also includes step:When the average value of the output current
When judging current value less than the default imaginary short, judge to connect normally between the adapter and the mobile terminal.
In some embodiments of the invention, electricity is judged when the average value of the output current is less than the default imaginary short
During flow valuve, judge that normal step is connected between the adapter and the mobile terminal to be specifically included:When the output current
Average value when judging current value less than the default imaginary short, judge to connect between the adapter and mobile terminal it is normal,
The charging output voltage for readjusting the adapter is 5V, then controls the adapter to carry out charge protocol with mobile terminal
Communicate, readjust the output voltage of the adapter after sign off according to communication protocol content, make the output electricity of adapter
Pressure and/or electric current are equal to magnitude of voltage and/or current value set by the charge protocol.
In some embodiments of the invention, the detection method is obtaining the output current of adapter described in prediction number
And also include before calculating the average value step of the output current of the preset times:
The acquisition for sending the charge parameter for obtaining the mobile terminal to the mobile terminal by data signal line instructs;
Receive described obtain of mobile terminal response and instruct fed back charge parameter, and obtained from the charge parameter
The charging under-voltage protection voltage during mobile terminal charging is taken, wherein, overvoltage is also included in the charge parameter fed back and is filled
Electrical parameter;And
The input voltage of the adapter is adjusted according to accessed charging under-voltage protection voltage, wherein, after the adjustment
Output voltage be equal to the mobile terminal under-voltage protection voltage.
In addition, to achieve the above object, embodiments of the invention additionally provide a kind of adapter.The adapter includes one
Type C-terminal mouths, memory, processor are stored in the computer program that can be run on the memory and on the processor,
The step of detection method as described above is realized when the computer program is by the computing device.
In addition, to achieve the above object, embodiments of the invention additionally provide calculating described in a kind of computer-readable medium
Machine computer-readable recording medium is stored with the detection program of USB charging circuit void short circuits, when the detection program is held by least one processor
The step of short circuit detection method described above is realized during row.
Compared to prior art, the detection method and adapter of USB charging circuit imaginary shorts proposed by the invention are in institute
State after adapter and mobile terminal establish charging connection by USB charging wires, the charging circuit of preset times can be obtained, and count
Calculate the average value of the output current of accessed preset times, then further compare the average value of the output current with
Default imaginary short judges the size between current value.When the average value of the output current judges electric current more than default imaginary short
During value, then judge that the charging circuit between the USB adapter and mobile terminal has empty short circuit, and provide corresponding prompting to carry
Awake user pays attention to and corrected.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the hardware environment that a kind of USB charging circuits void short circuit detecting system provided in an embodiment of the present invention is run
Schematic diagram;
Fig. 3 is the schematic diagram of the program module of the USB adapter shown in Fig. 2;
Fig. 4 is the electrical block diagram of charging detecting model shown in Fig. 3;
Fig. 5 is a kind of step flow signal for charging circuit void short circuit detection method that first embodiment of the invention is provided
Figure;
The schematic diagram of the program module for the adapter that Fig. 6 is provided by first embodiment of the invention;
Fig. 7 is the step schematic flow sheet for the charging circuit void short circuit detection method that second embodiment of the invention is provided;
Fig. 8 is the schematic diagram of the program module for the adapter that second embodiment of the invention is provided;
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
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 follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to 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, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD 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, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted 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 (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact 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
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 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. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery adapter) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include 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
Voice data, phone directory etc.) etc..In addition, memory 109 can 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 whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as 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
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is run by a kind of USB charging circuits void short circuit detecting system provided in an embodiment of the present invention
Hardware environment schematic diagram, the USB charging circuit void short circuits detecting system include mobile terminal 100 described above, a USB
The USB charging wires 300 of adapter 200 and one.The USB adapter 200 is supplied by the USB charging wires 300 to mobile terminal 100
Electricity/and progress data communication.In the present embodiment, the USB adapter 200 includes the first USB interface 201, and the USB fills
Electric wire 300 includes a secondary USB interface 301 and one the 3rd USB interface 302, wherein, first USB interface 201 and the 2nd USB
Interface 301 is USB Type A interfaces, and the 3rd USB interface 302 is USB Typc C interface.The USB adapter 200 passes through
First USB interface 201 and the interface of secondary USB interface 301 carry out charging connection, the movement with the USB charging wires 300
Terminal 100 passes through the 3rd USB interface 302 (i.e. USB Type C interface) and interface unit 108 and the USB charging wires
300 carry out charging connection.In the present embodiment, the interface unit 108 is a power interface.The USB Type A interfaces with
The USB Type C interface comprises at least power pins (Vbus), the first data pin (D+), the second data pin (D-)
And grounding pin (GND) this four pins.
In another embodiment, the USB charging circuits void short circuit detecting system can only include USB adapter 200 and
Mobile terminal 100, wherein, the USB adapter 200 includes a USB Typc C interface.
Refer to Fig. 3, the USB adapter 200 include a power transfer module 210, an over-voltage over-current protection module 220,
One output voltage adjustment module 230, a current detection module 240, a voltage detection module 250 and a micro-control module 260.
The power transfer module 210 is drawn for alternating current to be converted into direct current electricity output to the power supply of USB adapter 200
Pin Bbus.According to the performance of USB adapter 200, the voltage of resulting direct current after the power transfer module 210 conversion
Usually 5 volts, 9 volts or 12 volts.
The over-voltage over-current protection module 220 is used to monitor the voltage exported after the power transfer module 210 conversion
Or/and electric current so that output voltage or/and electric current are in the working range of safety.For example, when the trouble free service of adapter
Output voltage is 5V, then when output voltage is higher than 6.5V, the over-voltage over-current protection module 220 judges that this voltage is adapted to USB
Device is dangerous, so switch S can be disconnected by micro-control module 260, so as to disconnect output channel.Simultaneously when adapter output electricity
When stream reaches the overcurrent protection threshold value of hardware setting, output current is limited in output current threshold value, such as:If current adapter rule
Lattice are 5V1A, then adapter maximum output current is limited in 1A.
The output voltage adjusting module 230 by the micro-control module 260 control, for adjusting USB adapter
Output voltage Vbus_out.
The current detection module 240 is used to monitor the electric current that the USB adapter is output to mobile terminal.Specifically, please
Referring to Fig. 4, the current detection module 240 includes a resistance R1 being connected on power line.The current detection module 240 passes through
Sampling resistor R1 both end voltages VR_N, VR_P, and calculated and be somebody's turn to do according to the resistance R1 both end voltages (VR_N, VR_P) collected
The pressure difference (VR_P-VR_N) at both ends, and calculate the pressure difference and resistance R1 ratio and can get USB adapter and export to movement
The electric current of terminal.It is equal to the charging current when adapter charges to the mobile terminal by the electric current of the resistance R1
Refering to Fig. 5, the step of Fig. 5 is a kind of detection method of USB charging circuits void short circuit provided in an embodiment of the present invention
Flow chart, the detection method of the USB charging circuits void short circuit are applied in above-mentioned USB adapter 200.In the present embodiment,
According to specific circumstances, the execution sequence of step can change in the flow chart shown in Fig. 3, and some steps can be omitted.Such as Fig. 3
Shown, the detection method comprises the following steps:
Step S510, judges whether US adapters with mobile terminal establish charging connection.If so, then enter step S520;
If it is not, then return to step S510.
In the embodiment of the present invention, when the USB adapter 200 is connected with the USB charging wires 300
It is described and the Type C interface (the 3rd USB interface 302) of the USB charging wires 300 with the mobile terminal 100 when being connected
Charging circuit void short circuit detecting system, which judges to establish between the USB adapter 200 and mobile terminal 100, charging connection.
In another specific embodiment of the present invention, when the USB adapter 200 receives the mobile terminal
During the charge request of 100 transmissions, the charging circuit void short circuit detecting system judges the USB adapter 200 and mobile terminal
Being established between 100 has charging connection.Wherein, the mobile terminal 100 can by the differential signal lines of USB charging wires (D+ and
D-) default differential signal is sent to the USB adapter 200 to trigger the charge request.
Certainly, in other embodiments, when the mobile terminal 100 receives the institute of USB adapter 200
During the information sended over, the charging circuit void short circuit detecting system judges the USB adapter 200 and mobile terminal 100
Between establish have charging connection.
Step S520, obtain the output current of adapter described in prediction number and calculate the output current of the preset times
Average value.
After the USB adapter 200 and mobile terminal 100 establish charging connection, the charging circuit void short circuit detection
System obtains the output current for the certain number for setting ground in advance, and calculates being averaged for the output current of the acquired preset times
Value.For example, obtaining an output current at interval of 10 seconds, and sequentially obtain the i.e. acquired output electricity of this 10 output currents
Flow for I0、I1、I2、13、……I9And calculate the average value Iavg of the output current accessed by this 10 times, i.e. Iavg=(I0+I1
+I2+13+……+I9)/10.It should be noted that the number of collection output current and each required interlude can be according to need
It is configured.
Specifically, in order to obtain the output current, resistance R1 is provided with series on the power line of the USB adapter 200,
Obtaining the output current every time includes step:
Gather the voltage at the resistance R1 both ends;
The voltage difference at the resistance R1 both ends is calculated according to the voltage collected;And
Pass through the electric current of the resistance according to the ratio calculation of the voltage difference and the resistance of the resistance R1, wherein, warp
Cross the resistance R1 the electric current be equal to the adapter to the mobile terminal charging when charging current.
Step S530, the average value of the output current judge the size of current value with default imaginary short.Work as institute
When stating average value and judging current value more than the default imaginary short, then into step S540;Described in being less than when the average value
When default imaginary short judges current value, then into step S550.
Step S540, judge that the charging circuit between the USB adapter and the mobile terminal has empty short circuit simultaneously
Give corresponding prompt message.The empty short circuit is the Vbus pins and the Vbus pin of the Type C-terminal mouths of the adapter
Other Pin pins electrical contact on pin periphery.
Specifically, when above-mentioned calculated average value more than pre-set imaginary short judge current value (such as should
When the imaginary short pre-set judges electric current for 10mA, the default imaginary short judges that electric current can be adjusted and set as needed
Put), then judge that the charging circuit between the USB adapter 200 and the mobile terminal 100 has empty short circuit, and control to
Give corresponding prompt message.For example, it can be prompted by specific light (such as red light) or the specific information of display
There is empty short circuit in the current charging circuit of user, so that user timely can pinpoint the problems and be corrected.
Step S550, judge that the charging circuit connection between the USB adapter and the mobile terminal is normal.
When above-mentioned calculated average value less than or equal to pre-set imaginary short judges current value, (such as this is pre-
If the imaginary short set judges electric current for 10mA), then show the charging between USB adapter 200 and the mobile terminal 100
Circuit connection is normal, can also be reminded by specific mode, such as can be reminded by green indicating lamp, to release use
Worry when family uses.
In another embodiment, when the average current value judges current value less than the default imaginary short, judge
Connect normal between the adapter and mobile terminal, the charging output voltage of the adapter is readjusted as 5V, then
Control the adapter to carry out charge protocol communication with mobile terminal, readjusted after sign off further according to communication protocol content
The output voltage of the adapter, make adapter output voltage and/or electric current be equal to the charge protocol set by magnitude of voltage
And/or current value, such as 9V.
In another concrete implementation mode, the detection method of the USB charging circuit void short circuits is before step S510, also
Comprise the following steps:
The USB adapter 200 is sent by the data signal line or data pin of charging wire to the mobile terminal 100
Obtain the acquisition instruction of the charge parameter of the mobile terminal.The mobile terminal 100 receives the acquisition and instructs and this is obtained
Instruction fetch responds the charge parameter to the USB adapter 200 feedback mobile terminal 100.The charge parameter is included
State under-voltage protection voltage when mobile terminal 100 charges.In another embodiment, the shifting is also included in the charge parameter
Over-pressed voltage when dynamic terminal 100 charges.In this way, USB adapter 200 receives the charge parameter of the feedback, and can be from the charging
The brownout voltage/when mobile terminal 100 charges and over-pressed voltage are got in parameter.
In addition, the USB adapter 200 can also adjust the output electricity of the adapter according to accessed brownout voltage
Pressure, wherein, the output voltage after the adjustment is equal to the brownout voltage of the mobile terminal.
Fig. 6 is referred to, Fig. 6 show the signal of the program module of the USB adapter 200 in first embodiment of the invention
Figure.As shown in fig. 6, the USB adapter 200 is in addition to including the program module shown in Fig. 2 and 3, in addition to a charging connects
Connect the comparison module 270 of detection module 260 and one.It should be noted that it should be noted that the module alleged by the present invention is a kind of
The processing unit (not shown) of the energy USB adapter 200 is performed and can complete some programmed instruction of specific function
Section.The concrete function of each functional module will be described in detail below.
The charging connection detection module 260 judges whether USB adapter 200 with mobile terminal 100 passes through charging wire 300
Establish charging connection.
Specifically, in certain specific embodiments of the invention, when the USB adapter 200 and the USB charging wires
300 are connected and the Type C interface of the USB charging wires 300 (the 3rd USB interface) is connected with the mobile terminal 100
When, the charging connection detection module 260, which judges to establish between the USB adapter 200 and mobile terminal 100, has charging to connect
Connect.
In another specific embodiment of the present invention, when the USB adapter 200 receives the mobile terminal
During the charge request of 100 transmissions, the charging connection detection module 260 judges the USB adapter 200 and mobile terminal 100
Between establish have charging connection.Wherein, the mobile terminal 100 can pass through the differential signal line (D+ and D-) of USB charging wires
Default differential signal is sent to the USB adapter 200 to trigger the charge request.
Certainly, in other embodiments, when the mobile terminal 100 receives the institute of USB adapter 200
During the information sended over, the charging connection detection module 260 is judged between the USB adapter 200 and mobile terminal 100
Foundation has charging connection.
When the charging connection module 202 judges that the USB adapter 200 passes through USB charging wires 300 and mobile terminal
100 when establishing charging connection, and the charging current that the current detection module 203 obtains prediction number simultaneously calculates the preset times
Charging current average value.
After the USB adapter 200 and mobile terminal 100 establish charging connection, the current detection module 203 obtains
The output current of certain number set in advance, and calculate the average value of the output current of the acquired preset times.For example,
An output current was obtained at interval of 10 seconds, and sequentially obtains the i.e. acquired output current of this 10 output currents and is followed successively by
I0、I1、I2、13、……I9, further calculate the average value Iavg, i.e. Iavg=(I of the output current accessed by this 10 times0
+I1+I2+13+……+I9)/10.It should be noted that the number of collection output current and each required interlude can roots
It is configured according to needs.
The average value for the output current that the current detection module 203 of comparison module 270 is calculated
The size of current value is judged with default imaginary short.
The average value that the output current is compared when the comparison module 270 is more than the default imaginary short judgement electricity
During flow valuve, the microprocessor 205 judges that the charging circuit between the USB adapter 200 and the mobile terminal 100 is present
Empty short circuit simultaneously gives corresponding prompt message.In embodiments of the present invention, the empty short circuit is the Type of the adapter
The Vbus pins of C-terminal mouth and other Pin pins on the Vbus pins periphery make electrical contact with.On the contrary, when the comparison module 270 compares
When relatively going out the average value and judging electric current less than or equal to the default imaginary short, the microprocessor 205 judge with it is described
Charging circuit connection between mobile terminal is normal.
Specifically, when the average value of above-mentioned calculated output current judges electric current more than pre-set imaginary short
Value (such as the default imaginary short set, when judging electric current for 10MA, the default imaginary short judges that electric current can enter as needed
Row adjustment and setting), then the microprocessor 205 judges filling between the USB adapter 200 and the mobile terminal 100
There is empty short circuit in circuit, and control and give corresponding prompt message.For example, specific light (such as red lamp can be passed through
Light) or show that specific information has empty short circuit with the charging circuit for prompting user current, so that user can timely have found to ask
Inscribe and corrected.On the contrary, when the average value of above-mentioned calculated output circuit be less than or equal to it is pre-set empty short
Road judges current value while judging electric current for 10Ma (such as the default imaginary short set), then show USB adapter 200 with it is described
Charging circuit connection between mobile terminal 100 is normal, can also be reminded by specific mode, such as can be referred to by green
Show that lamp is reminded, to release worry when user uses.
In another embodiment, the USB adapter 200 by the data signal line of charging wire or data pin to institute
State the acquisition instruction that mobile terminal 100 sends the charge parameter for obtaining the mobile terminal.The mobile terminal 100 receives this
Obtain instruction and the charge parameter to the USB adapter 200 feedback mobile terminal 100 is responded to acquisition instruction.Should
Charge parameter includes the under-voltage protection voltage when mobile terminal 100 charges.In another embodiment, the charge parameter
In also include over-pressed voltage when the mobile terminal 100 charges.In this way, USB adapter 200 receives the charging ginseng of the feedback
Number, and the brownout voltage/when mobile terminal 100 charges and over-pressed voltage can be got from the charge parameter.
In addition, the USB adapter 200 can also adjust the output electricity of the adapter according to accessed brownout voltage
Pressure, wherein, the output voltage after the adjustment is equal to the brownout voltage of the mobile terminal.
The detection method and adapter of above-mentioned provided USB charging circuit imaginary shorts are in the adapter and mobile terminal
After establishing charging connection by USB charging wires, the output current of preset times can be obtained, and calculates accessed default time
The average value of several output currents, the average value and default imaginary short for then further comparing the output current judge electricity
Size between flow valuve.When the average value of the output current judges current value more than default imaginary short, then judge that the USB is fitted
There is empty short circuit in the charging circuit between orchestration and mobile terminal, and provide and prompt with call user's attention and give more accordingly
Just.
Fig. 7 is referred to, Fig. 7 show the detection method of the USB charging circuit void short circuits in second embodiment of the invention
Step flow chart.The detection method of the USB charging circuit void short circuits is still applied in above-mentioned USB adapter 200.In this implementation
In example, according to specific circumstances, the execution sequence of step can change in the flow chart shown in Fig. 7, and some steps can be omitted.
As shown in fig. 7, the detection method comprises the following steps:
Step S710, judges whether US adapters with mobile terminal establish charging connection.If so, then enter step S720;
If it is not, then return to step S710.
In the embodiment of the present invention, when the USB adapter 200 is connected with the USB charging wires 300
It is described and the Type C interface (the 3rd USB interface 302) of the USB charging wires 300 with the mobile terminal 100 when being connected
Charging circuit void short circuit detecting system, which judges to establish between the USB adapter 200 and mobile terminal 100, charging connection.
In another specific embodiment of the present invention, when the USB adapter 200 receives the mobile terminal
During the charge request of 100 transmissions, the charging circuit void short circuit detecting system judges the USB adapter 200 and mobile terminal
Being established between 100 has charging connection.Wherein, the mobile terminal 100 can by the differential signal lines of USB charging wires (D+ and
D-) default differential signal is sent to the USB adapter 200 to trigger the charge request.
Certainly, in other embodiments, when the mobile terminal 100 receives the institute of USB adapter 200
During the information sended over, the charging circuit void short circuit detecting system judges the USB adapter 200 and mobile terminal 100
Between establish have charging connection.
Step S720, obtain the output current of adapter described in prediction number and calculate the output current of the preset times
Average value.
After the USB adapter 200 and mobile terminal 100 establish charging connection, the charging circuit void short circuit detection
System obtains the output current for the certain number for setting ground in advance, and calculates being averaged for the output current of the acquired preset times
Value.For example, obtaining an output current at interval of 10 seconds, and sequentially obtain the i.e. acquired output electricity of this 10 output currents
Flow for I0、I1、I2、13、……I9And calculate the average value Iavg of the output current accessed by this 10 times, i.e. Iavg=(I0+I1
+I2+13+……+I9)/10.It should be noted that the number of collection charging current and each required interlude can be according to need
It is configured.
Step S730, the average value of the output circuit judge the size of electric current with default imaginary short.When described
When the average value of output current judges current value more than the default imaginary short, then into step S540;When the output electricity
When the average value of stream judges current value less than the default imaginary short, then flow terminates.
Step S740, judge whether the default imaginary short more than 5 times judges current value to the average value;If so,
Then enter step S750;If not, into step S760.
Step S750:It is short to judge that the charging circuit between the USB adapter and the mobile terminal has severe void
Connect, and control the charging connection between the cut-out and the mobile terminal to stop charging to the mobile terminal.
Specifically, the side such as the language message of severe void short circuit or the LED of control point shiny red can be included by reporting
Formula informs in the current USB charging circuits of user severe void short circuit be present, please stop charging.Or when detecting the USB
When charging circuit has stressed empty short circuit, the output voltage cut-out by the power pins (Vbus) of USB adapter 200 or drop are controlled
Low is zero, and prompts user that the USB charging circuits have short circuit, please check the connection or more changer adapter or charging of charging circuit
Line.
Step S760, it is slight to judge that the charging circuit connection between the USB adapter and the mobile terminal is present
Empty short circuit, and the charging connection re-established between the mobile terminal is given by default mode or changes charging electric wire
Suggestion.
Specifically, it can be informed by lighting LED of orange etc. between user's USB adapter 200 and mobile terminal 100
In the presence of slight empty short circuit, and inform that user changes charging electric wire or re-establishes USB by text information or image information etc. and fit
Charging connection between orchestration 200 and mobile terminal 100.Wherein, the text information or figure can be shown by mobile terminal 100
Information, or the information is reported by language.
In another concrete implementation mode, step S760 " is being given by default mode and re-established and the shifting
Also include after the suggestion of charging connection or replacing charging electric wire between dynamic terminal ":
Judge that the USB adapter 200 fills with whether the mobile terminal 100 re-establishes in default time interval
Electrical connection.If it is not, the i.e. USB adapter 200 does not re-establish charging in default time interval with the mobile terminal 100
The output voltage of the USB adapter 200 is adjusted to 5 volts by connection, then control.
The detection method for the USB charging circuit void short circuits that second embodiment of the invention is provided is compared to first embodiment institute
The difference of the detection method of the USB charging circuit void short circuits of offer is further to be determined that the USB charging circuits are present short
Serious conditions are connect, so that user handles it or system gives corresponding measure such as reducing charging voltage to this automatically in time
Charging circuit is protected accordingly.
Correspondingly, Fig. 8 is referred to, Fig. 8 show the program module of the USB adapter in second embodiment of the invention
Schematic diagram.The USB adapter 200 includes charging detecting model 202, current detection module 203, comparison module 270 and microprocessor
Module 250.Wherein, the comparison module 270 further includes one first comparison module 2701 and one second comparison module 2702.
The charging detecting model 202, the function of current detection module 203 and foregoing function phase are same, and it is not described here in detail.Below by pin
The function of first comparison module 2701, the second comparison module 2702 and micro treatment module 250 is done and is further described in detail.
First comparison module 2701 is used for the average value of the output current and default imaginary short judges electricity
The size of flow valuve.When first comparison module 2701 judges that the average value of the output current is short more than the default void
When road judges current value, second comparison module 2702 further judges whether the average value of the output current is more than 5
The default imaginary short again judges current value.
When second comparison module 2702 judges that the average value of the output current is more than 5 times of the default void
When short circuit judges current value, the micro treatment module 250 judges the charging between the USB adapter and the mobile terminal
Be present severe void short circuit in circuit, and control the charging connection between the cut-out and the mobile terminal to stop to the shifting
Dynamic terminal charge.
In a concrete implementation mode, the micro treatment module 250 can be reported by mobile terminal 100 includes severe
The language message of empty short circuit or control mobile terminal 100 show a prompt message or prompt icon or control point shiny red
The modes such as LED (LED may be provided on USB adapter or USB charging wires) inform the current USB charging circuits of user
In severe void short circuit be present, please stop charging.Or when detecting that the USB charging circuits have stressed empty short circuit, control
The output voltage of the power pins (Vbus) of USB adapter 200 is cut off or is reduced to zero, and prompts user's USB charging electricity
There is short circuit in road, please check connection or more changer adapter or the charging wire of charging circuit.
When second comparison module 2702 judges that the average value of the output current is less than 5 times of the default void
When short circuit judges current value, the micro treatment module 250 judges the charging between the USB adapter and the mobile terminal
Slight empty short circuit be present in circuit, and given by default mode re-establish charging connection between the mobile terminal or
Change the suggestion of charging electric wire.
In a concrete implementation mode, the micro treatment module 250 can by light orange LED (orange
LED is arranged on USB adapter or USB charging wires) deposited to inform between user's USB adapter 200 and mobile terminal 100
In slight empty short circuit, and by controlling mobile terminal 100 to show that text information or image information etc. inform that user changes charging electricity
Line re-establishes charging connection between USB adapter 200 and mobile terminal 100.
Further, the micro treatment module 250 also judge in default time interval the USB adapter 200 with
Whether the mobile terminal 100 re-establishes charging connection.If not re-establishing charging connection, i.e., the USB adapter 200 is pre-
If time interval in do not re-establish charging connection with the mobile terminal 100, the control of micro treatment module 250 will described in
The output voltage of USB adapter 200 is adjusted to 5 volts.
The detection method for the USB charging circuit void short circuits that second embodiment of the invention is provided is compared to first embodiment institute
The difference of the detection method of the USB charging circuit void short circuits of offer is further to be determined that the USB charging circuits are present short
Serious conditions are connect, so that user handles it or system gives corresponding measure such as reducing charging voltage to this automatically in time
Charging circuit is protected accordingly.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method is can be with
Completed by the related hardware of at least one programmed instruction, at least one program can be stored in USB as shown in Figure 2
In the memory (not shown) of adapter, and it can be performed by the microprocessor 250, at least one program is by described micro-
Processor 250 realizes following steps when performing:
Judge whether to establish charging physical connection with mobile terminal by the type C interface of charging wire;
When the adapter establishes charging connection by the type C interface of charging wire with the mobile terminal, obtain pre-
Survey the output current of adapter described in number and calculate the average value of the charging current of the preset times;
The average value and default imaginary short for comparing the output judge current value;And
When the average current value of the output judges current value more than the default imaginary short, judge the adapter with
Empty short circuit between the mobile terminal be present and give corresponding prompt message, the empty short circuit is the Type C of the adapter
The power pins of port and other pins on the power pins pin periphery make electrical contact with.
Alternatively, a resistance has been disposed in series on the power line of the adapter, the processor 250 obtains each time
The charging current is additionally operable to realize following steps:
Gather the voltage at the resistance both ends;
The voltage difference at the resistance both ends is calculated according to the voltage collected;And
Electric current by the resistance is calculated according to the voltage difference, wherein, it is equal to institute by the electric current of the resistance
Charging current when stating adapter to mobile terminal charging.
It is described when the average current value judges electric current more than the default imaginary short, judge the adapter with it is described
Short circuit between mobile terminal be present and specifically included the step of giving corresponding prompt message:
When the average value of the output current judges current value more than default imaginary short but is less than the 5 times default void
When short circuit judges current value, judge slight empty short circuit between the adapter and mobile terminal be present, and pass through default mode
Give the charging connection re-established between the mobile terminal or the suggestion for changing charging electric wire.
Alternatively, the processor 250 is additionally operable to realize following steps:
Judge whether re-establish charging connection with the mobile terminal in default time interval;
If not re-establishing charging connection with the mobile terminal in default time interval, control the adapter
Output voltage be adjusted to 5 volts.
Alternatively, the processor 250 is additionally operable to realize following steps:When the average value of the output current is more than 5 times
Default imaginary short when judging current value, judge severe void short circuit between the adapter and mobile terminal be present, and control
System cuts off the charging connection between the mobile terminal to stop charging to the mobile terminal by described.
Alternatively, the processor 250 is additionally operable to realize following steps:User's charging electricity is reminded by default mode
There is short circuit in road, and prompt to re-establish the charging connection between the mobile terminal or change data wire.
Alternatively, the processor 250 is additionally operable to realize following steps:
The acquisition for sending the charge parameter for obtaining the mobile terminal to the mobile terminal by data signal line instructs;
Receive described obtain of mobile terminal response and instruct fed back charge parameter, and obtained from the charge parameter
Take the charging under-voltage protection voltage during mobile terminal charging;And
The output voltage of the adapter is adjusted according to accessed charging under-voltage protection voltage, wherein, after the adjustment
Output voltage be equal to the mobile terminal under-voltage protection voltage.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method is can be with
Completed by the related hardware of at least one programmed instruction, at least one program can be stored in one and computer-readable deposit
In storage media, at least one program upon execution, comprises the following steps:
Judge whether to establish charging physical connection with mobile terminal by the type C interface of charging wire;
When the adapter establishes charging connection by the type C interface of charging wire with the mobile terminal, obtain pre-
Survey the output current of adapter described in number and calculate the average value of the output current of the preset times;
The average value and default imaginary short for comparing the output current judge current value;And
When the average value of the output current judges current value more than the default imaginary short, judge the adapter with
Empty short circuit between the mobile terminal be present and give corresponding prompt message, the empty short circuit is the Type C of the adapter
The power pins of port and other pins on the power pins pin periphery make electrical contact with.
Alternatively, at least one program upon execution, also realizes following steps:
Gather the voltage at the resistance both ends;
The voltage difference at the resistance both ends is calculated according to the voltage collected;And
Electric current by the resistance is calculated according to the voltage difference, wherein, it is equal to institute by the electric current of the resistance
State the output current of adapter.
Alternatively, at least one program upon execution, also realizes following steps:
When the output current average current value be more than default imaginary short judge current value but less than 5 times this preset
Imaginary short when judging current value, judge slight empty short circuit between the adapter and mobile terminal be present, and by default
Mode gives the charging connection re-established between the mobile terminal or the suggestion for changing charging electric wire.
Alternatively, at least one program upon execution, also realizes following steps:
Judge whether re-establish charging connection with the mobile terminal in default time interval;
If not re-establishing charging connection with the mobile terminal in default time interval, control the adapter
Output voltage be adjusted to 5 volts.
Alternatively, at least one program upon execution, also realizes following steps:
When the default imaginary short of the average value of the output current more than 5 times judges current value, judge described suitable
Severe void short circuit between orchestration and mobile terminal be present, and control the charging connection between the cut-out and the mobile terminal
To stop charging to the mobile terminal.
Alternatively, at least one program upon execution, also realizes following steps:
Remind user's charging circuit short circuit to be present by default mode, and prompt to re-establish and the mobile terminal
Between charging connection or change data wire.
Alternatively, at least one program upon execution, also realizes following steps:
The acquisition for sending the charge parameter for obtaining the mobile terminal to the mobile terminal by data signal line instructs;
Receive described obtain of mobile terminal response and instruct fed back charge parameter, and obtained from the charge parameter
Take the charging under-voltage protection voltage during mobile terminal charging;And
The output voltage of the adapter is adjusted according to accessed charging under-voltage protection voltage, wherein, after the adjustment
Output voltage be equal to the mobile terminal under-voltage protection voltage.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of detection method of USB charging circuits void short circuit, runs on USB adapter, it is characterised in that the detection side
Method comprises the following steps:
Judge the USB adapter whether with mobile terminal establish charging physical connection;
When the adapter and the mobile terminal establish charging connection, the output current of adapter described in prediction number is obtained
And calculate the average value of the output current of the adapter of the preset times;
The average value and default imaginary short for comparing the output current judge current value;And
When the average value of the output current judges current value more than the default imaginary short, judge the USB adapter with
Empty short circuit between the mobile terminal be present and give corresponding prompt message, the empty short circuit is on the USB adapter
The power pins of Type C-terminal mouths on Type C-terminals mouth or the USB data line being connected with the USB adapter are drawn with the power supply
Other pins electrical contact on pin pin periphery.
2. detection method as claimed in claim 1 a, it is characterised in that electricity has been disposed in series on the adaptor power supplies line
Resistance, obtains the charging current and specifically includes each time:
Gather the voltage at the resistance both ends;
The voltage difference at the resistance both ends is calculated according to the voltage collected;And
Electric current by the resistance is calculated according to the voltage difference, wherein, it is equal to by the electric current of the resistance described suitable
The output current of orchestration.
3. detection method as claimed in claim 2, it is characterised in that described when the average value of the output current is pre- more than this
If imaginary short when judging current value, judge to have short circuit between the adapter and the mobile terminal and give corresponding carry
The step of showing information specifically includes:
When the average value of the output current judges current value more than default imaginary short but is less than the 5 times default imaginary short
When judging current value, judge slight empty short circuit between the adapter and mobile terminal be present, and give by default mode
Re-establish the charging connection between the mobile terminal or change the suggestion of charging electric wire.
4. detection method as claimed in claim 3, it is characterised in that the detection method is reminding weight by default mode
It is new to establish also including after the charging connection between the mobile terminal or replacing charging electric wire step:
Judge whether re-establish charging connection with the mobile terminal in default time interval;
If not re-establishing charging connection with the mobile terminal in default time interval, control the defeated of the adapter
Go out voltage and be adjusted to 5 volts.
5. detection method as claimed in claim 2, it is characterised in that described when the average value of the output current is pre- more than this
If imaginary short when judging current value, judge to have short circuit between the adapter and the mobile terminal and give corresponding carry
The step of showing information specifically includes:
When the default imaginary short of the average value of the output current more than 5 times judges current value, the adapter is judged
Severe void short circuit between mobile terminal be present, and control the charging connection between the cut-out and the mobile terminal to stop
Only charged to the mobile terminal.
6. detection method as claimed in claim 5, it is characterised in that when the average value of the output current is default less than this
When imaginary short judges current value, judge to connect normally between the adapter and the mobile terminal.
7. detection method as claimed in claim 6, it is characterised in that when the average value of the output current is default less than this
When imaginary short judges current value, judge that normal step is connected between the adapter and the mobile terminal to be specifically included:
When the average value of the output current judges current value less than the default imaginary short, the adapter and movement are judged
Connected normally between terminal, the charging output voltage for readjusting the adapter is 5V, then controls the adapter with moving
Dynamic terminal carries out charge protocol communication, readjusts the output electricity of the adapter after sign off according to communication protocol content
Pressure, make adapter output voltage and/or electric current be equal to the charge protocol set by magnitude of voltage and/or current value.
8. the detection method as described in claim 1 to 7 any one, it is characterised in that the detection method is obtaining prediction
Also include before the output current of adapter described in number and the average value step for calculating the output current of the preset times:
The acquisition for sending the charge parameter for obtaining the mobile terminal to the mobile terminal by data signal line instructs;
Receive described obtain of mobile terminal response and instruct fed back charge parameter, and institute is obtained from the charge parameter
Charging under-voltage protection voltage during mobile terminal charging is stated, wherein, overvoltage charging ginseng is also included in the charge parameter fed back
Number;And
The output voltage of the adapter is adjusted according to accessed charging under-voltage protection voltage, wherein, it is defeated after the adjustment
Go out the under-voltage protection voltage that voltage is equal to the mobile terminal.
9. a kind of USB adapter, including a Type C-terminal mouths, memory, processor are stored on the memory and can be in institutes
The computer program run on processor is stated, the computer program is realized such as claim 1 to 8 during the computing device
Any one of detection method the step of.
10. a kind of computer-readable medium, the computer-readable medium storage has the detection program of USB charging circuit short circuits,
The circuit as any one of claim 1 to 8 is realized when the detection program is by least one computing device
The step of short circuit detection method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710755291.9A CN107525997A (en) | 2017-08-29 | 2017-08-29 | A kind of USB charging circuits short circuit detection method and power supply adaptor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710755291.9A CN107525997A (en) | 2017-08-29 | 2017-08-29 | A kind of USB charging circuits short circuit detection method and power supply adaptor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107525997A true CN107525997A (en) | 2017-12-29 |
Family
ID=60682442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710755291.9A Pending CN107525997A (en) | 2017-08-29 | 2017-08-29 | A kind of USB charging circuits short circuit detection method and power supply adaptor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107525997A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108270266A (en) * | 2018-01-22 | 2018-07-10 | 维沃移动通信有限公司 | A kind of charging method and charger |
CN108279361A (en) * | 2018-04-17 | 2018-07-13 | 南昌黑鲨科技有限公司 | A kind of test method and test circuit of the charging port of intelligent terminal |
CN109245195A (en) * | 2018-08-20 | 2019-01-18 | 奇酷互联网络科技(深圳)有限公司 | The method, apparatus and storage device of mobile terminal and charging process |
CN109901960A (en) * | 2019-02-27 | 2019-06-18 | 广州启辰电子科技有限公司 | A kind of USB loads integrality detection method from device drives |
CN111740458A (en) * | 2020-06-19 | 2020-10-02 | 歌尔科技有限公司 | Earphone box, charging detection method and device thereof, and storage medium |
CN111835074A (en) * | 2020-01-09 | 2020-10-27 | 广东小天才科技有限公司 | Multi-output charging head |
CN113589202A (en) * | 2020-04-30 | 2021-11-02 | 华为技术有限公司 | Detection circuit and detection device for charging interface |
CN114301029A (en) * | 2021-12-30 | 2022-04-08 | 深圳市永联科技股份有限公司 | Method and related device for judging short circuit position in charging circuit |
CN116087825A (en) * | 2022-12-05 | 2023-05-09 | 江苏帝奥微电子股份有限公司 | Charging interface foreign matter short circuit detection chip, detection device and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204216574U (en) * | 2014-11-28 | 2015-03-18 | 浙江师范大学 | A kind of current foldback circuit of power supply adaptor |
CN105630655A (en) * | 2015-12-17 | 2016-06-01 | 小米科技有限责任公司 | Charging connection prompting method and apparatus |
CN106549468A (en) * | 2017-01-25 | 2017-03-29 | 宇龙计算机通信科技(深圳)有限公司 | A kind of mobile terminal charging data line and charger |
CN106814835A (en) * | 2016-12-11 | 2017-06-09 | 乐视控股(北京)有限公司 | A kind of over-current protection method, device and electronic equipment |
CN106972598A (en) * | 2017-03-31 | 2017-07-21 | 北京小米移动软件有限公司 | The detection method and device of short circuit |
-
2017
- 2017-08-29 CN CN201710755291.9A patent/CN107525997A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204216574U (en) * | 2014-11-28 | 2015-03-18 | 浙江师范大学 | A kind of current foldback circuit of power supply adaptor |
CN105630655A (en) * | 2015-12-17 | 2016-06-01 | 小米科技有限责任公司 | Charging connection prompting method and apparatus |
CN106814835A (en) * | 2016-12-11 | 2017-06-09 | 乐视控股(北京)有限公司 | A kind of over-current protection method, device and electronic equipment |
CN106549468A (en) * | 2017-01-25 | 2017-03-29 | 宇龙计算机通信科技(深圳)有限公司 | A kind of mobile terminal charging data line and charger |
CN106972598A (en) * | 2017-03-31 | 2017-07-21 | 北京小米移动软件有限公司 | The detection method and device of short circuit |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108270266A (en) * | 2018-01-22 | 2018-07-10 | 维沃移动通信有限公司 | A kind of charging method and charger |
CN108279361A (en) * | 2018-04-17 | 2018-07-13 | 南昌黑鲨科技有限公司 | A kind of test method and test circuit of the charging port of intelligent terminal |
CN108279361B (en) * | 2018-04-17 | 2020-06-02 | 南昌黑鲨科技有限公司 | Test method and test circuit for charging port of intelligent terminal |
CN109245195A (en) * | 2018-08-20 | 2019-01-18 | 奇酷互联网络科技(深圳)有限公司 | The method, apparatus and storage device of mobile terminal and charging process |
CN109901960A (en) * | 2019-02-27 | 2019-06-18 | 广州启辰电子科技有限公司 | A kind of USB loads integrality detection method from device drives |
CN109901960B (en) * | 2019-02-27 | 2023-02-28 | 广州启辰电子科技有限公司 | USB slave device drive loading integrity detection method |
CN111835074A (en) * | 2020-01-09 | 2020-10-27 | 广东小天才科技有限公司 | Multi-output charging head |
CN113589202A (en) * | 2020-04-30 | 2021-11-02 | 华为技术有限公司 | Detection circuit and detection device for charging interface |
CN113589202B (en) * | 2020-04-30 | 2023-01-13 | 华为技术有限公司 | Detection circuit and detection device for charging interface |
CN111740458A (en) * | 2020-06-19 | 2020-10-02 | 歌尔科技有限公司 | Earphone box, charging detection method and device thereof, and storage medium |
CN114301029A (en) * | 2021-12-30 | 2022-04-08 | 深圳市永联科技股份有限公司 | Method and related device for judging short circuit position in charging circuit |
CN114301029B (en) * | 2021-12-30 | 2023-08-18 | 深圳市永联科技股份有限公司 | Method and related device for judging short circuit position in charging circuit |
CN116087825A (en) * | 2022-12-05 | 2023-05-09 | 江苏帝奥微电子股份有限公司 | Charging interface foreign matter short circuit detection chip, detection device and method |
CN116087825B (en) * | 2022-12-05 | 2023-09-29 | 江苏帝奥微电子股份有限公司 | Charging interface foreign matter short circuit detection chip, detection device and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107525997A (en) | A kind of USB charging circuits short circuit detection method and power supply adaptor | |
CN107831386A (en) | Identification charging abnormal method, equipment, mobile terminal and computer-readable storage medium | |
CN108491123A (en) | A kind of adjusting application program image target method and mobile terminal | |
CN109672254A (en) | A kind of charging control circuit, terminal device and control method | |
CN109788136A (en) | Information display method and mobile terminal | |
CN108494030A (en) | A kind of wireless charging method, terminal and transmitting end equipment | |
CN109359017A (en) | A kind of state information display method and mobile terminal | |
CN110518707A (en) | Transmitting end equipment, receiving device and wireless charging method | |
CN107516917A (en) | Charge control method, terminal, intelligent charge equipment and computer-readable storage medium | |
CN108282000A (en) | Wireless charging method, wireless transmitter, wireless charging receiving terminal and adapter | |
CN110267145A (en) | A kind of state display method and terminal device | |
CN107834640A (en) | A kind of charging method and terminal | |
CN109739300A (en) | A kind of method of controlling antenna and terminal | |
CN109842872A (en) | Working mode control method, Bluetooth headset, terminal and computer storage medium | |
CN110365853A (en) | A kind of reminding method and electronic equipment | |
CN109888928A (en) | A kind of terminal and wireless charging control method | |
CN109976688A (en) | A kind of screen display method and device | |
CN109684174A (en) | Mobile terminal outward appearance change method, control device, mobile terminal and storage medium | |
CN108279842A (en) | A kind of function controlling method, function controlling device and terminal device | |
CN110098651A (en) | A kind of charging method, device, electronic equipment and readable storage medium storing program for executing | |
CN109888882A (en) | A kind of communication means, terminal device and power supply adaptor | |
CN108649716A (en) | A kind of method for transmitting signals, receiving terminal, transmitting terminal and terminal device | |
CN108718360A (en) | A kind of charging method and mobile terminal | |
CN109286720A (en) | A kind of the main screen selection method and device of multi-screen mobile terminal | |
CN108924911A (en) | A kind of starting wifi hotspot shares the method and device of network |
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: 20171229 |
|
RJ01 | Rejection of invention patent application after publication |