A method for configuring energy equipment models considering cloud-edge collaboration

By identifying the connection relationship of energy equipment and optimizing the number of online users of the cloud platform, a cloud-edge collaborative energy equipment model configuration method is realized, which solves the monitoring deficiencies of traditional configuration software in the context of the Internet of Things and cloud computing, and improves building energy management. System adaptability and performance.

CN117423054BActive Publication Date: 2024-10-29STATE GRID JIANGSU INTEGRATED ENERGY SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311415242.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2024-10-29
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

Traditional configuration software is difficult to meet the monitoring needs of industrial and mining enterprises, power plants, substations, etc. under the background of the Internet of Things and cloud computing technology, especially when handling massive equipment monitoring.

Method used

An energy equipment model configuration method that considers cloud-edge collaboration is adopted to obtain energy equipment connection relationship information by identifying monitoring images, optimizing the cloud platform to control the number of online users, operating real-time monitoring screens based on authority levels, drawing equipment configuration models, and It is associated with the energy equipment model and updates the status in real time.

Benefits of technology

It realizes visual drawing and attribute configuration in B/S mode, has strong adaptability, is suitable for distributed building energy management systems, improves system performance and response speed, and avoids resource waste and excessive consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117423054B_ABST
    Figure CN117423054B_ABST
Patent Text Reader

Abstract

The present invention discloses an energy device model configuration method considering cloud-edge collaboration, and relates to the technical field of model configuration. The energy device model configuration method considering cloud-edge collaboration identifies monitoring images and obtains energy device connection relationship information; performs user login verification, and optimizes the cloud platform based on real-time login status information to control the number of online users; obtains the user's authority level during user login verification, and based on the user's authority level, allows users with the same authority level to operate the same resource according to the energy device connection relationship information to draw a device configuration model on a real-time monitoring screen drawing, and creates a topology map based on the real-time monitoring screen drawing; associates and binds the device configuration model on the real-time monitoring screen drawing with the energy device model, and updates the device configuration model state based on the real-time data of the energy device model; saves and publishes the real-time monitoring screen drawing, and sends it to the edge side through the gateway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of model configuration technology, and specifically to an energy equipment model configuration method considering cloud-edge collaboration. Background Art

[0002] "Cloud-edge collaboration algorithm" refers to an algorithm for collaborative work between cloud computing and edge computing environments. In the computing field, "cloud" usually refers to cloud computing, which is a model that provides computing resources and services based on the Internet, while "edge" refers to edge computing, which pushes computing power closer to the data generation source to reduce latency and improve efficiency. Cloud-edge collaboration algorithms usually aim to optimize the work collaboration between cloud computing and edge computing to achieve more efficient data processing and resource utilization.

[0003] Configuration software (ECT) is the foundation and core function of the real-time monitoring system (SCADA). It uses graphical configuration and associated equipment model definition to realize the drawing of monitoring screens, the collection and processing of monitoring data, and the visual display of monitoring objects in a modular way. Traditional configuration software generally adopts a C / S architecture and is published after configuration through a dedicated client. Some configuration software can be converted and published into pages that can be parsed by browsers, thereby realizing B / S browsing.

[0004] Traditional methods can meet the monitoring needs of small-scale industrial and mining enterprises, power plants, substations, etc., but in today's Internet of Things and cloud computing technology background, the construction of building energy management systems distributed in different locations is generally combined with cloud platforms to use multi-tenant configuration and maintenance. There is an urgent need for configuration software based on cloud-native architecture that supports massive equipment monitoring. Summary of the invention

[0005] In response to the shortcomings of the existing technology, the present invention provides an energy equipment model configuration method that takes into account cloud-edge collaboration, which solves the problem that traditional methods are difficult to meet the monitoring needs of industrial and mining enterprises, power plants, substations, etc. under the current technical background of the Internet of Things and cloud computing.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for configuring an energy device model considering cloud-edge collaboration, comprising the following steps: identifying monitoring images and obtaining energy device connection relationship information; user login verification, and optimizing the cloud platform based on real-time login status information to control the number of online users; obtaining the user's authority level during user login verification, and based on the user's authority level, allowing users with the same authority level to operate the same resources according to the energy device connection relationship information to draw a device configuration model on the real-time monitoring screen drawing, and create a topology map based on the real-time monitoring screen drawing; associating and binding the device configuration model on the real-time monitoring screen drawing with the energy device model, and updating the device configuration model status based on the real-time data of the energy device model; saving and publishing the real-time monitoring screen drawing, and sending it to the edge side through the gateway.

[0007] Furthermore, the process of identifying the monitoring image and obtaining the energy device connection relationship information is as follows: obtain the monitoring image, and input the monitoring image into the trained energy device connection relationship recognition model; number the identified different types of energy equipment in sequence, and number multiple energy devices of the same type in sequence; identify the connecting lines and number them; determine the numbers of the energy devices corresponding to the two ends of the connecting line, and determine the energy device connection relationship information, that is, the energy equipment connected at the starting point of the connecting line and the energy equipment connected at the end point of the connecting line.

[0008] Furthermore, the training process of the energy device connection relationship recognition model is as follows: obtain training set data and verification set data, both of which include historical monitoring images and the correct connection relationship of energy equipment corresponding to the historical monitoring images; based on the set loss function, input the training set data into the energy device connection relationship recognition model for training, and optimize the parameters of the energy device connection relationship recognition model; use the verification set data to evaluate the generalization ability of the trained energy device connection relationship recognition model, and when the generalization ability reaches the set indicator, the training ends.

[0009] Furthermore, the process of optimizing the cloud platform based on real-time login status information and controlling the number of online users is as follows: real-time statistics of the number of online users with the same level of authority, and calculation of the real-time login status index based on the theoretical number of online users at each level of authority; comparing it with the set status threshold, if the real-time login status index is greater than the set status threshold, obtaining the online ratio of the number of online users at each level of authority to the theoretical number of online users at each level of authority; comparing each online ratio with the set ratio threshold, and optimizing the number of users of the level of authority corresponding to the online ratio greater than the ratio threshold, and the optimization includes forced logout and restricted login.

[0010] Furthermore, the calculation process of the real-time login status index based on the theoretical number of online users at each level of authority is as follows: obtain the number of online users at each level of authority and the theoretical number of online users at each level of authority, and calculate the online ratio; obtain the weight parameter of the online ratio of each level of authority, and calculate the real-time login status index. The calculation formula is: Where Λ is the real-time login status index, i=1,2,3,...,n is the number of levels of level authority, λ i is the weight parameter of the online ratio of the i-th level authority, is the online ratio of the i-th level authority, is the number of online users with the i-th level of authority, is the theoretical limit on the number of online users with the i-th level of authority.

[0011] Furthermore, the judgment rules for forced logout and restricted login are as follows: priority is given to forced logout of users with level permissions whose online ratio is greater than the ratio threshold, and the users who are forced to log out are those who have not performed any operation for more than a set time; after executing the forced logout, the real-time login status index is compared with the set status threshold again, and if the real-time login status index is greater than the set status threshold, restricted login is executed, and the users whose login is restricted are the users corresponding to the level permissions whose online ratio is greater than the set restriction threshold.

[0012] Furthermore, in the process of drawing the device configuration model on the real-time monitoring screen drawing: for the JSON data obtained through the API interface, the Konva.js library is used to initialize and generate the drawing object; for the picture object, the pictures in the chart and table formats are filtered out to generate the corresponding charts and tables. The steps are as follows: obtain the coordinates x, y, width, height and stored chart configuration of the picture object; generate a div element with the corresponding position, width and height, and use CSS positioning to cover the original picture; when the format is chart, the echarts library is used to pass in the div element and chart configuration item to generate the corresponding chart, and when the format is table, the corresponding table is generated through the component rendering function of Vue; hide the picture object; and update the chart through the configured API interface information polling.

[0013] Furthermore, the process of creating a topology map based on the real-time monitoring screen drawing is as follows: obtain the real-time monitoring screen drawing and determine all connection line objects; traverse all connection line objects to find the configuration objects connected at both ends of the line segment, and store the configuration connection relationship including the configuration of the starting point connection of the connection line object, the configuration of the end point connection of the connection line object, the configuration coordinate point and the configuration object; import the connection line relationship and configuration objects through the open source echarts library to generate a topology map.

[0014] Furthermore, the process of associating and binding the device configuration model on the real-time monitoring screen drawing with the energy equipment model is as follows: establish the relationship between the device configuration model attributes and the device configuration model status; obtain the energy equipment model telesignaling and telemetry list through the API interface, select the corresponding telesignaling and telemetry for association, and store the associated device configuration model in the telesignaling and telemetry ID of the energy equipment model for preview. The device configuration model obtains the real-time data of the energy equipment model through the energy equipment model measurement point ID.

[0015] Furthermore, the method for updating the status of the device configuration model based on the real-time data of the energy device model is to use a timer to poll and query the energy device model data through the telemetry and telesignaling IDs associated with the device configuration model, and after obtaining the telesignaling and telemetry data, update the configuration attribute values ​​of the device configuration model, and update the configuration attribute status of the device configuration model at the same time, or distribute the data to the device configuration model through websocket, and then update the configuration attributes of the device configuration model, and update the configuration attribute status of the device configuration model at the same time.

[0016] The present invention has the following beneficial effects:

[0017] (1) This energy equipment model configuration method that considers cloud-edge collaboration realizes the equipment model and graphic association and equipment operation of the building energy monitoring system through visual drawing and attribute configuration in B / S mode. First, the drawings are graphically configured, and the graphics required for the monitoring screen are drawn on the drawings; then the association between the equipment and the model is completed through the integration of graphics and models; finally, the drawings are parsed to realize real-time monitoring screen browsing and direct operation of equipment monitoring objects on the screen. It has the characteristics of strong adaptability and large processing scale, and is more suitable for the promotion and application of building energy management systems distributed in different locations.

[0018] (2) The energy equipment model configuration method considering cloud-edge collaboration controls the number of online users and resource allocation, which helps improve system performance and response speed, ensures that users can get faster responses and better experience, and dynamically manages the number of online users and resource allocation to avoid resource waste and excessive consumption.

[0019] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A flow chart of the energy equipment model configuration method considering cloud-edge collaboration for the present invention;

[0021] Figure 2 A flow chart of the energy device model configuration method considering cloud-edge collaboration of the present invention for obtaining energy device connection relationship information;

[0022] Figure 3A flow chart of controlling the number of online users by the energy equipment model configuration method considering cloud-edge collaboration of the present invention;

[0023] Figure 4 A flowchart of the judgment rules of forced exit and restricted login adopted by the energy equipment model configuration method considering cloud-edge collaboration of the present invention;

[0024] Figure 5 A flowchart of creating a topology diagram for the energy device model configuration method considering cloud-edge collaboration of the present invention. DETAILED DESCRIPTION

[0025] The embodiment of the present application realizes real-time monitoring screen browsing through drawing analysis and direct operation of equipment monitoring objects on the screen by considering the energy equipment model configuration method of cloud-edge collaboration. It has the characteristics of strong adaptability and large processing scale, and is more suitable for the promotion and application of building energy management systems distributed in different locations.

[0026] The overall idea of ​​the problem in the embodiment of this application is as follows:

