CN105759103B - A kind of method, apparatus and terminal of test adaptor maximum output current - Google Patents

A kind of method, apparatus and terminal of test adaptor maximum output current Download PDF

Info

Publication number
CN105759103B
CN105759103B CN201610201238.XA CN201610201238A CN105759103B CN 105759103 B CN105759103 B CN 105759103B CN 201610201238 A CN201610201238 A CN 201610201238A CN 105759103 B CN105759103 B CN 105759103B
Authority
CN
China
Prior art keywords
current
sourcing
charging circuit
adapter
setting
Prior art date
Application number
CN201610201238.XA
Other languages
Chinese (zh)
Other versions
CN105759103A (en
Inventor
蔡志富
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Priority to CN201610201238.XA priority Critical patent/CN105759103B/en
Publication of CN105759103A publication Critical patent/CN105759103A/en
Application granted granted Critical
Publication of CN105759103B publication Critical patent/CN105759103B/en

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

Abstract

The embodiment of the invention provides the method, apparatus and terminal of a kind of test adaptor maximum output current, according to the sourcing current for adapter current setting, the circulating current that auxiliary charging circuit is arranged is current known, main charging circuit is only needed to return to the circulating current of main charging circuit in this way, if adapter has the ability for the sourcing current that output is adapter current setting, the working condition that then main charging circuit returns is effective status, and can return to the circulating current of main charging circuit.If adapter does not have the ability for the sourcing current that output is adapter current setting, the working condition that main charging circuit returns is failure state, solves the problems, such as that the circulating current of auxiliary charging circuit in the prior art is non-detectable.So as to realize the purpose for the terminal test adaptor maximum output current for having binary channels charging circuit.

Description

A kind of method, apparatus and terminal of test adaptor maximum output current

Technical field

The present invention relates to field of circuit technology more particularly to a kind of method, apparatus of test adaptor maximum output current And terminal.

Background technique

With popularizing for terminal quick-charge function, more and more terminals all support the function of quick charge, terminal Charging IC (integrated circuit, integrated circuit) can be concatenated single channel charging IC and be also possible to binary channels charging IC.Single channel charging IC is connected in series by main charging circuit and auxiliary charging circuit.Binary channels charging IC is by main charging circuit It is formed in parallel with auxiliary charging circuit.

When charging to terminal, the connection of power supply and terminal is established often through adapter, adapter exports electric current Size determine the efficiency of terminal charge, the main core for having the terminal of single channel charging IC, in main charging circuit Piece can detecte the size for pulling the electric current of adapter, since main charging circuit and auxiliary charging circuit are connected, so the two pulls The electric current of adapter is consistent, therefore the size for the electric current that can be detected by master chip is electric come the maximum output for determining adapter Stream.

Inventor has found during realizing the invention, for having the terminal of binary channels charging IC, by It is in parallel in main charging circuit and auxiliary charging circuit, thus the circulating current of the circulating current of main charging circuit and auxiliary charging circuit it With the standard for being only gauge adapter maximum output current.But auxiliary charging circuit can not return current, therefore can not also obtain The sum of main charging circuit and the circulating current of auxiliary charging circuit, to be unable to the maximum output current of test adaptor.

Summary of the invention

Therefore, the embodiment of the invention provides the method, apparatus and terminal of a kind of test adaptor maximum output current, with Solve the problems, such as that the terminal for having binary channels charging circuit in the prior art is unable to the maximum output current of test adaptor.

To achieve the above object, the invention provides the following technical scheme:

A kind of method of test adaptor maximum output current is applied to terminal, the charge integrated circuit packet of the terminal Main charging circuit and auxiliary charging circuit are included, the main charging circuit and auxiliary charging circuit are in parallel, and the terminal is the adaptation Device is provided at least two sourcing currents, and drawing electricity of the sourcing current as current setting is selected from least two sourcing current Stream, which comprises

A1, the sourcing current that foundation is the adapter current setting, set the circulating current of the auxiliary charging circuit to Current known corresponding with the sourcing current of the current setting;

A2, under the sourcing current of the current setting, detect the working condition that the main charging circuit returns;

A3, when the working condition that the main charging circuit returns is effective status, and the stream that the main charging circuit returns The sum of galvanization and the current known be equal to the current setting sourcing current, then by it is described for the adapter be provided with to In few two sourcing currents, value is higher than sourcing current of the sourcing current of the value of the sourcing current of the current setting as current setting, It returns and executes A1, until the working condition that the main charging circuit returns is failure state, value is lower than the current setting Sourcing current value maximum output current of the sourcing current as the adapter.

Preferably, further includes:

A4, when the working condition that the main charging circuit returns is failure state, described will be arranged for the adapter Have at least two sourcing currents, value is electric as the drawing of current setting lower than the sourcing current of the value of the sourcing current of the current setting Stream returns and executes A1, until the working condition that the main charging circuit returns is effective status, and the main charging circuit returns Circulating current and the sum of the current known be equal to the sourcing current of the current setting, the sourcing current of the current setting is made For the maximum output current of the adapter.

Preferably, further includes:

A5, when the working condition that the main charging circuit returns is failure state, judge described to be arranged as the adapter Have at least two sourcing currents, whether value is the smallest drawing electricity lower than the sourcing current of the value of the sourcing current of the current setting Stream, if it is, A6 is entered step, if it is not, then entering step A3;

It A6, is the smallest sourcing current of adapter setting using the terminal as the maximum output of adapter electricity Stream.

Wherein, the step A1 is specifically used for:

According to the sourcing current for being the adapter current setting, the register of the auxiliary core piece in the auxiliary electric circuit that charges The middle write-in current known.

A kind of device of test adaptor maximum output current is applied to terminal, the charge integrated circuit packet of the terminal Main charging circuit and auxiliary charging circuit are included, the main charging circuit and auxiliary charging circuit are in parallel, and the terminal is the adaptation Device is provided at least two sourcing currents, and drawing electricity of the sourcing current as current setting is selected from least two sourcing current Stream, described device include:

Setup module is the sourcing current of the adapter current setting for foundation, by the circulation of the auxiliary charging circuit Electric current is set as current known corresponding with the sourcing current of the current setting;

Detection module, the work shape returned under the sourcing current of the current setting, detecting the main charging circuit State;

First processing module, the working condition for returning when the main charging circuit is effective status, and the master fills The sum of the circulating current of circuit return and the current known are equal to the sourcing current of the current setting, value are higher than described Sourcing current of the sourcing current of the value of the sourcing current of current setting as current setting, triggers the setup module, until when described The working condition that main charging circuit returns is failure state, triggers the first maximum output current determining module;

The first maximum output current determining module detects the main charging circuit for the Second processing module The working condition of return is failure state, using value lower than the sourcing current of the value of the sourcing current of the current setting as described suitable The maximum output current of orchestration.

Preferably, further includes:

Second processing module, for being by described in when the working condition of the main charging circuit return is failure state The adapter is provided at least two sourcing currents, sourcing current conduct of the value lower than the value of the sourcing current of the current setting The sourcing current of current setting triggers the setup module, until when the working condition that the main charging circuit returns is effective shape State, and the sum of the circulating current of the main charging circuit return and the current known are equal to the sourcing current of the current setting When, trigger the second maximum output current determining module;

The second maximum output current determining module detects the main charging circuit for the first processing module The working condition of return is effective status, and the sum of the circulating current of the main charging circuit return and the current known are equal to When the sourcing current of the current setting, using the sourcing current of the current setting as the maximum output current of the adapter.

Preferably, further includes:

Judgment module, the working condition for returning when the main charging circuit are failure state, judge that described is described Adapter is provided at least two sourcing currents, and whether value is most lower than the sourcing current of the value of the sourcing current of the current setting Small sourcing current, if it is, triggering determining module, if it is not, then triggering first processing module;

The determining module, for using the smallest sourcing current that the terminal is adapter setting as the adaptation The maximum output current of device.

Wherein, the setup module includes:

Setting unit is the sourcing current of the adapter current setting for foundation, in the electric circuit of the auxiliary charging The current known is written in the register of auxiliary core piece.

A kind of terminal, which is characterized in that the device including any of the above-described test adaptor maximum output current.

It can be seen via above technical scheme that compared with prior art, the embodiment of the invention provides a kind of detection adaptations The method of device maximum output current, according to the sourcing current for adapter current setting, the circulating current that auxiliary charging circuit is arranged is Current known only needs to detect in this way the circulating current that main charging circuit returns, can be obtained the circulating current of auxiliary charging circuit The sum of the circulating current returned with main charging circuit, may thereby determine that the maximum output current of adapter.

If adapter has the ability for the sourcing current that output is adapter current setting, the work that main charging circuit returns Making state is effective status, and can return to the circulating current of main charging circuit, when the circulating current that main charging circuit returns with When the sum of described current known is equal to the sourcing current of the current setting, show adapter at least and can export for adapter it is current The ability of the sourcing current of setting, it is therefore desirable to higher sourcing current be set for adapter, judge whether adapter has output more Value is higher than the sourcing current of the value of the sourcing current of the current setting as the drawing of current setting by the ability of high sourcing current Electric current is detected again, until detecting that the working condition that main charging circuit returns is failure state, if main charging circuit The working condition of return be failure state, illustrate adapter do not have export the sourcing current ability, but adapter have it is defeated Value is lower than the sourcing current of the value of the sourcing current of the current setting out, therefore value can be lower than to the drawing of the current setting Maximum output current of the sourcing current of the value of electric current as the adapter.It can be realized using the embodiment of the present invention and have bilateral The purpose of the terminal test adaptor maximum output current of road charging circuit.

Further, if adapter does not have the ability for the sourcing current that output is adapter current setting, main charging Circuit return working condition be failure state, may determine that at this time adapter whether can export be worth than current sourcing current it is low Sourcing current, i.e., the sourcing current using value lower than the value of the sourcing current of the current setting is as the sourcing current of current setting, again Detected, until main charging circuit return working condition be effective status, and main charging circuit return circulating current and The sum of described current known is equal to the value of the sourcing current of the current setting, illustrates that adapter has at this time and exports the sourcing current Ability, therefore can be using the sourcing current of the current setting as the maximum output current of the adapter.Using the present invention Embodiment can be realized the purpose for having the terminal test adaptor maximum output current of binary channels charging circuit.

Detailed description of the invention

In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.

Fig. 1 is a kind of a kind of implementation of the method for test adaptor maximum output current provided in an embodiment of the present invention Flow diagram;

Fig. 2 is a kind of method of another implementation of test adaptor maximum output current provided in an embodiment of the present invention Flow diagram;

Fig. 3 provides a kind of implementation process in the method for test adaptor maximum output current for the embodiment of the present invention Figure;

Fig. 4 is a kind of a kind of implementation of the device of test adaptor maximum output current provided in an embodiment of the present invention Structural schematic diagram.

Specific embodiment

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.

Embodiment one

Referring to Fig. 1, being a kind of one kind of the method for test adaptor maximum output current provided in an embodiment of the present invention The flow diagram of implementation, this method can be applied to terminal, and the charge integrated circuit of the terminal includes main charging circuit With auxiliary charging circuit, main charging circuit and auxiliary charging circuit are in parallel, and terminal is that adapter is provided at least two sourcing currents, from Sourcing current of the sourcing current as current setting is selected at least two sourcing current, the test adaptor maximum output electricity The method of stream includes:

Step S101: according to the sourcing current for being the adapter current setting, by the circulating current of the auxiliary charging circuit It is set as current known corresponding with the sourcing current of the current setting.

Sourcing current of the sourcing current as current setting, the drawing of current setting are selected from least two sourcing current The sourcing current that electric current can export for most of terminals, or by the smallest sourcing current at least two sourcing current Sourcing current as current setting.For each terminal, when first time executing step S101, the sourcing current of current setting It may be the same or different, the embodiment of the present invention is not specifically limited in this embodiment.It, should if the sourcing current of current setting is identical The sourcing current of current setting can be the default value of terminal, that is, when not needing to execute method provided in an embodiment of the present invention every time all The step for executing " sourcing current of the sourcing current as current setting is selected from least two sourcing current ", certainly It is carried out when can execute method provided in an embodiment of the present invention every time and " selects a drawing electricity from least two sourcing current Flow the sourcing current as current setting " the step for.

Since the auxiliary core piece in auxiliary charging circuit is unable to return current value, the embodiment of the present invention is cleverly by auxiliary charging circuit Circulating current be set as known current value, i.e. current known.

Current known can be different and different with the value of the sourcing current for adapter current setting, naturally it is also possible to phase Together, it need to only be set, be had according to the current value relationship of the sourcing current of adapter, main charging circuit and auxiliary charging circuit Body according to the actual situation depending on, the embodiment of the present invention does not make specific limit to this.

Such as: the sourcing current of adapter is set as 1.2A, 1.6A and 2.2A.If whether the fan-out capability of verifying adapter Meet 1.6A, then the sourcing current of the current setting in step S101 is 1.6A;Specifically, it is FIRST_ that the parameter, which is arranged, DECTET_VALUE, i.e. FIRST_DECTET_VALUE=1.6A.

It sets FIRST_DECTET_VALUE=1.6A to the sourcing current of adapter current setting, can be set at this time auxiliary The circulating current assister_current1=0.5A of charging circuit.If the fan-out capability of adapter can satisfy 1.6A, The circulating current master_current1=1.1A of main charging circuit.

If whether the fan-out capability of verifying adapter meets 1.2A, the sourcing current of the current setting in step S101 is 1.2A, it is ZERO_DECTET_VALUE that the parameter, which is arranged, i.e. auxiliary fill can be set in ZERO_DECTET_VALUE=1.2A at this time The circulating current assister_current0=0.4A of circuit, if orchestration has the ability of output 1.2A electric current, master fills The circulating current master_current0=0.8A of circuit.

If whether the fan-out capability of verifying adapter meets 2.2A, the sourcing current of the current setting in step S101 is 2.2A, it is SECOND_DECTET_VALUE that the parameter, which is arranged, i.e. SECOND_DECTET_VALUE=2.2A can be set at this time The circulating current assister_current2=1.2A of auxiliary charging circuit, if orchestration has the ability of output 1.2A electric current, The circulating current master_current2=1A of main charging circuit.

In the above-mentioned example enumerated, the loss of other component in terminal, main charging circuit, auxiliary charging circuit is had ignored, such as Fruit considers above-mentioned loss, and above-mentioned "=" should be to be approximately equal to.

Specifically, current known can be written in the register of auxiliary core piece of auxiliary charging circuit, charging circuit auxiliary in this way Circulating current be just current known.

Step S102: under the sourcing current of the current setting, the working condition that the main charging circuit returns is detected.

Since when first time executing step S101, the sourcing current of current setting is the drawing that most of terminals can export Minimum sourcing current in electric current or at least two sourcing current.For each adapter, step is executed in first time When S102, the working condition that main charging circuit returns is effective status.

Master chip in main charging circuit can feed back the working condition of the chip, i.e., whether the main charging circuit can be just Normal work is under the sourcing current, for illustrating in step S101, if whether the fan-out capability of verifying adapter meets 1.2A, then the sourcing current of the current setting in step S101 is 1.2A, and the circulating current of auxiliary charging circuit can be set at this time Assister_current0=0.4A, if orchestration has the ability of output 1.2A electric current, the circulating current of main charging circuit Whether main charging circuit in master_current0=0.8A, step S102 can feed back the main charging circuit in 0.8A Electric current under work, if so, working condition is generally effective status, if not, working condition is generally invalid state.

Step S103: when the working condition that the main charging circuit returns is effective status, and the main charging circuit returns The sum of the circulating current returned and the current known are equal to the sourcing current of the current setting, then set described for the adapter It is equipped at least two sourcing currents, value is higher than drawing of the sourcing current of the value of the sourcing current of the current setting as current setting Electric current, return step S101.Until the working condition that the main charging circuit returns is failure state, value is worked as lower than described Maximum output current of the sourcing current of the value of the sourcing current of preceding setting as the adapter.

For convenience draw attached drawing, step S103 is divided for step S1031 and step S1032.

Step S1031: the working condition that the main charging circuit returns is effective status, and the main charging circuit returns Circulating current and the sum of the current known be equal to the sourcing current of the current setting, then described will be arranged for the adapter Have at least two sourcing currents, value is higher than drawing electricity of the sourcing current as current setting of the value of the sourcing current of the current setting Stream, return step S101.

Step S1032: the working condition that the main charging circuit returns is failure state, and value is currently set lower than described Maximum output current of the sourcing current of the value for the sourcing current set as the adapter.

Step S1032 is to execute one or many rear execution in step S1031.

Assuming that the sourcing current that terminal is adapter setting includes 0.8A, 1.2A, 1.6A, 2.2A etc., the drawing of current setting Electric current is 1.2A, if main charging circuit return working condition be effective status, and main charging circuit return circulating current It is equal to 1.2A with the sum of the current known, illustrates that the fan-out capability of adapter is at least 1.2A, it at this time can be according to from small to large Sequence, 1.6A is assigned to as the sourcing current of adapter current setting, if the working condition that main charging circuit returns is to have Effect state, and the sum of the flow-thru electrode flow valuve of main charging circuit return and the current known are equal to 1.6A, illustrate the defeated of adapter Output capacity is at least 1.6A, illustrates that the fan-out capability of adapter is at least 1.6A, is then assigned to 2.2A and currently sets for adapter The sourcing current set, if the working condition that main charging circuit returns at this time is failure state, most using 1.6A as adapter Big output electric current.

" the sum of the circulating current of main charging circuit return and the current known are equal to the current setting in above-mentioned steps Sourcing current value " " being equal to " be the loss for ignoring main charging circuit, auxiliary charging circuit and other components in terminal, such as Fruit considers above-mentioned loss, then " being equal to " should be " being approximately equal to ".

The method of test adaptor maximum output current provided in an embodiment of the present invention, according to for adapter current setting Sourcing current, the circulating current that auxiliary charging circuit is arranged is current known, only needs to detect the circulation that main charging circuit returns in this way Electric current, the sum of the circulating current that the circulating current and main charging circuit that can be obtained auxiliary charging circuit return, may thereby determine that The maximum output current of adapter.

If adapter has the ability for the sourcing current that output is adapter current setting, the work that main charging circuit returns Making state is effective status, and can return to the circulating current of main charging circuit, when the circulating current that main charging circuit returns with When the sum of described current known is equal to the sourcing current of the current setting, show adapter at least and can export for adapter it is current The ability of the sourcing current of setting, it is therefore desirable to higher sourcing current be set for adapter, judge whether adapter has output more Value is higher than the sourcing current of the value of the sourcing current of the current setting as the drawing of current setting by the ability of high sourcing current Electric current is detected again, until detecting that the working condition that main charging circuit returns is failure state, if main charging circuit The working condition of return be failure state, illustrate adapter do not have export the sourcing current ability, but adapter have it is defeated Value is lower than the sourcing current of the value of the sourcing current of the current setting out, therefore value can be lower than to the drawing of the current setting Maximum output current of the sourcing current of the value of electric current as the adapter.It can be realized using the embodiment of the present invention and have bilateral The purpose of the terminal test adaptor maximum output current of road charging circuit.

Embodiment two

Referring to Fig. 2, being a kind of the another of method of test adaptor maximum output current provided in an embodiment of the present invention The method flow schematic diagram of implementation, this method can be applied to terminal, and the charge integrated circuit of the 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 at least two drawings electricity Stream, selects sourcing current of the sourcing current as current setting from least two sourcing current, and the test adaptor is maximum Output electric current method include:

Step S201: according to the sourcing current for being the adapter current setting, by the circulating current of the auxiliary charging circuit It is set as current known corresponding with the sourcing current of the current setting.

Sourcing current of the sourcing current as current setting, the drawing of current setting are selected from least two sourcing current Electric current can be the sourcing current that most of terminals can export, or minimum sourcing current will be removed at least two sourcing current Sourcing current of any sourcing current as current setting in addition.

Step S202: under the sourcing current of the current setting, the working condition that the main charging circuit returns is detected.

Step S203: when the working condition that the main charging circuit returns is effective status, and the main charging circuit returns The sum of the circulating current returned and the current known are equal to the sourcing current of the current setting, then set described for the adapter It is equipped at least two sourcing currents, value is higher than drawing of the sourcing current of the value of the sourcing current of the current setting as current setting Electric current, return step S201.Until the working condition that the main charging circuit returns is failure state, value is worked as lower than described Maximum output current of the sourcing current of the value of the sourcing current of preceding setting as the adapter.

For convenience draw attached drawing, step S203 is divided for step S2031 and step S2032.

Step S2031: the working condition that the main charging circuit returns is effective status, and the main charging circuit returns Circulating current and the sum of the current known be equal to the sourcing current of the current setting, then described will be arranged for the adapter Have at least two sourcing currents, value is higher than drawing electricity of the sourcing current as current setting of the value of the sourcing current of the current setting Stream, return step S201.

Step S2032: the working condition that the main charging circuit returns is failure state, and value is currently set lower than described Maximum output current of the sourcing current of the value for the sourcing current set as the adapter.

Step S2032 is to execute one or many rear execution in step S2031.

The description that step S101 to step S103 in embodiment one is please referred to the description of step S201 to step S203, This is repeated no more.

Step S204: will described be the adaptation when the working condition that the main charging circuit returns is failure state Device is provided at least two sourcing currents, and value is lower than the sourcing current of the value of the sourcing current of the current setting as current setting Sourcing current, return to step S201.Until the working condition that the main charging circuit returns is effective status, and the master The sum of the circulating current of charging circuit return and the current known are equal to the sourcing current of the current setting, currently set described Maximum output current of the sourcing current set as the adapter.

For convenience draw attached drawing, step S204 is divided for step S2041 and step S2042.

Step S2041: will described be the adaptation when the working condition that the main charging circuit returns is failure state Device is provided at least two sourcing currents, and value is lower than the sourcing current of the value of the sourcing current of the current setting as current setting Sourcing current, return to step S201.

Step S2042: the working condition that the main charging circuit returns is effective status, and the main charging circuit returns Circulating current and the sum of the current known be equal to the sourcing current of the current setting, the sourcing current of the current setting is made For the maximum output current of the adapter.

Step S2042 is just executed after step S2041 execution is one or many.

Under normal circumstances, the working condition that main charging circuit returns is effective status, then the main charging circuit returns The sum of circulating current and the current known will be equal to the sourcing current of the current setting.But most in order to ensure adapter Big fan-out capability, both needs to meet together condition, i.e., the working condition that main charging circuit returns is effective status, and main charging The sum of the circulating current of circuit return and the current known are equal to the sourcing current of the current setting.

Main charging circuit includes master chip, if adapter has the sourcing current of output current setting, main charging circuit Effective status can be returned to, if adapter maximum output current is lower than the sourcing current of current setting, main charging circuit can be with Return to invalid state.

The working condition that main charging circuit returns is failure state, illustrates that the maximum output current of adapter is lower than and currently sets The sourcing current set.Assuming that the sourcing current that terminal is adapter setting includes 0.8A, 1.2A, 1.6A, 2.2A etc., current setting Sourcing current is 1.6A, if the working condition that main charging circuit returns is failure state, illustrates the maximum output current of adapter Lower than 1.6A, the sourcing current that according to sequence from big to small, 1.2A can will be selected to be assigned to for adapter current setting at this time, such as The working condition that the main charging circuit of fruit returns remains as failure state, illustrates that the maximum output current of adapter is lower than 1.2A, then 0.8A is assigned to as the sourcing current of adapter current setting.

Until the working condition that main charging circuit returns is effective status, circulating current that main charging circuit returns and described The sum of current known is equal to the value of the sourcing current of the current setting, using the sourcing current of the current setting as the adaptation The maximum output current of device, it is assumed that the sourcing current of current setting is 0.8A, if the working condition that main charging circuit returns is to have Effect state, and the sum of the circulating current of main charging circuit return and the current known are equal to 0.8A, then by the drawing of current setting The maximum output current of electric current 0.8A adapter the most.

" the sum of the circulating current of main charging circuit return and the current known are equal to the current setting in above-mentioned steps Sourcing current value " " being equal to " be the loss for ignoring main charging circuit, auxiliary charging circuit and other components in terminal, such as Fruit considers above-mentioned loss, then " being equal to " should be " being approximately equal to ".

The method of test adaptor maximum output current provided in an embodiment of the present invention, according to for adapter current setting Sourcing current, the circulating current that auxiliary charging circuit is arranged is current known, only needs to detect the circulation that main charging circuit returns in this way Electric current, the sum of the circulating current that the circulating current and main charging circuit that can be obtained auxiliary charging circuit return, may thereby determine that The maximum output current of adapter.

If adapter has the ability for the sourcing current that output is adapter current setting, the work that main charging circuit returns Making state is effective status, and can return to the circulating current of main charging circuit, when the circulating current that main charging circuit returns with When the sum of described current known is equal to the sourcing current of the current setting, show adapter at least and can export for adapter it is current The ability of the sourcing current of setting, it is therefore desirable to higher sourcing current be set for adapter, judge whether adapter has output more Value is higher than the sourcing current of the value of the sourcing current of the current setting as the drawing of current setting by the ability of high sourcing current Electric current is detected again, until detecting that the working condition that main charging circuit returns is failure state, if main charging circuit The working condition of return be failure state, illustrate adapter do not have export the sourcing current ability, but adapter have it is defeated Value is lower than the sourcing current of the value of the sourcing current of the current setting out, therefore value can be lower than to the drawing of the current setting Maximum output current of the sourcing current of the value of electric current as the adapter.

If adapter does not have the ability for the sourcing current that output is adapter current setting, what main charging circuit returned Working condition is failure state, may determine that whether adapter can export at this time and is worth low sourcing current than current sourcing current, i.e., Sourcing current using value lower than the value of the sourcing current of the current setting is detected again as the sourcing current of current setting, Until main charging circuit return working condition be effective status, and main charging circuit return circulating current and the known electric The sum of stream is equal to the value of the sourcing current of the current setting, illustrates that adapter has the ability for exporting the sourcing current at this time, because This can be using the sourcing current of the current setting as the maximum output current of the adapter.

Referring to Fig. 3, being a kind of the another of method of test adaptor maximum output current provided in an embodiment of the present invention The method flow schematic diagram of kind implementation, this method are applied to terminal, and the charge integrated circuit of the terminal includes main charging Circuit and auxiliary charging circuit, the main charging circuit and auxiliary charging circuit are in parallel, and the terminal is that the adapter is provided with At least two sourcing currents select sourcing current of the sourcing current as current setting, the party from least two sourcing current Method includes:

Step S301: according to the sourcing current for being the adapter current setting, by the circulating current of the auxiliary charging circuit It is set as current known corresponding with the sourcing current of the current setting.

Sourcing current of the sourcing current as current setting, the drawing of current setting are selected from least two sourcing current Electric current can be maximum sourcing current at least two sourcing current.The maximum sourcing current refers to can than each adapter Export the big sourcing current of maximum current value.

Step S302: under the sourcing current of the current setting, the working condition that the main charging circuit returns is detected.

The explanation of step S301 and step S302 please refer to the description of step S101 and step S102 in embodiment one, This is repeated no more.

Step S303: will described be the adaptation when the working condition that the main charging circuit returns is failure state Device is provided at least two sourcing currents, and value is lower than the sourcing current of the value of the sourcing current of the current setting as current setting Sourcing current, return to step S301.Until the working condition that the main charging circuit returns is effective status, and the master The sum of the circulating current of charging circuit return and the current known are equal to the sourcing current of the current setting, currently set described Maximum output current of the sourcing current set as the adapter.

For convenience draw attached drawing, step S303 is divided for step S3031 and step S3032.Due to being held for the first time When row step S301, the sourcing current of current setting is also bigger than the maximum current value that each adapter exports, therefore for each suitable For orchestration, when first time executing step S302, the working condition that main charging circuit returns all is failure state.

Step S3031: will described be the adaptation when the working condition that the main charging circuit returns is failure state Device is provided at least two sourcing currents, and value is lower than the sourcing current of the value of the sourcing current of the current setting as current setting Sourcing current, return to step S301.

Step S3032: the working condition that the main charging circuit returns is effective status, and the main charging circuit returns Circulating current and the sum of the current known be equal to the sourcing current of the current setting, the sourcing current of the current setting is made For the maximum output current of the adapter.

Step S3032 is just executed after step S3031 execution is one or many.

The description of step S303 can be refering to the description in embodiment two to step S204, and details are not described herein.

Referring to Fig. 2, being a kind of another realization side of test adaptor maximum output current provided in an embodiment of the present invention The method flow schematic diagram of formula, this method include step S101 to step S106 in above-described embodiment, this method comprises:

Step S101: according to the sourcing current for being the adapter current setting, by the circulating current of the auxiliary charging circuit It is set as current known corresponding with the sourcing current of the current setting.

Step S102: under the sourcing current of the current setting, the working condition that the main charging circuit returns is detected.

Step S201: when the working condition that the main charging circuit returns is failure state, judge described in as the adaptation Device is provided at least two sourcing currents, and whether value is the smallest lower than the sourcing current of the value of the sourcing current of the current setting Sourcing current, if it is, S202 is entered step, if it is not, then entering step S103.

Step S202: using the smallest sourcing current that the terminal is adapter setting as the maximum of the adapter Export electric current.

In practical applications, it is that the adapter is provided at least two drawings that almost all of adapter, which has outlet terminal, The smallest sourcing current in electric current.

Assuming that the sourcing current that terminal is adapter setting includes 0.8A, 1.2A, 1.6A, 2.2A etc., the drawing of current setting Electric current is 1.6A, if the working condition that main charging circuit returns is failure state, illustrates that the maximum output current of adapter is low In 1.6A, the sourcing current that according to sequence from big to small, 1.2A can will be selected to be assigned to for adapter current setting at this time, if The working condition that main charging circuit returns remains as failure state, illustrates that the maximum output current of adapter is lower than 1.2A, and 0.8A be terminal be adapter setting sourcing current in the smallest sourcing current, therefore can directly by 0.8A adapter the most most Big output electric current.

Step S103: will described be the adaptation when the working condition that the main charging circuit returns is failure state Device is provided at least two sourcing currents, and value is lower than the sourcing current of the value of the sourcing current of the current setting as current setting Sourcing current, return to step S101.Circulation step S101 to step S103, until the work that the main charging circuit returns State is effective status, and the sum of the circulating current of the main charging circuit return and the current known are currently set equal to described The sourcing current set, using the sourcing current of the current setting as the maximum output current of the adapter.

For convenience draw attached drawing, step S103 is divided for step S1031 and step S1032.

Step S1031: will described be the adaptation when the working condition that the main charging circuit returns is failure state Device is provided at least two sourcing currents, and value is lower than the sourcing current of the value of the sourcing current of the current setting as current setting Sourcing current, return to step S101.

Step S1032: the working condition that the main charging circuit returns is effective status, and the main charging circuit returns Circulating current and the sum of the current known be equal to the sourcing current of the current setting, the sourcing current of the current setting is made For the maximum output current of the adapter.

Step S1032 is just executed, not with subsequent step S1041 after step S1031 execution is one or many Together.Step S104: the working condition that the main charging circuit returns is effective status, and the circulation that the main charging circuit returns The sum of electric current and the current known are equal to the sourcing current of the current setting, then are provided with described at least for the adapter In two sourcing currents, value is higher than sourcing current of the sourcing current of the value of the sourcing current of the current setting as current setting, returns Return step S101.Until the working condition that the main charging circuit returns is failure state, value is lower than the current setting Sourcing current value maximum output current of the sourcing current as the adapter.

For convenience draw attached drawing, step S104 is divided for step S1041 and step S1042.

Step S1041: the working condition that the main charging circuit returns is effective status, and the main charging circuit returns Circulating current and the sum of the current known be equal to the sourcing current of the current setting, then described will be arranged for the adapter Have at least two sourcing currents, value is higher than drawing electricity of the sourcing current as current setting of the value of the sourcing current of the current setting Stream, return step S101.

Step S1042: the working condition that the main charging circuit returns is failure state, and value is currently set lower than described Maximum output current of the sourcing current of the value for the sourcing current set as the adapter.

Step S1042 is to execute one or many rear execution in step S1041.Different from step S1031.

In order to which those skilled in the art more understand the embodiment of the present invention, names a specific example and the present invention is implemented Example explains.Referring to Fig. 3, providing a kind of realization in the method for test adaptor maximum output current for the embodiment of the present invention Mode flow chart.

Assuming that at least two sourcing currents that terminal is adapter setting are 1.2A, 1.6A and 2.2A, firstly, verifying adapter Fan-out capability whether meet 1.6A.Then the sourcing current of the current setting in step S101 is 1.6A, and the parameter, which is arranged, is FIRST_DECTET_VALUE, i.e. FIRST_DECTET_VALUE=1.6A.

Step S301: it sets FIRST_DECTET_VALU=1.6A to the sourcing current of adapter current setting, and is arranged The circulating current assister_current1=0.5A of auxiliary charging circuit.

If the fan-out capability of adapter can satisfy 1.6A, the circulating current master_ of main charging circuit Current1=1.1A.

Step S302: detecting whether main charging circuit has return state FIRST_ICO_STATE, works as FIRST_ICO_ STATE=0 is then failure state, works as FIRST_ICO_STATE=1, then is effective status.

Step S303: if FIRST_ICO_STATE=0, illustrate that the fan-out capability of adapter lower than 1.6A, is then arranged ZERO_DECTET_VALUE=1.2A is the sourcing current of adapter current setting, and the circulating current of auxiliary charging circuit is arranged Assister_current0=0.4A.

If the fan-out capability of adapter can satisfy 1.2A, the circulating current master_ of main charging circuit Current0=0.8A.

Terminal is that adapter is provided with 3 sourcing currents: 1.2A, 1.6A and 2.2A, ordinary circumstance in embodiments of the present invention Under, adapter all has the ability for the smallest sourcing current (embodiment of the present invention 1.2A) that outlet terminal is adapter setting, So when detecting that adapter does not have the ability of the electric current of output 1.6A, it can be directly using 1.2A as the maximum of adapter Export electric current.Can certainly test adaptor whether have output 1.2A electric current ability.

Step S304, it detects whether main charging circuit has return state ZERO_ICO_STATE, works as ZERO_ICO_STATE =0, then it is failure state, works as ZERO_ICO_STATE=1, then is effective status.

Step S305: if ZERO_ICO_STATE=1, main charging circuit will return current ZERO_ICO_ CURRENT, if ZERO_ICO_CURRENT+assister_current0=ZERO_DECTET_VALUE=1.2 A, says Bright adapter has 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, illustrate the ability that adapter does not have output 1.2A electric current.

Step S307: if FIRST_ICO_STATE=1, main charging circuit will return current FIRST_ICO_ CURRENT, if FIRST_ICO_CURRENT+assister_current1=FIRST_DECTET_VALUE=1 .6A, Illustrate the ability that adapter has output 1.6A electric current.

That is, adapter can at least export the electric current of 1.6A, it is therefore desirable to detect the 2.2A of value ratio 1.6A high.

Step S308: setting SECOND_DECTET_VALUE=2.2A to the sourcing current of adapter current setting, setting The circulating current assister_current2=1.2A of auxiliary charging circuit.

If the fan-out capability of adapter can satisfy 1.6A, the circulating current master_ of main charging circuit Current2=1A.

Step S309: detecting whether main charging circuit has return state SECOND_ICO_STATE, works as SECOND_ICO_ STATE=0 is then failure state, works as SECOND_ICO_STATE=1, then is effective status.

If step S310, SECOND_ICO_STATE=1, main charging circuit will return current SECOND_ICO_ CURRENT, if SECOND_ICO_CURRENT+assister_current2=SECOND_DECTET_VALUE=2.2A, Then illustrate the ability that adapter has output 2.2A electric current.

Under normal circumstances, terminal is the maximum output current that the maximum sourcing current of adapter setting includes each adapter, Will not be lower than the maximum output current of adapter because of the value that terminal is the sourcing current that adapter is arranged, and cause adapter cannot The problem of playing maximal efficiency.

Step S311: if SECOND_ICO_STATE=0, FIRST_DECTET_VALUE=1.6A are adapter Maximum output current.

Referring to Fig. 4, being a kind of one kind of the device of test adaptor maximum output current provided in an embodiment of the present invention The structural schematic diagram of implementation, the device are applied to terminal, and the charge integrated circuit of terminal includes main charging circuit and auxiliary fills Circuit, main charging circuit and auxiliary charging circuit are in parallel, and terminal is that adapter is provided at least two sourcing currents, detection adaptation The device of device maximum output current includes: setup module 401, detection module 402, first processing module 403, the first maximum output Electric current determining module 404, Second processing module 405, the second maximum output current determining module 406, in which:

Setup module 401 is the sourcing current of the adapter current setting for foundation, by the stream of the auxiliary charging circuit Galvanization is set as current known corresponding with the sourcing current of the current setting.

Since the auxiliary core piece in auxiliary charging circuit is unable to return current value, the embodiment of the present invention is cleverly by auxiliary charging circuit Circulating current be set as known current value, i.e. current known.

Current known can be different and different with the value of the sourcing current for adapter current setting, naturally it is also possible to phase Together, it need to only be set, be had according to the current value relationship of the sourcing current of adapter, main charging circuit and auxiliary charging circuit Body according to the actual situation depending on, the embodiment of the present invention does not make specific limit to this.

Such as: the sourcing current of adapter is set as 1.2A, 1.6A and 2.2A.If whether the fan-out capability of verifying adapter Meet 1.6A, then the sourcing current of the current setting in step S101 is 1.6A;Specifically, it is FIRST_ that the parameter, which is arranged, DECTET_VALUE, i.e. FIRST_DECTET_VALUE=1.6A.

It sets FIRST_DECTET_VALU=1.6A to the sourcing current of adapter current setting, can be set at this time auxiliary The circulating current assister_current1=0.5A of charging circuit.If the fan-out capability of adapter can satisfy 1.6A, The circulating current master_current1=1.1A of main charging circuit.

If whether the fan-out capability of verifying adapter meets 1.2A, the sourcing current of the current setting in step S101 is 1.2A, it is ZERO_DECTET_VALUE that the parameter, which is arranged, i.e. auxiliary fill can be set in ZERO_DECTET_VALUE=1.2A at this time The circulating current assister_current0=0.4A of circuit, if orchestration has the ability of output 1.2A electric current, master fills The circulating current master_current0=0.8A of circuit.

If whether the fan-out capability of verifying adapter meets 2.2A, the sourcing current of the current setting in step S101 is 2.2A, it is SECOND_DECTET_VALUE that the parameter, which is arranged, i.e. SECOND_DECTET_VALUE=2.2A can be set at this time The circulating current assister_current2=1.2A of auxiliary charging circuit, if orchestration has the ability of output 1.2A electric current, The circulating current master_current2=1A of main charging circuit.

In the above-mentioned example enumerated, the loss of other component in terminal, main charging circuit, auxiliary charging circuit is had ignored, such as Fruit considers above-mentioned loss, and above-mentioned "=" should be to be approximately equal to.

Specifically, current known can be written in the register of auxiliary core piece of auxiliary charging circuit, charging circuit auxiliary in this way Circulating current be just current known.

Detection module 402, the work returned under the sourcing current of the current setting, detecting the main charging circuit State.

Master chip in main charging circuit can feed back the working condition of the chip, i.e., whether the main charging circuit can be just Normal work is under the sourcing current, for illustrating in setup module 401, if whether the fan-out capability of verifying adapter meets 1.2A, then the sourcing current of the current setting in step S101 is 1.2A, and the circulating current of auxiliary charging circuit can be set at this time Assister_current0=0.4A, if orchestration has the ability of output 1.2A electric current, the circulating current of main charging circuit Master_current0=0.8A, the main charging circuit in detection module 402 can feed back the main charging circuit whether It works under the electric current of 0.8A, if so, working condition is generally effective status, if not, working condition is generally invalid state.

First processing module 403 will be described when the working condition for returning when the main charging circuit is failure state It is provided at least two sourcing currents for the adapter, value is made lower than the sourcing current of the value of the sourcing current of the current setting For the sourcing current of current setting, the setup module is triggered, until when the working condition that the main charging circuit returns is effective State, and the sum of the circulating current of the main charging circuit return and the current known are equal to the sourcing current of the current setting When, trigger the first maximum output current determining module.

The first maximum output current determining module 404 detects the main charging for the first processing module The working condition that circuit returns is effective status, and the sum of the circulating current that returns of the main charging circuit and the current known Equal to the current setting sourcing current when, using the sourcing current of the current setting as the adapter maximum output electricity Stream.

Main charging circuit includes master chip, if adapter has the sourcing current of output current setting, main charging circuit Effective status can be returned to, if adapter maximum output current is lower than the sourcing current of current setting, main charging circuit can be with Return to invalid state.

The working condition that main charging circuit returns is failure state, illustrates that the maximum output current of adapter is lower than and currently sets The sourcing current set.Assuming that the sourcing current that terminal is adapter setting includes 0.8A, 1.2A, 1.6A, 2.2A etc., current setting Sourcing current is 1.6A, if the working condition that main charging circuit returns is failure state, illustrates the maximum output current of adapter Lower than 1.6A, the sourcing current that according to sequence from big to small, 1.2A can will be selected to be assigned to for adapter current setting at this time, such as The working condition that the main charging circuit of fruit returns remains as failure state, illustrates that the maximum output current of adapter is lower than 1.2A, then 0.8A is assigned to as the sourcing current of adapter current setting.

Until the working condition that main charging circuit returns is effective status, circulating current that main charging circuit returns and described The sum of current known is equal to the value of the sourcing current of the current setting, using the sourcing current of the current setting as the adaptation The maximum output current of device, it is assumed that the sourcing current of current setting is 0.8A, if the working condition that main charging circuit returns is to have Effect state, and the sum of the circulating current of main charging circuit return and the current known are equal to 0.8A, then by the drawing of current setting The maximum output current of electric current 0.8A adapter the most.

It is above-mentioned that " the sum of the circulating current of main charging circuit return and the current known are equal to the drawing electricity of the current setting " being equal to " of the value of stream " is the loss for ignoring main charging circuit, auxiliary charging circuit and other components in terminal, if it is considered that Above-mentioned loss, then " being equal to " should be " being approximately equal to ".

Second processing module 405, the working condition for returning when the main charging circuit are effective status, and the master The sum of the circulating current of charging circuit return and the current known are equal to the sourcing current of the current setting, and value is higher than institute Sourcing current of the sourcing current as current setting for stating the value of the sourcing current of current setting, triggers the setup module, until working as institute Stating the working condition that main charging circuit returns is failure state, triggers the second maximum output current determining module.

The second maximum output current determining module 406 detects the main charging for the Second processing module The working condition that circuit returns is failure state, and the sourcing current using value lower than the value of the sourcing current of the current setting is as institute State the maximum output current of adapter.

Assuming that the sourcing current that terminal is adapter setting includes 0.8A, 1.2A, 1.6A, 2.2A etc., the drawing of current setting Electric current is 1.2A, if main charging circuit return working condition be effective status, and main charging circuit return circulating current It is equal to 1.2A with the sum of the current known, illustrates that the fan-out capability of adapter is at least 1.2A, it at this time can be according to from small to large Sequence, 1.6A is assigned to as the sourcing current of adapter current setting, if the working condition that main charging circuit returns is to have Effect state, and the sum of the flow-thru electrode flow valuve of main charging circuit return and the current known are equal to 1.6A, illustrate the defeated of adapter Output capacity is at least 1.6A, illustrates that the fan-out capability of adapter is at least 1.6A, is then assigned to 2.2A and currently sets for adapter The sourcing current set, if the working condition that main charging circuit returns at this time is failure state, most using 1.6A as adapter Big output electric current.

The device of test adaptor maximum output current provided in an embodiment of the present invention is adaptation according to setup module 401 The sourcing current of device current setting, the circulating current that auxiliary charging circuit is arranged is current known, only needs to detect main charging electricity in this way The circulating current that road returns, the sum of the circulating current that the circulating current and main charging circuit that can be obtained auxiliary charging circuit return, It may thereby determine that the maximum output current of adapter.

If adapter has the ability for the sourcing current that output is adapter current setting, detection module 402 is detected The working condition that main charging circuit returns is effective status, and can return to the circulating current of main charging circuit, works as second processing Module 405 judges that the sum of the circulating current that main charging circuit returns and described current known are equal to the drawing electricity of the current setting When stream, show adapter at least and can export the ability of the sourcing current for adapter current setting, it is therefore desirable to set for adapter Higher sourcing current is set, judges whether adapter has the ability for exporting higher sourcing current, i.e., is higher than value described current Sourcing current of the sourcing current of the value of the sourcing current of setting as current setting, is detected again, until detecting main charging electricity The working condition that road returns is failure state, if the working condition that main charging circuit returns is failure state, illustrates adapter Do not have the ability for exporting the sourcing current, but adapter has value of the output value lower than the sourcing current of the current setting Sourcing current, thus can using value lower than the current setting sourcing current value sourcing current as the maximum of the adapter Export electric current.

If adapter does not have the ability for the sourcing current that output is adapter current setting, detection module 402 is detected The working condition that the main charging circuit arrived returns is failure state, may determine that whether adapter can export at this time and draws than currently The sourcing current of the low sourcing current of current value, i.e. first processing module 403 by value lower than the value of the sourcing current of the current setting It as the sourcing current of current setting, is detected again, until the working condition that main charging circuit returns is effective status, and main The sum of the circulating current of charging circuit return and the current known are equal to the value of the sourcing current of the current setting, say at this time Bright adapter has the ability for exporting the sourcing current, therefore can be using the sourcing current of the current setting as the adapter Maximum output current.Can be realized using the embodiment of the present invention have binary channels charging circuit terminal test adaptor maximum it is defeated The purpose of electric current out.

In practical applications, it is that the adapter is provided at least two drawings that almost all of adapter, which has outlet terminal, The smallest sourcing current in electric current.Assuming that the sourcing current that terminal is adapter setting includes 0.8A, 1.2A, 1.6A, 2.2A etc., when The sourcing current of preceding setting is 1.6A, if the working condition that main charging circuit returns is failure state, illustrates the maximum of adapter It exports electric current and is lower than 1.6A, according to sequence from big to small, 1.2A can will be selected to be assigned to for adapter current setting at this time Sourcing current illustrates that the maximum output current of adapter is low if the working condition that main charging circuit returns remains as failure state In 1.2A, and 0.8 is the smallest sourcing current in sourcing current that terminal is adapter setting, therefore can be directly the most suitable by 0.8A The maximum output current of orchestration.

Above-mentioned apparatus embodiment can also include: judgment module, the working condition for returning when the main charging circuit For failure state, judge it is described be provided at least two sourcing currents as the adapter, value is lower than the current setting Whether the sourcing current of the value of sourcing current is the smallest sourcing current, if it is, triggering determining module, if it is not, then triggering first Processing module;The determining module, for using the smallest sourcing current that the terminal is adapter setting as described suitable The maximum output current of orchestration.

The embodiment of the invention also provides a kind of terminal, which includes any of the above-described test adaptor maximum output current Device.

In order to which those skilled in the art more understand test adaptor maximum output current provided in an embodiment of the present invention Device, can be refering to the description in Fig. 3.

It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.

The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (9)

1. a kind of method of test adaptor maximum output current, which is characterized in that be applied to terminal, the charging collection of the terminal It include main charging circuit and auxiliary charging circuit at circuit, the main charging circuit and auxiliary charging circuit are in parallel, and the terminal is The adapter is provided at least two sourcing currents, selects a sourcing current as currently setting from least two sourcing current The sourcing current set, which comprises
A1, according to the sourcing current for being the adapter current setting, set the circulating current of the auxiliary charging circuit to and institute The sourcing current for stating current setting corresponds to current known;
A2, under the sourcing current of the current setting, detect the working condition that the main charging circuit returns;
A3, when the working condition that the main charging circuit returns is effective status, and the flow-thru electrode that the main charging circuit returns The sum of stream and the current known are equal to the sourcing current of the current setting, then the adapter are provided at least two by described In a sourcing current, value is higher than sourcing current of the sourcing current of the value of the sourcing current of the current setting as current setting, returns A1 is executed, until the working condition that the main charging circuit returns is failure state, value is lower than to the drawing of the current setting Maximum output current of the sourcing current of the value of electric current as the adapter.
2. the method for test adaptor maximum output current according to claim 1, which is characterized in that further include:
A4, when the working condition that the main charging circuit returns is failure state, by it is described for the adapter be provided with to In few two sourcing currents, value is lower than sourcing current of the sourcing current of the value of the sourcing current of the current setting as current setting, It returns and executes A1, until the working condition that the main charging circuit returns is effective status, and the main charging circuit returns The sum of circulating current and the current known be equal to the current setting sourcing current, using the sourcing current of the current setting as The maximum output current of the adapter.
3. the method for test adaptor maximum output current according to claim 2, which is characterized in that further include:
A5, when the working condition that the main charging circuit returns is failure state, judge described in as the adapter be provided with to In few two sourcing currents, whether value is the smallest sourcing current lower than the sourcing current of the value of the sourcing current of the current setting, such as Fruit is then to enter step A6, if it is not, then entering step A3;
It A6, is the smallest sourcing current of adapter setting using the terminal as the maximum output current of the adapter.
4. according to claim 1 to the method for 3 any test adaptor maximum output currents, which is characterized in that the step Rapid A1 is specifically used for:
According to the sourcing current for being the adapter current setting, be written in the register of the auxiliary core piece in the auxiliary charging circuit The current known.
5. a kind of device of test adaptor maximum output current, which is characterized in that be applied to terminal, the charging collection of the terminal It include main charging circuit and auxiliary charging circuit at circuit, the main charging circuit and auxiliary charging circuit are in parallel, and the terminal is The adapter is provided at least two sourcing currents, selects a sourcing current as currently setting from least two sourcing current The sourcing current set, described device include:
Setup module is the sourcing current of the adapter current setting for foundation, by the circulating current of the auxiliary charging circuit It is set as current known corresponding with the sourcing current of the current setting;
Detection module, the working condition returned under the sourcing current of the current setting, detecting the main charging circuit;
First processing module, the working condition for returning when the main charging circuit is effective status, and the main charging is electric The sum of the circulating current of road return and the current known are equal to the sourcing current of the current setting, value are higher than described current Sourcing current of the sourcing current of the value of the sourcing current of setting as current setting, triggers the setup module, until when the master fills The working condition that circuit returns is failure state, triggers the first maximum output current determining module;
The first maximum output current determining module detects that the main charging circuit returns for the Second processing module Working condition be failure state, using value lower than the current setting sourcing current value sourcing current as the adapter Maximum output current.
6. the device of test adaptor maximum output current according to claim 5, which is characterized in that further include:
Second processing module is described by described in when the working condition for returning when the main charging circuit is failure state Adapter is provided at least two sourcing currents, and value is used as current lower than the sourcing current of the value of the sourcing current of the current setting The sourcing current of setting triggers the setup module, until when the working condition that the main charging circuit returns is effective status, and When the sum of the circulating current of the main charging circuit return and the current known are equal to the sourcing current of the current setting, triggering Second maximum output current determining module;
The second maximum output current determining module detects that the main charging circuit returns for the first processing module Working condition be effective status, and the sum of the circulating current that returns of the main charging circuit and the current known be equal to it is described When the sourcing current of current setting, using the sourcing current of the current setting as the maximum output current of the adapter.
7. the device of test adaptor maximum output current according to claim 5, which is characterized in that further include:
Judgment module, the working condition for returning when the main charging circuit are failure state, are judged described as the adaptation Device is provided at least two sourcing currents, and whether value is the smallest lower than the sourcing current of the value of the sourcing current of the current setting Sourcing current, if it is, triggering determining module, if it is not, then triggering first processing module;
The determining module, for using the smallest sourcing current that the terminal is adapter setting as the adapter Maximum output current.
8. according to the device of any test adaptor maximum output current of claim 5 to 7, which is characterized in that described to set Setting module includes:
Setting unit, for the auxiliary core piece according to the sourcing current for being the adapter current setting, in the auxiliary charging circuit Register in the current known is written.
9. a kind of terminal, which is characterized in that the dress including any test adaptor maximum output current of claim 5 to 8 It sets.
CN201610201238.XA 2016-03-31 2016-03-31 A kind of method, apparatus and terminal of test adaptor maximum output current CN105759103B (en)

Priority Applications (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

Applications Claiming Priority (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

Publications (2)

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

Family

ID=56347077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610201238.XA 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)

Families Citing this family (2)

* 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
CN106771503A (en) * 2017-02-15 2017-05-31 广东小天才科技有限公司 Voltage x current supervising device and method

Citations (7)

* 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
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101975393B1 (en) * 2013-04-18 2019-05-07 삼성에스디아이 주식회사 External battery
CN105759103B (en) * 2016-03-31 2018-12-25 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and terminal of test adaptor maximum output current

Patent Citations (7)

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

Also Published As

Publication number Publication date
WO2017166555A1 (en) 2017-10-05
CN105759103A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
JP5717005B2 (en) Method and terminal for selecting an internal circuit according to the status of a USB interface
US8683087B2 (en) Mobile device auto detection apparatus and method
CN102570546B (en) A kind of mobile terminal and charger, method
EP2597844B1 (en) Method and device for sharing micro-usb interface between earphone and usb
EP3131171A1 (en) Power adaptor, terminal and charging system
US10256647B2 (en) Method for charging a mobile device, mobile device, and charging system
TWI398759B (en) Power supply device, portable electronic apparatus and related method for determining types of a power supply device
EP2985856A1 (en) Usb charging system with variable charging voltage, charger, and intelligent terminal
CN101963835B (en) Electronic equipment and method for dynamically allocating USB port power
US20120091984A1 (en) Dedicated power supply apparatus, terminal, power supply system, and power supply method
CN101232196B (en) Control circuit of charging mode in USB charging stand and method thereof
US9899854B2 (en) Mobile terminal, master data communication device and mobile terminal charging system and method
CN104216499B (en) Rack and its power control method
CN103532187B (en) Charger, charging wire, charging system and charging method
CN103378378B (en) A kind of charging method and device
CN103269106B (en) Charging method for setting charging current automatically and mobile terminal
WO2012167677A1 (en) Device and method for communication and charging for external device via usb interface
CN103365388A (en) Power supply method of terminal device and terminal device
CN104239240A (en) Electronic device with universal serial bus (USB) interface with integration function
CN103618356B (en) The charging system of a kind of mobile terminal and charging method thereof
TWI486771B (en) Mobile phone and system and method for transferring power
CN103078393A (en) Usb hub and electric power supply method for the same
EP2991187A1 (en) Mobile terminal with multi-port charging control function
CN101627348B (en) Charging cable with usb-like connector
US9030152B2 (en) Charging system and charging method

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant