A simulation method, device and storage medium for a flight control panel

Define the display content and execution logic of the flight control panel through XML and Python script files, and combine it with the SOA componentized engine, the problem of long modeling cycle of traditional flight control panel simulation methods is solved, and rapid modeling and cost reduction is achieved, and flexible simulation is supported for multi-scenario use.

CN113919158BActive Publication Date: 2025-07-29NANJING XINCHUANHUI ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111198233.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-14
Publication Date
2025-07-29
Estimated Expiration
2041-10-14

AI Technical Summary

Technical Problem

Traditional flight control panel simulation methods are individually modeled for different configuration items, resulting in a long modeling cycle and slow response to demand changes, which cannot meet the urgent needs of system integration and verification.

Method used

XML files and Python script files are used to define the control panel display content and execution logic, and the system framework is created through the SOA componentization engine, and functional modules are loaded to realize general modeling of the control panel, supporting dynamic loading and fast verification.

Benefits of technology

It realizes rapid modeling of the control panel, reduces development costs and test verification costs, supports multi-scenario use, and has the ability to respond to the simulation requirements of aviation system configuration items.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113919158B_ABST
    Figure CN113919158B_ABST
Patent Text Reader

Abstract

The present invention provides a simulation method, device and storage medium for a flight control panel, relating to the technical field of computer simulation. The method includes creating a system framework, initializing an SOA componentization engine, and loading functional modules of the system; reading an engineering configuration file, initializing engineering nodes, ICD data and device boards; reading configuration parameters, initializing data channels of the device boards, enabling data functions, and starting to listen for channel data; reading a panel configuration file, initializing the control panel and displaying it, preparing a script execution context and executing initialization logic; starting a listening thread to listen for user operation events and data message events. The present invention defines the display content and execution logic of the control panel through XML files and Python script files, realizes a general modeling method for the control panel, supports dynamic loading, can quickly verify the correctness of modeling, greatly shortens the modeling time of the control panel, and reduces the development cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer simulation, and particularly to a simulation method, device and storage medium for a flight control panel. Background Art

[0002] The flight control panel is an indispensable part of the flight instruments of modern large airliners. As a part of the human-machine interaction unit, it is the main input device for pilots to control and operate. At the same time, it is also an important output device, usually used to display the operating status and important parameters of the system. Through the flight control panel, the pilot can manually complete most of the operations required for flight. For example, the TCAS / ATC control panel is a typical flight control panel.

[0003] Simulation is an imitation of the abstract attributes of a certain level of a real system. People use such a model for experiments, obtain the required information from it, and then help people make decisions on problems at a certain level of the real world. Flight control panel simulation is to use computer technology to model the control panel and simulate the input and output functions of real physical devices for system integration verification testing.

[0004] There are many configuration items in the flight control system. Traditional control panel simulation models different configuration items separately. On the one hand, the modeling cycle is relatively long, and on the other hand, the response to demand changes is relatively slow. However, the time for system integration and verification is tight and the tasks are heavy. An effective modeling and simulation method must be available to discover problems in time, accurately locate the reasons, and quickly find reasonable solutions. Based on the requirements of the system development process, it has become increasingly important and urgent to build a fast and flexible control panel simulation method. Summary of the Invention

[0005] The purpose of the present invention is to provide a simulation method, device and storage medium for a flight control panel, so as to solve the technical problems of long modeling cycle and slow response to demand changes caused by separately modeling different configuration items in traditional control panel simulation for the flight control system with numerous configuration items.

[0006] To achieve the above object, the present invention proposes the following technical solution: A simulation method for a flight control panel, comprising:

