A method for constructing a digital twin model interface for TT&C equipment

By constructing a digital twin model interface for measurement and control equipment, the problem of inconsistent interaction between measurement and control equipment and digital twin service platform was solved, the usability of the model and data transmission efficiency were improved, the management of multi-software collaborative simulation was simplified, and the standardization of data format was achieved.

CN120104212BActive Publication Date: 2025-12-05BEIHANG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510209733.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2025-12-05
Estimated Expiration
2045-02-25

AI Technical Summary

Technical Problem

The existing interaction methods between the digital twin model of the measurement and control equipment and the digital twin service platform are not uniform, resulting in poor usability, long model simulation time, difficulty in managing multi-software collaborative simulation, non-standard output data format, and difficulty in transmitting scattered data.

Method used

A digital twin model interface for measurement and control equipment is constructed. Controllable parameters are obtained through the search unit, the driving unit manages the model operation, the integration unit integrates data, and the encapsulation unit provides a standardized interface to realize the configuration of model parameters and the formatting of data.

Benefits of technology

It solves the problem of inconsistent interaction when the digital twin service platform calls the measurement and control equipment model, improves the usability of the model, shortens the simulation time, simplifies the management of multi-software collaborative simulation, standardizes the data format and reduces the difficulty of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104212B_ABST
    Figure CN120104212B_ABST
Patent Text Reader

Abstract

The application discloses a kind of digital twin model interface construction methods for TT&C equipment, the method comprises: model parameter acquisition module obtains controllable parameter in model running process according to TT&C equipment digital twin model file, and output is model parameter file;Model driving module configures controllable parameter according to external calling request, and drives TT&C equipment digital twin model to run;Data integration module collects and integrates the running result of TT&C equipment digital twin model according to different model output types;Interface encapsulation module realizes the encapsulation of three functions of model parameter acquisition, model driving, data integration, and provides external interface.Under the condition that the digital twin model of TT&C equipment has certain parameter configuration capability, the application can be used to realize the calling of digital twin service platform to digital twin model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer science, specifically relating to a method for constructing a digital twin model interface for measurement and control equipment. Background Technology

[0002] Measurement and control equipment refers to a type of equipment with a processor, measurement or control functions, and the ability to communicate with external devices or systems. Digital twin models built for different measurement and control equipment vary greatly in modeling methods, model size, and model operation. Currently, the external interfaces of the models are often scattered across multiple model files, resulting in inconsistent interaction methods and poor usability between the digital twin model and the digital twin service platform. Summary of the Invention

[0003] To address the aforementioned technical problems, this invention provides a method for constructing an interface for a digital twin model of measurement and control equipment. Under the condition that the digital twin model of the measurement and control equipment has certain parameter configuration capabilities, this invention provides method support for the digital twin service platform to call the digital twin model.

[0004] To achieve the above objectives, the present invention adopts the following technical solution:

[0005] A method for constructing a digital twin model interface for measurement and control equipment, comprising the following steps:

[0006] Step (1): Search for controllable parameters from the files of the digital twin model of the measurement and control equipment, and organize them into a structured model parameter file. ;

[0007] Step (2): Based on the request to call the digital twin model of the measurement and control equipment, and according to the obtained model parameter file... Configure model parameters to drive and manage the operation of the digital twin model of the measurement and control equipment.

[0008] Step (3): Collect, format, and integrate the operation results of the digital twin model of the measurement and control equipment to obtain standardized data files. ;

[0009] Step (4): Encapsulate the three functions that implement steps (1) to (3) respectively, and provide external interfaces.

[0010] Furthermore, step (1) includes:

[0011] Step (1.1): Filter all digital twin model files of the measurement and control equipment to obtain all... An editable model file Form a set ;

[0012] Step (1.2): Search the set of editable model files one by one. Filter all of the global parameters defined in [the document / framework]. A controllable parameter Composition of controllable parameter set The names, meanings, associated statements, adjustable ranges, and adjustment methods of controllable parameters are described using markup language and saved as structured model parameter files. .

[0013] Furthermore, step (2) includes:

[0014] Step (2.1): Parse the request to call the digital twin model of the measurement and control equipment to obtain... Model initialization conditions Form a set The first in the set element ,in For parameter name, For parameter values, ;

[0015] Step (2.2): Based on the model parameter file one by one the initialization condition set Perform validity checks on the elements in the set. Validate the initialization condition set. Do the elements satisfy the model parameter file? Requirements. If the initialization condition set If an invalid element is found, an error message is returned and step (2) ends; in all initialization condition sets When an element is valid, it is configured into the digital twin model of the measurement and control equipment one by one;

[0016] Step (2.3): For single-platform simulation models, run the driver directly; for multi-platform co-simulation models, first check if the model call request specifies the model startup order. If the startup order is specified, start the model according to the requirements. If the startup order is not specified, start the model in descending order of model files and record the startup order. .

[0017] Furthermore, step (3) includes:

[0018] Step (3.1): Based on the output content during and after model execution, classify the models into those capable of outputting in file formats. A model that lacks file format output capability but possesses data stream output capability. A model that lacks both file format output capability and data stream output capability. ,against Collect the output files of the model common 1, forming a set of output files ,against , and Each data stream output is sequentially stored in the database according to its timing relationship, resulting in... Data files , forming a data file collection ,against The design monitoring program converts the data from the model simulation process into... Each data stream is output and stored sequentially in the database according to its timing relationship. Data files , forming a data file collection ;

[0019] Step (3.2), for the set of output files Extract each output file The data structure and data content described in the document are reorganized into a specified file format to obtain... files , obtain the set For a collection of data files and For each and After data processing, the data is exported to a file in the specified format, resulting in... files and files , forming a set ;

[0020] Step (3.3): Start the model in the order of step (2.3). And the requirements in the model call request, for a standard format file set. The output file is obtained by uniform naming and compression. .

[0021] Furthermore, step (4) includes:

[0022] Step (4.1): Encapsulate the three functions that implement steps (1) to (3) respectively. The encapsulated function that implements step (1) takes all files of the digital twin model as input and outputs the model parameter file as output. The input to the function in step (2) after encapsulation is the model parameter file. The digital twin model call request outputs the model startup order. The input to the function in the encapsulated implementation step (3) is the model startup sequence. The digital twin model call request outputs as follows: ;

[0023] Step (4.2): Based on the input and output of the three functions in the encapsulated implementation steps (1) to (3), design the model's URL, HTTP method, request parameters, request body, and response body to implement the external interface.

[0024] On the other hand, the present invention provides a digital twin model interface construction device for measurement and control equipment, comprising:

[0025] The search unit is used to search for controllable parameters from the files of the digital twin model of the measurement and control equipment, and organize them into a structured model parameter file. ;

[0026] The drive unit is used to execute the request for calling the digital twin model of the measurement and control equipment according to the obtained model parameter file. Configure model parameters to drive and manage the operation of the digital twin model of the measurement and control equipment;

[0027] The integration unit is used to collect, format, and integrate the operational results of the digital twin model of the measurement and control equipment to obtain standardized data files. ;

[0028] The encapsulation unit is used to encapsulate the three functions that respectively implement the search unit, the driver unit, and the integration unit, and to provide external interfaces.

[0029] Thirdly, the present invention provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method for constructing a digital twin model interface for measurement and control equipment.

[0030] Fourthly, the present invention provides a computer-readable storage medium storing executable instructions thereon, which, when executed by a processor, enable the processor to implement the aforementioned method for constructing a digital twin model interface for measurement and control equipment.

[0031] The beneficial effects of this invention are as follows:

[0032] This invention proposes an interface construction method that can solve the problem of inconsistent interaction methods faced by digital twin service platforms when calling digital twin models of measurement and control equipment. Furthermore, the interface constructed based on this invention can also, to some extent, address issues such as long model simulation times, difficulty in managing multi-software collaborative simulations, non-standard output data formats, and the difficulty of transmitting scattered data. Attached Figure Description

[0033] Figure 1 This is a flowchart of a method for constructing a digital twin model interface for measurement and control equipment according to the present invention.

[0034] Figure 2 A flowchart illustrating the operation of a digital twin model of measurement and control equipment;

[0035] Figure 3 A flowchart illustrating the operational results of integrating the digital twin model of measurement and control equipment. Detailed Implementation

[0036] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0037] This invention relates to an interface construction method for digital twin models of measurement and control equipment. The digital twin model of measurement and control equipment needs a reliable and effective calling method to support the service platform in providing external services. The method disclosed in this invention includes the design of a model parameter acquisition module, a model-driven module, a data integration module, and an interface encapsulation module. First, the model parameter acquisition module analyzes the digital twin model of the measurement and control equipment to obtain parameter files for model management. Then, the model-driven module addresses the problems of long model simulation time and difficulty in managing multi-software collaborative simulation, while the data integration module addresses the problems of non-standard data formats and difficulty in transmitting scattered data. This invention can be used by the digital twin service platform to call the digital twin model and, to a certain extent, maintain the normal operation of the digital twin model, improving the usability of the digital twin model of measurement and control equipment.

[0038] The structural block diagram of the present invention is as follows: Figure 1 As shown, the specific implementation method is as follows:

[0039] Step (1): Search for controllable parameters in the files of the digital twin model of the measurement and control equipment, and organize them into a structured model parameter file. The controllable parameters refer to parameters that can be adjusted externally before the model runs without affecting the model's functionality and correctness. The model parameter file is a file written using markup languages ​​such as XML and HTML, used to describe the controllable parameter's name, associated statement, adjustable range, adjustment method, and other attributes. The specific implementation is as follows:

[0040] Step (1.1): Filter all files of the digital twin model of the measurement and control equipment to obtain all... An editable model file Form a set The term "editable" refers to the ability to modify and recompile a file in terms of permissions and format, excluding forced decryption through methods such as decompilation and reverse engineering.

[0041] Step (1.2): Search the set of editable model files one by one. The global parameters defined in the model are selected by referring to the comments in the model file, the data interfaces provided by the model, and the parameter dependencies during model execution. A controllable parameter Composition of controllable parameter set The names, meanings, associated statements, adjustable ranges, and adjustment methods of controllable parameters are described using markup languages ​​such as XML, and saved as structured model parameter files. .

[0042] Step (2): Based on the request to call the digital twin model of the measurement and control equipment, configure the model parameters according to the model parameter file obtained in step (1), and drive and manage the operation of the digital twin model of the measurement and control equipment. Specific implementation details are as follows: Figure 2 As shown, the steps are as follows:

[0043] Step (2.1): Parse the request to call the digital twin model of the measurement and control equipment sent by the digital twin service platform. Model initialization conditions Form a set The first in the set element ,in For parameter name, For parameter values, The model call request is sent via a configuration file in JSON format, which specifies the model parameter settings, model call order, and model output order, and includes at least fields such as model name, parameter name, and step size.

[0044] Step (2.2): Based on the model parameter file one by one the initialization condition set The elements in the set are validated for validity. This validity validation refers to the initialization condition set. Do the elements satisfy the model parameter file? Requirements. If the initialization condition set If an invalid element is found, an error message is returned and step (2) ends; in all initialization condition sets When an element is valid, it is configured into the digital twin model of the measurement and control equipment one by one;

[0045] Step (2.3): For single-platform simulation models, directly run the driver; for multi-platform co-simulation models, first check if the model call request specifies the model startup order. If it does, start the model according to the requirements. If not, start the model in descending order of model files and record the startup order. The platform refers to the software, programs, etc., on which the model relies during operation. It monitors the computing resources used by the model during runtime to prevent errors due to insufficient resources.

[0046] Step (3): During and after the model's operation, the results are collected, formatted, and integrated to obtain standardized data files. The operation results refer to the output files obtained by each part of the model after completing its task, and the formatting refers to the process of organizing the output files into a specified, uniform format. Specific implementation is as follows: Figure 3 As shown, the steps are as follows:

[0047] Step (3.1): Obtain the model execution results: Based on the output content during and after the model execution, classify the models into those capable of outputting in file formats. A model that lacks file format output capability but possesses data stream output capability. A model that lacks both file format output capability and data stream output capability. .against Collect the model's output files after the model finishes running. common 1, forming a set of output files . Each data stream output is sequentially stored in the database according to its timing relationship, resulting in... Data files , forming a data file collection ,against The design monitoring program converts the data from the model simulation process into... Each data stream is output and stored sequentially in the database according to its timing relationship. Data files , forming a data file collection ;

[0048] Step (3.2): Format the output results in both the file format and the output results stored in the database. Extract each output file. The data structure and data content described in the document are reorganized into a specified file format to obtain... files , obtain the set For a collection of data files and For each and After data processing, the data is exported to a file in the specified format, resulting in... files and files , forming a set The data processing refers to the deletion of outliers, the deletion of duplicate data, and the retention of null and "NULL" values.

[0049] Step (3.3), Integration of running results: according to the model calling order Based on the requirements in the model call request, the standard format file set obtained in step (3.2) is... Perform uniform naming and compression operations to obtain the output file. The unified naming refers to... The data is named in a standardized format: "Number-Model Name-Run Completion Time" for easy sorting. Compression is performed to facilitate data file transfer and reduce bandwidth consumption.

[0050] Step (4) Encapsulate the interface of the digital twin model of the measurement and control equipment: Encapsulate the interface functions of steps (1) to (3) to construct an interface method for receiving model call requests and sending model call results, thereby obtaining an interface that can be remotely or locally called by the digital twin service platform. The specific process is as follows:

[0051] Step (4.1): Encapsulate the three functions that implement steps (1) to (3) respectively. The encapsulated function that implements step (1) takes all files of the digital twin model as input and outputs the model parameter file as output. The input to the function in step (2) after encapsulation is the model parameter file. The digital twin model call request outputs the model startup order. The input to the function in the encapsulated implementation step (3) is the model startup sequence. The digital twin model call request outputs as follows: ;

[0052] Step (4.2), Constructing the External Interface: Based on the functional functions encapsulated in Step (4.1), design the model's URL, HTTP method, request parameters, request body, and response body. The request parameters must include the identifier of the digital twin service platform initiating the call; the request body must include a JSON-formatted model call request describing the model's initial parameters, call order, and output order; the response body must include a JSON-formatted directory of the model's execution results files. Files are transferred via SFTP, SCP, or other methods.

[0053] On the other hand, the present invention provides a digital twin model interface construction device for measurement and control equipment, comprising:

[0054] The search unit is used to search for controllable parameters from the files of the digital twin model of the measurement and control equipment, and organize them into a structured model parameter file. ;

[0055] The drive unit is used to execute the request for calling the digital twin model of the measurement and control equipment according to the obtained model parameter file. Configure model parameters to drive and manage the operation of the digital twin model of the measurement and control equipment;

[0056] The integration unit is used to collect, format, and integrate the operational results of the digital twin model of the measurement and control equipment to obtain standardized data files. ;

[0057] The encapsulation unit is used to encapsulate the three functions that respectively implement the search unit, the driver unit, and the integration unit, and to provide external interfaces.

[0058] Thirdly, the present invention provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method for constructing a digital twin model interface for measurement and control equipment.

[0059] Fourthly, the present invention provides a computer-readable storage medium storing executable instructions thereon, which, when executed by a processor, enable the processor to implement the aforementioned method for constructing a digital twin model interface for measurement and control equipment.

[0060] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for constructing a digital twin model interface for TT&C equipment, characterized in that, The method steps are as follows: Step (1), search the controllable parameters from the file of the digital twin model of the measurement and control equipment, and organize into a structured model parameter file ; comprising: Step (1.1), filtering all the file of digital twin model of all TT&C equipment, obtaining all editable model files composing a set ; Step (1.2), searching the editable model file set one by one Global parameters defined in the middle, filtering all of them Controllable parameters Controllable parameter set The name, meaning, belonging sentence, adjustable range, and adjustment method of the controllable parameters are described by markup language, and saved as a structured model parameter file ; Step (2), according to the digital twin model calling request of the measurement and control equipment, the model parameter file obtained is used Configure the model parameters, including: Step (2.1), the request for calling the digital twin model of the measurement and control equipment is parsed to obtain a model initialization condition a set of components , the first element in the set , wherein is a parameter name, is a parameter value, ; Step (2.2), according to the model parameter file , the elements of the initialization condition set are checked for legality one by one, and it is checked whether the elements of the initialization condition set meet the requirements of the model parameter file . If the initialization condition set contains illegal elements, an error message is returned and the step (2) is ended; when all elements of the initialization condition set are legal, they are configured into the digital twin model of the measurement and control equipment one by one; Drive and manage the operation process of the TT&C equipment digital twin model; Step (3), collecting, formatting and integrating the operation results of the digital twin model of the measurement and control equipment to obtain a standardized data file ; comprising: Step (3.1), according to the model runtime and the output content after running, the model is divided into models with file format output capability , models without file format output capability but with data stream output capability , models without file format output capability and without data stream output capability , for , collect the output files of the model , a total of , constitute an output file set , for , save the data stream outputs in the database in sequence according to the time sequence relationship, obtain data files , constitute a data file set , for , design a monitoring program to convert the data of the model simulation process into data stream outputs, save in the database in sequence according to the time sequence relationship, obtain data files , constitute a data file set ; Step (3.2), for the output file set , extract the data structure and data content described in each output file , reorganize into the specified file format, and obtain files , to obtain the set ; for the data file set and , after data processing for each and , export the file in the specified format, respectively, to obtain files and files , which constitute the set ; Step (3.3), the order of starting the model according to step (2.3) and requirements in the model invocation request, the set of files in the standard format are uniformly named and compressed to obtain the output file ; Step (4), encapsulate the implementation process of the three steps of step (1)-step (3), and provide an external interface.

2. The method of claim 1, wherein the method is characterized by: The step (2) further comprises: Step (2.3), for single platform simulation model, the driver runs directly; for multi-platform joint simulation model, first check whether the model call request specifies the model startup order, if the model startup order is specified, start the model according to the requirement, if the model startup order is not specified, start the model according to the order from large to small of the model file, and record the model startup order as .

3. The method of claim 1, wherein the method comprises: The step (4) further comprises: according to the input and output of the encapsulated implementation process of the three steps of step (1)-step (3), designing the URL, HTTP method, request parameter, request body and response body of the model, and realizing the external interface.

4. The method of claim 3, wherein the method further comprises: The input of the implementation process of the encapsulated implementation step (1) is all files of the digital twin model, and the output is a model parameter file The input of the implementation process of the encapsulated implementation step (2) is the model parameter file and a digital twin model calling request, and the output is a model starting sequence The input of the implementation process of the encapsulated implementation step (3) is the model starting sequence and the digital twin model calling request, and the output is .

5. A TT&C equipment-oriented digital twin model interface construction device applied to the method of any one of claims 1-4, characterized in that, Comprise: A search unit is configured to search for controllable parameters from a file of a TT&C equipment digital twin model and organize into a structured model parameter file. ; A driving unit is configured to drive the operation of the digital twin model of the measurement and control equipment according to the model parameter file obtained by calling the digital twin model of the measurement and control equipment Configure model parameters, drive and manage the operation process of the digital twin model of the measurement and control equipment; An integration unit is configured to collect, format, and integrate the results of the operation of the digital twin model of the measurement and control equipment to obtain a standardized data file ; The encapsulation unit is used for encapsulating the three functions of the search unit, the driving unit and the integration unit respectively, and providing an external interface.

6. An electronic device, comprising: Comprise: One or more processors; Memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the TT&C equipment-oriented digital twin model interface construction method of any one of claims 1-4.

7. A computer readable storage medium characterized by, Executable instructions are stored thereon, which can make the processor implement the TT&C equipment-oriented digital twin model interface construction method of any one of claims 1-4 when executed by the processor.

Citation Information

Patent Citations

  • Industrial digital twin system unit equipment computing interface construction method and device

    CN115454395A

  • Method for constructing unified data platform of digital twin system of transformer substation

    CN117114647A