Configuration picture configuration method and device for energy management system

By identifying and replacing the binding relationships of interface controls in the energy management system, and combining template screens with logical screens, the problems of high resource consumption and low maintenance efficiency in traditional methods are solved. This achieves fast screen switching and stable memory usage, improving system performance and maintainability.

CN121807430APending Publication Date: 2026-04-07SHANGHAI ROBESTEC ENERGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-31
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Traditional configuration screen setup methods in energy storage systems are resource-intensive and have low development and maintenance efficiency, failing to meet the real-time and precision requirements for equipment status visualization.

Method used

By identifying target controls in the user interface, determining their associated logical screens and template screens, obtaining and replacing binding relationships, dynamic configuration of configuration screens is achieved. By combining template screens and logical screens, it is ensured that the same template screen is loaded into memory only once, reducing the overhead of repeated parsing.

Benefits of technology

It improved screen switching speed, stabilized memory usage, enabled batch generation and unified maintenance of configuration screens, significantly reduced configuration workload and storage space, and improved system performance and maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121807430A_ABST
    Figure CN121807430A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a configuration picture configuration method and device for an energy management system, and the method comprises the steps: recognizing a logic picture related to a control after a user clicks the control of an interface, and determining a template picture related to the logic picture; under the condition that the target template picture is loaded in the memory, determining a data point and / or a grouping mark bound with a template control in the template picture; obtaining a first binding relationship between a first grouping mark in the logic picture and the energy storage equipment, and obtaining a second binding relationship between a second grouping mark in the logic picture and the to-be-displayed text; on the basis of the first binding relation, replacing parameters of the first template control with corresponding parameters of the energy storage device at the data point, and on the basis of the second binding relation, replacing parameters of the second template control with the displayed text; and performing rendering display on the picture instance after parameter replacement on an operation interface to complete configuration of the configuration picture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of automation software technology, and in particular to a configuration screen configuration method for an energy management system. Background Technology

[0002] With the continuous expansion of energy storage system scale and the surge in the number of devices, users are increasingly demanding real-time and granular visualization of device status. This necessitates the integration of diverse monitoring controls into the configuration interface, such as real-time data text, status indicators, data tables, trend curves, and primary wiring diagrams, to achieve comprehensive data display.

[0003] However, with the increase in system capacity and the number of devices, traditional configuration screen methods have gradually revealed problems such as excessive system resource consumption and low development and maintenance efficiency. Therefore, an effective method is urgently needed to solve these problems. Summary of the Invention

[0004] In view of this, embodiments of this specification provide a configuration screen configuration method for an energy management system. One or more embodiments of this specification also relate to a configuration screen configuration device for an energy management system, a computing device, a computer-readable storage medium, and a computer program, to address the technical deficiencies existing in the prior art.

[0005] According to a first aspect of the embodiments of this specification, a configuration screen configuration method for an energy management system is provided, comprising: In response to a user's click on a target control in the operation interface of the energy management system, the system identifies the logical screen associated with the target control and determines the target template screen associated with the logical screen. If it is determined by detection that the target template screen has been loaded into the system memory, the data points and the first grouping mark bound to the first template control in the target template screen are determined, and the second grouping mark bound to the second template control in the target template screen is determined; Obtain the first binding relationship between the first group tag stored in the logical screen and the energy storage device, and obtain the second binding relationship between the second group tag stored in the logical screen and the text to be displayed; Based on the first binding relationship, the parameters of the first template control are replaced with the corresponding parameters of the energy storage device at the data point, and based on the second binding relationship, the parameters of the second template control are replaced with the text to be displayed; The screen instance with the replaced parameters is rendered and displayed on the operation interface to complete the configuration screen setup.

[0006] Optionally, the configuration method for the configuration screen of the energy management system further includes: Based on visualization requirements, add at least two template controls to the initial template screen; Data points, display parameters, and control parameters are bound to a template control of a target type. The template control of the target type is used to dynamically display data, and the display parameters and the control parameters can be associated with the same data point or different data points. Bind group tags to at least two template controls; After binding is complete, the initial template screen and the bound content will be stored according to the specified path.

[0007] Optionally, the grouping marker includes a data grouping marker and a constant grouping marker; Accordingly, binding group tags to the at least two template controls includes: Data grouping tags are bound to the template control of the target type, and constant grouping tags are bound to the template controls of other types. The template controls of other types are template controls other than the template control of the target type among the at least two template controls. The template controls of other types are not used to dynamically display data.

[0008] Optionally, the configuration method for the configuration screen of the energy management system further includes: Iterate through each group tag defined in the initial template screen and display configuration requirements to the user based on each group tag. The configuration requirements of the data group tags include binding an energy storage device to each data group tag, and the configuration requirements of the constant group tags include binding a text to be displayed to each constant group tag. The system receives configuration information submitted by the user based on the configuration requirements, and generates a logical screen based on the initial template screen and the configuration information. The logical screen includes a first binding relationship between the data group marker and the energy storage device, and a second binding relationship between the constant group marker and the text to be displayed.

[0009] Optionally, before traversing each grouping marker defined in the initial template screen, the process further includes: Determine the jump relationships between different controls and different screens in each screen related to the energy management system, and construct a screen tree based on the jump relationships; Detect whether the current level of the screen in the screen tree contains a screen type of template screen that is the next level jump target of any control; If so, then the step of traversing each group marker defined in the initial template screen is performed.

[0010] Optionally, after generating the logical screen based on the initial template screen and the configuration information, the process further includes: The next-level jump target of any one of the controls is determined as the intermediate template screen, and it is detected whether the intermediate template screen contains a screen type of the next-level jump target of any one of the controls that is a template screen; If so, return to the step of traversing each group marker defined in the initial template screen.

[0011] Optionally, the configuration method for the configuration screen of the energy management system further includes: Set constraints on the next level of the target page for each control in the template screen. The constraints include prohibiting each control in the template screen from jumping to a higher level screen in the screen tree.

[0012] Optionally, the configuration method for the configuration screen of the energy management system further includes: If it is determined that the target template screen is not loaded in the system memory, the target template screen and its bound content are read according to the specified path; The bound content is parsed to obtain the data points and the first grouping mark bound to the first template control in the target template screen, and the second grouping mark bound to the second template control in the target template screen is parsed to obtain the second grouping mark. The target template image and the parsing results are loaded into the system memory.

[0013] According to a second aspect of the embodiments of this specification, a configuration screen setup device for an energy management system is provided, comprising: The identification module is configured to respond to a user's click operation on a target control in the operation interface of the energy management system, identify the logical screen associated with the target control, and determine the target template screen associated with the logical screen. The determination module is configured to, upon determining that the target template screen has been loaded into the system memory by detection, determine the data points and the first grouping marker bound to the first template control in the target template screen, and determine the second grouping marker bound to the second template control in the target template screen; The acquisition module is configured to acquire the first binding relationship between the first grouping tag stored in the logical screen and the energy storage device, and to acquire the second binding relationship between the second grouping tag stored in the logical screen and the text to be displayed; The replacement module is configured to replace the parameters of the first template control with the corresponding parameters of the energy storage device at the data point based on the first binding relationship, and to replace the parameters of the second template control with the text to be displayed based on the second binding relationship; The display module is configured to render and display the screen instance with the replaced parameters on the operation interface to complete the configuration screen configuration.

[0014] According to a third aspect of the embodiments of this specification, a computing device is provided, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement any of the steps of the configuration screen configuration method for the energy management system.

[0015] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores computer-executable instructions, which, when executed by a processor, implement the steps of any one of the configuration screen configuration methods for an energy management system.

[0016] According to a fifth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, it causes the computer to perform the steps of the above-described configuration screen configuration method for an energy management system.

[0017] This embodiment of the specification identifies the logical screen associated with the user's click on a control on the interface and determines the template screen associated with that logical screen. If the target template screen is already loaded in memory, it determines the data points and / or grouping markers bound to the template controls in the template screen. It obtains the first binding relationship between the first grouping marker in the logical screen and the energy storage device, and the second binding relationship between the second grouping marker in the logical screen and the text to be displayed. Based on the first binding relationship, it replaces the parameters of the first template control with the corresponding parameters of the energy storage device at the data points; based on the second binding relationship, it replaces the parameters of the second template control with the text to be displayed. The screen instance with the replaced parameters is rendered and displayed on the operation interface to complete the configuration screen configuration. Through this processing method, it ensures that the same template screen is loaded into memory only once, greatly improving screen switching speed and stabilizing memory usage. Simultaneously, it achieves batch generation and unified maintenance of configuration screens, significantly reducing configuration workload and storage space, and improving the performance and maintainability of the entire energy storage management system. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating a configuration screen setup method for an energy management system, as provided in one embodiment of this specification. Figure 2This is a schematic diagram of the structure of a configuration screen configuration device for an energy management system provided in one embodiment of this specification; Figure 3 This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation

[0019] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.

[0020] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0021] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0022] First, the terms and concepts used in one or more embodiments of this specification will be explained.

[0023] Actual screen: refers to a configuration screen that exists independently and has complete configuration data. This type of screen does not depend on any template, and all its configuration information is stored in its own independent configuration file.

[0024] Template screen: refers to a predefined configuration screen prototype. In this screen, all data-bound controls must be grouped and labeled according to preset rules. The template screen has its own configuration file, which serves as the basis for generating other screens.

[0025] Logical screen: refers to a virtual screen generated based on a template screen and through a device replacement mechanism. Unlike the two mentioned above, the logical screen does not have an independent configuration file in the storage path. Its essence is to store the mapping relationship between the "template screen" and the "target device" and the parameter replacement rules.

[0026] Screen Tree: A logical model used to describe the navigation relationships between screens in a configuration interface. It is constructed by starting with the main interface (root node) as the trunk, and deriving a series of branch screens (child nodes) level by level through the jump logic configured on controls. All these screens, including the actual screens as the trunk and the logical or actual screens as branches, together form a complete screen tree. Furthermore, the screen tree supports nested subtree structures, where each branch can exist as an independent screen tree, forming a hierarchical navigation network.

[0027] This specification provides a configuration screen configuration method for an energy management system. It also relates to a configuration screen configuration device for an energy management system, a computing device, a computer-readable storage medium, and a computer program, which will be described in detail in the following embodiments.

[0028] Figure 1 A flowchart is shown of a configuration screen setup method for an energy management system according to an embodiment of this specification, which specifically includes the following steps.

[0029] Step 102: In response to the user's click operation on the target control in the operation interface of the energy management system, identify the logical screen associated with the target control, and determine the target template screen associated with the logical screen.

[0030] Step 104: If the system memory has been loaded with the target template screen by detection, determine the data point and the first grouping mark bound to the first template control in the target template screen, and determine the second grouping mark bound to the second template control in the target template screen.

[0031] Step 106: Obtain the first binding relationship between the first group tag stored in the logical screen and the energy storage device, and obtain the second binding relationship between the second group tag stored in the logical screen and the text to be displayed.

[0032] Step 108: Based on the first binding relationship, replace the parameters of the first template control with the corresponding parameters of the energy storage device at the data point, and based on the second binding relationship, replace the parameters of the second template control with the text to be displayed.

[0033] Step 110: Render and display the screen instance with the replaced parameters on the operation interface to complete the configuration screen configuration.

[0034] In one optional implementation, if it is determined that the target template screen is not loaded in the system memory, the target template screen and its bound content are read according to a specified path; The bound content is parsed to obtain the data points and the first grouping mark bound to the first template control in the target template screen, and the second grouping mark bound to the second template control in the target template screen is parsed to obtain the second grouping mark. The target template image and the parsing results are loaded into the system memory.

[0035] Specifically, the user interface contains multiple controls, and the control that the user clicks is the target control; the first group marker can be a data group marker, and the second group marker can be a constant group marker.

[0036] Steps 102 to 110 above constitute the process of loading and rendering visualization data for the configuration screen, mainly targeting the logic screen, and specifically include the following: (1) On-demand loading and instantiation of logical screens: When the operation interface needs to jump to the logical screen, the following sub-steps are executed: 1) Identify the target template screen associated with this logical screen, wherein the target template screen is one of a plurality of pre-generated template screens; 2) Check if the target template image has been loaded into memory; 3) If not loaded, read the configuration file of the target template screen from the specified path and load the control information, data binding content and group tag structure in it into memory; 4) If already loaded, directly read the data points and / or grouping tags bound to each template control in the target template from memory; 5) Based on the binding relationship between the pre-stored group tags in the logic screen and the energy storage device or the text to be displayed, replace the parameter bindings of each template control in the target template screen with the corresponding parameters of the energy storage device, or replace the bindings with the corresponding text to be displayed; 6) Instantiate the target template screen after parameter replacement and render and display it on the operation interface to complete the configuration screen configuration.

[0037] (2) Memory residency and reuse mechanism of template screen: 1) Once the template screen is loaded into memory, it will remain continuously throughout the entire runtime of the user interface. 2) When other logical screens with the same template need to be generated in the future, the system directly reuses the template screen information that has been stored in memory and only performs parameter replacement operations to avoid repeated parsing overhead.

[0038] (3) Single loading principle of screen resources: All screen resources with independent configuration files, including actual screens and template screens, follow the single loading principle during operation of the interface; subsequent screen switching only involves changes in display status and does not require reloading of screen resources.

[0039] (4) Dynamic subscription and queue management of data points: 1) When the user interface is running, it only subscribes to and processes the data points required by the currently active screen; 2) Data points associated with inactive screens will be temporarily removed from the real-time data processing queue; 3) This dynamic management mechanism ensures that system resources are focused on current display needs, avoiding performance bottlenecks caused by invalid data processing.

