A simulator modular distributed interface and multi-bus fusion system and data processing method

Through the modular distributed interface and multi-bus fusion system, the high cost and low reusability problems caused by the hardware diversity of the flight simulator interface system are solved, and the general design and efficient data processing of the system are realized to meet the real-time requirements of aerospace.

CN120295953BActive Publication Date: 2025-09-02CHINA SOUTHERN TECHNOLOGY (GUANGDONG HENGQIN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510778999.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-12
Publication Date
2025-09-02
Estimated Expiration
2045-06-12

AI Technical Summary

Technical Problem

The flight simulator interface system needs to be customized due to the hardware diversity of different models and acquisition equipment, resulting in high development and maintenance costs, low system reusability and hindering the standardization process.

Method used

The modular distributed interface and multi-bus fusion system are adopted, including device management database, data reading and processing module, modular processing module, multi-bus fusion platform, real-time guarantee module, etc., through the multi-layer nested data structure defined in the form of dynamic memory allocation and pointer, real-time reading and structured data conversion of device information is realized, and seamless connection of heterogeneous buses is realized through the unified bus adaptation layer protocol.

Benefits of technology

It realizes the general design of interface systems, reduces customized development costs, improves the maintainability and scalability of the system, and meets the real-time requirements of high-precision fields such as aerospace.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295953B_ABST
    Figure CN120295953B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of data processing, and specifically relates to a simulator modular distributed interface and multi-bus fusion system and data processing method. It aims to solve the problems of high development and maintenance costs, low system reusability and obstacles to the standardization process. The present invention includes: a device management database, a data reading and processing module, a modular processing module, a distributed interface module and a multi-bus fusion platform. The system processes device information in real time through dynamic memory allocation and multi-layer nested data structures, adopts an independent functional modular design, and integrates multiple bus / Ethernet / serial port interfaces. The flight simulation platform realizes dynamic binding of device channels and simulation variables through shared memory preloading, and combines hardware acquisition equipment to achieve efficient communication with simulator electronic equipment, forming a modular and extensible distributed interface system. The present invention achieves efficient expansion and real-time processing through modular universal design, reduces customization costs and improves standardization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data processing, and in particular relates to a simulator modular distributed interface and multi-bus fusion system and a data processing method. Background Art

[0002] In flight simulators, the interface system program serves as the bridge between the simulator's simulation platform and the hardware. However, due to the varying models and types of simulators, the acquisition equipment used varies, requiring customized development of the interface system. This customization not only increases software development and maintenance costs but also hinders the standardization of simulator production.

[0003] For example, the flight simulator interface system solution solves the problem of flight simulator interface systems being unable to adapt to multiple signal types and prone to signal confusion. However, its essence is still based on communication with a specific type of acquisition board.

[0004] Based on this, the present invention proposes a simulator modular distributed interface and multi-bus fusion system and a data processing method. Summary of the Invention

[0005] In order to solve the above-mentioned problems in the prior art, namely, the flight simulator interface system needs to be customized due to the hardware diversity of different models and acquisition equipment, resulting in high development and maintenance costs, low system reusability and hindering the standardization process, the present invention provides a simulator modular distributed interface and multi-bus fusion system and data processing method.

[0006] The first aspect of the present invention provides a simulator modular distributed interface and multi-bus fusion system, the system comprising:

[0007] An equipment management database system configured to store equipment information, including an equipment basic information table, an equipment technical parameter table, and an equipment application association table;

[0008] The data reading and processing module is configured as a multi-layer nested data structure defined by a dynamic memory allocation mechanism and pointer form, which reads device information in real time and converts it into structured data;

[0009] A modular processing module configured to obtain the structured data and task requirements and distribute them to the modular distributed interface modules and the multi-bus fusion platform for connection;

[0010] Modular distributed interface module, including multiple independent functional modules with data processing functions;

[0011] Multi-bus fusion platform integrates multiple bus interfaces, Ethernet interfaces and serial communication interfaces. Each bus interface realizes seamless connection and data interaction of heterogeneous buses through a unified bus adaptation layer protocol.

[0012] a flight simulation system platform configured to connect to the modular distributed interface module, the multi-bus fusion platform, and the data reading and processing module via shared memory, and preload memory mapping information to dynamically bind device channels and simulation platform variables;

[0013] The interface system hardware acquisition device communicates with the flight simulator electronic equipment through the modular distributed interface module and the multi-bus fusion platform.

[0014] Furthermore, the system also includes a real-time assurance module, which includes a timer, a memory mapping unit and a zero-copy transmission unit;

[0015] The timer is connected to the data reading and processing module and is used to trigger periodic data reading tasks, ensure the timing consistency of data acquisition and processing through a unified timestamp mechanism, and provide a unified clock reference for the modular distributed interface module and the multi-bus fusion platform to ensure that the triggering timing of periodic tasks is synchronized with the data processing link;

[0016] The memory mapping unit directly accesses the device channel data through the physical memory address, thereby realizing dynamic binding between the device channel and the flight simulation system platform variable;

[0017] The zero-copy transmission unit establishes a zero-copy data transmission link between the data reading and processing module, the modular processing module and the multi-bus fusion platform, and directly operates the data buffer through pointer reference or memory mapping.

[0018] Furthermore, the equipment management database system adopts a relational database;

[0019] The device basic information table stores device ID, device name and device status;

[0020] The device technical parameter table stores device gain, offset rate and basic clock parameters;

[0021] The device application association table establishes a binding relationship between the device and the flight simulator model.

[0022] Furthermore, the dynamic memory allocation mechanism specifically includes:

[0023] During the data reading process, a quantity variable is introduced to record the amount of data currently being processed in real time;

[0024] The number of the data structures is dynamically determined based on the actual results of real-time queries from the device management database system, and corresponding memory space is allocated in the heap memory through a dynamic memory allocation function;

[0025] After the data is read, the memory release dynamic memory allocation function is called to reclaim the allocated memory space.

[0026] Furthermore, the multiple bus interfaces include at least an aviation bus and a CAN bus.

[0027] Furthermore, through the dynamic memory allocation mechanism and the multi-layer nested data structure defined in the form of pointers, device information is read in real time and converted into structured data, specifically:

[0028] Read the required device information from the device management database system through SQL query statements;

[0029] Based on the amount of device information read, a corresponding number of multi-layer nested data structure instances are allocated in the heap memory through the dynamic memory allocation mechanism;

[0030] Filling the device information into the data structure instance to form structured data;

[0031] The structured data is transferred to the modular processing module to be distributed to the modular distributed interface module and the multi-bus fusion platform.

[0032] Furthermore, the independent functional modules include a data acquisition module, a data processing module and a data output module that achieve seamless docking and collaboration through a standardized interface protocol.

[0033] Another aspect of the present invention provides a data processing method for integrating a simulator modular distributed interface and multiple buses. The method is based on a simulator modular distributed interface and multiple bus integration system, and includes:

[0034] Read the device configuration data of the interface system from the device management database system through SQL query statements, and detect whether the query status is abnormal;

[0035] If the query status is normal, the memory space is dynamically allocated based on the query results to generate a data record structure and a multi-layer nested device binding structure;

[0036] Traverse the structure and write device configuration information to complete the mapping and binding of device groups and simulation platform variables;

[0037] If the query status is abnormal, the exception handling structure is dynamically allocated, the shared memory address is initialized, and the exception information is recorded; the device variables are dynamically bound to the interface system variables through memory mapping technology; the temporary memory space is released, and the binding result status code is returned.

[0038] Furthermore, if the query status is normal, specifically:

[0039] Obtain the number of query records, and allocate a corresponding number of data record structure instances in the heap memory through a dynamic memory allocation mechanism based on the number;

[0040] Read device configuration data one by one, write the current record to the corresponding position of the data record structure instance, and loop until all records are written;

[0041] Read the shared memory variable information binding table from the device management database system, dynamically allocate memory space for a multi-layer nested device binding structure according to the quantity information in the binding table, and write data related to device grouping, type, and channel quantity;

[0042] A pointer to the multi-layer nested device binding structure is created, the data record structure instance is traversed to obtain the number of device groups, and mapping and binding between the device and the simulation platform variable is completed based on the grouping information.

[0043] Furthermore, if the query status is abnormal, specifically:

[0044] Dynamically allocate memory space for variable binding structures, write exception records one by one, and loop until the records are empty;

[0045] Initialize the shared memory address of the interface system according to the shared memory variable information binding table;

[0046] Dynamically bind the variables in the device information binding table to the variables in the interface system variable information table through memory mapping technology;

[0047] Release all temporarily allocated memory space and return the corresponding status code based on the binding result.

[0048] Beneficial effects of the present invention:

[0049] (1) Universalization: By introducing a device management database system and a unified data structure, a universal design of the interface system is achieved. The system can adapt to simulators of different models and types, reducing the cost of customized development and maintenance.

[0050] (2) Modularity: Using a modular design concept, the interface system is divided into multiple independent processing modules. The modules are seamlessly connected and efficiently collaborated through unified interface standards, supporting parallel development and testing, and improving the maintainability of the system.

[0051] (3) Efficiency: By defining data structures in the form of pointers and a dynamic memory allocation mechanism, data processing efficiency is optimized. The system can flexibly and efficiently complete data reading and processing tasks based on the dynamic changes in actual data volume.

[0052] (4) Scalability: The system integrates multiple bus technologies to build a distributed data communication platform. Through unified interface standards and communication protocols, seamless connection and efficient collaboration between different bus technologies are achieved. This design makes the system open and easy to expand.

[0053] (5) Real-time performance: A real-time performance assurance system is built using high-precision timers, memory mapping technology, event-driven architecture, and zero-copy technology. The system can meet the real-time requirements of high-precision fields such as aerospace. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Other features, objects and advantages of the present application will become more apparent upon reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0055] Figure 1 It is a structural diagram of a simulator modular distributed interface and multi-bus fusion system of the present invention;

