Intelligent substation station control layer data high-speed real-time synchronization method and system

By introducing a shared memory database and asynchronous caching mechanism into smart substations, the real-time and accuracy issues of data synchronization at the station control layer are resolved, enabling real-time data synchronization between the monitoring host and the integrated application host, thereby improving the safety and operational monitoring capabilities of power grid equipment.

CN116860879BActive Publication Date: 2025-12-09CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310906063.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-21
Publication Date
2025-12-09
Estimated Expiration
2043-07-21

AI Technical Summary

Technical Problem

In existing technologies, data synchronization between the station control layer monitoring host and the integrated application host in smart substations suffers from problems such as data synchronization errors, difficulty in guaranteeing real-time performance and accuracy. In particular, during substation accidents, data loss, mistransmission, and false transmission can easily occur, endangering the safety of power grid equipment.

Method used

By adopting shared memory database technology, a shared memory database is established in the monitoring host and the integrated application host, a read and write server is deployed, and an associated interface is added to the software platform message bus to encapsulate the data write and read interfaces. Real-time data synchronization is achieved by using an asynchronous caching mechanism, a cross-region shared database is built, a unified access interface is provided, and comprehensive monitoring and analysis of the operating status of secondary equipment is supported.

Benefits of technology

It enables real-time data synchronization between the monitoring host and the integrated application host, ensuring data uniqueness and accuracy, reducing data forwarding links, improving data processing efficiency, avoiding data inconsistency problems caused by complex synchronization mechanisms, and enhancing the safety and operation monitoring capabilities of power grid equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860879B_ABST
    Figure CN116860879B_ABST
Patent Text Reader

Abstract

The application belongs to the field of electric power automation, and discloses a kind of intelligent substation station control layer data high-speed real-time synchronization method and system;The method comprises: establishing shared memory database in monitoring host;Shared memory database interface secondary encapsulation, form internal interface and external interface;In the software platform message bus of monitoring host and integrated application host, increase the associated interface supporting the function call of shared memory server, form the data writing interface;The operation interface of software platform historical database is reformed, and is encapsulated as historical database callback storage interface.The application utilizes software platform message bus interface, secondary encapsulation forms 4 shared memory database external access interfaces, and upper layer application function realizes real-time data access to shared memory database through 4 external interfaces;Data acquisition process realizes automatic writing of real-time data into historical database through historical data storage callback interface and historical data storage function callback.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the field of power automation, and particularly relates to a method and system for high-speed real-time synchronization of data at a station control layer of an intelligent substation. BACKGROUND

[0002] An intelligent substation is constructed by intelligent primary equipment (electronic transformers, intelligent switches, etc.) and networked secondary equipment in layers (process layer, bay layer, station control layer), is based on IEC61850 standards and communication specifications, and can realize information sharing and interoperation among intelligent electrical equipment in the substation.

[0003] In an intelligent substation, according to the overall scheme of power system security protection, the secondary system of the substation is divided into a safety I area, a safety II area, and a safety IV area, wherein the safety I area and the safety II area belong to a production control area, and the safety IV belongs to a comprehensive information area. The production control area and the comprehensive information area are connected through forward and reverse isolation devices, and the safety I area and the safety II area in the production control area are isolated by a firewall. The main devices such as protection, measurement and control, and safety control in the safety I area of the substation directly transmit collected data to a monitoring host, and the auxiliary devices such as fire control, safety control, dynamic ring, and lock control in the safety II area directly transmit collected data to a comprehensive application host. This mode meets the monitoring requirements of the existing secondary system of the substation, but with the construction of a centralized control station, the requirements for device monitoring are further improved, and it is necessary to integrate the information of the main and auxiliary devices for comprehensive analysis, including the linkage information between the main and auxiliary devices, to improve the level of device operation monitoring and management. The existing station control layer monitoring host and the comprehensive application host belong to different safety partitions, and the main and auxiliary device data are not converged to form a data resource pool, which cannot meet the requirements of the centralized control station for device operation management. Therefore, technical means are needed to realize real-time synchronization of the main and auxiliary device data in the monitoring host and the comprehensive application host, so as to facilitate the APP application of the monitoring host and the comprehensive application host to analyze and evaluate the device state by referring to the data.