[0027] Through visual drawing and attribute configuration in B / S mode, the equipment model and graphic association and equipment operation of the building energy monitoring system are realized. First, the drawings are graphically configured, and the graphics required for the monitoring screen are drawn on the drawings; then the association between the equipment and the model is completed through the integration of graphics and models; finally, the drawings are analyzed to realize real-time monitoring screen browsing and direct operation of equipment monitoring objects on the screen. It has the characteristics of strong adaptability and large processing scale, and is more suitable for the promotion and application of building energy management systems distributed in different locations.

[0028] See also Figure 1 , an embodiment of the present invention provides a technical solution: a method for configuring an energy device model considering cloud-edge collaboration, comprising the following steps: identifying a monitoring image and obtaining energy device connection relationship information; user login verification, and optimizing the cloud platform based on real-time login status information to control the number of online users; obtaining the user's authority level during user login verification, and based on the user's authority level, allowing users with the same authority level to operate the same resources according to the energy device connection relationship information to draw a device configuration model on a real-time monitoring screen drawing, and creating a topology map based on the real-time monitoring screen drawing; associating and binding the device configuration model on the real-time monitoring screen drawing with the energy device model, and updating the device configuration model status based on the real-time data of the energy device model; saving and publishing the real-time monitoring screen drawing, and sending it to the edge side through the gateway.

[0029] Specifically, Figure 2As shown, the process of identifying the monitoring image and obtaining the connection relationship information of the energy equipment is as follows: obtain the monitoring image, and input the monitoring image into the trained energy equipment connection relationship recognition model; number the identified different types of energy equipment in sequence, and number multiple energy equipment of the same type in sequence; identify the connecting line and number it; determine the number of the energy equipment corresponding to the two ends of the connecting line, and determine the connection relationship information of the energy equipment, that is, the energy equipment connected to the starting point of the connecting line and the energy equipment connected to the end point of the connecting line.

[0030] In this embodiment, the energy equipment connection relationship recognition model is established based on computer vision algorithms and edge detection and line segment extraction algorithms. For monitoring images, computer vision algorithms detect and identify various energy devices, such as transformers, generators, battery packs, and connecting wires, etc., which can be implemented specifically through YOLO or SSD or Faster R-CNN, etc. After identification, the energy devices of different categories are numbered. If there are multiple energy devices of the same type, they are numbered twice. The edge detection and line segment extraction algorithms detect and extract connecting line segments in the image to determine the connected energy devices. Edge detection algorithms, such as Canny edge detection, can be used to find line segments.

[0031] The connection relationship information is stored in a database or managed using a data structure, which includes the identification of the energy device, the coordinate information of the energy device, and the connection relationship between them.

[0032] Specifically, the training process of the energy equipment connection relationship recognition model is as follows: obtain training set data and validation set data, both of which include historical monitoring images and the correct connection relationship of energy equipment corresponding to the historical monitoring images; based on the set loss function, input the training set data into the energy equipment connection relationship recognition model for training, and optimize the parameters of the energy equipment connection relationship recognition model; use the validation set data to evaluate the generalization ability of the trained energy equipment connection relationship recognition model, and the training ends when the generalization ability reaches the set indicator.

[0033] In this implementation scheme, for the training of the energy equipment connection relationship recognition model, the collected historical monitoring images and the correct connection relationship are input into the model, and the model judges the connection relationship. The judged connection relationship is compared with the correct connection relationship to determine the accuracy. Based on the set loss function, the model is continuously trained, and finally the generalization ability of the model is verified through the verification set to ensure the adaptability of the model.

[0034] Specifically, Figure 3As shown, the process of optimizing the cloud platform based on real-time login status information and controlling the number of online users is as follows: real-time statistics of the number of online users with the same level of authority are made, and a real-time login status index is calculated based on the theoretical number of online users at each level of authority; the index is compared with a set status threshold, and if the real-time login status index is greater than the set status threshold, the online ratio of the number of online users at each level of authority to the theoretical number of online users at each level of authority is obtained; each online ratio is compared with a set ratio threshold, and the number of users at the level of authority corresponding to the online ratio greater than the ratio threshold is optimized, and the optimization includes forced logout and restricted login.