[0056] Figure 2 It is a flow chart of a data processing method for integrating a modular distributed interface of a simulator with multiple buses according to the present invention;

[0057] Figure 3 The present invention is a data interaction diagram of a data processing method integrating a modular distributed interface of a simulator and multiple buses. DETAILED DESCRIPTION

[0058] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the relevant invention and are not intended to limit the invention. It should also be noted that, for ease of description, only portions relevant to the relevant invention are shown in the accompanying drawings.

[0059] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0060] A first embodiment of the present invention provides a simulator modular distributed interface and multi-bus fusion system, the system comprising:

[0061] An equipment management database system configured to store equipment information, including an equipment basic information table, an equipment technical parameter table, and an equipment application association table;

[0062] The data reading and processing module is configured as a multi-layer nested data structure defined by a dynamic memory allocation mechanism and pointer form, which reads device information in real time and converts it into structured data;

[0063] A modular processing module configured to obtain the structured data and task requirements and distribute them to the modular distributed interface modules and the multi-bus fusion platform for connection;

[0064] Modular distributed interface module, including multiple independent functional modules with data processing functions;

[0065] Multi-bus fusion platform integrates multiple bus interfaces, Ethernet interfaces and serial communication interfaces. Each bus interface realizes seamless connection and data interaction of heterogeneous buses through a unified bus adaptation layer protocol.

[0066] a flight simulation system platform configured to connect to the modular distributed interface module, the multi-bus fusion platform, and the data reading and processing module via shared memory, and preload memory mapping information to dynamically bind device channels and simulation platform variables;

[0067] The interface system hardware acquisition device communicates with the flight simulator electronic equipment through the modular distributed interface module and the multi-bus fusion platform.

[0068] Real-time assurance module, which includes a timer, a memory mapping unit, and a zero-copy transmission unit;

[0069] The timer is connected to the data reading and processing module and is used to trigger periodic data reading tasks, ensure the timing consistency of data acquisition and processing through a unified timestamp mechanism, and provide a unified clock reference for the modular distributed interface module and the multi-bus fusion platform to ensure that the triggering timing of periodic tasks is synchronized with the data processing link;

[0070] The memory mapping unit directly accesses the device channel data through the physical memory address, thereby realizing dynamic binding between the device channel and the flight simulation system platform variable;

[0071] The zero-copy transmission unit establishes a zero-copy data transmission link between the data reading and processing module, the modular processing module and the multi-bus fusion platform, and directly operates the data buffer through pointer reference or memory mapping.

[0072] The workflow of the present invention mainly includes the following steps:

[0073] (1) Device information management: First, the device management database system stores and manages the information of all devices. During the device initialization phase, the system reads the device information from the database and performs corresponding initialization operations based on the device information.