[0004] At present, from the design, construction, and debugging processes of the monitoring host and the comprehensive application host, they belong to the same manufacturer. Some manufacturers design a synchronization interface at the software platform layer of the monitoring host and the comprehensive application host, and realize data synchronization between the two hosts through a message bus owned by the manufacturer. The message bus realizes centralized management of communication and data exchange between the monitoring host and the comprehensive application host, and through the provision of a centralized message delivery system, different components can communicate and cooperate through the way of publishing and subscribing messages.

[0005] The above message bus-based data synchronization method has certain limitations. The interaction mechanism of the message bus determines that the monitoring host and the integrated application host need to send the collected data received from the interval layer device in both directions, and a database containing all data of the substation needs to be established in advance in the monitoring host and the integrated application host respectively. After receiving the collected data, the collected data of the opposite end is exchanged and stored in the database by using the message bus of the same platform of the two devices, and then accessed, obtained and processed by the upper application. All data is stored twice in the two hosts, and the full-amount database needs to be synchronized and refreshed within a certain time interval. The platform needs to keep the data storage, refreshing and synchronization at the back end at all times. Such frequent operations are very easy to cause data synchronization errors, and there may be message retransmission due to abnormal read tags during data synchronization, causing the technical problem of inconsistent data of the two hosts.

[0006] In order to realize the data synchronization of the station control layer monitoring host and the integrated application host, the message bus needs to be used to synchronize the data of the two hosts. In order to ensure real-time performance, after the interval layer device sends data to each of the two hosts, the received data is sent to the other host through the message bus. The two hosts receive the interval data collected by themselves and receive the data of the message bus, and periodically synchronize the full data. The respective databases also need to encapsulate interfaces for the access and writing of the local application. The complex synchronization / asynchronous mechanism needs to be used to ensure the mutual exclusivity of the operation data of each process. Under this technical solution, once an accident occurs in the substation, a large amount of data is generated in a short time, and it is difficult to ensure the correctness and real-time performance of the data reception of the two hosts, causing data missing, wrong sending and false sending, and bringing safety hazards to the production operation monitoring and endangering the safety of the power grid equipment. SUMMARY

[0007] The purpose of the present application is to provide a high-speed real-time synchronization method and system for station control layer data of an intelligent substation. The full data type, purpose, business and data structure difference of the secondary system of the substation are comprehensively considered, the substation SCD model is taken as the driving force, the cross-region shared database is constructed based on the virtualization technology, the message bus interface is encapsulated twice, the unified access interface for the business application of the station control layer is constructed, and the comprehensive monitoring and analysis of the operation state of the secondary equipment are supported. The technical problem that the existing data synchronization scheme is easy to cause data synchronization errors, brings safety hazards to the production operation monitoring, and endangers the safety of the power grid equipment is solved.

[0008] In order to achieve the above purpose, the present application adopts the following technical scheme:

[0009] In a first aspect, the present application provides a high-speed real-time synchronization method for station control layer data of an intelligent substation, comprising:

[0010] A shared memory database is established in the monitoring host, and a shared memory database read-write service end is deployed; a client is deployed in the comprehensive application host, and a database operation interface between the read-write service end is connected to form a database remote read-write interface;

[0011] The data write-in interface and the data read-out interface of the shared memory database are encapsulated twice to form internal interfaces and external interfaces; the external interfaces are added to the database service end to provide a remote service interface for the comprehensive application host to the shared memory database;

[0012] In the software platform message bus of the monitoring host and the comprehensive application host, an associated interface supporting the function call of the shared memory service end is added to form a raw data write-in interface; the operation interface of the software platform historical database of the monitoring host and the comprehensive application host is reformed and encapsulated as a historical database callback storage interface; after the message bus receives the raw data sent by the data acquisition process, on one hand, the raw data write-in interface is called to write the received data into the shared memory database; on the other hand, through the historical database callback storage interface, the real-time data is synchronously written into the software platform historical database in an asynchronous cache mode.

[0013] The further improvement of the present application lies in that the step of establishing the shared memory database in the monitoring host and deploying the shared memory database read-write service end specifically comprises:

[0014] A shared memory space is created in the monitoring host, and a shared memory first address of the shared memory space is mapped to a current process pointer p;

[0015] An SCD file of a substation is parsed to obtain a data structure, a data quantity n, Chinese and English names and a data index of main and auxiliary equipment acquisition data of the whole station;

[0016] According to the parsed data structure and the data quantity n, the n data are initialized in the shared memory space with the pointer p as a first address, and the parsed Chinese and English names and the data index are written in;

