CN106972598A - The detection method and device of short circuit - Google Patents
The detection method and device of short circuit Download PDFInfo
- Publication number
- CN106972598A CN106972598A CN201710209512.2A CN201710209512A CN106972598A CN 106972598 A CN106972598 A CN 106972598A CN 201710209512 A CN201710209512 A CN 201710209512A CN 106972598 A CN106972598 A CN 106972598A
- Authority
- CN
- China
- Prior art keywords
- electric current
- adapter
- power circuit
- circuit
- short
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 51
- 238000000034 method Methods 0.000 claims abstract description 23
- 230000005611 electricity Effects 0.000 claims description 13
- 230000008859 change Effects 0.000 claims description 11
- 230000001681 protective effect Effects 0.000 claims 1
- 238000012360 testing method Methods 0.000 abstract description 7
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 5
- 230000005236 sound signal Effects 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 108700025151 PD protocol Proteins 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000011469 building brick Substances 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H02J7/027—
-
- 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
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/00304—Overcurrent protection
Abstract
This disclosure relates to which a kind of short-circuit detection method and device, methods described includes:Obtain the first electric current of adapter output end;Obtain the second electric current of the power circuit input of user equipment;Detect whether first electric current and second electric current are equal;When first electric current and unequal second electric current, determine that the adapter is in short-circuit condition with the current loop that the power circuit is constituted.The disclosure can determine whether currently whether occur short circuit to the charge circuit of user equipment by adapter by the way that whether test adaptor output current and power circuit input current are equal, and then short-circuit condition is dealt with time.
Description
Technical field
The embodiment of the present disclosure is related to electronic technology field, more particularly to a kind of short-circuit detection method and device.
Background technology
With continuing to develop for electronic equipment, electronic equipment plays more and more important role in people live, respectively
Class of electronic devices such as mobile phone, computer, massage apparatus etc. bring great convenience for the life of people.
However, these current electronic equipments need, by driven by power, usually, to pass through power adaptation bar none
Device (or charger) charges to electronic equipment.Power supply adaptor one end is electrically connected with exchanging, and the other end and electronic equipment fill
Electrical interface is connected, however, this charging modes are while bringing convenience, some potential safety hazards is also resulted in, for example, charging
Mouth has foreign matter entrance, or is used in more moist environment (bathroom), different during by power supply adaptor electron equipment charge
Thing pollution or wet environment etc. can cause the short circuit of charging inlet, and now charging current can be between charger and charging inlet
Current loop is formed, short circuit is caused, the charging inlet of short circuit can largely generate heat when electric current is larger, if user sends out not in time
Existing, gently then electronic equipment causes damage, heavy then cause and catch fire.
The content of the invention
The disclosure provides a kind of short-circuit detection method and device, and equipment charge is occurring by adapter to detect
Short circuit, is reduced due to the generation of dangerous situation caused by short circuit.
In a first aspect, the embodiment of the present disclosure provides a kind of short-circuit detection method, methods described includes:
Obtain the first electric current of adapter output end;
Obtain the second electric current of the power circuit input of user equipment;
Detect whether first electric current and second electric current are equal;
When first electric current and unequal second electric current, determine that the adapter is constituted with the power circuit
Current loop be in short-circuit condition.
The technical scheme provided by this disclosed embodiment can include the following benefits:Electricity is exported by test adaptor
Whether stream is equal with power circuit input current to can determine whether currently whether the charge circuit of user equipment is sent out by adapter
Raw short circuit, and then short-circuit condition is dealt with time.
With reference on the other hand, in a kind of implementation being likely to occur on the other hand, the acquisition adapter is exported
The first electric current, including:
Obtain the output voltage of adapter and the input voltage of power circuit;
Obtain the cable resistance between adapter and power circuit;
It is true according to the cable resistance of the input voltage of the output voltage of the adapter and power circuit, the adapter
Fixed first electric current.
The technical scheme provided by this disclosed embodiment can include the following benefits:Pass through the output voltage of adapter
And the difference of the input voltage of power circuit and cable resistance can draw the first electric current, the first electric current drawn it is more accurate and
The actual current value of adapter output current can be reflected.
It is described to determine the adapter in a kind of implementation being likely to occur on the other hand with reference on the other hand
The current loop constituted with the power circuit includes in short-circuit condition:
When first electric current from it is equal with second electric current change to unequal with second electric current when, according to institute
The trend that the first electric current drops to second electric current is stated, it is determined that in short-circuit condition.
The technical scheme provided by this disclosed embodiment can include the following benefits:Is dropped to according to the first electric current
The trend of two electric currents determines short-circuit condition, and can determine that short circuit occurs for current loop according to the trend, and is the detection of short circuit
Help is provided with repairing.
It is described to determine the adapter in a kind of implementation being likely to occur on the other hand with reference on the other hand
It is in the current loop that the power circuit is constituted after short-circuit condition, in addition to:
The protection signal for stopping the first electric current of output is sent to the adapter.
The technical scheme provided by this disclosed embodiment can include the following benefits:Adapter is set to receive protection
Stopping the conversion and output of voltage and/or electric current in time during signal, to avoid the infringement caused to user equipment in time.
It is described to be sent out to the adapter in a kind of implementation being likely to occur on the other hand with reference on the other hand
The protection signal for stopping the first electric current of output is sent, including:
The current limit of the power circuit is released, to produce instantaneous protection electric current in the power circuit, according to described
Instantaneous protection electric current sends the protection signal for stopping the first electric current of output to the adapter;
Wherein, the adapter is produced overcurrent protection according to the protection signal, and then stop output first electricity
Stream.
The technical scheme provided by this disclosed embodiment can include the following benefits:Instantaneous protection electric current can excite guarantor
The output of signal is protected, is released by the current protection of user's device power source circuit and forbids having conveniently realized the defeated of protection signal
Go out.
It is described to determine the adapter in a kind of implementation being likely to occur on the other hand with reference on the other hand
It is in the current loop that the power circuit is constituted after short-circuit condition, methods described also includes:Output represents to stop charging
Prompt message.
The technical scheme provided by this disclosed embodiment can include the following benefits:By prompt message to user
Prompting is current to have stopped charging, and points out user to detect adapter, adaptation cable or user equipment, convenient use person
The potential danger of user equipment is excluded in time, it is ensured that the security of user equipment.
Second aspect, the embodiment of the present disclosure additionally provides a kind of short-circuit detection means, and described device includes:
First acquisition module, the first electric current for obtaining adapter output end;
Second acquisition module, the second electric current of the power circuit input for obtaining user equipment;
Detection module, for detecting whether first electric current and second electric current are equal;
Short-circuit determining module, for when first electric current and unequal second electric current, determining the adapter
Short-circuit condition is in the current loop that the power circuit is constituted.
With reference on the other hand, in a kind of possible embodiment on the other hand, first acquisition module includes:
Voltage acquisition submodule, for obtaining the output voltage of adapter and the input voltage of power circuit;
Resistance acquisition submodule, for obtaining the cable resistance between adapter and power circuit;
Submodule is handled, for the output voltage and the input voltage of power circuit according to the adapter, described suitable
The cable resistance of orchestration determines first electric current.
With reference on the other hand, in a kind of possible embodiment on the other hand, the short-circuit determining module also includes
Trend determination sub-module, the trend determination sub-module is used for when first electric current is changed to from equal with second electric current
With second electric current it is unequal when, the trend of second electric current is dropped to according to first electric current, it is determined that in short circuit
State.
With reference on the other hand, in a kind of possible embodiment on the other hand, described device also includes:
Output module is protected, stops the protection signal of the first electric current of output for being sent to the adapter.
With reference on the other hand, in a kind of possible embodiment on the other hand, the protection output module includes:
Release submodule, the current limit for releasing the power circuit, to produce instantaneous protect in the power circuit
Protect electric current;It is additionally operable to send the protection signal for stopping the first electric current of output to the adapter according to the instantaneous protection electric current;
Wherein, the protection output module is additionally operable to make the adapter produce overcurrent protection according to the protection signal,
And then stop output first electric current.
With reference on the other hand, in a kind of possible embodiment on the other hand, the judgement power circuit occurs short
After road, described device also includes:Output module is pointed out, for exporting the prompt message for representing to stop charging.
The third aspect, the embodiment of the present disclosure additionally provides a kind of device for realizing detection, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the first electric current of adapter output end;
Obtain the second electric current of the power circuit input of user equipment;
Detect whether first electric current and second electric current are equal;
When first electric current and unequal second electric current, determine that the adapter is constituted with the power circuit
Current loop be in short-circuit condition.
The technical scheme provided by this disclosed embodiment can include the following benefits:Pass through the dress for realizing detection
Put realize to adapter and power circuit composition current loop detection, to avoid the generation of short-circuit conditions in time, to
Family equipment has safely provided guarantee.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of main flow chart of short-circuit detection method according to an exemplary embodiment.
Fig. 2 is a kind of overall flow figure of short-circuit detection method according to an exemplary embodiment.
Fig. 3 is schematic diagram when determining the first electric current by cable resistance according to an exemplary embodiment.
Fig. 4 is by current diagram during adaptor charge according to an exemplary embodiment.
Fig. 5 is a kind of main block diagram of short-circuit detection means according to an exemplary embodiment.
Fig. 6 is the composition frame chart of the first acquisition module according to an exemplary embodiment.
Fig. 7 is a kind of overall schematic block diagram of short-circuit detection means according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the device of detection method for realizing short circuit according to an exemplary embodiment.
Embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the disclosure, rather than restriction of this disclosure.It also should be noted that, in order to just
The part related to the disclosure rather than entire infrastructure are illustrate only in description, accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.It is therein to be permitted although each step to be described as to the processing of order in flow chart
Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged, when its operation
The processing can be terminated during completion, it is also possible to the other steps being not included in accompanying drawing.Processing can be corresponded to
In method, function, code, subroutine, subprogram etc..
The disclosure relates generally to a kind of short-circuit detection method and device, its mainly apply to using external adapter to
In the scene that the power circuit of family equipment is charged, it passes through the circuit to external adapter and the power circuit of user equipment
Whether junction, which occurs short circuit, is detected, to realize the short-circuit conditions for finding occur in time in charging, it is to avoid due to charging
Short circuit cause to the damage of user equipment, the generation for the even serious situation such as catch fire of lossing.
The present embodiment is applicable to carry out power circuit of the user equipment such as mobile terminal, computer with adapter
In the case of charging, this method can be performed by the detection means of power circuit, wherein the detection means can by software and/
Or hardware is realized, usually can be integrated in user equipment.
The main flow chart for the short-circuit detection method that Fig. 1 provides for the embodiment of the present disclosure, the present embodiment is applicable to adaptation
The electric current of device output inputs unequal and determines that the situation of short circuit occurs for charging with source current, as shown in figure 1, methods described can
Comprise the following steps:
In step 110, the first electric current of adapter output end is obtained;
Adapter (adapter, adapter) is an independent hardware interface device, it is allowed to the electrical interface of hardware and user
The charging inlet (or the information interface being integrated with charging inlet) of equipment (device being electrically charged) is electrically connected with, and it can
Interconnecting device of power supply adaptor, USB (Universal Serial Bus, USB) and serial ports etc. is thought, rear
For example when by passing through computer between the serial ports of USB line connection computer equipment and the serial ports of mobile device in a kind of embodiment
When equipment is to the charging of mobile device, first electric current can for the serial ports of the computer equipment output current.
The adapter can electrically connect alternating current being converted to the straight of the rated voltage that user equipment needs with common city
Stream electricity, the direct current for the rated voltage that first electric current can export for the adapter.
In a kind of feasible embodiment, the electric current for disclosure exemplary embodiment in charging as shown in Figure 4
Schematic diagram is flowed to, first electric current can be by obtaining charge protocol example built-in in adapter or in charging cable used
Standard is obtained such as USB PD agreements (USB Power Delivery Specification, the power supply specification of USB)
The current value Icable of true first electric current.
In the step 120, the second electric current of the power circuit input of user equipment is obtained;
The power circuit of user equipment is typically electrical connected with power supply module, and power circuit can be used for forbidding more than a voltage
Or the voltage or electric current of electric current fixed number value are charged with preventing power supply module to be damaged to power supply module.
Second electric current can be detected by the power circuit of user equipment, to draw the electric current of second electric current
Value Iinput.
In step 130, detect whether first electric current and second electric current are equal;
The current value Icable of first electric current and the current value Iinput of second electric current size are contrasted, to sentence
Breaking, whether it is equal.
The testing result that can be drawn in this step may include two kinds of " equal " and " unequal ".
In step 140, when first electric current and unequal second electric current, determine the adapter with it is described
The current loop of power circuit composition is in short-circuit condition.
When testing result is " equal ", that is, external adapter and power circuit composition loop is being used to enter power supply module
In the case that row is charged normal, the first electric current of the adapter output end output is the second of the power circuit input
Electric current, i.e., the value of first electric current is equal with the value of second electric current in the case where charging normal.
When testing result is " unequal ", that is, using external adapter with power circuit composition loop with to power supply module
In the case of carrying out improper charging, such as when occurring charging short circuit, the first electric current of the adapter output end output is divided
Into the second electric current and short circuit current flow Ishort of the power circuit input, i.e., described first in the case of short circuit of charging
The value of electric current and the value and unequal, Icable=Iinput+Ishort of second electric current, now can then be determined described suitable
Orchestration is in short-circuit condition with the current loop that the power circuit is constituted.
What the method for disclosure exemplary embodiment was inputted by comparing the first electric current that adapter is exported with source current
Whether the size of the value of the second electric current is equal to judge whether charging circuit occurs short circuit, when first electric current and described second
Determine that short circuit occurs for current charge circuit when electric current is unequal, guarantee is provided for the safe charging of user equipment, it is to avoid by
The occurrence of all kinds of property losses that charging short circuit is caused, the user equipment in disclosure exemplary embodiment includes moving
Polytype user equipmenies such as terminal, notebook computer, electronic toy are moved, and the example user do not enumerated more than is set
It is standby to be limited.
Fig. 2 is the overall flow schematic diagram of the short-circuit detection method of disclosure exemplary embodiment, as shown in Fig. 2 root
According to the testing result in step 130, methods described also includes:
In step 150, when first electric current and equal second electric current, current charged state is kept;
Now determine that the adapter is in normal condition with the current loop that the power circuit is constituted and does not occur
Short circuit, now can also generate the prompt message just in safe charging.
In disclosure exemplary embodiment, after the step 140, the inspection in good grounds step 140 may also include
The method that short circuit of the result to charging circuit is handled in time is surveyed, with equal to charging circuit, adapter and user equipment etc.
Carry out short-circuit protection, at the same time or rear line output represent stop charging prompt message so that user discovers short in time
Road situation is to reduce loss, and Fig. 2 is disclosure exemplary embodiment, as shown in Fig. 2 methods described may also include following step
Suddenly:
In a step 160, the protection signal for stopping the first electric current of output is sent to the adapter.
The protection signal is used for the adapter and stops output current when receiving, to cut off the adapter and power supply
Electric connection between circuit.
In a kind of feasible embodiment, it may include in the step 160:
The current limit of the power circuit is released, to produce instantaneous protection electric current in the power circuit, according to described
Instantaneous protection electric current sends the protection signal for stopping the first electric current of output to the adapter;
Wherein, the adapter is produced overcurrent protection according to the protection signal, and then stop output first electricity
Stream.
The power circuit is usually provided with current limit, to limit the maximum current peak inputted in the power circuit,
Ideally 20% more than the current limit can cause overload protection, when releasing the current limit of the power circuit,
The instantaneous protection electric current more than the current limit value set is produced in the power circuit, now the protection signal is generated,
The protection signal makes the adapter produce overcurrent protection, and then stops output first electric current.
The overcurrent protection of the adapter can be realized by present embodiment to cut off the electrical of adapter and power circuit
Connection, for example will be described suitable by electromagnetic structure or mechanical structure in the other embodiment of disclosure exemplary embodiment
The interface of the output end of orchestration and the power circuit realized in mode be connected, can be by sending described in corresponding signal makes
Electromagnetic structure or mechanical structure quick acting are to disconnect the company of the output end of the adapter and the interface of the power circuit
Connect, disclosure exemplary embodiment is sincerely made an explanation by taking above-mentioned embodiment as an example, but is not limited with above-mentioned embodiment.
In step 170, output represents to stop the prompt message of charging.
Prompt message described in this step can be flashed by the tinkle of bells, word, the tinkle of bells combination word, breath light, screen flicker
Prompting is made Deng the user for user equipment, so that the user of user equipment can make source to charging short-circuit conditions in time
Reason.
In this step export prompt message when, may also be combined with the step 150 when detect structure for charge normal when
Prompt message so that user understands the situation of the charging circuit under the current state that detects, to determine current charging electricity
The state on road.
The prompt message made when charging normal can make difference with the prompt message for representing to stop charging, such as with not
With text information, different the tinkle of bells, screen flicker mode etc. to avoid user from obscuring current charged state.
Pass through embodiment of the present disclosure, it is possible to achieve cut-out adapter and power circuit when it is determined that charging circuit is short-circuit
Between electric connection, and various forms of prompt messages are exported to user according to different testing results, allow user to filling
The overall condition of electricity is all had gained some understanding.
In another implement scene of disclosure exemplary embodiment, as shown in figure 3, being obtained in the step 110 suitable
First electric current of orchestration output, it may include following steps:
In the step 310, the output voltage of adapter and the input voltage of power circuit are obtained;
The output voltage of the adapter is V1, and it can also pass through USB PD agreements (USB Power Delivery
Specification, the power supply specification of USB) obtain, the input voltage of the power circuit is V2, and it can lead to
The interlock circuit crossed in user equipment is detected and obtained.
In step 320, the cable resistance between adapter and power circuit is obtained;
The cable resistance R can pass through USB PD agreements (the USB Power Delivery built in cable
Specification, the power supply specification of USB) obtain.
USB PD agreements (USB Power Delivery Specification, the power supply specification of USB)
Communication realize be by by the modulates information of protocol layer into the signal of certain frequency and be coupled to VBUS (Votage bus, always
Line is powered) it has been pre-configured with magnitude of voltage, current value and resistance to realize in the process of user equipment and adapter communications, adapter
Value, when adapter and user equipment are realized and communicated, adapter sends the built-in information of USB PD protocol layers into user equipment,
The built-in information includes magnitude of voltage, current value and output cord resistance value of adapter output end etc., and user equipment is directly read
Taking the adapter, (in a kind of possible mode, the built-in information of USB PD protocol layers can also be stored in the interior of the cable
Put in chip) associated voltage, electric current or resistance data, you can obtain the input of the cable resistance R and the power circuit
Voltage V2.
In a step 330, according to the input voltage of the output voltage of the adapter and power circuit, the adapter
Cable resistance determine first electric current.
When user equipment insertion adapter is charged, the electric current that user equipment end measurement power circuit is actually entered is
Iinput, measurement cable resistance is R, and adapter output voltage V1, user equipment input voltage V2, now works as charge cable
On electric current Icable=(V1-V2)/R, that is, get first electric current, measured when electric current Icable and user equipment
When input current Iinput is unequal, then it can determine that now adapter and the current loop that power circuit is constituted are short in charging
Line state.
The acquisition of first electric current can be realized by the method for disclosure exemplary embodiment, a kind of more intelligent
Can be stored with the rated voltage of its output, associated current value in mode, in the adapter, when needed according to corresponding request
Directly the load voltage value or associated current value of storage are sent to requesting party to request unit, the disclosure is exemplary to be implemented
The acquisition modes of first electric current of example can be with above-mentioned implementation formula acquisition, but is not limited thereto.
In another implement scene of disclosure exemplary embodiment, with reference to shown in Fig. 2, the step 140 may include:
When first electric current from it is equal with second electric current change to unequal with second electric current when, according to institute
The trend that the first electric current drops to second electric current is stated, it is determined that in short-circuit condition.
Charged state may be influenceed by such as occurring environmental change (there was dampness in the air, cup spilling) in charging process, be made just
The current loop that adapter in normal charging condition is constituted with power circuit changes, i.e., be converted to by normal condition short
Line state, then now first electric current and second electric current turned to by equal change it is unequal, now, according to the first electric current with
The trend that change over condition such as the first electric current between second electric current drops to the second electric current is determined at current charge circuit
In short-circuit condition.
The trend of second electric current, such as connection in adapter and power circuit are dropped to according to first electric current
When locating the generation short circuit of (charging inlet) place, then first electric current is split being formed here the second electricity of short circuit current flow and input
Stream, then first electric current drops to the second electric current here, and its position for occurring short circuit is can determine that according to its downward trend, with
Help the detection of location of short circuit.
A kind of signaling process figure/structural representation for short-circuit detection means that Fig. 5 provides for the embodiment of the present disclosure, the dress
Putting can be realized by software and/or hardware, can be realized by the detection method of short circuit.As illustrated, the present embodiment can more than
State there is provided a kind of short-circuit detection means based on embodiment, it mainly includes the acquisition of the first acquisition module 510, second
Module 520, detection module 530 and short-circuit determining module 540.
First acquisition module 510 therein, the first electric current for obtaining adapter output end;
Second acquisition module 520 therein, the second electric current of the power circuit input for obtaining charging equipment;
Detection module 530 therein, for detecting whether first electric current and second electric current are equal;
Short-circuit determining module 540 therein, for when first electric current and unequal second electric current, determining institute
State adapter and be in short-circuit condition with the current loop that the power circuit is constituted.
And state keeps module 550, for when first electric current and equal second electric current, it is ensured that hold current
Charged state.
In another implement scene of disclosure exemplary embodiment, as shown in fig. 6, first acquisition module 510
Including:
Voltage acquisition submodule 610, for obtaining the output voltage of adapter and the input voltage of power circuit;
Resistance acquisition submodule 620, for obtaining the cable resistance between adapter and power circuit;
Submodule 630 is handled, for the output voltage and the input voltage of power circuit according to the adapter, described
The cable resistance of adapter determines first electric current.
In another implement scene of disclosure exemplary embodiment, it is true that the short-circuit determining module 540 includes trend
Stator modules, the trend determination sub-module be used for when first electric current from it is equal with second electric current change to it is described
When second electric current is unequal, the trend of second electric current is dropped to according to first electric current, it is determined that in short-circuit condition.
In another implement scene of disclosure exemplary embodiment, as shown in fig. 7, described device also includes:
Output module 710 is protected, stops the protection signal of the first electric current of output for being sent to the adapter.
With reference on the other hand, in a kind of possible embodiment on the other hand, the protection output module 710 is wrapped
Include:
Release submodule, the current limit for releasing the power circuit, to produce instantaneous protect in the power circuit
Protect electric current;It is additionally operable to send the protection signal for stopping the first electric current of output to the adapter according to the instantaneous protection electric current;
Wherein, the protection output module 710 is additionally operable to make the adapter produce excessively stream guarantor according to the protection signal
Shield, and then stop output first electric current.
In another implement scene of disclosure exemplary embodiment, the judgement power circuit occurs after short circuit,
Described device also includes:Output module 720 is pointed out, for exporting the prompt message for representing to stop charging.
The short-circuit detection means provided in above-described embodiment can perform short provided in any embodiment in the disclosure
The detection method on road, possesses the execution corresponding functional module of this method and beneficial effect, is not described in detail in the above-described embodiments
Ins and outs, reference can be made to the short-circuit detection method provided in disclosure any embodiment.
The embodiment of the present disclosure additionally provides a kind of device for realizing detection, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the first electric current of adapter output end;
Obtain the second electric current of the power circuit input of charging equipment;
Detect whether first electric current and second electric current are equal;
When first electric current and unequal second electric current, determine that the adapter is constituted with the power circuit
Current loop be in short-circuit condition.
The processor is additionally configured to:First electric current for obtaining adapter output, including:
Obtain the output voltage of adapter and the input voltage of power circuit;
Obtain the cable resistance between adapter and power circuit;
It is true according to the cable resistance of the input voltage of the output voltage of the adapter and power circuit, the adapter
Fixed first electric current.
The processor is additionally configured to:It is described to determine at the current loop that the adapter is constituted with the power circuit
Include in short-circuit condition:
When first electric current from it is equal with second electric current change to unequal with second electric current when, according to institute
The trend that the first electric current drops to second electric current is stated, it is determined that in short-circuit condition.
The processor is additionally configured to:It is described to determine at the current loop that the adapter is constituted with the power circuit
After short-circuit condition, in addition to:
The protection signal for stopping the first electric current of output is sent to the adapter.
The processor is additionally configured to:It is described that the protection signal for stopping the first electric current of output is sent to the adapter,
Including:
The current limit of the power circuit is released, to produce instantaneous protection electric current in the power circuit, according to described
Instantaneous protection electric current sends the protection signal for stopping the first electric current of output to the adapter;
Wherein, the adapter is produced overcurrent protection according to the protection signal, and then stop output first electricity
Stream.
The processor is additionally configured to:It is described to determine at the current loop that the adapter is constituted with the power circuit
After short-circuit condition, methods described also includes:Output represents to stop the prompt message of charging.
Fig. 8 is a kind of frame for being used to realize the device 800 of the detection method of short circuit according to an exemplary embodiment
Figure.For example, device 800 can be mobile phone, computer, digital broadcast terminal, messaging device, game console is put down
Panel assembly, medical treatment device, body-building device, personal digital assistant etc..
Reference picture 8, device 800 can include following one or more assemblies:Processor 802, memory 804, power supply group
Part 806, multimedia groupware 808, audio-frequency assembly 810, input/output (I/O) interface 812, sensor cluster 814, and communication
Component 816.
The integrated operation of the usual control device 800 of processor 802, such as with display, call, data communication, camera
The operation operation associated with record operation.Processor 802 can carry out execute instruction including one or more processors 820, with
Complete all or part of step of above-mentioned method.In addition, processor 802 can include one or more modules, it is easy to processing
Interaction between device 802 and other assemblies.For example, processor 802 can include multi-media module, to facilitate multimedia groupware
Interaction between 808 and processor 802.
Memory 804 is configured as storing various types of data supporting the operation in device 800.These data are shown
Example includes the instruction of any application program or method for being operated on device 800, and contact data, telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or Nonvolatile memory devices or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides power supply for the various assemblies of device 800.Power supply module 806 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing power supply for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers
Body component 808 includes a front camera and/or rear camera.When device 800 be in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and
Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set
Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 is provide interface between processor 802 and peripheral interface module, above-mentioned peripheral interface module can be with
It is keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and locking
Button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect opening/closed mode of device 800, the relative positioning of component is for example described
Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in not any physical contact
The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other devices.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing device (DSPD), programmable logic components (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for performing the above method.
In another implement scene of disclosure exemplary embodiment, a kind of non-transitory including instructing is additionally provided
Computer-readable recording medium, such as memory 804 including instruction, above-mentioned instruction can be held by the processor 802 of device 800
Row to complete the above method, the non-transitorycomputer readable storage medium can be ROM (Read-Only Memory, only
Rdma read), random access memory (Random-Access Memory, RAM), CD-ROM (Compact Disc Read-
Only Memory, read-only optical disc), tape, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device is performed so that mobile terminal is able to carry out a kind of short-circuit detection method, and methods described includes:
Obtain the first electric current of adapter output end;
Obtain the second electric current of the power circuit input of charging equipment;
Detect whether first electric current and second electric current are equal;
When first electric current and unequal second electric current, determine that the adapter is constituted with the power circuit
Current loop be in short-circuit condition.
The storage medium is additionally configured to:First electric current for obtaining adapter output, including:
Obtain the output voltage of adapter and the input voltage of power circuit;
Obtain the cable resistance between adapter and power circuit;
It is true according to the cable resistance of the input voltage of the output voltage of the adapter and power circuit, the adapter
Fixed first electric current.
The storage medium is additionally configured to:It is described to determine the current loop that the adapter is constituted with the power circuit
Include in short-circuit condition:
When first electric current from it is equal with second electric current change to unequal with second electric current when, according to institute
The trend that the first electric current drops to second electric current is stated, it is determined that in short-circuit condition.
The storage medium is additionally configured to:It is described to determine the current loop that the adapter is constituted with the power circuit
After short-circuit condition, in addition to:
The protection signal for stopping the first electric current of output is sent to the adapter.
The storage medium is additionally configured to:It is described that the protection letter for stopping the first electric current of output is sent to the adapter
Number, including:
The current limit of the power circuit is released, to produce instantaneous protection electric current in the power circuit, according to described
Instantaneous protection electric current sends the protection signal for stopping the first electric current of output to the adapter;
Wherein, the adapter is produced overcurrent protection according to the protection signal, and then stop output first electricity
Stream.
The storage medium is additionally configured to:It is described to determine the current loop that the adapter is constituted with the power circuit
After short-circuit condition, methods described also includes:Output represents to stop the prompt message of charging.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (13)
1. a kind of short-circuit detection method, it is characterised in that methods described includes:
Obtain the first electric current of adapter output end;
Obtain the second electric current of the power circuit input of user equipment;
Detect whether first electric current and second electric current are equal;
When first electric current and unequal second electric current, the electricity that the adapter is constituted with the power circuit is determined
Flow back to road and be in short-circuit condition.
2. detection method according to claim 1, it is characterised in that the first electric current of the acquisition adapter output, bag
Include:
Obtain the output voltage of adapter and the input voltage of power circuit;
Obtain the cable resistance between adapter and power circuit;
Institute is determined according to the cable resistance of the input voltage of the output voltage of the adapter and power circuit, the adapter
State the first electric current.
3. detection method according to claim 1, it is characterised in that the determination adapter and the power circuit
The current loop of composition includes in short-circuit condition:
When first electric current from it is equal with second electric current change to unequal with second electric current when, according to described
One electric current drops to the trend of second electric current, it is determined that in short-circuit condition.
4. detection method according to claim 1, it is characterised in that the determination adapter and the power circuit
The current loop of composition is in after short-circuit condition, in addition to:
The protection signal for stopping the first electric current of output is sent to the adapter.
5. detection method according to claim 4, it is characterised in that described sent to the adapter stops output first
The protection signal of electric current, including:
The current limit of the power circuit is released, to produce instantaneous protection electric current in the power circuit, according to described instantaneous
Protective current sends the protection signal for stopping the first electric current of output to the adapter;
Wherein, the adapter is produced overcurrent protection according to the protection signal, and then stop output first electric current.
6. detection method according to claim 1, it is characterised in that the determination adapter and the power circuit
The current loop of composition is in after short-circuit condition, and methods described also includes:Output represents to stop the prompt message of charging.
7. a kind of short-circuit detection means, it is characterised in that described device includes:
First acquisition module, the first electric current for obtaining adapter output end;
Second acquisition module, the second electric current of the power circuit input for obtaining user equipment;
Detection module, for detecting whether first electric current and second electric current are equal;
Short-circuit determining module, for when first electric current and unequal second electric current, determining the adapter and institute
The current loop for stating power circuit composition is in short-circuit condition.
8. detection means according to claim 7, it is characterised in that first acquisition module includes:
Voltage acquisition submodule, for obtaining the output voltage of adapter and the input voltage of power circuit;
Resistance acquisition submodule, for obtaining the cable resistance between adapter and power circuit;
Submodule is handled, for output voltage and the input voltage of power circuit, the adapter according to the adapter
Cable resistance determine first electric current.
9. detection means according to claim 7, it is characterised in that the short-circuit determining module also includes trend and determines son
Module:The trend determining module is used for when first electric current is changed to and the described second electricity from equal with second electric current
When flowing unequal, the trend of second electric current is dropped to according to first electric current, it is determined that in short-circuit condition.
10. detection means according to claim 7, it is characterised in that described device also includes:
Output module is protected, stops the protection signal of the first electric current of output for being sent to the adapter.
11. detection means according to claim 10, it is characterised in that the protection output module includes:
Release submodule, the current limit for releasing the power circuit, to produce instantaneous protection electricity in the power circuit
Stream;The protection signal for stopping the first electric current of output is sent to the adapter according to the instantaneous protection electric current;
Wherein, the protection output module is additionally operable to make the adapter produce overcurrent protection according to the protection signal, and then
Stop output first electric current.
12. detection means according to claim 7, it is characterised in that described device also includes:Output module is pointed out, is used
Represent to stop the prompt message of charging in output.
13. a kind of device for realizing detection, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the first electric current of adapter output end;
Obtain the second electric current of the power circuit input of user equipment;
Detect whether first electric current and second electric current are equal;
When first electric current and unequal second electric current, the electricity that the adapter is constituted with the power circuit is determined
Flow back to road and be in short-circuit condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209512.2A CN106972598B (en) | 2017-03-31 | 2017-03-31 | Short circuit detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710209512.2A CN106972598B (en) | 2017-03-31 | 2017-03-31 | Short circuit detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106972598A true CN106972598A (en) | 2017-07-21 |
CN106972598B CN106972598B (en) | 2020-09-11 |
Family
ID=59336634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710209512.2A Active CN106972598B (en) | 2017-03-31 | 2017-03-31 | Short circuit detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106972598B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107525997A (en) * | 2017-08-29 | 2017-12-29 | 努比亚技术有限公司 | A kind of USB charging circuits short circuit detection method and power supply adaptor |
CN107565637A (en) * | 2017-09-11 | 2018-01-09 | 深圳天珑无线科技有限公司 | A kind of charge protection device and charging system |
CN107706985A (en) * | 2017-10-31 | 2018-02-16 | 北京小米移动软件有限公司 | terminal charging method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105334420A (en) * | 2014-06-27 | 2016-02-17 | 联想(北京)有限公司 | Information processing method and electronic device |
-
2017
- 2017-03-31 CN CN201710209512.2A patent/CN106972598B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105334420A (en) * | 2014-06-27 | 2016-02-17 | 联想(北京)有限公司 | Information processing method and electronic device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107525997A (en) * | 2017-08-29 | 2017-12-29 | 努比亚技术有限公司 | A kind of USB charging circuits short circuit detection method and power supply adaptor |
CN107565637A (en) * | 2017-09-11 | 2018-01-09 | 深圳天珑无线科技有限公司 | A kind of charge protection device and charging system |
CN107706985A (en) * | 2017-10-31 | 2018-02-16 | 北京小米移动软件有限公司 | terminal charging method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106972598B (en) | 2020-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107843802A (en) | Internal short-circuit detection method and device | |
US11128148B2 (en) | Reverse charging device, and method and device for regulating reverse charging current | |
CN105550568B (en) | The method and device of mobile terminal data protection | |
CN105356529B (en) | The reminding method and device of quick-charge state | |
CN105045690B (en) | Test the method and device of terminal | |
CN104298547A (en) | Terminal setting method and device | |
CN106972598A (en) | The detection method and device of short circuit | |
CN106329635A (en) | Terminal charging method and device | |
CN104779420B (en) | Method for charging batteries and device | |
CN107703348A (en) | The detection method and device of smart jack | |
CN105720644A (en) | Charging control method and device and terminal device | |
JP2015146162A (en) | power supply system | |
CN107331910A (en) | Charging method and device | |
CN106169798A (en) | High-voltage charging system, high-voltage charging battery and terminal unit | |
US10852798B2 (en) | Power supply control method and apparatus for power strip, and storage medium | |
CN105630655B (en) | A kind of method and apparatus of prompt charging connection | |
US11205906B2 (en) | Charging processing method, terminal device and storage medium | |
CN106877451B (en) | Charging port short-circuit protection method and device | |
CN104410900B (en) | A kind of method and device for controlling the indicator light being installed on smart machine | |
CN107706985A (en) | terminal charging method and device | |
CN106026232A (en) | Detecting method and apparatus for USB port type | |
CN107681727A (en) | The control method and device of electronic equipment | |
CN109959835A (en) | Charge short-circuit detection method and device | |
CN104202470B (en) | Terminal supplying power control method and device | |
CN109962507A (en) | Charge port short-circuit protection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |