Analog machine 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 model 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.

CN120295953AActive Publication Date: 2025-07-11CHINA SOUTHERN TECHNOLOGY (GUANGDONG HENGQIN) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510778999.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-12
Publication Date
2025-07-11
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

Modular distributed interface and multi-bus fusion system are adopted, including equipment management database system, data reading and processing module, modular processing module, modular distributed interface module, multi-bus fusion platform, flight simulation system platform and real-time assurance module. Real-time data reading and processing are realized through multi-layer nested data structures defined in the form of dynamic memory allocation and pointer, and seamless connection between modules is achieved through unified interface standards.

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 CN120295953A_ABST
    Figure CN120295953A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of data processing, and particularly relates to an analog machine modular distributed interface and multi-bus fusion system and a data processing method. The method aims at solving the problems that development and maintenance cost is high, system reusability is low, and a standardization process is hindered. The system comprises an equipment 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 equipment information in real time through dynamic memory allocation and a multi-layer nested data structure, adopts an independent function modular design, and integrates various bus / Ethernet / serial port interfaces. The flight simulation platform realizes dynamic binding of equipment channels and simulation variables through shared memory preloading, and realizes efficient communication with analog machine electronic equipment in combination with hardware acquisition equipment, so that a modular extensible distributed interface system is formed. According to the invention, efficient expansion and real-time processing are realized through modular general design, the customization cost is reduced, and the standardization is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In a flight simulator device, the interface system program serves as a bridge for communication between the simulator simulation platform and the hardware device. However, due to different models and types of simulators, the acquisition devices used are also different, which leads to the need for customized development of the interface system according to different acquisition devices. This customized development not only increases the development cost and maintenance cost of the software program but also affects the standardization process of simulator production.

[0003] However, due to different models and types of simulators, the acquisition devices used are also different, which leads to the need for customized development of the interface system according to different acquisition devices. This customized development not only increases the development cost and maintenance cost of the software program but also affects the standardization process of simulator production.

[0004] For example, the flight simulator interface system solution. Although it solves the problems that the flight simulator interface system is not suitable for multiple signal type interfaces and is prone to signal chaos, its essence is still based on a specific type of acquisition board for communication.

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

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

[0007] In the first aspect of the present invention, a modular distributed interface and multi-bus fusion system for a simulator is proposed. The system includes:[[]] A device management database system configured to store device information, where the device information includes a device basic information table, a device technical parameter table, and a device application association table; A data reading and processing module configured to read device information in real time through a multi-layer nested data structure defined by a dynamic memory allocation mechanism and pointer form, and convert it into structured data; A modular processing module configured to obtain the structured data and task requirements, and allocate them to a sub-modular distributed interface module and a multi-bus fusion platform for connection; A modular distributed interface module including a plurality of independent functional modules with data processing functions; A multi-bus fusion platform integrates multiple bus interfaces, an Ethernet interface, and a serial communication interface. Each bus interface realizes seamless connection and data interaction of heterogeneous buses through a unified bus adaptation layer protocol; A flight simulation system platform is configured to be connected to the modular distributed interface module, the multi-bus fusion platform, and the data reading and processing module through shared memory, and pre-loads memory mapping information to dynamically bind device channels to simulation platform variables; An interface system hardware acquisition device communicates with flight simulator electronic devices through the modular distributed interface module and the multi-bus fusion platform.

[0008] Furthermore, the system further includes a real-time guarantee module, which includes a timer, a memory mapping unit, and a zero-copy transfer unit; The timer is connected to the data reading and processing module, 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 trigger timing of periodic tasks is synchronized with the data processing link; The memory mapping unit directly accesses device channel data through physical memory addresses to realize the dynamic binding of device channels to flight simulation system platform variables; The zero-copy transfer unit establishes a zero-copy data transfer link between the data reading and processing module, the modular processing module, and the multi-bus fusion platform, and directly operates on the data buffer through pointer reference or memory mapping.

[0009] Furthermore, the device management database system adopts a relational database; The device basic information table stores device IDs, device names, and device statuses; The device technical parameter table stores device gains, offset rates, and basic clock parameters; The device application association table establishes a binding relationship between devices and flight simulator models.

[0010] Furthermore, a dynamic memory allocation mechanism specifically includes: During data reading, a quantity variable is introduced to record the current amount of processed data in real time; The quantity of the data structure is dynamically determined based on the actual results queried in real time from the device management database system, and the corresponding memory space is allocated in the heap memory through a dynamic memory allocation function; After data reading is completed, the memory release dynamic memory allocation function is called to recycle the allocated memory space.

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

[0012] Furthermore, a multi-layer nested data structure defined through a dynamic memory allocation mechanism and pointer form is used to read device information in real time and convert it into structured data. Specifically: Read the required device information from the device management database system through an SQL query statement; According to the number of device information read, allocate corresponding multi-layer nested data structure instances in the heap memory through a dynamic memory allocation mechanism; Fill the device information into the data structure instances to form structured data; Transfer the structured data to the modular processing module for distribution to the modular distributed interface module and the multi-bus fusion platform.

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

[0014] On the other hand, the present invention proposes a data processing method for the modular distributed interface and multi-bus fusion of a simulator. Based on a simulator modular distributed interface and multi-bus fusion system, the method includes: Read the device configuration data of the interface system from the device management database system through an SQL query statement and detect whether the query status is abnormal; If the query status is normal, dynamically allocate memory space based on the query result to generate a data record structure and a multi-layer nested device binding structure; Traverse the structure and write the device configuration information to complete the mapping and binding of device grouping and simulation platform variables; If the query status is abnormal, dynamically allocate an exception handling structure, initialize the shared memory address, and record the exception information; dynamically bind the device variables and interface system variables through memory mapping technology; release the temporary memory space, and return the binding result status code.

[0015] Furthermore, if the query status is normal, specifically: Obtain the number of query records and allocate corresponding data record structure instances in the heap memory based on the number through a dynamic memory allocation mechanism; Read the device configuration data item by item, 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 the memory space of the multi-layer nested device binding structure according to the quantity information in the binding table, and write the data related to device grouping, type, and channel quantity; Create a pointer to the multi-layer nested device binding structure, traverse the instance of the data record structure to obtain the number of device groups, and complete the mapping and binding of the device and the simulation platform variables based on the grouping information.

[0016] Further, if the query status is abnormal, specifically: Dynamically allocate the memory space of the variable binding structure, write the exception records one by one and process them in a 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 and the variables in the interface system variable information table through the memory mapping technology; Release all temporarily allocated memory spaces and return the corresponding status code according to the binding result.

[0017] Advantages of the present invention: (1) Generalization: By introducing the device management database system and the unified data structure, the generalization design of the interface system is realized. The system can adapt to different models and types of simulator devices, reducing the cost of customized development and maintenance costs.

[0018] (2) Modularity: Adopting the modular design concept, the interface system is divided into multiple independently processed modules. The modules are seamlessly docked and efficiently coordinated through a unified interface standard, supporting parallel development and testing, and improving the maintainability of the system.

[0019] (3) High efficiency: By defining the data structure in the form of a pointer and the dynamic memory allocation mechanism, the data processing efficiency is optimized. The system can flexibly and efficiently complete the data reading and processing tasks according to the dynamic changes of the actual data volume.

[0020] (4) Scalability: The system integrates a variety of bus technologies to build a distributed data communication platform. Through a unified interface standard and communication protocol, seamless connection and efficient coordination between different bus technologies are realized. This design makes the system open and easy to expand.

[0021] (5) Real-time performance: By means of high-precision timers, memory mapping technology, event-driven architecture and zero-copy technology, etc., a real-time performance guarantee system is constructed. The system can meet the real-time requirements of high-precision fields such as aerospace. Description of the Drawings

[0022] By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present application will become more obvious: Figure 1It is a schematic structural diagram of a modular distributed interface and multi-bus fusion system of a simulator according to the present invention; Figure 2 It is a schematic flow diagram of a data processing method for a modular distributed interface and multi-bus fusion of a simulator according to the present invention; Figure 3 It is a schematic diagram of data interaction of a data processing method for a modular distributed interface and multi-bus fusion of a simulator. Specific Embodiments

[0023] The following further details the present application with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only for explaining the relevant invention and not for limiting the invention. Additionally, it should be noted that for ease of description, only parts related to the relevant invention are shown in the drawings.

[0024] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The following will detail the present application with reference to the accompanying drawings and embodiments.

[0025] In the first embodiment of the present invention, a modular distributed interface and multi-bus fusion system of a simulator is provided. The system includes: A device management database system configured to store device information, where the device information includes a device basic information table, a device technical parameter table, and a device application association table; A data reading and processing module configured to read device information in real time through a multi-layer nested data structure defined by a dynamic memory allocation mechanism and pointer form, and convert it into structured data; A modular processing module configured to obtain the structured data and task requirements, and allocate them to a sub-modular distributed interface module and a multi-bus fusion platform for connection; A modular distributed interface module including multiple independent functional modules with data processing functions; A multi-bus fusion platform integrating multiple bus interfaces, an Ethernet interface, and a serial communication interface, and 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 through shared memory, and pre-load memory mapping information to dynamically bind device channels and simulation platform variables; An interface system hardware acquisition device that communicates with the electronic devices of a flight simulator through the modular distributed interface module and the multi-bus fusion platform.

[0026] A real-time guarantee module including a timer, a memory mapping unit, and a zero-copy transfer 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, and realizes the dynamic binding between the device channel and the variables of the flight simulation system platform; 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.

[0027] The working process of the present invention mainly includes the following steps: (1) Device information management: First, store and manage the information of all devices through the device management database system. In the device initialization stage, the system reads the device information from the database and performs corresponding initialization operations according to the device information.

[0028] (2) Data reading and organization: In the data calling stage, the data reading and processing module realizes the efficient reading and organization of the device information in the database by constructing a unified data structure. The data structure is defined in the form of a pointer, and the dynamic memory allocation mechanism is used 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.

[0029] (3) Modular processing: The modular distributed interface system transfers the data to the corresponding module for processing according to the type of device information. Each module independently processes specific types of data or devices, and performs seamless docking and efficient cooperation through a unified interface standard. The processing results are transferred to other modules or the simulation system platform through shared memory or a communication bus for further processing.

[0030] (4) Multi-bus fusion communication: The multi-bus fusion platform integrates multiple bus technologies to achieve seamless connection and efficient cooperation between different bus technologies. Through a unified interface standard and communication protocol, efficient data communication and interaction can be carried out between modules. This design makes the system open and easy to expand, and fully supports the distributed processing of multiple services.

[0031] (5) Real-time guarantee: The real-time guarantee system adopts means such as high-precision timers, memory mapping technology, event-driven architectures, and zero-copy technology to ensure the timing consistency of periodic task triggering and data acquisition of each functional module. Through the clock drift compensation algorithm and the hardware-level timestamp calibration mechanism, the system controls the long-term running error within the microsecond level, meeting the real-time requirements of high-precision fields such as aerospace.

[0032] To more clearly illustrate a modular distributed interface and multi-bus fusion system for a simulator of the present invention, the following combines Figure 1 to elaborate on each module in the embodiments of the present invention, and the detailed description is as follows: The device management database system is configured to store device information, and the device information includes a device basic information table, a device technical parameter table, and a device application association table; In this embodiment, the device management database system adopts a relational database; The device basic information table stores the device ID, device name, and device status; The device technical parameter table stores the device gain, offset rate, and basic clock parameter; The device application association table establishes a binding relationship between the device and the flight simulator model.

[0033] 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, a device application association table, etc. The device basic information table stores the core attributes of the device, such as the device ID, device name, device type, device status, etc.; the device technical parameter table stores the configuration attributes of the device, such as the device gain, device offset rate, device basic clock, device cache size, etc.; the device application association table establishes a binding relationship between the device and the simulator device, such as associating the acquisition device with the simulator model and simulator class.

[0034] The present invention introduces a device management database system for storing and managing the information of all devices. The database system adopts a unified data structure, classifies the device information into parts such as basic information, technical parameters, and application associations, and enters them into the database for management. This design makes the storage and management of device information more standardized and efficient, providing a basis for the generalization of the interface system.

[0035] The data reading and processing module is configured to read device information in real time through a multi-layer nested data structure defined by a dynamic memory allocation mechanism and pointers, and convert it into structured data; The dynamic memory allocation mechanism specifically includes: During the data reading process, a quantity variable is introduced to record the amount of data being processed in real time; The number of the data structures is dynamically determined based on the actual results queried in real time from the device management database system, and the corresponding memory space is allocated in the heap memory through a dynamic memory allocation function; After the data reading is completed, the dynamic memory allocation function for memory release is called to recycle the allocated memory space.

[0036] Among them, the dynamic memory allocation function in this embodiment is preferably: the malloc function or the calloc function.

[0037] Through the multi-layer nested data structures defined by the dynamic memory allocation mechanism and the pointer form, the device information is read in real time and converted into structured data. Specifically: The required device information is read from the device management database system through an SQL query statement; According to the number of the read device information, the corresponding number of multi-layer nested data structure instances are allocated in the heap memory through the dynamic memory allocation mechanism; The device information is filled into the data structure instances to form structured data; The structured data is passed to the modular processing module to be allocated to the modular distributed interface module and the multi-bus fusion platform.

[0038] The present invention adopts a set of carefully designed data reading mechanisms. By constructing a unified data structure, the efficient reading and organization of device information in the database are realized. This data structure has a complex structure design with multi-layer nesting, which can accurately maintain the intricate data association levels among various device information, ensuring the effective guarantee of data integrity and logic.

[0039] To further optimize the data processing efficiency and improve the flexibility of the system, the data structure is defined in the form of pointers. The use of pointers makes the transfer and operation of data in the memory space more efficient, significantly reducing the data copying overhead associated with the traditional value transfer method, thereby greatly improving the overall performance of the system in the data reading and processing process.

[0040] During the data reading process, a quantity variable is introduced into the system to accurately record the quantity of the currently processed data. The number of data structures is not statically set in advance, but is dynamically allocated entirely according to the actual results queried in real time from the database. This dynamic memory allocation mechanism cleverly avoids problems such as memory resource waste or insufficiency that may be caused by the traditional static allocation method, enabling the interface system to flexibly and efficiently complete the data reading and processing tasks according to the dynamic changes in the actual data volume.

[0041] A modular processing module, configured to obtain the structured data and task requirements and allocate them to a modular distributed interface module and connect to a multi-bus fusion platform; In this embodiment, the data transmission mechanism of the modular processing module is as follows: The modular processing module obtains the following data from the data reading and processing module: Structured device information: including device ID, type, technical parameters (such as gain, offset rate), and application association relationship, which are organized by the data reading and processing module through a multi-layer nested data structure; Memory mapping preprocessed data: physical address binding information accessed directly through shared memory, used for dynamically associating device channels with simulation platform variables; Real-time task instructions: including task priority, processing timeliness requirements, and target module identification, generated and transmitted by an event-driven architecture.

[0042] Data transmission path and allocation logic of the modular processing module: Allocated to the modular distributed interface module: According to the device type label (such as sensor, actuator, controller), route the data to the corresponding functional unit: Data acquisition unit: receives raw signal data (such as analog quantity, digital quantity) and transmits it through shared memory or a high-speed communication bus; Data processing unit: receives data that requires complex calculations (such as filtering, calibration), and directly transfers it through memory mapping using the zero-copy technology; Data output unit: receives the processing result and sends it to the flight simulation system platform through a standardized interface protocol.

[0043] Among them, the distributed interface in this embodiment also includes interfaces for various I / O industrial control computer devices.

[0044] Allocated to the multi-bus fusion platform: According to the bus type of the target device (such as ARINC429, CAN, Ethernet), dynamically route the data through the bus adaptation layer protocol: CAN bus module: distributes device control instructions or status query requests to the specified numbered CAN bus modules (1 - 436); Data transmission technology optimization: Shared memory interaction: The modular processing module directly reads and writes the pre-loaded shared memory area of the data reading and processing module to avoid data replication latency; Zero-copy technology: When transmitting across modules, directly operate on the data buffer through pointer reference or memory mapping to eliminate intermediate copy overhead; Event-driven transmission: Using message queues or event triggers, encapsulate data into event packets (including timestamps and priority tags) to ensure that real-time tasks are processed first.

[0045] Modular distributed interface module, which includes multiple independent functional modules with data processing capabilities; 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.

[0046] For the modular distributed interface module, the present invention supports parallel development and testing, that is, each module can perform development and testing work simultaneously without interference. This improves the development efficiency and maintainability of the system.

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

[0048] Each module communicates and exchanges data through methods such as shared memory, communication buses, or network protocols. For example, the data acquisition module can transfer the acquired data to the data processing module through shared memory for processing.

[0049] To ensure the reliability and real-time performance of communication, technical means such as event-driven architectures or message queues can be adopted.

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

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

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

[0053] Distributed data processing: Utilize distributed computing technology to distribute data processing tasks to multiple nodes for parallel processing. This improves the processing capacity and scalability of the system.

[0054] During the distributed data processing process, it is necessary to ensure data consistency and synchronization between nodes. Technical means such as distributed databases and distributed caches can be used to achieve this.

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

[0056] It should be noted that for the analog machine modular distributed interface and multi-bus fusion system provided in the above embodiments, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be further decomposed or combined. For example, the modules in the above embodiments can be combined into one module, or further split into multiple sub-modules to complete all or part of the functions described above. For the names of the modules and steps involved in the embodiments of the present invention, they are only used to distinguish each module or step and are not regarded as an improper limitation of the present invention.

[0057] In the second aspect of the present invention, see Figure 2 and Figure 3 , a data processing method for an analog machine modular distributed interface and multi-bus fusion is proposed. Based on the analog machine modular distributed interface and multi-bus fusion system of the first embodiment, the method includes: Read the device configuration data of the interface system from the device management database system through an SQL query statement and detect whether the query status is abnormal; If the query status is normal, dynamically allocate memory space based on the query result, generate a data record structure and a multi-layer nested device binding structure; Traverse the structure and write the device configuration information to complete the mapping and binding of device grouping and simulation platform variables; If the query status is abnormal, dynamically allocate an exception handling structure, initialize the shared memory address, and record the exception information; dynamically bind the device variables and the interface system variables through memory mapping technology; release the temporary memory space and return the binding result status code.

[0058] Further, if the query status is normal, specifically: Obtain the number of query records, and allocate corresponding numbers of data record structure instances in the heap memory based on the number through a dynamic memory allocation mechanism; Read the device configuration data item by item, write the current record to the corresponding position of the data record structure instance, and process it in a loop until all records are written; Read the shared memory variable information binding table from the device management database system, dynamically allocate the memory space of the multi-layer nested device binding structure according to the quantity information in the binding table, and write the data related to device grouping, type, and channel quantity; Create a pointer pointing to the multi-layer nested device binding structure, traverse the data record structure instance to obtain the device grouping quantity, and complete the mapping binding between the device and the simulation platform variables based on the grouping information.

[0059] Furthermore, if the query status is abnormal, specifically: Dynamically allocate the memory space of the variable binding structure, write the abnormal records item by item and process them in a 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 and the variables in the interface system variable information table through the memory mapping technology; Release all temporarily allocated memory spaces, and return the corresponding status code according to the binding result.

[0060] Although the above embodiments describe each step in the above sequential order, those skilled in the art can understand that in order to achieve the effects 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 reversed order, and these simple changes are within the protection scope of the present invention.

[0061] An electronic device according to the third embodiment of the present invention includes: At least one processor; and A memory communicatively connected to at least one of the processors; wherein, The memory stores instructions executable by the processor, and the instructions are used to be executed by the processor to implement the above data processing method for the modular distributed interface and multi-bus fusion of the simulator.

[0062] A computer-readable storage medium according to the fourth embodiment of the present invention, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to be executed by the computer to implement the above data processing method for the modular distributed interface and multi-bus fusion of the simulator.

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

[0064] Those skilled in the art should be able to realize that the modules and method steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. The programs corresponding to the software modules and method steps can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. To clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in the form of electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0065] The terms "first", "second", etc. are used to distinguish similar objects, rather than to describe or represent a specific order or sequence.

[0066] The term "comprising" or any other similar term is intended to cover non-exclusive inclusion, so that a process, method, article, or device / equipment including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent in these processes, methods, articles, or devices / equipment.

[0067] So far, the technical solution of the present invention has been described in combination with the preferred embodiments shown in the drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A modular distributed interface and multi-bus fusion system for a simulator, characterized in that, The system includes: A device management database system configured to store device information, where the device information includes a device basic information table, a device technical parameter table, and a device application association table; A data reading and processing module configured to read device information in real time through a multi-layer nested data structure defined in the form of a dynamic memory allocation mechanism and pointers, and convert it into structured data; A modular processing module configured to obtain the structured data and task requirements, and allocate them to a modular distributed interface module and a multi-bus fusion platform for connection; The modular distributed interface module includes multiple independent functional modules with data processing functions; The multi-bus fusion platform integrates multiple bus interfaces, an Ethernet interface, and a serial communication interface. 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 be connected to the modular distributed interface module, the multi-bus fusion platform, and the data reading and processing module through shared memory, and pre-load memory mapping information to dynamically bind device channels to simulation platform variables; An interface system hardware acquisition device that communicates with the flight simulator electronic device through the modular distributed interface module and the multi-bus fusion platform.

2. The modular distributed interface and multi-bus fusion system of a simulator according to claim 1, characterized in that, The system further includes a real-time guarantee 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 trigger timing of periodic tasks is synchronized with the data processing link; The memory mapping unit directly accesses device channel data through physical memory addresses to realize dynamic binding of device channels to flight simulation system platform variables; 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 on the data buffer through pointer reference or memory mapping.

3. The modular distributed interface and multi-bus fusion system of a simulator according to claim 1, wherein, The device management database system uses a relational database; The device basic information table stores device IDs, device names, and device statuses; The device technical parameter table stores device gains, offset rates, and basic clock parameters; The device application association table establishes a binding relationship between the device and the flight simulator model.

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

5. The modular distributed interface and multi-bus fusion system of a simulator according to claim 1, characterized in that The multiple bus interfaces at least include an avionics bus and a CAN bus.

6. The modular distributed interface and multi-bus fusion system of a simulator according to claim 1, characterized in that Read device information in real time through a multi-layer nested data structure defined in the form of a dynamic memory allocation mechanism and pointers, and convert it into structured data, specifically: Read the required device information from the device management database system through an SQL query statement; Allocate corresponding numbers of instances of multi-layer nested data structure in the heap memory through a dynamic memory allocation mechanism according to the number of device information read; Fill the device information into the data structure instances to form structured data; Transfer the structured data to the modular processing module for distribution to the modular distributed interface module and the multi-bus fusion platform.

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

8. A data processing method for the integration of a modular distributed interface and multiple buses of a simulator, based on the system for the integration of a modular distributed interface and multiple buses of a simulator according to any one of claims 1-7, characterized in that, The method includes: Read the device configuration data of the interface system from the device management database system through an SQL query statement, and detect whether the query status is abnormal; If the query status is normal, dynamically allocate memory space based on the query result to generate a data record structure and a multi-layer nested device binding structure; Traverse the structure and write the device configuration information to complete the mapping binding of device grouping and simulation platform variables; If the query status is abnormal, dynamically allocate an exception handling structure, initialize the shared memory address, and record the exception information; dynamically bind the device variables and interface system variables through memory mapping technology; release the temporary memory space, and return the binding result status code.

9. A data processing method for the fusion of a modular distributed interface and multiple buses of a simulator, as claimed in claim 8, wherein If the query status is normal, specifically: Obtain the number of query records, and allocate corresponding numbers of data record structure instances in the heap memory through a dynamic memory allocation mechanism based on the number; Read the device configuration data item by item, 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 the memory space of the multi-layer nested device binding structure according to the quantity information in the binding table, and write the data related to device grouping, type, and channel quantity; Create a pointer pointing to the multi-layer nested device binding structure, traverse the data record structure instances to obtain the device grouping number, and complete the mapping binding of the device and simulation platform variables based on the grouping information.

10. A data processing method for the integration of a modular distributed interface and multiple buses of a simulator, according to claim 9, characterized in that If the query status is abnormal, specifically: Dynamically allocate the memory space of the variable binding structure, write the exception records item by item 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 and the variables in the interface system variable information table through memory mapping technology; Release all temporarily allocated memory spaces, and return the corresponding status code according to the binding result.

Citation Information

Patent Citations

  • Universal interface system of flight simulator based on USB (Universal Serial Bus)

    CN102937942A

  • Flight simulator interface system

    CN110599854A

  • Flight maintenance simulator distributed communication resource integration method

    CN115509146A

  • Design method and system of full-motion flight simulator interface

    CN117851314A

  • Flight simulator interface system

    CN118393913A