[0017] All the initialized data are numbered, and the data index and the data number are associated by using a hash hash table;

[0018] The initialized shared memory space is encapsulated, a data write-in interface and a data read-out interface are added, and a shared memory database is obtained; a shared memory database read-write service end is deployed.

[0019] The further improvement of the present application lies in that the step of encapsulating the data write-in interface and the data read-out interface of the shared memory database twice to form internal interfaces and external interfaces specifically comprises:

[0020] The data writing interface and the data reading interface of the shared memory database are secondarily encapsulated to form a single data reading interface or a data list-based data reading interface and a data writing interface, which are used as internal interfaces; and based on the data reading interface, an interface supporting single / batch data query is encapsulated to form a single data query interface, a data list query interface, a single data reading interface and a data list reading interface;

[0021] The single data query interface, the data list query interface, the single data reading interface and the data list reading interface are associated with the message reading and sending functions of the message bus to be encapsulated to form external interfaces of the shared memory database.

[0022] The application further improves the step of modifying the operation interface of the software platform history database of the monitoring host and the integrated application host and encapsulating the history database callback storage interface, and specifically comprises the following steps:

[0023] The operation interface of the history database of the software platform of the monitoring host and the integrated application host is modified, a data storage callback function is added, and the original history data storage function is encapsulated into the history database callback storage interface in the form of callback.

[0024] The application further improves the step of modifying the operation interface of the software platform history database of the monitoring host and the integrated application host and encapsulating the history database callback storage interface, and specifically comprises the following steps:

[0025] In the second aspect, the application provides a high-speed real-time synchronization system for data of a station control layer of an intelligent substation, which comprises:

[0026] A monitoring host, wherein a shared memory database is established in the monitoring host, and a read-write service end is deployed in the shared memory database; a data writing interface and a data reading interface of the shared memory database are secondarily encapsulated to form internal interfaces and external interfaces; the external interfaces join a database service end to provide a remote service interface of the shared memory database for an integrated application host;

[0027] An integrated application host, wherein a client is deployed in the integrated application host; a database operation interface between the client and the read-write service end is connected to form a database remote read-write interface;

[0028] A software platform message bus is used for communication between the monitoring host and the integrated application host; an associated interface supporting a function call of the shared memory service end is added in the software platform message bus to form a data writing interface; and an operation interface of a software platform history database of the monitoring host and the integrated application host is encapsulated into a history database callback storage interface.

[0029] The further improvement of the present application is that after the message bus receives the raw data sent by the data collection process, on one hand, the raw data writing interface is called to write the received data into the shared memory database; on the other hand, the historical database callback storage interface is called to synchronously write the real-time data into the software platform historical database through an asynchronous cache mode.

[0030] The further improvement of the present application is that the shared memory database in the monitoring host is established by the following method:

[0031] A shared memory space is created in the monitoring host, and a shared memory first address of the shared memory space is mapped into a current process pointer p;

[0032] The substation SCD file is parsed to obtain a data structure, a data quantity n, Chinese and English names and a data index of the whole station main and auxiliary equipment collection data;

[0033] According to the parsed data structure and the data quantity n, the n data are initialized in the shared memory space with the pointer p as a first address, and the parsed Chinese and English names and the data index are written in;

[0034] All the initialized data are numbered, and the data index and the data number are associated by using a hash hash table;

[0035] The initialized shared memory space is encapsulated to increase a data writing interface and a data reading interface, so as to obtain a shared memory database; and a shared memory database read-write service end is deployed.

[0036] The further improvement of the present application is that the data writing interface and the data reading interface of the shared memory database are encapsulated twice to form internal interfaces and external interfaces, and specifically include:

[0037] The data writing interface and the data reading interface of the shared memory database are encapsulated twice to form a single or a data list based data reading interface and a data writing interface as internal interfaces; and based on the data reading interface, an interface supporting single / batch data query is encapsulated, that is, a single data query interface, a data list query interface, a single data reading interface and a data list reading interface;

[0038] The single data query interface, the data list query interface, the single data reading interface and the data list reading interface are associated with the message reading and sending functions of the message bus to encapsulate external interfaces of the shared memory database.

[0039] The further improvement of the present application is that the historical database callback storage interface is established by the following method:

[0040] The historical database operation interface of the monitoring host and the software platform of the integrated application host is reformed, a data storage callback function is added, and the original historical data storage function is encapsulated into a historical database callback storage interface in the form of callback.

[0041] Compared with the prior art, the application has the following beneficial effects:

[0042] The application provides a high-speed real-time synchronization method for a data of a station control layer of an intelligent substation, comprising the following steps: establishing a shared memory database in a monitoring host, encapsulating an interface of the shared memory database, forming a data writing interface and a data reading interface, and deploying a shared memory database read-write server; deploying a client in an integrated application host, establishing a connection between a database operation interface of the client and the read-write server, and forming a database remote read-write interface; encapsulating the data writing interface and the data reading interface of the shared memory database again, forming an internal interface and an external interface; adding the external interface to a database server, and providing a remote service interface of the shared memory database for the integrated application host; adding a support interface for a function call of the shared memory server in a software platform message bus of the monitoring host and the integrated application host, and forming a raw data writing interface; reforming an operation interface of a historical database of a software platform of the monitoring host and the integrated application host, and encapsulating the operation interface into a historical database callback storage interface; after the message bus receives raw data sent by a data acquisition process, on one hand, the raw data writing interface is called, and the received data is written into the shared memory database; on the other hand, through the historical database callback storage interface, real-time data is synchronously written into the historical database of the software platform in the form of asynchronous caching. In the application, four external access interfaces of the shared memory database are formed by secondary encapsulation through the software platform message bus interface, a historical data storage callback interface is formed by encapsulation through a historical platform data access interface, and the historical data storage callback interface is deployed to a server, so that an upper application function can realize real-time data access to the shared memory database through the four external interfaces; the data acquisition process can realize automatic writing of real-time data into the historical database by calling the historical data storage callback interface and calling the historical data storage function.

[0043] In the application, the upper application does not need to consider the consistency of double-machine database synchronization, real-time data is directly provided by the shared memory database, and the source is unique; historical data is provided by the historical database, and the source is unique.

[0044] In the application, the data acquisition process only needs to call the newly added raw data writing interface to realize high-speed writing of real-time data into the memory, and based on the callback mechanism, the historical data storage interface is asynchronously called when the acquisition data is received, so that the storage of real-time data can be realized synchronously.

[0045] In the application, the shared memory database is deployed on the monitoring host or the integrated application host, and another machine only needs to deploy the corresponding client to obtain real-time data and historical data, guaranteeing the uniqueness of the data, without complex double-machine data synchronization, and effectively dealing with the high concurrency problem in the signal avalanche situation.

[0046] In the application, the "shared memory + message bus" is used to realize the convergence and storage of real-time data of double machines, avoid the complex synchronization mechanism problem caused by the double machines collecting data and forwarding, and construct the unique data source under the premise of ensuring real-time and accuracy.

[0047] In the application, the intermediate layer of data collection and data application is encapsulated twice, the data written by the collection process and the data accessed by the upper application are realized through a small number of interfaces, the interactive boundary is simple and the logic is clear, the data forwarding link is reduced, and the data processing efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS

[0048] The accompanying drawings, which form a part of this application, are included to provide a further understanding of the application, and are incorporated in and constitute a part of this application. The embodiments of the application illustrated in the drawings, and their description thereto, are presented and are included in the application to provide further explanation of the application, and are not intended to limit the application. In the drawings:

[0049] Figure 1 It is a flowchart of a high-speed real-time synchronization method for station control layer data of an intelligent substation according to embodiment 1 of the application;

[0050] Figure 2 It is a flowchart of a high-speed real-time synchronization method for station control layer data of an intelligent substation according to embodiment 2 of the application;

[0051] Figure 3 It is a structural diagram of a high-speed real-time synchronization system for station control layer data of an intelligent substation according to the application. DETAILED DESCRIPTION

[0052] The application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other without conflict.

[0053] The following detailed description is exemplary description, which is intended to provide further detailed description of the application. Unless otherwise specified, all technical terms used in the application have the same meaning as understood by those skilled in the art. The terms used in the application are only used to describe the specific embodiments, and are not intended to limit the exemplary embodiments according to the application.

[0054] Embodiment 1

[0055] The application establishes a shared memory database based on a substation SCD model file, encapsulates unified write and read interfaces based on a message bus, and supports data acquisition of upper-layer business applications of monitoring hosts and integrated application hosts.

