Summary of the invention
The invention provides a kind of charging adapter, terminal, charge control method and device, be difficult in order to solve the charging current existing in prior art the problem improving.
According to an aspect of the present invention, provide a kind of charging adapter, having comprised: AC transformer, commutator transformer, external charging chip and microcontroller; The output of AC transformer is connected with commutator transformer and external charging chip respectively; Microcontroller is for after charging adapter is effectively connected with terminal, control AC transformer direct current output is provided, control commutator transformer and carry out direct current transformation output, and, after charging adapter and terminal are set up and shaken hands and be connected, control external charging chip terminal is charged.
Further, above-mentioned charging adapter also comprises: the general-purpose serial bus USB interface with expansion direct current input pin and expansion ground pin; The DC output end of external charging chip is connected with the expansion direct current input pin of USB interface, the expansion ground pin ground connection of USB interface.
According to another aspect of the present invention, also provide a kind of terminal, having comprised: charge protector, battery, built-in charging chip and controller; The positive pole of battery is connected with built-in charging chip and charge protector respectively; Controller, for after setting up at terminal and charging adapter and shaking hands and be connected, transmits control signal to charge protector, so that charge protector work; Charge protector, in the time receiving the control signal of self-controller and the input terminal voltage of charge protector lower than preset reference voltage, opening by the external charging chip in charging adapter is the charging path of battery charging.
Wherein, charge protector comprises: voltage comparator, logic gates and gate-controlled switch circuit; The first input end of voltage comparator is connected with the charging inlet of terminal, and the second input of voltage comparator is used for receiving a preset reference voltage, and its output is connected with the first input end of logic gates; The second input of logic gates is connected with the CPU of terminal, and the output of logic gates is connected with the control end of gate-controlled switch circuit; All the other two ends of gate-controlled switch circuit are connected between the charging inlet and battery of terminal; In the time that the input terminal voltage of charge protector is input to the first input end of voltage comparator, if the voltage of the first output input of voltage comparator is less than preset reference voltage, the circuit turn-on between charging inlet and the battery of the output control terminal of logic gates; Otherwise the circuit between charging inlet and the battery of the output control terminal of logic gates disconnects.
Further, terminal also comprises the USB interface with expansion direct current input pin and expansion ground pin; Expansion direct current input pin is connected with the first input end of voltage comparator, the expansion ground pin ground connection of USB interface.
According on the one hand of the present invention, a kind of charge control method is also provided, the flow process of carrying out in charging adapter side, comprise: after charging adapter is effectively connected with terminal, by microprocessor controls AC transformer to commutator transformer and external charging chip output dc voltage, and control commutator transformer and export the first charging voltage, terminal is charged; After charging adapter and terminal are set up and shaken hands and is connected, direct voltage output the second charging voltage of exporting based on AC transformer by the external charging chip of microprocessor controls, charges to terminal.
Wherein, charging adapter is set up to shake hands to be connected with terminal and is comprised: charging adapter sends handshake information to terminal, and handshake information comprises: the distinguishing mark of charging adapter; Charging adapter receives the handshake response message of self terminal, and handshake response message comprises: whether support quick charge, input voltage and input current.
Wherein, control external charging chip and based on AC transformer output dc voltage, terminal is charged, comprising: receiving after handshake response information, controlling and open external charging chip, according to the external charging chip of handshake response information configuration, send the ready message of charging to terminal; Obtain the charged state message of self terminal; Again send the ready message of charging to terminal, until obtain the charging end that terminal is returned.
According to also one side of the present invention, a kind of charge control method is provided, the flow process of carrying out in end side, comprising: after terminal is effectively connected with charging adapter, the first charging voltage by the built-in charging chip of controller control based on charging adapter output is battery charging; After terminal and charging adapter are set up and are shaken hands and is connected, whether open charge tunnel by controller control charge protector, charge tunnel, is that battery charges for receiving the second charging voltage of charging adapter output.
Wherein, terminal and charging adapter are set up to shake hands to be connected and are comprised: in the time that terminal receives the handshake information that charging adapter sends, to charging adapter feedback handshake response message, handshake response message comprises: whether support quick charge, input voltage and input current.
The embodiment of the present invention is by existing charging adapter is improved, and increases external charging chip charging adapter is inner, and for external charging chip provides the AC transformer of direct voltage, can strengthen the charging current to terminal, improves charge efficiency.
Embodiment
Technological means and effect of taking for reaching predetermined object for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, the present invention is described in detail as after.
Fig. 2 is the circuit theory diagrams of the charging adapter of the embodiment of the present invention, and as shown in Figure 2, this charging adapter, comprising: AC transformer, commutator transformer, external charging chip (being external charger) and microcontroller; Wherein, the output of AC transformer is connected with commutator transformer and external charging chip respectively; Microcontroller is for after charging adapter is effectively connected with terminal, control AC transformer direct current output is provided, control commutator transformer and carry out direct current transformation output, and, after the foundation of charging adapter and terminal is shaken hands and is connected, controlling external charging chip charges to terminal, it should be noted that, the charging chip of mentioning is herein charger, and it is a commutator transformer, there is the function that a High Level DC Voltage is converted to low dc voltage, also there is the functions such as overvoltage protection; In order to be concise in expression, in embodiments of the invention accompanying drawing, all use " charger " expression " charging chip ".
The operation principle of this charging adapter is: be effectively connected with charging terminal at charging adapter and do not set up and shake hands be connected in the situation that with terminal, the alternating voltage that AC transformer provides outside is converted into the direct voltage of 10V left and right, after this direct voltage transformation being 5V direct voltage by commutator transformer, input to terminal, and after charging adapter and terminal are set up and shaken hands and be connected, microcontroller in charging adapter, control and open the external charging chip that is arranged at its inside, this external charging chip basis is terminal charge from the direct voltage after changing with AC transformer.
The charging adapter that the present embodiment provides, on current existing terminal charge adapter, additionally to have increased a charge tunnel terminal is charged, based on this, need to expand the USB interface of charging adapter, can be on original 5PIN USB interface basis, extra expansion or two power lines, form the interface structure of 7PIN, this interface needs compatibility standard 5PIN USB interface, the name of two expansion pins is called EX_DC_IN, expand direct current input, and EX_GND, expand ground connection, as shown in Figure 1, the DC output end of external charging chip is connected with the expansion direct current input pin of USB, USB interface expansion ground pin ground connection, as shown in the figure, the expansion ground pin of USB interface is connected with ground pin, the 5V DC output end of commutator transformer is connected with the VBUS pin of USB interface.
The circuit theory diagrams of the terminal that Fig. 3 provides for the embodiment of the present invention, as shown in Figure 3, this terminal comprises: charge protector, battery and built-in charging chip and controller; Wherein, the positive pole of battery is connected with built-in charging chip and charge protector respectively; Controller, controller transmits control signal to charge protector, so that charge protector work after being connected for shaking hands in the foundation of terminal and charging adapter; Charge protector is in the time receiving the control signal of self-controller and the input terminal voltage of charge protector lower than preset reference voltage, and opening by the external charging chip in charging adapter is the charging path of battery charging.
Fig. 4 is the circuit theory diagrams of charge protector in the terminal that provides of the embodiment of the present invention.
As shown in Figure 4, this charge protector can comprise: voltage comparator, logic gates, gate-controlled switch circuit, this gate-controlled switch circuit specifically can adopt metal-oxide-semiconductor to realize; The first input end of voltage comparator is connected with the charging inlet of terminal, and the second input of voltage comparator is used for receiving a preset reference voltage, and its output is connected with the first input end of logic gates; The second input of logic gates is connected with the CPU of terminal, and the output of logic gates is connected with the control end of gate-controlled switch circuit.
All the other two ends of gate-controlled switch circuit are connected between the charging inlet and battery of terminal; In the time that the input terminal voltage of charge protector is input to the first input end of voltage comparator, if the voltage of the first output input of voltage comparator is less than preset reference voltage, the circuit turn-on between charging inlet and the battery of the output control terminal of logic gates; Otherwise the circuit between charging inlet and the battery of the output control terminal of logic gates disconnects.The voltage comparator of this charge protector compares for voltage and a reference voltage that charging adapter is provided by external charging chip, whether too high to judge the voltage that external charging chip provides, logic gates is for determining whether to control unlatching metal-oxide-semiconductor according to two conditions of comparative result of the signal of the controller in terminal and voltage comparator, particularly, in the time that voltage comparator judges that voltage that external charging chip provides does not exceed a preset value and controller to this logic gates output control signal, control and open metal-oxide-semiconductor, wherein, controller is after detecting that terminal and charging adapter are successfully set up and shaken hands and be connected, can send control signal to logic gates, diode plays the effect that prevents that electric current is reverse.
Terminal also comprises the USB interface with expansion direct current input pin and expansion ground pin; Expansion direct current input pin is connected with the first input end of voltage comparator, the expansion ground pin ground connection of USB interface, that is, the ground pin of USB interface is connected with expansion ground pin, the VBUS pin of USB interface is connected with the input of built-in charging chip, for it provides input power.
Fig. 5 is the flow process that the charge control method that provides of the present embodiment is carried out in charging adapter side, and as shown in Figure 5, the method comprises the following steps:
Step 401: after charging adapter is effectively connected with terminal, by microprocessor controls AC transformer to commutator transformer and external charging chip output dc voltage, and control commutator transformer export the first charging voltage, terminal is charged;
Step 402: after charging adapter and terminal are set up and shaken hands and is connected, direct voltage output the second charging voltage of exporting based on AC transformer by the external charging chip of microprocessor controls, charges to terminal.
Wherein charging adapter is set up to shake hands with terminal and is connected specifically and can comprises: charging adapter sends handshake information to terminal, and handshake information comprises: the distinguishing mark of charging adapter; Charging adapter receives the handshake response message of self terminal, and handshake response message comprises: whether support quick charge, input voltage, input current.
Control external charging chip and based on AC transformer output dc voltage, terminal charged, comprising:
Receiving after handshake response message, controlling and open external charging chip, according to the external charging chip of handshake response information configuration, sending the ready message of charging to terminal; Obtain the charging status information of self terminal; Again send the ready message of charging to terminal, until obtain the charging end that terminal is returned.Wherein, the charged state message of terminal is its feedback message after the ready message of the charging that receives charge arrangement device, this charged state message is used to indicate the current charged state of terminal, so that charging adapter determines whether to continue as terminal charge according to this charged state message.
Fig. 6 is the flow process that the charge control method that provides of the present embodiment is carried out in end side, and as shown in Figure 6, the method comprises the following steps:
Step 501: after terminal is effectively connected with charging adapter, the first charging voltage by the built-in charging chip of controller control based on charging adapter output is battery charging;
Step 502: after terminal and charging adapter are set up and shaken hands and is connected, whether open charge tunnel by controller control charge protector, charge tunnel, is that battery charges for receiving the second charging voltage of charging adapter output.
Wherein, terminal and charging adapter are set up to shake hands to be connected and are comprised: in the time that terminal receives the handshake information that charging adapter sends, to charging adapter feedback handshake response message, handshake response message comprises: whether support quick charge, input voltage and input current.
The process that the charging adapter that the embodiment of the present invention provides charges to terminal can be divided into normal charge stage and afterburning charging stage two parts:
Under starting stage, after charging adapter is connected with terminal, the 5V direct current output acquiescence of the commutator transformer of charging adapter is opened, and it is connected with the VBUS pin of USB interface, and DC-DC output is connected with USB extended pin EX_DC_IN.Support the built-in charging chip of the mobile terminal of quick charge to close, the input of this built-in charging chip is connected with VBUS, and output is connected with anode; USB expansion pin X_DC_IN is connected with quick charge passage, and the metal-oxide-semiconductor switch of quick charge passage is given tacit consent in off-state, and end is connected with anode.
After the normal charge stage is charging adapter and is connected with terminal, the 5V direct current output of the commutator transformer of charging adapter enters the VBUS end of terminal by the VBUS end of USB; Controller in terminal detects that VUBS is effective, opens built-in charging chip VBUS is inputted and carries out inputting anode after direct current transformation.
Fig. 7 is the embodiment of the present invention charging adapter flow chart of the afterburning charging stage to terminal.
Wherein, the charging flow of charging adapter side is as follows:
Step 601: charging adapter is connected with terminal;
Step 602: charging adapter starts charging flow, output 5V direct voltage;
Step 603: charging adapter sends handshake information 1 to terminal;
Step 604: if equipment connection is abnormal, close afterburning charging, return to initial condition;
Wherein afterburning charging is by the external charging chip in charging adapter terminal is charged.
Step 605: the handshake information 2 of waiting for self terminal;
Step 606: whether judgement is connected successful with shaking hands of charging adapter, if so, perform step 607, if not, returns to step 604;
Step 607: according to the external charging chip of the information configuration in handshake information 2, start charging;
Step 608: send the ready message 3 of charging to terminal;
Step 609: the charged state message 4 of waiting for self terminal;
Step 610: judge whether response in time of terminal, if it is return to step 608, if not, return to step 604, instruct the terminal feedback message of having charged.
Wherein, the charging flow of end side comprises:
Step 701: terminal is connected with charging adapter;
Step 702: detect that VBUS is effective, start built-in charging chip and charge;
Step 703: wait for the handshake information 1 from charging adapter side;
Step 704: if equipment connection is abnormal, charge closing passage, returns to initial condition;
Step 705: judge that whether the connection of shaking hands is successful, if shake hands successful connection, perform step 706, if shake hands connection failure, return to step 704;
Step 706: send handshake information 2 to charging adapter;
Step 707: wait for the ready message 3 of charging from charging adapter side;
Step 708: judge the whether in time ready message 3 of response charging of end side, if so, perform step 709, if not, return to step 705.
The charging adapter providing of the embodiment of the present invention, by increase external charging chip in normal charge adapter, can provide normal charge function and afterburning charge function flexibly, to increase charging current, thereby reaches the object of quick charge.Meanwhile, owing to having increased external charging chip in charging adapter, can share the heat producing in end side due to charging, heat can not concentrated on a side apparatus, even if also can not cause any side apparatus excessive heating in the time that super-large current charges.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.