Distributed simulation bridge plug-in system and development method for multi-protocol integration
By designing a distributed simulation bridge plug-in system for multi-protocol integration, the problem of the lack of a unified framework for bridge development in the existing technology is solved, flexible interoperation and data conversion between multi-protocols are achieved, and distributed simulation middleware is improved scalability and maintainability.
Patent Information
- Application Number
- CN202410880617.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-02
AI Technical Summary
The existing distributed simulation bridge development lacks a unified integration framework, making it difficult to achieve functional reuse and flexible interoperability between multiple protocols.
Design a distributed simulation bridge plug-in system for multi-protocol integration, including an integration unit and a shared data resource pool. The integration unit includes a bridge plug-in core, a configuration manager, a data distributor, a connection manager, a data converter and a simulation The time manager implements bidirectional data conversion and interconnection between multiple distributed simulation protocols through these components.
It realizes data conversion and interconnection between multiple distributed simulation protocols, supports flexible and rapid modular development and integration, and improves the scalability and maintainability of distributed simulation middleware.
Smart Images

Figure CN118474165B
Abstract
Description
Technical Field
[0001] The present application relates to the technical fields of distributed simulation interoperability, middleware, and bridges, and in particular to a distributed simulation bridge plug-in system and development method for multi-protocol integration. Background Art
[0002] At present, there are many widely used network standard specifications in the field of distributed simulation, such as Distributed Interactive Simulation (DIS), High-Level Architecture (HLA), and Test and Training Enabling Architecture (TENA). Since the 1980s, these standard specifications have provided public and standardized data protocol support for the interconnection, intercommunication and interoperability between virtual simulation, construction simulation, and real-life equipment systems, and have played an important role. With the development of distributed simulation application needs, these standard specifications are also constantly evolving and developing; for a standard specification, different software vendors often have different distributed simulation middleware implementations. This leads to the need for protocol data conversion and interconnection between different distributed simulation protocols, between different versions of the same distributed simulation protocol, and between different distributed simulation middleware implementations of the same version of distributed simulation protocol through bridges.
[0003] However, the development of this type of bridge usually adapts the data conversion between two distributed simulation protocol software one by one according to specific application requirements. There is a lack of a unified integration framework to provide public encapsulation and module division, making it difficult to reuse the bridge function. Summary of the invention
[0004] Based on this, it is necessary to provide a distributed simulation bridge plug-in system and development method for multi-protocol integration in response to the above technical problems.
[0005] A distributed simulation bridge plug-in system for multi-protocol integration, the system comprising: an integration unit, a shared data resource pool and a plurality of bridge plug-ins; wherein the integration unit is used to run and manage all bridge plug-ins, and realize bidirectional data conversion between each bridge plug-in and distributed simulation middleware of each distributed simulation protocol outside the system, the integration unit comprises a bridge plug-in kernel, a configuration manager, a data distributor, a connection manager, a data converter and a simulation time manager; the shared data resource pool is used to store entity data and event data in distributed simulation; the bridge plug-in is used to perform distributed simulation operation interaction;
[0006] The bridge plug-in kernel is used to uniformly manage all public managers in the system and perform life cycle management on all bridge plug-ins;
[0007] The configuration manager is used to read and manage the distributed simulation configuration information of the bridge plug-in and the distributed simulation middleware of each distributed simulation protocol, and manage the mapping relationship between each distributed simulation middleware protocol metadata and each bridge plug-in shared metadata;
[0008] The data distributor is used to manage data distribution according to the published subscription relationship of each bridge plug-in;
[0009] The connection manager is used to maintain the connection between each bridge plug-in and each distributed simulation middleware in a multi-threaded manner, and provides a data access interface for a shared data resource pool. On the basis of data packaging and unpacking, it implements data packet transmission by calling data service interfaces under different distributed simulation protocols.
[0010] The data converter is used to realize bidirectional data adaptation conversion between each bridge plug-in and each distributed simulation middleware according to each distributed simulation protocol;
[0011] The simulation time manager is used to support access to simulation time and advancement of simulation time.
[0012] Furthermore, the bridge plug-in is configured with the plug-in lifecycle interface of the bridge plug-in kernel, the configuration interface of the configuration manager, the filter of the data distributor, the plug-in connection interface of the connection manager, the mapper of the data converter, and the simulation time interface of the simulation time manager. The bridge plug-in is connected to the integrated unit through various interfaces and performs distributed simulation operation interaction.
[0013] Furthermore, the process of the bridge plug-in connecting to the integrated unit through various interfaces and performing distributed simulation operation interaction includes:
[0014] Start all bridge plugins through the plugin lifecycle interface;
[0015] In the initialization phase, the bridge plug-in connects to the connection manager through the plug-in connection interface and starts the connection agent of the bridge plug-in based on the connection manager; the bridge plug-in connects to the configuration manager through the configuration interface and initializes the distributed simulation connection and filtering based on the distributed simulation configuration information provided by the configuration manager;
[0016] During the simulation running phase, the bridge plug-in is connected to the simulation time manager through the simulation time interface to obtain the current simulation moment and advance the simulation time; the bridge plug-in is connected to the data converter through the mapper to convert, receive and store distributed simulation data; the bridge plug-in is connected to the data distributor through the filter to distribute distributed simulation data.
[0017] Furthermore, the bridge plug-in is connected to the data converter through the mapper, and the process of converting, receiving and storing distributed simulation data includes:
[0018] The bridge plug-in is connected to the data converter through the mapper, and obtains the data sent by the distributed simulation middleware through the middleware callback function or the middleware data active access function provided by the connection agent of the bridge plug-in, and unpacks the data;
[0019] Based on the data converter, the unpacked data obtained from the distributed simulation middleware is converted into data that conforms to the shared metadata format of the bridge plug-in, and the simulation timestamp is set to the current simulation moment. The converted data that conforms to the shared metadata format of the bridge plug-in is stored in the shared data resource pool through the connection manager.
[0020] Furthermore, the bridge plug-in is connected to the data distributor through the filter, and the process of distributing the distributed simulation data includes:
[0021] The bridge plug-in is connected to the data distributor through the filter, and obtains the distributed simulation data to be distributed from the shared data resource pool based on the data distributor;
[0022] Based on the data converter, the distributed simulation data to be distributed obtained from the shared data resource pool is converted into data in the distributed simulation middleware protocol metadata format corresponding to the bridge plug-in;
[0023] The connection agent of the bridge plug-in is accessed through the connection manager, and the converted data conforming to the distributed simulation middleware protocol metadata format corresponding to the bridge plug-in is packaged and sent to the corresponding distributed simulation middleware.
[0024] Furthermore, the shared data resource pool stores entity data and event data in the distributed simulation based on a unified shared metadata format.
[0025] A distributed simulation bridge plug-in development method for multi-protocol integration, the method is applicable to the above-mentioned distributed simulation bridge plug-in system for multi-protocol integration, the method comprising:
[0026] S1. Extend the configuration interface of the configuration manager and create a bridge plug-in configuration;
[0027] S2. Expand the plug-in lifecycle interface of the bridge plug-in kernel to implement loading initialization of the bridge plug-in;
[0028] S3, extending the plug-in connection interface of the connection manager, and realizing the connection function between the bridge plug-in and the corresponding distributed simulation middleware by encapsulating the corresponding distributed simulation middleware connection agent;
[0029] S4. Define an event processing function and associate the event processing function with the reception of relevant event data, so that when the connection agent receives the event data, the corresponding event processing function is triggered;
[0030] S5. Expand the filter of the data distributor to realize different types of data distribution management;
[0031] S6, extending the mapper of the data converter to realize bidirectional data adaptation and conversion between the bridge plug-in and the distributed simulation middleware;
[0032] S7. Expand the simulation time interface of the simulation time manager to implement the simulation time advancement function supported by the bridge plug-in, so that the bridge plug-in can receive, store and distribute distributed simulation data according to time synchronization requirements.
[0033] The above-mentioned distributed simulation bridge plug-in system and development method for multi-protocol integration can adapt to the integration of multiple distributed simulation protocol bridge plug-ins, realize data conversion, transmission and shared access under multiple distributed simulation protocols, and realize flexible and rapid modular development and integration in a plug-in manner, thereby improving the scalability and maintainability of distributed simulation middleware. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the structure of a distributed simulation bridge plug-in system for multi-protocol integration in one embodiment;
[0035] Figure 2 A schematic diagram of the operating principle of a distributed simulation bridge plug-in system for multi-protocol integration in one embodiment;
[0036] Figure 3 A flowchart of a distributed simulation bridge plug-in development method for multi-protocol integration in one embodiment. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] In one embodiment, Figure 1As shown, a distributed simulation bridge plug-in system for multi-protocol integration is provided, the system includes: an integration unit, a shared data resource pool and a plurality of bridge plug-ins; wherein the integration unit is used to run and manage all bridge plug-ins, and realize bidirectional data conversion between each bridge plug-in and the distributed simulation middleware of each distributed simulation protocol outside the system, the integration unit includes a bridge plug-in kernel, a configuration manager, a data distributor, a connection manager, a data converter and a simulation time manager; the shared data resource pool is used to store entity data and event data in distributed simulation; the bridge plug-in is used to perform distributed simulation operation interaction;
[0039] The bridge plug-in kernel is used to uniformly manage all public managers in the system and perform life cycle management such as loading and unloading of all bridge plug-ins;
[0040] The configuration manager is used to read and manage the distributed simulation configuration information of the bridge plug-in and the distributed simulation middleware of each distributed simulation protocol, and manage the mapping relationship between each distributed simulation middleware protocol metadata and each bridge plug-in shared metadata;
[0041] The data distributor is used to manage data distribution according to the publishing and subscription relationship of each bridge plug-in; specifically, the data is filtered according to the subscription relationship, and the shared data to be distributed is submitted to the connection manager according to the publishing relationship; wherein the publishing relationship describes the data that can be distributed externally, and the subscription relationship describes the data that needs to be received and processed;
[0042] The connection manager is used to maintain the connection between each bridge plug-in and each distributed simulation middleware in a multi-threaded manner, and provides a data access interface for a shared data resource pool. On the basis of data packaging and unpacking, it implements data packet transmission by calling data service interfaces under different distributed simulation protocols.
[0043] The data converter is used to realize bidirectional data adaptation conversion between each bridge plug-in and each distributed simulation middleware according to each distributed simulation protocol;
[0044] The simulation time manager is used to support access to simulation time and advancement of simulation time.
[0045] The operating principle of the above-mentioned distributed simulation bridge plug-in system for multi-protocol integration is as follows: Figure 2 As shown, the following steps are included:
[0046] Step 201, start the bridge plug-in kernel and create various manager instances, specifically, create configuration manager, data distributor, connection manager, data converter, simulation time manager instances.
[0047] Step 202: Read the bridge plug-in configuration information through the configuration manager.
[0048] Step 203, load and start all bridge plug-ins. Specifically, rely on the configuration manager to load and parse the distributed simulation configuration information corresponding to the bridge plug-in, and start all bridge plug-ins through the plug-in life cycle interface of the bridge plug-in kernel;
[0049] Step 204, the bridge plug-in is initialized.
[0050] Step 205: The bridge plug-in performs distributed simulation operation interaction.
[0051] Furthermore, the bridge plug-in is configured with the plug-in lifecycle interface of the bridge plug-in kernel, the configuration interface of the configuration manager, the filter of the data distributor, the plug-in connection interface of the connection manager, the mapper of the data converter, and the simulation time interface of the simulation time manager. The bridge plug-in is connected to the integrated unit through various interfaces and performs distributed simulation operation interaction.
[0052] Furthermore, the process of the bridge plug-in connecting to the integrated unit through various interfaces and performing distributed simulation operation interaction includes:
[0053] Start all bridge plugins through the plugin lifecycle interface;
[0054] In the initialization phase, the bridge plug-in connects to the connection manager through the plug-in connection interface and starts the connection agent of the bridge plug-in based on the connection manager; the bridge plug-in connects to the configuration manager through the configuration interface and initializes the distributed simulation connection and filtering based on the distributed simulation configuration information provided by the configuration manager;
[0055] During the simulation running phase, the bridge plug-in is connected to the simulation time manager through the simulation time interface to obtain the current simulation moment and advance the simulation time; the bridge plug-in is connected to the data converter through the mapper to convert, receive and store distributed simulation data; the bridge plug-in is connected to the data distributor through the filter to distribute distributed simulation data.
[0056] The system provides a unified distributed simulation protocol integration framework, which supports the expansion and generation of specific bridge plug-ins based on the integration framework to achieve flexible configuration, rapid development and integration of bridges for data transmission, conversion and shared access under multiple distributed simulation protocols.
[0057] Furthermore, the bridge plug-in is connected to the data converter through the mapper, and the process of converting, receiving and storing distributed simulation data includes:
[0058] The bridge plug-in is connected to the data converter through the mapper, and obtains the data sent by the distributed simulation middleware through the middleware callback function or the middleware data active access function provided by the connection agent of the bridge plug-in, and unpacks the data;
[0059] Based on the data converter, the unpacked data obtained from the distributed simulation middleware is converted into data that conforms to the shared metadata format of the bridge plug-in, and the simulation timestamp is set to the current simulation moment. The converted data that conforms to the shared metadata format of the bridge plug-in is stored in the shared data resource pool through the connection manager.
[0060] Furthermore, the bridge plug-in is connected to the data distributor through the filter, and the process of distributing the distributed simulation data includes:
[0061] The bridge plug-in is connected to the data distributor through the filter, and obtains the distributed simulation data to be distributed from the shared data resource pool based on the data distributor;
[0062] Based on the data converter, the distributed simulation data to be distributed obtained from the shared data resource pool is converted into data in the distributed simulation middleware protocol metadata format corresponding to the bridge plug-in;
[0063] The connection agent of the bridge plug-in is accessed through the connection manager, and the converted data conforming to the distributed simulation middleware protocol metadata format corresponding to the bridge plug-in is packaged and sent to the corresponding distributed simulation middleware.
[0064] Furthermore, the shared data resource pool stores entity data and event data in the distributed simulation based on a unified shared metadata format.
[0065] In one embodiment, Figure 3 As shown, a distributed simulation bridge plug-in development method for multi-protocol integration is provided, which is applicable to the above-mentioned distributed simulation bridge plug-in system for multi-protocol integration, and includes the following steps:
[0066] S1. Extend the configuration interface of the configuration manager and create a bridge plug-in configuration;
[0067] S2. Expand the plug-in lifecycle interface of the bridge plug-in kernel to implement loading initialization of the bridge plug-in;
[0068] S3, extending the plug-in connection interface of the connection manager, and realizing the connection function between the bridge plug-in and the corresponding distributed simulation middleware by encapsulating the corresponding distributed simulation middleware connection agent;
[0069] S4. Define an event processing function and associate the event processing function with the reception of relevant event data, so that when the connection agent receives the event data, the corresponding event processing function is triggered;
[0070] S5. Expand the filter of the data distributor to realize different types of data distribution management;
[0071] S6, extending the mapper of the data converter to realize bidirectional data adaptation and conversion between the bridge plug-in and the distributed simulation middleware;
[0072] S7. Expand the simulation time interface of the simulation time manager to implement the simulation time advancement function supported by the bridge plug-in, so that the bridge plug-in can receive, store and distribute distributed simulation data according to time synchronization requirements.
[0073] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0074] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A distributed simulation bridge plug-in system for multi-protocol integration, characterized in that: The system comprises: an integration unit, a shared data resource pool and a plurality of bridge plug-ins; wherein the integration unit is used to run and manage all bridge plug-ins, and realize bidirectional data conversion between each bridge plug-in and distributed simulation middleware of each distributed simulation protocol outside the system, and the integration unit comprises a bridge plug-in kernel, a configuration manager, a data distributor, a connection manager, a data converter and a simulation time manager; the shared data resource pool is used to store entity data and event data in distributed simulation; the bridge plug-in is used to perform distributed simulation operation interaction; The bridge plug-in kernel is used to uniformly manage all public managers in the system and perform life cycle management on all bridge plug-ins; The configuration manager is used to read and manage the distributed simulation configuration information of the bridge plug-in and the distributed simulation middleware of each distributed simulation protocol, and manage the mapping relationship between each distributed simulation middleware protocol metadata and each bridge plug-in shared metadata; The data distributor is used to manage data distribution according to the published subscription relationship of each bridge plug-in; The connection manager is used to maintain the connection between each bridge plug-in and each distributed simulation middleware in a multi-threaded manner, and provide a data access interface for the shared data resource pool, and realize data packet transmission by calling data service interfaces under different distributed simulation protocols based on data packaging and unpacking; The data converter is used to implement bidirectional data adaptation conversion between each bridge plug-in and each distributed simulation middleware according to each distributed simulation protocol; The simulation time manager is used to support access to simulation time and advancement of simulation time; The bridge plug-in is configured with a plug-in lifecycle interface of the bridge plug-in kernel, a configuration interface of a configuration manager, a filter of a data distributor, a plug-in connection interface of a connection manager, a mapper of a data converter, and a simulation time interface of a simulation time manager. The bridge plug-in is connected to the integrated unit through various interfaces and performs distributed simulation operation interaction. The process of the bridge plug-in connecting to the integrated unit through various interfaces and performing distributed simulation operation interaction includes: Start all bridge plugins through the plugin lifecycle interface; In the initialization phase, the bridge plug-in connects to the connection manager through the plug-in connection interface, and starts the connection agent of the bridge plug-in based on the connection manager; the bridge plug-in connects to the configuration manager through the configuration interface, and initializes the distributed simulation connection and filtering based on the distributed simulation configuration information provided by the configuration manager; During the simulation running phase, the bridge plug-in is connected to the simulation time manager through the simulation time interface to obtain the current simulation moment and advance the simulation time; the bridge plug-in is connected to the data converter through the mapper to convert, receive and store distributed simulation data; the bridge plug-in is connected to the data distributor through the filter to distribute distributed simulation data.
2. The distributed simulation bridge plug-in system for multi-protocol integration according to claim 1, characterized in that: The bridge plug-in is connected to the data converter through the mapper, and the process of converting, receiving and storing distributed simulation data includes: The bridge plug-in is connected to the data converter through the mapper, and obtains the data sent by the distributed simulation middleware through the middleware callback function or the middleware data active access function provided by the connection agent of the bridge plug-in, and unpacks the data; Based on the data converter, the unpacked data obtained from the distributed simulation middleware is converted into data that conforms to the shared metadata format of the bridge plug-in, and the simulation timestamp is set to the current simulation moment. The converted data that conforms to the shared metadata format of the bridge plug-in is stored in the shared data resource pool through the connection manager.
3. The distributed simulation bridge plug-in system for multi-protocol integration according to claim 1, characterized in that: The bridge plug-in is connected to the data distributor through the filter, and the process of distributing distributed simulation data includes: The bridge plug-in is connected to the data distributor through the filter, and the distributed simulation data to be distributed is obtained from the shared data resource pool based on the data distributor; Based on the data converter, the distributed simulation data to be distributed obtained from the shared data resource pool is converted into data in a distributed simulation middleware protocol metadata format corresponding to the bridge plug-in; The connection agent of the bridge plug-in is accessed through the connection manager, and the converted data conforming to the distributed simulation middleware protocol metadata format corresponding to the bridge plug-in is packaged and sent to the corresponding distributed simulation middleware.
4. The distributed simulation bridge plug-in system for multi-protocol integration according to claim 1, 2 or 3, characterized in that: The shared data resource pool stores entity data and event data in the distributed simulation based on a unified shared metadata format.
5. A distributed simulation bridge plug-in development method for multi-protocol integration, applicable to the distributed simulation bridge plug-in system for multi-protocol integration as claimed in any one of claims 1 to 4, characterized in that: The method comprises: S1. Extend the configuration interface of the configuration manager and create a bridge plug-in configuration; S2. Expand the plug-in lifecycle interface of the bridge plug-in kernel to implement loading initialization of the bridge plug-in; S3, extending the plug-in connection interface of the connection manager, and realizing the connection function between the bridge plug-in and the corresponding distributed simulation middleware by encapsulating the corresponding distributed simulation middleware connection agent; S4. Define an event processing function and associate the event processing function with the reception of relevant event data, so that when the connection agent receives the event data, the corresponding event processing function is triggered; S5. Expand the filter of the data distributor to realize different types of data distribution management; S6, extending the mapper of the data converter to realize bidirectional data adaptation and conversion between the bridge plug-in and the distributed simulation middleware; S7. Expand the simulation time interface of the simulation time manager to implement the simulation time advancement function supported by the bridge plug-in, so that the bridge plug-in can receive, store and distribute distributed simulation data according to time synchronization requirements.