[0007] Create a system framework, initialize the SOA componentization engine, and load the functional modules of the system. Among them, the functional modules include an engineering management module that realizes unified centralized management of cockpit simulation panels of different models in an engineering management manner, an ICD management module for visual editing of ICDs and importing / exporting ICD description files, a control component repository module for configuring and managing basic control units in the flight panel, a simulation panel editing module for customizing the display content of the simulation panel and editing the execution logic of the simulation panel, a data channel module for configuring and managing functions such as adding, deleting, modifying, querying, starting, stopping, and data sending and receiving of multiple types of data channels, a simulation panel execution module for dynamically loading the layout file of the control panel and displaying the control panel, and executing simulation logic according to panel input, and a data processing module for generating a structured ICD instance based on ICD description information and providing ICD serialization and ICD deserialization functions.

[0008] Read the engineering configuration file and initialize the engineering nodes, ICD data, and device boards.

[0009] Read the configuration parameters, initialize the data channels of the device boards, enable the data function, and start listening for channel data.

[0010] Read the panel configuration file, initialize the control panel and display it, prepare the script execution context, and execute the initialization logic.

[0011] Start the listening thread to listen for user operation events and data message events.

[0012] Furthermore, when the data channel receives packet data, call the data identification parsing script to parse the packet identification; then determine the ICD information of the packet data through the ICD binding table, and package the ICD information and packet data into a data message event and send it to the simulation panel execution module.

[0013] Furthermore, the initialization of the control panel and display includes:

[0014] Read the control panel XML layout file, parse the attribute description information of the control objects, and form a list of control objects.

[0015] Traverse the list of control objects, and sequentially call the control instantiation interface provided by the control component repository module to instantiate the control objects according to the control object types, and initialize each control according to the attribute description information of the control objects, including position, size, and display style.

[0016] Start the display event listening thread to listen for display events.

[0017] Furthermore, the simulation panel execution module prepares the script execution context and executes the initialization logic, including:

[0018] Import the basic Python running module using pybind11 functions and set the Python script index directory;

[0019] Expose the ICD instantiation, ICD serialization, and ICD deserialization interfaces of the data processing module and the data sending interface of the data channel management module to the Python running context through pybind11 functions;

[0020] Read the Python script path information associated with the control panel, load the script using pybind11, and check whether the script conforms to the template specification; if it does not meet the specification requirements, prompt the user; if it meets the specification requirements, execute the initialization logic in the script.

[0021] Further, the user operation event is that when the user operates a control in the simulation panel, the control generates a user operation event;

[0022] When the simulation panel execution module monitors a user operation event, call the user event handling function in the script to perform message definition, message serialization, and message sending operations;

[0023] When the simulation panel execution module monitors a data message event, call the data message handling function in the script to perform message deserialization, display event definition, and display event sending operations;

[0024] When the control panel monitors a display event, call the property setting function of the corresponding control to complete the modification of the control display content.

[0025] Further, the project management module, ICD management module, control library module, simulation panel editing module, simulation panel execution module, data processing module, and data channel module are all developed in a componentized manner, and the modules are loosely coupled.

[0026] Further, the control library module provides a control instantiation interface to the system through a service interface, the data processing module provides ICD instantiation, ICD serialization, and ICD deserialization interfaces to the system through a service interface, and the data channel module provides a unified data sending interface to the system through a service interface.

[0027] Another object of the present invention is to disclose a simulation device for a flight control panel, including:

[0028] A creation module, which is used to create a system framework, initialize the SOA componentization engine, and load the functional modules of the system; among them, the functional modules include an engineering management module that realizes unified centralized management of cockpit simulation panels of different models by means of engineering management, an ICD management module for visually editing ICDs and importing / exporting ICD description files, a control component repository module for configuring and managing basic control units in the flight panel, a simulation panel editing module for customizing the display content of the simulation panel and editing the execution logic of the simulation panel, and a data channel module for configuring and managing functions such as adding, deleting, modifying, querying, starting, stopping, and data sending and receiving of multiple types of data channels, as well as a simulation panel execution module for dynamically loading the layout file of the control panel and displaying the control panel, and executing simulation logic according to panel input, and a data processing module for generating a structured ICD instance according to ICD description information and providing ICD serialization and ICD deserialization functions;

[0029] A first reading module, which is used to read the engineering configuration file through the engineering management module to initialize engineering nodes, ICD data, and device boards;

