Real-time library downloading method and device, real-time library updating method and device and computer program product

By using preset real-time library instructions in the grid scheduling system to obtain and import grid model data from the relationship library, the problem of long query time and memory restructuring affecting efficiency caused by the large amount of grid model data is solved, and faster data processing and system response are achieved.

CN119537420APending Publication Date: 2025-02-28CYG SUNRI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411444391.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-02-28

Smart Images

  • Figure CN119537420A_ABST
    Figure CN119537420A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of power systems, and provides a real-time library downloading method, an updating method, a device and a computer program product.The real-time library downloading method comprises the steps that when a power grid dispatching system is started, real-time library downloading service is operated, a preset real-time library instruction is obtained from a relation library, the real-time library instruction is analyzed, and the real-time library downloading service is updated according to the real-time library instruction; and obtaining target power grid model data, and importing the target power grid model data into a real-time library. Therefore, the delay of data query and processing is reduced, and the power grid dispatching system can respond to the change of the power grid state more quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of real-time libraries, and in particular, relates to a real-time library downloading method, updating method, device and computer program product. Background Art

[0002] At present, the method of downloading the real-time library of the power grid dispatching system mainly includes the following steps: reading the power grid model data from the relational library, writing the read power grid model data into the memory, and reorganizing the memory according to the index algorithm to meet the high-speed access and fast retrieval requirements of the real-time library. After that, the power grid model data is downloaded to the real-time library. Among them, the download process includes the reading and assembly of the power grid model data, and the reading of the power grid model data is the relational library query process. The current power grid model data has a large amount of data, resulting in a long query time. In addition, after reading the power grid model data from the relational library and writing it into the memory, in order to meet the requirements of high-speed access and fast retrieval of the real-time library, the memory needs to be reorganized according to the index algorithm. This process will affect the download efficiency of the real-time library. Summary of the invention

[0003] The embodiments of the present application provide a real-time library downloading method, updating method, device and computer program product, which can solve the technical problems in the prior art that the amount of power grid model data is large, resulting in a long query time, and the memory needs to be reorganized according to the index algorithm, which affects the efficiency of real-time library downloading.

[0004] In a first aspect, an embodiment of the present application provides a real-time library downloading method, comprising:

[0005] When the power grid dispatching system is started, the real-time library download service is run to obtain the preset real-time library instructions from the relationship library;

[0006] Parsing the real-time library instruction to obtain target power grid model data;

[0007] The target power grid model data is imported into a real-time library.

[0008] In a possible implementation manner of the first aspect, the method further includes:

[0009] Cutting the first power grid model data and creating table structure information;

[0010] Parsing the imported power grid model file, and mapping the parsing result to the relationship library based on the table structure information to generate second power grid model data;

[0011] Based on the real-time library data dictionary, the second power grid model data is converted into the real-time library instructions, and stored in the real-time library instruction table in the relationship library.

[0012] In a possible implementation manner of the first aspect, parsing the real-time library instruction to obtain target power grid model data includes:

[0013] Parsing the real-time library instruction to obtain a parsing result;

[0014] The target power grid model data is acquired from the relationship library based on the analysis result.

[0015] In a possible implementation manner of the first aspect, before importing the target power grid model data into a real-time database, the method further includes:

[0016] The target power grid model data is subjected to an import preprocessing operation; wherein the import preprocessing operation includes at least one of the following: data verification, data conversion, data cleaning, and data assembly.

[0017] In a possible implementation of the first aspect, the first power grid model data includes at least one of the following: power grid topology, equipment static parameter information, power grid operation data, geographic information, meteorological data, load model data, and real-time measurement data.

[0018] In a second aspect, an embodiment of the present application provides a real-time library update method, the method comprising:

[0019] In response to a modification operation on the power grid model data in the relationship library, generating an update notification and a real-time library update instruction;

[0020] After the real-time library download service receives the update notification, it parses the real-time library update instruction to obtain the power grid model data to be updated;

[0021] The power grid model data to be updated is imported into the real-time library.

[0022] In a third aspect, an embodiment of the present application provides a real-time library downloading device, comprising:

[0023] The operation module is used to run the real-time library download service when the power grid dispatching system is started, and obtain the preset real-time library instructions from the relationship library;

[0024] A parsing module, used for parsing the real-time library instruction to obtain target power grid model data;

[0025] The import module is used to import the target power grid model data into the real-time library.

[0026] In a fourth aspect, an embodiment of the present application provides a real-time library update device, comprising:

[0027] A generation module, for generating an update notification and a real-time library update instruction in response to a modification operation on the power grid model data in the relationship library;

[0028] A parsing module, configured to parse the real-time library update instruction to obtain the power grid model data to be updated after the real-time library download service receives the update notification;

[0029] The import module is used to import the power grid model data to be updated into the real-time library.

[0030] In a fifth aspect, an embodiment of the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the real-time library downloading method described in any one of the first aspect or the second aspect is implemented.

[0031] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the real-time library downloading method described in any one of the first aspect or the second aspect is implemented.

[0032] In a seventh aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer device, enables the computer device to execute the real-time library downloading method described in any one of the first aspect or the second aspect.

[0033] In an embodiment of the present application, when the power grid dispatching system is started, the real-time library download service is run, the preset real-time library instructions are obtained from the relationship library, the real-time library instructions are parsed, the target power grid model data is obtained, and the target power grid model data is imported into the real-time library. Through the preset real-time library instructions, the delay in data query and processing is reduced, so that the power grid dispatching system can respond to changes in the power grid state more quickly. In addition, the preset real-time library instructions provide flexible data processing capabilities that can adapt to different data updates and system upgrade requirements. In addition, based on the above scheme, system maintenance and expansion become easier, and new data types and models can be quickly integrated into the system.

[0034] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0036] Figure 1It is a flowchart of a real-time library downloading method provided in an embodiment of the present application;

[0037] Figure 2 It is a schematic diagram of binary stream data of a real-time library instruction provided by an embodiment of the present application;

[0038] Figure 3 It is a flowchart of a real-time library update method provided by an embodiment of the present application;

[0039] Figure 4 It is a flowchart of a real-time library downloading and updating method provided in an embodiment of the present application;

[0040] Figure 5 It is a structural schematic diagram of a real-time library downloading device provided in an embodiment of the present application;

[0041] Figure 6 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0043] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0044] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0045] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0046] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0047] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0048] Figure 1 A schematic flow chart of a real-time library downloading method provided by the present application is shown, which specifically includes the following steps.

[0049] S101, when the power grid dispatching system is started, the real-time library download service is run to obtain the preset real-time library instructions from the relationship library.

[0050] Among them, the real-time library is one of the core modules of the industrial control system. It uses the computer system memory as the main storage medium to provide a high-speed and efficient database access interface for the application module. In the power system, the application of the real-time library is particularly important. It can meet the needs of the power grid dispatching system for fast data access, real-time monitoring and early warning, and online analysis. Therefore, the real-time library has become an indispensable part of the power grid dispatching system. In the power system, the power grid model data is stored in the relational library. The real-time library is formed from the relational library through the download process. The download process is the generation process of the real-time library.

[0051] The real-time database contains power grid models, substation models, dispatching rules, alarm information, event records, real-time operation data, etc. The real-time database is the basis for the power grid dispatching system to analyze and interact with power grid intelligent devices. The power grid model, substation model and other power grid model data in the real-time database usually come from the power grid model configuration tool. The power grid model (also called power grid model data) configuration process is an offline configuration method. The field staff creates the power grid model through the configuration tool and saves it in the relationship database. When the power grid dispatching system is run for the first time, the power grid model will be downloaded from the relationship database to the real-time database.

[0052] Among them, the real-time library download service is a key component in the power grid dispatching system, responsible for importing the power grid model data in the relational library (also called relational database) into the real-time library. This service is usually run when the power grid dispatching system is started to ensure that the real-time library (also called real-time database) has the latest power grid model data for the system to use.

[0053] Among them, the real-time library instructions are a set of instructions used in the power grid dispatching system to guide the download of power grid model data to the real-time library. These instructions are generated after the power grid model data is processed and optimized and stored in the relationship library. The purpose is to improve the efficiency and speed of importing power grid model data into the real-time library.

[0054] Optionally, the real-time library instructions may include but are not limited to the following:

[0055] Identification: Specifies which power grid model data needs to be imported into the real-time library, including identification information such as the source, type, and timestamp of the data.

[0056] Data structure and format: defines how the power grid model data is organized in the real-time library, including data model, fields, data types, length, etc.

[0057] Operation instructions: including specific instructions for operations such as loading, updating, and deleting data.

[0058] Optionally, conversion rules may also be included: if the data needs to be converted from one format to another, the instructions contain these conversion rules.

[0059] In an embodiment of the present application, when the power grid dispatching system is started, the real-time library download service is run, and the pre-generated real-time library instructions are obtained from the relationship library based on the real-time library download service.

[0060] Optionally, in one embodiment, the process of generating the real-time library instruction includes:

[0061] a. Cut the first power grid model data and create table structure information.

[0062] Among them, the relational database is designed first, including table structure, data type, index, primary key and foreign key, etc. The relational database is used to store the power grid model data. In addition, a real-time library instruction table is pre-designed to store the instruction set required for downloading the power grid model data. Then, the real-time library data dictionary is defined, and according to business needs, the real-time library data dictionary configuration tool is used to cut out the required data (including specific tables, fields, data types and data lengths, etc.) from the first power grid model data, and the table structure information of the cut data is defined in the relational library. The table structure information includes creating a database table, specifying field names, data types, indexes, etc., to facilitate data storage and retrieval.

[0063] b. Parsing the imported power grid model file, and mapping the parsing result to the relationship library based on the table structure information to generate second power grid model data.

[0064] Among them, the power grid model file is imported based on the power grid model tool, and the primary system configuration, secondary system configuration, communication network and parameter configuration are parsed to obtain the parsed data (i.e., the parsing result above). After that, the parsed data is mapped to the relational library based on the table structure information to generate the second power grid model data. This mapping process involves converting the entities and relationships in the power grid model file into table structures and records in the relational library.

[0065] The power grid model files include a Substation Configuration Description (SCD) file and a Common Information Model (CIM) file.

[0066] Among them, the power grid model tool extracts relevant information from the power grid model file according to different business types and stores it in the relationship library, and supports the modification and viewing functions of the power grid model data.

[0067] c. Based on the real-time library data dictionary, convert the second power grid model data into the real-time library instructions, and store them in the real-time library instruction table in the relationship library.

[0068] The real-time library data dictionary is a configuration file that describes the mapping relationship between the power grid model data required by the business application and the real-time library. The mapping relationship includes table information, table field information, data type, data length and other information. Based on the real-time library data dictionary, it can be clearly defined which tables and fields need to be imported, as well as their data types and lengths. The real-time library data dictionary simplifies the coupling between the business system and the power grid model configuration, allowing the system to quickly respond to changes in business needs.

[0069] The real-time database data dictionary is stored in a sqlite file, Table 1 is the real-time data table information, and Table 2 is the real-time data table structure.

[0070] Application Number Real-time database table name Keyword column Database table name Loading conditions Table Classification 401 CfgSignModel id CfgSignModel 1=1order by id System Class 401 UserInfo id UserInfo 1=1order by id System Class

[0071] Table 1

[0072] Table No. Real-time database domain name Database domain name Real-time database table name Data Types Data length Column Type 403 ID id CfgSignModel int 0 0 404 SignName signname CfgSignModel string 0 0

[0073] Table 2

[0074] According to the real-time library data dictionary, the second power grid model data is converted into a real-time library instruction, which includes the location, format, loading method, storage method of the data in the real-time library, etc. The real-time library instruction contains the metadata of the data, which is used to guide the real-time library download service to extract and load the required power grid model data from the relational library. In this way, the efficiency and accuracy of data loading can be improved.

[0075] Afterwards, the generated real-time library instructions are stored in binary form in the real-time library instruction table in the relational library. These instructions can be directly read and executed when the power grid dispatching system is started or the power grid model data needs to be updated. Figure 2 shown.

[0076] The first power grid model data generally refers to original and complete power grid model data, which may include all power grid entities, attributes, relationships and configuration information. The first power grid model data may include a large amount of detailed information, but not all information needs to be used in real time.

[0077] The second power grid model data refers to the processed and optimized power grid model data, which has been tailored and converted according to the needs of the real-time library. Specifically, it is mapped and converted according to the rules in the real-time library data dictionary and is ready to be imported into the real-time library. For example, it may only contain key data required for real-time monitoring and analysis.

[0078] In an optional embodiment, the first power grid model data includes at least one of the following: power grid topology, equipment static parameter information, power grid operation data, geographic information, meteorological data, load model data, and real-time measurement data.

[0079] In the power grid dispatching system, the power grid model is a way of expressing data instantiation of the physical power grid. The power grid model data is a collection of data describing the power grid according to the rules of the power grid model. The power grid model configuration refers to the settings and definitions made when creating the power grid model. The purpose is to generate real-time library instructions in advance while generating the power grid model data.

[0080] The first power grid model data includes at least one of the following:

[0081] The grid topology includes the connection relationship and network topology of substations, lines, transformers, circuit breakers, disconnectors and other equipment.

[0082] Equipment static parameter information, including equipment rated parameters, physical characteristics, and operating limitations.

[0083] Grid operation data, including the real-time operating status of equipment, such as voltage, current, power, and frequency.

[0084] Geographic information, including the geographical location information of power grid equipment, such as longitude and latitude, plant type, etc.

[0085] Meteorological data, including meteorological information related to power grid operation, such as temperature, wind speed, humidity, etc.

[0086] Load model data is data that describes the load characteristics of the power system, including different types of load models and parameters.

[0087] Real-time measurement data, such as Phasor Measurement Unit (PMU) data and Supervisory Control And Data Acquisition (SCADA) data.

[0088] In order to facilitate the use of these data in different applications of the power system, the SCD file is used in the power grid dispatching system to describe the configuration and communication settings of the substation, and the CIM file is used to describe the various entities in the power system and the relationships between them.

[0089] S102, parsing the real-time library instruction to obtain target power grid model data.

[0090] The plug-in is called to parse the real-time library instruction to obtain the parsing result, which includes information such as the location, format, loading method, and storage method of the data in the real-time library. The target power grid model data is obtained from the relationship library based on the parsing result. In this way, during the download process, the real-time library can directly read the target power grid model data from a predetermined location according to the parsing result without the need for complex query and retrieval operations.

[0091] S103, importing the target power grid model data into a real-time database.

[0092] In the embodiment of the present application, after the target power grid model data is acquired from the relationship library, a stable connection with the real-time library is established to transmit the data from the relationship library to the real-time library.

[0093] Optionally, the target power grid model data acquired by the relational database already meets the format requirements of the real-time database, and no further data assembly is required.

[0094] In an embodiment of the present application, when the power grid dispatching system is started, the real-time library download service is run, the preset real-time library instructions are obtained from the relationship library, the plug-in is called to parse the real-time library instructions, and the download statements that can be recognized by the real-time library are generated according to the real-time library data dictionary, that is, the target power grid model data is obtained, and the target power grid model data is imported into the real-time library. Through the preset real-time library instructions, the delay in data query and processing is reduced, so that the power grid dispatching system can respond to changes in the power grid status more quickly. In addition, the preset real-time library instructions provide flexible data processing capabilities that can adapt to different data updates and system upgrade requirements. In addition, based on the above scheme, system maintenance and expansion become easier, and new data types and models can be quickly integrated into the system.

[0095] In an optional embodiment, before importing the target power grid model data into the real-time library, it also includes: performing an import preprocessing operation on the target power grid model data; wherein the import preprocessing operation includes at least one of the following: data verification, data conversion, data cleaning, and data assembly.

[0096] Among them, before being transmitted to the relationship database, the target power grid model data is verified to check the integrity, accuracy and consistency of the data.

[0097] If the format of the target power grid model data does not match the requirements of the real-time library, data conversion is performed to adapt to the data model of the real-time library, including unit conversion, data type conversion, structure adjustment, etc.

[0098] Among them, data is cleaned to remove duplicate records, erroneous data or incomplete information to ensure the quality of data imported into the real-time library.

[0099] The target power grid model data may be from multiple data sources or data fragments. Therefore, after being imported into the real-time library, it is necessary to assemble the multiple data sources or data fragments into a complete data set according to the data model of the real-time library, including building relationships between data and creating data sets.

[0100] Optionally, monitor the progress and status of the data import to ensure that the data is loaded correctly into the live library.