[0040] The processing method described in the embodiments of this specification can achieve stable memory usage. The same template screen is loaded only once during the runtime cycle, and the instantiation process of subsequent logical screens is only parameter replacement, effectively controlling the memory growth of the operation interface and improving system stability. In addition, instantiation based on the already parsed template screen in memory avoids the overhead of repeated file parsing, resulting in an order-of-magnitude improvement in screen switching and loading speed, that is, improving screen response speed. Furthermore, the operation interface adopts a dynamic subscription mechanism, processing only the data points required by the currently active screen, avoiding communication congestion and processing delays caused by the refresh of massive amounts of irrelevant data, ensuring the refresh efficiency and real-time performance of core data, thereby making the data stream more efficient and accurate.

[0041] In an optional implementation, the configuration screen method for the energy management system further includes: Based on visualization requirements, add at least two template controls to the initial template screen; Data points, display parameters, and control parameters are bound to a template control of a target type. The template control of the target type is used to dynamically display data, and the display parameters and the control parameters can be associated with the same data point or different data points. Bind group tags to at least two template controls; After binding is complete, the initial template screen and the bound content will be stored according to the specified path.

[0042] Furthermore, the grouping markers include data grouping markers and constant grouping markers; Accordingly, binding group tags to the at least two template controls includes: Data grouping tags are bound to the template control of the target type, and constant grouping tags are bound to the template controls of other types. The template controls of other types are template controls other than the template control of the target type among the at least two template controls. The template controls of other types are not used to dynamically display data.

[0043] Specifically, before loading and rendering the configuration screen for visualization, a template screen needs to be generated first. The specific template screen generation process is as follows: (1) Screen configuration: Based on visualization requirements, configure various controls (such as data text boxes, status indicator lights, trend curves, etc.) on the initial template screen to present data in a diversified and intuitive way.

[0044] (2) Parameter binding: Bind data points to controls (i.e., target type template controls) that need to dynamically display data on the screen. Each control can be bound to display parameters (for status monitoring) and control parameters (for issuing commands); these two can be associated with the same data point or point to different data points.

[0045] (3) Grouping Marker: Set a data grouping marker for all controls with bound data points. This marker will serve as the logical basis for subsequent device parameter replacement. In addition, for controls that do not need to be bound to data points (such as static text labels), a constant grouping marker can be set to achieve batch replacement of fixed display content. In the template screen, the system automatically groups controls with the same marker into the same group according to the grouping marker set by the control.

[0046] (4) After binding is completed, the initial template screen and the bound content are stored according to the specified path.

[0047] It should be noted that, according to the visualization requirements in this embodiment, at least two template controls are added to the initial template screen. However, in actual applications, the number of template controls added to the initial template screen may be one, or no template controls may be added to some initial template screens. The specific number of template controls added can be determined according to actual needs, and no restrictions are imposed here.

[0048] In an optional implementation, the configuration screen method for the energy management system further includes: Iterate through each group tag defined in the initial template screen and display configuration requirements to the user based on each group tag. The configuration requirements of the data group tags include binding an energy storage device to each data group tag, and the configuration requirements of the constant group tags include binding a text to be displayed to each constant group tag. The system receives configuration information submitted by the user based on the configuration requirements, and generates a logical screen based on the initial template screen and the configuration information. The logical screen includes a first binding relationship between the data group marker and the energy storage device, and a second binding relationship between the constant group marker and the text to be displayed.

[0049] Furthermore, before traversing each group marker defined in the initial template screen, the process also includes: Determine the jump relationships between different controls and different screens in each screen related to the energy management system, and construct a screen tree based on the jump relationships; Detect whether the current level of the screen in the screen tree contains a screen type of template screen that is the next level jump target of any control; If so, then the step of traversing each group marker defined in the initial template screen is performed.

[0050] In addition, after generating the logical screen based on the initial template screen and the configuration information, the process further includes: The next-level jump target of any one of the controls is determined as the intermediate template screen, and it is detected whether the intermediate template screen contains a screen type of the next-level jump target of any one of the controls that is a template screen; If so, return to the step of traversing each group marker defined in the initial template screen.

[0051] In addition, the configuration screen method for the energy management system further includes: Set constraints on the next level of the target page for each control in the template screen. The constraints include prohibiting each control in the template screen from jumping to a higher level screen in the screen tree.

[0052] Specifically, the screens related to the energy management system include actual screens and template screens; the screen at the current level in the screen tree is the actual screen.

[0053] After the template screen is generated, the screen tree and logical screen can be constructed. The specific processing steps are as follows: (1) Jump screen binding In the configuration screen, controls in both the actual screen and the template screen can be configured to jump to the next level target screen. Therefore, a screen tree can be constructed by determining the jump relationships between different controls in each screen related to the energy management system and different screens, and based on these jump relationships.