[0074] (2) Data Reading and Organization: During the data call phase, the data reading and processing module constructs a unified data structure to efficiently read and organize device information in the database. The data structure is defined in the form of pointers and uses a dynamic memory allocation mechanism for memory management. This module organizes the device information into a data structure suitable for subsequent processing and passes it to the modular distributed interface system for processing.

[0075] (3) Modular processing: The modular distributed interface system transfers data to the corresponding module for processing based on the type of device information. Each module independently processes specific types of data or devices and seamlessly connects and efficiently collaborates through unified interface standards. The processing results are passed to other modules or simulation system platforms through shared memory or communication buses for further processing.

[0076] (4) Multi-bus converged communication: The multi-bus converged platform integrates multiple bus technologies to achieve seamless connection and efficient collaboration between different bus technologies. Through unified interface standards and communication protocols, efficient data communication and interaction can be achieved between modules. This design makes the system open and easy to expand, and fully supports distributed processing of multiple services.

[0077] (5) Real-time performance assurance: The real-time performance assurance system uses high-precision timers, memory mapping technology, event-driven architecture, and zero-copy technology to ensure the timing consistency of periodic task triggering and data acquisition in each functional module. The system uses a clock drift compensation algorithm and a hardware-level timestamp calibration mechanism to control long-term operating errors within the microsecond level, meeting the real-time requirements of high-precision fields such as aerospace.

[0078] In order to more clearly explain the modular distributed interface and multi-bus fusion system of the simulator of the present invention, the following is combined with Figure 1 Each module in the embodiment of the present invention is described in detail as follows:

[0079] An equipment management database system configured to store equipment information, including an equipment basic information table, an equipment technical parameter table, and an equipment application association table;

[0080] In this embodiment, the device management database system adopts a relational database;

[0081] The device basic information table stores device ID, device name and device status;

[0082] The device technical parameter table stores device gain, offset rate and basic clock parameters;

[0083] The device application association table establishes a binding relationship between the device and the flight simulator model.

[0084] Specifically, the device management database system uses a relational database for storage and management. The database table structure includes a device basic information table, a device technical parameter table, and a device application association table. The device basic information table stores the core attributes of the device, such as device ID, device name, device type, and device status. The device technical parameter table stores device configuration attributes, such as device gain, device offset rate, device base clock, and device cache size. The device application association table establishes binding relationships between devices and simulators, such as associating acquisition devices with simulator models and simulator classes.

[0085] This invention introduces a device management database system to store and manage information about all devices. The database system uses a unified data structure, categorizing device information into basic information, technical parameters, and application-related components. These information is then entered into the database for management. This design makes the storage and management of device information more standardized and efficient, laying the foundation for the universalization of the interface system.

[0086] The data reading and processing module is configured as a multi-layer nested data structure defined by a dynamic memory allocation mechanism and pointer form, which reads device information in real time and converts it into structured data;

[0087] Dynamic memory allocation mechanism, which specifically includes:

[0088] During the data reading process, a quantity variable is introduced to record the amount of data currently being processed in real time;

[0089] The number of the data structures is dynamically determined based on the actual results of real-time queries from the device management database system, and corresponding memory space is allocated in the heap memory through a dynamic memory allocation function;

[0090] After the data is read, the memory release dynamic memory allocation function is called to reclaim the allocated memory space.

[0091] The dynamic memory allocation function in this embodiment is preferably: malloc function or calloc function.

[0092] Through the dynamic memory allocation mechanism and the multi-layer nested data structure defined in the form of pointers, device information is read in real time and converted into structured data. Specifically:

[0093] Read the required device information from the device management database system through SQL query statements;

[0094] Based on the amount of device information read, a corresponding number of multi-layer nested data structure instances are allocated in the heap memory through the dynamic memory allocation mechanism;

[0095] Filling the device information into the data structure instance to form structured data;

[0096] The structured data is transferred to the modular processing module to be distributed to the modular distributed interface module and the multi-bus fusion platform.

[0097] This invention utilizes a carefully designed data access mechanism. By constructing a unified data structure, it enables efficient access and organization of device information within the database. This data structure, with its complex, multi-layered nested structure, accurately maintains the complex data associations between various types of device information, ensuring data integrity and logic.

[0098] To further optimize data processing efficiency and enhance system flexibility, data structures are defined using pointers. The use of pointers makes data transfer and manipulation within memory more efficient, significantly reducing the data copying overhead associated with traditional value transfer methods, thereby significantly improving the overall performance of the system during data reading and processing.

[0099] During the data reading process, the system introduces a quantity variable to accurately record the amount of data currently being processed. The number of data structures is not statically set in advance but is dynamically allocated based on the actual results of real-time database queries. This dynamic memory allocation mechanism cleverly avoids the problems of wasted or insufficient memory resources that can arise with traditional static allocation methods, enabling the interface system to flexibly and efficiently complete data reading and processing tasks based on the dynamic changes in actual data volume.

[0100] A modular processing module configured to obtain the structured data and task requirements and distribute them to the modular distributed interface modules and the multi-bus fusion platform for connection;

[0101] In this embodiment, the data transmission mechanism of the modular processing module is:

[0102] The modular processing module obtains the following data from the data reading and processing module:

[0103] Structured device information: including device ID, type, technical parameters (such as gain, offset rate) and application association, organized by the data reading and processing module through multi-layer nested data structures;

[0104] Memory-mapped preprocessed data: physical address binding information directly accessed through shared memory, used to dynamically associate device channels with simulation platform variables;

[0105] Real-time task instructions: including task priority, processing timeliness requirements and target module identification, are generated and delivered by the event-driven architecture.

[0106] Data transmission path and distribution logic of modular processing modules:

[0107] Assignment to modular distributed interface modules:

[0108] According to the device type label (such as sensor, actuator, controller), the data is routed to the corresponding functional unit:

[0109] Data acquisition unit: receives raw signal data (such as analog and digital quantities) and transmits it through shared memory or high-speed communication bus;

[0110] Data processing unit: receives data that requires complex calculations (such as filtering and calibration) and directly transmits it through memory mapping using zero-copy technology;

[0111] Data output unit: receives processing results and sends them to the flight simulation system platform through a standardized interface protocol.

[0112] In this embodiment, the distributed interface also includes interfaces of various I / O industrial computer devices.

[0113] Distribute to multiple bus convergence platforms:

[0114] Dynamically route data via the bus adaptation layer protocol based on the target device's bus type (e.g. ARINC429, CAN, Ethernet):

[0115] CAN bus module: distributes device control instructions or status query requests to the specified CAN bus module (1-436);

[0116] Data transmission technology optimization:

[0117] Shared memory interaction: Modular processing modules directly read and write data to the shared memory area preloaded by the reading and processing modules, avoiding data replication delays;

[0118] Zero-copy technology: When transferring data across modules, data buffers are directly manipulated through pointer references or memory mapping, eliminating intermediate copy overhead.

[0119] Event-driven transmission: Use message queues or event triggers to encapsulate data into event packets (including timestamps and priority tags) to ensure that real-time tasks are processed first.

[0120] Modular distributed interface module, including multiple independent functional modules with data processing functions;

[0121] The independent functional modules include a data acquisition module, a data processing module and a data output module that achieve seamless docking and collaboration through a standardized interface protocol.

[0122] For modular distributed interface modules, the present invention supports parallel development and testing, that is, each module can be developed and tested simultaneously without interfering with each other, which improves the development efficiency and maintainability of the system.

[0123] During the parallel development process, it is necessary to ensure the consistency of interface standards between modules to avoid integration problems caused by interface mismatch.

[0124] Modules communicate and exchange data through shared memory, communication buses, or network protocols. For example, the data acquisition module can pass the collected data to the data processing module through shared memory for processing.

[0125] In order to ensure the reliability and real-time nature of communication, technical means such as event-driven architecture or message queues can be adopted.

[0126] The multiple bus interfaces in this embodiment include at least an aviation bus and a CAN bus.

[0127] The system integrates multiple bus technologies, such as aviation bus, CAN bus, serial communication, network protocol, etc., to build a distributed data communication platform. These bus technologies each have their own characteristics and application scenarios. Through integration, comprehensive support for different devices and systems can be achieved.

[0128] Develop unified interface standards and communication protocols for each bus technology to ensure seamless connection and efficient collaboration between different bus technologies.

[0129] Distributed data processing:

[0130] By using distributed computing technology, data processing tasks are assigned to multiple nodes for parallel processing, which improves the processing power and scalability of the system.

[0131] In the distributed data processing process, it is necessary to ensure data consistency and synchronization between nodes. This can be achieved by using technologies such as distributed databases and distributed caches.

[0132] For the real-time assurance module, the present invention uses a high-precision timer to build a unified time synchronization mechanism, and controls the timestamp accuracy within the millisecond level by combining the hardware-level clock source with the software scheduling algorithm. At the same time, memory mapping technology is used to achieve dynamic binding of device channels and simulation system platform variable parameters, reducing the delay of intermediate data copying. Combining the event-driven architecture with zero-copy technology, a pipelined processing link of "acquisition-mapping-processing" is formed to achieve millisecond-level data throughput. In addition, the system also controls the long-term operation error within the microsecond level through the clock drift compensation algorithm and the hardware-level timestamp calibration mechanism, meeting the real-time requirements of high-precision fields such as aerospace.

[0133] It should be noted that the modular distributed interface and multi-bus fusion system of the simulator provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be decomposed or combined. For example, the modules in the above embodiments can be combined into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps and are not regarded as improper limitations on the present invention.

[0134] The second aspect of the present invention, see Figure 2 and Figure 3 A data processing method for integrating a modular distributed interface of a simulator and multiple buses is proposed. Based on a simulator modular distributed interface and multiple buses integration system of the first embodiment, the method includes:

[0135] Read the device configuration data of the interface system from the device management database system through SQL query statements, and detect whether the query status is abnormal;

[0136] If the query status is normal, the memory space is dynamically allocated based on the query results to generate a data record structure and a multi-layer nested device binding structure;

[0137] Traverse the structure and write device configuration information to complete the mapping and binding of device groups and simulation platform variables;

[0138] If the query status is abnormal, the exception handling structure is dynamically allocated, the shared memory address is initialized, and the exception information is recorded; the device variables are dynamically bound to the interface system variables through memory mapping technology; the temporary memory space is released, and the binding result status code is returned.

[0139] Furthermore, if the query status is normal, specifically:

[0140] Obtain the number of query records, and allocate a corresponding number of data record structure instances in the heap memory through a dynamic memory allocation mechanism based on the number;

[0141] Read device configuration data one by one, write the current record to the corresponding position of the data record structure instance, and loop until all records are written;