[0056] Referring to Figure 1 As shown in the drawings, the application provides a high-speed real-time synchronization method for station control layer data of an intelligent substation, comprising the following steps:

[0057] S1, establishing a shared memory database

[0058] S11, creating a shared memory space in a monitoring host, and mapping a shared memory first address of the shared memory space to a current process pointer p;

[0059] S12, parsing a substation SCD file (SCD is an abbreviation of substation configuration description in IEC61850 standard of the substation, i.e. a full-station system configuration file), obtaining data structures and data quantity n of main and auxiliary equipment collection data, including data Chinese and English names and data indexes;

[0060] S13, according to the parsed data structures and data quantity n, taking the pointer p obtained in step S11 as a first address, initializing n data in the shared memory space, and writing the parsed data Chinese and English names and data indexes;

[0061] S14, numbering (1-n) all the initialized data, and associating the data indexes with the data numbers by using a hash hash table;

[0062] S15, encapsulating the initialized shared memory space, adding data write interfaces and data read interfaces, and obtaining a shared memory database; deploying a shared memory database read-write service end;

[0063] S16, deploying a client in an integrated application host, establishing a connection between the database operation interface of the shared memory database read-write service end, and forming a database remote read-write interface.

[0064] S2, encapsulating database interfaces based on a message bus

[0065] S21, secondarily encapsulating the data write interfaces and data read interfaces of the shared memory database generated in S1, forming write and read interfaces supporting single or batch data reading and writing based on a data list, and based on the data read interfaces, encapsulating interfaces supporting single / batch data query: single data query interfaces, data list query interfaces, single data read interfaces, and data list read interfaces;

[0066] S22, associate the aforementioned increased single data query interface, data list query interface, single data read interface, data list read interface with the message reading and sending function of the message bus, encapsulate to form four interfaces of the shared memory database to the outside, meet the access of the upper application to the shared memory database.

[0067] S23, add the generated single data query interface, data list query interface, single data read interface, data list read interface to the database server, provide a remote service interface for the shared memory database of the comprehensive application host.

[0068] S3, encapsulate the data storage interface based on the callback mechanism

[0069] S31, in the software platform message bus of the monitoring host and the comprehensive application host, increase the associated interface supporting the call of the shared memory database read-write server function, form a data writing interface, realize that the message bus receives the data sent by the data acquisition process to write into the shared memory database;

[0070] S32, transform the historical database operation interface of the software platform of the monitoring host and the comprehensive application host, increase the data storage callback function, and encapsulate the original historical data storage function into a historical database callback storage interface in the form of callback, and provide it for the message bus to call;

[0071] S33, after the message bus receives the raw data sent by the data acquisition process, call the historical database callback storage interface increased in the foregoing step, on the one hand, call the raw data writing interface to write the received data into the shared memory database for the upper application to access, on the other hand, through the data storage callback function, through the asynchronous caching mode, synchronously write the real-time data into the software platform historical database, realize writing data into the platform historical database without affecting the high-speed reception of real-time data, meet the data statistical analysis demand.

[0072] According to the above three steps, the shared memory database, two internal read-write interfaces of the shared memory database, four external access interfaces of the shared memory database, and the callback data storage interface of the historical database are deployed in the substation monitoring host and the comprehensive application host, realizing the data synchronization from data acquisition to storage and application. After the interval layer device collects data and reaches the monitoring host and the comprehensive application host, the data is quickly written through the two internal interfaces of the shared memory database, and the real-time data is stored into the historical database through the callback data storage interface. The various business functions on the monitoring host and the comprehensive application host realize the access to real-time data and historical data through the six external interfaces and the existing historical data access interface.

[0073] The main device data collected by the monitoring host and the auxiliary device data collected by the comprehensive application host need to be converged and stored to ensure real-time synchronization of the data of the two hosts for access by an upper application.

[0074] The existing synchronization method is a mutual forwarding method of collected data based on a software platform message bus to ensure consistency of the data of the two hosts, and the data needs to be stored in two copies and needs to be synchronized in the whole database at regular intervals, and the internal mechanism is complex, and when a signal avalanche occurs in a substation, data may be missed, sent incorrectly or sent by mistake.

[0075] In the aspect, a shared memory database is built in a single machine relying on an SCD model, an internal high-speed real-time read-write interface is encapsulated, and a server is generated. A client is deployed in another machine, and a C / S architecture is used to achieve point-to-point direct connection to realize fast writing of the main and auxiliary collected data in the shared memory database.

