Summary of the invention
The present invention is directed to the deficiency that the difficult problem of the distributed power supply technology existed in micro-capacitance sensor technology and currently available technology control distributed power source, a kind of micro-capacitance sensor intelligent monitoring terminal based on many agencies and hetero-com-munication technology and multi-agent system thereof and micro-capacitance sensor intelligent monitoring method are provided.
The present invention solves its technical problem and is achieved through the following technical solutions:
A kind of micro-capacitance sensor intelligent monitoring terminal based on multi-agent technology and hetero-com-munication technology, micro-capacitance sensor is divided into intelligent monitoring terminal, acts on behalf of for the micro-capacitance sensor Agent(of monitoring intelligent detection and control terminal), carry out cooperation control for three layers of higher level's electrical network Agent of monitoring micro-capacitance sensor Agent, it is characterized in that, described micro-capacitance sensor intelligent monitoring terminal comprises: protecting control output module, communicates with each bottom component in micro-capacitance sensor; Hetero-com-munication module, for receiving or transmit the control command of micro-capacitance sensor Agent; Data acquisition module, for gathering the real time data information of each bottom component in micro-capacitance sensor and real time data information being passed to main control module; Main control module, for depositing, the real time data information that collects of deal with data acquisition module, and is sent to micro-capacitance sensor Agent by real time data information by hetero-com-munication module; Meanwhile, received the control command of micro-capacitance sensor Agent by hetero-com-munication module, and control command is delivered to each bottom component in micro-capacitance sensor by protecting control output module, control the operating state of each bottom component in micro-capacitance sensor; Described data acquisition module, hetero-com-munication module are all connected with main control module with protecting control output module.
Based on a micro-capacitance sensor intelligent monitoring terminal for many agencies and hetero-com-munication technology, utilize multi-agent technology, act on behalf of as element Agent() micro-capacitance sensor multi-agent system is formed together with micro-capacitance sensor Agent, higher level's electrical network Agent.Intelligent monitoring terminal (element Agent), micro-capacitance sensor Agent, higher level's electrical network Agent are divided into three layers and carry out cooperation control, wherein: intelligent monitoring terminal independently controls each bottom component in micro-capacitance sensor and runs, and realizes the control of direct distributed energy, energy-storage travelling wave tube controls and spatial load forecasting; Micro-capacitance sensor Agent, for the management and running of micro-capacitance sensor inside, manages agency, comprises accepting intelligent monitoring end message, providing corresponding control strategy according to micro-capacitance sensor operation conditions and adjustable strategies for it; Higher level's electrical network Agent is responsible for the coordinated scheduling between electricity market and each agency, and comprehensive micro-capacitance sensor proxy information makes very important decision, between micro-capacitance sensor Agent and higher level's electrical network Agent, coordinate to solve the distribution of task division between each agency and shared resource by communication; Also keep data communication to ensure the reasonability of each self-decision between each Agent.This kind of structure and communication mode have adapted to micro-capacitance sensor distribution, complexity, flexibly characteristic.Controlled by 3 layer proxy system coordinations, will make micro-capacitance sensor while meeting and providing suitable electric energy to higher level's electrical network based on the micro electric network coordination control system of multi-agent technology, ensure safe, reliable, the economical operation of self electrical network.
And described intelligent monitoring terminal, comprise main control module, data acquisition module, protecting control output module and hetero-com-munication module, the real time data information of each bottom component in described data collecting module collected micro-capacitance sensor, 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 is sent to micro-capacitance sensor Agent by hetero-com-munication module; Meanwhile, main control module receives the control command of micro-capacitance sensor Agent by hetero-com-munication module, and control command is delivered to each bottom component in micro-capacitance sensor by protecting control output module, 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; primary responsibility high-speed data collecting and processing and Control protection export, and ARM is as supervisor, and primary responsibility data show storage, network service and man-machine interaction.Both are communicated with SPI universal serial bus by FIFO memory, and Real-Time Sharing information, shares out the work and helps one another.
And, the hetero-com-munication module of described intelligent monitoring terminal adopts the design philosophy of hetero-com-munication middleware HCM to implement, hetero-com-munication module can provide unified data access interface for user; Complete main control module application layer and bottom and the transmission of data and process between bottom and heterogeneous communications network; The open interface of applicable various programming mode is provided, and various operating mechanisms when providing application to perform.Hetero-com-munication module is structured between main control module and communication network as intermediate layer, has two interfaces, is respectively and the interface of main control module and the interface with heterogeneous communications network.The function collection of hetero-com-munication module comprises following main functional modules: protocol schedule module, communication module, data processing module.Protocol schedule module in charge dispatches the communication protocol be applicable to needed for present communications network in the communication protocol storehouse built.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 carrying out data interaction according to the Frame of framing module by communication interface and communication network.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 is based on the wireless sensor network (WirelessSensorNetwork of ZigBee, WSN) technology realizes, and namely 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 is communicated by the data collection processor DSP of ZigBee microclimate monitoring modular and main control module, can the meteorological data such as Real-Time Monitoring wind speed, 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 and data storage module are all connected with data storage communication controller.Data storage module comprises synchronous DRAM, NORFLASH memory and NANDFLASH memory.
A kind of micro-capacitance sensor multi-agent system utilizing above-mentioned micro-capacitance sensor intelligent monitoring terminal, it is characterized in that: it comprises multiple micro-capacitance sensor intelligent monitoring terminal, as element Agent, control each bottom component in micro-capacitance sensor to run, realize the control of direct distributed energy, Generation Control, the control of energy-storage travelling wave tube and the control of some loads;
Multiple micro-capacitance sensor Agent, for the management and running of micro-capacitance sensor inside, to micro-capacitance sensor intelligent monitoring terminal requirements or correspondingly to manage, comprises and accepts intelligent monitoring end message, provides corresponding control strategy according to micro-capacitance sensor operation conditions and adjustable strategies for it;
One higher level's electrical network Agent, be responsible for the coordinated scheduling between electricity market and each agency, and comprehensive micro-capacitance sensor Agent(micro-capacitance sensor agency) information makes final decision, between described intelligent monitoring terminal and and micro-capacitance sensor Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information.
A kind of micro-capacitance sensor multi-agent system utilizing above-mentioned micro-capacitance sensor intelligent monitoring terminal, it is characterized in that: it comprises multiple micro-capacitance sensor intelligent monitoring terminal, as element Agent, control each bottom component in micro-capacitance sensor to run, realize the control of direct distributed energy, Generation Control, the control of energy-storage travelling wave tube and the control of important load;
Multiple micro-capacitance sensor Agent, for the management and running of micro-capacitance sensor inside, to micro-capacitance sensor intelligent monitoring terminal requirements or correspondingly to manage, comprises and accepts intelligent monitoring end message, provides corresponding control strategy according to micro-capacitance sensor operation conditions and adjustable strategies for it;
One higher level's electrical network Agent, be responsible for the coordinated scheduling between electricity market and each agency, and comprehensive micro-capacitance sensor Agent(micro-capacitance sensor agency) information makes final decision, between described intelligent monitoring terminal and and micro-capacitance sensor Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information.
Utilize a micro-capacitance sensor intelligent monitoring method for micro-capacitance sensor multi-agent system, it is characterized in that, its method step is as follows:
(1) micro-capacitance sensor is divided into three layers to carry out cooperation control; Micro-capacitance sensor is divided into higher level's electrical network proxy module layer, micro-capacitance sensor proxy module layer and Element agent module layer, in micro-capacitance sensor, each bottom component is all by independently intelligent monitoring terminal control operation, set micro-capacitance sensor Agent to manage intelligent monitoring terminal simultaneously, between micro-capacitance sensor Agent and higher level's electrical network Agent, coordinate to solve the distribution of task division between each agency and shared resource by communication;
(2) data information acquisition; The real time data information of each bottom component in data collecting module collected micro-capacitance sensor, and real time data information is passed to described main control module,
(3) data message stores and uploads micro-capacitance sensor Agent; The real time data information that main control module is deposited, deal with data acquisition module collects, and real time data information is sent to micro-capacitance sensor Agent by hetero-com-munication module;
(4) micro-capacitance sensor Agent sends control command, controls each bottom component in micro-capacitance sensor; Main control module receives the control command of micro-capacitance sensor Agent by hetero-com-munication module, and control command is delivered to each bottom component in micro-capacitance sensor by protecting control output module.
The concrete steps of the information data that hetero-com-munication module described above receives or sends micro-capacitance sensor Agent are as follows:
(A) protocol schedule step, in the communication protocol storehouse built, scheduling is applicable to communication protocol needed for present communications network;
(B) communication steps, communication protocol needed for the applicable present communications network then obtained according to step (A), obtains that micro-capacitance sensor Agent sends or that main control module sends data by communication interface;
(C) data processing step, is responsible for the data analysis process to step (B).
Described data processing step is as follows:
(I) validation verification step, obtains the data message in communication network, the validation verification of Serial Communication station number of going forward side by side, data byte number and data check, if a wherein authentication failed, then whole frame data all abandon; If the verification passes, then data type treatment step is carried out;
(II) data type treatment step, the data message for passing through validation verification carries out the process of data type, and the fundamental type of data comprises: position type, byte Type, word type, double word type, float;
(III) regular switch process, for carrying out data transaction to the data message of step (I) and step (II) according to different rules, changing if do not need, data message being directly passed to the main control module of application layer; During data processing, reception data to be checked according to different agreement syntax format and to be extracted; After data processing terminates, the data in dynamic refresh reception buffer zone, this buffering area and main control module realize internal memory and share.
Advantage of the present invention and good effect are:
1, the present invention adopts multi-agent technology, by proposing micro-capacitance sensor inside, and and the coordination control strategy of higher level's electrical network, thus more optimize the cooperation control of micro-capacitance sensor.The stratification achieved in general containing the electric power networks of micro-capacitance sensor controls, thus reduces the danger of single distributed power source operation, improves the reliability of whole operation of power networks.
2, present invention employs the CPU architecture of DSP+ARM double-core, software simulating is shared out the work and helped one another, give full play to process and the control advantage of DSP and arm processor, form control, manage the design function that all-in-one completes micro-capacitance sensor intelligent monitoring, adapt to the real-time demand of micro-capacitance sensor monitoring.
3, hetero-com-munication module of the present invention adopts hetero-com-munication middleware HCM(HeterogeneousCommunicationMiddleware
,hetero-com-munication middleware) design philosophy implement, and devise solution, achieve the intercommunication of micro-capacitance sensor heterogeneous communications network, interconnection, facilitate application layer User Exploitation application program, improve development efficiency.
3, microclimate of the present invention monitoring realizes based on the wireless sensor network technology of ZigBee, has that wireless penetration, volume are little, low in energy consumption, low cost and other advantages.The present invention is compared with existing energy management apparatus, take into full account convenience and the real-time of energy management and microclimate information gathering, devise the monitoring of a set of micro-capacitance sensor with microclimate information collection function and energy management apparatus based on wireless sensor network technology.Field monitoring main frame and the node be connected on main controller module form micro-wireless network, detect the electric characteristic amount of microclimate environmental characteristic amount and circuit, achieve the Real-Time Monitoring of various characteristic quantity.Cost is low, convenience is high, real-time, there is very strong flexibility.
4, the present invention adopts the specific communication service of the hardware platform of high unity, standardized information model, abstract Communication Service Interface and specification to map, solve the interoperability issue in micro-capacitance sensor, be easy to realize system Seamless integration-, reduce installation, debugging and operating cost, farthest play the benefit that micro-capacitance sensor brings.
5, the present invention devises multiple communication interface, various communication medias (comprising the RS232/RS485 serial ports of synchronous/asynchronous, wireless network, CAN bus and network communication protocol TCP/IP etc.) existing in micro-capacitance sensor can be adapted to, built-in various protocols storehouse, the communication Protocol Conversion of every aspect can be carried out efficiently, be applicable to the monitoring demand of devices from different manufacturers.Between intelligent monitoring terminal and and micro-capacitance sensor Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information, meet the requirement that micro-grid system responds fast.
6, the present invention is owing to employing Modular Flexible designing technique, and device volume reduces greatly, and wiring is simple.Design of Hardware Architecture have employed the standard fastener based on expansion slot, can according to user's request flexible configuration hardware resource.Installation and Debugging are convenient, flexible structure, and extensibility is strong, provide conveniently for developing upgrading products further.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is further described: the present embodiment is implemented under premised on technical solution of the present invention, give 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-capacitance sensor Agent, higher level's electrical network Agent are divided into three layers and carry out cooperation control.In micro-capacitance sensor, each bottom component (comprising generator, load etc.) is all by independently intelligent monitoring terminal control operation.Set micro-capacitance sensor Agent to manage these agencies simultaneously, as: accept intelligent monitoring end message, provide corresponding control strategy according to micro-capacitance sensor operation conditions and adjustable strategies for it.Coordinate to solve the distribution of task division between each agency and shared resource between micro-capacitance sensor Agent and higher level's electrical network Agent by communication.Higher level's electrical network Agent is responsible for the coordinated scheduling between electricity market and each agency, and comprehensive micro-capacitance sensor proxy information makes very important decision.Also keep a certain amount of data communication better to ensure the reasonability of each self-decision between different Agent.This kind of structure and communication mode have adapted to micro-capacitance sensor distribution, complexity, flexibly characteristic.
As shown in Figure 2, micro-capacitance sensor intelligent monitoring terminal, comprise main control module, data acquisition module, protecting control output module and hetero-com-munication module, the real time data information of each bottom component in described data collecting module collected micro-capacitance sensor, 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 is sent to upper micro-capacitance sensor Agent by hetero-com-munication module; Meanwhile, main control module receives the control command of micro-capacitance sensor Agent by hetero-com-munication module, and control command is delivered to each bottom component in micro-capacitance sensor by protecting control output module, controls its operating state.
Embody rule example:
The present embodiment intelligent monitoring terminal applies, in micro-capacitance sensor multi-agent system, also comprises micro-capacitance sensor Agent, higher level's electrical network Agent in addition.The present embodiment intelligent monitoring terminal is the Element agent such as photovoltaic cell Agent, storage battery Agent, fuel cell Agent, wind energy turbine set Agent, load Agent.They to be acted on behalf of with the mode of request/response and micro-capacitance sensor by the data-transformation facility in component module and keep in communication.Micro-capacitance sensor Agent contains all micro-capacitance sensor agencies, a small amount of exchanges data is carried out by communication modes between each micro-capacitance sensor agency, micro-capacitance sensor Agent and higher level's electrical network Agent carries 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 corresponding agency voluntarily by intelligent monitoring terminal.
Each Agent has data processing and communication function, and meanwhile, each Agent also has functions different separately: micro-capacitance sensor Agent has aggregation of data process, solution formulation, order issue and function grid-connected with 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 water treatment, fuel treatment and air supply, the monitoring of 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 embodiments 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 display device and data storage module in addition.
DSP is mainly as the platform calculating every electric signal parameter, adopt TMS320F2812 chip, it is the fixed point 32 bit DSP chip on the C2000 platform of American TI Company release, dominant frequency reaches as high as 150MHz, handling property can reach 150MIPS, every bar instruction cycle 6.67ns, can meet real-time demand well.Mainly complete the collection of the signal of telecommunication, the calculating of each monitoring variable in dsp, complete the synchronous transmission of result of calculation and real time data between ARM simultaneously.
ARM interlock circuit mainly realizes carrying out store and management to distributed power source electrical parameter result.Master chip adopts AM3359, and it is that 32 of ARMCortex-A8 kernel are multi-functional, the ARM chip of low-power consumption for being integrated with of releasing of TI company, and highest frequency can reach 720MHz.Hardware circuit comprises power module, memory module, SD card module, USB module, touch screen module, network communication module etc., and adopt linux kernel, stable and reliable for performance, the mechanism of multitask effectively can manage various functions.
The transfer of data of DSP and ARM is adopted in two ways, and one is that serial ports SPI transmits, and two is FIFO memory buffering methods.The parametric results drawn after DSP computing is due to data volume few (only having the parameters etc. of 3 channel voltages and electric current), and transmission infrequently (some s transmit 1 time), is transferred to ARM mainly through SPI serial mode.Under AD sample rate is 12.8k/s situation (under signal fundamental frequency 50Hz each cycle sampled point 256), the data volume that 3 channel voltage data add 3 channel current data is 76.8k/s, data volume is comparatively large, so adopt FIFO as buffer memory between DSP and ARM.
DSP and ARM data transmission circuit as shown in Figure 3.FIFO model is SN74V235,2048 × 18-Bit capacity, and 3.3V powers, and can synchronously read and write, and the read-write cycle is 7.5ns.The left side of FIFO is AD and DSP equipment, also FIFO is operated while being controlled to operate AD by DSP, the chip selection signal XZCSO1 of DSP connects WEN and writes clock enable signal, by the read operation signal XRD of DSP to the WCLK write clock signal of FIFO, complete like this and also complete the storage of FIFO to data to while reading AD image data.Provided the RS reset signal of FIFO by the RESET of ARM, data output pins 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; The OE output bus enable signal of FIFO is provided by the nOE of ARM; The HF of FIFO connects the EINT2 external interrupt pin of ARM, interrupts for applying for.When storing data and reaching 1k, FIFO will send half-full signal, and ARM using this signal as interrupt signal, will read this 1k data, after the out-of-limit judgement of generation, determine whether carry out non-volatile memories to these initial data 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 respective feature.
Synchronous DRAM part category is various, and native system have 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, and can be used for program in storage running and data, the speed of service of elevator system.In native system, two pieces of IS42S16400 are composed in parallel 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 increases 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 the microclimate data of storage area for micro-capacitance sensor information modeling at this device.
2, data acquisition module
Intelligent monitoring terminal will to micro-capacitance sensor each unit operation conditions Real-Time Monitoring, and by data collecting module collected to data be sent to micro-capacitance sensor Agent.Monitor data mainly comprises the voltage of system electrical network, electric current, power and frequency; The output voltage of inverter, electric current and power, and record every day electrical network exchange input electricity, DC side inversion electricity, client's power consumption every day, every day battery discharge capacity, and inverter auxiliary contact state; Photovoltaic panel export voltage, electric current, power and record every day gross generation; Blower fan export voltage, electric current, power and record every day gross generation; The voltage of storage battery, electric current, power, temperature and record its running time, the discharge and recharge of every day and total discharge and recharge ampere-hour number.In addition, the data of collection also comprise the electricity of the voltage of important load, electric current, power and every daily consumption.
The voltage of primary side, current signal are transformed into the acceptable secondary singal of chip by voltage, current transformer by industrial frequency AC data acquisition, carry out analog-to-digital conversion, judge after conversion to DSP process through signal adjustment circuit input sample chip ADC.The voltage exported for blower fan and photovoltaic panel, the collection of current data, use Hall current, voltage sensor to realize.
The ADC chip AD7656 that the present invention adopts be the development of ADI company of the U.S. 6 passage, 16 high accuracy, fast, low-power consumption, SAR ADC, 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, the sampled signal of AD is triggered at the rising edge of CONVST signal, after AD conversion completes, BUSY signal produces the external interrupt signal of F2812, INT1 is caused to interrupt, the address of 6 AD is read continuously in interrupt routine, just can by the digital independent of 6 passages out.Meanwhile, data are saved in FIFO by DSP.
Intelligent monitoring terminal can monitor 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 isolate dsp chip, anti-ly to cause damage to chip than external impact electric current.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, namely intake " input " level state changes to low from height, make the LEDs ON in optocoupler, the light signal meeting conducting phototriode produced, " triode " output level, by high step-down, produces remote signalling displacement, interrupted by DSP control chip capture-outside, judgement is that the amount of information which pin is corresponding there occurs change.
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 is specifically described below for the ZigBee microclimate monitoring modular of wind energy turbine set Agent.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.Data are delivered to coordinator node by routing node again, and namely 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, enables wind energy turbine set Agent Real-time Obtaining meteorological data.
Transducer (collection) node is made up of CC2530 wireless module, sensor assembly and power module.CC2530 is the wireless transmission chip of TI company.It is with 8051 microprocessors for kernel, and self-contained radio-frequency (RF) transceiver is used for realizing the communication of wireless sensor network node.Its encapsulation volume is little, improves RF power output, sensitivity, selectivity and anti-interference.The layout of sensor node is as follows: arranging wind speed and direction acquisition node respectively apart from anemometer tower frame 10,30,50m part.30m is being less than with anemometer tower distance, arrange atmospheric pressure and Temperature Humidity Sensor node in the thermometer screen of liftoff 1.2m, design tree-shaped sensor network nodes topological structure, makes sensor node both as sense terminals, can information transmission be carried out again, thus form multihop self-organizing network.The selection of transducer completes according to " wind energy turbine set wind energy resources method of measurement (GB/T18709-2002) " completely with installation.
3, protecting control output module
Protecting control output circuit, namely digital output circuit realizes detection and control terminal to manage accumulator cell charging and discharging, and protecting control, invertor operation mode control and the basis of long-range remote control function.After data sampling information carries out analysis judgement by DSP, according to prediction daily load situation, discharge and recharge instruction is assigned to storage battery, completes corresponding operating by digital output circuit control switch; Whether run normal, if break down, then send separating brake pulse to switch immediately, cut away corresponding running unit if detecting the inner each unit of micro-capacitance sensor; If grid side breaks down, the order that digital output circuit should issue according to control centre, changes the operational mode of inverter, and carries out control adjustment to the situation of load operation.
The present invention adopts the digital output modul loop exported with relay tip.The control signal (low-voltage signal) that DSP exports and relay control circuit (high-voltage signal) adopt light-coupled isolation, ensure the fail safe of circuit.DSP sends low level pulse, lights light-emitting diode, thus makes triode ON, engage relay actuation coil, and the actuating of relay completes corresponding breaking-closing operating.
4, hetero-com-munication module
Hetero-com-munication module forms primarily of protocol schedule module, communication module and data processing module, as shown in Figure 6.Respectively embodiment is described from three comprising modules below.
4.1 protocol schedule modules
Protocol schedule module is primarily of the communication protocol storehouse needed for micro-capacitance sensor heterogeneous communications network and protocol schedule device composition, and protocol schedule modular structure block diagram as shown in Figure 7.For communication protocol storehouse ProtocodStore, it can be regarded as 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 made up of one or more sub-protocol storehouse.The schedule information that protocol schedule manager provides according to application layer user dispatches 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-capacitance sensor communication system, comprise with the interface of upper layer application layer (main control module), with the interface of lower net network layers.By the Applied layer interface of this module, read write command is passed to framing processor when main control module needs to read and write data.Respective handling is carried out in the instruction that processor provides according to user, is communicated after process by this module with the interface of network layer again, and the data that to obtain successfully needing of communicating also transfer to data processing module to carry out data processing.
Because communication protocol (as baud rate etc.) different in communication process and applied environment can have influence on system running speed, if adopt single-threaded come data processing with the function such as to communicate, entire system response speed can be very slow.Therefore, adopt the processing scheme of asynchronous multithreading, framing module and port module adopt respective separate threads to complete the assembling of Frame and the data interaction with communication network respectively.Separate threads mode during traffic operation, can reduce the standby time of system, improves the handling capacity of port.
4.3 data processing module
Data processing module primary responsibility, to the data analysis process obtained that communicates, comprises Validation of Data, data type process, regular conversion process three submodules.
(1) validation verification module, object is to obtain data message correct in communication network, comprises the validation verifications such as communication station, data byte number, data check.Then carry out the process of data type Sum fanction conversion if the verification passes, 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 be to (1) and (2) process after data carry out data transaction according to different rules, if do not need conversion; data are directly passed to application layer main control module.Arrange according to special communication protocol during data processing, reception data to be checked according to different agreement syntax format and to be extracted, comprises the operations such as data validity inspection, data type process, transformation rule process.After data processing terminates, the data in dynamic refresh reception buffer zone, this buffering area and main control module realize internal memory and share.
A kind of micro-capacitance sensor multi-agent system utilizing above-mentioned micro-capacitance sensor intelligent monitoring terminal of the present invention, it comprises multiple micro-capacitance sensor intelligent monitoring terminal, as element Agent, control each bottom component in micro-capacitance sensor to run, realize the control of direct distributed energy, Generation Control, the control of energy-storage travelling wave tube and the control of some loads;
Multiple micro-capacitance sensor Agent, for the management and running of micro-capacitance sensor inside, to micro-capacitance sensor intelligent monitoring terminal requirements or correspondingly to manage, comprises and accepts intelligent monitoring end message, provides corresponding control strategy according to micro-capacitance sensor operation conditions and adjustable strategies for it;
One higher level's electrical network Agent, be responsible for the coordinated scheduling between electricity market and each agency, and comprehensive micro-capacitance sensor Agent(micro-capacitance sensor agency) information makes final decision, between described intelligent monitoring terminal and and micro-capacitance sensor Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information.
A kind of micro-capacitance sensor multi-agent system utilizing above-mentioned micro-capacitance sensor intelligent monitoring terminal, it comprises multiple micro-capacitance sensor intelligent monitoring terminal, as element Agent, control each bottom component in micro-capacitance sensor to run, realize the control of direct distributed energy, Generation Control, the control of energy-storage travelling wave tube and the control of important load;
Multiple micro-capacitance sensor Agent, for the management and running of micro-capacitance sensor inside, to micro-capacitance sensor intelligent monitoring terminal requirements or correspondingly to manage, comprises and accepts intelligent monitoring end message, provides corresponding control strategy according to micro-capacitance sensor operation conditions and adjustable strategies for it;
One higher level's electrical network Agent, be responsible for the coordinated scheduling between electricity market and each agency, and comprehensive micro-capacitance sensor Agent(micro-capacitance sensor agency) information makes final decision, between described intelligent monitoring terminal and and micro-capacitance sensor Agent between adopt the communication protocol mode based on Ethernet to carry out the transmission of information.
Utilize a micro-capacitance sensor intelligent monitoring method for micro-capacitance sensor multi-agent system, it is characterized in that, its method step is as follows:
(1) micro-capacitance sensor is divided into three layers to carry out cooperation control; Micro-capacitance sensor is divided into higher level's electrical network proxy module layer, micro-capacitance sensor proxy module layer and Element agent module layer, in micro-capacitance sensor, each bottom component is all by independently intelligent monitoring terminal control operation, set micro-capacitance sensor Agent to manage intelligent monitoring terminal simultaneously, between micro-capacitance sensor Agent and higher level's electrical network Agent, coordinate to solve the distribution of task division between each agency and shared resource by communication;
(2) data information acquisition; The real time data information of each bottom component in data collecting module collected micro-capacitance sensor, and real time data information is passed to described main control module,
(3) data message stores and uploads micro-capacitance sensor Agent; The real time data information that main control module is deposited, deal with data acquisition module collects, and real time data information is sent to micro-capacitance sensor Agent by hetero-com-munication module;
(4) micro-capacitance sensor Agent sends control command, controls each bottom component in micro-capacitance sensor; Main control module receives the control command of micro-capacitance sensor Agent by hetero-com-munication module, and control command is delivered to each bottom component in micro-capacitance sensor by protecting control output module.
The concrete steps of the information data that hetero-com-munication module described above receives or sends micro-capacitance sensor Agent are as follows:
(A) protocol schedule step, in the communication protocol storehouse built, scheduling is applicable to communication protocol needed for present communications network;
(B) communication steps, communication protocol needed for the applicable present communications network then obtained according to step (A), obtains that micro-capacitance sensor Agent sends or that main control module sends data by communication interface;
(C) data processing step, is responsible for the data analysis process to step (B).
Described data processing step is as follows:
(I) validation verification step, obtains the data message in communication network, the validation verification of Serial Communication station number of going forward side by side, data byte number and data check, if a wherein authentication failed, then whole frame data all abandon; If the verification passes, then data type treatment step is carried out;
(II) data type treatment step, the data message for passing through validation verification carries out the process of data type, and the fundamental type of data comprises: position type, byte Type, word type, double word type, float;
(III) regular switch process, for carrying out data transaction to the data message of step (I) and step (II) according to different rules, changing if do not need, data message being directly passed to the main control module of application layer; During data processing, reception data to be checked according to different agreement syntax format and to be extracted; After data processing terminates, the data in dynamic refresh reception buffer zone, this buffering area and main control module realize internal memory and share.
The present invention is by said system and method thereof, and intelligent end device, be have employed the CPU architecture of DSP+ARM double-core, give full play to process and the control advantage of DSP and arm processor by main control module, forms control, management all-in-one.Hetero-com-munication module realizes based on hetero-com-munication technology, is made up of protocol schedule module, communication module and data processing module, achieves the intercommunication of the complicated heterogeneous communications network of micro-capacitance sensor, interconnection.The microclimate monitoring of intelligent monitoring terminal realizes based on the wireless sensor network technology of ZigBee, 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-capacitance sensor.
More than show and describe general 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; what describe in above-described embodiment and specification 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.Application claims protection range is defined by appending claims and equivalent thereof.