[0142] Read the shared memory variable information binding table from the device management database system, dynamically allocate memory space for a multi-layer nested device binding structure according to the quantity information in the binding table, and write data related to device grouping, type, and channel quantity;

[0143] A pointer to the multi-layer nested device binding structure is created, the data record structure instance is traversed to obtain the number of device groups, and mapping and binding between the device and the simulation platform variable is completed based on the grouping information.

[0144] Furthermore, if the query status is abnormal, specifically:

[0145] Dynamically allocate memory space for variable binding structures, write exception records one by one, and loop until the records are empty;

[0146] Initialize the shared memory address of the interface system according to the shared memory variable information binding table;

[0147] Dynamically bind the variables in the device information binding table to the variables in the interface system variable information table through memory mapping technology;

[0148] Release all temporarily allocated memory space and return the corresponding status code based on the binding result.

[0149] Although the various steps in the above embodiment are described in the above-mentioned order, those skilled in the art will understand that in order to achieve the effect of this embodiment, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in a reverse order. These simple changes are within the scope of protection of the present invention.

[0150] An electronic device according to a third embodiment of the present invention includes:

[0151] at least one processor; and

[0152] a memory communicatively connected to at least one of the processors; wherein,

[0153] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the above-mentioned data processing method for integrating a modular distributed interface of a simulator with multiple buses.

[0154] A computer-readable storage medium according to a fourth embodiment of the present invention stores computer instructions, which are used to be executed by the computer to implement the above-mentioned data processing method for integrating a modular distributed interface of a simulator with multiple buses.

[0155] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes and related instructions of the storage device and processing device described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0156] Those skilled in the art should be able to appreciate that the modules and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, and the programs corresponding to the software modules and method steps can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the art. In order to clearly illustrate the interchangeability of electronic hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may 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 the present invention.

[0157] The terms "first", "second", etc. are used to distinguish similar objects, rather than to describe or indicate a particular order or sequence.

[0158] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed or inherent to such process, method, article, or apparatus.

[0159] Thus far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present invention.

Claims

1. A simulator modular distributed interface and multi-bus fusion system, characterized in that: The system includes: An equipment management database system configured to store equipment information, including an equipment basic information table, an equipment technical parameter table, and an equipment application association table; The data reading and processing module is configured as a multi-layer nested data structure defined by a dynamic memory allocation mechanism and pointer form, which reads device information in real time and converts it into structured data; A modular processing module configured to obtain the structured data and task requirements and distribute them to the modular distributed interface modules and the multi-bus fusion platform for connection; Modular distributed interface module, including multiple independent functional modules with data processing functions; Multi-bus fusion platform integrates multiple bus interfaces, Ethernet interfaces and serial communication interfaces. Each bus interface realizes seamless connection and data interaction of heterogeneous buses through a unified bus adaptation layer protocol. a flight simulation system platform configured to connect to the modular distributed interface module, the multi-bus fusion platform, and the data reading and processing module via shared memory, and preload memory mapping information to dynamically bind device channels and simulation platform variables; Interface system hardware acquisition equipment, which communicates with the flight simulator electronic equipment through the modular distributed interface module and the multi-bus fusion platform; Real-time assurance module, which includes a timer, a memory mapping unit, and a zero-copy transmission unit; The timer is connected to the data reading and processing module and is used to trigger periodic data reading tasks, ensure the timing consistency of data acquisition and processing through a unified timestamp mechanism, and provide a unified clock reference for the modular distributed interface module and the multi-bus fusion platform to ensure that the triggering timing of periodic tasks is synchronized with the data processing link; The memory mapping unit directly accesses the device channel data through the physical memory address, thereby realizing dynamic binding between the device channel and the flight simulation system platform variable; The zero-copy transmission unit establishes a zero-copy data transmission link between the data reading and processing module, the modular processing module and the multi-bus fusion platform, and directly operates the data buffer through pointer reference or memory mapping.

