Embodiment:
In order to solve the problems, such as to have a single function present in existing battery charge controller and compatibility it is poor, the present inventionEmbodiment provides a kind of battery charge controller, as shown in Figure 1, it is battery charge controller described in the embodiment of the present inventionStructural schematic diagram.Specifically, as shown in Figure 1, in embodiments of the present invention, the battery charge controller may include having at least twoSwitch module 11, control module 12 and the battery module 13 of a power input port, in which:
The control module 12, any power input port for being directed at least two power input port,When determining the power input port access from equipment, Xiang Suoshu switch module 11 sends enable signal;
The switch module 11, for when receiving the enable signal, be connected the power input port with it is describedBattery module 13, to power from the battery module 13 to described from equipment.
Wherein, the enable signal usually can flexible setting according to actual needs, can such as believe for high level information, low levelBreath and level are along information etc., as long as outer hang with from setting can successfully be informed in a certain power input port of the switch module 11It is standby.Preferably, in embodiments of the present invention, the enable signal generally can be high level information, the embodiment of the present invention pairThis is not limited in any way.
It it should be noted that described generally can be corresponding plug-in device from equipment, such as can be plug-in USB flash disk, keyboard;The quantity of the power input port can also flexibly be set according to the actual situation, such as may include 2,3, as long as can satisfyActual demand, the embodiment of the present invention are not also limited in any way this.
That is, in embodiments of the present invention, it may include switch module, control at least two power input portsMolding block and battery module, in which: the control module, for for any at least two power input portPower input port, when determining the power input port access from equipment, Xiang Suoshu switch module sends enable signal;InstituteState switch module, for the power input port and the battery module when receiving the enable signal, to be connected, with byThe battery module is powered to described from equipment.Compared with the prior art, battery charge controller described in the embodiment of the present invention is notIt can only realize unidirectional power input, moreover it is possible to realize reversed power supply output;And the charging as described in the embodiment of the present inventionControl device has at least two power input ports, thus can also be compatible with multiple power sources input mode.It is existing to solveBattery charge controller present in have a single function and the poor problem of compatibility.
It should be noted that battery charge controller described in the embodiment of the present invention can be integrated in accordingly for an integrating deviceTerminal device perhaps also can be used as in charger baby a self-contained unit be independently arranged at corresponding terminal device or charger baby itOutside;Furthermore, it should be noted that battery charge controller described in the embodiment of the present invention is in addition to can may be used also other than hardware buildsIt is realized by writing corresponding logical program, the embodiment of the present invention does not repeat this.
Specifically, it is assumed that the quantity of the power input port is 2, then the structure of the battery charge controller can also be such as figureIt is a kind of possible practical structures schematic diagram of battery charge controller described in the embodiment of the present invention shown in 2.Specifically,As shown in Figure 2, battery charge controller described in the embodiment of the present invention can have two power inputs of Vin10 and Vin11Mouthful.When hanging with outside from equipment on Vin10, control module 12 can send enable signal to the switch module 11, to indicateIt states switch module 11 to hang with from equipment outside on Vin10, the control module 11 can be connected when receiving the enable signalAccess between the Vin10 and the battery module 13, to realize the battery charge controller to described from equipmentPower supply and the therefrom demands such as reading writing information;When hanging with outside from equipment on Vin11, control module 12 can be to the switch module11 send enable signal, are hung with indicating that the switch module 11 is outer on Vin11 from equipment, the control module 11 is receivingWhen to the enable signal, the access between the Vin11 and the battery module 13 can be connected, to realize the chargingControl device is powered and therefrom demands such as reading writing information to described from equipment.
As shown in the above, in embodiments of the present invention, control module 12 can detect multiple power input ports simultaneouslyPlug-in situation, and on determining certain several power input port it is outer hang with from equipment when, can directly be sent to switch module 11Enable signal, the battery module and each supply access between equipment is connected, so that in the embodiment of the present inventionThe battery charge controller can realize the output of reverse electrical source on the basis of positive power input, further expandThe function of terminal device, improves flexibility.
In addition, also known by Fig. 2, the battery module 13 may include corresponding battery management chip 131 and correspondingBattery 132, the battery management chip 131 control the battery for controlling the electric energy being input in the battery 132132 provide the electric energy that the control module 12 described enough works normally to the control module 12, and carry out to the battery 132Protection appropriate, such as carry out overcurrent protection, overvoltage protection.
Specifically, as shown in figure 3, it is the schematic diagram of internal structure of switch module described in the embodiment of the present invention.ToolBody, from the figure 3, it may be seen that the switch module 11 may include comparing unit 111, first switch 112, reference unit 113 and driveMoving cell 114, in which:
The comparing unit 111, can be used for when receiving the enable signal, using the enable signal to the ginsengIt examines unit 113 and the driving unit 114 is powered;
The reference unit 113 can be used for sending reference voltage and threshold voltage to the driving unit 114;
The driving unit 114, can be used for when receiving the enable signal, based on the reference voltage and describedThreshold voltage determines the conducting voltage for the first switch 112 to be connected, and the conducting voltage is exported to described firstSwitch 112;
The first switch 112 can be used for leading when receiving the conducting voltage that the first switch 112 can be connectedLead to the power input port and the battery module 13.
It should be noted that in embodiments of the present invention, the operating voltage of each unit in the switch module 11 canFrom the enable signal, EN as shown in Figure 3, wherein the Vcc in Fig. 3 can make for the comparing unit 111 outputIt can signal EN.The i.e. described control module 12 can get corresponding voltage by the battery module 13, and can will acquireVoltage is sent to the switch module 11 as enable signal.
Furthermore, it should be noted that the reference voltage and the threshold voltage can also flexibly be set according to the actual situationIt sets, such as may be configured as 2.5V and 4V, as long as the conducting being calculated according to the reference voltage and the threshold voltage(being at this time reverse-conducting) described first switch 112 can be connected in voltage, and the embodiment of the present invention is not limited in any way this.
Specifically, the driving unit 114 can be calculated accordingly based on the reference voltage and the threshold voltageConducting voltage, Vdriver as shown in Figure 3, and the conducting voltage can be sent to the control of the first switch 112End, to realize the reverse-conducting of the first switch.
It should be noted that battery charge controller described in the embodiment of the present invention exports it in addition to reverse electrical source can be achievedOutside, it can also be achieved positive power input, and, the forward direction power input may also include cable power input and wireless power source is defeatedEnter, therefore, the power input port on the switch module 11 can be divided into two classes, it may be assumed that
Optionally, at least two power input port may include the first power input port and second source input terminalMouthful.Preferably, first power input port can be cable power input port, and the second source input port can be nothingLine power input port.Wherein, the cable power input port can be corresponding USB Micro-B interface, USB Type-CInterface etc., if connection can be established with corresponding adapter by data line, and, it is generally the case that wired electricitySource input port can be used as the reverse electrical source output port simultaneously;The wireless power source input port can be the PRU of radio(Power Receiver Unit, power receiving unit) part, may be generally disposed at the inside of battery charge controller, therewith phasePTU (Power Transfer Unit, power emitting unit) part of matched radio, may be generally disposed at corresponding nothingIn line adapter, when the PRU and PTU is in effective chargeable range, the PRU can carry out electricity to the PTUThe transmission of energy.
Further, the switch module 11, it may also be used for when not receiving the enable signal, however, it is determined that describedThe first voltage of one power input port is greater than preset voltage threshold, then first power input port and described is connectedBattery module 13, to be charged from the first adapter being connected with first power input port to the battery module 13;If it is determined that the first voltage is no more than the second voltage of the voltage threshold and the second source input port greater than describedThe second source input port and the battery module 13 is then connected in voltage threshold, by inputting with the second sourceThe second adapter that port is connected charges to the battery module 13.
Wherein, the preset voltage threshold usually can flexibly be set according to the actual situation, such as may be configured as 0V, 1V, 2VDeng the embodiment of the present invention is not limited in any way this.
For example, it is assumed that the voltage threshold can first determine that described for 0V when being not received by the enable signalVoltage in two power input ports of switch module 11, however, it is determined that the first voltage in first power input port is4.0V then can determine and access adapter in the first power input port of the switch module 11, that is, can pass through describedBattery module 13 of one power input port into the battery charge controller charges.
It should be noted that can not go to determine described second when determining that the first voltage is greater than the voltage thresholdThe whether big voltage threshold of the second voltage in power input port, that is, as long as first voltage is greater than the voltage thresholdValue, can directly be connected first power input port and the battery module 13, not repeat this;
If it is determined that first voltage in first power input port is 0V, on the second source input port theTwo voltages are 4.8V, then can determine and accessed adapter on the second source input port of the switch module 11, that is, can lead toBattery module 13 of the second source input port into the battery charge controller is crossed to charge.
It should be noted that also needing to determine first electricity when determining that the second voltage is greater than the voltage thresholdWhether pressure is not more than the voltage threshold, if so, the second source input port and the battery module 13 could be connected, it is rightThis is not also repeated.
Since first power input port can be cable power input port, the second source input port can beWirelessly, therefore, in embodiments of the present invention, first adapter can be wired adapter, and second adapter can be nothingLine adapter.
Further, as shown in figure 4, it is the alternatively possible knot of switch module 11 described in the embodiment of the present inventionStructure schematic diagram.Specifically, as shown in Figure 4, the switch module 11 in the embodiment of the present invention may also include Overvoltage protecting unit115 and second switch 116, in which:
The comparing unit 111, it may also be used for when not receiving the enable signal, determine the first voltage andBiggish voltage between the second voltage, and it is single to the Overvoltage protecting unit 115, the reference using the voltage determinedMember 113 and the driving unit 114 are powered;
The Overvoltage protecting unit 115 can be used for determining corresponding control according to the first voltage, the second voltageInstruction, and the control instruction is exported to the driving unit 114;
The driving unit 114, it may also be used for when not receiving the enable signal, determined according to the control instructionThe first switch 112 or second switch 116 for needing to be connected, and be used for based on the reference voltage and threshold voltage determinationThe conducting voltage of the first switch 112 or the second switch 116 is connected, and the conducting voltage is exported to described firstSwitch 112 or the second switch 116.
The second switch 116 can be used for leading when receiving the conducting voltage that the second switch 116 can be connectedLead to the second source input port and the battery module 13.
For example, with control module 12 not to switch module 11 sends enable signal, first power input port isFor Vin1 (may include Vin10 and Vin11 described above), the second source input port are Vin2, it is assumed that describedVin1 is 4.2V, and the Vin2 is 3.0V, then the comparable first voltage out of the comparing unit 111 and second electricityBiggish voltage between pressure can then export the first voltage to each in the switch module 11 such as first voltage Vin1A subelement guarantees each height list in the switch module 11 with each subelement power supply into the switch module 11The normal work of member.
Specifically, the Overvoltage protecting unit 115 is particularly used according to the first voltage, second voltage, pre-If effective voltage threshold value and preset overvoltage protection threshold, determine corresponding control instruction.
Wherein, the preset effective voltage threshold value and the preset overvoltage protection threshold can be according to the actual situationFlexible setting, such as may be configured as 4V and 12V.Preferably, the preset effective voltage threshold value can be by described with reference to electricityPressure is calculated, and the embodiment of the present invention is not limited in any way this.
Furthermore, it should be noted that the control instruction generally can be it is possible to notify which the driving unit 114 is connectedThe instruction of a switch, specific format can flexibly be set, and not repeated this.
Specifically, the Overvoltage protecting unit 115 is particularly used in if it is determined that the first voltage is effective greater than presetVoltage threshold and be not more than preset overvoltage protection threshold (subsequent abbreviation first condition), then generate be used to indicate the drivingThe first control instruction of the first switch 112 is connected in unit 114;If it is determined that the first voltage is less than the effective voltage thresholdValue, the second voltage are greater than the effective voltage threshold value and are not more than the overvoltage protection threshold (subsequent abbreviation Article 2Part), then it generates and is used to indicate the second control instruction that the second switch 116 is connected in the driving unit 114;
The driving unit 114 receives first control instruction if being particularly used in, and is based on the reference voltageAnd the threshold voltage, calculate the first conducting voltage for the first switch 112 to be connected, and by first electric conductionPressure is sent to the first switch 112;If receiving second control instruction, it is based on the reference voltage and the doorVoltage limit calculates the second conducting voltage for the second switch 116 to be connected, and the second channel voltage is sent to instituteState second switch 116.
It should be noted that if the first voltage and the second voltage are unsatisfactory for above-mentioned first condition and secondCondition, the then it is believed that Overvoltage protecting unit 111 is not received by effective voltage, that is, the battery charge controller does not haveIt is connected to any available adapter (do not connect or adapter damages), this is not repeated.
That is, the compatible two kinds of power input modes of battery charge controller described in the embodiment of the present invention, that is, haveLine power input mode and wireless power source input mode, it is thus possible to promote the compatibility and flexibility of battery charge controller.
Further, the reference unit 113, it may also be used for determine the temperature information of the battery charge controller, and rootCorresponding temperature control instruction is generated according to the temperature information, and, temperature control instruction is sent to the driving unit 114;
The driving unit 114, it may also be used for if instructing according to the temperature control, determine that the battery charge controller was inTemperature state does not then send conducting voltage to the first switch 112 and the second switch 116.
Specifically, the reference unit 113, specifically for acquiring the temperature information of the battery charge controller, and, if reallyThe fixed temperature information is higher than preset temperature threshold, then generates the first temperature control instruction;If it is determined that the temperature information is not higher thanPreset temperature threshold then generates the second temperature control instruction;
The drive module 114 receives the first temperature control instruction if being particularly used in, it is determined that the charge controlDevice is in over-temperature condition;If receiving the second temperature control instruction, it is determined that the battery charge controller is in non-excess temperature shapeState.
Wherein, the preset temperature threshold can flexible setting according to the actual situation, such as may be configured as 60 DEG C, 80 DEG C,The embodiment of the present invention is not limited in any way this.
Further, the drive module 114, also particularly useful for determining that the battery charge controller is in over-temperature conditionWhen, stop sending corresponding conducting voltage to the first switch 112 and the second switch 116, this is not repeated.
Specifically, the comparing unit 111 can be voltage comparator.
It should be noted that the comparator also can be used and patrol accordingly other than it can pass through existing hardware and buildIt collects control program to realize, this is not limited in any way.
Specifically, the first switch 112 and the second switch 116 can be transistor.
Preferably, the transistor can be triode or field-effect tube.Wherein, the triode can for p-type triode orPerson's N-type triode etc., the field-effect tube can be p-type field-effect tube or N-type field-effect tube etc., the embodiment of the present invention to this notIt is limited in any way.
Certainly, it should be noted that the first switch 112 and the second switch 116 can also be corresponding hardwareSwitch or logic control program do not repeat this as long as can be connected under corresponding conducting voltage.
Further, the driving unit 114, it may also be used for Xiang Suoshu control module 12 sends charge information;
The control module 12, it may also be used for be based on the charge information, determine currently filling for the battery charge controllerElectricity condition.
For example, can determine that the adapter for being currently used in and charging to the battery charge controller is to have by the charge informationLine adapter or wireless adapter, and, current charging voltage is 4V, and charging current is 3A etc., is not repeated this.
Further more, the control module 12 can also determine corresponding charging adjustment information according to the present charge state, andThe charging adjustment information can be fed back to corresponding adapter, to carry out charging current or charging voltage by the adapterAdjustment, so as to shorten charging time, the raising efficiency etc. of the battery charge controller.The charging voltage is such as adjusted, so thatThe battery charge controller works inferior in CC mode as far as possible, does not repeat this.
Correspondingly, the embodiment of the invention also provides a kind of terminal devices, as shown in figure 5, it is in the embodiment of the present inventionThe structural schematic diagram of the terminal device.Specifically, as shown in Figure 5, the terminal device may include in the embodiment of the present inventionThe battery charge controller 51.
In addition, it is necessary to illustrate, a kind of charger baby is additionally provided in the embodiment of the present invention, including in the embodiment of the present inventionThe battery charge controller.
The embodiment of the invention provides a kind of battery charge controller, terminal device and charger babies, it may include has at least twoSwitch module, control module and the battery module of a power input port, in which: the control module, for for describedAny power input port at least two power input ports, when determining the power input port access from equipment,Enable signal is sent to the switch module;The switch module, for the electricity when receiving the enable signal, to be connectedSource input port and the battery module, to power from the battery module to described from equipment.Compared with the prior art, this hairBattery charge controller described in bright embodiment has at least two power input ports, it is thus possible to compatible multiple power sources input sideFormula;And the switch module in the battery charge controller can be realized bidirectionally conductive, so that the battery charge controller is notIt can only realize unidirectional power input, moreover it is possible to realize reversed power supply output.To solve present in existing terminal deviceThe problem of can not realizing reverse electrical source output on the basis of compatible multiple power sources input, so that terminal device be made to may be implementedOTG function has expanded the function of terminal device, improves the compatibility of terminal device.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, apparatus (equipment) or computer journeySequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present inventionThe form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the present invention, which can be used in one or more,The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the flow chart of device (equipment) and computer program productAnd/or block diagram describes.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructionsAnd/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer toEnable the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generateOne machine so that by the instruction that the processor of computer or other programmable data processing devices executes generate for realizingThe device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram orThe function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that countingSeries of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer orThe instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram oneThe step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basicProperty concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted asIt selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the artMind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologiesWithin, then the present invention is also intended to include these modifications and variations.