[0101] Optionally, if any errors are encountered during the import process, implement error handling mechanisms to attempt to resolve the issues or roll back the operation.

[0102] Optionally, after the data is imported, a data check is performed to ensure that the data is consistent with the source data and meets the requirements of the real-time database.

[0103] After the power grid model data is downloaded to the real-time database, there are updates to the power grid model data, such as adding new plants and stations, adding new primary / secondary equipment. In order to avoid the shutdown of the power grid dispatching system, the power grid model data is generally updated by online publishing. Figure 3 A schematic flow chart of a real-time library update method provided by the present application is shown, which specifically includes the following steps.

[0104] S301 : In response to a modification operation on power grid model data in a relationship library, an update notification and a real-time library update instruction are generated.

[0105] S302: After receiving the update notification, the real-time library download service parses the real-time library update instruction to obtain the power grid model data to be updated.

[0106] S303: Import the to-be-updated power grid model data into the real-time database.

[0107] Among them, during the operation of the power grid dispatching system, when the power grid model data in the relationship library changes and needs to be released, the changed part of the power grid model data will be downloaded from the relationship library to the real-time library again to realize the online update of the power grid model data in the real-time library.

[0108] In the embodiment of the present application, the power grid model tool is used to modify the power grid model data in the relationship library online, the plug-in is called to generate the change data and update notification, and the real-time library update instruction is generated based on the change data. After that, the update notification is published to the real-time library download service through the message bus. After receiving the update notification, the real-time library download service calls the plug-in to parse the real-time library update instruction and obtains the power grid model data to be updated stored in the relationship library. After that, the power grid model data to be updated is transmitted to the real-time library.

[0109] The real-time library update instruction and the above-mentioned real-time library instruction refer to the same type of instruction, but the real-time library update instruction emphasizes more on the instruction for updating the data in the real-time library.

[0110] Optionally, a model change table may be generated to store the real-time library update instruction. After receiving the update notification, the real-time library download service obtains the model change table, calls the plug-in to parse the real-time library update instruction, and updates the data.

[0111] In an embodiment of the present application, real-time library instructions are generated while the power grid model data is saved, reducing the process of reading the power grid model data and assembling the data during the real-time library download process, realizing functions such as rapid startup of the power grid dispatching system and rapid online update of the power grid model data, and accelerating the system's failure recovery capability.

[0112] In order to facilitate the understanding of the download and update process, here is combined Figure 4This flowchart is to show how the power grid model data is processed and imported into the real-time library for use by the power grid dispatching system. Each real-time library instruction may contain specific data operation instructions, such as instructions for inserting, updating or deleting power grid model data. The power grid model tool generates or updates the power grid model data, and at the same time, the pre-generated real-time library instructions are also created or updated. The real-time library download service reads these pre-generated real-time library instructions from the relational database. Based on the pre-generated plug-in (i.e. the plug-in mentioned above), these instructions are parsed to obtain the required power grid model data, and the real-time library download service imports the required power grid model data into the real-time library.

[0113] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0114] Corresponding to the real-time library downloading method described in the above embodiment, Figure 5 A structural block diagram of a real-time library downloading device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0115] Reference Figure 5 The real-time library downloading device comprises:

[0116] The operation module is used to run the real-time library download service when the power grid dispatching system is started, and obtain the preset real-time library instructions from the relationship library;

[0117] A parsing module, used for parsing the real-time library instruction to obtain target power grid model data;

[0118] The import module is used to import the target power grid model data into the real-time library.

[0119] In an optional embodiment, the device further includes a real-time library instruction generation module, which is used to:

[0120] Cutting the first power grid model data and creating table structure information;

[0121] Parsing the imported power grid model file, and mapping the parsing result to the relationship library based on the table structure information to generate second power grid model data;

[0122] Based on the real-time library data dictionary, the second power grid model data is converted into the real-time library instructions, and stored in the real-time library instruction table in the relationship library.

[0123] In an optional embodiment, the parsing module is used to:

[0124] Parsing the real-time library instruction to obtain a parsing result;

[0125] The target power grid model data is acquired from the relationship library based on the analysis result.

[0126] In an optional embodiment, the device further includes a preprocessing module, which is used to:

[0127] The target power grid model data is subjected to an import preprocessing operation; wherein the import preprocessing operation includes at least one of the following: data verification, data conversion, data cleaning, and data assembly.

[0128] In an optional embodiment, the first power grid model data includes at least one of the following: power grid topology, equipment static parameter information, power grid operation data, geographic information, meteorological data, load model data, and real-time measurement data.

[0129] Corresponding to the real-time library updating method described in the above embodiment, the real-time library updating device provided in the embodiment of the present application only shows the part related to the embodiment of the present application for the convenience of explanation.

[0130] The real-time library updating device comprises:

[0131] A generation module, for generating an update notification and a real-time library update instruction in response to a modification operation on the power grid model data in the relationship library;

[0132] A parsing module, configured to parse the real-time library update instruction to obtain the power grid model data to be updated after the real-time library download service receives the update notification;

[0133] The import module is used to import the power grid model data to be updated into the real-time library.

[0134] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0135] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0136] An embodiment of the present application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0137] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0138] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0139] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0140] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0141] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0142] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0143] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0144] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

[0145] Figure 6 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Figure 6 As shown, the computer device of this embodiment includes: at least one processor 20 ( Figure 6 Only one is shown), a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, wherein the processor 20 implements the steps of any of the above-mentioned embodiments of the real-time library downloading method when executing the computer program 22.

[0146] The computer device may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Figure 6 It is only an example of a computer device and does not constitute a limitation of the computer device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0147] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0148] In some embodiments, the memory 21 may be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 21 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory 21 may also include both an internal storage unit of the computer device and an external storage device. The memory 21 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 21 may also be used to temporarily store data that has been output or is to be output.

[0149] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A real-time library downloading method, characterized in that: include: When the power grid dispatching system is started, the real-time library download service is run to obtain the preset real-time library instructions from the relationship library; Parsing the real-time library instruction to obtain target power grid model data; The target power grid model data is imported into a real-time library.

2. The real-time library downloading method according to claim 1, characterized in that: The method further comprises: Cutting the first power grid model data and creating table structure information; Parsing the imported power grid model file, and mapping the parsing result to the relationship library based on the table structure information to generate second power grid model data; Based on the real-time library data dictionary, the second power grid model data is converted into the real-time library instructions, and stored in the real-time library instruction table in the relationship library.

3. The real-time library downloading method according to claim 2, characterized in that: The step of parsing the real-time library instruction to obtain target power grid model data includes: Parsing the real-time library instruction to obtain a parsing result; The target power grid model data is acquired from the relationship library based on the analysis result.

4. The real-time library downloading method according to claim 2, characterized in that: Before importing the target power grid model data into the real-time database, the method further includes: The target power grid model data is subjected to an import preprocessing operation; wherein the import preprocessing operation includes at least one of the following: data verification, data conversion, data cleaning, and data assembly.

5. The real-time library downloading method according to claim 2, characterized in that: The first power grid model data includes at least one of the following: power grid topology, equipment static parameter information, power grid operation data, geographic information, meteorological data, load model data, and real-time measurement data.

6. A real-time library update method, characterized in that: The method comprises: In response to a modification operation on the power grid model data in the relationship library, generating an update notification and a real-time library update instruction; After the real-time library download service receives the update notification, it parses the real-time library update instruction to obtain the power grid model data to be updated; The power grid model data to be updated is imported into the real-time library.

7. A real-time library downloading device, characterized in that: include: The operation module is used to run the real-time library download service when the power grid dispatching system is started, and obtain the preset real-time library instructions from the relationship library; A parsing module, used for parsing the real-time library instruction to obtain target power grid model data; The import module is used to import the target power grid model data into the real-time library.

8. A real-time library updating device, characterized in that: include: A generation module, for generating an update notification and a real-time library update instruction in response to a modification operation on the power grid model data in the relationship library; A parsing module, configured to parse the real-time library update instruction to obtain the power grid model data to be updated after the real-time library download service receives the update notification; The import module is used to import the power grid model data to be updated into the real-time library.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 or the method according to claim 6 is implemented.

10. A computer program product, characterized in that A computer program product, when the computer program product is run on a computer device, causes the computer device to execute the method according to any one of claims 1 to 5 or the method according to claim 6.