[0030] A second reading module, which is used to read configuration parameters through the data channel module to initialize the data channels of the device boards, enable data functions, and start listening for channel data;

[0031] A third reading module, which is used to read the panel configuration file through the simulation panel execution module to initialize the control panel and display it, prepare the script execution context, and execute the initialization logic;

[0032] A start module, which is used to start a listening thread to listen for user operation events and data message events.

[0033] Another object of the present invention is to disclose an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above-mentioned simulation method for a flight control panel is implemented.

[0034] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned simulation method for a flight control panel is implemented.

[0035] As can be seen from the above technical solutions, the technical solutions of the present invention have obtained the following beneficial effects:

[0036] 1. By defining the display content and execution logic of the control panel through XML files and Python script files, a general modeling method for the control panel is realized. This method supports dynamic loading, can quickly verify the correctness of the modeling, greatly shortens the modeling time of the control panel, and reduces the development cost;

[0037] 2. The basic control units of the control panel are provided through the control library, and different control units can be flexibly selected to build the target control panel. The control units are developed once and used in multiple panels, avoiding repeated development work.

[0038] 3. Through various interface boards of the data channel, it can be docked with the physical environment and the virtual simulation environment. Once modeled, it can be used in multiple scenarios, further reducing the test and verification costs.

[0039] 4. Through the above simulation process, the present invention realizes a flexible and generalized simulation method for the flight panel, which can meet the simulation requirements of the control panels of most aviation system configuration items.

[0040] It should be understood that all combinations of the foregoing concepts and additional concepts described in greater detail below can be regarded as part of the inventive subject matter of the present disclosure as long as such concepts do not conflict with each other.

[0041] The foregoing and other aspects, embodiments, and features of the teachings of the present invention can be more fully understood from the following description taken in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent in the following description or will be learned through practice of the specific embodiments according to the teachings of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component shown in each figure may be represented by the same reference numeral. For clarity, not every component is labeled in each figure. Now, embodiments of various aspects of the present invention will be described by way of example and with reference to the drawings, wherein:

[0043] Figure 1 is the system framework diagram created for an embodiment of the present invention;

[0044] FIG. 2(a) is the definition of user operation events in an embodiment of the present invention;

[0045] FIG. 2(b) is the definition of display events in an embodiment of the present invention;

[0046] Figure 3 is the control base class of the custom control unit for an embodiment of the present invention;

[0047] Figure 4 is the definition of the control instantiation interface of the control library module of the present invention;

[0048] Figure 5 is the data processing interface provided by the data processing module of the embodiment of the present invention;

[0049] Figure 6Schematic diagram of the interaction between the data channel and the communication bus in the embodiments of the present invention;

[0050] Figure 7 Design diagram of the data channel interface in the embodiments of the present invention;

[0051] Figure 8 Design diagram of the data bus interface in the embodiments of the present invention;

[0052] Figure 9 ICD matching flowchart in the embodiments of the present invention. Detailed implementation manners

[0053] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the described embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein shall have the ordinary meanings as understood by those of ordinary skill in the art to which the present invention pertains.

[0054] The terms "first", "second" and similar terms used in the specification and claims of this patent application for the present invention do not denote any order, quantity or importance, but are only used to distinguish different components. Similarly, unless the context clearly indicates otherwise, the singular forms "a", "an" or "the" and similar terms do not denote a limitation of quantity, but rather indicate the presence of at least one. The terms "comprising" or "including" and similar terms mean that the elements or items appearing before "comprising" or "including" cover the features, wholes, steps, operations, elements and / or components listed after "comprising" or "including", and do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.

[0055] Based on the technical problems in the prior art that when simulating a flight control panel through modeling, due to numerous configuration items in the flight control system, traditional control panel simulation models different configuration items separately, resulting in a long modeling cycle and slow response to demand changes; the present invention aims to disclose a simulation method, device and storage medium for a flight control panel. The method defines the display content and execution logic of the control panel through an XML file and a Python script file, realizes the generalization modeling of the control panel, supports dynamic loading, can quickly verify the correctness of the modeling, greatly shortens the control panel modeling time, and reduces the development cost.