[0035] In this implementation scheme, by real-time counting of the number of online users with the same level of authority, the online status of users with different levels of authority can be understood. The real-time login status index can reflect the relationship between the actual online status and the theoretical number of online users. Setting the status threshold is an important decision, which determines when measures need to be taken to control the number of online users. The online ratio is compared with the set ratio threshold to determine whether measures need to be taken. According to the comparison results, the number of users with the level of authority corresponding to the online ratio greater than the ratio threshold is optimized, including forcing some users to log out to reduce the number of online users, or restricting the login of new users to reduce the load.

[0036] Specifically, the calculation process of the real-time login status index based on the theoretical number of online users at each level of authority is as follows: obtain the number of online users at each level of authority and the theoretical number of online users at each level of authority, and calculate the online ratio; obtain the weight parameter of the online ratio of each level of authority, and calculate the real-time login status index. The calculation formula is: Where Λ is the real-time login status index, i=1,2,3,...,n is the number of levels of level authority, λ i is the weight parameter of the online ratio of the i-th level authority, is the online ratio of the i-th level authority, is the number of online users with the i-th level of authority, is the theoretical limit on the number of online users with the i-th level of authority.

[0037] In this implementation scheme, for each level of authority, the online ratio is calculated, that is, the online ratio is the ratio between the number of online users and the theoretical number of online users. The online ratio is multiplied by the weight parameter to reflect the importance of each level of authority. The online ratio of each level of authority is multiplied by its corresponding weight parameter, and then all these results are added together to obtain a comprehensive index, which represents the real-time login status index of the system. This index can be used to evaluate the online status of users of each level of authority, where different levels of authority contribute differently according to their online ratios and weight parameters.

[0038] Specifically, Figure 4As shown, the judgment rules for forced logout and restricted login are as follows: priority is given to forced logout of users with level permissions whose online ratio is greater than the ratio threshold, and the users who are forced to log out are users who have not performed any operation for more than the set time; after the forced logout is executed, the real-time login status index is compared with the set status threshold again. If the real-time login status index is greater than the set status threshold, restricted login is executed, and the users whose login is restricted are users corresponding to the level permissions whose online ratio is greater than the set restriction threshold.

[0039] In this implementation scheme, first of all, priority is given to users with level permissions whose online ratio is greater than the ratio threshold. Among these users, the system will force out those users who have not performed any operations for more than the set time. The purpose of this rule is to release system resources and reduce the number of online users. Once the forced exit is executed, the system will recalculate the real-time login status index to take into account the users who have been forced to exit. If the real-time login status index is still higher than the set status threshold, the login restriction operation will be executed. The users whose login is restricted are users with level permissions whose online ratio is greater than the set restriction threshold. The purpose of the rule is to control the number of online users and ensure that the system is not subject to excessive load pressure.

[0040] By forcibly logging out users who have been inactive for a long time, resources can be freed up to meet the needs of other users, helping to improve system performance and responsiveness. After recalculating the real-time login status index, the number of online users and performance status can be more accurately assessed, which helps to achieve continuous performance optimization.

[0041] Specifically, in the process of drawing the device configuration model on the real-time monitoring screen drawing: for the JSON data obtained through the API interface, the Konva.js library is used to initialize and generate the drawing object; for the picture object, the pictures in the chart and table formats are filtered out to generate the corresponding charts and tables. The steps are as follows: obtain the coordinates x, y, width, height and stored chart configuration of the picture object; generate a div element with the corresponding position, width and height, and use CSS positioning to cover the top of the original picture; when the format is chart, the echarts library is used to pass in the div element and chart configuration items to generate the corresponding chart, and when the format is table, the corresponding table is generated through the component rendering function of Vue; hide the picture object; and update the chart through the configured API interface information polling.

[0042] In this implementation scheme, JSON data is obtained through the API interface, and the Konva.js library is used to initialize and generate drawing objects, and interactive events are bound to the drawings. The events include: click events, drag events, mouse wheel events, mouse right button events, etc.

[0043] Rendering charts and tables. When drawing, you cannot directly draw charts and echarts images in the canvas, so when drawing, use the picture objects in the canvas instead of charts and tables. The pictures use the screenshots of the corresponding charts and tables, and then store the chart and table data and attributes in the picture objects. Rendering charts and tables becomes parsing pictures with special attributes. The process of rendering charts and tables is as follows:

[0044] Get all the image objects in the canvas and filter out the images with type chart and tab le;

[0045] Traverse all images of type chart and table to generate corresponding charts and tables. The steps are as follows:

[0046] Get the coordinates x, y, width, height and stored chart configuration of the image object;

[0047] Generate a div element with the corresponding position, width and height, and use CSS to position it to cover the top of the original image;

[0048] When type is chart, the echarts library is used to pass in the div element and chart configuration items to generate the corresponding chart. When type is table le, the corresponding table is generated through the vue component rendering function.

[0049] Hide the picture object and update the chart through the configured API interface information polling.

[0050] Specifically, Figure 5 As shown, the process of creating a topology map based on the real-time monitoring screen drawing is as follows: obtain the real-time monitoring screen drawing and determine all connection line objects; traverse all connection line objects to find the configuration objects connected at both ends of the line segment, and store the configuration connection relationship including the configuration of the starting point connection of the connection line object, the configuration of the end point connection of the connection line object, the coordinate point of the configuration and the configuration object; import the connection line relationship and configuration objects through the open source echarts library to generate a topology map.

[0051] In this implementation, a canvas object is obtained, all connection line objects are found, all connection line objects are traversed to find the configuration objects connecting the two ends of the line segment, and the configuration connection relationship is stored, including the configuration of the starting point connection of the line segment, the configuration of the end point connection, the configuration coordinate point and the configuration object. The connection line relationship and configuration objects are imported into the open source echarts library to generate a topology map.

[0052] Specifically, the process of associating and binding the device configuration model on the real-time monitoring screen drawing with the energy equipment model is as follows: establish the relationship between the device configuration model attributes and the device configuration model status; obtain the energy equipment model telesignaling and telemetry list through the API interface, select the corresponding telesignaling and telemetry for association, and store the associated device configuration model in the telesignaling and telemetry ID of the energy equipment model for preview. The device configuration model obtains the real-time data of the energy equipment model through the energy equipment model measurement point ID.

[0053] The method of updating the status of the device configuration model based on the real-time data of the energy device model is to use the timer polling to query the energy device model data through the telemetry and telesignaling IDs associated with the device configuration model, and update the configuration attribute values ​​of the device configuration model after obtaining the telesignaling and telemetry data, and update the configuration attribute status of the device configuration model at the same time, or distribute the data to the device configuration model through websocket, and then update the configuration attributes of the device configuration model, and update the configuration attribute status of the device configuration model at the same time.

[0054] In this implementation scheme, the device model configuration is drawn, and the device model configuration attributes are set. The set attributes can be divided into static attributes and dynamic attributes. The dynamic attribute value changes can reflect the state change of the configuration. The static attribute is generally used to mark the unique attributes of this device configuration, and the relationship between the model configuration attribute change and the model configuration state is written. For example, for a switch primitive, when the remote signal attribute value is 0, the switch is in a closed state, and when the remote signal value is 1, it is in an open state.

