CN105759103A - Method, device and terminal for detecting maximum output current of adapter - Google Patents

Method, device and terminal for detecting maximum output current of adapter Download PDF

Info

Publication number
CN105759103A
CN105759103A CN201610201238.XA CN201610201238A CN105759103A CN 105759103 A CN105759103 A CN 105759103A CN 201610201238 A CN201610201238 A CN 201610201238A CN 105759103 A CN105759103 A CN 105759103A
Authority
CN
China
Prior art keywords
current
electric current
charging circuit
adapter
main charging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610201238.XA
Other languages
Chinese (zh)
Other versions
CN105759103B (en
Inventor
蔡志富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610201238.XA priority Critical patent/CN105759103B/en
Publication of CN105759103A publication Critical patent/CN105759103A/en
Priority to PCT/CN2016/092479 priority patent/WO2017166555A1/en
Application granted granted Critical
Publication of CN105759103B publication Critical patent/CN105759103B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/02Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from ac mains by converters
    • H02J7/04Regulation of charging current or voltage

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

An embodiment of the invention provides a method, device and terminal for detecting a maximum output current of an adapter. According to a source current currently set for the adapter, a circulating current in an auxiliary charging circuit is set to be a known current, thus a main charging circuit only needs to return a circulating current thereof, if the adapter has a capability of outputting the source current currently set for the adapter, a working state returned b the main charging current is a valid state, and the circulating current of the main charging circuit can be returned. If the adapter does not have a capability of outputting the source current currently set for the adapter, the working state returned by the main charging circuit is a failure state, and the problem in the prior art that the circulating current in the auxiliary charging circuit cannot be detected. Thus the purpose of detecting the maximum output current of the adapter by a terminal having a dual-channel charging circuit can be achieved.

Description

A kind of method of test adaptor maximum output current, device and terminal
Technical field
The present invention relates to circuit engineering field, particularly relate to a kind of method of test adaptor maximum output current, device and terminal.
Background technology
Along with popularizing of terminal quick-charge function, increasing terminal all supports the function of quick charge, and the charging IC (integratedcircuit, integrated circuit) of terminal can be the single channel charging IC of series connection can also be dual pathways charging IC.Single channel charging IC is in series by main charging circuit and auxiliary charging circuit.Dual pathways charging IC is formed in parallel by main charging circuit and auxiliary charging circuit.
When terminal is charged, the connection of power supply and terminal is set up often through adapter, the size of adapter output electric current determines the efficiency of terminal charge, for the terminal possessing single channel charging IC, master chip in main charging circuit can detect the size of the electric current pulling adapter, owing to main charging circuit and auxiliary charging circuit are connected, so the electric current that both pull adapter is consistent, the maximum output current of adapter therefore can be determined by the size of the electric current that master chip detects.
Inventor finds in the process realize the invention, for the terminal possessing dual pathways charging IC, owing to main charging circuit and auxiliary charging circuit are in parallel, so the circulating current sum of the circulating current of main charging circuit and auxiliary charging circuit is only the standard of gauge adapter maximum output current.But auxiliary charging circuit can not return current, therefore also cannot draw the circulating current sum of main charging circuit and auxiliary charging circuit, thus can not the maximum output current of test adaptor.
Summary of the invention
Therefore, embodiments providing a kind of method of test adaptor maximum output current, device and terminal, the terminal to solve to possess in prior art dual pathways charging circuit can not the problem of maximum output current of test adaptor.
For achieving the above object, the present invention provides following technical scheme:
A kind of method of test adaptor maximum output current, it is applied to terminal, the charge integrated circuit of described terminal includes main charging circuit and auxiliary charging circuit, described main charging circuit and auxiliary charging circuit are in parallel, and described terminal is that described adapter is provided with at least two and draws electric current, drawing selection one electric current to draw electric current as the electric current that draws of current setting from described at least two, described method includes:
A1, according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current;
A2, drawing under electric current at described current setting, detect the duty that described main charging circuit returns;
A3, the duty returned when described main charging circuit is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, then described adapter is provided with at least two draws in electric current by described, value draws electric current higher than the electric current that draws of the value drawing electric current of described current setting as current setting, return and perform A1, until the duty that described main charging circuit returns is failure state, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
Preferably, also include:
A4, when described main charging circuit return duty be failure state time, described adapter is provided with at least two draws in electric current by described, value draws electric current lower than the electric current that draws of the value drawing electric current of described current setting as current setting, return and perform A1, until the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, draw electric current as the maximum output current of described adapter the described current setting.
Preferably, also include:
A5, when described main charging circuit return duty be failure state, described in judging, described adapter is provided with at least two and draws in electric current, whether value is minimum draw electric current lower than the electric current that draws of the value drawing electric current of described current setting, if, then enter step A6, if it is not, then enter step A3;
A6, using described terminal be that described adapter is arranged minimum draw electric current as the maximum output current of described adapter.
Wherein, described step A1 specifically for:
According to drawing electric current for described adapter current setting, the depositor of the auxiliary chip in described auxiliary charged electrical circuit writes described current known.
A kind of device of test adaptor maximum output current, it is applied to terminal, the charge integrated circuit of described terminal includes main charging circuit and auxiliary charging circuit, described main charging circuit and auxiliary charging circuit are in parallel, and described terminal is that described adapter is provided with at least two and draws electric current, drawing selection one electric current to draw electric current as the electric current that draws of current setting from described at least two, described device includes:
Module is set, for according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current;
Detection module, for drawing under electric current at described current setting, detects the duty that described main charging circuit returns;
First processing module, duty for returning when described main charging circuit is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, value is drawn electric current higher than the electric current that draws of the value drawing electric current of described current setting as current setting, trigger and described module is set, until when the duty of described main charging circuit return is failure state, triggering the first maximum output current and determine module;
Described first maximum output current determines module, detect that the duty that described main charging circuit returns is failure state for described second processing module, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
Preferably, also include:
Second processing module, for when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value draws electric current lower than the electric current that draws of the value drawing electric current of described current setting as current setting, trigger and described module is set, until when the duty of described main charging circuit return is effective status, and the circulating current that returns of described main charging circuit and described current known sum are equal to when drawing electric current of described current setting, trigger the second maximum output current and determine module;
Described second maximum output current determines module, detect that the duty that described main charging circuit returns is effective status for described first processing module, and the circulating current that returns of described main charging circuit and described current known sum are equal to when drawing electric current of described current setting, draw electric current as the maximum output current of described adapter the described current setting.
Preferably, also include:
Judge module, duty for returning when described main charging circuit is failure state, described in judging, described adapter is provided with at least two and draws in electric current, whether value is minimum draw electric current lower than the electric current that draws of the value drawing electric current of described current setting, if, then trigger and determine module, if it is not, then trigger the first processing module;
Described determine module, minimum draw electric current as the maximum output current of described adapter for what be that described adapter is arranged using described terminal.
Wherein, the described module that arranges includes:
Unit is set, for according to drawing electric current for described adapter current setting, writing described current known in the depositor of the auxiliary chip in described auxiliary charged electrical circuit.
A kind of terminal, it is characterised in that include the device of any of the above-described described test adaptor maximum output current.
Known via above-mentioned technical scheme, compared with prior art, a kind of method embodiments providing test adaptor maximum output current, according to drawing electric current for adapter current setting, the circulating current arranging auxiliary charging circuit is current known, so have only to detect the circulating current that main charging circuit returns, the circulating current of auxiliary charging circuit and the circulating current sum of main charging circuit return can be obtained, may thereby determine that the maximum output current of adapter.
nullIf adapter possesses the ability drawing electric current being output as adapter current setting,The duty that then main charging circuit returns is effective status,And the circulating current of main charging circuit can be returned,The circulating current returned when main charging circuit is equal to when drawing electric current of described current setting with described current known sum,Show that adapter at least can be output as the ability drawing electric current of adapter current setting,Higher electric current is drawn it is thus desirable to arrange for adapter,Judge whether adapter possesses the ability drawing electric current that output is higher,Electric current is drawn higher than the electric current that draws of the value drawing electric current of described current setting as current setting by value,Again detect,Until detecting that the duty that main charging circuit returns is failure state,If the duty that main charging circuit returns is failure state,Illustrate that adapter does not possess and export this ability drawing electric current,But adapter possess output value lower than described current setting the value drawing electric current draw electric current,Therefore can using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.The embodiment of the present invention is adopted to be capable of the purpose possessing the terminal test adaptor maximum output current of dual pathways charging circuit.
Further, if adapter does not possess the ability drawing electric current being output as adapter current setting, the duty that then main charging circuit returns is failure state, now may determine that whether adapter can export the ratio electric current that draws currently drawing current value low, electric current is drawn lower than the electric current that draws of the value drawing electric current of described current setting as current setting by value, again detect, until the duty that main charging circuit returns is effective status, and the circulating current that returns of main charging circuit and described current known sum are equal to the value drawing electric current of described current setting, now illustrate that adapter possesses and export this ability drawing electric current, therefore electric current can be drawn as the maximum output current of described adapter described current setting.The embodiment of the present invention is adopted to be capable of the purpose possessing the terminal test adaptor maximum output current of dual pathways charging circuit.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided.
A kind of schematic flow sheet of the implementation of the method for a kind of test adaptor maximum output current that Fig. 1 provides for the embodiment of the present invention;
The method flow schematic diagram of another implementation of a kind of test adaptor maximum output current that Fig. 2 provides for the embodiment of the present invention;
Fig. 3 provides a kind of implementation flow chart in the method for test adaptor maximum output current for the embodiment of the present invention;
A kind of structural representation of the implementation of the device of a kind of test adaptor maximum output current that Fig. 4 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Embodiment one
Refer to Fig. 1, the schematic flow sheet of a kind of implementation of the method for a kind of test adaptor maximum output current provided for the embodiment of the present invention, the method can apply to terminal, the charge integrated circuit of this terminal includes main charging circuit and auxiliary charging circuit, main charging circuit and auxiliary charging circuit are in parallel, and terminal is that adapter is provided with at least two and draws electric current, from described at least two draw electric current select one draw electric current as current setting draw electric current, the method for this test adaptor maximum output current includes:
Step S101: according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current.
From described at least two draw electric current select one draw electric current as current setting draw electric current, current setting draw the electric current that draws that electric current can both be able to export for most of terminals, or described at least two is drawn in electric current minimum draw electric current as current setting draw electric current.For each terminal, when first time performs step S101, the electric current that draws of current setting can be identical, it is also possible to different, this is not specifically limited by the embodiment of the present invention.If current setting draw electric current identical, the electric current that draws of this current setting can be the default value of terminal, be carried out when namely need not perform the method that the embodiment of the present invention provides every time " draw from described at least two electric current selects one draw electric current as current setting draw electric current " this step, naturally it is also possible to be carried out when performing the method that the embodiment of the present invention provides every time " draw from described at least two electric current selects one draw electric current as current setting draw electric current " this step.
Due to the auxiliary chip in auxiliary charging circuit can not return current value, the circulating current of auxiliary charging circuit is set to known current value by the embodiment of the present invention cleverly, i.e. current known.
Current known can be different along with the value difference drawing electric current for adapter current setting, can certainly be identical, only need to according to the current value relation drawing electric current, main charging circuit and auxiliary charging circuit of adapter, it is set, concrete determines according to practical situation, and this is not made concrete restriction by the embodiment of the present invention.
Such as: what set adapter draws electric current as 1.2A, 1.6A and 2.2A.If whether the fan-out capability of checking adapter meets 1.6A, then the electric current that draws of the current setting in step S101 is 1.6A;Concrete, arranging this parameter is FIRST_DECTET_VALUE, i.e. FIRST_DECTET_VALUE=1.6A.
What FIRST_DECTET_VALUE=1.6A was set to adapter current setting draws electric current, now can arrange the circulating current assister_current1=0.5A of auxiliary charging circuit.If the fan-out capability of adapter disclosure satisfy that 1.6A, then the circulating current master_current1=1.1A of main charging circuit.
If whether the fan-out capability of checking adapter meets 1.2A, then the electric current that draws of the current setting in step S101 is 1.2A, arranging this parameter is ZERO_DECTET_VALUE, i.e. ZERO_DECTET_VALUE=1.2A, the circulating current assister_current0=0.4A of auxiliary charging circuit now can be set, if orchestration possesses the ability of output 1.2A electric current, then the circulating current master_current0=0.8A of main charging circuit.
If whether the fan-out capability of checking adapter meets 2.2A, then the electric current that draws of the current setting in step S101 is 2.2A, arranging this parameter is SECOND_DECTET_VALUE, i.e. SECOND_DECTET_VALUE=2.2A, the circulating current assister_current2=1.2A of auxiliary charging circuit now can be set, if orchestration possesses the ability of output 1.2A electric current, then the circulating current master_current2=1A of main charging circuit.
In above-mentioned row illustrated example, have ignored the loss of miscellaneous part in terminal, main charging circuit, auxiliary charging circuit, if it is considered that above-mentioned loss, above-mentioned "=" should for approximating.
Concrete, it is possible to current known being write in the depositor of auxiliary chip of auxiliary charging circuit, the circulating current of so auxiliary charging circuit is just for current known.
Step S102: drawing under electric current at described current setting, detects the duty that described main charging circuit returns.
Due to when first time performs step S101, current setting draw electric current be most of terminal can both export draw electric current, or described at least two is drawn and minimum in electric current is drawn electric current.For each adapter, when first time performs step S102, the duty that main charging circuit returns is effective status.
nullMaster chip in main charging circuit can feed back the duty of this chip,Namely whether this main charging circuit can be operated in this normally and draw under electric current,So that step S101 to be exemplified as example,If whether the fan-out capability of checking adapter meets 1.2A,Then the electric current that draws of the current setting in step S101 is 1.2A,The circulating current assister_current0=0.4A of auxiliary charging circuit now can be set,If orchestration possesses the ability of output 1.2A electric current,The then circulating current master_current0=0.8A of main charging circuit,Main charging circuit in step S102 just can feed back whether this main charging circuit works under the electric current of 0.8A,If,Duty is generally effective status,If not,Duty is generally disarmed state.
Step S103: the duty returned when described main charging circuit is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, then described adapter is provided with at least two draws in electric current by described, value higher than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return step S101.Until the duty that described main charging circuit returns is failure state, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
In order to draw accompanying drawing easily, step S103 is divided into step S1031 and step S1032.
Step S1031: the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, then described adapter is provided with at least two draws in electric current by described, value higher than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return step S101.
Step S1032: the duty that described main charging circuit returns is failure state, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
Step S1032 performs after step S1031 performs one or many.
nullAssume that terminal is that the electric current that draws that adapter is arranged includes 0.8A、1.2A、1.6A、2.2A etc.,The electric current that draws of current setting is 1.2A,If the duty that main charging circuit returns is effective status,And the circulating current that returns of main charging circuit with described current known sum equal to 1.2A,Illustrate that the fan-out capability of adapter is at least 1.2A,Now can according to order from small to large,It is assigned to 1.6A draw electric current for adapter current setting,If the duty that main charging circuit returns is effective status,And the flow-thru electrode flow valuve that returns of main charging circuit with described current known sum equal to 1.6A,Illustrate that the fan-out capability of adapter is at least 1.6A,Illustrate that the fan-out capability of adapter is at least 1.6A,Then it is assigned to 2.2A draw electric current for adapter current setting,If the duty that now main charging circuit returns is failure state,Then using the 1.6A maximum output current as adapter.
In above-mentioned steps, " being equal to " of " circulating current that main charging circuit returns and described current known sum are equal to the value drawing electric current of described current setting " is the loss ignoring main charging circuit in terminal, auxiliary charging circuit and other components and parts, if it is considered that above-mentioned loss, then " being equal to " should be " approximating ".
The method of the test adaptor maximum output current that the embodiment of the present invention provides, according to drawing electric current for adapter current setting, the circulating current arranging auxiliary charging circuit is current known, so have only to detect the circulating current that main charging circuit returns, the circulating current of auxiliary charging circuit and the circulating current sum of main charging circuit return can be obtained, may thereby determine that the maximum output current of adapter.
nullIf adapter possesses the ability drawing electric current being output as adapter current setting,The duty that then main charging circuit returns is effective status,And the circulating current of main charging circuit can be returned,The circulating current returned when main charging circuit is equal to when drawing electric current of described current setting with described current known sum,Show that adapter at least can be output as the ability drawing electric current of adapter current setting,Higher electric current is drawn it is thus desirable to arrange for adapter,Judge whether adapter possesses the ability drawing electric current that output is higher,Electric current is drawn higher than the electric current that draws of the value drawing electric current of described current setting as current setting by value,Again detect,Until detecting that the duty that main charging circuit returns is failure state,If the duty that main charging circuit returns is failure state,Illustrate that adapter does not possess and export this ability drawing electric current,But adapter possess output value lower than described current setting the value drawing electric current draw electric current,Therefore can using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.The embodiment of the present invention is adopted to be capable of the purpose possessing the terminal test adaptor maximum output current of dual pathways charging circuit.
Embodiment two
Refer to Fig. 2, the method flow schematic diagram of another implementation of the method for a kind of test adaptor maximum output current provided for the embodiment of the present invention, the method can apply to terminal, the charge integrated circuit of this terminal includes main charging circuit and auxiliary charging circuit, main charging circuit and auxiliary charging circuit are in parallel, and terminal is that adapter is provided with at least two and draws electric current, from described at least two draw electric current select one draw electric current as current setting draw electric current, the method for this test adaptor maximum output current includes:
Step S201: according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current.
From described at least two draw electric current select one draw electric current as current setting draw electric current, current setting draw the electric current that draws that electric current can both be able to export for most of terminals, or described at least two is drawn in electric current except minimum draw except electric current arbitrary draw electric current as current setting draw electric current.
Step S202: drawing under electric current at described current setting, detects the duty that described main charging circuit returns.
Step S203: the duty returned when described main charging circuit is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, then described adapter is provided with at least two draws in electric current by described, value higher than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return step S201.Until the duty that described main charging circuit returns is failure state, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
In order to draw accompanying drawing easily, step S203 is divided into step S2031 and step S2032.
Step S2031: the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, then described adapter is provided with at least two draws in electric current by described, value higher than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return step S201.
Step S2032: the duty that described main charging circuit returns is failure state, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
Step S2032 performs after step S2031 performs one or many.
The description of step S201 to step S203 is referred to the description of step S101 to step S103 in embodiment one, does not repeat them here.
Step S204: when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value lower than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return and perform step S201.Until the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, draw electric current as the maximum output current of described adapter the described current setting.
In order to draw accompanying drawing easily, step S204 is divided into step S2041 and step S2042.
Step S2041: when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value lower than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return and perform step S201.
Step S2042: the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, draw electric current as the maximum output current of described adapter the described current setting.
Step S2042 is after step S2041 performs one or many, just performs.
Generally, the duty that main charging circuit returns is effective status, then what described main charging circuit returns circulating current and described current known sum will be equal to described current setting draws electric current.But be present to ensure that the maximum fan-out capability of adapter, it is necessary to both satisfy condition together, namely main charging circuit return duty be effective status, and main charging circuit return circulating current and described current known sum equal to described current setting draw electric current.
Main charging circuit includes master chip, if adapter possess output current setting draw electric current, then main charging circuit can return effective status, if adapter maximum output current draws electric current lower than current setting, then main charging circuit can return disarmed state.
The duty that main charging circuit returns is failure state, illustrates that the maximum output current of adapter draws electric current lower than current setting.Assume that terminal is that the electric current that draws that adapter is arranged includes 0.8A, 1.2A, 1.6A, 2.2A etc., the electric current that draws of current setting is 1.6A, if the duty that main charging circuit returns is failure state, illustrate that the maximum output current of adapter is lower than 1.6A, now can by according to order from big to small, 1.2A is selected to be assigned to draw electric current for adapter current setting, if the duty that main charging circuit returns remains as failure state, illustrate that the maximum output current of adapter is lower than 1.2A, be then assigned to 0.8A draw electric current for adapter current setting.
Until the duty that main charging circuit returns is effective status, the circulating current of main charging circuit return and described current known sum are equal to the value drawing electric current of described current setting, draw electric current as the maximum output current of described adapter the described current setting, the electric current that draws assuming current setting is 0.8A, if the duty that main charging circuit returns is effective status, and the circulating current that returns of main charging circuit and described current known sum are equal to 0.8A, then by the maximum output current drawing electric current 0.8A adapter the most of current setting.
In above-mentioned steps, " being equal to " of " circulating current that main charging circuit returns and described current known sum are equal to the value drawing electric current of described current setting " is the loss ignoring main charging circuit in terminal, auxiliary charging circuit and other components and parts, if it is considered that above-mentioned loss, then " being equal to " should be " approximating ".
The method of the test adaptor maximum output current that the embodiment of the present invention provides, according to drawing electric current for adapter current setting, the circulating current arranging auxiliary charging circuit is current known, so have only to detect the circulating current that main charging circuit returns, the circulating current of auxiliary charging circuit and the circulating current sum of main charging circuit return can be obtained, may thereby determine that the maximum output current of adapter.
nullIf adapter possesses the ability drawing electric current being output as adapter current setting,The duty that then main charging circuit returns is effective status,And the circulating current of main charging circuit can be returned,The circulating current returned when main charging circuit is equal to when drawing electric current of described current setting with described current known sum,Show that adapter at least can be output as the ability drawing electric current of adapter current setting,Higher electric current is drawn it is thus desirable to arrange for adapter,Judge whether adapter possesses the ability drawing electric current that output is higher,Electric current is drawn higher than the electric current that draws of the value drawing electric current of described current setting as current setting by value,Again detect,Until detecting that the duty that main charging circuit returns is failure state,If the duty that main charging circuit returns is failure state,Illustrate that adapter does not possess and export this ability drawing electric current,But adapter possess output value lower than described current setting the value drawing electric current draw electric current,Therefore can using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
If adapter does not possess the ability drawing electric current being output as adapter current setting, the duty that then main charging circuit returns is failure state, now may determine that whether adapter can export the ratio electric current that draws currently drawing current value low, electric current is drawn lower than the electric current that draws of the value drawing electric current of described current setting as current setting by value, again detect, until the duty that main charging circuit returns is effective status, and the circulating current that returns of main charging circuit and described current known sum are equal to the value drawing electric current of described current setting, now illustrate that adapter possesses and export this ability drawing electric current, therefore electric current can be drawn as the maximum output current of described adapter described current setting.
Refer to Fig. 3, the method flow schematic diagram of another kind of implementation of the method for a kind of test adaptor maximum output current provided for the embodiment of the present invention, the method is applied to terminal, the charge integrated circuit of described terminal includes main charging circuit and auxiliary charging circuit, described main charging circuit and auxiliary charging circuit are in parallel, and described terminal is that described adapter is provided with at least two and draws electric current, drawing selection one electric current to draw electric current as the electric current that draws of current setting from described at least two, the method includes:
Step S301: according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current.
Drawing from described at least two selects one to draw electric current as the electric current that draws of current setting electric current, the electric current that draws of current setting can be that described at least two is drawn and maximum in electric current drawn electric current.What this was maximum draw electric current refers to than each adapter can export maximum current value big draw electric current.
Step S302: drawing under electric current at described current setting, detects the duty that described main charging circuit returns.
The explanation of step S301 and step S302, refers to the description of step S101 and step S102 in embodiment one, does not repeat them here.
Step S303: when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value lower than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return and perform step S301.Until the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, draw electric current as the maximum output current of described adapter the described current setting.
In order to draw accompanying drawing easily, step S303 is divided into step S3031 and step S3032.Due to when first time performs step S301, current setting draw the maximum current value that each adapter of current ratio export also big, therefore for each adapter, when first time performs step S302, the duty of main charging circuit return is all failure state.
Step S3031: when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value lower than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return and perform step S301.
Step S3032: the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, draw electric current as the maximum output current of described adapter the described current setting.
Step S3032 is after step S3031 performs one or many, just performs.
The description of step S303 can consult the description in embodiment two to step S204, does not repeat them here.
Referring to Fig. 2, for the method flow schematic diagram of another implementation of a kind of test adaptor maximum output current that the embodiment of the present invention provides, the method includes step S101 to step S106 in above-described embodiment, and the method includes:
Step S101: according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current.
Step S102: drawing under electric current at described current setting, detects the duty that described main charging circuit returns.
Step S201: the duty returned when described main charging circuit is failure state, described in judging, described adapter is provided with at least two and draws in electric current, whether value is minimum draw electric current lower than the electric current that draws of the value drawing electric current of described current setting, if, then enter step S202, if it is not, then enter step S103.
Step S202: what be that described adapter is arranged using described terminal minimum draws electric current as the maximum output current of described adapter.
In actual applications, almost all of adapter possesses outlet terminal is that described adapter is provided with at least two and draws and minimum in electric current draw electric current.
Assume that terminal is that the electric current that draws that adapter is arranged includes 0.8A, 1.2A, 1.6A, 2.2A etc., the electric current that draws of current setting is 1.6A, if the duty that main charging circuit returns is failure state, illustrate that the maximum output current of adapter is lower than 1.6A, now can by according to order from big to small, 1.2A is selected to be assigned to draw electric current for adapter current setting, if the duty that main charging circuit returns remains as failure state, illustrate that the maximum output current of adapter is lower than 1.2A, and 0.8A to be terminal be that adapter arranges draws and minimum in electric current draw electric current, therefore can directly by the maximum output current of 0.8A adapter the most.
Step S103: when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value lower than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return and perform step S101.Circulation step S101 to step S103, until the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, draw electric current as the maximum output current of described adapter the described current setting.
In order to draw accompanying drawing easily, step S103 is divided into step S1031 and step S1032.
Step S1031: when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value lower than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return and perform step S101.
Step S1032: the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, draw electric current as the maximum output current of described adapter the described current setting.
Step S1032 is after step S1031 performs one or many, just performs, different from follow-up step S1041.Step S104: the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, then described adapter is provided with at least two draws in electric current by described, value higher than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return step S101.Until the duty that described main charging circuit returns is failure state, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
In order to draw accompanying drawing easily, step S104 is divided into step S1041 and step S1042.
Step S1041: the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, then described adapter is provided with at least two draws in electric current by described, value higher than described current setting the value drawing electric current draw electric current as the electric current that draws of current setting, return step S101.
Step S1042: the duty that described main charging circuit returns is failure state, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
Step S1042 performs after step S1041 performs one or many.It is different from step S1031.
More understand the embodiment of the present invention for those skilled in the art, name a specific example and the embodiment of the present invention is made an explanation.Refer to Fig. 3, a kind of implementation flow chart in the method for test adaptor maximum output current is provided for the embodiment of the present invention.
Assuming that terminal is that at least two that adapter is arranged draws electric current to be 1.2A, 1.6A and 2.2A, first, whether the fan-out capability of checking adapter meets 1.6A.Then the electric current that draws of the current setting in step S101 is 1.6A, and arranging this parameter is FIRST_DECTET_VALUE, i.e. FIRST_DECTET_VALUE=1.6A.
Step S301: FIRST_DECTET_VALU=1.6A is set to the electric current that draws of adapter current setting, and the circulating current assister_current1=0.5A of auxiliary charging circuit is set.
If the fan-out capability of adapter disclosure satisfy that 1.6A, then the circulating current master_current1=1.1A of main charging circuit.
Step S302: detect whether main charging circuit has return state FIRST_ICO_STATE, works as FIRST_ICO_STATE=0, then be failure state, work as FIRST_ICO_STATE=1, then be effective status.
Step S303: if FIRST_ICO_STATE=0, illustrate that the fan-out capability of adapter is lower than 1.6A, the electric current that draws that ZERO_DECTET_VALUE=1.2A is adapter current setting is then set, and the circulating current assister_current0=0.4A of auxiliary charging circuit is set.
If the fan-out capability of adapter disclosure satisfy that 1.2A, then the circulating current master_current0=0.8A of main charging circuit.
Terminal is that adapter is provided with 3 and draws electric current: 1.2A, 1.6A and 2.2A in embodiments of the present invention, generally, it is the minimum ability drawing electric current (embodiment of the present invention is 1.2A) that adapter is arranged that adapter all possesses outlet terminal, so when the ability that adapter does not possess the electric current of output 1.6A being detected, it is possible to directly using the 1.2A maximum output current as adapter.Test adaptor whether can certainly possess the ability exporting 1.2A electric current.
Step S304, detect whether main charging circuit has return state ZERO_ICO_STATE, work as ZERO_ICO_STATE=0, be then failure state, work as ZERO_ICO_STATE=1, be then effective status.
Step S305: if ZERO_ICO_STATE=1, then main charging circuit will return current ZERO_ICO_CURRENT, if ZERO_ICO_CURRENT+assister_current0=ZERO_DECTET_VALUE=1.2 is A, then illustrate that adapter possesses the ability of output 1.2A electric current, and 1.2A is the maximum output current of adapter.
Step S306: if ZERO_ICO_STATE=0, then illustrate that adapter does not possess the ability of output 1.2A electric current.
Step S307: if FIRST_ICO_STATE=1, then main charging circuit will return current FIRST_ICO_CURRENT, if FIRST_ICO_CURRENT+assister_current1=FIRST_DECTET_VALUE=1 is .6A, then illustrate that adapter possesses the ability of output 1.6A electric current.
It is to say, adapter at least can export the electric current of 1.6A, it is therefore desirable to the 2.2A that detection value is higher than 1.6A.
Step S308: what SECOND_DECTET_VALUE=2.2A was set to adapter current setting draws electric current, arranges the circulating current assister_current2=1.2A of auxiliary charging circuit.
If the fan-out capability of adapter disclosure satisfy that 1.6A, then the circulating current master_current2=1A of main charging circuit.
Step S309: detect whether main charging circuit has return state SECOND_ICO_STATE, works as SECOND_ICO_STATE=0, then be failure state, work as SECOND_ICO_STATE=1, then be effective status.
If step S310 is SECOND_ICO_STATE=1, then main charging circuit will return current SECOND_ICO_CURRENT, if SECOND_ICO_CURRENT+assister_current2=SECOND_DECTET_VALUE=2.2A, then illustrate that adapter possesses the ability of output 2.2A electric current.
Generally, terminal is the maximum maximum output current drawing electric current to comprise each adapter that adapter is arranged, will not because of terminal be adapter arrange draw the value of electric current lower than the maximum output current of adapter, and cause the problem that adapter can not play maximal efficiency.
Step S311: if SECOND_ICO_STATE=0, then FIRST_DECTET_VALUE=1.6A is the maximum output current of adapter.
Refer to Fig. 4, the structural representation of a kind of implementation of the device of a kind of test adaptor maximum output current provided for the embodiment of the present invention, this device is applied to terminal, the charge integrated circuit of terminal includes main charging circuit and auxiliary charging circuit, main charging circuit and auxiliary charging circuit are in parallel, and terminal is that adapter is provided with at least two and draws electric current, the device of test adaptor maximum output current includes: arrange module 401, detection module 402, first processing module 403, first maximum output current determines module 404, second processing module 405, second maximum output current determines module 406, wherein:
Module 401 is set, for according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current.
Due to the auxiliary chip in auxiliary charging circuit can not return current value, the circulating current of auxiliary charging circuit is set to known current value by the embodiment of the present invention cleverly, i.e. current known.
Current known can be different along with the value difference drawing electric current for adapter current setting, can certainly be identical, only need to according to the current value relation drawing electric current, main charging circuit and auxiliary charging circuit of adapter, it is set, concrete determines according to practical situation, and this is not made concrete restriction by the embodiment of the present invention.
Such as: what set adapter draws electric current as 1.2A, 1.6A and 2.2A.If whether the fan-out capability of checking adapter meets 1.6A, then the electric current that draws of the current setting in step S101 is 1.6A;Concrete, arranging this parameter is FIRST_DECTET_VALUE, i.e. FIRST_DECTET_VALUE=1.6A.
What FIRST_DECTET_VALU=1.6A was set to adapter current setting draws electric current, now can arrange the circulating current assister_current1=0.5A of auxiliary charging circuit.If the fan-out capability of adapter disclosure satisfy that 1.6A, then the circulating current master_current1=1.1A of main charging circuit.
If whether the fan-out capability of checking adapter meets 1.2A, then the electric current that draws of the current setting in step S101 is 1.2A, arranging this parameter is ZERO_DECTET_VALUE, i.e. ZERO_DECTET_VALUE=1.2A, the circulating current assister_current0=0.4A of auxiliary charging circuit now can be set, if orchestration possesses the ability of output 1.2A electric current, then the circulating current master_current0=0.8A of main charging circuit.
If whether the fan-out capability of checking adapter meets 2.2A, then the electric current that draws of the current setting in step S101 is 2.2A, arranging this parameter is SECOND_DECTET_VALUE, i.e. SECOND_DECTET_VALUE=2.2A, the circulating current assister_current2=1.2A of auxiliary charging circuit now can be set, if orchestration possesses the ability of output 1.2A electric current, then the circulating current master_current2=1A of main charging circuit.
In above-mentioned row illustrated example, have ignored the loss of miscellaneous part in terminal, main charging circuit, auxiliary charging circuit, if it is considered that above-mentioned loss, above-mentioned "=" should for approximating.
Concrete, it is possible to current known being write in the depositor of auxiliary chip of auxiliary charging circuit, the circulating current of so auxiliary charging circuit is just for current known.
Detection module 402, for drawing under electric current at described current setting, detects the duty that described main charging circuit returns.
nullMaster chip in main charging circuit can feed back the duty of this chip,Namely whether this main charging circuit can be operated in this normally and draw under electric current,It is exemplified as example to arrange in module 401,If whether the fan-out capability of checking adapter meets 1.2A,Then the electric current that draws of the current setting in step S101 is 1.2A,The circulating current assister_current0=0.4A of auxiliary charging circuit now can be set,If orchestration possesses the ability of output 1.2A electric current,The then circulating current master_current0=0.8A of main charging circuit,Main charging circuit in detection module 402 just can feed back whether this main charging circuit works under the electric current of 0.8A,If,Duty is generally effective status,If not,Duty is generally disarmed state.
First processing module 403, for when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value draws electric current lower than the electric current that draws of the value drawing electric current of described current setting as current setting, trigger and described module is set, until when the duty of described main charging circuit return is effective status, and the circulating current that returns of described main charging circuit and described current known sum are equal to when drawing electric current of described current setting, trigger the first maximum output current and determine module.
Described first maximum output current determines module 404, detect that the duty that described main charging circuit returns is effective status for described first processing module, and the circulating current that returns of described main charging circuit and described current known sum are equal to when drawing electric current of described current setting, draw electric current as the maximum output current of described adapter the described current setting.
Main charging circuit includes master chip, if adapter possess output current setting draw electric current, then main charging circuit can return effective status, if adapter maximum output current draws electric current lower than current setting, then main charging circuit can return disarmed state.
The duty that main charging circuit returns is failure state, illustrates that the maximum output current of adapter draws electric current lower than current setting.Assume that terminal is that the electric current that draws that adapter is arranged includes 0.8A, 1.2A, 1.6A, 2.2A etc., the electric current that draws of current setting is 1.6A, if the duty that main charging circuit returns is failure state, illustrate that the maximum output current of adapter is lower than 1.6A, now can by according to order from big to small, 1.2A is selected to be assigned to draw electric current for adapter current setting, if the duty that main charging circuit returns remains as failure state, illustrate that the maximum output current of adapter is lower than 1.2A, be then assigned to 0.8A draw electric current for adapter current setting.
Until the duty that main charging circuit returns is effective status, the circulating current of main charging circuit return and described current known sum are equal to the value drawing electric current of described current setting, draw electric current as the maximum output current of described adapter the described current setting, the electric current that draws assuming current setting is 0.8A, if the duty that main charging circuit returns is effective status, and the circulating current that returns of main charging circuit and described current known sum are equal to 0.8A, then by the maximum output current drawing electric current 0.8A adapter the most of current setting.
" being equal to " of above-mentioned " circulating current that main charging circuit returns and described current known sum are equal to the value drawing electric current of described current setting " is the loss ignoring main charging circuit in terminal, auxiliary charging circuit and other components and parts, if it is considered that above-mentioned loss, then " being equal to " should be " approximating ".
Second processing module 405, duty for returning when described main charging circuit is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, value is drawn electric current higher than the electric current that draws of the value drawing electric current of described current setting as current setting, trigger and described module is set, until when the duty of described main charging circuit return is failure state, triggering the second maximum output current and determine module.
Described second maximum output current determines module 406, detect that the duty that described main charging circuit returns is failure state for described second processing module, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
nullAssume that terminal is that the electric current that draws that adapter is arranged includes 0.8A、1.2A、1.6A、2.2A etc.,The electric current that draws of current setting is 1.2A,If the duty that main charging circuit returns is effective status,And the circulating current that returns of main charging circuit with described current known sum equal to 1.2A,Illustrate that the fan-out capability of adapter is at least 1.2A,Now can according to order from small to large,It is assigned to 1.6A draw electric current for adapter current setting,If the duty that main charging circuit returns is effective status,And the flow-thru electrode flow valuve that returns of main charging circuit with described current known sum equal to 1.6A,Illustrate that the fan-out capability of adapter is at least 1.6A,Illustrate that the fan-out capability of adapter is at least 1.6A,Then it is assigned to 2.2A draw electric current for adapter current setting,If the duty that now main charging circuit returns is failure state,Then using the 1.6A maximum output current as adapter.
The device of the test adaptor maximum output current that the embodiment of the present invention provides, electric current is drawn according to what arrange that module 401 is adapter current setting, the circulating current arranging auxiliary charging circuit is current known, so have only to detect the circulating current that main charging circuit returns, the circulating current of auxiliary charging circuit and the circulating current sum of main charging circuit return can be obtained, may thereby determine that the maximum output current of adapter.
nullIf adapter possesses the ability drawing electric current being output as adapter current setting,Then detection module 402 detects that the duty that main charging circuit returns is effective status,And the circulating current of main charging circuit can be returned,When the second processing module 405 judges that the circulating current that main charging circuit returns is equal to when drawing electric current of described current setting with described current known sum,Show that adapter at least can be output as the ability drawing electric current of adapter current setting,Higher electric current is drawn it is thus desirable to arrange for adapter,Judge whether adapter possesses the ability drawing electric current that output is higher,Electric current is drawn higher than the electric current that draws of the value drawing electric current of described current setting as current setting by value,Again detect,Until detecting that the duty that main charging circuit returns is failure state,If the duty that main charging circuit returns is failure state,Illustrate that adapter does not possess and export this ability drawing electric current,But adapter possess output value lower than described current setting the value drawing electric current draw electric current,Therefore can using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
If adapter does not possess the ability drawing electric current being output as adapter current setting, the duty that the main charging circuit that then detection module 402 detects returns is failure state, now may determine that whether adapter can export the ratio electric current that draws currently drawing current value low, namely value is drawn electric current lower than the electric current that draws of the value drawing electric current of described current setting as current setting by the first processing module 403, again detect, until the duty that main charging circuit returns is effective status, and the circulating current that returns of main charging circuit and described current known sum are equal to the value drawing electric current of described current setting, now illustrate that adapter possesses and export this ability drawing electric current, therefore electric current can be drawn as the maximum output current of described adapter described current setting.The embodiment of the present invention is adopted to be capable of the purpose possessing the terminal test adaptor maximum output current of dual pathways charging circuit.
In actual applications, almost all of adapter possesses outlet terminal is that described adapter is provided with at least two and draws and minimum in electric current draw electric current.Assume that terminal is that the electric current that draws that adapter is arranged includes 0.8A, 1.2A, 1.6A, 2.2A etc., the electric current that draws of current setting is 1.6A, if the duty that main charging circuit returns is failure state, illustrate that the maximum output current of adapter is lower than 1.6A, now can by according to order from big to small, 1.2A is selected to be assigned to draw electric current for adapter current setting, if the duty that main charging circuit returns remains as failure state, illustrate that the maximum output current of adapter is lower than 1.2A, and 0.8 to be that drawing of arranging of adapter is minimum in electric current for terminal draw electric current, therefore can directly by the maximum output current of 0.8A adapter the most.
Said apparatus embodiment can also include: judge module, duty for returning when described main charging circuit is failure state, described in judging, described adapter is provided with at least two and draws in electric current, whether value is minimum draw electric current lower than the electric current that draws of the value drawing electric current of described current setting, if, then trigger and determine module, if it is not, then trigger the first processing module;Described determine module, minimum draw electric current as the maximum output current of described adapter for what be that described adapter is arranged using described terminal.
The embodiment of the present invention additionally provides a kind of terminal, and this terminal includes the device of any of the above-described test adaptor maximum output current.
The device of the test adaptor maximum output current that the embodiment of the present invention provides more is understood, it is possible to consult the description in Fig. 3 for those skilled in the art.
It should be noted that each embodiment in this specification all adopts the mode gone forward one by one to describe, what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually referring to.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.The multiple amendment of these embodiments be will be apparent from for those skilled in the art, and generic principles defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein, and is to fit to the widest scope consistent with principles disclosed herein and features of novelty.

Claims (9)

1. the method for a test adaptor maximum output current, it is characterized in that, it is applied to terminal, the charge integrated circuit of described terminal includes main charging circuit and auxiliary charging circuit, described main charging circuit and auxiliary charging circuit are in parallel, and described terminal is that described adapter is provided with at least two and draws electric current, drawing from described at least two and select one electric current and draw electric current as the electric current that draws of current setting, described method includes:
A1, according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current;
A2, drawing under electric current at described current setting, detect the duty that described main charging circuit returns;
A3, the duty returned when described main charging circuit is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, then described adapter is provided with at least two draws in electric current by described, value draws electric current higher than the electric current that draws of the value drawing electric current of described current setting as current setting, return and perform A1, until the duty that described main charging circuit returns is failure state, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
2. the method for test adaptor maximum output current according to claim 1, it is characterised in that also include:
A4, when described main charging circuit return duty be failure state time, described adapter is provided with at least two draws in electric current by described, value draws electric current lower than the electric current that draws of the value drawing electric current of described current setting as current setting, return and perform A1, until the duty that described main charging circuit returns is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, draw electric current as the maximum output current of described adapter the described current setting.
3. the method for test adaptor maximum output current according to claim 2, it is characterised in that also include:
A5, when described main charging circuit return duty be failure state, described in judging, described adapter is provided with at least two and draws in electric current, whether value is minimum draw electric current lower than the electric current that draws of the value drawing electric current of described current setting, if, then enter step A6, if it is not, then enter step A3;
A6, using described terminal be that described adapter is arranged minimum draw electric current as the maximum output current of described adapter.
4. the method according to the arbitrary described test adaptor maximum output current of claims 1 to 3, it is characterised in that described step A1 specifically for:
According to drawing electric current for described adapter current setting, the depositor of the auxiliary chip in described auxiliary charged electrical circuit writes described current known.
5. the device of a test adaptor maximum output current, it is characterized in that, it is applied to terminal, the charge integrated circuit of described terminal includes main charging circuit and auxiliary charging circuit, described main charging circuit and auxiliary charging circuit are in parallel, and described terminal is that described adapter is provided with at least two and draws electric current, drawing from described at least two and select one electric current and draw electric current as the electric current that draws of current setting, described device includes:
Module is set, for according to drawing electric current for described adapter current setting, the circulating current of described auxiliary charging circuit is set to described current setting draw the corresponding current known of electric current;
Detection module, for drawing under electric current at described current setting, detects the duty that described main charging circuit returns;
First processing module, duty for returning when described main charging circuit is effective status, and the circulating current that returns of described main charging circuit and described current known sum draw electric current equal to described current setting, value is drawn electric current higher than the electric current that draws of the value drawing electric current of described current setting as current setting, trigger and described module is set, until when the duty of described main charging circuit return is failure state, triggering the first maximum output current and determine module;
Described first maximum output current determines module, detect that the duty that described main charging circuit returns is failure state for described second processing module, using value lower than described current setting the value drawing electric current draw electric current as the maximum output current of described adapter.
6. the device of test adaptor maximum output current according to claim 5, it is characterised in that also include:
Second processing module, for when the duty that described main charging circuit returns is failure state, described adapter is provided with at least two draws in electric current by described, value draws electric current lower than the electric current that draws of the value drawing electric current of described current setting as current setting, trigger and described module is set, until when the duty of described main charging circuit return is effective status, and the circulating current that returns of described main charging circuit and described current known sum are equal to when drawing electric current of described current setting, trigger the second maximum output current and determine module;
Described second maximum output current determines module, detect that the duty that described main charging circuit returns is effective status for described first processing module, and the circulating current that returns of described main charging circuit and described current known sum are equal to when drawing electric current of described current setting, draw electric current as the maximum output current of described adapter the described current setting.
7. the device of test adaptor maximum output current according to claim 5, it is characterised in that also include:
Judge module, duty for returning when described main charging circuit is failure state, described in judging, described adapter is provided with at least two and draws in electric current, whether value is minimum draw electric current lower than the electric current that draws of the value drawing electric current of described current setting, if, then trigger and determine module, if it is not, then trigger the first processing module;
Described determine module, minimum draw electric current as the maximum output current of described adapter for what be that described adapter is arranged using described terminal.
8. the device according to the arbitrary described test adaptor maximum output current of claim 5 to 7, it is characterised in that the described module that arranges includes:
Unit is set, for according to drawing electric current for described adapter current setting, writing described current known in the depositor of the auxiliary chip in described auxiliary charged electrical circuit.
9. a terminal, it is characterised in that include the device of the arbitrary described test adaptor maximum output current of claim 5 to 8.
CN201610201238.XA 2016-03-31 2016-03-31 A kind of method, apparatus and terminal of test adaptor maximum output current Expired - Fee Related CN105759103B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610201238.XA CN105759103B (en) 2016-03-31 2016-03-31 A kind of method, apparatus and terminal of test adaptor maximum output current
PCT/CN2016/092479 WO2017166555A1 (en) 2016-03-31 2016-07-30 Method, device, and terminal for detecting maximum output current of adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610201238.XA CN105759103B (en) 2016-03-31 2016-03-31 A kind of method, apparatus and terminal of test adaptor maximum output current

Publications (2)

Publication Number Publication Date
CN105759103A true CN105759103A (en) 2016-07-13
CN105759103B CN105759103B (en) 2018-12-25

Family

ID=56347077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610201238.XA Expired - Fee Related CN105759103B (en) 2016-03-31 2016-03-31 A kind of method, apparatus and terminal of test adaptor maximum output current

Country Status (2)

Country Link
CN (1) CN105759103B (en)
WO (1) WO2017166555A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106771503A (en) * 2017-02-15 2017-05-31 广东小天才科技有限公司 Voltage and current monitoring device and method
WO2017166555A1 (en) * 2016-03-31 2017-10-05 宇龙计算机通信科技(深圳)有限公司 Method, device, and terminal for detecting maximum output current of adapter
CN110120695A (en) * 2019-04-29 2019-08-13 华为技术有限公司 A kind of charging method and terminal device
CN114696403A (en) * 2020-12-31 2022-07-01 Oppo广东移动通信有限公司 Power adapter

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101752894A (en) * 2008-11-28 2010-06-23 飞利浦建兴数位科技股份有限公司 USB (universal serial bus) external device with internal auxiliary power supply
CN103730933A (en) * 2013-12-23 2014-04-16 联想(北京)有限公司 Charging method and electronic devices
US20140312849A1 (en) * 2013-04-18 2014-10-23 Samsung Sdi Co., Ltd. External battery
CN104124734A (en) * 2014-07-22 2014-10-29 深圳市富满电子有限公司 Charging system and charging method
CN104269585A (en) * 2014-10-17 2015-01-07 广东欧珀移动通信有限公司 Charging method and mobile terminal
CN104300630A (en) * 2014-10-17 2015-01-21 广东欧珀移动通信有限公司 Charging control device and method
CN104756356A (en) * 2013-07-18 2015-07-01 联发科技股份有限公司 Method, charger device, and adaptor capable of maximum output power point tracking
CN105406554A (en) * 2015-12-24 2016-03-16 魅族科技(中国)有限公司 Charge control method and charge control device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105759103B (en) * 2016-03-31 2018-12-25 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and terminal of test adaptor maximum output current

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101752894A (en) * 2008-11-28 2010-06-23 飞利浦建兴数位科技股份有限公司 USB (universal serial bus) external device with internal auxiliary power supply
US20140312849A1 (en) * 2013-04-18 2014-10-23 Samsung Sdi Co., Ltd. External battery
CN104756356A (en) * 2013-07-18 2015-07-01 联发科技股份有限公司 Method, charger device, and adaptor capable of maximum output power point tracking
CN103730933A (en) * 2013-12-23 2014-04-16 联想(北京)有限公司 Charging method and electronic devices
CN104124734A (en) * 2014-07-22 2014-10-29 深圳市富满电子有限公司 Charging system and charging method
CN104269585A (en) * 2014-10-17 2015-01-07 广东欧珀移动通信有限公司 Charging method and mobile terminal
CN104300630A (en) * 2014-10-17 2015-01-21 广东欧珀移动通信有限公司 Charging control device and method
CN105406554A (en) * 2015-12-24 2016-03-16 魅族科技(中国)有限公司 Charge control method and charge control device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166555A1 (en) * 2016-03-31 2017-10-05 宇龙计算机通信科技(深圳)有限公司 Method, device, and terminal for detecting maximum output current of adapter
CN106771503A (en) * 2017-02-15 2017-05-31 广东小天才科技有限公司 Voltage and current monitoring device and method
CN110120695A (en) * 2019-04-29 2019-08-13 华为技术有限公司 A kind of charging method and terminal device
CN110120695B (en) * 2019-04-29 2021-01-29 华为技术有限公司 Charging method and terminal equipment
CN114696403A (en) * 2020-12-31 2022-07-01 Oppo广东移动通信有限公司 Power adapter
CN114696403B (en) * 2020-12-31 2024-02-02 Oppo广东移动通信有限公司 Power adapter

Also Published As

Publication number Publication date
WO2017166555A1 (en) 2017-10-05
CN105759103B (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN104917016B (en) Rechargeable hub
CN105759103A (en) Method, device and terminal for detecting maximum output current of adapter
WO2020177317A1 (en) Method and device for determining position of fault point, and photovoltaic system
CN104009265B (en) A kind of battery activated method and apparatus of mobile terminal
CN203617746U (en) Electric vehicle, charging device, and charging control guide circuit of electric vehicle
US9979207B2 (en) Transmission device and control method thereof
CN107316598A (en) A kind of hot plug fault control device and method
CN106340948B (en) A kind of three power supply automatic switchover circuits
CN202798035U (en) Charging mode detection circuit and mobile terminal
CN202013387U (en) Charger detection circuit
US20200256925A1 (en) Test apparatus for usb-pd device
CN207683352U (en) A kind of high-voltage interlocking system
CN114977444B (en) Portable power source chip, detection circuitry and electronic equipment
CN204228912U (en) A kind of electric automatization facility switching tests pick-up unit automatically
CN203643893U (en) Terminal equipment
CN203479945U (en) Aviation plug port testing apparatus
CN202075356U (en) Detection device for multi-core plug base pin signal line
CN106443252B (en) The test circuit and mobile device system of detection are powered to mobile device system
US20130080622A1 (en) Network status indication system and mouse with network status indication function
CN103529374B (en) Simple controlled silicon detection board
CN104422844A (en) Aviation plug interface test device
CN103853572A (en) Starting-up method and electronic equipment
CN203800821U (en) Power polarity protection circuit
CN106226691A (en) A kind of test equipment for relay
CN106887832A (en) A kind of circuit of protection terminal chip USB interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181225