[0056] The embodiments shown in the accompanying drawings are hereinafter combined to further specifically introduce the simulation method, device and storage medium disclosed in the present invention for a flight control panel.

[0057] The simulation method for a flight control panel provided by the present invention includes creating a system framework, initializing an SOA componentization engine, and loading the functional modules of the system; wherein, the functional modules include an engineering management module, an ICD management module, a control library module, a simulation panel editing module, a simulation panel execution module, a data processing module, and a data channel module; reading an engineering configuration file, initializing engineering nodes, ICD data, and device boards; reading configuration parameters, initializing the data channels of the device boards, enabling data functions, and starting to listen for channel data; reading a panel configuration file, initializing the control panel and displaying it, preparing a script execution context, and executing initialization logic; starting a listening thread to listen for user operation events and data message events.

[0058] The system framework created in this embodiment is as Figure 1 shown, wherein, the engineering management module is used to achieve unified centralized management of simulation panels for different types of cockpits through an engineering management method; the ICD management module is used for visual editing of ICDs and importing / exporting ICD description files, supporting visual editing of ICDs, and the content that can be edited includes data format, data content, field attributes, etc.; the control library module is used for configuring and managing the basic control units in the flight panel, and users can build a target control panel through the basic control units provided by this module; the simulation panel editing module is used for customizing the display content of the simulation panel and editing the execution logic of the simulation panel; the simulation panel execution module is used for dynamically loading the layout file of the control panel and displaying the control panel, and at the same time, it can execute simulation logic according to the panel input and output; the data processing module is used for generating a structured ICD instance according to the ICD description information, and providing ICD serialization and ICD deserialization functions; the data channel module is used for configuring and managing multiple types of data channels, and can complete functions such as adding, deleting, modifying, querying, starting and stopping, and data sending and receiving of data channels. Moreover, the engineering management module, the ICD management module, the control library module, the simulation panel editing module, the simulation panel execution module, the data processing module, and the data channel module are developed in a componentized manner, and there is loose coupling between each module; wherein,

[0059] Specifically, the control library module includes common control units in an aviation control panel, such as buttons, binary switches, DIP switches, rotary encoders, digital tubes, indicator lights, multifunctional keyboards, etc.; among the above controls, operation-type controls all support sending user operation events, and display-type controls all support responding to display events. The user operation events and display events are defined as follows Figure 2(a) and 2(b)As shown. Moreover, when the user operates the controls in the simulation panel, the controls generate user operation events. When the simulation panel execution module monitors a user operation event, it calls the user event handling function in the script to complete operations such as message definition, message serialization, and message sending; when the simulation panel execution module monitors a data message event, it calls the data message handling function in the script to complete operations such as message deserialization, display event definition, and display event sending; when the control panel monitors a display event, it calls the property setting function of the corresponding control to complete the modification of the control display content.

[0060] In addition, the control library module can load user-defined control units developed according to specifications. For example, Figure 3 As shown, the embodiment defines a feasible base class, and users can inherit this base class to develop custom controls. Among them, setProperyValue() is the control initialization interface, and the initialization of basic properties has been implemented in the base class. Each custom control needs to implement it by itself according to the extended properties; getProperyValue() is the interface for obtaining the control property value, which is used for the sending script to obtain the control property information, and each custom control needs to implement it according to the situation; showAction() is the display event handling interface, and each custom control needs to implement it according to the situation; sendAction() has been implemented in the base class, and it generates a user operation event after being called, and each control calls it according to the situation. During real-time operation, the control library module provides a control instantiation interface to the system through the service interface, and the instantiation interface is defined as Figure 4 As shown.

[0061] The simulation panel editing module describes the layout information of the simulation panel through an XML format file. Specifically, the XML layout file includes a file root node PanelRootGroup, which contains multiple Panel nodes; the Panel node describes the attribute information of the simulation panel, including the name, associated script, associated data channel, and control (Item node) position information; the Item node describes the attribute information of a single control, including type, name, position, size, and other private attribute information. The simulation panel editing module describes the execution logic of the simulation panel through a Python script file. Specifically, the Python script uses a templated definition, and this script contains a user operation event response processing function doAciton and a data message event response processing function processPacket. In the response processing function, the getIcdPacket can be called to obtain the ICD instance, the getProperty can be called to obtain the control property value, the sendPacket can be called to serialize and send the ICD data, the analysePacket can be called to deserialize the ICD data, and / or the setProperty can be called to construct and send an echo event; the panel layout description and logic file can be directly edited in a text editor. During operation, the simulation panel execution module constructs the display and control panel by loading and running the XML layout description file, and realizes the control response and echo logic by loading and running the panel Python logic file through pybind11.

[0062] The data processing module provides ICD instantiation, ICD serialization, ICD deserialization interfaces, etc. to the system through the service service interface. The definitions of each interface are as follows Figure 5 As shown; it can be seen from the interface that in this implementation, the ICD instance is described by a JSON format string as the ICD information exchange protocol between C++ and Python.

[0063] The data channel module supports access to discrete quantity boards, ARINC429 boards, ARINC664 boards, RS422 boards, RS485 boards, CAN boards, Ethernet boards, and other various device boards. For the above-mentioned hardware with communication functions, the physical communication interface is converted into a data channel in the data channel module. After initializing the channel, it is registered to the communication data bus. The principle is as follows Figure 6 As shown. The main functions included in the data channel interface are: setting the channel interface identifier, obtaining the channel interface identifier, opening the channel, closing the channel, writing data, reading data. The functions included in the data bus interface are: obtaining all channel lists, obtaining a channel with a certain Id, registering a channel, unregistering a channel, writing data to a single channel, reading data from a single channel, writing data to multiple channels, reading data from multiple channels. The UML interface design diagrams of the data channel and the data bus are as Figure 7 and Figure 8as shown

[0064] When the above data channel receives message data, it calls the data identifier parsing script to parse the data packet identifier; then determines the ICD information of the message data through the ICD binding table, and packages the ICD information and the message data into a data message event and sends it to the simulation panel execution module. The matching process of the ICD is as follows Figure 9 as shown. The data channel module defines the relationship between the ICD and the data packet identifier through the ICD binding table, and the data packet identifier is dynamically parsed through the data channel association script.

[0065] According to the read panel configuration file, the steps for initializing and displaying the control panel include the following

[0066] Step 1, read the control panel XML layout file, parse the attribute description information of the control object, and form a control object list;

[0067] Step 2, traverse the control object list, and sequentially call the control instantiation interface provided by the control repository module to instantiate the control object according to the control object type, and initialize each control according to the attribute description information of the control object, including position, size, and display style;

[0068] Step 3, start the display event listening thread to listen for display events.

[0069] According to the read panel configuration file, the initialization steps for the simulation panel execution module to prepare the script execution context and execute the initialization logic are as follows

[0070] Step 11, use the pybind11 function to import the Python basic running module and set the Python script index directory;

[0071] Step 12, expose the ICD instantiation, ICD serialization, and ICD deserialization interfaces of the data processing module and the data sending interface of the data channel management module to the Python running context through the pybind11 function;

[0072] Step 13, read the Python script path information associated with the control panel, use pybind11 to load the script, and check whether the script conforms to the template specification; if it does not meet the specification requirements, prompt the user; if it meets the specification requirements, execute the initialization logic in the script.

[0073] Another embodiment of the present invention discloses a simulation device for a flight control panel. When the device runs, it implements the above-mentioned simulation method for the flight control panel. The simulation method for the flight control panel can be divided into multiple modules or units when executed. The multiple modules or units can be a series of computer program instruction segments capable of completing specific functions, and these instruction segments are used to describe the execution process of the simulation method for the flight control panel of the present invention in the device. For example, the simulation device for the flight control panel of the present invention includes the following modules:

[0074] A creation module, which is used to create a system framework, initialize the SOA componentization engine, and load the function modules of the system; among them, the function modules include an engineering management module that realizes unified centralized management of simulation panels of different models in an engineering management manner, an ICD management module for visual editing of ICDs and importing / exporting ICD description files, a control component library module for configuration management of basic control units in the flight panel, a simulation panel editing module for customizing the display content of the simulation panel and editing the execution logic of the simulation panel, and a data channel module for configuration management of addition, deletion, modification, query, start / stop, and data sending and receiving functions of multiple types of data channels, as well as a simulation panel execution module for dynamically loading the layout file of the control panel and displaying the control panel, and executing the simulation logic according to the panel input, and a data processing module for generating a structured ICD instance according to the ICD description information and providing ICD serialization and ICD deserialization functions;

[0075] A first reading module, which is used to read the project configuration file through the engineering management module and initialize the project nodes, ICD data, and device boards;

[0076] A second reading module, which is used to read the configuration parameters through the data channel module, initialize the data channels of the device boards, enable the data function, and start listening for channel data;

[0077] A third reading module, which is used to read the panel configuration file through the simulation panel execution module, initialize the control panel and display it, prepare the script execution context, and execute the initialization logic;

[0078] A start module, which is used to start a listening thread to listen for user operation events and data message events.

[0079] Based on the same inventive concept as a simulation method for a flight control panel in the foregoing embodiments, the present invention also provides an electronic device; the device includes a memory, a processor, and a computer program stored on the memory and executable on the processor; wherein, the memory and the processor are communicatively connected to each other, for example, through a bus or other means; when the processor executes the stored computer program, the execution steps of the simulation method for a flight control panel described above are implemented.

[0080] In specific implementation, the processor and the memory included in the electronic device may be one or more. Among them, the processor is preferably but not limited to a central processing unit (CPU), and may also be other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the test device to perform desired functions. For example, the processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., or a combination of the above types of chips.

[0081] As a non-transitory computer-readable storage medium, the memory may include one or more computer program products, and may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the simulation method for the flight control panel in the embodiments of the present invention. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions, and modules stored in the memory, that is, implements a simulation method for the flight control panel in the above method embodiments. The memory may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory is preferably but not limited to a high-speed random access memory. For example, it may also be a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may also optionally include a memory remotely set relative to the processor, and these remote memories may be connected to the processor through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof.

[0082] Those skilled in the art can understand that to implement all or part of the processes in the above method embodiments, it can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the embodiments of the simulation method for the flight control panel as described above. Among them, the storage medium may be a magnetic disk, an optical disc, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (HDD), or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above types of memories.

[0083] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0084] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a system for implementing the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0085] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction system that implements the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0087] Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Those with ordinary knowledge in the technical field to which the present invention pertains can make various modifications and refinements without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to what is defined by the claims.

Claims

1. A simulation method for a flight control panel, characterized in that Including: Create a system framework, initialize the SOA componentization engine, and load the system's functional modules; among them, the functional modules include an engineering management module that realizes unified centralized management of cockpit simulation panels of different models in an engineering management manner, an ICD management module for visually editing ICDs and importing / exporting ICD description files, a control warehouse module for configuring and managing basic control units in the flight panel, a simulation panel editing module for customizing the display content of the simulation panel and editing the execution logic of the simulation panel, and a data channel module for configuring and managing the addition, deletion, modification, query, start / stop, and data sending and receiving functions of multiple types of data channels, as well as a simulation panel execution module for dynamically loading the layout file of the control panel and displaying the control panel, executing the simulation logic according to the panel input, and a data processing module for generating a structured ICD instance based on the ICD description information, providing ICD serialization and ICD deserialization functions; Read the engineering configuration file and initialize the engineering nodes, ICD data, and device boards; Read the configuration parameters, initialize the data channels of the device boards, enable the data function, and start listening for channel data; Read the panel configuration file, initialize the control panel and display it, prepare the script execution context, and execute the initialization logic; Start a listening thread to listen for user operation events and data message events; When the data channel receives message data, call the data identification parsing script to parse the packet identification; then determine the ICD information of the message data through the ICD binding table, and package the ICD information and message data into a data message event and send it to the simulation panel execution module.

