True-in-loop flight simulation cabin semi-physical simulation method and device, computer equipment, computer readable storage medium and computer program product
By using a global master clock to unify the time base and timestamp for synchronized evaluation and playback processing, the mapping problem of heterogeneous time-domain signals in time-sensitive networks is solved, improving the realism and accuracy of the hardware-in-the-loop simulation in the flight simulator.
Patent Information
- Application Number
- CN202611620547.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-20
- Publication Date
- 2026-11-17
AI Technical Summary
Existing technologies lack a unified time base when mapping heterogeneous time-domain signals from replaceable units in real avionics/display and control environments onto time-sensitive networks, resulting in poor hardware-in-the-loop simulation performance in flight simulators.
By using a global master clock to perform unified global time base processing on each simulation test port, gating scheduling information for the synchronous simulation test port is generated. Avionics simulation data streams are collected through a time-sensitive network switch, and synchronous evaluation and playback processing is performed in combination with timestamps to achieve unification of heterogeneous time domains.
It improves the realism of flight simulation results and the accuracy of simulation analysis, simplifies the gating and scheduling configuration when changing aircraft types, and enhances the simulation effect.
Smart Images

Figure CN123113442A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of hardware-in-the-loop simulation technology for avionics systems, and in particular to a hardware-in-the-loop simulation method, apparatus, computer equipment, computer-readable storage medium, and computer program product for a real-aircraft-in-the-loop flight simulator. Background Technology
[0002] Flight simulators, as core equipment for ground flight training and avionics and control system verification, are increasingly widely used. The avionics system is responsible for flight parameter calculation, navigation calculation, system status monitoring, and alarm logic generation. The control system is responsible for presenting avionics outputs to the pilot in the form of images, symbols, and alarms, and receiving the pilot's control inputs. The two are closely interconnected on the airborne bus. When using flight simulators, it is often necessary to connect the actual avionics and control equipment to the simulation loop for verification. For example, verifying the refresh display of the control screen, alarm logic, and real-time response to control commands. This requires the simulation network to have real-time performance and determinism compatible with real airborne communication.
[0003] Time-Sensitive Networking (TSN) addresses time synchronization and deterministic scheduling issues using IEEE 802.1AS (Generalized Precise Time Protocol gPTP) and IEEE 802.1Qbv (Gated Scheduling), respectively, providing a feasible foundation for building a deterministic simulation network that allows real equipment and simulation models to communicate within the same network. However, when directly applying TSN to a semi-physical simulation scenario in a flight simulator, the following unresolved technical contradictions exist: the peripheral interfaces (ARINC 429, discrete signals, and analog signals) of real avionics / display control line replaceable units (LRUs) each have independent timing characteristics and clock domains. ARINC 429 is an asynchronous tag serial bus, discrete signals are event-driven switching signals, and analog signals are continuous level signals, while TSN is a time-triggered network based on a globally unified time base. How to uniformly map the three types of heterogeneous time domain signals from the real equipment to the TSN time domain and achieve measurable and calibrable deterministic delay at the network boundary is the current research focus.
[0004] Traditional hardware-in-the-loop (HIL) simulation technology typically uses ordinary Ethernet (UDP) and serial ports to transmit data between subsystems within the simulation platform. Each device operates independently, lacking a unified time base. The heterogeneous interfaces of the real avionics LRUs and the real display and control LRUs (ARINC 429, discrete, analog, etc.) require separate adapter circuits, interface cards, and driver software for each type of interface. Some solutions introduce reflective memory or time-triggered Ethernet (TTE / SAEAS6802) to improve the determinism of internal simulation communication; however, the access of the real aircraft LRUs still relies on independent interface adapter cards, and there is a lack of a unified time base between the real aircraft signals and the simulation network. This results in poor simulation performance for hardware-in-the-loop flight simulators. Summary of the Invention
[0005] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for hardware-in-the-loop flight simulator to address the above-mentioned technical problems.
[0006] Firstly, this application provides a hardware-in-the-loop flight simulator method, including:
[0007] Before the flight simulation, the aircraft model configuration file and global time base of the aircraft model simulated in the flight simulator are obtained. Based on the global time base, the global master clock is used to perform global time base unified processing on each simulation test port to obtain each synchronous simulation test port.
[0008] The configuration file of the aircraft model is parsed and configured to generate gating scheduling information for each of the synchronous simulation test ports. During flight simulation, based on the gating scheduling information of each of the synchronous simulation test ports, the avionics simulation data stream and the first timestamp corresponding to the avionics simulation data stream are collected through a time-sensitive network switch.
[0009] The avionics simulation data stream is parsed and processed to obtain avionics display and control drive signals and a second timestamp corresponding to the avionics display and control drive signals. In response to the pilot's operation actions in the flight simulator, avionics display and control feedback signals and a third timestamp corresponding to the avionics display and control feedback signals are collected.
[0010] The avionics display and control feedback signal and the fourth timestamp during the encapsulation process are encapsulated to obtain the simulation model message for this flight simulation. Based on the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, and the simulation model message, synchronous evaluation and playback processing is performed using the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp to obtain the flight simulation result for this flight simulation.
[0011] Optionally, the step of performing global time base unification processing on each simulation test port based on the global time base and through the global master clock to obtain each synchronous simulation test port includes:
[0012] By using a link peer delay measurement strategy, the clock deviation value between the global master clock and the local clock of each of the simulation test ports is identified;
[0013] Based on the global time base and the clock deviation value corresponding to each simulation test port, the global time base is uniformly processed for each simulation test port to obtain each synchronous simulation test port.
[0014] Optionally, the step of parsing and configuring the machine model configuration file to generate gating scheduling information for each of the synchronous simulation test ports includes:
[0015] The device configuration file is split into sub-port configuration files for each synchronous simulation test port. For each synchronous simulation test port, the sub-port configuration file is parsed to obtain the period of each time-sensitive stream, the maximum frame length of each time-sensitive stream, the transmission time constraint of each time-sensitive stream, and the deadline of each time-sensitive stream.
[0016] Based on the period of each time-sensitive stream, a super-period is determined, and based on the cutoff time of each time-sensitive stream, a time slot is allocated to each time-sensitive stream within the super-period.
[0017] Each time slot is verified to obtain a verification result for each time slot. When the verification result is a pass, a gating schedule table for the synchronous simulation test port is constructed based on the time slots of each time-sensitive stream.
[0018] Optionally, the step of parsing and processing the avionics simulation data stream to obtain the avionics display and control drive signal, and the second timestamp corresponding to the avionics display and control drive signal, includes:
[0019] Based on the avionics simulation data, the avionics simulation data stream is framed into serial bus information through the forward drive channel according to the bus protocol, and the serial bus information is parsed and encapsulated to obtain time-sensitive network packets and a first peripheral timestamp.
[0020] The avionics simulation data is mapped to switch level transition information according to the discrete quantity channels, and the switch level transition information is aggregated according to the channel bitmap to obtain the periodic reporting stream and the second peripheral timestamp.
[0021] The avionics simulation data is converted into a periodic data stream and a third peripheral timestamp through the analog signal channel.
[0022] The time-sensitive network packets, the periodic reporting stream, and the periodic data stream are converted into heterogeneous interface synchronous conversions using the first peripheral time stamp, the second peripheral time stamp, and the third peripheral time stamp to obtain avionics display and control drive signals and the second time stamp corresponding to the avionics display and control drive signals.
[0023] Optionally, before encapsulating the avionics display and control feedback signal and the fourth timestamp of the avionics display and control feedback signal during encapsulation to obtain the simulation model message for this flight simulation, the method further includes:
[0024] Collect fault injection instructions containing global time base trigger timestamps, and identify current fault information based on the fault injection instructions;
[0025] Based on the fault injection command, the fault injection process is performed according to the global time base trigger timestamp using the current fault information to obtain avionics display and control fault handling information and the double boundary timestamp corresponding to the avionics display and control fault handling information.
[0026] Optionally, the flight simulation results are obtained by synchronously evaluating and replaying the data stream, avionics display and control drive signals, avionics display and control feedback signals, and simulation model messages based on the avionics simulation data stream, the avionics display and control drive signals, the avionics display and control feedback signals, and the simulation model messages, using the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, including:
[0027] Based on the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, and the double-boundary timestamp, the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, the simulation model message, and the avionics display and control fault handling information are subjected to unified time domain alignment processing to obtain synchronous avionics simulation data stream, synchronous avionics display and control drive signal, synchronous avionics display and control feedback signal, synchronous simulation model message, and synchronous avionics display and control fault handling information;
[0028] Based on the synchronous avionics simulation data stream, the synchronous avionics display and control drive signal, the synchronous avionics display and control feedback signal, the synchronous simulation model message, and the synchronous avionics display and control fault handling information, the entire process record data of this flight simulation is generated through simulation calculation and playback processing strategies.
[0029] Based on the recorded data throughout the entire process, the flight simulation results of this flight simulation are identified.
[0030] Secondly, this application also provides a physical simulation device for a real-aircraft-in-the-loop flight simulator, comprising:
[0031] The acquisition module is used to acquire the aircraft model configuration file and global time base of the aircraft model simulated by the flight simulator before the flight simulation, and to perform global time base unified processing on each simulation test port through the global master clock based on the global time base to obtain each synchronous simulation test port.
[0032] The parsing module is used to parse and configure the aircraft configuration file, generate gating and scheduling information for each of the synchronous simulation test ports, and, during flight simulation, collect avionics simulation data streams and the first timestamps corresponding to the avionics simulation data streams through a time-sensitive network switch based on the gating and scheduling information for each of the synchronous simulation test ports.
[0033] The acquisition module is used to parse and process the avionics simulation data stream to obtain the avionics display and control drive signal and the second timestamp corresponding to the avionics display and control drive signal, and to acquire the avionics display and control feedback signal and the third timestamp corresponding to the avionics display and control feedback signal in response to the pilot's operation in the flight simulator.
[0034] The evaluation module is used to encapsulate the avionics display and control feedback signal and the fourth timestamp of the avionics display and control feedback signal during encapsulation to obtain the simulation model message of this flight simulation. Based on the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, and the simulation model message, synchronous evaluation and playback processing is performed through the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp to obtain the flight simulation result of this flight simulation.
[0035] Optionally, the acquisition module is specifically used for:
[0036] By using a link peer delay measurement strategy, the clock deviation value between the global master clock and the local clock of each of the simulation test ports is identified;
[0037] Based on the global time base and the clock deviation value corresponding to each simulation test port, the global time base is uniformly processed for each simulation test port to obtain each synchronous simulation test port.
[0038] Optionally, the parsing module is specifically used for:
[0039] The device configuration file is split into sub-port configuration files for each synchronous simulation test port. For each synchronous simulation test port, the sub-port configuration file is parsed to obtain the period of each time-sensitive stream, the maximum frame length of each time-sensitive stream, the transmission time constraint of each time-sensitive stream, and the deadline of each time-sensitive stream.
[0040] Based on the period of each time-sensitive stream, a super-period is determined, and based on the cutoff time of each time-sensitive stream, a time slot is allocated to each time-sensitive stream within the super-period.
[0041] Each time slot is verified to obtain a verification result for each time slot. When the verification result is a pass, a gating schedule table for the synchronous simulation test port is constructed based on the time slots of each time-sensitive stream.
[0042] Optionally, the acquisition module is specifically used for:
[0043] Based on the avionics simulation data, the avionics simulation data stream is framed into serial bus information through the forward drive channel according to the bus protocol, and the serial bus information is parsed and encapsulated to obtain time-sensitive network packets and a first peripheral timestamp.
[0044] The avionics simulation data is mapped to switch level transition information according to the discrete quantity channels, and the switch level transition information is aggregated according to the channel bitmap to obtain the periodic reporting stream and the second peripheral timestamp.
[0045] The avionics simulation data is converted into a periodic data stream and a third peripheral timestamp through the analog signal channel.
[0046] The time-sensitive network packets, the periodic reporting stream, and the periodic data stream are converted into heterogeneous interface synchronous conversions using the first peripheral time stamp, the second peripheral time stamp, and the third peripheral time stamp to obtain avionics display and control drive signals and the second time stamp corresponding to the avionics display and control drive signals.
[0047] Optionally, the device further includes:
[0048] The identification module is used to collect fault injection instructions containing global time base trigger timestamps, and to identify current fault information based on the fault injection instructions;
[0049] The injection module is used to perform fault injection processing based on the fault injection instruction, using the current fault information and triggering timestamps according to the global time base, to obtain avionics display and control fault processing information and the double-boundary timestamps corresponding to the avionics display and control fault processing information.
[0050] Optionally, the evaluation module is specifically used for:
[0051] Based on the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, and the double-boundary timestamp, the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, the simulation model message, and the avionics display and control fault handling information are subjected to unified time domain alignment processing to obtain synchronous avionics simulation data stream, synchronous avionics display and control drive signal, synchronous avionics display and control feedback signal, synchronous simulation model message, and synchronous avionics display and control fault handling information;
[0052] Based on the synchronous avionics simulation data stream, the synchronous avionics display and control drive signal, the synchronous avionics display and control feedback signal, the synchronous simulation model message, and the synchronous avionics display and control fault handling information, the entire process record data of this flight simulation is generated through simulation calculation and playback processing strategies.
[0053] Based on the recorded data throughout the entire process, the flight simulation results of this flight simulation are identified.
[0054] Thirdly, this application provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in any one of the first aspects.
[0055] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in any one of the first aspects.
[0056] Fifthly, this application provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects.
[0057] The aforementioned hardware-in-the-loop flight simulator method, apparatus, computer equipment, computer-readable storage medium, and computer program product, before flight simulation, acquire the aircraft model configuration file and global time base of the aircraft model being simulated in the flight simulator. Based on the global time base, a global master clock is used to perform unified global time base processing on each simulation test port to obtain each synchronous simulation test port. The aircraft model configuration file is parsed and configured to generate gating and scheduling information for each synchronous simulation test port. During flight simulation, based on the gating and scheduling information of each synchronous simulation test port, a time-sensitive network switch is used to collect avionics simulation data streams and the first timestamps corresponding to the avionics simulation data streams. The avionics simulation data streams are then processed... The system performs parsing and processing to obtain avionics display and control drive signals and a second timestamp corresponding to the avionics display and control drive signals. In response to the pilot's operation actions in the flight simulator, it collects avionics display and control feedback signals and a third timestamp corresponding to the avionics display and control feedback signals. The avionics display and control feedback signals and a fourth timestamp during the encapsulation process are encapsulated to obtain the simulation model message for this flight simulation. Based on the avionics simulation data stream, the avionics display and control drive signals, the avionics display and control feedback signals, and the simulation model message, synchronous evaluation and playback processing is performed using the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp to obtain the flight simulation results for this flight simulation. This solution uses a global master clock to perform global time base unification processing on each simulation test port, obtaining synchronous simulation test ports and realizing a heterogeneous time domain unification mechanism. This ensures that timestamps at different boundaries are from the same source, avoiding the problem of different timestamp sources affecting data analysis during subsequent simulation data analysis. The solution then records technical timestamps on both the simulation test port and the avionics display and control port, and performs synchronous evaluation and playback processing to obtain the flight simulation results, improving the realism of the flight simulation results and the accuracy of the simulation analysis. Furthermore, the solution generates gating scheduling information for each synchronous simulation test port by parsing and analyzing the aircraft configuration file. This mechanism automatically associates the gating scheduling configuration with the aircraft configuration file; when changing aircraft models, only the new aircraft configuration file needs to be loaded to automatically regenerate the gating scheduling information, eliminating the need for manual configuration step-by-step. Furthermore, this solution, through frame-aligned and delay-synchronized time sampling at each boundary, as well as flight simulation process evaluation and analysis, can accurately evaluate and analyze the various analysis results of the simulation, improving the accuracy of simulation analysis of heterogeneous and multi-sided data, thereby effectively improving the simulation effect of the semi-physical simulation of the flight simulator. Attached Figure Description
[0058] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0059] Figure 1 This is a flowchart illustrating a hardware-in-the-loop flight simulator method in one embodiment.
[0060] Figure 2 This is a flowchart illustrating a hardware-in-the-loop flight simulator example in one embodiment;
[0061] Figure 3 This is a structural block diagram of a hardware-in-the-loop flight simulator in one embodiment;
[0062] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0063] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0064] The hardware-in-the-loop flight simulator method provided in this application can be applied to a hardware-in-the-loop flight simulator system. This system comprises eight functional modules, which are divided as follows:
[0065] The M1 signal adaptation and protocol conversion module, acting as a system boundary adaptation unit, converts the ARINC 429, discrete, and analog signals from the real avionics LRU and the real display and control LRU into TSN messages carrying a unified timestamp before merging them into the TSN network. The M1 integrates three types of channels: ARINC 429, discrete, and analog. Hardware-level timestamps are applied at both the network port and peripheral interface boundaries, and the local clock is aligned to the global master clock via gPTP. The M1 also performs fault injection execution, performing fault injection at the interface and signal levels according to the fault injection instructions from the M7.
[0066] The M2 TSN Time-Sensitive Network Module consists of a TSN switch and TSN ports on each end node. It implements 802.1AS time synchronization and 802.1Qbv gating scheduling, providing deterministic transmission. Each port of the TSN switch loads the GCL generated by M3 and schedules time-sensitive flows and best-effort flows according to the gating table.
[0067] The M3 simulation module runs the avionics environment simulation model, the avionics digital simulation model (non-loop portion), and the cockpit display and control logic. It releases simulation data at fixed intervals and processes feedback in a closed loop. M3 is also responsible for parsing the target aircraft's ICD and automatically generating the 802.1Qbv GCL, which is then sent to the TSN switch.
[0068] M4 Signal Acquisition Module: As a simple signal acquisition device, it acquires network time-sensitive stream data through the TSN port, and also acquires ARINC 429, discrete, and analog signals from the periphery of the actual avionics LRU and the actual display and control LRU. The acquired data is uniformly timestamped and sent up via TSN for alignment and playback by the data evaluation module (M8). M4 only acquires / records peripheral signals and does not inject them as active nodes into the TSN loop.
[0069] The M5 cockpit display and control environment module consists of the real aircraft display and control LRU in the simulator cockpit and the simulation display and control equipment. One of them is connected according to the configuration. The real aircraft display and control LRU is connected to the TSN network via M1, receives avionics simulation data and generates screens and alarms; the simulation display and control equipment directly runs the display and control simulation logic as a TSN end node.
[0070] M6 Master Clock and Time Base Management Module: A global master clock is provided by a highly stable clock source device, serving as the 802.1AS synchronization time base for distribution throughout the network. The M6 monitors the synchronization status of each end node and generates an alarm when the synchronization accuracy does not meet the requirements.
[0071] M7 Fault Injection Module: Composed of fault injection devices / functional units, it injects faults at the ARINC 429 message level and discrete / analog signal level via the signal adaptation and protocol conversion module (M1). The fault injection command carries a trigger timestamp based on a global time base and supports preset injection sequences according to training subjects.
[0072] M8 Data Acquisition and Evaluation Module: Composed of a data acquisition and evaluation workstation, serving as the analysis and evaluation backend, it receives data acquired by the signal acquisition module (M4), completes frame alignment based on dual boundary timestamps, calculates indicators such as alarm response time, display and control refresh delay, end-to-end latency, and task completion rate, generates evaluation reports, and supports playback and review by timeline.
[0073] This system can be applied to terminals, including but not limited to various personal computers, laptops, and mid-range computers. The terminal uses a global master clock to perform global time base unification processing on each simulation test port, obtaining synchronized simulation test ports and achieving a heterogeneous time domain unification mechanism. This ensures that timestamps at different boundaries are from the same source, avoiding the problem of different timestamp sources affecting data analysis during subsequent simulation data analysis. This solution then records technical timestamps on both the simulation test port and the avionics display and control port, and performs synchronous evaluation and playback processing to obtain the flight simulation results, improving the realism of the flight simulation results and the accuracy of the simulation analysis. Furthermore, this solution generates gating and scheduling information for each synchronized simulation test port by parsing and analyzing the aircraft configuration file. This mechanism automatically associates the gating and scheduling configuration with the aircraft configuration file; when changing aircraft models, only the new aircraft configuration file needs to be loaded to automatically regenerate the gating and scheduling information, eliminating the need for manual configuration step-by-step. Furthermore, this solution, through frame-aligned and delay-synchronized time sampling at each boundary, as well as flight simulation process evaluation and analysis, can accurately evaluate and analyze the various analysis results of the simulation, improving the accuracy of simulation analysis of heterogeneous and multi-sided data, thereby effectively improving the simulation effect of the semi-physical simulation of the flight simulator.
[0074] In one exemplary embodiment, such as Figure 1 As shown, a hardware-in-the-loop flight simulator method is provided. Taking the application of this method to a terminal as an example, the method includes the following steps S101 to S104. Wherein:
[0075] Step S101: Before the flight simulation, obtain the aircraft model configuration file and global time base of the aircraft model simulated in the flight simulator cabin, and based on the global time base, perform global time base unified processing on each simulation test port through the global master clock to obtain each synchronous simulation test port.
[0076] In this embodiment, before flight simulation, the terminal uses the master clock and time base management module (M6) as the 802.1AS master clock, and distributes a highly stable time base to all TSN end nodes via gPTP. The local clock of the signal adaptation and protocol conversion module (M1) is aligned to the global master clock through gPTP time calibration (gPTP disciplining), and the synchronization accuracy meets the display and control frame period requirements. The specific alignment process will be detailed later. Then, the terminal obtains the ICD file of the target aircraft model to be simulated for this flight and obtains the aircraft model configuration file. When changing to simulate a new aircraft model, there is no need to redesign a new flight simulator model; instead, the semi-physical simulation of the new aircraft model can be achieved directly by reconfiguring through the aircraft model configuration file. The specific flight simulation method will be explained in detail later.
[0077] Step S102: Parse and configure the aircraft configuration file to generate gating scheduling information for each synchronous simulation test port. During flight simulation, based on the gating scheduling information of each synchronous simulation test port, collect the avionics simulation data stream and the first timestamp corresponding to the avionics simulation data stream through a time-sensitive network switch.
[0078] In this embodiment, the terminal parses and configures the aircraft configuration file to generate gating scheduling information for each synchronous simulation test port. During flight simulation, based on the gating scheduling information of each synchronous simulation test port, the terminal collects avionics simulation data streams and their corresponding first timestamps through a time-sensitive network switch. Specifically, the terminal performs hardware-in-the-loop simulation testing on each synchronous simulation test port according to the gating scheduling information, obtaining avionics simulation data streams. Then, the terminal sends the avionics simulation data out through the time-sensitive network using the time slots in the gating scheduling table, and adds a first timestamp to the network side when the data leaves the network. The simulation calculation module (M3) periodically publishes time-sensitive data streams, with the best-effort stream occupying a low-priority queue. The TSN switch (i.e., the time-sensitive network switch) schedules the time-sensitive streams according to the GCL (Global Time Flow) for transmission within reserved time slots, ensuring that the end-to-end delay does not exceed the deadline specified by the ICD (Internet Data Center).
[0079] The gating schedule information is a gating schedule table obtained by sorting the time slots of each time-sensitive flow corresponding to the synchronous simulation test port in chronological order. These time-sensitive flows include, but are not limited to, attitude flow, altitude flow, and airspeed flow. This gating schedule table is used to perform simulation scheduling processing on each synchronous simulation test port through the time slots of different time-sensitive flows, thereby realizing the flight simulation process of the target aircraft model. The generation process of the gating schedule information for each synchronous simulation test port will be explained in detail later.
[0080] Step S103: The avionics simulation data stream is parsed and processed to obtain the avionics display and control drive signal and the second timestamp corresponding to the avionics display and control drive signal. In response to the pilot's operation actions in the flight simulator, the avionics display and control feedback signal and the third timestamp corresponding to the avionics display and control feedback signal are collected.
[0081] In this embodiment, the terminal parses and processes the avionics simulation data stream to obtain the avionics display and control drive signals and the corresponding second timestamps. Responding to the pilot's actions in the flight simulator, it collects the avionics display and control feedback signals and the corresponding third timestamps. Specifically, when parsing and processing the avionics simulation data stream, this solution uses a signal adaptation and protocol conversion module (M1) designed as a boundary adaptation unit with three built-in channels to process the data, obtaining the avionics display and control drive signals. These three types of signals are then converted into TSN messages carrying a unified timestamp via their respective channels and uniformly fed into the bus through the TSN port, achieving "multiple heterogeneous interfaces on the periphery and a single deterministic TSN bus internally."
[0082] Step S104: The avionics display and control feedback signal and the fourth timestamp during the encapsulation process are encapsulated to obtain the simulation model message of this flight simulation. Based on the avionics simulation data stream, avionics display and control drive signal, avionics display and control feedback signal, and simulation model message, synchronous evaluation and playback processing is performed through the first timestamp, second timestamp, third timestamp, and fourth timestamp to obtain the flight simulation result of this flight simulation.
[0083] In this embodiment, the terminal encapsulates the avionics display and control feedback signal and the fourth timestamp during encapsulation to obtain the simulation model message of this flight simulation. Based on the avionics simulation data stream, avionics display and control drive signal, avionics display and control feedback signal, and simulation model message, the terminal performs synchronous evaluation and playback processing through the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp to obtain the flight simulation result of this flight simulation. Before synchronous evaluation and playback processing, this scheme requires the fault injection module (M7) to issue a fault injection command to M1 at a specified time (carrying a global time base trigger timestamp) according to the training subjects, specifying the fault type (interface level or signal level), fault parameters, and duration. M1 executes fault injection at the precise time corresponding to the trigger timestamp: interface-level faults are executed on the ARINC429 message transmission path, and signal-level faults are executed at the discrete / analog electrical level via the fault injection device. M1 records the timestamp on the peripheral interface side at the injection time. The actual aircraft avionics / display control LRU generates corresponding responses (alarm presentation, page reconstruction, etc.), and the refresh time of the M5 display screen is collected and timestamped by M4. The data evaluation module (M8) records the injection time and response time respectively, providing data for subsequent alarm response time calculation. Then, the terminal uses the same frame alignment evaluation and time axis playback strategy to perform full-process playback of the above data according to the same time axis according to each timestamp, and performs data analysis and identification to obtain the flight simulation results of this flight simulation. The specific process of synchronous evaluation and playback will be explained in detail later.
[0084] Based on the above scheme, a global master clock is used to perform global time base unification processing on each simulation test port to obtain each synchronous simulation test port, realizing a heterogeneous time domain unification mechanism. This ensures that timestamps at different boundaries are from the same source, avoiding the problem of different source timestamps affecting data analysis during subsequent simulation data analysis. Then, this scheme records technical timestamps on the dual ports corresponding to the simulation test port and the avionics display and control port, and then performs synchronous evaluation and playback processing to obtain the flight simulation results of this flight simulation, improving the realism of the flight simulation results and the accuracy of simulation analysis. Furthermore, this scheme generates gating scheduling information for each synchronous simulation test port by parsing and analyzing the aircraft configuration file. This mechanism automatically associates the gating scheduling configuration with the aircraft configuration file. When changing the aircraft type, only the new aircraft configuration file needs to be loaded to automatically regenerate the gating scheduling information, without the need for manual step-by-step configuration. Furthermore, this solution, through frame-aligned and delay-synchronized time sampling at each boundary, as well as flight simulation process evaluation and analysis, can accurately evaluate and analyze the various analysis results of the simulation, improving the accuracy of simulation analysis of heterogeneous and multi-sided data, thereby effectively improving the simulation effect of the semi-physical simulation of the flight simulator.
[0085] Optionally, based on a global time base, each simulation test port is processed using a global master clock to obtain each synchronous simulation test port. This includes: identifying the clock deviation between the global master clock and the local clock of each simulation test port using a link peer delay measurement strategy; and processing each simulation test port using a global time base and the corresponding clock deviation value to obtain each synchronous simulation test port.
[0086] In this embodiment, the terminal identifies the clock deviation between the global master clock and the local clock of each simulation test port through a link peer delay measurement strategy. This link peer delay measurement strategy calculates the clock deviation between the global master clock and the local clock of each simulation test port by measuring both link delay and peer delay.
[0087] Then, based on the global time base and the clock deviation values corresponding to each simulation test port, the terminal performs global time base unification processing on each simulation test port to obtain each synchronization simulation test port. Specifically, the master clock and time base management module (M6) serves as the 802.1AS master clock and distributes a highly stable time base to all TSN end nodes in the network via gPTP. The local clock of the signal adaptation and protocol conversion module (M1) is aligned to the global master clock through gPTP time calibration (gPTP disciplining), and the synchronization accuracy meets the display control frame period requirements.
[0088] Based on the above scheme, the simulation accuracy of each simulation test port is improved by performing global time base unification processing on different simulation test ports.
[0089] Optionally, the device configuration file is parsed and configured to generate gating scheduling information for each synchronous simulation test port. This includes: splitting the device configuration file into sub-port configuration files for each synchronous simulation test port; parsing the sub-port configuration files for each synchronous simulation test port to obtain the period of each time-sensitive stream, the maximum frame length of each time-sensitive stream, the transmission time constraint of each time-sensitive stream, and the deadline of each time-sensitive stream; determining the over-period based on the period of each time-sensitive stream, and allocating time slots for each time-sensitive stream within the over-period based on the deadline of each time-sensitive stream; verifying each time slot to obtain the verification result of each time slot; and constructing a gating scheduling table for the synchronous simulation test port based on the time slots of each time-sensitive stream when the verification result is successful.
[0090] In this embodiment, the terminal splits the device configuration file into sub-port configuration files for each synchronous simulation test port. For each synchronous simulation test port, the terminal parses the sub-port configuration file to obtain the period, maximum frame length, transmission time constraint, and deadline of each time-sensitive flow. Then, based on the period of each time-sensitive flow, the terminal determines the over-period and allocates time slots to each time-sensitive flow within the over-period based on its deadline. The terminal performs verification processing on each time slot, obtaining the verification result. If the verification result is successful, the terminal constructs a gating schedule table for the synchronous simulation test port based on the time slots of each time-sensitive flow. Before parsing, the terminal first completes 802.1 QPCP labeling according to data flow type using the signal adaptation and protocol conversion module (M1), dividing the network flow into two main categories: time-sensitive flows and best-effort flows. Specifically, ARINC429 classifies flows by label, assigning high PCP priority to critical flight parameter labels (such as attitude, altitude, and airspeed) and lower priority to non-critical parameter labels; discrete quantities are aggregated into periodic reporting flows by event type, with alarm-related discrete quantities assigned high priority; analog quantities are aggregated into periodic data flows by sampling rate, with flight control-related analog quantities assigned high priority; and best-effort flows (such as configuration data, log data, and monitoring screens) are assigned low priority and do not occupy critical time slots. Then, the terminal's Time-Sensitive Network (M2) module schedules flows hierarchically according to the 802.1Qbv gated table (GCL)—time-sensitive flows are assigned to high-priority queues and transmitted within reserved time slots, while best-effort flows use low-priority queues and do not occupy critical time slots. The GCL is automatically generated by the simulation calculation module (M3) based on the target device's ICD. The generation process is as follows: Step a: Parse the ICD and extract the period, frame length, transmission time constraint, and deadline of each time-sensitive flow; Step b: Use the least common multiple (LCM) of each flow's period as the hyperperiod; Step c: Allocate time slots within the hyperperiod according to the transmission time and deadline of each flow, using the earliest deadline first (EDF) strategy; Step d: The length of each time slot is the maximum frame length transmission time of the flow plus a guard band, which is used to cover clock synchronization errors and inter-frame intervals; Step e: Verify that there are no conflicts in each time slot, that each flow obtains the reserved time slot within the period, and that the end-to-end delay does not exceed the deadline; if the verification fails, adjust the time slot allocation or add a priority queue and re-verify; Step f: Distribute the verified GCL to each port of the TSN switch.
[0091] After constructing the gating schedule table for the synchronous simulation test port, the terminal uses M1 to perform hardware-level timestamps at two boundaries: On the network port side, timestamps are applied at the MAC layer of TSN message transmission and reception to record the precise time when the message enters / leaves the TSN network; On the peripheral interface side, timestamps are applied at the completion time of ARINC429 word transmission and reception, the discrete quantity transition time, and the completion time of analog quantity sampling / A / D conversion to record the precise time of actual interaction of real machine signals.
[0092] The terminal can accurately measure the end-to-end delay (the difference between the timestamp on the peripheral interface side and the timestamp on the network port side) of the real aircraft signal after M1 adaptation and conversion through dual boundary timestamps. It also maps three types of heterogeneous time-domain signals, namely ARINC429, discrete and analog signals, to the global time domain of TSN, so that the real avionics / display and control LRU can participate in global synchronization after being adapted and connected, and all network end nodes can obtain the same source timestamp.
[0093] Based on the above scheme, the terminal uses this mechanism to automatically associate the gating scheduling configuration with the model ICD. When changing the model, only the new ICD needs to be loaded to automatically regenerate the GCL, without the need for manual flow-by-flow configuration.
[0094] Optionally, the avionics simulation data stream is parsed to obtain avionics display and control drive signals and a second timestamp corresponding to the avionics display and control drive signals. This includes: based on the avionics simulation data, framing the avionics simulation data stream into serial bus information according to the bus protocol via the forward drive channel, and parsing and encapsulating the serial bus information to obtain time-sensitive network packets and a first peripheral timestamp; mapping the avionics simulation data into switch level transition information according to discrete channels, and aggregating the switch level transition information according to the channel bitmap to obtain a periodic reporting stream and a second peripheral timestamp; converting the avionics simulation data into a periodic data stream and a third peripheral timestamp via the analog channel; and performing heterogeneous interface synchronization conversion processing on the time-sensitive network packets, periodic reporting stream, and periodic data stream through the first peripheral timestamp, the second peripheral timestamp, and the third peripheral timestamp to obtain avionics display and control drive signals and a second timestamp corresponding to the avionics display and control drive signals.
[0095] In this embodiment, the terminal, based on avionics simulation data, frames the avionics simulation data stream into serial bus information via the forward drive channel according to the bus protocol. It then parses and encapsulates the serial bus information to obtain a Time-Sensitive Network (TSN) message and a first peripheral time stamp. Specifically, the forward drive channel includes an ARINC429 channel, a discrete quantity channel, and an analog quantity channel. In this step, the terminal performs level conversion (ARINC429 bipolar level to TTL / CMOS), baud rate adaptation (supporting standard rates such as 100kbps / 50kbps / 12.5kbps), and tag / word parsing and framing. In the receiving direction, it parses the ARINC429 word and extracts the tag, data, Symbol State Matrix (SSM), and parity bit, encapsulates it into a TSN message, and adds a peripheral interface-side timestamp. In the transmitting direction, it extracts data from the TSN message and frames it into an ARINC429 word for output. For example, in the receiving direction, the terminal performs level conversion and bit synchronization on the bipolar differential ARINC429 word output by the real LRU, receives the full 32-bit word bit by bit, and parses the tag, data field, symbol state matrix, and parity bit. A peripheral timestamp is applied the instant the 32-bit word reception is complete. The terminal then queries the device configuration file based on the tag to determine the signal importance level corresponding to the tag, and assigns 802.1QPCP priority to the encapsulated time-sensitive network packet accordingly. The tag, data field, and peripheral timestamp are encapsulated into a time-sensitive network packet, and a network timestamp is applied when the packet leaves the time-sensitive network port. In the transmitting direction, the terminal applies a network timestamp when the time-sensitive network packet arrives at the signal adaptation path. It then uses the flow identifier carried in the packet to reverse-check the device configuration file to determine the target tag, assembles a 32-bit ARINC429 word, completes parity checking, and outputs it serially bit by bit. This is then converted to a differential level by a bipolar line driver and output to the real LRU. A peripheral timestamp is applied the instant the 32-bit word transmission is complete.
[0096] Then, the terminal maps the avionics simulation data into switch level transition information according to discrete channels, and aggregates the switch level transition information according to the channel bitmap to obtain the periodic reporting stream and the second peripheral time stamp. Specifically, the terminal completes the acquisition and output driving of switch quantities; in the input direction, it detects discrete quantity level transitions and records the transition time (peripheral interface side timestamp), encapsulating it into a TSN message; in the output direction, it drives the discrete quantity output level according to the TSN message. For example, in the receiving direction, the terminal acquires the switching level of the LRU output by the real device via optocoupler isolation, detects the level transition edge after Schmitt trigger debouncing, and stamps an external time stamp at the moment of the transition edge; it distinguishes between alarm-type discrete quantities and status-type discrete quantities by querying the model configuration file according to the channel number, assigns high 802.1QPCP priority to alarm-type discrete quantities, and medium priority to status-type discrete quantities; it aggregates multiple discrete quantities that transition within the same sampling period into a time-sensitive network message frame according to the channel bitmap, and stamps a network-side time stamp when the message leaves the time-sensitive network port; in the transmitting direction, the terminal stamps a network-side time stamp when the time-sensitive network message arrives, drives the line driver and relay of the corresponding channel according to the message instructions, shorts the discrete quantity input terminal of the real device LRU to ground or power supply, and stamps an external time stamp at the moment the contact action is completed;
[0097] Next, the terminal converts the avionics simulation data into a periodic data stream and a third peripheral timestamp through the analog signal channel. Specifically, the terminal performs signal conditioning (filtering, scaling, impedance matching) and A / D and D / A conversion; in the input direction, it performs A / D conversion on the analog signal according to the set sampling rate, with each sampled value carrying a timestamp of the sampling completion time, encapsulated into a TSN message; in the output direction, it performs D / A conversion based on the TSN message data and outputs an analog level. Specifically, in the receiving direction, the terminal sends the continuous voltage or current signal output from the real LRU to the analog-to-digital converter (ADC) after clamping protection, RC low-pass filtering, scaling, and impedance matching. The ADC performs analog-to-digital conversion at a set sampling rate, and a peripheral timestamp is applied at the moment the signal is triggered after each conversion. N sampled values are aggregated into a single Time-Sensitive Network (TSN) message according to the sampling rate. Flight control-related analog quantities are given high 802.1QPCP priority, while ordinary sensor analog quantities are given low priority. A network-side timestamp is applied when the message leaves the TSN port. In the transmitting direction, the terminal applies a network-side timestamp when the TSN message arrives, sends the digital quantity in the message to the digital-to-analog converter (DAC), buffers it with an operational amplifier, and smooths it with an RC converter before outputting a continuous voltage to the real LRU. A peripheral timestamp is applied the moment the digital-to-analog conversion update is completed.
[0098] Finally, the terminal performs heterogeneous interface synchronization conversion processing on the time-sensitive network packets, periodic reporting streams, and periodic data streams through the first peripheral side timestamp, the second peripheral side timestamp, and the third peripheral side timestamp to obtain the avionics display and control drive signal and the second timestamp corresponding to the avionics display and control drive signal.
[0099] Based on the above scheme, by unifying the time-sensitive network packets obtained from the three types of channels into the time-sensitive network through the same time-sensitive network port, a multi-type heterogeneous interface on the periphery and a single deterministic time-sensitive network bus on the inside are realized.
[0100] Optionally, before encapsulating the avionics display and control feedback signal and the fourth timestamp during encapsulation to obtain the simulation model message for this flight simulation, the process further includes: acquiring a fault injection command containing a global time base trigger timestamp, and identifying the current fault information based on the fault injection command; based on the fault injection command, performing fault injection processing according to the global time base trigger timestamp using the current fault information to obtain avionics display and control fault handling information and the corresponding double-boundary timestamps.
[0101] In this embodiment, the terminal collects a fault injection command containing a global time base trigger timestamp and identifies the current fault information based on the fault injection command. This current fault information includes the fault type (interface level or signal level), fault parameters, and duration. Specifically, the terminal implements two types of fault injection through the fault injection module (M7) and the signal adaptation and protocol conversion module (M1):
[0102] Interface-level faults: Implemented at the ARINC429 message level, including frame loss (discarding ARINC429 words of a specified tag), data tampering (modifying the data field of a specified tag), parity error (tampering with the parity bit), and abnormal baud rate. M1 performs the corresponding operation on the specified message according to the fault injection instruction on the transmission path from TSN message to ARINC429 word.
[0103] Signal-level faults: These are implemented at the discrete / analog electrical level via a fault injection device, including discrete short circuits (short-circuited to ground / power supply), open circuits (severing the signal path), and abnormal levels (forced output of abnormal levels); analog over-limits (output levels exceeding the normal range), drift (superimposed with slowly changing offsets), step (instantaneous jumps), and noise (superimposed with random noise), etc. The fault injection device is connected in series between the M1 discrete / analog channel and the actual LRU, and performs corresponding operations at the electrical level according to the fault injection command.
[0104] The fault injection command carries a trigger timestamp based on a global time base. M1 executes the injection at the precise time corresponding to the timestamp, and records the injection time and the actual LRU response time with double boundary timestamps respectively, so that the time difference between the fault injection time and the system response time can be objectively measured.
[0105] Based on the fault injection command, fault injection processing is performed using the current fault information and the global time base trigger timestamp to obtain avionics and display / control fault handling information, as well as the corresponding double-boundary timestamps. Specifically, M1 records the timestamp on the peripheral interface side at the injection time; the actual aircraft's avionics / display / control LRU generates a corresponding response (alarm presentation, page reconstruction, etc.), and the M5 display / control screen refresh time is collected and timestamped by M4.
[0106] Based on the above scheme, the fault injection module (M7) implements both interface-level and signal-level fault injection via the signal adaptation and protocol conversion module (M1), with the injection timing coordinated by a globally unified time base. Interface-level faults are implemented at the ARINC429 message level, including frame loss, data tampering, and parity errors; signal-level faults are implemented at the discrete / analog electrical level via the fault injection device, including discrete short circuits / open circuits / level anomalies, and analog over-limit / drift / step faults. The fault injection command carries a trigger timestamp based on the global time base. M1 executes the injection at the precise time corresponding to this timestamp, and records the injection time and the actual LRU response time with double-boundary timestamps, making the time difference between the fault injection time and the system response time objectively measurable.
[0107] Optionally, based on the avionics simulation data stream, avionics display and control drive signals, avionics display and control feedback signals, and simulation model messages, synchronous evaluation and playback processing is performed using a first, second, third, and fourth timestamp to obtain the flight simulation results for this flight simulation. This includes: performing unified time-domain alignment processing on the avionics simulation data stream, avionics display and control drive signals, avionics display and control feedback signals, simulation model messages, and avionics display and control fault handling information based on the first, second, third, fourth, and dual-boundary timestamps to obtain synchronous avionics simulation data stream, synchronous avionics display and control drive signals, synchronous avionics display and control feedback signals, synchronous simulation model messages, and synchronous avionics display and control fault handling information; generating full-process recorded data for this flight simulation using a simulation calculation playback processing strategy based on the synchronous avionics simulation data stream, synchronous avionics display and control drive signals, synchronous avionics display and control feedback signals, synchronous simulation model messages, and synchronous avionics display and control fault handling information; and identifying the flight simulation results for this flight simulation based on the full-process recorded data.
[0108] In this embodiment, the terminal performs unified time-domain alignment processing on the avionics simulation data stream, avionics display and control drive signals, avionics display and control feedback signals, simulation model messages, and avionics display and control fault handling information based on the first, second, third, and fourth timestamps, as well as the dual-boundary timestamps, to obtain synchronized avionics simulation data stream, synchronized avionics display and control drive signals, synchronized avionics display and control feedback signals, synchronized simulation model messages, and synchronized avionics display and control fault handling information. Specifically,
[0109] Then, based on the synchronous avionics simulation data stream, synchronous avionics display and control drive signals, synchronous avionics display and control feedback signals, synchronous simulation model messages, and synchronous avionics display and control fault handling information, the terminal generates the full-process record data of this flight simulation through a simulation calculation and playback processing strategy.
[0110] Finally, the terminal identifies the flight simulation results based on the data recorded throughout the entire process.
[0111] Specifically, the data evaluation module (M8), acting as the analysis and evaluation backend, receives peripheral interface signals and network stream data acquired by the signal acquisition module (M4). The processing flow is as follows:
[0112] Step a: Based on the dual-boundary timestamp, complete the unified time domain marking at the recording end, and unify the network-side data and the external interface-side data into the global time domain;
[0113] Step b: Using the display and control frame period as the alignment window, complete cross-domain same-frame alignment according to the timestamp—group simulation data release, ARINC429 output, display and control screen refresh, operation input, and other events within the same display and control frame period into the same frame; specifically, the terminal divides the global timeline into continuous frame buckets according to the display and control frame period; group simulation data release events, ARINC429 output events, real machine operation input events, display and control screen refresh events, and fault injection events falling into the same frame bucket into the same frame; if any evaluation index exceeds the threshold specified in the model configuration file, the frame is highlighted in red in the evaluation report and located to the specific frame number.
[0114] Step c: Calculate the evaluation metrics, including: alarm response time (the time difference between the fault injection time and the display alarm presentation time), display refresh delay (the time difference between the simulation data release time and the display screen refresh time), end-to-end latency (the time difference between the simulation data release time and the actual LRU reception time), and task completion rate (the percentage of successfully completed tasks according to the test outline). The alarm response time is calculated as follows: the fault injection time is denoted as t_fault, the display screen refresh time as t_display, the time the simulation calculation port releases the frame data as t_pub, the time the signal adapter port receives the packet on the network side as t_net_in, and the time the signal adapter port outputs the signal on the peripheral side as t_io_out.
[0115] Calculate as follows: Alarm response time = Display refresh latency = End-to-end delay = .
[0116] Step d: Generate an evaluation report and support playback of the entire process along a unified timeline. During playback, network streams, peripheral interface signals, display screens, and evaluation metrics can be displayed simultaneously.
[0117] Based on the above scheme, the data evaluation module (M8) receives the peripheral interface signals and network stream data collected by the signal acquisition module (M4). Using dual-boundary timestamps, unified time-domain marking is completed at the recording end, and cross-domain same-frame alignment is achieved using the display / control frame period as the alignment window. After same-frame alignment, evaluation indicators such as alarm response time (the time difference between the fault injection time and the display / control alarm presentation time), display / control refresh delay (the time difference between the simulation data release time and the display / control screen refresh time), and task completion rate can be objectively calculated. Furthermore, the entire process can be replayed along a unified timeline, ensuring that the verification process is reproducible and the conclusions are objective and quantifiable.
[0118] This application also provides a hardware-in-the-loop flight simulator example, such as... Figure 2 As shown, the specific processing procedure includes the following steps:
[0119] Step S201: Before the flight simulation, obtain the aircraft model configuration file and global time base of the aircraft model simulated in the flight simulator.
[0120] Step S202: Identify the clock deviation between the global master clock and the local clock of each simulation test port through the link peer delay measurement strategy.
[0121] Step S203: Based on the global time base and the clock deviation value corresponding to each simulation test port, perform global time base unification processing on each simulation test port to obtain each synchronous simulation test port.
[0122] Step S204: The device configuration file is split into sub-port configuration files for each synchronous simulation test port. For each synchronous simulation test port, the sub-port configuration file is parsed to obtain the period of each time-sensitive stream, the maximum frame length of each time-sensitive stream, the transmission time constraint of each time-sensitive stream, and the deadline of each time-sensitive stream.
[0123] Step S205: Based on the period of each time-sensitive flow, determine the super-period, and based on the cutoff time of each time-sensitive flow, allocate time slots to each time-sensitive flow within the super-period.
[0124] Step S206: Perform verification processing on each time slot to obtain the verification result of each time slot. When the verification result is that the verification is passed, construct the gating schedule table of the synchronous simulation test port based on the time slot of each time-sensitive stream.
[0125] Step S207: During flight simulation, based on the gating scheduling information of each synchronous simulation test port, the avionics simulation data stream and the first timestamp corresponding to the avionics simulation data stream are collected through a time-sensitive network switch.
[0126] Step S208: Based on the avionics simulation data, the avionics simulation data stream is framed into serial bus information through the forward drive channel according to the bus protocol, and the serial bus information is parsed and encapsulated to obtain the time-sensitive network message and the first peripheral timestamp.
[0127] Step S209: Map the avionics simulation data to switch level transition information according to discrete channels, and aggregate the switch level transition information according to the channel bitmap to obtain the periodic reporting stream and the second peripheral timestamp.
[0128] Step S210: Convert the avionics simulation data into a periodic data stream and a third peripheral timestamp through the analog signal channel.
[0129] Step S211: The time-sensitive network packets, periodic reporting streams, and periodic data streams are converted into heterogeneous interface synchronous conversions using the first peripheral time stamp, the second peripheral time stamp, and the third peripheral time stamp to obtain the avionics display and control drive signal and the second time stamp corresponding to the avionics display and control drive signal.
[0130] Step S212: In response to the pilot's operation in the flight simulator, collect the avionics display and control feedback signal and the third timestamp corresponding to the avionics display and control feedback signal.
[0131] Step S213: Encapsulate the avionics display and control feedback signal and the fourth timestamp of the avionics display and control feedback signal during encapsulation to obtain the simulation model message of this flight simulation.
[0132] Step S214: Collect fault injection instructions containing global time base trigger timestamps, and identify current fault information based on fault injection instructions.
[0133] Step S215: Based on the fault injection command, the fault injection process is performed according to the global time base trigger timestamp through the current fault information to obtain the avionics display and control fault processing information and the double boundary timestamps corresponding to the avionics display and control fault processing information.
[0134] Step S216: Based on the first timestamp, second timestamp, third timestamp, fourth timestamp, and double-boundary timestamp, perform unified time-domain alignment processing on the avionics simulation data stream, avionics display and control drive signal, avionics display and control feedback signal, simulation model message, and avionics display and control fault handling information to obtain synchronous avionics simulation data stream, synchronous avionics display and control drive signal, synchronous avionics display and control feedback signal, synchronous simulation model message, and synchronous avionics display and control fault handling information.
[0135] Step S217: Based on the synchronous avionics simulation data stream, synchronous avionics display and control drive signals, synchronous avionics display and control feedback signals, synchronous simulation model messages, and synchronous avionics display and control fault handling information, the entire process record data of this flight simulation is generated through a simulation calculation and playback processing strategy.
[0136] Step S218: Based on the data recorded throughout the entire process, identify the flight simulation results of this flight simulation.
[0137] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0138] Based on the same inventive concept, this application also provides a hardware-in-the-loop flight simulator device for implementing the aforementioned hardware-in-the-loop flight simulator method. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more hardware-in-the-loop flight simulator device embodiments provided below can be found in the limitations of the hardware-in-the-loop flight simulator method described above, and will not be repeated here.
[0139] In one exemplary embodiment, such as Figure 3 As shown, a hardware-in-the-loop flight simulator is provided, comprising: an acquisition module 310, an analysis module 320, a data collection module 330, and an evaluation module 340, wherein:
[0140] The acquisition module 310 is used to acquire the aircraft model configuration file and global time base of the aircraft model simulated by the flight simulator before the flight simulation, and to perform global time base unified processing on each simulation test port through the global master clock based on the global time base to obtain each synchronous simulation test port.
[0141] The parsing module 320 is used to parse and configure the aircraft configuration file, generate gating scheduling information for each of the synchronous simulation test ports, and, during flight simulation, collect avionics simulation data streams and the first timestamps corresponding to the avionics simulation data streams through a time-sensitive network switch based on the gating scheduling information for each of the synchronous simulation test ports.
[0142] The acquisition module 330 is used to parse and process the avionics simulation data stream to obtain the avionics display and control drive signal and the second timestamp corresponding to the avionics display and control drive signal, and to acquire the avionics display and control feedback signal and the third timestamp corresponding to the avionics display and control feedback signal in response to the pilot's operation in the flight simulator.
[0143] The evaluation module 340 is used to encapsulate the avionics display and control feedback signal and the fourth timestamp of the avionics display and control feedback signal during encapsulation to obtain the simulation model message of this flight simulation. Based on the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, and the simulation model message, synchronous evaluation and playback processing is performed through the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp to obtain the flight simulation result of this flight simulation.
[0144] Optionally, the acquisition module 310 is specifically used for:
[0145] By using a link peer delay measurement strategy, the clock deviation value between the global master clock and the local clock of each of the simulation test ports is identified;
[0146] Based on the global time base and the clock deviation value corresponding to each simulation test port, the global time base is uniformly processed for each simulation test port to obtain each synchronous simulation test port.
[0147] Optionally, the parsing module 320 is specifically used for:
[0148] The device configuration file is split into sub-port configuration files for each synchronous simulation test port. For each synchronous simulation test port, the sub-port configuration file is parsed to obtain the period of each time-sensitive stream, the maximum frame length of each time-sensitive stream, the transmission time constraint of each time-sensitive stream, and the deadline of each time-sensitive stream.
[0149] Based on the period of each time-sensitive stream, a super-period is determined, and based on the cutoff time of each time-sensitive stream, a time slot is allocated to each time-sensitive stream within the super-period.
[0150] Each time slot is verified to obtain a verification result for each time slot. When the verification result is a pass, a gating schedule table for the synchronous simulation test port is constructed based on the time slots of each time-sensitive stream.
[0151] Optionally, the acquisition module 330 is specifically used for:
[0152] Based on the avionics simulation data, the avionics simulation data stream is framed into serial bus information through the forward drive channel according to the bus protocol, and the serial bus information is parsed and encapsulated to obtain time-sensitive network packets and a first peripheral timestamp.
[0153] The avionics simulation data is mapped to switch level transition information according to the discrete quantity channels, and the switch level transition information is aggregated according to the channel bitmap to obtain the periodic reporting stream and the second peripheral timestamp.
[0154] The avionics simulation data is converted into a periodic data stream and a third peripheral timestamp through the analog signal channel.
[0155] The time-sensitive network packets, the periodic reporting stream, and the periodic data stream are converted into heterogeneous interface synchronous conversions using the first peripheral time stamp, the second peripheral time stamp, and the third peripheral time stamp to obtain avionics display and control drive signals and the second time stamp corresponding to the avionics display and control drive signals.
[0156] Optionally, the device further includes:
[0157] The identification module is used to collect fault injection instructions containing global time base trigger timestamps, and to identify current fault information based on the fault injection instructions;
[0158] The injection module is used to perform fault injection processing based on the fault injection instruction, using the current fault information and triggering timestamps according to the global time base, to obtain avionics display and control fault processing information and the double-boundary timestamps corresponding to the avionics display and control fault processing information.
[0159] Optionally, the evaluation module 340 is specifically used for:
[0160] Based on the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, and the double-boundary timestamp, the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, the simulation model message, and the avionics display and control fault handling information are subjected to unified time domain alignment processing to obtain synchronous avionics simulation data stream, synchronous avionics display and control drive signal, synchronous avionics display and control feedback signal, synchronous simulation model message, and synchronous avionics display and control fault handling information;
[0161] Based on the synchronous avionics simulation data stream, the synchronous avionics display and control drive signal, the synchronous avionics display and control feedback signal, the synchronous simulation model message, and the synchronous avionics display and control fault handling information, the entire process record data of this flight simulation is generated through simulation calculation and playback processing strategies.
[0162] Based on the recorded data throughout the entire process, the flight simulation results of this flight simulation are identified.
[0163] The various modules in the aforementioned physical flight simulator can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the computer device's memory as software, so that the processor can call and execute the corresponding operations of each module.
[0164] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interfaces (I / O interfaces), a communication interface, a display unit, and input devices. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface, display unit, and input devices are also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a hardware-in-the-loop flight simulator method. The display unit is used to generate a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0165] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0166] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of a physical simulation method for a real-machine-in-the-loop flight simulator.
[0167] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program being executed by a processor to implement the steps of a physical simulation method for a real-machine-in-the-loop flight simulator.
[0168] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of a physical simulation method for a real-machine-in-the-loop flight simulator.
[0169] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0170] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0171] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0172] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A semi-physical simulation method for a real-aircraft-in-the-loop flight simulator, characterized in that, The method includes: Before the flight simulation, the aircraft model configuration file and global time base of the aircraft model simulated in the flight simulator are obtained. Based on the global time base, the global master clock is used to perform global time base unified processing on each simulation test port to obtain each synchronous simulation test port. The configuration file of the aircraft model is parsed and configured to generate gating scheduling information for each of the synchronous simulation test ports. During flight simulation, based on the gating scheduling information of each of the synchronous simulation test ports, the avionics simulation data stream and the first timestamp corresponding to the avionics simulation data stream are collected through a time-sensitive network switch. The avionics simulation data stream is parsed and processed to obtain avionics display and control drive signals and a second timestamp corresponding to the avionics display and control drive signals. In response to the pilot's operation actions in the flight simulator, avionics display and control feedback signals and a third timestamp corresponding to the avionics display and control feedback signals are collected. The avionics display and control feedback signal and the fourth timestamp during the encapsulation process are encapsulated to obtain the simulation model message for this flight simulation. Based on the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, and the simulation model message, synchronous evaluation and playback processing is performed using the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp to obtain the flight simulation result for this flight simulation.
2. The method according to claim 1, characterized in that, Based on the global time base, the global master clock is used to perform unified global time base processing on each simulation test port to obtain each synchronous simulation test port, including: By using a link peer delay measurement strategy, the clock deviation value between the global master clock and the local clock of each of the simulation test ports is identified; Based on the global time base and the clock deviation value corresponding to each simulation test port, the global time base is uniformly processed for each simulation test port to obtain each synchronous simulation test port.
3. The method according to claim 2, characterized in that, The step of parsing and configuring the configuration file of the aforementioned model to generate gating and scheduling information for each of the aforementioned synchronous simulation test ports includes: The device configuration file is split into sub-port configuration files for each synchronous simulation test port. For each synchronous simulation test port, the sub-port configuration file is parsed to obtain the period of each time-sensitive stream, the maximum frame length of each time-sensitive stream, the transmission time constraint of each time-sensitive stream, and the deadline of each time-sensitive stream. Based on the period of each time-sensitive stream, a super-period is determined, and based on the cutoff time of each time-sensitive stream, a time slot is allocated to each time-sensitive stream within the super-period. Each time slot is verified to obtain a verification result for each time slot. When the verification result is a pass, a gating schedule table for the synchronous simulation test port is constructed based on the time slots of each time-sensitive stream.
4. The method according to claim 1, characterized in that, The step of parsing and processing the avionics simulation data stream to obtain avionics display and control drive signals, and the second timestamp corresponding to the avionics display and control drive signals, includes: Based on the avionics simulation data, the avionics simulation data stream is framed into serial bus information through the forward drive channel according to the bus protocol, and the serial bus information is parsed and encapsulated to obtain time-sensitive network packets and a first peripheral timestamp. The avionics simulation data is mapped to switch level transition information according to discrete channels, and the switch level transition information is aggregated according to the channel bitmap to obtain the periodic reporting stream and the second peripheral timestamp. The avionics simulation data is converted into a periodic data stream and a third peripheral timestamp through the analog signal channel. The time-sensitive network packets, the periodic reporting stream, and the periodic data stream are converted into heterogeneous interface synchronous conversions using the first peripheral time stamp, the second peripheral time stamp, and the third peripheral time stamp to obtain avionics display and control drive signals and the second time stamp corresponding to the avionics display and control drive signals.
5. The method according to claim 1, characterized in that, Before encapsulating the avionics display and control feedback signal with the fourth timestamp of the avionics display and control feedback signal during encapsulation to obtain the simulation model message for this flight simulation, the process further includes: Collect fault injection instructions containing global time base trigger timestamps, and identify current fault information based on the fault injection instructions; Based on the fault injection command, the fault injection process is performed according to the global time base trigger timestamp using the current fault information to obtain avionics display and control fault handling information and the double boundary timestamp corresponding to the avionics display and control fault handling information.
6. The method according to claim 5, characterized in that, The flight simulation results are obtained by synchronously evaluating and replaying the data stream, avionics display and control drive signals, avionics display and control feedback signals, and simulation model messages based on the avionics simulation data stream, the avionics display and control drive signals, the avionics display and control feedback signals, and the simulation model messages, using the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp. These results include: Based on the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, and the double-boundary timestamp, the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, the simulation model message, and the avionics display and control fault handling information are subjected to unified time domain alignment processing to obtain synchronous avionics simulation data stream, synchronous avionics display and control drive signal, synchronous avionics display and control feedback signal, synchronous simulation model message, and synchronous avionics display and control fault handling information; Based on the synchronous avionics simulation data stream, the synchronous avionics display and control drive signal, the synchronous avionics display and control feedback signal, the synchronous simulation model message, and the synchronous avionics display and control fault handling information, the entire process record data of this flight simulation is generated through simulation calculation and playback processing strategies. Based on the recorded data throughout the entire process, the flight simulation results of this flight simulation are identified.
7. A semi-physical simulation device for a flight simulator, characterized in that, The device includes: The acquisition module is used to acquire the aircraft model configuration file and global time base of the aircraft model simulated by the flight simulator before the flight simulation, and to perform global time base unified processing on each simulation test port through the global master clock based on the global time base to obtain each synchronous simulation test port. The parsing module is used to parse and configure the aircraft configuration file, generate gating and scheduling information for each of the synchronous simulation test ports, and, during flight simulation, collect avionics simulation data streams and the first timestamps corresponding to the avionics simulation data streams through a time-sensitive network switch based on the gating and scheduling information for each of the synchronous simulation test ports. The acquisition module is used to parse and process the avionics simulation data stream to obtain the avionics display and control drive signal and the second timestamp corresponding to the avionics display and control drive signal, and to acquire the avionics display and control feedback signal and the third timestamp corresponding to the avionics display and control feedback signal in response to the pilot's operation in the flight simulator. The evaluation module is used to encapsulate the avionics display and control feedback signal and the fourth timestamp of the avionics display and control feedback signal during encapsulation to obtain the simulation model message of this flight simulation. Based on the avionics simulation data stream, the avionics display and control drive signal, the avionics display and control feedback signal, and the simulation model message, synchronous evaluation and playback processing is performed through the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp to obtain the flight simulation result of this flight simulation.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