[0054] After the image tree is constructed, it is necessary to determine whether the root node, i.e., the first-level image, is an actual image. This is because different processing logic will be triggered depending on the type of the first-level image. 1) The first-level screen is a template screen: you only need to specify the target screen of the next level for the controls in this screen, and do not immediately generate a specific logic screen.

[0055] 2) The first-level screen is the actual screen: This indicates that the screen is already in the main hierarchy of the screen tree (first level). If the next-level jump target configured for any control in this type of screen is a template screen, the following logical screen generation process will be automatically triggered.

[0056] 3) Constraints: To avoid infinite loops, controls in a template screen are prohibited from jumping to higher-level screens (i.e., closer to the main branch) in the screen tree. For example, if a template screen is at the third level in the screen tree, then the controls in that template screen can only jump to the fourth level or other levels of the template screen or actual screen in the screen tree, but cannot jump to the second level or the first level of the template screen or actual screen.

[0057] (2) Logical screen generation process When the system transitions from the actual screen to the template screen (second layer), it initiates the logical screen generation process: 1) Parameter Configuration: The system will iterate through all group tags defined in the initial template screen and prompt the user for configuration: ① Data group tagging: Each data group tag needs to be bound to a specific energy storage device.

[0058] ② Constant grouping tags: For each constant grouping tag, a fixed display text (the text to be displayed) must be specified.

[0059] ③ Recursive generation: After completing the configuration of the current layer, if the controls in the template screen further jump to the next layer template screen (the third layer), the above configuration process needs to be repeated recursively based on the grouping mark of the third layer template.

[0060] 2) Process Termination: This recursive generation process continues until any termination condition is met: ① Reach the lowest-level template screen that no longer contains jump controls.

[0061] ②The next target is the actual screen (at this time, you will be directly redirected to the actual screen).

[0062] Once the logic screen is generated, the aforementioned process of loading and rendering visualization data for the configuration screen can be performed.

[0063] In practical applications, the configuration screen configuration of the embodiments in this specification is implemented in the following software environment: the energy management system runs on the Linux operating system, uses C++ as the core development language, its configuration screen is built on the Qt framework, and the system configuration and mapping relationship data are stored in the MySQL database.

[0064] The following section will explain in detail the implementation steps of this solution, in conjunction with the system operation process.

[0065] 1. Creation and definition of template screens (1) The user opens the configuration tool and creates a new screen.

[0066] (2) Drag four text controls from the control library to the canvas and name them TextNode_0, TextNode_1, TextNode_2 and TextNode_3 respectively.

[0067] (3) Perform the following operations on the TextNode_0 control: 1) Right-click and select "Data Binding" to configure a data point for it. This data point can be the current state of the energy storage converter PCS.

[0068] 2) Right-click and select "Data Grouping Marker" to set a grouping mark for it. The mark name is equip1.

[0069] 3) Perform the following operations on the TextNode_1 control: Bind to another data point of the same device type as TextNode_0.

[0070] Set the same data grouping tag equip1 as TextNode_0.

[0071] 4) Perform the following operations on the TextNode_2 control: Bind other data points of the same device type as TextNode_0.

[0072] Set a new data grouping tag equip2.

[0073] 5) Perform the following operations on the TextNode_3 control: Right-click and select "Constant Grouping Marker", then set the marker name to const.

[0074] 6) After completing the configuration, the user specifies the screen type as "Template Screen" and names it "equip diagram" before saving. The system stores the configuration file for this template screen in the specified path.

[0075] 2. Screen Tree Construction and Logical Screen Generation (1) Place two text controls, TextNode_4 and TextNode_5, on the main screen of the system (actual screen).

[0076] (2) Configure jump logic for the TextNode_4 control: 1) Right-click and select "Screen Jump Settings". In the dialog box, select the template screen equipdiagram created in step 1. The system will then pop up the "Logical Screen Generation Dialog Box", which lists all the grouping tags of the template: data group equip1, equip2 and constant group const.

[0077] 2) The user configures the following: ① Bind device a to equip1; ② Bind device b to equip2; ③ Specify the text "123" for const.

[0078] 3) Name the logical screen "logical 1" and confirm. The system stores the mapping relationship of this logical screen in the database instead of generating a separate file.

[0079] 4) Similarly, configure the TextNode_5 control to jump to the same template screen and generate another logical screen logical 2. The mapping relationship is as follows: ①equip1 binds to device c; ②equip2 binds to device d; ③ const specifies the text "456".

[0080] 3. Visual loading and dynamic rendering (1) The user starts the operation interface and enters the main interface.