2. The simulation method for a flight control panel according to claim 1, wherein The initialization of the control panel and display includes: Read the control panel XML layout file, parse the attribute description information of the control objects, and form a list of control objects; Traverse the list of control objects, and sequentially call the control instantiation interface provided by the control warehouse module to instantiate the control objects according to the control object type, and initialize each control according to the attribute description information of the control objects, including position, size, and display style; Start a display event listening thread to listen for display events.

3. The simulation method for a flight control panel according to claim 1, characterized in that, The simulation panel execution module prepares the script execution context and executes the initialization logic, including: Use the pybind11 function to import the Python basic running module and set the Python script index directory; Expose the ICD instantiation, ICD serialization, and ICD deserialization interfaces of the data processing module and the data sending interface of the data channel management module to the Python running context through the pybind11 function; Read the Python script path information associated with the control panel, use pybind11 to load the script, and check whether the script meets the template specifications; if it does not meet the specification requirements, prompt the user; if it meets the specification requirements, execute the initialization logic in the script.

4. The simulation method for a flight control panel according to claim 3, characterized in that, The user operation event is that when the user operates the controls in the simulation panel, the controls generate user operation events; When the simulation panel execution module listens for a user operation event, call the user event handling function in the script to execute message definition, message serialization, and message sending operations; When the simulation panel execution module detects a data packet event, it calls the data packet processing function in the script to perform packet deserialization, display event definition, and display event sending operations; When the control panel detects a display event, it calls the property setting function of the corresponding control to complete the modification of the control display content.

5. The simulation method for a flight control panel according to claim 1, wherein The project management module, ICD management module, control library module, simulation panel editing module, simulation panel execution module, data processing module, and data channel module are all developed in a componentized manner, with loose coupling between modules.

6. The simulation method for a flight control panel according to claim 1, wherein The control library module provides a control instantiation interface to the system through a service interface. The data processing module provides ICD instantiation, ICD serialization, and ICD deserialization interfaces to the system through a service interface. The data channel module provides a unified data sending interface to the system through a service interface.

7. A simulation device for a flight control panel, characterized in that, Including: A creation module for creating a system framework, initializing the SOA componentization engine, and loading the functional modules of the system. The functional modules include a project management module that uses an engineering management method to achieve unified centralized management of different types of cockpit simulation panels, an ICD management module for visual editing of ICDs and importing / exporting ICD description files, a control library module for configuring and managing the basic control units in the flight panel, a simulation panel editing module for customizing the display content of the simulation panel and editing the execution logic of the simulation panel, and a data channel module for configuring and managing the addition, deletion, modification, query, start / stop, and data sending and receiving functions of multiple types of data channels, as well as a simulation panel execution module for dynamically loading the layout file of the control panel and displaying the control panel, and executing the simulation logic according to the panel input, and a data processing module for generating a structured ICD instance based on the ICD description information and providing ICD serialization and ICD deserialization functions; A first reading module for reading the project configuration file through the project management module and initializing the project nodes, ICD data, and device boards; A second reading module for reading the configuration parameters through the data channel module, initializing the data channels of the device boards, enabling the data function, and starting to monitor the channel data; A third reading module for reading the panel configuration file through the simulation panel execution module, initializing the control panel and displaying it, preparing the script execution context, and executing the initialization logic; A start module for starting a monitoring thread to monitor user operation events and data packet events.

8. An electronic device, characterized in that, Including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the simulation method for a flight control panel as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the simulation method for a flight control panel as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Simulation system of industrial electronic embedded system

    CN105022288A

  • Avionics simulation panel generation system based on HTML5 and VUE technologies

    CN112364496A