Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Provide a kind of portable power source device in the present embodiment, Fig. 1 is the structured flowchart of the portable power source device according to the embodiment of the present invention, and as shown in Figure 1, this device comprises an interface 12, identification module 14, control module 16 and electrical energy storage device 18.Below this portable power source device is described.
Interface 12, for connecting external power source or outside by charging device; Electrical energy storage device 18, to be discharged to outside by charging device by interface 12 with storage of electrical energy or by the electric energy of storage for being charged by external power source by interface 12; Identification module 14, for identify the equipment be connected with interface 12 be external power source or outside by charging device, and recognition result is sent to control module 16; Control module 16, be connected with identification module 14, for making external power source be charged for electrical energy storage device 18 by interface 12 when recognition result is external power source, be that outside is made electrical energy storage device 18 externally be discharged electric energy by charging device by interface 12 when charging device in judged result.
This interface 12 can be various types of interface, such as, USB (universal serial bus) USB, MicroUSB, Type B 5pin, or the interface of other type, as long as adopt interface to be one, can technical solution problem.
By above-mentioned portable power source, original two interfaces have been become an interface, the judgement of device type and the control of control module is carried out by identification module, thus achieve the equipment that docking port connects and carry out distinguishing and carry out charging or discharging, at least there is the problem that two interfaces cause in the portable power source solved in correlation technique, the puzzlement of user's wrong plug interface can be eliminated, and make the interface of portable power source be reduced to one, save space.
To be external power source or outside by charging device can utilize external power source and outsidely to be judged by the difference in the physical property of charging device the external equipment of recognition interface 12.Provide two kinds of optional modes in the present embodiment, below these two kinds of optional modes are described.
Optional manner one
Identification module 14, after detecting that the power line of interface 12 has power supply input, judges whether the magnitude of voltage of power supply is greater than or equal to the voltage of electrical energy storage device 18, if the judgment is Yes, then equipment is external power source, if judged result is no, then equipment is outside by charging device.
When charging, the voltage of charger is higher than or equals the voltage of charged side, make use of this feature in this optional manner, is judged by the voltage of external equipment, if the voltage of external equipment is greater than or equal to the voltage of electrical energy storage device 18, then external equipment is external power source.This judgment mode realizes fairly simple.
Optional manner two
Identification module 14, after detecting that the power line of interface 12 has power supply input, judge whether to receive signal by the data wire of interface 12, if the judgment is No, then equipment is external power source, if judged result is yes, then equipment is outside by charging device.
For for charging device, the interface for charging also is generally data transmission interface, and charger then can not carry out transfer of data.Make use of this feature in this optional manner, judge whether to receive signal from data wire, if can receive signal from data wire, is so outside by charging device.
Above-mentioned two kinds of optional modes go for various interface.Above-mentioned optional manner one and optional manner two can be used alone, in order to more accurately also can being combined of judging, when being combined, correct judged result can be just confirmed to be when two kinds of mode judged results are consistent, such as two kinds of modes are all judged as external power source, then just think external power source.
Provide the mode that another combines in the present embodiment, i.e. optional manner three:
Optional manner three
This optional manner is applicable to the situation that interface 12 is USB (universal serial bus) USB interface, can certainly be applicable to the situation of other interfaces.
Identification module 14, after detecting that the power line of USB interface has power supply input, judge whether to receive signal by the differential lines of USB interface, if the judgment is No, then equipment is external power source; If judged result is yes, then when the magnitude of voltage of voltage higher than electrical energy storage device 18 of power supply input, equipment is external power source, and when magnitude of voltage lower than electrical energy storage device 18 of the voltage of power supply input, equipment be that outside is by charging device.
This optional judgment mode can judge more accurately.Certainly, the judgement for the device type of USB (universal serial bus) USB interface also directly can use optional manner one or optional manner two.
Above-mentioned three kinds of optional modes make use of certain external power source with outside by the heterogeneity of charging device, this is only a kind of exemplary illustration, utilize other character to carry out to judge also can to play and distinguish external power source and by the effect of charging device, identify as detection chip can be adopted, also by the protocol characteristic of interface, coherent signal input control module can be carried out detection to distinguish, or other detection modes, as long as act on identical, can technical solution problem, illustrate no longer one by one at this.
In the optional execution mode of another one, in order to make charging safer, can also control charging.Fig. 2 is the preferred structure block diagram of the portable power source device according to the embodiment of the present invention, and as shown in Figure 2, this device, except comprising all modules shown in Fig. 1, also comprises charge management module 22.Below this portable power source device preferred structure block diagram is described.
Charge management module 22, for when interface 12 connects described external power source, monitor flowing into the quantity of electric charge stored in the quantity of electric charge of electrical energy storage device 18 and electrical energy storage device 18, and control according to the speed of monitored results to the electric charge flowing into electrical energy storage device 18.
The speed charged can be controlled by above-mentioned charge management module 22, thus improve actual effect and the fail safe of charging.
In order to carry out safety guarantee further, providing another optional execution mode, Fig. 3 is another preferred structure block diagram of the portable power source device according to the embodiment of the present invention, as shown in Figure 3, also comprises overvoltage detection module 32.Below this portable power source device preferred structure block diagram is described.
Overvoltage detection module 32, for when interface 12 connects external power source, judges whether the input voltage at interface 12 place is greater than threshold value, and to send a notice charge management module 22 in the situation exceeding threshold value.
In the optional execution mode of another one, in order to make electric discharge safer, can also control the electric discharge of portable power source.Fig. 4 is another preferred structure block diagram of the portable power source device according to the embodiment of the present invention, and as shown in Figure 4, this device, except comprising all modules shown in Fig. 1, can also comprise electric discharge administration module 42.Below this portable power source device preferred structure block diagram is described.
Electric discharge administration module 42, for connecting outside at interface 12 by charging device, monitors the quantity of electric charge flowing out electrical energy storage device 18, and controls according to the speed of monitored results to the electric charge flowing out electrical energy storage device 18.
In portable power source, not only can increase charge management module 22 but also increase electric discharge administration module 42, also only can increase these two modules one of them, selection increase which or which module can be carried out according to actual conditions.
Additionally provide a kind of discharge and recharge processing method in the present embodiment, Fig. 5 is the flow chart of the discharge and recharge processing method according to the embodiment of the present invention, and as shown in Figure 5, this flow process comprises the steps:
Step S502, identify the equipment that is connected with an interface of portable power source be external power source or outside by charging device, wherein, interface is for connecting external power source or outside by charging device;
Step S504, when recognition result be outside by charging device, make electrical energy storage device externally be discharged electric energy by charging device by interface;
Step S506, when recognition result is external power source, makes external power source be the electrical energy storage device charging in portable power source by interface.
This interface can be various types of interface, such as, USB (universal serial bus) USB, MicroUSB, Type B 5pin, or the interface of other type, as long as adopt interface to be one, can technical solution problem.
Pass through above-mentioned steps, original two interfaces have been become an interface, the judgement of device type and the control of control module is carried out by identification module, thus achieve the equipment that docking port connects and carry out distinguishing and carry out charging or discharging, at least there is the problem that two interfaces cause in the portable power source solved in correlation technique, the puzzlement of user's wrong plug interface can be eliminated, and make the interface of portable power source be reduced to one, save space.
To be external power source or outside by charging device can utilize external power source and outsidely to be judged by the difference in the physical property of charging device the external equipment of recognition interface.Provide two kinds of optional methods in the present embodiment, below these two kinds of optional methods are described.
Method one
The specific implementation flow process of Fig. 6 to be provided flow chart be method one, as shown in Figure 6, this flow process has set forth the optional implementation method of one of the step S502 shown in Fig. 5, specific as follows:
Step S602, detects that the power line of interface has power supply to input;
Step S604, judges whether the magnitude of voltage of power supply is greater than or equal to the voltage of electrical energy storage device, and if the judgment is Yes, then equipment is external power source, if judged result is no, then equipment is outside by charging device.
When charging, the voltage of charger is higher than or equals the voltage of charged side, make use of this feature in this optional method, is judged by the voltage of external equipment, if the voltage of external equipment is greater than or equal to the voltage of electrical energy storage device, then external equipment is external power source.This judgment mode realizes fairly simple.
Generally, outside by the cell voltage of charging device in the scope of 3V ~ 4.2, the voltage of external power source is 5V, and when portable power source detects that the supply voltage of access is less than voltage or the 5V of the electrical energy storage device of portable power source, what will judge now to access is outside by charging device; When the supply voltage that portable power source detects access is 5V, what will judge now to access is external power source.
Method two
The specific implementation flow process of Fig. 7 to be provided flow chart be method two, as shown in Figure 7, this flow process has set forth the optional implementation method of another kind of the step S502 shown in Fig. 5, specific as follows:
Step S602, detects that the power line of interface has power supply to input;
Step S702, judges whether to receive signal by the data wire of interface, and if the judgment is No, then external equipment is external power source, if judged result is yes, then equipment is outside by charging device.
For for charging device, the interface for charging also is generally data transmission interface, and charger then can not carry out transfer of data.Make use of this feature in this optional method, judge whether to receive signal from data wire, if can receive signal from data wire, is so outside by charging device.
Generally, when another equipment is accessed by charging device in outside, the portable power source in such as the present embodiment, outside can be sent data-signal to attempt communication to portable power source by charging device.And when external power source accesses another equipment, in such as the present embodiment portable power source, external power source can not send signal to portable power source.Therefore, when plant-grid connection having been detected, and after there is data-signal, will judge that the equipment now accessed is outside by charging device; When plant-grid connection having been detected, but after there is no data-signal, will judge that the equipment now accessed is external power source.
Above-mentioned optional method one and optional method two can be used alone, in order to more accurately also can being combined of judging, when being combined, correct judged result can be just confirmed to be when two kinds of method judged results are consistent, such as two kinds of methods are all judged as external power source, then just think external power source.Provide the mode that another combines in the present embodiment, i.e. optional method three:
The flow chart that Fig. 8 is to provide is the specific implementation flow process of method three, and as shown in Figure 8, this flow process is specifically described when interface is USB (universal serial bus) USB interface, and the implementation method of the step S502 shown in Fig. 5 is specific as follows:
Step S606, detects that the power line of USB interface has power supply to input;
Step S802, judges whether to receive signal by the differential lines of USB interface;
Step S804, if judged result is yes, then needs to judge further voltage that power supply inputs whether higher than the magnitude of voltage of electrical energy storage device;
Step S806, if judged result is no, but or the differential lines of USB interface receive the voltage of signal power supply input higher than the magnitude of voltage of electrical energy storage device, equipment is external power source;
Step S808, if but the differential lines of USB interface receives the voltage of signal power supply input lower than the magnitude of voltage of electrical energy storage device, and equipment be that outside is by charging device.
Generally, when interface is USB interface, such as smart mobile phone, the interface of the equipment such as notebook computer, when two equipment connections time, main equipment can be there is and from equipment, that is, when two USB interface connect, an equipment, such as smart mobile phone, when its USB interface is connected to another equipment, such as portable power source, it can send signal to attempt communication to portable power source, and determine main equipment and the relation from equipment, now the USB interface differential lines of portable power source has detected that signal exists, and determine the cell voltage of cell voltage lower than portable power source of smart mobile phone, smart mobile phone is charged by portable power source by charging device as outside.When the USB interface of notebook computer is connected to the USB interface of portable power source, the USB interface of notebook computer can send signal to the USB interface of portable power source and communicates to attempt to set up and determine main equipment and the relation from equipment, now the USB interface differential lines of portable power source has detected that signal exists, and the voltage determining notebook computer is not less than the cell voltage of portable power source, notebook computer is portable power source charging as external power source.
This optional judgment mode can judge more accurately.Certainly, the judgement for the device type of USB (universal serial bus) USB interface also directly can use optional method one or optional method two.
Above-mentioned three kinds of optional methods make use of certain external power source with outside by the heterogeneity of charging device, this is only a kind of exemplary illustration, utilize other character to carry out to judge also can to play and distinguish external power source and by the effect of charging device, identify as detection chip can be adopted, also by the protocol characteristic of interface, coherent signal input control module can be carried out detection to distinguish, or other detection modes, as long as act on identical, can technical solution problem, illustrate no longer one by one at this.
In the optional implementation method of another one, in order to make charging safer, can also control charging, electric discharge.Fig. 9 is another preferred flow charts of the discharge and recharge processing method according to the embodiment of the present invention, as shown in Figure 9, this flow process not only covers the Overall Steps S502 shown in Fig. 8, also controls charging, electric discharge, specifically comprises step S902, step S904, step S906:
Step S902, when interface connects external power source, judges whether the input voltage of interface is greater than threshold value, and notifies when exceeding threshold value;
Step S904, when interface connects external power source, monitors flowing into the quantity of electric charge stored in the quantity of electric charge of electrical energy storage device and electrical energy storage device, and controls according to the speed of monitored results to the electric charge flowing into electrical energy storage device;
Step S906, when interface connects outside by charging device, monitors the quantity of electric charge flowing out electrical energy storage device, and controls according to the speed of monitored results to the electric charge flowing out electrical energy storage device.
By taking above step, can control to charge and the speed of electric discharge, preventing portable power source because the reason such as the magnitude of voltage of external power source is too high or charging rate is too fast and accidental damage, even exploding, make the process of charging safer.
In the processing procedure of discharge and recharge, only can increase the control of charging or the control only increased electric discharge, also can increase the control to charging and discharging simultaneously, can select according to actual conditions.
Be described further below in conjunction with an embodiment.This embodiment combines above-described embodiment and Alternate embodiments.
In this embodiment, the interface of portable power source can insert adapter (i.e. external power source, or be called charger) or mobile phone, is described below for USB interface.Also provide multiple judgment mode in the present embodiment, below this is described respectively.
Mode one
Because adapter only has power supply and the earth signal of 5V, there is no USB (universal serial bus) USB differential signal, so when identification module 14 has detected plant-grid connection, but after not having differential signal to access, will further judge, then identification module 14 detects battery (the i.e. electrical energy storage device 18 of the access voltage of adapter higher than portable power source, battery hereinafter referred to as portable power source) voltage, these information are all reported control module 16 by identification module 14, what control module 16 judged insertion is adapter, and adapter is to the equipment of portable power source charging, so control module 16 is by overvoltage detection module 32, enable the opening of charge management module 22 two parts circuit, it is made to work, and the discharge circuit of the other end is not owing to being enabled, therefore do not work, at this moment, adapter charges to portable power source.In charging process, control module 16 by the electricity in the battery of charge management module 22 effective monitoring portable power source, and can control the speed of the electric charge flowing into portable power source.When insertion portable power source interface 12 is that the outside of a needs charging is by charging device, such as mobile phone, owing to being connected by data wire between mobile phone with portable power source, therefore power supply signal is had, earth signal, data differential signals, identification module 14 further judges, then identification module 14 detects the voltage of access voltage lower than portable power source of mobile phone, now identification module 14 by these information reportings to control module 16, it is a mobile phone to be charged that control module 16 identifies what now insert, then control module 16 opens the enable signal of electric discharge administration module 42, it is made to work, start to charge the phone after the cell voltage of portable power source is boosted to 5V by electric discharge administration module 42.
Mode two
Adapter inserts the interface 12 of portable power source, because the power supply electrical level of adapter is generally 5V, higher than the cell voltage of portable power source, so when identification module 14 has detected plant-grid connection, and when being the cell voltage of a 5V, what will judge now to insert is adapter, then by these information reportings to control module 16, then control module 16 is by overvoltage detection module 32, enable the opening of charge management module 22 two parts circuit, it is made to work, and the discharge circuit of the other end is not owing to being enabled, therefore do not work, at this moment, adapter charges to the battery of portable power source, control module 16 can by the battery electric quantity of charge management module 22 effective monitoring portable power source in charging process, and the speed of the electric charge flowing into portable power source is controlled.The interface 12 of portable power source inserts the mobile phone that needs charging, cell voltage lower than portable power source during full electricity owing to needing the electricity of the battery of mobile phone of charging own, so time identification module 14 recognizes insertion is the equipment lower than the cell voltage of portable power source, therefore equipment to be charged is judged as, and by these information reportings to control module 16, then control module 16 opens the enable signal of electric discharge administration module 42, make it work, start to charge the phone after the cell voltage of portable power source is boosted to 5V by electric discharge administration module 42.
It should be noted that, identification module 14 and control module 16 can be modules, also can be two independent modules, identification module 14 and control module 16 complete the identifying of equipment jointly, and identification module 14 and these two modules of control module 16 specifically perform the solution of what function or step not influence technique problem respectively.
Optional structure below in conjunction with the portable power source related in accompanying drawing 10 pairs of aforesaid ways is described, and in Figure 10, portable power source comprises an interface 12, identification module 14 and charge-discharge modules.
When after interface 12 insertion equipment, electric current flows to identification module 14 from interface 12; Identification module 14 detects that the equipment of insertion is after charging device, and partial switch in it is got to the one end making charging circuit conducting by charge-discharge modules, and electric current flows into charging circuit part; After interface 12 inserts charging equipment, identification module 14 detects that the equipment of insertion is the equipment needing charging, and discharge circuit partially opens by the switch of charge-discharge modules, and electric current flows to charging equipment by identification module 14.
In the present embodiment, by control module 16 and charge management module 22, the administration module 42 that discharges, the integrated charge-discharge modules of overvoltage detection module 32, and, correlation module in portable power source can carry out increasing, deleting, as long as but charging and discharging shares an interface, can technical solution problem.
Connected mode in this portable power source between modules can be various, modules can be produced on different veneers, then connected by different modes, as passed through connector, FPC, the connections such as wire, also can be produced on same mainboard first-class by modules, as long as scheme is identical with the present embodiment with effect, can technical solution problem.
The shell of this portable power source can be consistent with the portable power source in correlation technique with the assembly connection mode that the mainboard of enclosure is set up, also can be different, as long as function is identical and adopt an interface to be connected with outside, and can technical solution problem.
This identification module 14 can, for the circuit built with simple components and parts, also can be one or more chip portfolio.As long as any other design effect is similar to this module, can technical solution problem.And, the detection mode of identification module 14 is not limited to these two kinds in embodiment, by the protocol characteristic of interface, coherent signal input control module can also be carried out detection and distinguish, or other detection modes, as long as act on similar to this module, can technical solution problem.
The control module 16 of this portable power source can be multiple control modes; as baseband chip or multimedia chip etc. can be adopted to detect, also can adopt the circuit etc. be made up of device, also can adopt other effective control modes; as long as act on identical, all belong to protection scope of the present invention.
The charge management module 22 of this portable power source inside can be the chip of any support Charge Management existed at present, as long as the chip effect adopted is identical with the present embodiment, all belongs to protection scope of the present invention.
The electric discharge administration module 42 of this portable power source inside can be the chip of any support boosting management existed at present, as long as the chip effect adopted is identical with the present embodiment, all belongs to protection scope of the present invention.
For the different structure of single port portable power source, single port portable power source can have different workflows.Figure 11 and Figure 12 shows two kinds of optional control methods, is described respectively below to this.
In the flow process shown in Figure 11, when needs charge time, the enable of charging chip is opened by control chip, be that charging chip is started working, (first when not inserting any equipment, charging chip and electric discharge chip are all idle to control charging like this, this is implied terms), also be open the enable of electric discharge chip by control chip when in like manner discharging, electric discharge chip started working, then the electric current of controlled discharge.
Figure 11 is the workflow diagram five of the discharge and recharge of portable power source device according to the embodiment of the present invention, and this flow process can comprise the steps:
Step S1102, first when not inserting any equipment, charging chip and electric discharge chip are idle, and then, interface inserts equipment;
Step S1104, which kind of equipment what identification module started detection insertion is, the kind difference according to the equipment detected turns to step S1106 or turns to step S1114;
Step S1106, what insertion detected is to the equipment of portable power source charging;
Step S1108, reports coherent signal to control module:
Step S1110, control module opens charge management module and overvoltage detection module after receiving signal, the function that charge management module and overvoltage detection module perform is illustrated above, does not repeat them here;
Step S1112, the equipment of insertion starts to charge to portable power source.
Above-mentioned steps is to the process of portable power source charging, and following step is the process that portable power source is charged by charging device to outside.
Step S1114, what insertion detected is the equipment needing portable power source to charge to it;
Step S1116, reports coherent signal to control module;
Step S1118, control module opens electric discharge administration module after receiving signal, and the function that electric discharge administration module performs is illustrated above, does not repeat them here;
Step S1120, portable power source starts to the equipment charge inserted.
The workflow of the major embodiment single port portable power source shown in Figure 11 is how to carry out the identification of equipment about identification module, and mode one in the above-described embodiments and mode two did explanation, and this is no longer going to repeat them.
In the flow process shown in Figure 12, when needs charge time, there is a switch detection chip inside, and detection chip internal switch (two-way or 3 to all right) is opened to and is communicated with by charging chip by control chip, and such charging chip is started working.When detect need electric discharge time, control chip is by the switch opens of detection chip inside to chip connection of will discharge, and electric discharge chip is started working like this, if inside is 3 to switch, at portable power source without being be opened on neutral gear when the equipment of insertion.Below Figure 12 is described.
Figure 12 is the workflow diagram six of the discharge and recharge of portable power source device according to the embodiment of the present invention, and as shown in figure 12, this flow process comprises the steps:
Step S1202, interface inserts equipment;
Step S1204, which kind of equipment what identification module started detection insertion is, the kind difference according to the equipment detected turns to step S1206 or turns to step S1214;
Step S1206, what insertion detected is to the equipment of portable power source charging;
Step S1208, reports coherent signal to control module;
Step S1210: after control module receives signal, the switch in detection module is pushed the one end of opening charging path;
Step S1212, the equipment of insertion starts to charge to portable power source.
Above-mentioned steps is to the process of portable power source charging, and following step is the process that portable power source is charged by charging device to outside.
Step S1214, what insertion detected is the equipment needing portable power source to charge to it;
Step S1216, reports coherent signal to control module:
Step S1218, pushes the one end of opening discharge path by the switch in detection module after control module receives signal;
Step S1220, portable power source starts to the equipment charge inserted.
Shown in Figure 11 and Figure 12 two kind of workflow is wherein two kinds of selectable duty flow processs of single port portable power source, the control module in Figure 11, act as the operation of all modules controlling whole portable power source, monitors the operating state of modules; Control module in Figure 12, is integrated with the function of the control module in Figure 11, charge management module, electric discharge administration module, overvoltage detection module, act as the charging and electric discharge that directly control whole portable power source.
It should be noted that, this single port portable power source also can have other workflow, and its control module also can have other implementation, as long as but interface is one, all can technical solution problem.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.