[0076] Embodiment 2

[0077] Please refer to Figure 2 As shown in the figure, the application provides a high-speed real-time synchronization method for data of a station control layer of an intelligent substation, which comprises the following steps:

[0078] S101, a shared memory database is built in a monitoring host, and a shared memory database read-write server is deployed; a client is deployed in a comprehensive application host, and a database operation interface between the read-write server is connected to form a database remote read-write interface;

[0079] S102, a data writing interface and a data reading interface of the shared memory database are encapsulated twice to form an internal interface and an external interface; the external interface is added to the database server to provide a remote service interface of the shared memory database for the comprehensive application host;

[0080] S103, in a software platform message bus of the monitoring host and the comprehensive application host, an associated interface supporting a function call of the shared memory server is added to form a raw data writing interface; an operation interface of a software platform historical database of the monitoring host and the comprehensive application host is modified and encapsulated as a historical database callback storage interface; after the message bus receives raw data sent by a data collection process, on one hand, the raw data writing interface is called to write the received data into the shared memory database; on the other hand, through the historical database callback storage interface, real-time data is written into the software platform historical database in an asynchronous cache mode.

[0081] In a specific embodiment, the step of building a shared memory database in a monitoring host and deploying a shared memory database read-write server specifically comprises:

[0082] A shared memory space is created in the monitoring host, and a shared memory first address of the shared memory space is mapped into a current process pointer p;

[0083] parsing the substation SCD file to obtain data structures, data quantity n, Chinese and English names, and data indexes of main and auxiliary equipment data collection of the whole station;

[0084] According to the data structure and the data quantity n obtained by parsing, initialization of n data is completed in the shared memory space with the pointer p as the first address, and the Chinese and English names and the data indexes obtained by parsing are written.

[0085] All the initialized data are numbered, and the data indexes are associated with the data numbers by using a hash table.

[0086] The initialized shared memory space is encapsulated, a data writing interface and a data reading interface are added, and a shared memory database is obtained; and a shared memory database read-write server is deployed.

[0087] In a specific embodiment, the step of encapsulating the data writing interface and the data reading interface of the shared memory database twice to form internal and external interfaces specifically includes:

[0088] The data writing interface and the data reading interface of the shared memory database are encapsulated twice to form a single or data list-based data reading interface and a data writing interface as an internal interface; and based on the data reading interface, an interface supporting single / batch data query is encapsulated, including a single data query interface, a data list query interface, a single data reading interface, and a data list reading interface.

[0089] The single data query interface, the data list query interface, the single data reading interface, and the data list reading interface are associated with the message reading and sending functions of the message bus, and are encapsulated to form an external interface of the shared memory database.

[0090] In a specific embodiment, the step of modifying the operation interface of the software platform historical database of the monitoring host and the integrated application host and encapsulating it as a historical database callback storage interface specifically includes:

[0091] The historical database operation interface of the software platform of the monitoring host and the integrated application host is modified, a data storage callback function is added, and the original historical data storage function is encapsulated as a historical database callback storage interface in the form of a callback.

[0092] In a specific embodiment, it further includes the step of accessing the historical data stored in the software platform historical database by the integrated application host through the historical data access interface in the message bus.

[0093] Embodiment 3

[0094] Please refer to Figure 3As shown, the application provides a smart substation station control layer data high-speed real-time synchronization system, comprising: a monitoring host, an integrated application host and a software platform message bus.

[0095] The monitoring host has a shared memory database established therein; the shared memory database is deployed with a read-write service end; a data writing interface and a data reading interface of the shared memory database are twice encapsulated to form internal interfaces and external interfaces; the external interfaces join a database service end to provide a remote service interface for the integrated application host to the shared memory database;

[0096] The shared memory database in the monitoring host is established by the following method:

[0097] A shared memory space is created in the monitoring host, and a shared memory first address of the shared memory space is mapped to a current process pointer p;

[0098] An SCD file of the substation is parsed to obtain a data structure, a data quantity n, Chinese and English names and a data index of main and auxiliary equipment acquisition data of the whole station;

[0099] According to the parsed data structure and the data quantity n, n data are initialized in the shared memory space with the pointer p as a first address, and the parsed Chinese and English names and the data index are written in;

[0100] All the initialized data are numbered, and the data index and the data number are associated by using a hash hash table;

