A kind of data cut-in method of converting equipment and system
Technical field
The present invention relates to converting equipment on-line monitoring technique field is and in particular to a kind of data cut-in method of converting equipment
And system.
Background technology
At present, in order to ensure power grid security, stable, Effec-tive Function is it will usually carry out substation equipment condition monitoring, and will supervise
The equipment measuring point data measuring stores in real time/historical data base, is equipment fault early-warning and monitoring offer analytical data.?
In actual monitoring scene, because monitoring device comes from each producer and has various types of monitoring devices, the equipment monitoring is surveyed
The form of point information is inconsistent.And cannot dynamically intercept the equipment measuring point data of certain time period as requested.Cause
This, the various types of monitoring device that prior art is usually each producer separately designs interface server, and equipment measuring point data is carried out
Process;And will, all of equipment measuring point data all stores in real time/historical data base sequentially in time.But, by institute
Various with interface server quantity and type, lead to development cost higher.And in order to preserve armamentarium measuring point data, cause
Data bulk redundancy, takies memory space.
Content of the invention
For solving the deficiency that prior art exists, the invention discloses a kind of data cut-in method of converting equipment and be
System, the application achieves the consolidation form of the measuring point information of the converting equipment that all types of monitoring devices are monitored to each producer,
Store on demand, improve the efficiency of management, reduce memory space.
For achieving the above object, the concrete scheme of the present invention is as follows:
A kind of data cut-in method of converting equipment, comprises the following steps:
Step one: converting equipment is monitored obtain with the measuring point information of converting equipment by all types of monitoring devices;
Step 2: measuring point information is converted into the data of consolidation form, and sends the data to survey with each converting equipment
The one-to-one message queue of point is stored;
Step 3: by set in advance group of bag rule, reorganize data according to group bag form from message queue, obtain
To target data bag;
Step 4: the target information processing the target data bag obtaining is sent in real time/historical data base and is stored.
The measuring point information of the converting equipment that in described step one, all types of monitoring devices collect is passed by socket interface
Deliver to message queue.
Measuring point information in described step one includes oil dissolved gas information in converting equipment, shelf depreciation information, electric parameters
Information, winding deformation information, temperature information, online infrared imaging information etc..
In described step 2, in socket interface, the measuring point information integration of converting equipment measuring point is become key-value lattice
The data of formula.
In described step 2, the data is activation of consolidation form is given the one-to-one kafka of each converting equipment measuring point and disappears
Breath queue is stored.
Described socket interface obtains the measuring point information of the converting equipment that all types of monitoring devices collect particularly as follows: passing through
Socket interface periodically obtains the measuring point information of the converting equipment that all types of monitoring devices collect.
Described socket interface by one pre-set can dynamic regulation time window periodically obtain all kinds of
The measuring point information of the converting equipment that type monitoring device collects.
In described step 3, according to data set bag rule, the corresponding period data chosen in corresponding message queue is solved
Analysis, obtains the packet of equipment needed thereby, required time section according to group bag form.
Described group of bag form is made up of four partial data splicings: Part I data is data id, unique identification data;The
Two partial datas describe data for measuring point, describe data corresponding equipment measuring point information in this packet;Part III data is
Time segment data, describes the initial time of data and end time information in this packet;Part IV data is equipment measuring point
Data, this measuring point data comes from Part II measuring point and describes measuring point described by data, and comes from the Part III time period
The time period of data defined.
A kind of data insertion system of converting equipment, comprising:
Socket interface, for obtaining the measuring point information of the converting equipment that monitoring device monitors, and described measuring point is believed
Breath is integrated into the data of key-value form;
Message queue, the data for sending to described socket interface stores;
Interface server, for parsing to the data obtaining from described message queue, and according to group bag rule, to institute
State data to package, obtain described target data bag and export;
In real time/historical data base, the target data bag for sending to described interface server stores.
Beneficial effects of the present invention:
The measuring point information of the converting equipment by the monitoring device collection all types of to each producer obtaining for the application is carried out
Encapsulation, is obtained the data of key-value form, and stores that data into be entered in one-to-one message queue with equipment measuring point
Row storage it is ensured that measuring point information complete.Then, by set in advance group of bag rule, according to group bag lattice from message queue
Formula reorganizes data, obtains target data bag, target data bag is sent in real time/history data store.It is achieved thereby that
The uniform format management of the equipment measuring point information of all types of monitoring device monitorings to each producer, and data storage on demand, reduce
Data redundancy.
Brief description
Fig. 1 is a kind of flow chart of the embodiment of present invention converting equipment data cut-in method;
Fig. 2 is a kind of structural representation of the embodiment of present invention converting equipment data insertion system;
Fig. 3 is a kind of group bag form schematic diagram of present invention converting equipment data cut-in method.
Specific embodiment:
The present invention is described in detail below in conjunction with the accompanying drawings:
The embodiment of the invention discloses a kind of data cut-in method of converting equipment and system, all kinds of by obtaining each producer
The converting equipment measuring point measuring point information integration of type monitoring device collection becomes the data of key-value form, and by this data is activation
Give the one-to-one message queue of each equipment measuring point to be stored, thus ensure that the integrity of data.Then, according to data
Group bag rule, the corresponding time segment data chosen in corresponding message queue is parsed, and sets according to organizing needed for bag form obtains
The standby, packet of required time section, the target information that process is obtained is sent in real time/historical data base and is stored, thus
Avoid data redundancy, reduce memory space.
As shown in figure 1, being a kind of flow chart of the embodiment 1 of the data cut-in method of converting equipment of the present invention, the method
May include that
Step 1: obtain the converting equipment measuring point measuring point information that all types of monitoring device of each producer monitors.
Step 2: measuring point measuring point information is converted into the data of key-value form, and sends the data to and respectively set
The standby one-to-one message queue of measuring point is stored.
In the prior art, one-to-one interface server is to the change monitoring with each producer all types of monitoring device
Electric equipment measuring point measuring point information is processed one by one, and the target data after processing is sent in real time/historical data base
Stored.Thus, because the such as reason such as network failure is likely to result in the loss of data in transmission process, thus having influence on prison
Survey the integrity of data.In addition, the measuring point information with regard to monitored equipment usually exists in the form of metadata, occupy
Certain memory space.
In order to solve the above problems, the embodiment of the present invention can be by the change collecting monitoring devices all types of for each producer
The measuring point information of electric equipment changes into the data of key-value form, stores in message queue it is not necessary to enter to this measuring point information
Row is processed one by one, and interface server can obtain desired data from message queue, thus ensureing in real time/historical data base
Integrity to status data storage.Further, since measuring point status data is one-to-one with the message queue that it is stored,
So measuring point information need not be preserved, save memory space.
Preferably, the just mistake with your equipment measuring point measuring point information that all types of monitoring device of each producer of above-mentioned acquisition monitors
Journey, can be periodically obtain by socket interface that all types of monitoring device of each producer monitors just carry your to survey equipment
Point measuring point information.
Specifically, by socket interface often through one pre-setting, can dynamic regulation time window, obtain each
The measuring point information of the converting equipment that type monitoring device collects.
Wherein, in the embodiment of the present invention, message queue can select kafka message queue, its be current storage efficiency
High Distributed Message Queue.
Step 3: according to data set bag rule, the corresponding time segment data chosen in corresponding message queue is parsed, and presses
Obtain the packet of equipment needed thereby, required time section according to group bag form.
Wherein, describe to organize spatial dimension measuring point range information and the time model of bag data in data set bag rule
Enclose time segment information.Because measuring point and message queue are one-to-one it is only necessary to from corresponding message queue, according to
Time range is chosen data and is packaged.
Step 4: the target information that process is obtained is sent in real time/historical data base and is stored.
As shown in Fig. 2 being a kind of structural representation of the embodiment 1 of the data insertion system of converting equipment of the present invention, should
System may include that each producer all types of monitoring devices (in figure monitoring device jc1, monitoring device jc2, monitoring device
jc3... monitoring device jcnThe monitoring device all types of to represent each producer, wherein n be positive integer), socket interface, message team
Row (in figure message queue mq1, message queue mq2, message queue mq3... message queue mqnTo represent all types of with each producer
The one-to-one message queue of monitoring device, wherein n is positive integer) and real-time/historical data base.
Wherein, monitoring device is connected with converting equipment, for detecting the running status of converting equipment, obtains converting equipment
Measuring point information.
Socket interface is connected with monitoring device, for obtaining the measuring point information of the monitored converting equipment of monitoring device, and
This measuring point information integration is become the data output of key-value form.
Message queue, the data for sending over to socket interface stores, thus ensureing the complete of measuring point data
Whole property.
Wherein, this message queue can be kafka message queue.
In real time/historical data base, wraps regular spliced target information by message queue according to group for storage.
As shown in figure 3, being a kind of group bag form schematic diagram of present invention converting equipment data cut-in method, this group bag form
Including: data id, measuring point describe data, time segment data, equipment measuring point data.
Wherein, data id, unique identification data;Measuring point describes data, and the corresponding equipment of data in this packet that describes is surveyed
Point information;Time segment data, describes the initial time of data and end time information in this packet;Equipment measuring point data, by
Measuring point describes in data, with the time period of data description as time interval.
This measuring point data comes solely from measuring point and describes measuring point described by data, and comes solely from time segment data defined
Time period.
Although the above-mentioned accompanying drawing that combines is described to the specific embodiment of the present invention, not model is protected to the present invention
The restriction enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme, and those skilled in the art are not
Need to pay the various modifications that creative work can make or deformation still within protection scope of the present invention.