Embodiment
For quote and know for the purpose of, the technical term that hereinafter uses, write a Chinese character in simplified form or abridge and sum up as follows:
UPnP: UPnP is by UPnP Forum (UPnP
TMForum) a cover procotol that proposes.The target of this agreement is the various device seamless link each other that makes in home network (data sharing, communications and entertainment) and the telecommunication network, and simplifies the realization of network of relation.UPnP is the basis with Internet standard and technology (for example TCP/IP, HTTP and XML), and the network equipment can be dynamically connected and collaborative work each other certainly;
SOC:State of Charge, state-of-charge;
UUID:Universally Unique Identifier, general unique identifier;
URL:Uniform Resource Locator, URL.
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The present invention provides the plug and play of a kind of family energy storage device to realize system.Fig. 1-3 shows a kind of structure that above-mentioned plug and play realizes system, and it comprises at least: UPnP describing module 1 and UPnP frame module 2.2 of UPnP frame modules comprise UPnP energy storage device control point 3, UPnP energy storage device module 4 and UPnP software development kit 5.Above-mentioned UPnP energy storage device control point 3 comprises family's energy storage device processing unit 31, and above-mentioned UPnP energy storage device module 4 comprises main control unit 41 and performance element 42;
Wherein:
UPnP describing module 1 can be used for storing the UPnP description of above-mentioned family energy storage device 7.UPnP describes and to comprise that device description and service describing, service describing wherein comprise the 7 available services of above-mentioned family energy storage device, and wherein device description exists with the form of device description document, and service describing exists with the form of service description document;
The device description document adopts the XML language expression, comprises the URL of facility information (the for example URL of device type, trade name and website, unit type title and numbering, sequence number), service list and the service description document of family's energy storage device.
Service description document adopts the XML language expression, comprises the parameter list of action lists, action and describes service operation status list constantly.
When the state of family's energy storage device changes, can in the status list of service description document, reflect immediately, also be that variation has taken place service description document.And the content of device description document is not ensued variation.
Family's energy storage device processing unit 31 can be used for sending the suitable operational order of service that provides with family's energy storage device 7 according to the order of user's input to above-mentioned main control unit 41; So that main control unit 41 calls family's energy storage device 7 according to this operational order indication performance element 42 and carries out corresponding service; And receive the service execution result that main control unit 41 returns, show the state of family's energy storage device 7 to the user;
UPnP software development kit (SDK) 5 can be used for realizing each unit and the communication between each unit in the UPnP energy storage device control point 3 in the UPnP energy storage device module 4, handles the multithreading resource contention.
Concrete, UPNP SDK can comprise following unit:
Simple services is found the unit, is used to carry out SSDP (SSDP);
The general purpose event notification unit is used to carry out general purpose event notification architecture agreement (GENA);
The simple object access unit is used to carry out Simple Object Access Protocol (SOAP);
HTTP unit (being used to carry out http protocol), mini server (MiniServer), multithreading storehouse (ThreadUtil) and XML interpreter.
UPNP SDK has realized the UPNP standard agreement, and on UPNP standard agreement basis, family's energy storage device 7 converts a large-scale UPNP equipment to, thereby has realized the plug and play of family's energy storage device.Mutual through UPnP energy storage device control point and UPnP energy storage device module, can realize UPnP energy storage device control point calling to family's energy storage device service.If UPnP energy storage device control point is arranged on the Internet except that home network; Then the user just can come far call family energy storage device to carry out service through the data interaction of UPnP energy storage device control point and UPnP energy storage device module; Thereby when having solved in the user stays out or stay out front yard network control scope, uncontrollable corresponding family energy storage device provides the problem of service.
In other embodiment of the present invention, referring to Fig. 4, the UPnP energy storage device control point 3 in the above-mentioned plug and play realization system also can comprise device management unit 32, and UPnP energy storage device module 4 can comprise that also state upgrades monitoring means 43, wherein:
Device management unit 32 can be used for safeguarding known device tabulation, and the life cycle (initialization, withdraw from etc.) of managing the family's energy storage device node in the above-mentioned known device tabulation;
State upgrades the state that monitoring means 43 can be used for monitoring family's energy storage device 7; When the state of family's energy storage device 7 changes; To device management unit 32 transmit status lastest imformations, so that device management unit 32 is upgraded the state of corresponding family energy storage device node in the above-mentioned known device tabulation according to this state updating information;
The state that it should be noted that upgrades the status monitoring of 43 pairs of family's energy storage devices 7 of monitoring means, can realize through its state is carried out active inquiry, also can initiatively realize to its send state information through family's energy storage device 7.
Thereby family's energy storage device processing unit 31 can be according to the state of the family energy storage device 7 of renewal after the user shows renewal of device management unit 32.
When concrete the realization, family's energy storage device phenomenon such as may cut off the power supply, power on is for adapting to above-mentioned all situation; In other embodiment of the present invention, referring to Fig. 5, UPnP frame module 2 also can comprise equipment acquisition module 6; UPnP energy storage device module 4 also can comprise notification unit 44, wherein:
Equipment acquisition module 6 can be used for discerning the access or the outage of above-mentioned family energy storage device 7;
After notification unit 44 is used in equipment acquisition module 6 and identifies the family energy storage device and insert; Send discovery information to device management unit 32; Above-mentioned discovery information can comprise family's energy storage device or the service available UPnP type of family's energy storage device, the URL address of the UUID of family's energy storage device and device description; And when equipment acquisition module 6 identifies the outage of family energy storage device or family's energy storage device and do not allow Long-distance Control, send the information that withdraws to device management unit 32;
Thereby device management unit 32 can add corresponding family energy storage device node in above-mentioned known device tabulation; And this family's energy storage device node is carried out initialization according to the discovery information that identifies; Perhaps, according to the information that withdraws from that identifies corresponding family energy storage device node in the above-mentioned known device tabulation is deleted.
When concrete the realization; Device management unit 32 adds corresponding family energy storage device node in above-mentioned known device tabulation; From find message, extract the URL of device description, the URL through device description fetches the device description document, and fetches service description document according to the URL of the service description document in the device description document; Message in device description document and the service description document is added the known device tabulation, thereby accomplish the initialization of above-mentioned family energy storage device node.
Need to prove; Inserting with family's energy storage device is example; All new family energy storage devices that device management unit 32 both can be access network are set up node in the known device tabulation, carry out initialization, also can be merely by the particular home access network (when discovery information is not during from particular home; To not be identified) or family's energy storage device of specific region access network (when discovery information is not during from the specific region; To not be identified) in the known device tabulation, set up node, carry out initialization, in addition; Family's energy storage device (when discovery information will not be identified with family's energy storage device of above-mentioned particular types is corresponding yet) that also can be merely some particular types of access network is set up node in the known device tabulation, carry out initialization.So that the rest may be inferred to the deletion of family's energy storage device node.
It will be appreciated by persons skilled in the art that family's energy storage device processing unit 31 calls only that the corresponding family's energy storage device of family's energy storage device node provides service in the tabulation of above-mentioned known device.
In other embodiment of the present invention, above-mentioned plug and play realizes that the UPnP frame module 2 of system also can comprise installation and initialization energy storage device module and initialization control point module.Wherein,
Installation and initialization energy storage device module are used for, and when the said equipment acquisition module 6 identifies the access of above-mentioned family energy storage device 7, according to the device description of above-mentioned family energy storage device 7, install and the above-mentioned UPnP energy storage device of initialization module 4;
Installation and initialization control point module are used for, and the above-mentioned UPnP software development kit 5 of initialization is installed and the above-mentioned UPnP energy storage device of initialization control point 3, and above-mentioned UPnP energy storage device control point 3 is registered.
In addition, UPNP frame module 2 also can comprise the cancellation module, is used for after (promptly sending the information of withdrawing from) withdrawed from 7 declarations of family's energy storage device, nullifying the UPnP energy storage device module 4 of above-mentioned family energy storage device 7 correspondences.
In other embodiment of the present invention,, can design control service and inquiry service to family's energy storage device.Accordingly, the operational order assigned of family's energy storage device processing unit can comprise with above-mentioned control serve corresponding control command and with the corresponding query statement of above-mentioned inquiry service.
Accordingly; Referring to Fig. 6; Above-mentioned performance element 42 can comprise energy storage device control module 421 and energy storage device quality of power supply acquisition module 422; Thereby main control unit 41 can be indicated energy storage device control module 421 to call family's energy storage device 7 according to control command and carried out the control corresponding service, calls family's energy storage device 7 according to querying command indication energy storage device quality of power supply acquisition module 422 and carries out corresponding inquiry service.
Referring to Fig. 7, family's energy storage device commonly used comprises battery management system BMS71, charging-discharging controller 72 and energy-storage battery 73; Through BMS71, the user can recognize the overall information about power of energy-storage battery 73, and the electric weight difference of each battery cell in the battery pack; And, can carry out charge and discharge control to energy-storage battery 73 through charging-discharging controller 72.
Corresponding with the function of BMS71 and charging-discharging controller 72, above-mentioned control service can comprise charging control service, discharge control service, and equalizing voltage is opened the control service, and equalizing voltage closes at least a in the control service; Above-mentioned inquiry service can comprise the charging and discharging state inquiry service, total state-of-charge inquiry service, current total voltage inquiry service, at least a in equalizing voltage on off state inquiry service and the temperature inquiry service; Accordingly, the state that state upgrades family's energy storage device 7 of monitoring means 43 monitorings also can comprise charging and discharging state, total state-of-charge, current total voltage, at least a in equalizing voltage on off state and the temperature.
And above-mentioned control command can comprise the charging control command, the discharge control command, and equalizing voltage is opened control command, and equalizing voltage closes at least a in the control command; Above-mentioned query statement can comprise the charging and discharging state query statement, total state-of-charge query statement, current total voltage query statement, at least a in inquiry of equalizing voltage on off state and the temperature query statement;
It will be understood by those skilled in the art that; Above-mentioned charging control command is corresponding with above-mentioned charging control service; Above-mentioned discharge control command is corresponding with above-mentioned discharge control service; Above-mentioned equalizing voltage is opened control command and above-mentioned equalizing voltage, and to open the control service corresponding, and above-mentioned equalizing voltage closes control command and closes control with above-mentioned equalizing voltage and serve corresponding;
Above-mentioned charging and discharging state query statement is corresponding with above-mentioned charging and discharging state inquiry service; Above-mentioned total state-of-charge query statement is corresponding with above-mentioned total state-of-charge inquiry service; Above-mentioned current total voltage query statement is corresponding with above-mentioned current total voltage inquiry service; Above-mentioned equalizing voltage on off state query statement is corresponding with above-mentioned equalizing voltage on off state service, and the said temperature query statement is corresponding with the said temperature inquiry service.
When concrete the realization, energy storage device control module 421 is called 72 pairs of energy-storage batteries of charging-discharging controller 73 and is carried out charge or discharge control service, calls BMS71 and carries out that equalizing voltage is opened the control service or equalizing voltage closes the control service;
And energy storage device quality of power supply acquisition module 422 calls 72 pairs of energy-storage batteries of charging-discharging controller, 73 execution charging and discharging state inquiry services; Call BMS71 and carry out total state-of-charge inquiry service; Current total voltage inquiry service, equalizing voltage on off state inquiry service and temperature inquiry service.
In addition, energy storage device control module 421 or energy storage device quality of power supply acquisition module 422 communicate with charging-discharging controller 72 through the modbus agreement, communicate by letter with BMS71 through the CAN bus.
It should be noted that; Referring to Fig. 8; The function that the said equipment acquisition module, notification unit, main control unit, UPnP describing module, energy storage device control module, energy storage device quality of power supply acquisition module, state upgrade monitoring means can realize through host computer 800 (host computer can be a PC, also can be the embedded processing equipment with network access facility).Host computer 800 can through network switch access network based on ethernet and UPnP energy storage device control point (abbreviation control point 1, control point 2 ... control point n) carry out information interaction.
In addition; The present invention also provides based on the plug and play implementation method that realizes system based on the plug and play of family's energy storage device; Last plug and play realizes that system can comprise UPnP describing module, UPnP frame module, and above-mentioned UPnP frame module comprises UPnP energy storage device control point, UPnP energy storage device module and UPnP software development kit.
Referring to Fig. 9 and 10, said method comprises the steps: at least
S1, UPnP energy storage device control point are sent the suitable operational order of service that provides with family's energy storage device according to the order of user's input to UPnP energy storage device module, carry out corresponding service so that UPnP energy storage device module is called family's energy storage device according to this operational order;
S2, UPnP energy storage device control point receive the service execution result that above-mentioned UPnP energy storage device module is returned, and show the state of above-mentioned family energy storage device.
Referring to Figure 11, above-mentioned implementation method also can comprise the steps:
The state of S3, UPnP energy storage device module monitors family energy storage device is when the state of above-mentioned family energy storage device changes, to UPnP energy storage device control point transmit status lastest imformation;
The state of corresponding family energy storage device node in the known device tabulation is upgraded at S4, UPnP energy storage device control point according to the state updating information that receives.
In other embodiment of the present invention,, before step S1, also can comprise referring to Figure 12:
S5, after the access that identifies above-mentioned family energy storage device, UPnP energy storage device control point adds corresponding family energy storage device node in the tabulation of above-mentioned known device, and this family's energy storage device node is carried out initialization.
In addition, when UPnP energy storage device control point cuts off the power supply or do not allow Long-distance Control at above-mentioned family energy storage device, also can delete corresponding family energy storage device node in the above-mentioned known device tabulation.
And in other embodiment of the present invention, referring to Figure 13, before step S5, said method also can comprise:
S6, install and initialization UPnP energy storage device module according to the device description of family's energy storage device;
S7, initialization UPnP software development kit;
S8, installation and initialization UPnP energy storage device control point, and above-mentioned UPnP energy storage device control point registered, UPnP energy storage device control point can be found to make UPnP energy storage device module.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.