A multi-state multi-application real-time library system and device suitable for substation control
By adopting an application-combined loosely coupled mode and an address-independent offset memory pool in the substation centralized control system, the interdependence problem of multi-state and multi-application systems is solved, enabling independent operation and online application replacement, thereby improving the system's security and ease of use.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUODIAN NANJING AUTOMATION
- Filing Date
- 2023-04-06
- Publication Date
- 2026-06-19
AI Technical Summary
In traditional multi-state, multi-application systems of real-time substation databases, there are interdependencies between applications and states, resulting in low system security and reliability, and the system cannot operate independently.
It adopts a loosely coupled application composition model to build a polymorphic environment, enabling applications and states to run independently. Through an address-independent offset memory pool and a dynamic plugin loading mechanism, it achieves online plug-and-play functionality.
It improves the system's reliability, ease of use, and security. Applications and states are completely independent, avoiding mutual interference, and enabling the online application to be replaced at any time and managed efficiently.
Smart Images

Figure CN116452139B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of substation centralized monitoring technology, specifically to a multi-state, multi-application real-time library system and device suitable for substation centralized control. Background Technology
[0002] The multi-state and multi-application operation mode of the real-time library has always been a key operation scenario for substations and distribution network master station systems. For example, the equipment model to be put into operation is first tested and run in the pre-running state, and then switched to the real-time state after the test is passed. Another example is that system administrators run important fragments recorded in the accident replay in the inversion state. How to build a safe and efficient multi-state and multi-application real-time library scenario has become an important indicator of the system's practicality and reliability.
[0003] Traditional secondary manufacturers use a shared real-time library and shared memory to implement polymorphism and multi-application, which poses significant security risks. If any one state or application is damaged, it will affect the normal operation of the entire polymorphism and multi-application. There is a large interdependence between applications and between applications and states. Applications and states cannot be completely independent and they affect each other. Summary of the Invention
[0004] The purpose of this section is to outline some aspects of the embodiments of the present invention and to briefly describe some preferred embodiments. Simplifications or omissions may be made in this section, as well as in the abstract and title of this application, to avoid obscuring the purpose of these documents; however, such simplifications or omissions should not be construed as limiting the scope of the invention.
[0005] In view of the problems existing in the polymorphic multi-application systems of the above and / or existing real-time libraries, this invention is proposed.
[0006] Therefore, the purpose of this invention is to provide a multi-state, multi-application real-time library system and device suitable for substation centralized control. It adopts a loosely coupled application combination mode to build a multi-state environment, and the specified application can be replaced at any time, realizing online plug-and-play, which greatly improves the reliability, ease of use and security of the system.
[0007] To address the aforementioned technical problems, according to one aspect of the present invention, the present invention provides the following technical solution:
[0008] A multi-state, multi-application real-time library system suitable for substation centralized control includes:
[0009] The basic configuration module is configured as follows: definition of implementation state and application, machine node configuration, memory capacity configuration, and model configuration;
[0010] The real-time library memory structure management module is configured to implement application-level granular shared memory, wherein each state of shared memory consists of multiple application shared memory, and the application shared memory is implemented using an address-independent offset memory pool, and the data source is loaded from commercial library table data;
[0011] The rule loading and triggering mechanism module is configured to: implement the binding of attribute types in the model dictionary with corresponding rules and add a rule triggering mechanism to the real-time library write interface;
[0012] The cross-section model loading module is configured to implement online loading and notification subscription functions for cross-section models.
[0013] As a preferred embodiment of the multi-state, multi-application real-time library system applicable to substation centralized control described in this invention, in the machine node configuration, each machine node downloads the real-time library according to the state number, application number, and capacity defined in the configuration file. The real-time library provides a complete model dictionary to realize the association mapping between object types and attribute types.
[0014] As a preferred embodiment of the multi-state, multi-application real-time library system for substation centralized control described in this invention, the method for constructing the application shared memory comprises the following steps:
[0015] Create a shared memory pool based on the capacity configuration information;
[0016] Based on the table type information defined in the model dictionary, page objects are created sequentially in the shared memory pool. The members defined in the page object include table type number, number of attributes, capacity, record pointer offset, two-dimensional time scale pointer offset, and two-dimensional value pointer offset.
[0017] Load table data from the commercial database, write the commercial database table data values into the pagination object, and simultaneously write the record ID into the hash memory to establish a fast indexing mechanism for the real-time database.
[0018] Set the version number of the application's shared memory and write it to the version number file.
[0019] As a preferred embodiment of the multi-state, multi-application real-time library system for substation centralized control described in this invention, the shared memory pool includes a container space, a hash space, and a paging space.
[0020] The container space stores a linked list of records in a one-to-many relationship within an in-memory table.
[0021] The hash space stores the indexing mechanism of the in-memory table, which includes page offset values and record offset values;
[0022] The pagination space stores commercial database table data.
[0023] As a preferred embodiment of the multi-state, multi-application real-time library system applicable to substation centralized control described in this invention, the two-dimensional pointer offset value specifically refers to the specific attribute value of a specific record pointed to by a pointer defined by the pointer.
[0024] As a preferred embodiment of the multi-state, multi-application real-time library system for substation centralized control described in this invention, the rules adopt a plug-in dynamic loading mechanism.
[0025] As a preferred embodiment of the multi-state, multi-application real-time library system for substation centralized control described in this invention, the method steps for loading the cross-section model in the cross-section model loading module are as follows:
[0026] The cross-section model loading tool modifies the cross-section application folder name to distinguish it from the original application folder, and configures the new name in the real-time library parameter file;
[0027] The cross-section model loading tool writes the model loading properties of machine objects in the real-time library and notifies the real-time library to start cross-section model loading.
[0028] The real-time library creates new application shared memory objects and loads new segment mapping files, while unloading old segment application shared memory using reference-counted smart pointers.
[0029] When a process has subscribed to a section loading message, it will receive a real-time library notification that the section loading is complete.
[0030] A multi-state, multi-application real-time library device suitable for substation centralized control includes:
[0031] The basic configuration module is used for device node configuration, memory capacity configuration, and model configuration.
[0032] The polymorphic multi-application management module is used for loading polymorphic modes of application combinations in the device.
[0033] The rule loading module is used to load rule plugins and implement custom logic calculations for measurement.
[0034] The cross-section model loading module is used for online loading and subscription of cross-section models.
[0035] The incremental loading module is used for adding, deleting, and modifying records in the database memory table in real time.
[0036] As a preferred embodiment of the multi-state, multi-application real-time library device for substation centralized control described in this invention, the incremental loading module notifies the real-time library loading record modification operation of the incremental message through the bus, and periodically checks the commercial library for incremental submission records to prevent failure to receive bus messages.
[0037] Compared with existing technologies, the beneficial effects of this invention are as follows: This invention proposes a multi-state, multi-application real-time library system and device suitable for substation centralized control. It adopts a memory pool address-independent relative offset shared memory technology to realize application-level shared memory, and then forms an independent state real-time library through application composition mode. The purpose is to completely decouple the interdependencies between applications and between applications and states, so as to achieve complete independence between applications and between states, and avoid mutual influence between applications and states. On this basis, rule binding and cross-section model management are realized, further optimizing the substation centralized monitoring system. Since the multi-state environment is built by using the application composition loose coupling mode, the specified application can be replaced at any time, realizing online plug-and-play, which greatly improves the reliability, ease of use and security of the system. Attached Figure Description
[0038] To more clearly illustrate the technical solutions of the embodiments of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and detailed embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0039] Figure 1 This is a block diagram of a multi-state, multi-application real-time library system applicable to substation centralized control according to the present invention;
[0040] Figure 2 This is a system layout diagram of a multi-state, multi-application real-time library system applicable to substation centralized control, according to the present invention.
[0041] Figure 3 This is a block diagram of an application shared memory for a multi-state, multi-application real-time library system suitable for substation centralized control, according to the present invention.
[0042] Figure 4 This is a block diagram of a multi-state, multi-application real-time library device suitable for centralized control of substations according to the present invention. Implementation
[0043] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0044] Secondly, the present invention is described in detail with reference to the schematic diagrams. When detailing the embodiments of the present invention, for ease of explanation, the cross-sectional views illustrating the device structure may be partially enlarged, not according to the usual scale. Furthermore, the schematic diagrams are merely examples and should not limit the scope of protection of the present invention. In addition, actual fabrication should include three-dimensional spatial dimensions of length, width, and depth.
[0045] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0046] This invention provides a multi-state, multi-application real-time library system and device suitable for substation centralized control. It adopts a loosely coupled application combination mode to build a multi-state environment, and the specified application can be replaced at any time, realizing online plug-and-play, which greatly improves the reliability, ease of use and security of the system.
[0047] like Figure 2 As shown, according to the requirements of the substation centralized monitoring specification, the concept of a state is a set of applications that achieve certain defined goals in an operating environment. The real-time library multi-state includes real-time state (state 1), pre-run state (state 2), test state (state 3) and inversion state (state 4). An application is composed of a set of closely related functions. Multiple applications include data processing applications, public basic applications and data acquisition applications.
[0048] In this invention, such as Figure 1 and Figure 3 As shown in the figure, a multi-state, multi-application real-time library system suitable for substation centralized control in this embodiment includes a basic configuration module, a real-time library memory structure management module, a rule loading and triggering mechanism module, and a cross-section model loading module.
[0049] The basic configuration module is configured as follows: definition of implementation state and application, machine node configuration, memory capacity configuration, and model configuration. The models include, but are not limited to, substation table, line table, voltage type table, transformer table, master equipment telemetry (measanalog), master equipment telemetry (measpoint), etc. In the machine node configuration, each machine node downloads a real-time library according to the state number, application number, and capacity defined in the configuration file. The real-time library provides a complete model dictionary to realize the association mapping between object types and attribute types.
[0050] The real-time library memory structure management module is configured to implement application-level granular shared memory. Each state of shared memory consists of multiple application shared memory modules. The application shared memory is implemented using an address-independent offset memory pool. The data source is loaded from commercial library table data, which can store up to 4096 table structures. Each table data corresponds to a page object in the real-time library. Each page object can store a maximum of 1024*1024 records. If the number of records in the table exceeds the maximum number of records per page, a new page is added. The page object contains a "next page" variable to maintain all the page linked lists of the table.
[0051] In this embodiment, the specific steps of the shared memory construction method are as follows:
[0052] Create a shared memory pool based on the capacity configuration information, such as Figure 3 As shown, the shared memory pool includes container space, hash space, and page space. The container space stores the linked list of records in the one-to-many relationship of the memory table. The hash space stores the indexing mechanism of the memory table, including page offset value and record offset value. The page space stores commercial library table data.
[0053] Based on the table type information defined in the model dictionary, page objects are created sequentially in the shared memory pool. The members defined in the page object include table type number, number of attributes, capacity, record pointer offset, two-dimensional time scale pointer offset, and two-dimensional value pointer offset.
[0054] Load table data from the commercial database, write the commercial database table data values into the pagination object, and simultaneously write the record ID into the hash memory to establish a fast indexing mechanism for the real-time database.
[0055] Set the version number of the application's shared memory and write it to the version number file.
[0056] Since the pagination object contains several records, and each record contains several attributes, a two-dimensional pointer offset value is used, that is, a pointer to a pointer to a specific record is used, which realizes fast and reliable real-time library read and write.
[0057] The rule loading and triggering mechanism module is configured to: bind attribute types in the model dictionary to corresponding rules and add a rule triggering mechanism to the real-time library write interface. When calling the real-time library write interface, on the one hand, a two-dimensional value pointer is written to the paging object, and on the other hand, it is determined whether the attribute is bound to a rule. If a rule is bound, the rule plugin is directly called to implement the internal logic processing of the rule. The rules adopt a plugin dynamic loading mechanism. Since the substation model uses custom attribute rules, as long as the rule and the corresponding attribute configuration definition are completed, the real-time library can be dynamically loaded and bound without recompiling, thus realizing efficient rule processing by the real-time library.
[0058] The cross-section model loading module is configured to implement online loading and notification subscription functions for cross-section models. The method steps for loading the cross-section model in the cross-section model loading module are as follows:
[0059] The cross-section model loading tool modifies the cross-section application folder name to distinguish it from the original application folder, and configures the new name in the real-time library parameter file;
[0060] The cross-section model loading tool writes the model loading properties of machine objects in the real-time library and notifies the real-time library to start cross-section model loading.
[0061] The real-time library creates new application shared memory objects and loads new segment mapping files, while unloading old segment application shared memory using reference-counted smart pointers.
[0062] When a process has subscribed to a section loading message, it will receive a real-time library notification that the section loading is complete.
[0063] Based on the above-mentioned multi-state, multi-application real-time library system suitable for substation centralized control, such as Figure 4 As shown, the present invention also provides a multi-state multi-application real-time library device suitable for a multi-state multi-application real-time library system for substation centralized control, which includes a basic configuration module, a multi-state multi-application management module, a rule loading module, a cross-section model loading module, and an incremental loading module.
[0064] The basic configuration module is used for device node configuration, memory capacity configuration, and model configuration.
[0065] The polymorphic multi-application management module is used for loading polymorphic modes of application combinations in the device.
[0066] The rule loading module is used to load rule plugins and implement custom logic calculations for measurement.
[0067] The cross-section model loading module is used for online loading and subscription of cross-section models.
[0068] The incremental loading module is used for adding, deleting, and modifying records in the real-time database memory table. In the incremental loading module, incremental messages are sent to the real-time database to notify the modification operation of the record. At the same time, the module periodically checks the commercial database to see if there are any incremental commit records to prevent the failure to receive bus messages.
[0069] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied 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.
[0070] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0071] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0072] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0073] Although the present invention has been described above with reference to embodiments, various modifications can be made and components can be replaced with equivalents without departing from the scope of the invention. In particular, as long as there is no structural conflict, the features in the disclosed embodiments can be combined with each other in any manner. The lack of an exhaustive description of these combinations in this specification is merely for the sake of brevity and resource conservation. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A polymorphic multi-application real-time library system suitable for substation control, characterized in that, include: The basic configuration module is configured as follows: definition of implementation state and application, machine node configuration, memory capacity configuration, and model configuration; The real-time library memory structure management module is configured to implement application-level granular shared memory, wherein each state of shared memory consists of multiple application shared memory, and the application shared memory is implemented using an address-independent offset memory pool, and the data source is loaded from commercial library table data; The rule loading and triggering mechanism module is configured to: implement the binding of attribute types in the model dictionary with corresponding rules and add a rule triggering mechanism to the real-time library write interface; The cross-section model loading module is configured to implement online loading and notification subscription functions for cross-section models. The steps for constructing the application's shared memory are as follows: Create a shared memory pool based on the capacity configuration information; Based on the table type information defined in the model dictionary, page objects are created sequentially in the shared memory pool. The members defined in the page object include table type number, number of attributes, capacity, record pointer offset, two-dimensional time scale pointer offset, and two-dimensional value pointer offset. Load table data from the commercial database, write the commercial database table data values into the pagination object, and simultaneously write the record ID into the hash memory to establish a fast indexing mechanism for the real-time database. Set the version number of the application's shared memory and write it to the version number file.
2. The multi-state multi-application real-time library system suitable for substation control of claim 1, wherein, In the machine node configuration, each machine node downloads a real-time library according to the status number, application number, and capacity defined in the configuration file. The real-time library provides a complete model dictionary to realize the association mapping between object types and attribute types.
3. The multi-state multi-application real-time library system suitable for substation control of claim 1, wherein, The shared memory pool includes container space, hash space, and page space; The container space stores a linked list of records in a one-to-many relationship within an in-memory table. The hash space stores the indexing mechanism of the in-memory table, which includes page offset values and record offset values; The pagination space stores commercial database table data.
4. The multi-state multi-application real-time library system suitable for substation control of claim 1, wherein, The two-dimensional value pointer offset value specifically refers to the specific attribute value of a specific record pointed to by a pointer defined as a pointer.
5. A multi-state, multi-application real-time library system suitable for substation centralized control, as described in claim 1, is characterized in that... The rules are implemented using a dynamic plugin loading mechanism.
6. A multi-state, multi-application real-time library system suitable for substation centralized control, as described in claim 1, is characterized in that... The method steps for loading the cross-section model in the cross-section model loading module are as follows: The cross-section model loading tool modifies the cross-section application folder name to distinguish it from the original application folder, and configures the new name in the real-time library parameter file; The cross-section model loading tool writes the model loading properties of machine objects in the real-time library and notifies the real-time library to start cross-section model loading. The real-time library creates new application shared memory objects and loads new segment mapping files, while unloading old segment application shared memory using reference-counted smart pointers. When a process has subscribed to a section loading message, it will receive a real-time library notification that the section loading is complete.
7. A multi-state, multi-application real-time library device for a substation centralized control multi-state, multi-application real-time library system as described in any one of claims 1-6, characterized in that, include: The basic configuration module is used for device node configuration, memory capacity configuration, and model configuration. The polymorphic multi-application management module is used for loading polymorphic modes of application combinations in the device. The rule loading module is used to load rule plugins and implement custom logic calculations for measurement. The cross-section model loading module is used for online loading and subscription of cross-section models; The incremental loading module is used for adding, deleting, and modifying records in the database memory table in real time.
8. A multi-state, multi-application real-time library device for substation centralized control as described in claim 7, characterized in that, In the incremental loading module, incremental messages notify the real-time library loading record of modification operations via the bus, and at the same time periodically check the commercial library for incremental commit records to prevent failure to receive bus messages.