A method for batch generating power monitoring graphics
By verifying and correcting the power monitoring primitive set, establishing the source business tree, calculating mapping parameters, and generating primitive copies of the target location, the problem of primitive files not being able to be reused in batches in the existing technology is solved, thus improving work efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHENGDU SHENRUITONGHUA TECH CO LTD
- Filing Date
- 2026-01-30
- Publication Date
- 2026-05-05
AI Technical Summary
Existing technologies cannot effectively handle the batch reuse of existing power monitoring meta-files, resulting in a large workload and a high risk of errors.
By verifying and correcting the data correctness of the primitive set, a source business tree is established, and a target business tree is constructed based on the power monitoring database. Mapping parameters are calculated, and primitive copies are generated at the target location to achieve batch reuse of primitives.
It enables accurate batch reuse of existing primitive files, reduces errors, and improves work efficiency.
Smart Images

Figure CN121643225B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system monitoring technology, and more specifically, to a method for batch generation of power monitoring elements. Background Technology
[0002] Currently, power grids and power systems are gradually developing towards intelligent management and monitoring, and power monitoring systems need to deal with a large number of devices and data. Among them, monitoring graphics, as an important human-machine interface, require accurate association of graphic elements with backend substations, terminals, equipment, and specific telemetry and telecontrol data points.
[0003] In existing technologies, the generation and maintenance of monitoring graphics mainly involve the following methods: First, manual drawing. For a large number of monitoring intervals with similar structures but different physical locations or equipment serial numbers, staff need to repeatedly draw graphics and bind data one by one. This method is inefficient, labor-intensive, and prone to errors. Second, automated methods are used for graphic element generation. These automated methods include template-driven graphic file generation, batch graphic generation and scripting, and automated graphic generation and data binding. Template-driven graphic file generation mainly uses pre-designed graphic templates to automatically fill in data and generate graphic files based on the characteristics of different power data. Batch graphic generation and scripting mainly involves writing scripts to automatically generate corresponding files based on power data. Automated graphic generation and data binding mainly utilizes technologies such as SVG, Canvas, and graphics libraries to quickly generate static or dynamic graphic files in the power monitoring system and bind the power system data with the graphic files to generate relevant graphics. Automated graphic element generation methods improve the efficiency of manual drawing.
[0004] However, the methods for automatically generating primitives still have the following problems: they all generate new primitive files based on data or image templates, and cannot handle the need for batch reuse of existing primitive files. In addition, the copy and paste function provided by simple graphic editing software can only copy the appearance of primitives, while the underlying data association of primitives still needs to be manually reconfigured, which cannot realize the migration of business logic and increases the workload to a certain extent. Summary of the Invention
[0005] The purpose of this application is to provide a method for batch generation of power monitoring elements, which solves the technical problems existing in the prior art, such as the inability to handle the need for batch reuse of existing element files and the large workload.
[0006] To solve the above-mentioned technical problems, the solution adopted in this application is as follows:
[0007] A method for batch generation of power monitoring elements, characterized by comprising the following steps:
[0008] S1: The user selects a primitive set, verifies the correctness of the data associated with each source primitive in the primitive set, and generates a data verification list; the user corrects the erroneous data according to the data verification list, and obtains the primitive set to be copied;
[0009] S2: Construct the source business tree based on the set of primitives to be copied;
[0010] S3: Read all data from the database and build the target business tree;
[0011] S4: Compare the source business tree and the target business tree, and calculate the mapping parameters;
[0012] S5: Based on the mapping parameters, perform target location addressing in the target business tree and generate a copy of the source primitive at the target location.
[0013] Preferably, the specific implementation method of S1 includes the following steps:
[0014] S11: Read the data points associated with the selected graphic element, and compare and verify each data point with the background database to generate a data verification list including the data verification results.
[0015] S12: The user corrects the abnormal data points associated with the graphic elements based on the data verification results displayed in the data verification list; after correction, S11 is executed again to compare and verify the data points. If there are no abnormal data points, proceed to S2; if there are still abnormal data points, execute S12.
[0016] Preferably, step S2 includes the following steps:
[0017] S21: Perform data parsing on the verified data points associated with each element in the primitive set to be copied, and extract the data type and data ownership chain information of the data points;
[0018] S22: Based on the extracted data ownership chain information, initiate a query to the database to obtain the sequential position index of each entity in its direct parent context, i.e., the natural sequence number;
[0019] S23: Construct the source business tree using the data ownership chain information and the natural sequence number obtained from the query.
[0020] Preferably, step S3 includes the following steps:
[0021] S31: Read all target data information required to construct the target business tree from the database;
[0022] S32: Classify and reorganize the target data information read according to the power system business organization rules at multiple levels;
[0023] S33: Construct a target business tree using the target data information that has been classified and sorted.
[0024] Preferably, the power system business organization rules in S32 are as follows:
[0025] S321: Classify all devices according to their type attributes, and sort all devices in the same category by device number;
[0026] The devices are arranged according to their serial numbers within their respective terminals.
[0027] S322: Based on the dominant type of the equipment contained in each plant, identify the plant type as the dominant type, and group all plants according to the dominant type of the equipment they contain; within the same type of plant group, each plant is arranged according to the sequence number of the first-ranked equipment after the arrangement in step S321.
[0028] S323: For all data points under each device, group them according to their data type; and within the same data type group, sort them according to their data point number under that device.
[0029] Preferably, step S4 includes the following steps:
[0030] S41: Compare and analyze the source business tree and the target business tree. Select a data point in the source business tree as a reference node, obtain the data type of the data point and its sequence number path at each level in the source business tree, and perform a search and matching in the target business tree based on the data type and the sequence number path at each level.
[0031] S42: Calculate the mapping parameters between the sequence paths of each level of the baseline node and the ordered sequence of target nodes;
[0032] Specifically, the ordered sequence of target nodes includes the path of multiple target nodes at each level in the target business tree; the mapping parameters include the offset and the incremental step size of the plant / station.
[0033] S43: The user adjusts the calculated mapping parameters to obtain the final mapping configuration for primitive reuse.
[0034] Preferably, step S42 includes the following steps:
[0035] S421: Compare the sequence path of the reference node at each level with the sequence path of multiple target nodes in the target business tree in the ordered target node sequence, and calculate the offset between the sequence path of the reference node at each level and the sequence path of multiple target nodes in the target business tree.
[0036] Offsets include device serial number offsets, data point serial number offsets, etc.
[0037] S422: Identify the plant / station in the target business tree to which each target node belongs in the ordered target node sequence, and obtain an ordered list of plants / stations of the same type as the base node according to the predefined organization rules in the target business tree.
[0038] S423: Select a plant as the initial mapping starting point, calculate the change in plant number required to move from that plant to the next plant in the plant list, and then the change in plant number is the plant increment step size.
[0039] Preferably, step S5 includes the following steps:
[0040] S51: Based on the incremental step size of the plant and the initial mapping starting point in the mapping configuration, locate the target plant corresponding to the primitive copy;
[0041] S52: Based on the target plant, locate the specific target equipment for each graphic element copy according to the equipment serial number offset;
[0042] S53: Under the already located target equipment and target plant, locate the target data point number based on the data point number offset;
[0043] S54: Generate a source primitive copy for each target data point and bind the unique identifier of the target data point, i.e., the target data point sequence number, to the source primitive copy.
[0044] Preferably, the data types include telemetry data, remote signaling data, electricity data, etc.; the data attribution chain information includes the equipment information, terminal information, and plant information to which the data point belongs;
[0045] The natural serial number includes the data point serial number of the data point in the same type of data set of the data point to which it belongs, the device serial number of the device under its terminal, the terminal serial number of the terminal under its plant, and the plant serial number of each plant.
[0046] The source service tree takes the plant and its serial number as the root node, the terminals under the plant and their serial numbers as the first-level branch nodes, the equipment under the terminals and their serial numbers as the second-level branch nodes, and the image data points and their data point serial numbers under the equipment as the leaf nodes. Each node includes its data type.
[0047] The technical solution of this application has at least the following advantages and beneficial effects:
[0048] 1. This invention verifies and corrects the correctness of data before copying the selected power monitoring primitive set. It then establishes a source service tree based on the accurate primitive set and constructs a target service tree based on data from the power monitoring database. The mapping parameters between the source and target service trees are calculated, and addressing calculations are performed in the target service tree based on these parameters to obtain the target location. Selected primitive copies are generated at the target location, and the target data point sequence number at the target location is associated with the generated primitive copy. This solves the technical problems of being unable to batch reuse existing primitive files and the large workload. Furthermore, the correctness verification and correction before primitive reuse ensures that the reused primitives and their associated data are accurate, avoiding a large number of errors caused by large-scale reuse based on errors. Attached Figure Description
[0049] Figure 1 This is a flowchart of the present invention. Detailed Implementation
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] It should be noted that similar reference numerals and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. The terms "center," "upper," "lower," "inner," and "outer," indicating orientation or positional relationships based on the orientation or positional relationships shown in the figures, or the orientation or positional relationships commonly used when the product is in use, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed or operated in a specific orientation, and therefore should not be construed as a limitation on this application. It should also be noted that, unless otherwise explicitly specified and limited, the terms "set," "install," and "connect" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; and internal communication between two elements. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0052] This invention discloses a method for batch generation of power monitoring elements, see [link to relevant documentation]. Figure 1 , Figure 1This is a flowchart of a method for batch generation of power monitoring elements disclosed in this invention. Before copying a selected power monitoring element set, data correctness verification and correction are performed. A source service tree is established based on the accurate element set, and a target service tree is constructed based on data from the power monitoring database. Mapping parameters between the source and target service trees are calculated. Based on these mapping parameters, addressing calculations are performed in the target service tree to obtain the target location. Selected element copies are then generated at the target location. This method solves the technical problems of being unable to batch reuse existing element files and the large workload. Furthermore, the correctness verification and correction before element reuse ensures that the reused elements and their associated data are accurate, avoiding numerous errors caused by large-scale reuse based on errors. The implementation method includes the following steps:
[0053] S1: The user selects a primitive set, verifies the correctness of the data associated with each source primitive in the primitive set, and generates a data verification list; the user corrects the erroneous data according to the data verification list, and obtains the primitive set to be copied;
[0054] S2: Construct the source business tree based on the set of primitives to be copied;
[0055] S3: Read all data from the database and build the target business tree;
[0056] S4: Compare the source business tree and the target business tree, and calculate the mapping parameters;
[0057] S5: Based on the mapping parameters, perform target location addressing in the target business tree and generate a copy of the source primitive at the target location.
[0058] In some embodiments, the specific implementation method of S1 includes the following steps:
[0059] S11: Read the data points associated with the selected graphic element, and compare and verify each data point with the background database to generate a data verification list including the data verification results.
[0060] S12: The user corrects the abnormal data points associated with the graphic elements based on the data verification results displayed in the data verification list; after correction, S11 is executed again to compare and verify the data points. If there are no abnormal data points, proceed to S2; if there are still abnormal data points, execute S12.
[0061] Specifically, abnormal situations involving data points include errors in associated data points and misidentification of associated data points; operations to correct data points associated with graphic elements include supplementing missing data points and correcting erroneous data points.
[0062] In some embodiments, the specific implementation method for constructing the source service tree based on the set of primitives to be copied in S2 includes the following steps:
[0063] S21: Perform data parsing on the verified data points associated with each element in the primitive set to be copied, and extract the data type and data ownership chain information of the data points;
[0064] S22: Based on the extracted data ownership chain information, initiate a query to the database to obtain the sequential position index of each entity in its direct parent context, i.e., the natural sequence number;
[0065] S23: Construct the source business tree using the data ownership chain information and the natural sequence number obtained from the query.
[0066] Furthermore, the data types include telemetry data, remote signaling data, and electricity consumption data; the data attribution chain information includes the equipment information, terminal information, and plant information to which the data point belongs.
[0067] The natural serial number includes the data point serial number of the data point in the same type of data set of its own device, the device serial number of the device under its own terminal, the terminal serial number of the terminal under the plant station, and the plant station serial number of each plant station;
[0068] The source business tree takes the plant and its serial number as the root node, the terminals under the plant and their serial numbers as the first-level branch nodes, the equipment under the terminals and their serial numbers as the second-level branch nodes, and the image data points and their data point serial numbers under the equipment as the leaf nodes. Each node includes its data type.
[0069] In some embodiments, the specific implementation method for reading all data in the database and establishing the target business tree in S3 includes the following steps:
[0070] S31: Read all target data information required to construct the target business tree from the database;
[0071] S32: Classify and reorganize the target data information read according to the power system business organization rules at multiple levels;
[0072] S33: Construct a target business tree using the target data information that has been classified and sorted.
[0073] Specifically, the target data information includes the type attributes and identification information of all substations, terminals, equipment, and data points in the power monitoring system. Identification information is used to determine the corresponding substation, terminal, equipment, or data point; type attributes characterize the classification of substations, terminals, equipment, or data points within the power monitoring business. For example, substation type attributes include PCS-dominated substations, BMS-dominated substations, etc.; equipment type attributes include PCS, BMS, monitoring devices, etc. Another example is the substation identification information "Station_ID:Z001"; equipment identification information includes "PCS No. 1". When constructing the target business tree, identification information is used to establish the attribution and association information between nodes in the target business tree. For example, through the equipment identification information, it can be determined that it belongs to a certain terminal; through the data point identification information, it can be found that it belongs to a certain equipment.
[0074] In some embodiments, the power system business organization rules in S32 are specifically as follows:
[0075] S321: Classify all devices according to their type attributes, and sort all devices in the same category by device number;
[0076] The devices are arranged according to their serial numbers within their respective terminals.
[0077] S322: Based on the dominant type of the equipment contained in each plant, identify the plant type as the dominant type, and group all plants according to the dominant type of the equipment they contain; within the same type of plant group, each plant is arranged according to the sequence number of the first-ranked equipment after the arrangement in step S321.
[0078] S323: For all data points under each device, group them according to their data type; and within the same data type group, sort them according to their data point number under that device.
[0079] The following explanation uses step S321 as an example:
[0080] The PCS device group includes device X, device M, and device N; the BMS device group includes device Y and device Z. Device X has a device number of 3 under terminal A, device M has a device number of 1 under terminal B, device N has a device number of 5 under terminal B, device Y has a device number of 1 under terminal A, and device Z has a device number of 2 under terminal C. Therefore, the PCS device group sorting result is device M(1)-device X(3)-device N(5); the BMS device group sorting result is device Y(1)-device Z(2).
[0081] It should be noted that the constructed target business tree takes the plant and its type as the root node, the terminals under the plant and their serial numbers as the first-level branch nodes, the devices under the terminals and their serial numbers as the second-level branch nodes, and the image data points under the devices and their data point serial numbers as the leaf nodes. Each node includes its data type.
[0082] In some embodiments, S4 compares the source service tree and the target service tree and calculates the mapping parameters. The specific implementation includes the following steps:
[0083] S41: Compare and analyze the source business tree and the target business tree. Select a data point in the source business tree as a reference node, obtain the data type of the data point and its sequence number path at each level in the source business tree, and perform a search and matching in the target business tree based on the data type and the sequence number path at each level.
[0084] Specifically, the search and matching process involves locating all target nodes in the target business tree that are completely consistent with the data type of the baseline node, and organizing these target nodes into an ordered sequence of target nodes according to the predefined organization rules in the target business tree.
[0085] S42: Calculate the mapping parameters between the sequence paths of each level of the baseline node and the ordered sequence of target nodes;
[0086] Specifically, the ordered sequence of target nodes includes the path of multiple target nodes at each level in the target business tree; the mapping parameters include the offset and the incremental step size of the plant / station.
[0087] S43: The user adjusts the calculated mapping parameters to obtain the final mapping configuration for primitive reuse.
[0088] In some embodiments, the mapping parameters between the sequence paths of the base node at each level and the ordered sequence of target nodes in S42 are calculated, and the specific implementation steps include:
[0089] S421: Compare the sequence path of the reference node at each level with the sequence path of multiple target nodes in the target business tree in the ordered target node sequence, and calculate the offset between the sequence path of the reference node at each level and the sequence path of multiple target nodes in the target business tree.
[0090] Offsets include device serial number offsets, data point serial number offsets, etc.
[0091] S422: Identify the plant / station in the target business tree to which each target node belongs in the ordered target node sequence, and obtain an ordered list of plants / stations of the same type as the base node according to the predefined organization rules in the target business tree.
[0092] S423: Select a plant as the initial mapping starting point, calculate the change in plant number required to move from that plant to the next plant in the plant list, and then the change in plant number is the plant increment step size;
[0093] In some embodiments, in step S5, target location addressing is performed in the target service tree according to the mapping parameters, and a copy of the source primitive is generated at the target location. The specific implementation steps are as follows:
[0094] S51: Based on the incremental step size of the plant and the initial mapping starting point in the mapping configuration, locate the target plant corresponding to the primitive copy;
[0095] S52: Based on the target plant, locate the specific target equipment for each graphic element copy according to the equipment serial number offset;
[0096] S53: Under the already located target equipment and target plant, locate the target data point number based on the data point number offset;
[0097] S54: Generate a source primitive copy for each target data point and bind the unique identifier of the target data point, i.e., the target data point sequence number, to the source primitive copy.
[0098] The various embodiments of the present invention have now been described in detail. To avoid obscuring the concept of the invention, some details known in the art have not been described. Those skilled in the art will fully understand how to implement the technical solutions of this invention based on the above description, and the scope of the invention is defined by the appended claims.
Claims
1. A method for batch generation of power monitoring graphic elements, characterized in that, Includes the following steps: S1: The user selects a set of primitives, verifies the correctness of the data associated with each source primitive in the set, and generates a data verification list; Users correct erroneous data based on the data validation list to obtain the set of primitives to be copied; S2: Construct the source business tree based on the set of primitives to be copied, specifically: S21: Perform data parsing on the verified data points associated with each element in the primitive set to be copied, and extract the data type and data ownership chain information of the data points; S22: Based on the extracted data ownership chain information, initiate a query to the database to obtain the sequential position index of each entity in its direct parent context, i.e., the natural sequence number; S23: Construct the source business tree using the data ownership chain information and the natural sequence number obtained from the query; S3: Read all data from the database and build the target business tree, specifically: S31: Read all target data information required to construct the target business tree from the database; S32: Classify and reorganize the target data information read according to the power system business organization rules at multiple levels; S33: Construct a target business tree using the target data information that has been classified and sorted. S4: Compare the source business tree and the target business tree, and calculate the mapping parameters, specifically: S41: Compare and analyze the source business tree and the target business tree. Select a data point in the source business tree as a reference node, obtain the data type of the data point and its sequence number path at each level in the source business tree, and perform a search and matching in the target business tree based on the data type and the sequence number path at each level. S42: Calculate the mapping parameters between the sequence paths of each level of the baseline node and the ordered sequence of target nodes; The ordered sequence of target nodes includes the path of multiple target nodes at each level in the target business tree; the mapping parameters include the offset and the incremental step size of the plant / station. S43: The user adjusts the calculated mapping parameters to obtain the final mapping configuration for primitive reuse; S5: Based on the mapping parameters, perform target location addressing in the target business tree and generate a copy of the source primitive at the target location.
2. The method for batch generation of power monitoring graphic elements according to claim 1, characterized in that, The specific implementation method of S1 includes the following steps: S11: Read the data points associated with the selected graphic element, and compare and verify each data point with the background database to generate a data verification list including the data verification results. S12: The user corrects the abnormal data points associated with the graphic elements based on the data verification results displayed in the data verification list; after correction, S11 is executed again to compare and verify the data points. If there are no abnormal data points, proceed to S2; if there are still abnormal data points, execute S12.
3. The method for batch generation of power monitoring graphic elements according to claim 1, characterized in that, The specific power system business organization rules in S32 are as follows: S321: Classify all devices according to their type attributes, and sort all devices in the same category by device number; The devices are arranged according to their serial numbers within their respective terminals. S322: Based on the dominant type of the equipment contained in each plant, identify the plant type as the dominant type, and group all plants according to the dominant type of the equipment they contain; within the same type of plant group, each plant is arranged according to the sequence number of the first-ranked equipment after the arrangement in step S321. S323: For all data points under each device, group them according to their data type; and within the same data type group, sort them according to their data point number under that device.
4. The method for batch generation of power monitoring graphic elements according to claim 1, characterized in that, S42 includes the following steps: S421: Compare the sequence path of the reference node at each level with the sequence path of multiple target nodes in the target business tree in the ordered target node sequence, and calculate the offset between the sequence path of the reference node at each level and the sequence path of multiple target nodes in the target business tree. The offset includes the device serial number offset and the data point serial number offset; S422: Identify the plant / station in the target business tree to which each target node belongs in the ordered target node sequence, and obtain an ordered list of plants / stations of the same type as the base node according to the predefined organization rules in the target business tree. S423: Select a plant as the initial mapping starting point, calculate the change in plant number required to move from that plant to the next plant in the plant list, and then the change in plant number is the plant increment step size.
5. The method for batch generation of power monitoring graphic elements according to claim 1, characterized in that, S5 includes the following steps: S51: Based on the incremental step size of the plant and the initial mapping starting point in the mapping configuration, locate the target plant corresponding to the primitive copy; S52: Based on the target plant, locate the specific target equipment for each graphic element copy according to the equipment serial number offset; S53: Under the already located target equipment and target plant, locate the target data point number based on the data point number offset; S54: Generate a source primitive copy for each target data point and bind the unique identifier of the target data point, i.e., the target data point sequence number, to the source primitive copy.
6. The method for batch generation of power monitoring graphic elements according to claim 1, characterized in that, The data types include telemetry data, remote signaling data, and electricity consumption data; the data attribution chain information includes the equipment information, terminal information, and plant information to which the data point belongs; The natural serial number includes the data point serial number of the data point in the same type of data set of its own device, the device serial number of the device under its own terminal, the terminal serial number of the terminal under its own plant, and the plant serial number of each plant. The source service tree takes the plant and its serial number as the root node, the terminals under the plant and their serial numbers as the first-level branch nodes, the equipment under the terminals and their serial numbers as the second-level branch nodes, and the image data points and their data point serial numbers under the equipment as the leaf nodes. Each node includes its data type.
Citation Information
Patent Citations
Power grid comprehensive information monitoring graph generation system and method
CN105976322A
Visualization method for monitoring data of box-type substation
CN116186811A