Disclosure of Invention
In order to solve the problems, the invention provides a method and a system for naming power data of distributed energy measuring points, which ensure consistency, comprehensiveness and availability of index names, reduce communication cost and use cost of each link and improve accuracy.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for naming electric power data of distributed energy measurement points, including:
pre-constructing a protocol configuration set of the electric power parameter attribute and the serial number corresponding relation thereof, and constructing a configuration object according to the measurement point attribute of the pre-configured power station;
analyzing the acquired measuring point power data of the designated power station to obtain a measuring point serial number and a corresponding power parameter value;
traversing the protocol configuration set, and extracting power parameter attributes consistent with the serial numbers of the measuring points;
calling the measuring point attribute of the corresponding power station from the configuration object, and generating a measuring point name according to the measuring point attribute and the electric power parameter attribute;
and naming the measuring point serial number, the electric power parameter value, the electric power parameter attribute and the measuring point name of the measuring point electric power data.
As an alternative embodiment, traversing the protocol configuration set, and matching the serial numbers consistent with the serial numbers of the measuring points in the serial number-power parameter value set of the measuring points; and if the matching is successful, extracting the data item of the serial number-power parameter attribute consistent with the serial number of the measuring point to obtain the data item of the serial number-power parameter value-power parameter attribute of the measuring point.
Alternatively, if there is an unmatched data item of the sequence number-power parameter value of the measuring point in the sequence number-power parameter value set of the measuring point, the data item is supplemented into the protocol configuration set.
As an alternative implementation manner, the invoked measurement point attribute and the power parameter attribute are translated according to a preset rule to generate a measurement point name.
As an alternative embodiment, the named names of the measurement point power data are constructed as a measurement point serial number-power parameter value-power parameter attribute-measurement point name set, and after each collected measurement point power data is named, the named names are checked and re-checked in the measurement point serial number-power parameter value-power parameter attribute-measurement point name set.
As an alternative implementation mode, if repetition exists, adding 1 after naming the currently acquired measuring point power data, re-checking again, and circulating the step until no repetition name exists;
and if the power data is not repeated, storing the name of the currently acquired power data of the measuring point into a set of serial number of the measuring point, power parameter value, power parameter attribute and name of the measuring point.
As an alternative implementation manner, a protocol configuration set is constructed according to the required power parameter attribute and the corresponding serial number; and constructing a configuration object according to the required measurement point attributes and the attribute ordering.
In a second aspect, the present invention provides a distributed energy measurement point power data naming system, comprising:
the preprocessing module is configured to pre-construct a protocol configuration set of the electric power parameter attribute and the serial number corresponding relation thereof, and construct a configuration object according to the measurement point attribute of the pre-configured power station;
the analysis module is configured to obtain a measuring point serial number and a corresponding power parameter value after analyzing the acquired measuring point power data of the designated power station;
the power parameter attribute determining module is configured to traverse the protocol configuration set and extract power parameter attributes consistent with the measuring point serial numbers;
the measuring point name generation module is configured to call the measuring point attribute of the corresponding power station from the configuration object and generate a measuring point name according to the measuring point attribute and the electric power parameter attribute;
and the naming module is configured to name the measuring point serial number, the power parameter value, the power parameter attribute and the measuring point name of the measuring point power data.
In a third aspect, the invention provides an electronic device comprising a memory and a processor and computer instructions stored on the memory and running on the processor, which when executed by the processor, perform the method of the first aspect.
In a fourth aspect, the present invention provides a computer readable storage medium storing computer instructions which, when executed by a processor, perform the method of the first aspect.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a distributed energy measuring point power data naming method and system, which are used for intelligently and normally configuring measuring point index naming on the premise of not increasing measuring point naming working intensity, ensuring the comprehensiveness and consistency of index names and the accessibility according to rules in the whole life cycle of data acquisition, transmission, storage, reading, processing and display, reducing the communication cost and the use cost of each link and improving the accuracy.
The invention provides a method and a system for naming electric power data of distributed energy measuring points, which are used for designing unified and standardized naming rules for multi-party construction manufacturers, realizing uniformity and comprehensiveness in standardized naming, improving information response timeliness and being capable of rapidly and accurately positioning the measuring points.
Additional aspects of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
The invention is further described below with reference to the drawings and examples.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular forms also are intended to include the plural forms, and furthermore, it is to be understood that the terms "comprises" and "comprising" and any variations thereof are intended to cover non-exclusive inclusions, such as, for example, processes, methods, systems, products or devices that comprise a series of steps or units, are not necessarily limited to those steps or units that are expressly listed, but may include other steps or units that are not expressly listed or inherent to such processes, methods, products or devices.
Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
Example 1
The embodiment provides a method for naming electric power data of distributed energy measuring points, as shown in fig. 1, including:
pre-constructing a protocol configuration set of the electric power parameter attribute and the serial number corresponding relation thereof, and constructing a configuration object according to the measurement point attribute of the pre-configured power station;
analyzing the acquired measuring point power data of the designated power station to obtain a measuring point serial number and a corresponding power parameter value;
traversing the protocol configuration set, and extracting power parameter attributes consistent with the serial numbers of the measuring points;
calling the measuring point attribute of the corresponding power station from the configuration object, and generating a measuring point name according to the measuring point attribute and the electric power parameter attribute;
and naming the measuring point serial number, the electric power parameter value, the electric power parameter attribute and the measuring point name of the measuring point electric power data.
In this embodiment, according to a set collection period, power data of distributed energy measurement points in the power system is collected, including active power, reactive power, apparent power, three-phase voltage, three-phase current, and the like.
Analyzing the acquired measuring point power data to obtain a measuring point serial number and a corresponding power parameter value; however, if the serial number is directly used as the identifier of the distributed energy measurement point data, for multiparty construction manufacturers, there is no consensus naming rule, and the measurement points cannot be quickly and accurately positioned. The measurement point power data is named in a unified specification.
In this embodiment, a protocol configuration set F1 of the electric power parameter attribute and the serial number correspondence relation thereof is pre-constructed, that is, constructed according to the required electric power parameter attribute and the serial number corresponding thereto;
for example, as shown in fig. 2, the sequence number: 01 02 03 00xx, attribute: a phase voltage, etc.
In this embodiment, the station-oriented configuration of the station attributes is performed, and a configuration object of the station is constructed, that is, the required station attributes are determined, and the ordering of the station attributes is determined.
For example, as shown in fig. 3, the station attributes include station name, station type, fan serial number, fan manufacturer, future number, station type, etc.; if the type of the power station is a wind field, the serial number of the fan is 001, and the like.
In this embodiment, after the early work is ready, the obtained measurement point power data of a certain power station is analyzed to obtain a measurement point serial number and a corresponding power parameter value, so as to construct a measurement point serial number-power parameter value set L1;
traversing a protocol configuration set F1, wherein the protocol configuration set F1 is a sequence number-power parameter attribute set L3;
traversing the sequence number-power parameter attribute set L3, and matching the sequence number consistent with the measuring point sequence number in the measuring point sequence number-power parameter value set L1;
if the matching is successful, extracting serial number-power parameter attribute data items consistent with the measuring point serial number in the measuring point serial number-power parameter value set L1, so as to construct a measuring point serial number-power parameter value-power parameter attribute set O2;
if the measurement point serial number-power parameter value data item O1 which is not successfully matched exists in the measurement point serial number-power parameter value set L1, namely the measurement point serial number is not in the protocol configuration set F1, supplementing the measurement point serial number into the protocol configuration set F1 to expand the protocol configuration set F1; then, successfully constructing a measuring point serial number-power parameter value-power parameter attribute set O2;
calling the configured measuring point attribute C1 of the power station from the configuration object;
generating a measuring point name by the called measuring point attribute C1 and the electric power parameter attribute in the set O2;
as an alternative implementation manner, the called measuring point attribute C1 and the electric power parameter attribute in the set O2 are translated into the pinyin capital letters, and the attributes are connected by underlines to generate the measuring point name;
it can be appreciated that the rule of generating the measuring point name is not limited to the Chinese pinyin capital letters, underlines, etc.; if the characters are unified, the characters are not limited herein, and the characters can be used in small letters, case-and-case combinations and other characters.
So far, the naming of the measuring point power data is completed, and the naming is named as measuring point serial number-power parameter value-power parameter attribute-measuring point name.
In this embodiment, the named name of the acquired power data of the plurality of measuring points is constructed as a set L2 of measuring point serial number-power parameter value-power parameter attribute-measuring point name;
naming the power data of each collected measuring point, and then searching the named name in a set L2;
if the current power data is repeated, adding 1 after naming the current power data of the acquired measuring points, re-checking again, and circulating the step until no repeated names exist;
and if the power data is not repeated, storing the name of the currently acquired power data of the measuring point into a set L2.
In the embodiment, unified and standardized naming rules are designed for multiple building manufacturers, so that unified and comprehensive naming is realized, information response timeliness is improved, and measuring points can be rapidly and accurately positioned.
Example 2
The embodiment provides a distributed energy measurement point power data naming system, which comprises:
the preprocessing module is configured to pre-construct a protocol configuration set of the electric power parameter attribute and the serial number corresponding relation thereof, and construct a configuration object according to the measurement point attribute of the pre-configured power station;
the analysis module is configured to obtain a measuring point serial number and a corresponding power parameter value after analyzing the acquired measuring point power data of the designated power station;
the power parameter attribute determining module is configured to traverse the protocol configuration set and extract power parameter attributes consistent with the measuring point serial numbers;
the measuring point name generation module is configured to call the measuring point attribute of the corresponding power station from the configuration object and generate a measuring point name according to the measuring point attribute and the electric power parameter attribute;
and the naming module is configured to name the measuring point serial number, the power parameter value, the power parameter attribute and the measuring point name of the measuring point power data.
It should be noted that the above modules correspond to the steps described in embodiment 1, and the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in embodiment 1. It should be noted that the modules described above may be implemented as part of a system in a computer system, such as a set of computer-executable instructions.
In further embodiments, there is also provided:
an electronic device comprising a memory and a processor and computer instructions stored on the memory and running on the processor, which when executed by the processor, perform the method described in embodiment 1. For brevity, the description is omitted here.
It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include read only memory and random access memory and provide instructions and data to the processor, and a portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type.
A computer readable storage medium storing computer instructions which, when executed by a processor, perform the method described in embodiment 1.
The method in embodiment 1 may be directly embodied as a hardware processor executing or executed with a combination of hardware and software modules in the processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method. To avoid repetition, a detailed description is not provided herein.
Those of ordinary skill in the art will appreciate that the elements of the various examples described in connection with the present embodiments, i.e., the algorithm steps, can be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
While the foregoing description of the embodiments of the present invention has been presented in conjunction with the drawings, it should be understood that it is not intended to limit the scope of the invention, but rather, it is intended to cover all modifications or variations within the scope of the invention as defined by the claims of the present invention.