2. A simulator modular distributed interface and multi-bus fusion system according to claim 1, characterized in that: The equipment management database system adopts a relational database; The device basic information table stores device ID, device name and device status; The device technical parameter table stores device gain, offset rate and basic clock parameters; The device application association table establishes a binding relationship between the device and the flight simulator model.

3. The simulator modular distributed interface and multi-bus fusion system according to claim 1, characterized in that: Dynamic memory allocation mechanism, which specifically includes: During the data reading process, a quantity variable is introduced to record the amount of data currently being processed in real time; The number of the data structures is dynamically determined based on the actual results of real-time queries from the device management database system, and corresponding memory space is allocated in the heap memory through a dynamic memory allocation function; After the data is read, the memory release dynamic memory allocation function is called to reclaim the allocated memory space.

4. The simulator modular distributed interface and multi-bus fusion system according to claim 1, characterized in that: The multiple bus interfaces include at least aviation bus and CAN bus.

5. The simulator modular distributed interface and multi-bus fusion system according to claim 1, characterized in that: Through the dynamic memory allocation mechanism and the multi-layer nested data structure defined in the form of pointers, device information is read in real time and converted into structured data. Specifically: Read the required device information from the device management database system through SQL query statements; Based on the amount of device information read, a corresponding number of multi-layer nested data structure instances are allocated in the heap memory through the dynamic memory allocation mechanism; Filling the device information into the data structure instance to form structured data; The structured data is transferred to the modular processing module to be distributed to the modular distributed interface module and the multi-bus fusion platform.

6. The simulator modular distributed interface and multi-bus fusion system according to claim 1, characterized in that: The independent functional modules include a data acquisition module, a data processing module and a data output module that achieve seamless docking and collaboration through a standardized interface protocol.

7. A data processing method for simulator modular distributed interface and multi-bus fusion, based on a simulator modular distributed interface and multi-bus fusion system according to any one of claims 1 to 6, characterized in that: The method includes: Read the device configuration data of the interface system from the device management database system through SQL query statements, and detect whether the query status is abnormal; If the query status is normal, the memory space is dynamically allocated based on the query results to generate a data record structure and a multi-layer nested device binding structure; Traverse the structure and write device configuration information to complete the mapping and binding of device groups and simulation platform variables; If the query status is abnormal, the exception handling structure is dynamically allocated, the shared memory address is initialized, and the exception information is recorded; the device variables are dynamically bound to the interface system variables through memory mapping technology; the temporary memory space is released, and the binding result status code is returned.

8. The data processing method of the simulator modular distributed interface and multi-bus fusion according to claim 7 is characterized in that: If the query status is normal, specifically: Obtain the number of query records, and allocate a corresponding number of data record structure instances in the heap memory through a dynamic memory allocation mechanism based on the number; Read device configuration data one by one, write the current record to the corresponding position of the data record structure instance, and loop until all records are written; Read the shared memory variable information binding table from the device management database system, dynamically allocate memory space for a multi-layer nested device binding structure according to the quantity information in the binding table, and write data related to device grouping, type, and channel quantity; A pointer to the multi-layer nested device binding structure is created, the data record structure instance is traversed to obtain the number of device groups, and mapping and binding between the device and the simulation platform variable is completed based on the grouping information.

9. The data processing method of the simulator modular distributed interface and multi-bus fusion according to claim 8 is characterized in that: If the query status is abnormal, specifically: Dynamically allocate memory space for variable binding structures, write exception records one by one, and loop until the records are empty; Initialize the shared memory address of the interface system according to the shared memory variable information binding table; Dynamically bind the variables in the device information binding table to the variables in the interface system variable information table through memory mapping technology; Release all temporarily allocated memory space and return the corresponding status code based on the binding result.

Citation Information

Patent Citations

  • Flight maintenance simulator distributed communication resource integration method

    CN115509146A

  • Operating system abstraction layer implementation method applied to drive development

    CN119739390A