[0055] Obtain the telesignaling and telemetry list of the device model through the API interface, select the corresponding telesignaling and telemetry to associate, and store the associated device configuration in the telesignaling and telemetry ID of the device model for preview. The device configuration obtains the real-time data of the device through the device measurement point ID during preview, and updates the model configuration status in real time during preview. There are two methods: the first is to use the timer polling to query the device data through the telemetry and telesignaling ID associated with the model configuration, and update the configuration attribute value after obtaining the telesignaling and telemetry data, and update the configuration attribute status at the same time. The second is to distribute the data to the device configuration through websocket, and then update the device configuration attributes and the configuration attribute status at the same time.

[0056] When previewing, right-click the model configuration to operate the model configuration, obtain the associated device ID, initiate operation requests to the device through the interface to achieve the effect of controlling the device, and push the updated data to the configuration model for update after the device properties change.

[0057] Through the above steps, the device model and the configuration model can be associated in real time. The device changes can be reflected in the device configuration, and the device model can also be controlled through the device configuration.

[0058] In summary, this application has at least the following effects:

[0059] Controlling the number of online users and resource allocation helps improve system performance and response speed, ensuring that users can get faster responses and better experience, and dynamically managing the number of online users and resource allocation to avoid resource waste and excessive consumption.

[0060] Through visual drawing and attribute configuration in B / S mode, the equipment model and graphic association and equipment operation of the building energy monitoring system are realized. First, the drawings are graphically configured, and the graphics required for the monitoring screen are drawn on the drawings; then the association between the equipment and the model is completed through the integration of graphics and models; finally, the drawings are analyzed to realize real-time monitoring screen browsing and direct operation of equipment monitoring objects on the screen. It has the characteristics of strong adaptability and large processing scale, and is more suitable for the promotion and application of building energy management systems distributed in different locations.

[0061] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0062] The present invention is described with reference to flowcharts and / or block diagrams of systems, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0063] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0064] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0065] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0066] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for configuring an energy equipment model considering cloud-edge collaboration, characterized in that: The following steps are involved: Identify monitoring images and obtain energy equipment connection relationship information; User login verification, and optimization of the cloud platform based on real-time login status information to control the number of online users; The user's permission level is obtained during user login verification, and based on the user's permission level, users with the same permission level are allowed to operate the same resources according to the energy equipment connection relationship information, draw the equipment configuration model on the real-time monitoring screen drawing, and create a topology map based on the real-time monitoring screen drawing; The equipment configuration model on the real-time monitoring screen drawing is associated and bound with the energy equipment model, and the equipment configuration model status is updated based on the real-time data of the energy equipment model; Save and publish the real-time monitoring screen drawings, and send them to the edge side through the gateway; The process of identifying the monitoring image and obtaining the energy equipment connection relationship information is as follows: Acquire monitoring images, and input the monitoring images into a trained energy equipment connection relationship recognition model; Sequentially number the identified different types of energy equipment, and sequentially number multiple energy equipment of the same type; Identify and number the connecting wires; Determine the numbers of the energy devices corresponding to the two ends of the connecting line, and determine the connection relationship information of the energy devices, that is, the energy device connected to the starting point of the connecting line and the energy device connected to the end point of the connecting line; When drawing the device configuration model on the real-time monitoring screen: For the JSON data obtained through the API interface, the Konva.js library is used to initialize and generate drawing objects; For picture objects, filter out pictures in chart and table formats and generate corresponding charts and tables. The steps are as follows: Get the coordinates x, y, width, height and stored chart configuration of the image object; Generate a div element with the corresponding position, width and height, and use CSS to position it to cover the top of the original image; When the format is chart, the echarts library is used to pass in the div element and chart configuration items to generate the corresponding chart. When the format is table, the corresponding table is generated through the vue component rendering function. Hide the image object; Update the chart through the configured API interface information polling; The process of creating a topology map based on the real-time monitoring screen drawing is as follows: Get the real-time monitoring screen drawing and identify all connection line objects; Traverse all connection line objects to find the configuration objects connected at both ends of the line segment, and store the configuration connection relationship including the configuration of the connection of the starting point of the connection line object, the configuration of the connection of the end point of the connection line object, the coordinate point of the configuration and the configuration object; Import the connection line relationship and configuration objects through the open source echarts library to generate a topology diagram; The process of associating and binding the device configuration model on the real-time monitoring screen drawing with the energy device model is as follows: Establishing the relationship between the device configuration model attributes and the device configuration model states; Obtain the telesignaling and telemetry list of the energy equipment model through the API interface, select the corresponding telesignaling and telemetry for association, and store the associated device configuration model in the telesignaling and telemetry ID of the energy equipment model. When previewing, the device configuration model obtains the real-time data of the energy equipment model through the energy equipment model measurement point ID.