[0101] The initialized shared memory space is encapsulated to increase a data writing interface and a data reading interface to obtain a shared memory database; and a shared memory database read-write service end is deployed.

[0102] In a specific embodiment, the data writing interface and the data reading interface of the shared memory database are twice encapsulated to form internal interfaces and external interfaces, specifically including:

[0103] The data writing interface and the data reading interface of the shared memory database are twice encapsulated to form a single or a data list-based data reading interface and a data writing interface as internal interfaces; and based on the data reading interface, an interface supporting single / batch data query is encapsulated, including a single data query interface, a data list query interface, a single data reading interface and a data list reading interface;

[0104] The single data query interface, the data list query interface, the single data reading interface and the data list reading interface are associated with a message reading and sending function of the message bus to encapsulate external interfaces of the shared memory database.

[0105] The comprehensive application host is deployed with a client; a database operation interface between the client and the read-write server is connected to form a database remote read-write interface.

[0106] A software platform message bus is used to monitor the communication between the host and the comprehensive application host; an associated interface supporting the function call of the shared memory server is added in the software platform message bus to form a raw data writing interface; the operation interface of the software platform historical database of the host and the comprehensive application host is encapsulated as a historical database callback storage interface; after the message bus receives the raw data sent by the data collection process, on one hand, the raw data writing interface is called to write the received data into the shared memory database; on the other hand, through the historical database callback storage interface, the real-time data is synchronously written into the software platform historical database in an asynchronous cache mode.

[0107] In a specific embodiment, the historical database callback storage interface is established by the following method:

[0108] The historical database operation interface of the software platform of the host and the comprehensive application host is reformed, a data storage callback function is added, and the original historical data storage function is encapsulated as the historical database callback storage interface in a callback form.

[0109] In a specific embodiment, the message bus has a historical data access interface; the comprehensive application host can access the historical data stored in the software platform historical database through the original historical data access interface in the message bus.

[0110] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0111] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the computer or other programmable data processing devices produce a device that implements the flowcharts and / or block diagrams. Figure 1 one flow or multiple flows and / or blocks Figure 1means for performing the function specified by the block or blocks.

[0112] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flow Figure 1 one or more flows and / or blocks Figure 1 one or more blocks or means for performing the function specified by the block or blocks.

