Power information real-time acquisition device and acquisition method thereof
Technical field
The present invention relates to the acquisition method and the device of a kind of method and the device, particularly a kind of high real-time of user power utilization real-time information collection, belong to the manufacturing technology field that user power utilization is gathered in real time, be a kind of power information real-time acquisition device and acquisition method thereof.
Background technology
State Grid Corporation of China with offer as a tribute clean energy resource, promote economic development, service society harmony be basic mission, the strong intelligent grid of unification of generating, transmission of electricity, power transformation, distribution, electricity consumption and each link of scheduling of electric system is contained in the proposition construction.Promoting client's side new and renewable sources of energy distributed power generation, reduce the dependence to fossil fuel, is the direction of future source of energy technical development.Therefore, electric company needs to gather in real time the real-time information of user power utilization, realizes reducing electric cost, safe and reliable electricity consumption.
Various power information acquisition terminals are arranged in the market, as meet concentrator, collector that state net company power information is gathered new standard, and some electrical quantity measuring apparatus.But each all has some shortcomings: 1) meet state net company power information and gather the concentrator of new standard, the collection that collector only is applicable to user's electric energy meter; 2) some electrical quantity measuring apparatus on the market, acquisition protocols and standard disunity are concentrated if realize user's image data, and cost can be than higher.
Therefore, need a kind of acquisition method and relevant apparatus, realize the real-time collection and the unified transmission of user power utilization information.
Summary of the invention
The problem to be solved in the present invention is: existing user power utilization information is because harvester is independent separately, acquisition protocols and standard disunity, and the data of being gathered are difficult to concentration of transmissions and centralized management.
Technical scheme of the present invention is: the power information real-time acquisition device, comprise acquiring electric energy information module, MCU module, wireless communication module, ethernet module and storer, acquiring electric energy information module, wireless communication module, ethernet module and storer are connected with the MCU module respectively, the acquiring electric energy information module is connected with the MCU module by the RS232 interface with wireless communication module, and the acquiring electric energy information module connects user's electrical quantity metering outfit by the RS485 interface.
It is the MCU chip of STM32F103 that described MCU module adopts model, it is the radio frequency chip of CC1100 and MC13192 that described wireless communication module adopts model, described ethernet module is the ethernet communication interface, and it is the Half-duplex transceiver chip of SP485 that described acquiring electric energy information module adopts model.
The information collecting method of above-mentioned electricity consumption real-time information collection device comprises real time data acquisition and data transmission:
Real time data acquisition:
(S201) the power information real-time acquisition device is compiled the user's electrical quantity metering outfit that is connected and is gone up sequence number;
(S202) the MCU module is gathered relevant user's electrical quantity metering outfit information in turn according to sequence number control acquiring electric energy information module, the mode of the The data data abstraction of gathering, the various data abstractions of gathering are become the mode of Data Identification and data value, be stored to storer, when gathering, the acquiring electric energy information module adapts to the agreement that different user's electrical quantity metering outfits is supported automatically;
(S203) the MCU module is for the user's electrical quantity metering outfit that does not collect data, control acquiring electric energy information module is carried out filling mining, after filling mining three times, still do not adopt data, then be saved to storer as incident, trigger event initiatively is reported to upper electric energy management system in real time simultaneously, and the data storage of other user's electrical quantity metering outfits of Cai Jiing is to storer simultaneously;
(S204) the data report cycle is set, the MCU module is according to report cycle, the real time data that automatic stay collects, and real-time report is to upper electric energy management system;
Data transmission: the MCU module is divided into real time data, freezing data, event data three major types to data and is uploaded to upper electric energy management system,
Real time data refers to the data that collect in real time in gathering user's electrical quantity metering outfit process in turn, upload when upper electric energy management system is initiatively called;
Freezing data refers to when report cycle arrives, the data that the MCU module is frozen into the real time data that collects, and the MCU module initiatively reports upper electric energy management system to freezing data by wireless communication module or ethernet module according to report cycle;
Event data refers to the anomalous event in gatherer process, and the MCU module initiatively reports upper electric energy management system after the abnormal conditions in gathering are saved to storer as incident.
Further, electricity consumption real-time information collection device carries out carrying out real time data acquisition and data transmission again after the initialization, is initialized as:
(S101) energy data of managing according to upper electric energy management system, the communication information of user's electrical quantity metering outfit that configuration acquiring electric energy information module connects, protocol information, the data item information that can collect;
(S102) upper electric energy management system is set to the configuration information of joining step (S101) in the MCU module of electricity consumption real-time information collection device, the configuration information of transmission time information, report cycle simultaneously, with electricity consumption real-time information collection device carry out to the time and arrange report cycle;
(S103) electricity consumption real-time information collection device carries out data acquisition according to configuration information and copies and accepts.
Substantive distinguishing features and obvious improvement that technical solution of the present invention is outstanding are mainly reflected in:
1) gather in real time: the present invention adopts data from bottom to top initiatively to report mode, and collection period can be provided with as required automatically.Carry out functions such as data comparative analysis for upper electric energy management system, promptly convenient real-time again;
2) support multiple acquisition protocols: can support multiple acquisition protocols when the present invention gathers, the communications protocol of setting the concrete user's electrical quantity metering outfit that connects during by initialization realizes, shielded the data processing complex of upper electric energy management system to different agreement, the concentration of transmissions of simple realization image data, centralized management, and for power information real-time acquisition device of the present invention, under the cooperation of acquiring electric energy information module and MCU module, it is also more convenient to expand new agreement;
3) two kinds of transmission interfaces: information collecting device of the present invention provides wireless and Ethernet dual mode transmission data, dirigibility is provided for concrete the installation when implementing, and can be subjected to concrete environmental limit.
Description of drawings
Fig. 1 is the structured flowchart of information acquisition collector of the present invention.
Fig. 2 is the circuit theory diagrams of acquiring electric energy information module of the present invention.
Fig. 3 is the circuit theory diagrams of MCU module of the present invention.
Fig. 4 is the circuit theory diagrams of wireless communication module of the present invention.
Embodiment
The present invention realizes adapting to the real-time collection and unified transmission of multiple user's electrical quantity metering outfit.Be achieved through the following technical solutions:
The power information real-time acquisition device comprises acquiring electric energy information module, MCU module, wireless communication module, ethernet module and storer.Described acquiring electric energy information module all links to each other with the MCU module with storer, has the wireless messages emission and also is connected with the MCU module communication with ethernet module with the wireless module that wireless messages is accepted function.
In the power information real-time acquisition device, wireless communication module links to each other with the MCU module by one road RS232, adopts full-duplex mode to realize the data-switching of wireless communication module to the MCU module; The acquiring electric energy information module connects user's electrical quantity metering outfit by the RS485 interface, and by inner Transistor-Transistor Logic level, is linked to each other with the MCU module by RS232.Wherein, it is the chip of STM32F103 that described MCU module adopts model, it is the MCU chip of STM32F103 that described MCU module adopts model, it is the radio frequency chip of CC1100 and MC13192 that described wireless communication module adopts model, described ethernet module is the ethernet communication interface, and it is the Half-duplex transceiver chip of SP485 that described acquiring electric energy information module adopts model.The circuit theory diagrams of acquiring electric energy information module as shown in Figure 2, the circuit theory diagrams of MCU module as shown in Figure 3, the circuit theory diagrams of wireless communication module are as shown in Figure 4.
Real-time information collection method of the present invention, characteristics are real-times of image data.Adopt the RS485 line to be connected to various electrical quantity acquisition modules, simultaneous adaptation DL/T645-1997, DL/T645-2007 agreement, MODBUS-RTU communication protocol are suitable for various electrical quantity metering outfits to reach.Power information real-time acquisition device of the present invention can support to insert 32 user's electrical quantity metering outfits at most by the RS485 line, adopt wheel to adopt type collection, preserve a certain amount of data by retention cycle simultaneously, support regularly to report the preservation data, and data call survey in real time together.
The unified transmission method of power information real-time acquisition device of the present invention, characteristics are that the data of gathering are transmitted by unified mode.Adopt the mode of data abstraction, the various data abstractions of gathering are become the mode of Data Identification and data value, and then be transferred in the upper electric energy management system, the present invention adopts two kinds of transmission modes, a kind of is that another kind is to transmit by wireless mode by the Ethernet transmission.Can adopt the Ethernet transmission for the convenient wiring user, otherwise, then can transmit by wireless mode.If adopt the Ethernet mode to transmit, module of the present invention can directly be communicated by letter with upper electric energy management system, otherwise, then need the route device of a wireless commentaries on classics Ethernet to change after again with relevant communication.
The power information real-time acquisition device carries out initialization at first according to the following steps:
(S101) energy data of managing according to upper electric energy management system, the communication information of user's electrical quantity metering outfit that configuration acquiring electric energy information module connects, protocol information, the data item information that can collect;
(S102) upper electric energy management system is set to the configuration information of joining step (S101) in the MCU module of electricity consumption real-time information collection device, the configuration information of transmission time information, report cycle simultaneously, with electricity consumption real-time information collection device carry out to the time and arrange report cycle;
(S103) electricity consumption real-time information collection device carries out data acquisition according to configuration information and copies and accepts.
Real time data acquisition:
(S201) the power information real-time acquisition device is compiled the user's electrical quantity metering outfit that is connected and is gone up sequence number;
(S202) the MCU module is gathered relevant user's electrical quantity metering outfit information in turn according to sequence number control acquiring electric energy information module, the mode of the The data data abstraction of gathering, the various data abstractions of gathering are become the mode of Data Identification and data value, be stored to storer, when gathering, the acquiring electric energy information module adapts to the agreement that different user's electrical quantity metering outfits is supported automatically;
(S203) the MCU module is for the user's electrical quantity metering outfit that does not collect data, control acquiring electric energy information module is carried out filling mining, after filling mining three times, still do not adopt data, then be saved to storer as incident, trigger event initiatively is reported to upper electric energy management system in real time simultaneously, and the data storage of other user's electrical quantity metering outfits of Cai Jiing is to storer simultaneously;
(S204) the data report cycle is set, the MCU module is according to report cycle, the real time data that automatic stay collects, and real-time report is to upper electric energy management system;
Data transmission: the MCU module is divided into real time data, freezing data, event data three major types to data and is uploaded to upper electric energy management system,
Real time data refers to the data that collect in real time in gathering user's electrical quantity metering outfit process in turn, upload when upper electric energy management system is initiatively called;
Freezing data refers to when report cycle arrives, the data that the MCU module is frozen into the real time data that collects, and the MCU module initiatively reports upper electric energy management system to freezing data by wireless communication module or ethernet module according to report cycle;
Event data refers to the anomalous event in gatherer process, and the MCU module initiatively reports upper electric energy management system after the abnormal conditions in gathering are saved to storer as incident.
With reference to the accompanying drawings and in conjunction with example the present invention is described in further detail.But the invention is not restricted to given example.
Suppose that a certain electricity consumption user is an office buildings, according to wirings such as bright, socket, power distribution rooms, and realized that line related adopts multiple brand equipment such as multifunctional electric energy meter, electrical quantity metering outfit that the electricity consumption data are measured, need be transferred to the unification of electricity consumption continuous data now and carry out analytic statistics on a certain management system, it comprises the steps:
The first step, install energy information of the present invention additional at corresponding multifunctional electric energy meter, electrical quantity metering outfit annex and gather transport module in real time; If it is more concentrated that multifunctional electric energy meter, electrical quantity metering outfit are installed, can adopt an energy information to gather transport module in real time and connect a plurality of metering outfits.Energy information is gathered transport module in real time and is adopted the Ethernet mode to insert this office buildings internal network.
Second step, management system are gathered transport module in real time to energy information and are carried out initialization by initialization flow process of the present invention;
After deployment finishes, can see following effect:
Management software will be received the data of corresponding metering outfit every the report cycle of setting.As fully visible, satisfaction of the present invention has realized: 1) gather in real time: the energy information described in the present invention is gathered transport module in real time, adopts data from bottom to top initiatively to report mode, and collection period can be provided with as required automatically.2) be applicable to the electrical quantity metering outfit of multiple standards interface: the energy information described in the present invention is gathered transport module in real time, integrated multiple standards interface, when initialization, set relevant consensus standard, can realize the collection of user power utilization data on the electrical quantity metering outfit; 3) two kinds of transmission interfaces: the energy information described in the present invention is gathered transport module in real time, provide wireless and Ethernet dual mode transmission data, either way given consideration for inserting Intranet and being inconvenient to insert Intranet, dirigibility is provided to concrete the installation when implementing.