2. According to the energy equipment model configuration method considering cloud-edge collaboration according to claim 1, it is characterized in that: The training process of the energy device connection relationship recognition model is as follows: Acquire training set data and verification set data, wherein the training set data and verification set data both include historical monitoring images and correct connection relationships of energy devices corresponding to the historical monitoring images; Based on the set loss function, the training set data is input into the energy equipment connection relationship identification model for training, and the parameters of the energy equipment connection relationship identification model are optimized; The validation set data is used to evaluate the generalization ability of the trained energy device connection relationship recognition model. When the generalization ability reaches the set indicator, the training ends.

3. According to the energy equipment model configuration method considering cloud-edge collaboration according to claim 1, it is characterized in that: The process of optimizing the cloud platform based on real-time login status information and controlling the number of online users is as follows: Real-time statistics of the number of online users with the same level of authority, and calculation of the real-time login status index based on the theoretical number of online users at each level of authority; Compare it with the set status threshold. If the real-time login status index is greater than the set status threshold, obtain the online ratio of the number of online users of each level of authority to the theoretical number of online users of each level of authority. Each online ratio is compared with a set ratio threshold, and the number of users with level permissions corresponding to the online ratio greater than the ratio threshold is optimized, and the optimization includes forced logout and restricted login.

4. The energy equipment model configuration method considering cloud-edge collaboration according to claim 3 is characterized in that: The calculation process of the real-time login status index based on the theoretical number of online users at each level of authority is as follows: Obtain the number of online users with each level of authority and the theoretical number of online users with each level of authority, and calculate the online ratio; Obtain the weight parameters of the online ratio of each level of authority and calculate the real-time login status index. The calculation formula is: Where Λ is the real-time login status index, i=1,2,3,...,n is the number of levels of level authority, λ i is the weight parameter of the online ratio of the i-th level authority, is the online ratio of the i-th level authority, is the number of online users with the i-th level of authority, is the theoretical limit on the number of online users with the i-th level of authority.

5. The energy equipment model configuration method considering cloud-edge collaboration according to claim 4 is characterized in that: The rules for taking forced logout and restricted login decisions are as follows: Prioritize the forced exit of users with level permissions whose online ratio is greater than the ratio threshold. The forced exit users are those who have not performed any operations for more than the set time. After executing forced logout, the real-time login status index is compared with the set status threshold again. If the real-time login status index is greater than the set status threshold, restricted login is executed. The user whose login is restricted is the user whose level of authority corresponds to the online ratio greater than the set restriction threshold.

6. The energy equipment model configuration method considering cloud-edge collaboration according to claim 1 is characterized by: The method of updating the status of the device configuration model based on the real-time data of the energy device model is to use the timer polling to query the energy device model data through the telemetry and telesignaling IDs associated with the device configuration model, and update the configuration attribute values ​​of the device configuration model after obtaining the telesignaling and telemetry data, and update the configuration attribute status of the device configuration model at the same time, or distribute the data to the device configuration model through websocket, and then update the configuration attributes of the device configuration model, and update the configuration attribute status of the device configuration model at the same time.

Citation Information

Patent Citations

  • Distributed industrial online configuration monitoring system and method

    CN108664370A

  • Process monitoring picture generation method and device and electronic equipment

    CN116184947A