Summary of the invention
The present invention is directed to a difficult problem for the distributed power supply technology existing in micro-electric power network technique and the deficiency that currently available technology is controlled distributed power source, a kind of micro-electrical network intelligent monitoring terminal and multi-agent system and micro-electrical network intelligent monitoring method based on many agencies and the isomery communication technology is provided.
The present invention solves its technical problem and is achieved through the following technical solutions:
A kind of micro-electrical network intelligent monitoring terminal based on multi-agent technology and the isomery communication technology, micro-electrical network is divided into intelligent monitoring terminal, for the micro-electrical network Agent(agency of monitoring intelligent detection and control terminal), for monitoring three layers of higher level's electrical network Agent of micro-electrical network Agent, coordinates control, it is characterized in that, described micro-electrical network intelligent monitoring terminal comprises: output module is controlled in protection, communicates with each bottom component in micro-electrical network; Isomery communication module, for receiving or transmit the control command of micro-electrical network Agent; Data acquisition module, for gathering the real time data information of each bottom component in micro-electrical network and real time data information being passed to main control module; Main control module, for the real time data information of depositing, deal with data acquisition module collects, and crosses isomery communication module by real time data information exchange and sends to micro-electrical network Agent; Meanwhile, by isomery communication module, receive the control command of micro-electrical network Agent, and control command is controlled to output module by protection be delivered to each bottom component in micro-electrical network, control the operating state of each bottom component in micro-electrical network; Described data acquisition module, isomery communication module and protection are controlled output module and are all connected with main control module.
A micro-electrical network intelligent monitoring terminal based on many agencies and the isomery communication technology, utilizes multi-agent technology, as element Agent(agency) form micro-electrical network multi-agent system together with micro-electrical network Agent, higher level's electrical network Agent.Intelligent monitoring terminal (element Agent), micro-electrical network Agent, higher level's electrical network Agent are divided into three layers to be coordinated to control, wherein: intelligent monitoring terminal is independently controlled each bottom component operation in micro-electrical network, realizing control, the energy-storage travelling wave tube of direct distributed energy controls and load control; Micro-electrical network Agent is for the management and running of micro-electrical network inside, and agency is managed, comprise accept intelligent monitoring end message, according to micro-operation of power networks situation and adjust strategy and provide corresponding control strategy for it; Higher level's electrical network Agent is responsible for the coordinated scheduling between electricity market and each agency, and comprehensive micro-electrical network proxy information makes very important decision, between micro-electrical network Agent and higher level's electrical network Agent, by communication, coordinate to solve task division between each agency and the distribution of shared resource; Between each Agent, also keep data communication to guarantee the reasonability of each self-decision.This kind of structure and communication mode have adapted to that micro-electrical network distributes, complicated, characteristic flexibly.By 3 layer proxy system coordinations, control, the micro electric network coordination control system based on multi-agent technology will make micro-electrical network when meeting and providing suitable electric energy to higher level's electrical network, guarantees safe, reliable, the economical operation of self electrical network.
And described intelligent monitoring terminal, comprise main control module, data acquisition module, protection control output module and isomery communication module, the real time data information of each bottom component in the micro-electrical network of described data collecting module collected, and real time data information is passed to described main control module, the real time data information that main control module is deposited, deal with data acquisition module collects, and real time data information exchange is crossed to isomery communication module send to micro-electrical network Agent; Meanwhile, main control module receives the control command of micro-electrical network Agent by isomery communication module, and control command is controlled to output module by protection is delivered to each bottom component in micro-electrical network, controls its operating state.
Described each bottom component comprises photovoltaic generation, wind-driven generator, storage battery, fuel cell, load etc.
And, the main control module of described intelligent monitoring terminal adopts the dual-CPU architecture of DSP+ARM; DSP is as controller; the main high-speed data collecting and processing of being responsible for is protected output with controlling, and ARM, as supervisor, is mainly responsible for data demonstration storage, network service and man-machine interaction.Both communicate by FIFO memory and SPI universal serial bus, and Real-Time Sharing information, shares out the work and helps one another.
And, the isomery communication module of described intelligent monitoring terminal adopts the design philosophy of isomery communication middleware HCM to implement, isomery communication module can provide unified data access interface for user; Complete transmission and the processing of data between main control module application layer and bottom and bottom and isomery communication network; The open interface that is applicable to various programming modes is provided, and the various operating mechanisms of applying while carrying out are provided.Isomery communication module is structured between main control module and communication network as intermediate layer, has two interfaces, be respectively with the interface of main control module and with the interface of isomery communication network.The function collection of isomery communication module comprises following main functional modules: agreement scheduler module, communication module, data processing module.Agreement scheduler module is responsible for scheduling in the communication protocol storehouse building and is applicable to the required communication protocol of Current Communication Network network.Communication module comprises framing module (assembling read/write data frame) and port operational module (read/write port).Wherein framing module is the interface module towards main control module, is used for obtaining main control module data message; Port operational module is the interface module towards communication network, is used for by communication interface and communication network, carrying out data interaction according to the Frame of framing module.Data processing module comprises data type processing module, regular modular converter and effective authentication module.
And, the microclimate monitoring of the intelligent monitoring terminal such as wind energy turbine set Agent, photovoltaic cell Agent wireless sensor network (the Wireless Sensor Network based on ZigBee, WSN) technology realizes, and described data acquisition module is by the wireless sensor network Real-time Collection meteorological data of ZigBee; Described data acquisition module comprises weather monitoring transducer and ZigBee microclimate monitoring modular, described weather monitoring transducer communicates by the data collection processor DSP of ZigBee microclimate monitoring modular and main control module, can Real-Time Monitoring wind speed, the meteorological data such as wind direction, atmospheric pressure, humiture, there is wireless penetration, volume is little, low in energy consumption, cost is low and the advantage such as convenient and flexible installation.
And, described main control module also comprises display device and data storage module, display device is all connected with data storing communication controller with data storage module.Data storage module comprises synchronous DRAM, NORFLASH memory and NANDFLASH memory.
A kind of micro-electrical network multi-agent system that utilizes above-mentioned micro-electrical network intelligent monitoring terminal, it is characterized in that: it comprises a plurality of micro-electrical network intelligent monitoring terminals, as element Agent, control each bottom component operation in micro-electrical network, realize control, Generation Control, the control of energy-storage travelling wave tube and the control of some loads of direct distributed energy;
A plurality of micro-electrical network Agent, for the management and running of micro-electrical network inside, to micro-electrical network intelligent monitoring terminal requirements or corresponding managing, comprise accept intelligent monitoring end message, according to micro-operation of power networks situation and adjust strategy and provide corresponding control strategy for it;
One higher level's electrical network Agent, be responsible for the coordinated scheduling between electricity market and each agency, and the micro-electrical network of comprehensive micro-electrical network Agent(agency) information is made final decision, between described intelligent monitoring terminal and and micro-electrical network Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information.
A kind of micro-electrical network multi-agent system that utilizes above-mentioned micro-electrical network intelligent monitoring terminal, it is characterized in that: it comprises a plurality of micro-electrical network intelligent monitoring terminals, as element Agent, control each bottom component operation in micro-electrical network, realize control, Generation Control, the control of energy-storage travelling wave tube and the control of important load of direct distributed energy;
A plurality of micro-electrical network Agent, for the management and running of micro-electrical network inside, to micro-electrical network intelligent monitoring terminal requirements or corresponding managing, comprise accept intelligent monitoring end message, according to micro-operation of power networks situation and adjust strategy and provide corresponding control strategy for it;
One higher level's electrical network Agent, be responsible for the coordinated scheduling between electricity market and each agency, and the micro-electrical network of comprehensive micro-electrical network Agent(agency) information is made final decision, between described intelligent monitoring terminal and and micro-electrical network Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information.
A micro-electrical network intelligent monitoring method of utilizing micro-electrical network multi-agent system, is characterized in that, its method step is as follows:
(1) micro-electrical network is divided into three layers and coordinates to control; Micro-electrical network is divided into higher level's electrical network proxy module layer, micro-electrical network proxy module layer and element proxy module layer, in micro-electrical network, each bottom component is all moved by intelligent monitoring terminal control independently, set micro-electrical network Agent simultaneously intelligent monitoring terminal is managed, between micro-electrical network Agent and higher level's electrical network Agent, by communication, coordinate to solve task division between each agency and the distribution of shared resource;
(2) data information acquisition; The real time data information of each bottom component in the micro-electrical network of data collecting module collected, and real time data information is passed to described main control module,
(3) data message stores and uploads micro-electrical network Agent; The real time data information that main control module is deposited, deal with data acquisition module collects, and real time data information exchange is crossed to isomery communication module send to micro-electrical network Agent;
(4) micro-electrical network Agent sends control command, controls each bottom component in micro-electrical network; Main control module receives the control command of micro-electrical network Agent by isomery communication module, and control command is controlled to output module by protection is delivered to each bottom component in micro-electrical network.
The concrete steps of information data that isomery communication module described above received or sent micro-electrical network Agent are as follows:
(A) agreement scheduling step, in the communication protocol storehouse building, scheduling is applicable to the required communication protocol of Current Communication Network network;
(B) communication steps, the required communication protocol of applicable Current Communication Network network of then obtaining according to step (A), obtains micro-electrical network Agent data that send or that main control module sends by communication interface;
(C) data processing step, is responsible for the data analysis of step (B) to process.
Described data processing step is as follows:
(I) validation verification step, obtains the data message in communication network, and communicates the validation verification of station number, data byte number and data check, if an authentication failed wherein, whole frame data all abandon; If the verification passes, carry out data type treatment step;
(II) data type treatment step, carries out the processing of data type for the data message that validation verification is passed through, the fundamental type of data comprises: position type, byte type, word type, double word type, float;
(III) regular switch process, for the data message of step (I) and step (II) is carried out to data transaction according to different rules, if do not need conversion data message to be directly passed to the main control module of application layer; During data processing, to receiving data, according to different agreement syntax format, check and extract; After data processing finishes, the data in dynamic refresh reception buffer zone, this buffering area and main control module are realized internal memory and are shared.
Advantage of the present invention and good effect are:
1, the present invention adopts multi-agent technology, inner by having proposed micro-electrical network, and and the coordination control strategy of higher level's electrical network, thereby the coordination of more having optimized micro-electrical network is controlled.Realize in general the stratification control containing the electric power networks of micro-electrical network, thereby reduced the danger of single distributed power source operation, improved the reliability of whole operation of power networks.
2, the present invention has adopted the CPU framework of DSP+ARM double-core, software is realized and being shared out the work and helped one another, give full play to processing and the control advantage of DSP and arm processor, form control, manage the design function that all-in-one completes micro-electrical network intelligent monitoring, adapted to the real-time demand of micro-power system monitor.
3, isomery communication module of the present invention adopts isomery communication middleware HCM(Heterogeneous Communication Middleware
,isomery communication middleware) design philosophy is implemented, and has designed solution, has realized intercommunication, the interconnection of micro-electrical network isomery communication network, has facilitated application layer User Exploitation application program, has improved development efficiency.
3, the wireless sensor network technology of microclimate of the present invention monitoring based on ZigBee realized, and has that wireless penetration, volume are little, low in energy consumption, low cost and other advantages.The present invention compares with existing energy management apparatus, take into full account convenience and the real-time of energy management and microclimate information gathering, based on wireless sensor network technology, designed a set of micro-power network monitoring and energy management apparatus with microclimate information collection function.Field monitoring main frame forms micro-wireless network with the node being connected on main controller module, detects the electric characteristic amount of microclimate environmental characteristic amount and circuit, has realized the Real-Time Monitoring of various characteristic quantities.Cost is low, convenience is high, real-time, there is very strong flexibility.
4, the present invention adopts the hardware platform of high unity, standardized information model, abstract communication service interface and the specific communication service mapping of standard, solved the interoperability issue in micro-electrical network, be easy to realize system seamless integrated, reduce installation, debugging and operating cost, farthest bring into play the benefit that micro-electrical network brings.
5, the present invention has designed multiple communication interface, can adapt to existing various communication medias (RS232/RS485 serial ports, wireless network, controller local area network's bus and the network communication protocol TCP/IP etc. that comprise synchronous/asynchronous) in micro-electrical network, built-in various protocols storehouse, can carry out efficiently the communication Protocol Conversion of every aspect, be applicable to the monitoring demand of devices from different manufacturers.Between intelligent monitoring terminal and and micro-electrical network Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information, met the micro-grid system requirement of response fast.
6, the present invention is owing to having used Modular Flexible designing technique, and device volume reduces greatly, and wiring is simple.Design of Hardware Architecture has adopted the standard fastener based on expansion slot, can be according to user's request flexible configuration hardware resource.Installation and Debugging are convenient, flexible structure, and extensibility is strong, for further developing upgrading products, provides convenience.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is further described: the present embodiment is implemented take technical solution of the present invention under prerequisite, provided detailed execution mode and concrete operating process, but protection scope of the present invention is not limited to following embodiment.
As shown in Figure 1, intelligent monitoring terminal, micro-electrical network Agent, higher level's electrical network Agent being divided into three layers coordinates to control.Each bottom component in micro-electrical network (comprising generator, load etc.) is all moved by intelligent monitoring terminal control independently.Set micro-electrical network Agent simultaneously these agencies are managed, as: accept intelligent monitoring end message, according to micro-operation of power networks situation and adjustment strategy, for it, provide corresponding control strategy.Between micro-electrical network Agent and higher level's electrical network Agent, by communication, coordinate to solve task division between each agency and the distribution of shared resource.Higher level's electrical network Agent is responsible for the coordinated scheduling between electricity market and each agency, and comprehensive micro-electrical network proxy information is made very important decision.Between different Agent, also keep a certain amount of data communication better to guarantee the reasonability of each self-decision.This kind of structure and communication mode have adapted to that micro-electrical network distributes, complicated, characteristic flexibly.
As shown in Figure 2, micro-electrical network intelligent monitoring terminal, comprise main control module, data acquisition module, protection control output module and isomery communication module, the real time data information of each bottom component in the micro-electrical network of described data collecting module collected, and real time data information is passed to described main control module, the real time data information that main control module is deposited, deal with data acquisition module collects, and real time data information exchange is crossed to isomery communication module send to upper micro-electrical network Agent; Meanwhile, main control module receives the control command of micro-electrical network Agent by isomery communication module, and control command is controlled to output module by protection is delivered to each bottom component in micro-electrical network, controls its operating state.
Concrete application example:
The present embodiment intelligent monitoring terminal applies, in micro-electrical network multi-agent system, also comprises micro-electrical network Agent, higher level's electrical network Agent in addition.The present embodiment intelligent monitoring terminal is the element agencies such as photovoltaic cell Agent, storage battery Agent, fuel cell Agent, wind energy turbine set Agent, load Agent.By the data-transformation facility in component module, mode and the micro-electrical network agency with request/response keeps in communication for they.Micro-electrical network Agent has comprised all micro-electrical network agencies, between each micro-electrical network agency, by communication modes, carry out a small amount of exchanges data, micro-electrical network Agent and higher level's electrical network Agent carry out the negotiation of control strategy in the mode of policy conferring by communication, and by response mode, control strategy is transferred to intelligent monitoring terminal, and control voluntarily corresponding agency by intelligent monitoring terminal.
Each Agent has data processing and communication function, and meanwhile, each Agent also has different separately functions: micro-electrical network Agent have aggregation of data processing, solution formulation, order issue and with the grid-connected function of major network; Photovoltaic cell Agent has MPPT maximum power point tracking (MPPT) function, cell panel monitoring and defencive function, inversion grid connection function; Fuel cell Agent has the monitoring of water treatment, fuel treatment and air supply, hydrogen-oxygen content and fuel and injects control, heat treatment, power adjustments and the function such as grid-connected; Storage battery Agent has the monitoring function to battery tension, electric current, energy storage, also has charging/discharging function and start and stop attributive function etc.
The hardware implementation scheme of intelligent monitoring terminal is as follows:
1, main control module
Main control module adopts the CPU architecture design of DSP+ARM double-core, comprises dsp chip and ARM chip, also comprises in addition display device and data storage module.
DSP is mainly as the platform that calculates every electric signal parameter, adopt TMS320F2812 chip, it is the fixed point 32 bit DSP chips on the C2000 platform released of American TI Company, dominant frequency reaches as high as 150 MHz, handling property can reach 150 MIPS, every instruction cycles 6.67 ns, can meet real-time demand well.In DSP, mainly complete the collection of the signal of telecommunication, the calculating of each monitoring variable, complete simultaneously and ARM between the synchronous transmission of result of calculation and real time data.
ARM interlock circuit is mainly realized distributed power source electrical parameter result is carried out to store and management.Master chip adopts AM3359, and 32 of Ta Shi TI company releases integrated ARM Cortex-A8 kernel are multi-functional, the ARM chip of low-power consumption, and highest frequency can reach 720 MHz.Hardware circuit comprises power module, memory module, and SD card module, USB module, touch screen module, network communication modules etc., adopt linux kernel, and stable and reliable for performance, the mechanism of multitask can effectively be managed various functions.
The transfer of data of DSP and ARM is adopted in two ways, and the one, serial ports SPI transmission, the 2nd, FIFO memorizer buffer mode.The parameter result drawing after DSP computing is due to data volume few (only having the parameters of 3 channel voltages and electric current etc.), and transmission not frequent (some s transmission 1 time), is mainly transferred to ARM by SPI serial mode.In AD sample rate, be (under signal fundamental frequency 50 Hz, each cycle sampled point is 256) in 12.8 k/s situations, the data volume that 3 channel voltage data add 3 channel current data is 76.8 k/s, data volume is larger, so adopt FIFO as buffer memory between DSP and ARM.
DSP and ARM data transmission circuit are as shown in Figure 3.FIFO model is SN74V235,2048 * 18-Bit capacity, and 3.3V power supply, can synchronously read and write, and the read-write cycle is 7.5 ns.The left side of FIFO is AD and DSP equipment, when AD being operated by DSP control, also FIFO is operated, the chip selection signal XZCSO1 of DSP connects WEN and writes clock enable signal, WCLK write clock signal by the read operation signal XRD of DSP to FIFO, completes like this and has also completed the storage of FIFO to data when reading AD image data.By the RESET of ARM, provided the RS reset signal of FIFO, data output pin DO ~ D15 meets ARM data wire DO ~ D15; The REN that ARM chip selection signal nGCS4 meets FIFO reads enable signal; CLKOUT connects and reads clock RCLK signal; By the nOE of ARM, provided the OE output bus enable signal of FIFO; The HF of FIFO connects the EINT2 external interrupt pin of ARM, for applying for, interrupts.When storage data reach 1k, FIFO will send half-full signal, and ARM will read this 1k data using this signal as interrupt signal, after there is out-of-limit judgement, determine whether these initial data are carried out to non-volatile memories again.
Main control module also comprises data storage module in addition.Data storage module mainly comprises synchronous DRAM (SDRAM), NORFLASH memory and NANDFLASH memory, and three completes different functions according to feature separately.
Synchronous DRAM part category is various, and native system has been selected IS42S16400 chip as required.This chip is the high speed SDRAM device of American I SSI company, and memory capacity is 8M byte, 16 bit data width.It is fast that it has read or write speed, stable performance, but easily lose program and the data that can be used in storage running, the speed of service of elevator system.In native system, two IS42S16400 are composed in parallel to the storage system of 32 bit wides.
That NORFLASH memory adopts is chip SST39VF160, and memory capacity is 2M, and bit wide is 16bit, and operating voltage is 3.3V, and power down is not lost, for program and some value data of solidification equipment.The present invention expands NORFLASH memory, and its memory space has increased one times.
The features such as that NANDFLASH memory adopts is the K9K2G08U0M of Samsung, and it is large that it has capacity, non-volatile, can be used to storage area for the microclimate data of micro-electric network information modeling at this device.
2, data acquisition module
Intelligent monitoring terminal will be to each unit operation conditions Real-Time Monitoring of micro-electrical network, and by data collecting module collected to data send to micro-electrical network Agent.Monitor data mainly comprises voltage, electric current, power and the frequency of system electrical network; The output voltage of inverter, electric current and power, and record every day electrical network and exchange input electric weight, DC side inversion electric weight, client's power consumption every day, every day battery discharge capacity, and inverter auxiliary contact state; Voltage, electric current, the power of photovoltaic panel output and the gross generation that records every day; Voltage, electric current, the power of blower fan output and the gross generation that records every day; The voltage of storage battery, electric current, power, temperature and record its running time, every day charge and discharge electric weight and total ampere-hour number that discharges and recharges.In addition, the data of collection also comprise the electric weight of voltage, electric current, power and every daily consumption of important load.
Industrial frequency AC data acquisition is transformed into the acceptable secondary singal of chip by voltage, current transformer by the voltage of primary side, current signal, and through signal adjustment circuit input sample chip, ADC carries out analog-to-digital conversion, after conversion, to DSP, processes judgement.For the voltage of blower fan and photovoltaic panel output, the collection of current data, use Hall current, voltage sensor to realize.
The ADC chip AD7656 that the present invention adopts be 16 high accuracy of 6 passage of U.S. ADI company development, fast, low-power consumption, successive approximation type a/d C, there are 6 Channel Synchronous sampling functions.Figure 4 shows that DSP data acquisition circuit.The control signal of AD is produced by an I/O mouth (timer) of dsp chip, at the rising edge of CONVST signal, trigger the sampled signal of AD, after AD converts, BUSY signal produces the external interrupt signal of F2812, cause that INT 1 interrupts, in interrupt routine, read continuously the address of 6 AD, just the data of 6 passages can be read out.Meanwhile, DSP is saved in data in FIFO.
Intelligent monitoring terminal can be monitored the state of multichannel external switch by intake circuit, comprises position of the switch information, fault warning etc.The present invention adopts IC-TLP181 high speed photo coupling chip, in order to dsp chip is isolated, anti-ly than external impact electric current, chip is caused damage.When position of the switch information changes or breaks down, the potential change of contact can cause holding into circuit to controller transmission displacement pulse, be that intake " input " level state is from hypermutation to low, make the light-emitting diode conducting in optocoupler, the light signal meeting conducting phototriode producing, " triode " output level, by high step-down, produces a remote signalling displacement, by DSP control chip capture-outside, interrupt, judgement is that variation has occurred the amount of information which pin is corresponding.
The WSN technology that the microclimate Monitoring Data of the intelligent monitoring terminals such as wind energy turbine set Agent, photovoltaic cell Agent gathers based on ZigBee realizes, and the ZigBee microclimate monitoring modular of wind energy turbine set Agent of take is below specifically described as example.ZigBee wireless sensor network structure as shown in Figure 5.The data upload that sensor node is responsible for wind speed, wind direction, humiture and barometric pressure sensor node to collect is to routing node.Routing node is delivered to coordinator node by data again, and ZigBee microclimate monitoring modular gathers.ZigBee microclimate monitoring modular carries out transfer of data by the main control module of serial ports and wind energy turbine set Agent, makes the wind energy turbine set Agent can Real-time Obtaining meteorological data.
Transducer (collection) node is comprised of CC2530 wireless module, sensor assembly and power module.The wireless transmission chip of CC2530 ShiTI company.It take 8051 microprocessors as kernel, and self-contained radio-frequency (RF) transceiver is used for realizing the communication of wireless sensor network node.Its encapsulation volume is little, has improved RF power output, sensitivity, selectivity and anti-interference.The layout of sensor node is as follows: apart from anemometer tower frame 10,30,50 m parts, arranging respectively wind speed and direction acquisition node.Be less than 30 m with anemometer tower distance, in the thermometer screen of liftoff 1.2 m, arrange atmospheric pressure and Temperature Humidity Sensor node, design tree type sensor network nodes topological structure, makes sensor node both as sense terminals, can carry out communication again, thereby form multihop self-organizing network.The selection of transducer completes according to " wind energy turbine set wind energy resources method of measurement (GB/T 18709-2002) " completely with installation.
3, output module is controlled in protection
Output circuit is controlled in protection, and digital output circuit is to realize detection and control terminal accumulator cell charging and discharging is managed, and protection is controlled, invertor operation mode is controlled and the basis of long-range remote control function.Data sampling information exchange is crossed DSP and is analyzed after judgement, according to prediction daily load situation, storage battery is assigned and is discharged and recharged instruction, by digital output circuit control switch, completes corresponding operating; Whether normally detect inner each unit operation of micro-electrical network, if break down, to switch, send separating brake pulse immediately, cut away corresponding running unit; If grid side breaks down, the order that digital output circuit should issue according to control centre, changes the operational mode of inverter, and the situation of load operation is controlled to adjustment.
The present invention adopts the switching value control loop with relay tip output.Control signal (low-voltage signal) and the relay control circuit (high-voltage signal) of DSP output adopt light-coupled isolation, guarantee the fail safe of circuit.DSP sends low level pulse, lights light-emitting diode, thereby makes triode conducting, engage relay actuation coil, and the actuating of relay, completes corresponding breaking-closing operating.
4, isomery communication module
Isomery communication module is mainly comprised of agreement scheduler module, communication module and data processing module, as shown in Figure 6.From three, form module below embodiment is described respectively.
4.1 agreement scheduler modules
Agreement scheduler module is mainly comprised of micro-electrical network isomery communication network required communication protocol storehouse and agreement scheduler, and agreement scheduler module structured flowchart as shown in Figure 7.For communication protocol storehouse ProtocodStore, it can be regarded as to a slice forest, ProtocodStore (Tree
1, Tree
2tree
itree
n), N>=0, every tree Tree in forest
i(Child
1, Child
2... Child
n), N>=0, is comprised of one or more sub-protocols storehouse.The schedule information that agreement scheduler handler provides according to application layer user is dispatched concrete communication protocol in communication protocol storehouse, completes the scheduling of agreement according to the algorithm of preorder traversal ProtocodStore forest.
4.2 communication module
Communication module is an alternation of bed in whole micro-communication system of power grids service system, comprise with the interface of upper layer application layer (main control module), with the interface of lower floor's network layer.Applied layer interface by this module when main control module need to read and write data passes to framing processor by read write command.Respective handling is carried out in the instruction that processor provides according to user, and after processing, the interface by this module and network layer communicates again, obtains the data that need after communicating by letter successfully and transfers to data processing module to carry out data processing.
Because communication protocol different in communication process (as baud rate etc.) and applied environment can have influence on system running speed, if adopted, single-threadedly complete data processing and the function such as communicate by letter, entire system response speed can be very slow.Therefore, adopt the processing scheme of asynchronous multithreading, framing module and port module adopt respectively separate threads separately complete Frame assembling and with the data interaction of communication network.Separate threads mode during traffic operation, can reduce standby time of system, improves the handling capacity of port.
4.3 data processing module
The data analysis that data processing module is mainly responsible for communication to obtain is processed, and comprises that Validation of Data, data type are processed, three submodules of regular conversion process.
(1) validation verification module, object is in order to obtain data message correct in communication network, comprises the validation verifications such as communication station, data byte number, data check.Carry out if the verification passes the processing of data type and rule conversion, if there is an authentication failed, whole frame data all abandon.
(2) data type processing module, the fundamental type of data comprises: position (BIT) type, byte (BYTE) type, word (WORD) type, double word (DWORD) type, floating number (FLOAT) type.
(3) regular modular converter, object is that the data after (1) and (2) is processed are carried out data transaction according to different rules, if do not need conversion, data is directly passed to application layer main control module.During data processing, according to special communication protocol, arrange, to receiving data, according to different agreement syntax format, check and extract, comprise the operations such as data validity inspection, data type processing, transformation rule processing.After data processing finishes, the data in dynamic refresh reception buffer zone, this buffering area and main control module are realized internal memory and are shared.
A kind of micro-electrical network multi-agent system that utilizes above-mentioned micro-electrical network intelligent monitoring terminal of the present invention, it comprises a plurality of micro-electrical network intelligent monitoring terminals, as element Agent, control each bottom component operation in micro-electrical network, realize control, Generation Control, the control of energy-storage travelling wave tube and the control of some loads of direct distributed energy;
A plurality of micro-electrical network Agent, for the management and running of micro-electrical network inside, to micro-electrical network intelligent monitoring terminal requirements or corresponding managing, comprise accept intelligent monitoring end message, according to micro-operation of power networks situation and adjust strategy and provide corresponding control strategy for it;
One higher level's electrical network Agent, be responsible for the coordinated scheduling between electricity market and each agency, and the micro-electrical network of comprehensive micro-electrical network Agent(agency) information is made final decision, between described intelligent monitoring terminal and and micro-electrical network Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information.
A kind of micro-electrical network multi-agent system that utilizes above-mentioned micro-electrical network intelligent monitoring terminal, it comprises a plurality of micro-electrical network intelligent monitoring terminals, as element Agent, control each bottom component operation in micro-electrical network, realize control, Generation Control, the control of energy-storage travelling wave tube and the control of important load of direct distributed energy;
A plurality of micro-electrical network Agent, for the management and running of micro-electrical network inside, to micro-electrical network intelligent monitoring terminal requirements or corresponding managing, comprise accept intelligent monitoring end message, according to micro-operation of power networks situation and adjust strategy and provide corresponding control strategy for it;
One higher level's electrical network Agent, be responsible for the coordinated scheduling between electricity market and each agency, and the micro-electrical network of comprehensive micro-electrical network Agent(agency) information is made final decision, between described intelligent monitoring terminal and and micro-electrical network Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information.
A micro-electrical network intelligent monitoring method of utilizing micro-electrical network multi-agent system, is characterized in that, its method step is as follows:
(1) micro-electrical network is divided into three layers and coordinates to control; Micro-electrical network is divided into higher level's electrical network proxy module layer, micro-electrical network proxy module layer and element proxy module layer, in micro-electrical network, each bottom component is all moved by intelligent monitoring terminal control independently, set micro-electrical network Agent simultaneously intelligent monitoring terminal is managed, between micro-electrical network Agent and higher level's electrical network Agent, by communication, coordinate to solve task division between each agency and the distribution of shared resource;
(2) data information acquisition; The real time data information of each bottom component in the micro-electrical network of data collecting module collected, and real time data information is passed to described main control module,
(3) data message stores and uploads micro-electrical network Agent; The real time data information that main control module is deposited, deal with data acquisition module collects, and real time data information exchange is crossed to isomery communication module send to micro-electrical network Agent;
(4) micro-electrical network Agent sends control command, controls each bottom component in micro-electrical network; Main control module receives the control command of micro-electrical network Agent by isomery communication module, and control command is controlled to output module by protection is delivered to each bottom component in micro-electrical network.
The concrete steps of information data that isomery communication module described above received or sent micro-electrical network Agent are as follows:
(A) agreement scheduling step, in the communication protocol storehouse building, scheduling is applicable to the required communication protocol of Current Communication Network network;
(B) communication steps, the required communication protocol of applicable Current Communication Network network of then obtaining according to step (A), obtains micro-electrical network Agent data that send or that main control module sends by communication interface;
(C) data processing step, is responsible for the data analysis of step (B) to process.
Described data processing step is as follows:
(I) validation verification step, obtains the data message in communication network, and communicates the validation verification of station number, data byte number and data check, if an authentication failed wherein, whole frame data all abandon; If the verification passes, carry out data type treatment step;
(II) data type treatment step, carries out the processing of data type for the data message that validation verification is passed through, the fundamental type of data comprises: position type, byte type, word type, double word type, float;
(III) regular switch process, for the data message of step (I) and step (II) is carried out to data transaction according to different rules, if do not need conversion data message to be directly passed to the main control module of application layer; During data processing, to receiving data, according to different agreement syntax format, check and extract; After data processing finishes, the data in dynamic refresh reception buffer zone, this buffering area and main control module are realized internal memory and are shared.
The present invention is by said system and method thereof, and intelligent end device, has adopted the CPU framework of DSP+ARM double-core by main control module, gives full play to processing and the control advantage of DSP and arm processor, forms and controls, manages all-in-one.Isomery communication module realizes based on the isomery communication technology, agreement scheduler module, communication module and data processing module, consists of, and has realized intercommunication, the interconnection of the complicated isomery communication network of micro-electrical network.The wireless sensor network technology of the microclimate monitoring of intelligent monitoring terminal based on ZigBee realized, and has that wireless penetration, volume are little, low in energy consumption, low cost and other advantages.The present invention can improve safe and stable operation and the generating efficiency of micro-electrical network.
More than show and described basic principle of the present invention and principal character and advantage of the present invention.The technical staff of the industry should understand; the present invention is not restricted to the described embodiments; that in above-described embodiment and specification, describes just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof.