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, be specifically related to a kind of data cut-in method and system of converting equipment.
Background technology
At present, in order to ensure power grid security, stable, Effec-tive Function, usually can carry out converting equipment status monitoring, and the equipment measuring point data monitored is stored in real time/historical data base, for equipment fault early-warning and monitoring provide analysis data.In actual monitoring scene, come from each producer and have various types of monitoring equipment due to monitoring equipment, the form of the equipment measuring point information monitored is inconsistent.And the equipment measuring point data of section sometime cannot be intercepted as requested dynamically.Therefore, prior art is generally the various types of monitoring equipment design interface server respectively of each producer, processes equipment measuring point data; And will, all equipment measuring point datas are all stored in real time/historical data base according to time sequencing.But, due to used interface number of servers and type various, cause cost of development higher.And in order to preserve armamentarium measuring point data, causing data bulk redundancy, taking storage space.
Summary of the invention
For solving the deficiency that prior art exists, the invention discloses a kind of data cut-in method and system of converting equipment, the application achieves the consolidation form of the measuring point information to the converting equipment that all types of monitoring equipment of each producer monitors, store as required, improve the efficiency of management, reduce storage space.
For achieving the above object, concrete scheme of the present invention is as follows:
A data cut-in method for converting equipment, comprises the following steps:
Step one: carry out monitoring the measuring point information obtaining converting equipment to converting equipment by all types of monitoring equipment;
Step 2: data measuring point information being converted to consolidation form, and these data are sent to each converting equipment measuring point one to one message queue store;
Step 3: by the group bag rule preset, reorganize data according to group packet format from message queue, obtain target data bag;
Step 4: send in real time/historical data base to store the target information processing the target data bag obtained.
The measuring point information of the converting equipment that in described step one, all types of monitoring equipment collects is sent to message queue by Socket interface.
Measuring point information in described step one comprises oil dissolved gas information in converting equipment, shelf depreciation information, electric quantity information, winding deformation information, temperature information, online infrared imaging information etc.
In described step 2, the measuring point information integration of converting equipment measuring point is become the data of key-value form in Socket interface.
In described step 2, the data of consolidation form are sent to each converting equipment measuring point one to one Kafka message queue store.
The measuring point information that described Socket interface obtains the converting equipment that all types of monitoring equipment collects is specially: the measuring point information periodically being obtained the converting equipment that all types of monitoring equipment collects by Socket interface.
Described Socket interface periodically obtains the measuring point information of the converting equipment that all types of monitoring equipment collects by the time window that a dynamic pre-set regulates.
In described step 3, according to data group bag rule, the corresponding period data chosen in corresponding message queue is resolved, and obtains the packet of equipment needed thereby, required time section according to group packet format.
Described group of packet format is spliced by four partial datas and forms: Part I data are data id, unique identification data; Part II data are measuring point data of description, describe the equipment measuring point information that data in this packet are corresponding; Part III data are time period data, describe initial time and the end time information of data in this packet; Part IV data are equipment measuring point data, and this measuring point data comes from the measuring point described by Part II measuring point data of description, and comes from the time period of Part III time period data defined.
A data insertion system for converting equipment, comprising:
Socket interface, for obtaining the measuring point information of the converting equipment that monitoring equipment monitors, and becomes the data of key-value form by described measuring point information integration;
Message queue, stores for the data sent described Socket interface;
Interface server, for resolving the data obtained from described message queue, and according to group bag rule, packages to described data, obtains described target data bag and export;
In real time/historical data base, stores for the target data bag sent described interface server.
Beneficial effect of the present invention:
The application is encapsulated by the measuring point information of the converting equipment to all types of monitoring equipment collection of each producer obtained, obtain the data of key-value form, and these data are stored into equipment measuring point one to one message queue in store, ensure the complete of measuring point information.Then, by the group bag rule preset, from message queue, reorganize data according to group packet format, obtain target data bag, target data bag is sent in real time/history data store.Thus achieve the uniform format management of the equipment measuring point information to all types of monitoring equipment monitoring of each producer, and store data on demand, reduce data redundancy.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the embodiment of a kind of converting equipment data cut-in method of the present invention;
Fig. 2 is the structural representation of the embodiment of a kind of converting equipment data insertion system of the present invention;
Fig. 3 is the group packet format schematic diagram of a kind of converting equipment data cut-in method of the present invention.
Embodiment:
Below in conjunction with accompanying drawing, the present invention is described in detail:
The embodiment of the invention discloses a kind of data cut-in method and system of converting equipment, the data of key-value form are become by the converting equipment measuring point measuring point information integration obtaining all types of monitoring equipment collection of each producer, and these data are sent to each equipment measuring point one to one message queue store, thus ensure that the integrality of data.Then, according to data group bag rule, the corresponding time period data chosen in corresponding message queue are resolved, and the packet of equipment needed thereby, required time section is obtained according to group packet format, in real time/historical data base is sent to store by processing the target information obtained, thus avoid data redundancy, reduce storage space.
As shown in Figure 1, be the process flow diagram of the embodiment 1 of the data cut-in method of a kind of converting equipment of the present invention, the method can comprise:
Step 1: obtain the converting equipment measuring point measuring point information that all types of monitoring equipment of each producer monitors.
Step 2: data measuring point measuring point information being converted to key-value form, and these data are sent to each equipment measuring point one to one message queue store.
In the prior art, with each producer all types of monitoring equipment one to one interface server be that the converting equipment measuring point measuring point information monitored is processed one by one, and send in real time/historical data base to store the target data after process.Thus, because the such as reason such as network failure may cause the loss of data in process of transmitting, thus the integrality of Monitoring Data is had influence on.In addition, the measuring point information about monitored equipment generally exists in the form of metadata, occupies certain storage space.
In order to solve the problem, the embodiment of the present invention changes into the data of key-value form by the measuring point information of the converting equipment collected by monitoring equipments all types of for each producer, be stored in message queue, do not need to process one by one this measuring point information, interface server can obtain desired data from message queue, thus ensures the integrality that in real time/historical data base stores status data.In addition, because measuring point status data and its message queue stored are one to one, so without the need to preserving measuring point information, save storage space.
Preferably, the process just with your equipment measuring point measuring point information that all types of monitoring equipment of each producer of above-mentioned acquisition monitors, can be periodically obtain that all types of monitoring equipment of each producer monitors by Socket interface be just with your equipment measuring point measuring point information.
Concrete, by Socket interface often through the time window that pre-set a, dynamic regulates, obtain the measuring point information of the converting equipment that all types of monitoring equipment collects.
Wherein, in the embodiment of the present invention, message queue can select Kafka message queue, and it is the Distributed Message Queue that current storage efficiency is the highest.
Step 3: according to data group bag rule, the corresponding time period data chosen in corresponding message queue are resolved, obtains the packet of equipment needed thereby, required time section according to group packet format.
Wherein, spatial dimension---measuring point range information and time range---the time period information of group bag data is described in data group bag rule.Because measuring point and message queue are one to one, only need from corresponding message queue, choose data according to time range and package.
Step 4: send in real time/historical data base to store by processing the target information obtained.
As shown in Figure 2, be the structural representation of the embodiment 1 of the data insertion system of a kind of converting equipment of the present invention, this system can comprise: all types of monitoring equipment of each producer (uses monitoring equipment JC in figure
1, monitoring equipment JC
2, monitoring equipment JC
3monitoring equipment JC
nrepresent the monitoring equipment that each producer is all types of, wherein n is positive integer), Socket interface, message queue (use message queue MQ in figure
1, message queue MQ
2, message queue MQ
3message queue MQ
nrepresent the monitoring equipment one to one message queue all types of with each producer, wherein n is positive integer) and in real time/historical data base.
Wherein, monitoring equipment is connected with converting equipment, for detecting the running status of converting equipment, obtains the measuring point information of converting equipment.
Socket interface is connected with monitoring equipment, for obtain monitoring equipment monitor the measuring point information of converting equipment, and become by this measuring point information integration the data of key-value form to export.
Message queue, stores for the data sended over Socket interface, thus ensures the integrality of measuring point data.
Wherein, this message queue can be Kafka message queue.
In real time/historical data base, for storing by message queue according to the regular spliced target information of group bag.
As shown in Figure 3, be the group packet format schematic diagram of a kind of converting equipment data cut-in method of the present invention, this group packet format comprises: data id, measuring point data of description, time period data, equipment measuring point data.
Wherein, data id, unique identification data; Measuring point data of description, describes the equipment measuring point information that data in this packet are corresponding; Time period data, describe initial time and the end time information of data in this packet; Equipment measuring point data, by measuring point data of description, the time period described with data is the time interval.
This measuring point data only comes from the measuring point described by measuring point data of description, and only comes from the time period of time period data defined.
By reference to the accompanying drawings the specific embodiment of the present invention is described although above-mentioned; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various amendment or distortion that creative work can make still within protection scope of the present invention.