[0081] (2) Clicking the TextNode_4 control triggers the following process: 1) The system identifies the target as logical screen 1 and obtains its associated template screen equipdiagram and its stored mapping relationship.

[0082] 2) The system checks whether the template screen has been loaded into memory. If it has not been loaded, the system reads the configuration file from the storage path and parses it into memory; if it has been loaded, it is reused directly.

[0083] 3) The system dynamically replaces parameters on the template image copy in memory based on the mapping relationship: ① The data points of the control (TextNode_0, TextNode_1) marked as equip1 are replaced with the corresponding parameters of device a.

[0084] ② The data points of the control marked as equip2 (TextNode_2) are replaced with the corresponding parameters of device b.

[0085] ③ The control marked as const (TextNode_3) has its displayed text replaced with "123".

[0086] ④ Render and display the replaced screen instance.

[0087] 4) When the user returns to the main interface and clicks the TextNode_5 control, the system will reuse the template screen equipment diagram that has been resident in memory, and quickly generate and display a new screen instance that binds device c, device d and text "456" according to the mapping relationship of logical 2.

[0088] It should be noted that the embodiments in this specification are only illustrative examples using the four controls TextNode_0, TextNode_1, TextNode_2 and TextNode_3, the three group tags equip1, equip2 and const, the device a, device b and the text "123", the device c, device d and the text "456". The specific number of controls, the number of group tags, and the bound devices and texts can be determined according to actual needs and are not limited here.

[0089] This specification aims to address the repetitive configuration work in existing configuration methods for the same device type, as well as the problems of configuration redundancy, high resource consumption, and low maintenance efficiency caused by the increase in the number of devices. Its core lies in introducing a screen architecture that combines template screens, logical screens, and actual screens. By predefining template screens containing devices under certain device types, batch reuse of configuration screens is achieved. First, template screens with defined group tags are created. Then, when the user jumps from the actual screen to the template screen, a data flow for dynamically replacing parameters in the logical screen is triggered. The system dynamically binds corresponding parameters to the controls on the template screen according to the target device bound by the user to the group tag, forming a virtual logical screen. This screen only stores the mapping relationship and has no independent configuration file.

[0090] This specification's embodiments create template screens and configure a device for each group on the template screen based on the device type and template group of all bound data points on the template screen. This enables rapid generation and unified maintenance of configuration screens, thereby effectively reducing redundant configurations, lowering system load, and improving screen loading and switching efficiency.

[0091] This embodiment of the specification identifies the logical screen associated with the user's click on a control on the interface and determines the template screen associated with that logical screen. If the target template screen is already loaded in memory, it determines the data points and / or grouping markers bound to the template controls in the template screen. It obtains the first binding relationship between the first grouping marker in the logical screen and the energy storage device, and the second binding relationship between the second grouping marker in the logical screen and the text to be displayed. Based on the first binding relationship, it replaces the parameters of the first template control with the corresponding parameters of the energy storage device at the data points; based on the second binding relationship, it replaces the parameters of the second template control with the text to be displayed. The screen instance with the replaced parameters is rendered and displayed on the operation interface to complete the configuration screen configuration. Through this processing method, it ensures that the same template screen is loaded into memory only once, greatly improving screen switching speed and stabilizing memory usage. Simultaneously, it achieves batch generation and unified maintenance of configuration screens, significantly reducing configuration workload and storage space, and improving the performance and maintainability of the entire energy storage management system.

[0092] Corresponding to the above method embodiments, this specification also provides embodiments of a configuration screen setup device for an energy management system. Figure 2 This specification illustrates a schematic diagram of a configuration screen setup device for an energy management system according to one embodiment. Figure 2 As shown, the device includes: The identification module 202 is configured to, in response to a user's click operation on a target control in the operation interface of the energy management system, identify the logical screen associated with the target control and determine the target template screen associated with the logical screen; The determination module 204 is configured to, when it is determined by detection that the target template screen has been loaded in the system memory, determine the data points and the first grouping mark bound to the first template control in the target template screen, and determine the second grouping mark bound to the second template control in the target template screen; The acquisition module 206 is configured to acquire the first binding relationship between the first grouping tag stored in the logical screen and the energy storage device, and to acquire the second binding relationship between the second grouping tag stored in the logical screen and the text to be displayed; The replacement module 208 is configured to replace the parameters of the first template control with the corresponding parameters of the energy storage device at the data point based on the first binding relationship, and to replace the parameters of the second template control with the text to be displayed based on the second binding relationship; Display module 210 is configured to render and display the screen instance with replaced parameters on the operation interface to complete the configuration screen configuration.

