Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide the system and method controlling mobile terminal charging current, solve the problem that prior art can not control mobile terminal charging current.
For reaching above-mentioned purpose, the invention provides following technical scheme:
Control the system of mobile terminal charging current, comprise the charging inlet, the electric current that connect successively and module and charging module are set, also comprise: the fine setting module that module and charging module are connected is set with electric current respectively, wherein,
Described electric current arranges module, for when the input current that charging inlet inputs is not the integral multiple of unit electric current, input current is adjusted to and rounds electric current, and start fine setting module, described round electric current for be greater than input current and with the immediate N of input current times unitary current, wherein, N is positive integer;
Described fine setting module, for rounding current distributing, shunt current is the difference between currents rounding electric current and input current.
The system of described control mobile terminal charging current, wherein, also comprises:
Input current acquisition module, for obtaining the current value of the input current of charging inlet input;
Described electric current arranges module and specifically comprises:
Round module, for when input current is not the integral multiple of unit electric current, to the current value rounding operation of input current;
Assignment module, gives register after the numerical value for being obtained by input current rounding operation adds 1;
Output module, rounds electric current for exporting, described in round electric current be the value of register and the product of unitary current.
The system of described control mobile terminal charging current, wherein, also comprises:
Closing module, for when input current is the integral multiple of unit electric current, closes fine setting module.
The system of described control mobile terminal charging current, wherein, described fine setting module comprises gate-controlled switch and variable resistor, wherein,
Described gate-controlled switch, disconnects when input current is the integral multiple of unit electric current, closed when input current is not the integral multiple of unit electric current;
Described variable resistor, regulates shunt current size for regulating self-resistance value.
The system of described control mobile terminal charging current, wherein, described unitary current is 50mA.
Corresponding with said method, present invention also offers the method controlling mobile terminal charging current, fine setting module arranges module communication with electric current and is connected, and is electrically connected with charging module, further comprising the steps of:
A, when charging inlet input input current be not the integral multiple of unit electric current time, input current is adjusted to and rounds electric current, and start fine setting module, described in round electric current for be greater than input current and with the immediate N of input current times unitary current, wherein, N is positive integer;
B, fine setting module are to rounding current distributing, and shunt current is the difference between currents rounding electric current and input current.
The method of described control mobile terminal charging current, wherein, also comprises before steps A:
Obtain the current value of the input current of charging inlet input;
Described steps A specifically comprises:
A100, when input current is not the integral multiple of unit electric current, to the current value rounding operation of input current;
A200, by input current rounding operation obtain numerical value add 1 after give register;
A300, export and round electric current, described in round electric current be the value of register and the product of unitary current.
The method of described control mobile terminal charging current, wherein, also comprises:
When input current is the integral multiple of unit electric current, close fine setting module.
The method of described control mobile terminal charging current, wherein, described fine setting module comprises gate-controlled switch and variable resistor, wherein,
Described gate-controlled switch, disconnects when input current is the integral multiple of unit electric current, closed when input current is not the integral multiple of unit electric current;
Described variable resistor, regulates shunt current size for regulating self-resistance value.
The method of described control mobile terminal charging current, wherein, described unitary current is 50mA.
Compared with prior art, the system and method for control mobile terminal charging current provided by the present invention, has set up fine setting module at mobile terminal, and fine setting module is to rounding current distributing, shunt current is the difference between currents rounding electric current and input current, and span is between zero and unitary current.Like this, mobile terminal to rounding current distributing, achieves the accurate control to mobile terminal charging current on the basis rounding electric current, but also the output current (charging current) that ensure that the input current of charging inlet and charging module always.
Embodiment
The invention provides the system and method controlling mobile terminal charging current, for making object of the present invention, technical scheme and effect clearly, clearly, referring to accompanying drawing examples, the present invention is described in more detail.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Before technical solution of the present invention is illustrated, it is emphasized that, charging current of the present invention refers to the electric current that charging module exports, refer to the charging current of the actual employing of mobile terminal, charging current described in background technology rounds electric current, round electric current identical with the electric current that charging module exports, namely the prior art described in background technology round electric current essence with regard to charging current, but different from the charging current of technical solution of the present invention, the charging current described in technical solution of the present invention refers to the electric current that mobile terminal charging module exports.In addition, unitary current of the present invention refers to the minimum current that register adopts, the electric current that described unitary current is the value of register when being 1.
Refer to Fig. 1, Fig. 1 is the system construction drawing of control mobile terminal charging current of the present invention.As shown in Figure 1, the system of control mobile terminal charging current of the present invention, comprises the charging inlet 101, the electric current that connect successively and arranges module 102 and charging module 104, also comprise: arrange the fine setting module 103 that module 102 and charging module 104 are connected respectively with electric current, wherein
Described electric current arranges module 102, for when the input current that charging inlet 101 inputs is not the integral multiple of unit electric current, input current is adjusted to and rounds electric current, and start fine setting module, described round electric current for be greater than input current and with the immediate N of input current times unitary current, wherein, N is positive integer;
Described fine setting module 103, for rounding current distributing, shunt current is the difference between currents rounding electric current and input current.
System as above, the essence of its scheme is: when charging inlet input input current, obtain input current value, and input current value is compared with unitary current, if input current is the integral multiple of unit electric current, then electric current arranges module and arranges register according to the integral multiple of gained, makes the value of register be the integral multiple of gained, the output current of charging module so just can be made equal with the input current of charging inlet, ensure the accuracy of charging; If when input current is not the integral multiple of unit electric current, to the current value rounding operation of input current, register is given after the numerical value that rounding operation obtains is added 1, so just the output current of charging module is made to be greater than input current (when not increasing fine setting module), technical solution of the present invention has set up fine setting module, the output current increased is shunted, the size of shunt current equals the difference between currents rounding electric current and input current, so just the output current of increase is diminished, make the true electric current exported equal with input current, ensure the accurate control to electric current.
The system of described control mobile terminal charging current, wherein, also comprises: input current acquisition module, for obtaining the current value of the input current of charging inlet input;
Described electric current arranges module and specifically comprises:
Round module, for when input current is not the integral multiple of unit electric current, to the current value rounding operation of input current;
Assignment module, gives register after the numerical value for being obtained by input current rounding operation adds 1;
Output module, rounds electric current for exporting, described in round electric current be the value of register and the product of unitary current.
System as above is 50 mA with unitary current, when input current is 510 mA, round the current value 510 of module to input current and do rounding operation, rounding operation is the integer ratios obtaining input current and unitary current, and as 510/50=10, then the result of 510 rounding operations is 10; Then assignment is carried out, register is given after the numerical value 10 that rounding operation obtains is added 1, namely give register by 11, like this, when not finely tuning module, the output current that register controls output module output is 11*50=550 mA, has been greater than input current 510 mA, in other words, electric current arranges the electric current between module and charging module is 550 mA; The present invention has set up fine setting module, shunt rounding electric current, shunt current is the difference between currents rounding electric current and input current, that is, shunt current equals 550 mA-510 mA=40 mA, this reduces and round electric current, make the electric current of the acquisition of charging module be 550 mA-40 mA=510 mA, ensure that the charging current of charging module equals input current.
The system of described control mobile terminal charging current, wherein, also comprises: closing module, for when input current is the integral multiple of unit electric current, closes fine setting module.It should be noted that to only have the value of register to be in the ratio situation of input current and unitary current, just close fine setting module, it is consistent that input current at this moment and electric current arrange the electric current that module exports, and do not need to shunt.
The system of described control mobile terminal charging current, wherein, described fine setting module comprises gate-controlled switch and variable resistor, wherein, described gate-controlled switch, disconnects when input current is the integral multiple of unit electric current, closed when input current is not the integral multiple of unit electric current; Described variable resistor, regulates shunt current size for regulating self-resistance value.Fine setting module of the present invention comprises gate-controlled switch and variable resistor, gate-controlled switch one section is electrically connected with variable resistor, the other end is connected to electric current and arranges on the wire that module, charging module or electric current arrange between module and charging module, variable-resistance other end ground connection, gate-controlled switch and electric current arrange module communication and are connected, module controls is set by electric current, disconnects when input current is the integral multiple of unit electric current, closed when input current is not the integral multiple of unit electric current; Described variable resistor, regulates shunt current size for regulating self-resistance value.
The system of described control mobile terminal charging current, preferably, described unitary current is 50mA.Unitary current can set according to actual conditions, as 100 mA, arranges 50 mA, and the maximum current of mobile terminal can be made to be 256*50=12800 mA.
Refer to Fig. 2, Fig. 2 is the method flow diagram of control mobile terminal charging current of the present invention.As shown in Figure 2, the method for control mobile terminal charging current of the present invention, fine setting module arranges module communication with electric current and is connected, and is electrically connected with charging module, further comprising the steps of:
Step 101, when charging inlet input input current be not the integral multiple of unit electric current time, input current is adjusted to and rounds electric current, and start fine setting module, described round electric current for be greater than input current and with the immediate N of input current times unitary current, wherein, N is positive integer, as detailed above;
Step 102, fine setting module are to rounding current distributing, and shunt current is the difference between currents rounding electric current and input current, as detailed above.
The method of described control mobile terminal charging current, wherein, also comprises before step 101:
Obtain the current value of the input current of charging inlet input, as detailed above;
Described step 101 specifically comprises:
Step one, when input current is not the integral multiple of unit electric current, to the current value rounding operation of input current, as detailed above;
Step 2, by rounding operation obtain numerical value add 1 after give register, as detailed above;
Step 3, export and round electric current, described in round electric current be the value of register and the product of unitary current, as detailed above.
The method of described control mobile terminal charging current, wherein, also comprises:
When input current is the integral multiple of unit electric current, close fine setting module, as detailed above.
The method of described control mobile terminal charging current, wherein, described fine setting module comprises gate-controlled switch and variable resistor, wherein,
Described gate-controlled switch, disconnects when input current is the integral multiple of unit electric current, closed when input current is not the integral multiple of unit electric current, as detailed above;
Described variable resistor, for regulating self-resistance value to regulate shunt current size, as detailed above.
The method of described control mobile terminal charging current, wherein, described unitary current is 50mA, as detailed above.
In sum, the system and method for control mobile terminal charging current provided by the present invention, has set up fine setting module at mobile terminal, and fine setting module is to rounding current distributing, shunt current is the difference between currents rounding electric current and input current, and span is between zero and unitary current.Like this, mobile terminal to rounding current distributing, achieves the accurate control to mobile terminal charging current on the basis rounding electric current, but also the output current (charging current) that ensure that the input current of charging inlet and charging module always.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.