[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 one or more flows and / or blocks Figure 1 one or more blocks or steps for performing the function specified by the block or blocks.

[0114] Finally, it should be noted that the above-mentioned embodiments are merely used to illustrate the technical solutions of the present application, rather than limiting the same. Even though the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or equivalent replaced without departing from the spirit and scope of the present application, and any modification or equivalent replacement should be covered within the scope of protection of the claims of the present application.

Claims

1. A method for high-speed real-time synchronization of data at the station control layer of an intelligent substation, characterized in that, The application relates to a method for realizing remote data access of a shared memory database in a software platform of a power supply enterprise. The method comprises the following steps: A shared memory database is established in a monitoring host, and a shared memory database read-write service end is deployed; a client is deployed in a comprehensive application host, a connection is established between a database operation interface of the read-write service end, and a remote read-write interface of the database is formed; Data writing and reading interfaces of the shared memory database are encapsulated twice to form internal and external interfaces; the external interface is added to the database service end to provide a remote service interface of the shared memory database for the comprehensive application host; In a software platform message bus of the monitoring host and the comprehensive application host, an associated interface supporting function calling of the shared memory service end is added to form a raw data writing interface; Operation interfaces of a historical database of the software platform of the monitoring host and the comprehensive application host are reformed and encapsulated as a historical database callback storage interface; after receiving raw data sent by a data acquisition process, the message bus calls the raw data writing interface to write the received data into the shared memory database; and through the historical database callback storage interface, real-time data is synchronously written into the historical database of the software platform through an asynchronous cache mode; The step of establishing the shared memory database in the monitoring host and deploying the shared memory database read-write service end comprises the following steps: A shared memory space is created in the monitoring host, and a shared memory first address of the shared memory space is mapped into a current process pointer p; A transformer substation SCD file is parsed to obtain a data structure, a data quantity n, Chinese and English names and a data index of main and auxiliary equipment data acquisition data of the whole station; According to the parsed data structure and the data quantity n, n data are initialized in the shared memory space with the pointer p as a first address, and the parsed Chinese and English names and the data index are written in; All the initialized data are numbered, and a data index and a data number are associated through a hash table; 2. The method of claim 1, wherein the method comprises: The initialized shared memory space is encapsulated, a data writing interface and a data reading interface are added, and a shared memory database is obtained; the shared memory database read-write service end is deployed. The step of encapsulating the data writing and reading interfaces of the shared memory database twice to form internal and external interfaces comprises the following steps: The data writing and reading interfaces of the shared memory database are encapsulated twice to form a single or a data list-based data reading interface and a data writing interface as internal interfaces; and based on the data reading interface, an interface supporting single / batch data query is encapsulated, namely, a single data query interface, a data list query interface, a single data reading interface and a data list reading interface; 3. The method of claim 1, wherein the method further comprises: The added single data query interface, the data list query interface, the single data reading interface and the data list reading interface are associated with message reading and sending functions of the message bus to encapsulate external interfaces of the shared memory database. The step of reengineering operation interfaces of a historical database of a software platform of a monitoring host and a comprehensive application host and encapsulating the operation interfaces as a historical database callback storage interface comprises the following steps: The historical database operation interface of the monitoring host and the comprehensive application host software platform is reformed, a data storage callback function is added, and the original historical data storage function is encapsulated into a historical database callback storage interface in the form of callback.

4. The method of claim 1, wherein the method further comprises: The method also includes the step of accessing the historical data stored in the software platform historical database by the comprehensive application host through the historical data access interface in the message bus.

5. An intelligent substation station control layer data high-speed real-time synchronization system, characterized in that, The method comprises: a monitoring host, a shared memory database is established in the monitoring host; a shared memory database is deployed with a read-write service end; the data writing interface and the data reading interface of the shared memory database are twice encapsulated to form internal interfaces and external interfaces; the external interfaces join the database service end to provide a remote service interface for the comprehensive application host to the shared memory database; a comprehensive application host, the comprehensive application host is deployed with a client; the database operation interface between the client and the read-write service end is connected to form a database remote read-write interface; a software platform message bus for communication between the monitoring host and the comprehensive application host; the software platform message bus is added with an associated interface supporting the function call of the shared memory service end to form a raw data writing interface; the operation interface of the software platform historical database of the monitoring host and the comprehensive application host is encapsulated into a historical database callback storage interface; after the message bus receives the raw data sent by the data acquisition process, on one hand, the raw data writing interface is called to write the received data into the shared memory database; on the other hand, through the historical database callback storage interface, the real-time data is synchronously written into the software platform historical database in the form of asynchronous caching; the shared memory database in the monitoring host is established by the following method: a shared memory space is created in the monitoring host, and the shared memory first address of the shared memory space is mapped to the current process pointer p; a substation SCD file is parsed to obtain the data structure, the data quantity n, the Chinese and English names, and the data index of the main and auxiliary equipment data acquisition data of the whole station; according to the data structure and the data quantity n obtained by parsing, the n data are initialized in the shared memory space with the pointer p as the first address, and the Chinese and English names and the data index obtained by parsing are written in; all the initialized data are numbered, and the data index and the data number are associated by using a hash table; the initialized shared memory space is encapsulated to add the data writing interface and the data reading interface to obtain the shared memory database; the shared memory database read-write service end is deployed.

6. The intelligent substation station control layer data high-speed real-time synchronization system according to claim 5, characterized in that, the data writing interface and the data reading interface of the shared memory database are twice encapsulated to form internal interfaces and external interfaces, specifically including: the data writing interface and the data reading interface of the shared memory database are twice encapsulated to form a data reading interface and a data writing interface supporting a single or a data list, as internal interfaces; and based on the data reading interface, an interface supporting single / batch data query is encapsulated: a single data query interface, a data list query interface, a single data reading interface, and a data list reading interface; The increased single data query interface, data list query interface, single data reading interface, data list reading interface are associated with the message reading and sending functions of the message bus, and are encapsulated to form the external interface of the shared memory database.

7. The intelligent substation station control layer data high-speed real-time synchronization system according to claim 5, characterized in that, The historical database callback storage interface is established by the following method: The historical database operation interface of the monitoring host and the comprehensive application host software platform is reformed, a data storage callback function is added, and the original historical data storage function is encapsulated into the historical database callback storage interface in the form of callback.

Citation Information

Patent Citations

  • Method and device for monitoring message bus of power system

    CN112865311A

  • Systems and methods for implementing and scoring computer network defense exercises

    US8250654B1