Summary of the invention
The present invention is based on the problems referred to above, it is proposed that a kind of new technical scheme, makes charger permissibleThe quick charge request of identification terminal, carries out quick charge, improves charge efficiency terminal.
In view of this, an aspect of of the present present invention proposes a kind of terminal, including: request unit, is fillingElectrical equipment by the charging wire in USB (universal serial bus) be described terminal commonly charge time, according to quicklyCharge protocol sends quick charge request to described charger;Transmit-Receive Unit, receives from described chargingThe quick charge request of device responds and sends quick charge control command to described charger, to controlStating charger by described charging wire is that described terminal carries out quick charge.
In this technical scheme, terminal sends quick charge request to charger, and receives charger and existThe quick charge request response fed back after identifying quick charge request, terminal is quickly filled receivingControl charger after electricity request response and carry out quick charge.By the technical program, charger can be madeThe recognition method of compatible conventional charger, and the quick charge request realization that identification terminal sends is to terminalQuick charge, solve the slow problem of charging.
In technique scheme, it is preferable that described quick charge control command comprises described terminalRequired charging current, can provide according to described charging current and described charger for described chargerMaximum charging current be described terminal provide real time charging electric current.
In this technical scheme, terminal can send quick charge control according to self required charging currentSystem order, but charger need to be that terminal is charged according to maximum charging current, specifically, works as instituteWhen charging current needed for stating terminal is more than the maximum charging current of described charger, fill with described maximumElectricity electric current is that described terminal is charged, and the charging current needed for described terminal is less than described chargerMaximum charging current time, the charging current needed for described terminal is as terminal charge.Such as, chargingThe available maximum charging current of device is 4A, then, as long as the required charging current of terminal self is notMore than 4A, charger will charging current needed for terminal as terminal charge, but when terminal instituteWhen the charging current needed is 5A, now, charger will be with its maximum charging current 4A as terminalIt is charged.Certainly, terminal can make charger switch not by different quick charge control commandsSame charge mode, to obtain different charging currents.The quick charge control command of terminal is correspondingFast charge mode, includes but not limited to following several: general mode (normal mode) is correspondingCharging current be 1A, the charging current that middle model (medial mode) is corresponding is 2A, quicklyThe charging current that charge mode (fast mode) is corresponding is 3A, and super mode (super mode) is rightThe charging current answered is 4A.
In technique scheme, it is preferable that also include: arrange unit, by total for described general serialThe first signal identification line DP in line is set to the voltage signal on secondary signal identification line DMZero, to be sent by charger described in described first signal identification line and described secondary signal identification alignmentQuick charge is asked.
In this technical scheme, in default situations, the first signal identification line DP knows with secondary signalOther line DM short circuit, charger is identified as conventional charger by terminal, according to BC1.2 agreement with slowerSpeed is charged, when terminal is by the first signal identification line DP and secondary signal identification line DMWhen voltage signal is set to zero, charger will disconnect the first signal identification line DP to be known with secondary signalConnection between other line DM, in order to terminal sends quick charge according to fast charge protocol to chargerRequest, thus carry out quick charge.By the technical program, the compatible identification side of conventional chargerFormula, makes the quick charge request that terminal sends be electrically charged device identification, to realize fast to terminal of chargerSpeed charging.
Another aspect of the present invention proposes a kind of charger, including: first receives unit, in chargingDevice by USB (universal serial bus) be terminal commonly charge time, receive quickly filling from described terminalElectricity request;Judging unit, it is judged that whether described charger can identify that described quick charge is asked;Send outSend unit, when judging that described charger can identify that described quick charge is asked, send out to described terminalSend quick charge request response;Second receives unit, after sending described quick charge request response,Receive the quick charge control command from described terminal;Charhing unit, according to described quick charge controlSystem order is that described terminal carries out quick charge by described charging wire.
In this technical scheme, charger both can commonly charge, it is also possible to sends according to terminalQuick charge request carry out quick charge and respond.By the technical program, can compatible passThe recognition method of system charger, the quick charge that charger identification terminal simultaneously can also be made to send pleaseAsk, it is achieved the charger quick charge to terminal, solve the problem that charging is slow.By simple knotStructure achieves the function of quick charge, improves the reliability of charging.
In technique scheme, it is preferable that described quick charge control command comprises described terminalRequired charging current, described charger also includes: acquiring unit, obtains described quick charge and controlsCharging current needed for the described terminal comprised in order, and provide unit, according to described terminal instituteThe charging current needed and the available maximum charging current of described charger provide for described terminal and fill in real timeElectricity electric current.
In this technical scheme, terminal can send quick charge control according to self required charging currentSystem order, but charger need to be that terminal is charged according to maximum charging current, specifically, works as instituteWhen charging current needed for stating terminal is more than the maximum charging current of described charger, fill with described maximumElectricity electric current is that described terminal is charged, and the charging current needed for described terminal is less than described chargerMaximum charging current time, the charging current needed for described terminal is as terminal charge.Such as, chargingThe available maximum charging current of device is 4A, then, as long as the required charging current of terminal self is notMore than 4A, charger will charging current needed for terminal as terminal charge, but when terminal instituteWhen the charging current needed is 5A, now, charger will be with its maximum charging current 4A as terminalIt is charged.The fast charge mode that quick charge control command is corresponding, includes but not limited to following severalKind: the charging current that general mode (normal mode) is corresponding is 1A, middle model (medialMode) corresponding charging current is 2A, the charged electrical that fast charge mode (fast mode) is correspondingStream is 3A, and the charging current of super mode (super mode) correspondence is 4A.
In technique scheme, it is preferable that also include: switching units, if detecting described generalThe first signal identification line DP in universal serial bus with the voltage signal on secondary signal identification line DM isZero, then disconnect the connection of described first signal identification line and described secondary signal identification line, to pass throughState the first signal identification line and described secondary signal identification line receives described quick charge request and sendsDescribed quick charge request response.
In this technical scheme, in default situations, the first signal identification line DP knows with secondary signalOther line DM short circuit, charger is identified as conventional charger by terminal, according to BC1.2 agreement with slowerSpeed is charged, when terminal is by the first signal identification line DP and secondary signal identification line DMWhen voltage signal is set to zero, charger will disconnect the first signal identification line DP to be known with secondary signalConnection between other line DM, in order to terminal sends quick charge according to fast charge protocol to chargerRequest, thus carry out quick charge.By the technical program, the compatible identification side of conventional chargerFormula, makes the quick charge request that terminal sends be electrically charged device identification, to realize fast to terminal of chargerSpeed charging.
In technique scheme, it is preferable that described charhing unit also includes: when described charger withoutDescribed in method identification during quick charge request, continue as described terminal by described USB (universal serial bus) and carry outCommon charging.
In this technical scheme, terminal sends quick charge by starting fast charge protocol to chargerRequest, enumerating charger, if enumerating failure, can be maintained at by charge mode traditionalCharge mode.It is to say, charger unidentified go out quick charge request time, work can't be stoppedMake, but can commonly charge, to ensure that charging will not go out quick charge because of None-identified and askAsk and stop, improving the reliability of charging.
Another aspect of the invention proposes a kind of charging method, including: at described charger by logicalWith the charging wire in universal serial bus be described terminal commonly charge time, according to fast charge protocol toDescribed charger sends quick charge request;Described charger receives the quick charge from described terminalRequest, and judge whether to identify that described quick charge is asked;Institute can be identified at described chargerWhen stating quick charge request, send quick charge request response to described terminal;Described terminal receivesAsk response from the quick charge of described charger and send quick charge control life to described chargerOrder;Described charger is that described terminal is entered according to described quick charge control command by described charging wireRow quick charge.
In this technical scheme, terminal can send quick charge request to charger, and is receivingWhen the quick charge request of charger responds, send quick charge control command to control charger as endEnd carries out quick charge.And charger both can be terminal commonly charges, it is also possible to according to terminalThe quick charge request sent responds and is that it carries out quick charge.By the technical program, canSo that the recognition method of charger compatibility conventional charger, simultaneously can also identification terminal send quickCharge request, it is achieved the charger quick charge to terminal, improves the reliability of charging, it is achieved fillThe electrical equipment quick charge to terminal, solves the problem that charging is slow.
In technique scheme, it is preferable that described quick charge control command comprises described terminalRequired charging current, described charging method also includes: described charger obtains described quick charge controlCharging current needed for the described terminal comprised in system order;And described charger is according to described terminalRequired charging current and the available maximum charging current of described charger provide in real time for described terminalCharging current.
In this technical scheme, terminal can send quick charge control according to self required charging currentSystem order, but charger need to be that terminal is charged according to maximum charging current, specifically, works as instituteWhen charging current needed for stating terminal is more than the maximum charging current of described charger, fill with described maximumElectricity electric current is that described terminal is charged, and the charging current needed for described terminal is less than described chargerMaximum charging current time, the charging current needed for described terminal is as terminal charge.Such as, chargingThe available maximum charging current of device is 4A, then, as long as the required charging current of terminal self is notMore than 4A, charger will charging current needed for terminal as terminal charge, but when terminal instituteWhen the charging current needed is 5A, now, charger will be with its maximum charging current 4A as terminalIt is charged.The fast charge mode that quick charge control command is corresponding, includes but not limited to following severalKind: the charging current that general mode (normal mode) is corresponding is 1A, middle model (medialMode) corresponding charging current is 2A, the charged electrical that fast charge mode (fast mode) is correspondingStream is 3A, and the charging current of super mode (super mode) correspondence is 4A.
In technique scheme, it is preferable that described terminal is by first in described USB (universal serial bus)Voltage signal on signal identification line and described secondary signal identification line is set to zero, with by described theDescribed in one signal identification line and described secondary signal identification alignment charger send quick charge request andReceive described quick charge request response;If described charger detects in described USB (universal serial bus)Voltage signal on first signal identification line DP and secondary signal identification line DM is zero, then disconnect instituteState the connection of the first signal identification line and described secondary signal identification line, to be known by described first signalOther line and described secondary signal identification line receive described quick charge request and send described quick chargeRequest response.
In this technical scheme, in default situations, the first signal identification line DP knows with secondary signalOther line DM short circuit, charger is identified as conventional charger by terminal, according to BC1.2 agreement with slowerSpeed is charged, when terminal is by the first signal identification line DP and secondary signal identification line DMWhen voltage signal is set to zero, charger will disconnect the first signal identification line DP to be known with secondary signalConnection between other line DM, in order to terminal sends quick charge according to fast charge protocol to chargerRequest, thus carry out quick charge.By the technical program, the compatible identification side of conventional chargerFormula, makes the quick charge request that terminal sends be electrically charged device identification, to realize fast to terminal of chargerSpeed charging.
In technique scheme, it is preferable that also include: judging described charger None-identified instituteWhen stating quick charge request, described charger continues as described terminal by described USB (universal serial bus) and entersThe common charging of row.
In this technical scheme, terminal sends quick charge by starting fast charge protocol to chargerRequest, enumerates charger, if enumerating failure, charge mode can be maintained at traditional chargingPattern.It is to say, charger unidentified go out quick charge request time, can't quit work, andIt is commonly to charge, to ensure that charging will not stop because None-identified goes out quick charge requestOnly, the reliability of charging is improved.
In technique scheme, it is preferable that described fast charge protocol is USB host agreement.
In this technical scheme, terminal sends to charger quickly to fill by starting USB host agreementElectricity request, enumerates charger, and after enumerating successfully, the quick charge request obtaining charger ringsShould, and send quick charge control command and be switched to corresponding fast charge mode.
By above technical scheme, the quick charge demand of terminal can be met, by simple structureAchieve the function of quick charge, improve charge efficiency, improve the reliability of charging, solveCharge slow problem.
Detailed description of the invention
In order to be more clearly understood that the above-mentioned purpose of the present invention, feature and advantage, below in conjunction with attachedThe present invention is further described in detail by figure and detailed description of the invention.It should be noted that notIn the case of conflict, the feature in embodiments herein and embodiment can be mutually combined.
Elaborate a lot of detail in the following description so that fully understanding the present invention, but,The present invention can implement to use other to be different from other modes described here, therefore, and the present inventionProtection domain do not limited by following public specific embodiment.
Fig. 2 shows terminal and the connection diagram of charger according to an embodiment of the invention.
As in figure 2 it is shown, ID wiring is vacant state, when terminal according to fast charge protocol to chargingWhen device sends quick charge request, enumerating charger, after enumerating successfully, charger is according to fastSpeed charging handshake logic disconnects the first signal identification line DP and the connection of secondary signal identification line DM,And send quick charge response to terminal, start quick charge.
When terminal is asked without quick charge, charger end DP and DM is in short circuit state, terminalCharger is identified as conventional charger, is charged with slower speed according to BC1.2 agreement, works as endHold and the voltage signal on the first signal identification line DP and secondary signal identification line DM is set to zeroTime, charger will disconnect the company between the first signal identification line DP and secondary signal identification line DMConnect, in order to terminal sends quick charge request according to fast charge protocol to charger, thus carries out fastSpeed charging
By the technical program, the compatible recognition method of conventional charger, make terminal fast by startingSpeed charge protocol sends quick charge request to charger, enumerates charger, if enumerating mistakeLose, charge mode can be maintained at traditional charge mode.It is to say, it is unidentified at chargerWhen going out quick charge request, can't quit work, but can commonly charge, to ensure to fillElectricity will not stop because None-identified goes out quick charge request, improves the reliability of charging.
Fig. 3 shows the schematic block diagram of terminal according to an embodiment of the invention.
As it is shown on figure 3, terminal 300 according to an embodiment of the invention, including: request unit302, charger by the charging wire in USB (universal serial bus) be terminal commonly charge time, rootQuick charge request is sent to charger according to fast charge protocol;Transmit-Receive Unit 304, receives from fillingThe quick charge request of electrical equipment responds and sends quick charge control command to charger, to control chargingDevice is that terminal carries out quick charge by charging wire.
In this technical scheme, terminal sends quick charge request to charger, and receives charger and existThe quick charge request response fed back after identifying quick charge request, terminal is quickly filled receivingControl charger after electricity request response and carry out quick charge.By the technical program, can compatible traditionThe recognition method of charger, the quick charge request making terminal send is electrically charged device identification, it is achieved chargingThe device quick charge to terminal, solves the problem that charging is slow.
In technique scheme, it is preferable that filling needed for comprising terminal in quick charge control commandElectricity electric current, is terminal for charger according to the available maximum charging current of charging current and chargerReal time charging electric current is provided.
In this technical scheme, terminal can send quick charge control according to self required charging currentSystem order, but charger need to be that terminal is charged according to maximum charging current, specifically, works as instituteWhen charging current needed for stating terminal is more than the maximum charging current of described charger, fill with described maximumElectricity electric current is that described terminal is charged, and the charging current needed for described terminal is less than described chargerMaximum charging current time, the charging current needed for described terminal is as terminal charge.Such as, chargingThe available maximum charging current of device is 4A, then, as long as the required charging current of terminal self is notMore than 4A, charger will charging current needed for terminal as terminal charge, but when terminal instituteWhen the charging current needed is 5A, now, charger will be with its maximum charging current 4A as terminalIt is charged.Certainly, terminal can make charger switch not by different quick charge control commandsSame charge mode, to obtain different charging currents.The quick charge control command of terminal is correspondingFast charge mode, includes but not limited to following several: general mode (normal mode) is correspondingCharging current be 1A, the charging current that middle model (medial mode) is corresponding is 2A, quicklyThe charging current that charge mode (fast mode) is corresponding is 3A, and super mode (super mode) is rightThe charging current answered is 4A.
In technique scheme, it is preferable that also include: unit 306 is set, general serial is totalThe first signal identification line DP in line is set to the voltage signal on secondary signal identification line DMZero, to be sent quickly to charger by the first signal identification line DP and secondary signal identification line DMCharge request.
In this technical scheme, in default situations, the first signal identification line DP knows with secondary signalOther line DM short circuit, charger is identified as conventional charger by terminal, according to BC1.2 agreement with slowerSpeed is charged, when terminal is by the first signal identification line DP and secondary signal identification line DMWhen voltage signal is set to zero, charger will disconnect the first signal identification line DP to be known with secondary signalConnection between other line DM, in order to terminal sends quick charge according to fast charge protocol to chargerRequest, thus carry out quick charge.By the technical program, the compatible identification side of conventional chargerFormula, makes the quick charge request that terminal sends be electrically charged device identification, to realize fast to terminal of chargerSpeed charging.
Fig. 4 shows the schematic block diagram of charger according to an embodiment of the invention.
As shown in Figure 4, charger 400 according to an embodiment of the invention, including: first receives listUnit 402, charger by USB (universal serial bus) be terminal commonly charge time, reception from endThe quick charge request of end;Judging unit 404, it is judged that whether charger can identify that quick charge pleaseAsk;Transmitting element 406, when judging that charger can identify that quick charge is asked, sends to terminalQuick charge request response;Second receives unit 408, after sending quick charge request response, connectsReceive the quick charge control command of self terminal;Charhing unit 410, according to quick charge control commandTerminal is carried out quick charge.
In this technical scheme, charger both can commonly charge, it is also possible to sends according to terminalQuick charge request carry out quick charge and respond.By the technical program, can compatible passThe recognition method of system charger, the quick charge that charger identification terminal simultaneously can also be made to send pleaseAsk, it is achieved the charger quick charge to terminal, solve the problem that charging is slow.By simple knotStructure achieves the function of quick charge, improves the reliability of charging, it is achieved fast to terminal of chargerSpeed charging, solves the problem that charging is slow.
In technique scheme, it is preferable that filling needed for comprising terminal in quick charge control commandElectricity electric current, charger also includes: acquiring unit 412, comprises in acquisition quick charge control commandCharging current needed for terminal, and provide unit 414, according to the charging current needed for terminal and fillingThe available maximum charging current of electrical equipment provides real time charging electric current for terminal.
In this technical scheme, terminal can send quick charge control according to self required charging currentSystem order, but charger need to be that terminal is charged according to maximum charging current, specifically, works as instituteWhen charging current needed for stating terminal is more than the maximum charging current of described charger, fill with described maximumElectricity electric current is that described terminal is charged, and the charging current needed for described terminal is less than described chargerMaximum charging current time, the charging current needed for described terminal is as terminal charge.Such as, chargingThe available maximum charging current of device is 4A, then, as long as the required charging current of terminal self is notMore than 4A, charger will charging current needed for terminal as terminal charge, but when terminal instituteWhen the charging current needed is 5A, now, charger will be with its maximum charging current 4A as terminalIt is charged.The fast charge mode that quick charge control command is corresponding, includes but not limited to following severalKind: the charging current that general mode (normal mode) is corresponding is 1A, middle model (medialMode) corresponding charging current is 2A, the charged electrical that fast charge mode (fast mode) is correspondingStream is 3A, and the charging current of super mode (super mode) correspondence is 4A.
In technique scheme, it is preferable that also include: switching units 416, if detecting generalThe first signal identification line DP in universal serial bus with the voltage signal on secondary signal identification line DM isZero, then disconnect the connection of the first signal identification line DP and secondary signal identification line DM, with byOne signal identification line DP and secondary signal identification line DM receives quick charge request and sends quicklyCharge request responds.
In this technical scheme, in default situations, the first signal identification line DP knows with secondary signalOther line DM short circuit, charger is identified as conventional charger by terminal, according to BC1.2 agreement with slowerSpeed is charged, when terminal is by the first signal identification line DP and secondary signal identification line DMWhen voltage signal is set to zero, charger will disconnect the first signal identification line DP to be known with secondary signalConnection between other line DM, in order to terminal sends quick charge according to fast charge protocol to chargerRequest, thus carry out quick charge.By the technical program, the compatible identification side of conventional chargerFormula, makes the quick charge request that terminal sends be electrically charged device identification, to realize fast to terminal of chargerSpeed charging.
In technique scheme, it is preferable that charhing unit 410 also includes: when charger cannot be knownDuring other quick charge request, continue as terminal by USB (universal serial bus) and commonly charge.
In this technical scheme, terminal sends quick charge by starting fast charge protocol to chargerRequest, enumerating charger, if enumerating failure, can be maintained at by charge mode traditionalCharge mode.It is to say, charger unidentified go out quick charge request time, work can't be stoppedMake, but can commonly charge, to ensure that charging will not go out quick charge because of None-identified and askAsk and stop, improving the reliability of charging.
Fig. 5 shows the schematic flow diagram of charging method according to an embodiment of the invention.
As it is shown in figure 5, charging method according to an embodiment of the invention, comprise the following steps:
Step 502, is that terminal is commonly filled at charger by the charging wire in USB (universal serial bus)During electricity, send quick charge request according to fast charge protocol to charger.
Step 504, charger receives the quick charge request of self terminal, and judges whether to knowOther quick charge is asked.
Step 506, when charger can identify that quick charge is asked, sends quick charge to terminalRequest response.
Step 508, the quick charge that terminal receives from charger is asked response and sends to chargerQuick charge control command.
Step 510, charger carries out quick charge according to quick charge control command to terminal.
In this technical scheme, terminal can send quick charge request to charger, and is receivingWhen the quick charge request of charger responds, send quick charge control command to control charger as endEnd carries out quick charge.And charger both can be terminal commonly charges, it is also possible to according to terminalThe quick charge request sent responds and is that it carries out quick charge.By the technical program, canSo that the recognition method of charger compatibility conventional charger, simultaneously can also identification terminal send quickCharge request, it is achieved the charger quick charge to terminal, improves the reliability of charging, it is achieved fillThe electrical equipment quick charge to terminal, solves the problem that charging is slow.
In technique scheme, it is preferable that filling needed for comprising terminal in quick charge control commandElectricity electric current, charging method also includes: charger obtains the terminal institute comprised in quick charge control commandThe charging current needed;And charger is available according to the charging current needed for terminal and chargerBig charging current provides real time charging electric current for terminal.
In this technical scheme, terminal can send quick charge control according to self required charging currentSystem order, but charger need to be that terminal is charged according to maximum charging current, specifically, works as instituteWhen charging current needed for stating terminal is more than the maximum charging current of described charger, fill with described maximumElectricity electric current is that described terminal is charged, and the charging current needed for described terminal is less than described chargerMaximum charging current time, the charging current needed for described terminal is as terminal charge.Such as, chargingThe available maximum charging current of device is 4A, then, as long as the required charging current of terminal self is notMore than 4A, charger will charging current needed for terminal as terminal charge, but when terminal instituteWhen the charging current needed is 5A, now, charger will be with its maximum charging current 4A as terminalIt is charged.The fast charge mode that quick charge control command is corresponding, includes but not limited to following severalKind: the charging current that general mode (normal mode) is corresponding is 1A, middle model (medialMode) corresponding charging current is 2A, the charged electrical that fast charge mode (fast mode) is correspondingStream is 3A, and the charging current of super mode (super mode) correspondence is 4A.
In technique scheme, it is preferable that terminal is by the first signal identification in USB (universal serial bus)Voltage signal on line DP and secondary signal identification line DM is set to zero, to be known by the first signalOther line DP and secondary signal identification line DM sends quick charge request to charger and receives quicklyCharge request responds;If charger detect the first signal identification line DP in USB (universal serial bus) withVoltage signal on secondary signal identification line DM is zero, then disconnect the first signal identification line DP andThe connection of binary signal identification line DM, with by the first signal identification line DP and secondary signal identification lineDM receives quick charge request and sends quick charge request response.
In this technical scheme, in default situations, the first signal identification line DP knows with secondary signalOther line DM short circuit, charger is identified as conventional charger by terminal, according to BC1.2 agreement with slowerSpeed is charged, when terminal is by the first signal identification line DP and secondary signal identification line DMWhen voltage signal is set to zero, charger will disconnect the first signal identification line DP to be known with secondary signalConnection between other line DM, in order to terminal sends quick charge according to fast charge protocol to chargerRequest, thus carry out quick charge.By the technical program, the compatible identification side of conventional chargerFormula, makes the quick charge request that terminal sends be electrically charged device identification, to realize fast to terminal of chargerSpeed charging.
In technique scheme, it is preferable that also include: judging that charger None-identified quickly fillsDuring electricity request, charger continues as terminal by USB (universal serial bus) and commonly charges.
In this technical scheme, terminal sends quick charge by starting fast charge protocol to chargerRequest, enumerates charger, if enumerating failure, charge mode can be maintained at traditional chargingPattern.It is to say, charger unidentified go out quick charge request time, can't quit work, andIt is commonly to charge, to ensure that charging will not stop because None-identified goes out quick charge requestOnly, the reliability of charging is improved.
In technique scheme, it is preferable that fast charge protocol is USB host agreement.
In this technical scheme, terminal sends to charger quickly to fill by starting USB host agreementElectricity request, enumerates charger, and after enumerating successfully, the quick charge request obtaining charger ringsShould, and send quick charge control command and be switched to corresponding fast charge mode.
Fig. 6 shows the schematic flow diagram of charging method according to an embodiment of the invention.
As shown in Figure 6, charging method according to an embodiment of the invention, comprise the following steps:
Step 602, charger is identified as commonly charging DCP.Do not receiving quick charge controlDuring order, charger acquiescence is identified as DCP, DP and the DM short circuit of charger.
Step 604, accesses after universal serial bus VBUS to terminal, terminal by charger end DP andDM carries out the identification of conventional charger according to BC1.2 agreement, and charger is identified as DCP.
Step 606, terminal waits 1s after arranging the charging current of 1A.
Step 608, terminal starts USB host protocol stack, initiates to enumerate flow process.I.e. terminal is by openingDynamic USB host agreement sends quick charge request to charger, enumerates charger, itsIn, fast charge protocol be USB host agreement be fast charge protocol.Initiate to enumerate stream at mobile phoneCheng Hou, DP and DM of charger maintains 0V state 10ms, to disconnect the company of DP and DMConnect.
Step 610, charger receives quick charge request, it is judged that whether self supports quick charge,When judged result is for being, enters step 612, otherwise, return step 602.
Step 612, quick charge request is responded, is i.e. believed by USB chirp K by chargerNumber to quick charge request respond.
Step 614, it is judged that whether terminal receives the quick charge of charger in time-out time is asked backShould, when judged result is for being, enters step 616, otherwise, return step 606.
Step 616, terminal receives after the quick charge request of charger responds, carries out follow-up enumerating streamJourney, and send quick charge control command to charger.Different quick charge control command correspondences is notSame charge mode, such as, the charging current that general mode (normal mode) is corresponding is 1A,The charging current that middle model (medial mode) is corresponding is 2A, fast charge mode (fastMode) corresponding charging current is 3A, the charging current that super mode (super mode) is correspondingFor 4A.
Step 618, charger is switched to the quick charge of correspondence after receiving quick charge control commandPattern.
Step 620, terminal enters fast charge mode.
In the present invention, term " first ", " second " are only used for the purpose described, and can not manageSolve as instruction or hint relative importance.For the ordinary skill in the art, can basisConcrete condition understands above-mentioned term concrete meaning in the present invention.
Technical scheme is described in detail, by the technical side of the present invention above in association with accompanying drawingCase, can make charger meet the quick charge demand of terminal, it is achieved the function of quick charge, this carriesHigh charge efficiency, improves the reliability of charging, and solves the problem that charging is slow.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, forFor those skilled in the art, the present invention can have various modifications and variations.All essences in the present inventionWithin god and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present inventionProtection domain within.