[0093] Optionally, the configuration screen setup device for the energy management system further includes a processing module configured to: Based on visualization requirements, add at least two template controls to the initial template screen; Data points, display parameters, and control parameters are bound to a template control of a target type. The template control of the target type is used to dynamically display data, and the display parameters and the control parameters can be associated with the same data point or different data points. Bind group tags to at least two template controls; After binding is complete, the initial template screen and the bound content will be stored according to the specified path.

[0094] Optionally, the grouping marker includes a data grouping marker and a constant grouping marker; Accordingly, the processing module is further configured to: Data grouping tags are bound to the template control of the target type, and constant grouping tags are bound to the template controls of other types. The template controls of other types are template controls other than the template control of the target type among the at least two template controls. The template controls of other types are not used to dynamically display data.

[0095] Optionally, the processing module is further configured to: Iterate through each group tag defined in the initial template screen and display configuration requirements to the user based on each group tag. The configuration requirements of the data group tags include binding an energy storage device to each data group tag, and the configuration requirements of the constant group tags include binding a text to be displayed to each constant group tag. The system receives configuration information submitted by the user based on the configuration requirements, and generates a logical screen based on the initial template screen and the configuration information. The logical screen includes a first binding relationship between the data group marker and the energy storage device, and a second binding relationship between the constant group marker and the text to be displayed.

[0096] Optionally, the processing module is further configured to: Determine the jump relationships between different controls and different screens in each screen related to the energy management system, and construct a screen tree based on the jump relationships; Detect whether the current level of the screen in the screen tree contains a screen type of template screen that is the next level jump target of any control; If so, then the step of traversing each group marker defined in the initial template screen is performed.

[0097] Optionally, the processing module is further configured to: The next-level jump target of any one of the controls is determined as the intermediate template screen, and it is detected whether the intermediate template screen contains a screen type of the next-level jump target of any one of the controls that is a template screen; If so, return to the step of traversing each group marker defined in the initial template screen.

[0098] Optionally, the processing module is further configured to: Set constraints on the next level of the target page for each control in the template screen. The constraints include prohibiting each control in the template screen from jumping to a higher level screen in the screen tree.

[0099] Optionally, the processing module is further configured to: If it is determined that the target template screen is not loaded in the system memory, the target template screen and its bound content are read according to the specified path; The bound content is parsed to obtain the data points and the first grouping mark bound to the first template control in the target template screen, and the second grouping mark bound to the second template control in the target template screen is parsed to obtain the second grouping mark. The target template image and the parsing results are loaded into the system memory.

[0100] The above is a schematic scheme of a configuration screen configuration device for an energy management system according to this embodiment. It should be noted that the technical solution of this configuration screen configuration device for an energy management system and the technical solution of the configuration screen configuration method for an energy management system described above belong to the same concept. For details not described in detail in the technical solution of the configuration screen configuration device for an energy management system, please refer to the description of the technical solution of the configuration screen configuration method for an energy management system described above.

[0101] Figure 3 A structural block diagram of a computing device 300 according to one embodiment of this specification is shown. The components of the computing device 300 include, but are not limited to, a memory 310 and a processor 320. The processor 320 is connected to the memory 310 via a bus 330, and a database 350 is used to store data.

[0102] The computing device 300 also includes an access device 340, which enables the computing device 300 to communicate via one or more networks 360. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 340 may include one or more of any type of wired or wireless network interface (e.g., a Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) interface, a Wi-MAX interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0103] In one embodiment of this specification, the aforementioned components of the computing device 300 and Figure 3 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 3 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0104] The computing device 300 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 300 can also be a mobile or stationary server.

[0105] The processor 320 is used to execute the following computer-executable instructions, which, when executed by the processor, implement the steps of the configuration screen configuration method for the energy management system described above.

[0106] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the configuration screen configuration method for an energy management system described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the configuration screen configuration method for an energy management system described above.

[0107] An embodiment of this specification also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the configuration screen configuration method for an energy management system described above.

[0108] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium belongs to the same concept as the technical solution of the configuration screen configuration method for an energy management system described above. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the configuration screen configuration method for an energy management system described above.

[0109] An embodiment of this specification also provides a computer program, wherein when the computer program is executed in a computer, it causes the computer to perform the steps of the above-described configuration screen configuration method for an energy management system.

[0110] The above is an illustrative scheme of a computer program according to this embodiment. It should be noted that the technical solution of this computer program belongs to the same concept as the technical solution of the configuration screen configuration method for an energy management system described above. For details not described in detail in the technical solution of the computer program, please refer to the description of the technical solution of the configuration screen configuration method for an energy management system described above.

[0111] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0112] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or certain intermediate forms. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0113] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.

[0114] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0115] The preferred embodiments disclosed above are merely illustrative of this specification. Optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described herein. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A method for configuring a configuration screen for an energy management system, comprising: In response to a user's click on a target control in the operation interface of the energy management system, the system identifies the logical screen associated with the target control and determines the target template screen associated with the logical screen. If it is determined by detection that the target template screen has been loaded into the system memory, the data points and the first grouping mark bound to the first template control in the target template screen are determined, and the second grouping mark bound to the second template control in the target template screen is determined; Obtain the first binding relationship between the first group tag stored in the logical screen and the energy storage device, and obtain the second binding relationship between the second group tag stored in the logical screen and the text to be displayed; Based on the first binding relationship, the parameters of the first template control are replaced with the corresponding parameters of the energy storage device at the data point, and based on the second binding relationship, the parameters of the second template control are replaced with the text to be displayed; The screen instance with the replaced parameters is rendered and displayed on the operation interface to complete the configuration screen setup.

2. The configuration screen setup method for an energy management system according to claim 1 further includes: Based on visualization requirements, add at least two template controls to the initial template screen; Data points, display parameters, and control parameters are bound to a template control of a target type. The template control of the target type is used to dynamically display data, and the display parameters and the control parameters can be associated with the same data point or different data points. Bind group tags to at least two template controls; After binding is complete, the initial template screen and the bound content will be stored according to the specified path.

3. The configuration screen arrangement method for an energy management system according to claim 2, wherein the grouping markers include data grouping markers and constant grouping markers; Accordingly, binding group tags to the at least two template controls includes: Data grouping tags are bound to the template control of the target type, and constant grouping tags are bound to the template controls of other types. The template controls of other types are template controls other than the template control of the target type among the at least two template controls. The template controls of other types are not used to dynamically display data.

4. The configuration screen setup method for an energy management system according to claim 3 further includes: Iterate through each group tag defined in the initial template screen and display configuration requirements to the user based on each group tag. The configuration requirements of the data group tags include binding an energy storage device to each data group tag, and the configuration requirements of the constant group tags include binding a text to be displayed to each constant group tag. The system receives configuration information submitted by the user based on the configuration requirements, and generates a logical screen based on the initial template screen and the configuration information. The logical screen includes a first binding relationship between the data group marker and the energy storage device, and a second binding relationship between the constant group marker and the text to be displayed.

5. The configuration screen method for an energy management system according to claim 4, further comprising, before traversing each group marker defined in the initial template screen: Determine the jump relationships between different controls and different screens in each screen related to the energy management system, and construct a screen tree based on the jump relationships; Detect whether the current level of the screen in the screen tree contains a screen type of template screen that is the next level jump target of any control; If so, then the step of traversing each group marker defined in the initial template screen is performed.

6. The configuration screen method for an energy management system according to claim 5, further comprising, after generating the logical screen based on the initial template screen and the configuration information: The next-level jump target of any one of the controls is determined as the intermediate template screen, and it is detected whether the intermediate template screen contains a screen type of the next-level jump target of any one of the controls that is a template screen; If so, return to the step of traversing each group marker defined in the initial template screen.

7. The configuration screen setup method for an energy management system according to claim 5 further includes: Set constraints on the next level of the target page for each control in the template screen. The constraints include prohibiting each control in the template screen from jumping to a higher level screen in the screen tree.

8. The configuration screen method for an energy management system according to claim 1 further includes: If it is determined that the target template screen is not loaded in the system memory, the target template screen and its bound content are read according to the specified path; The bound content is parsed to obtain the data points and the first grouping mark bound to the first template control in the target template screen, and the second grouping mark bound to the second template control in the target template screen is parsed to obtain the second grouping mark. The target template image and the parsing results are loaded into the system memory.

9. A configuration screen setup device for an energy management system, comprising: The identification module is configured to respond to a user's click operation on a target control in the operation interface of the energy management system, identify the logical screen associated with the target control, and determine the target template screen associated with the logical screen. The determination module is configured to, upon determining that the target template screen has been loaded into the system memory by detection, determine the data points and the first grouping marker bound to the first template control in the target template screen, and determine the second grouping marker bound to the second template control in the target template screen; The acquisition module is configured to acquire the first binding relationship between the first grouping tag stored in the logical screen and the energy storage device, and to acquire the second binding relationship between the second grouping tag stored in the logical screen and the text to be displayed; The replacement module is configured to replace the parameters of the first template control with the corresponding parameters of the energy storage device at the data point based on the first binding relationship, and to replace the parameters of the second template control with the text to be displayed based on the second binding relationship; The display module is configured to render and display the screen instance with the replaced parameters on the operation interface to complete the configuration screen configuration.

10. A computing device, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, they implement the steps of the configuration screen configuration method for an energy management system as described in any one of claims 1 to 8.