Construction method and device of electromechanical simulation environment, computer equipment and medium
By constructing an electromechanical simulation environment and utilizing configuration description files and embedded computers to connect to the excitation system, the problem of difficulty in simulating the flight conditions and states of aircraft electromechanical systems in existing technologies has been solved, achieving more efficient simulation and software development.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHAANXI AIRCRAFT CORPORATION
- Filing Date
- 2025-11-26
- Publication Date
- 2026-04-14
AI Technical Summary
Existing technologies are insufficient to effectively simulate various flight conditions and system states of aircraft electromechanical systems, resulting in significant differences between simulation systems and actual environments, inadequate verification of electromechanical algorithms, and risks and inconveniences affecting flight and maintenance.
By generating configuration description files using configuration-based embedded development tools, combining them with electromechanical system control algorithm generation tools and embedded computers, and utilizing Ethernet connections to the excitation system to transmit temperature and pressure sensor data, an electromechanical simulation environment can be constructed.
It effectively simulates various flight conditions and system states, improves the reliability and stability of electromechanical system simulation systems, and simplifies the software development and debugging process.
Smart Images

Figure CN121859520A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electromechanical simulation technology, and in particular to a method, apparatus, computer equipment, and medium for constructing an electromechanical simulation environment. Background Technology
[0002] Aircraft electromechanical systems include hydraulic, landing gear control, fuel, fire protection, environmental control, de-icing, oxygen supply, power supply, and lighting systems. The physical systems of these electromechanical systems are complex, involving a wide range of signals, numerous bus and hardwire types, and an exceptionally complex transmission topology. Furthermore, program reliability is low, testing is difficult, and the simulation system or ground environment differs significantly from the actual flight environment, easily leading to insufficient verification of electromechanical algorithms, posing risks and inconveniences to flight and maintenance. Therefore, simulating aircraft electromechanical systems is extremely challenging.
[0003] Existing electromechanical system simulation systems typically have the following problems: 1) Simulation of the underlying software technology of electromechanical systems with multiple bus and hardwire types, complex transmission topology layers, and long operation cycles is difficult, with a high code error rate and poor reliability.
[0004] 2) Electromechanical system simulation requires consideration of a large number of variables and parameter data, making it difficult to simulate various flight conditions and system states. Furthermore, the lack of accurate control algorithm models makes it difficult to design, develop, debug, and verify the software. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a method for constructing an electromechanical simulation environment to solve the technical problem in the prior art that it is difficult to simulate various flight conditions and system states. The method includes: A configuration description file is generated using a configuration-based embedded development tool, and then the configuration description file is burned to the embedded computer. Using an electromechanical system control algorithm generation tool, the core algorithm data corresponding to the embedded computer is obtained from the airborne software interface protocol, the core algorithm data is packaged and transmitted to the embedded computer, standard algorithm data is obtained from the electromechanical system standard algorithm package, and the standard algorithm data is written to the embedded computer through the programming serial port of the embedded computer. The excitation system is connected to the airborne software interface protocol via Ethernet, and the embedded computer is connected to the excitation system via Ethernet. The status information of temperature sensors, pressure sensors, and switches, indicator lights, and buttons on the cockpit control panel assembly is transmitted to the embedded computer through the excitation system via the airborne software interface protocol. The embedded computer receives simulation commands from the excitation system through its debug signal interface device, and sends the state simulation result data generated by the embedded computer to the excitation system through the debug signal interface device.
[0006] This invention also provides a device for constructing an electromechanical simulation environment to solve the technical problem of difficulty in simulating various flight conditions and system states in the prior art. The device includes: A configuration description file generation module is used to generate a configuration description file through a configuration-based embedded development tool and to burn the configuration description file to an embedded computer. The algorithm acquisition module is used to control the algorithm generation tool through the electromechanical system, obtain the core algorithm data corresponding to the embedded computer from the airborne software interface protocol, package the core algorithm data and transmit it to the embedded computer, obtain standard algorithm data from the standard algorithm package of the electromechanical system, and write the standard algorithm data to the embedded computer through the programming serial port of the embedded computer. The system connection module is used to connect the excitation system to the airborne software interface protocol via Ethernet, and to connect the embedded computer to the excitation system via Ethernet; The hard-wired data transmission module is used to transmit the status information of temperature sensors, pressure sensors, and switches, indicator lights, and buttons on the cockpit control board assembly to the embedded computer through the excitation system via the airborne software interface protocol. The simulation data transmission module is used to receive simulation commands from the excitation system through the debug signal interface device of the embedded computer, and to send the state simulation result data generated by the embedded computer to the excitation system through the debug signal interface device.
[0007] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-mentioned method for constructing any electromechanical simulation environment, thereby solving the technical problem in the prior art that it is difficult to simulate various flight conditions and system states.
[0008] This invention also provides a computer-readable storage medium storing a computer program that executes any of the above-described methods for constructing electromechanical simulation environments, in order to solve the technical problem in the prior art that it is difficult to simulate various flight conditions and system states.
[0009] Compared with the prior art, the beneficial effects that at least one technical solution adopted in the embodiments of this specification can achieve include at least: By constructing an electromechanical simulation environment, the operation of electromechanical systems under various flight conditions and system states was effectively simulated. Attached Figure Description
[0010] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the 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.
[0011] Figure 1 This is a flowchart of a method for constructing an electromechanical simulation environment provided in an embodiment of the present invention; Figure 2 This is a flowchart illustrating a method for constructing the above-described electromechanical simulation environment according to an embodiment of the present invention; Figure 3 This is a structural block diagram of a computer device provided in an embodiment of the present invention; Figure 4 This is a structural block diagram of a device for constructing an electromechanical simulation environment provided in an embodiment of the present invention. Detailed Implementation
[0012] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0013] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. This application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0014] In this embodiment of the invention, a method for constructing an electromechanical simulation environment is provided, such as... Figure 1 As shown, the method includes: Step S101: Generate a configuration description file using a configuration-based embedded development tool, and burn the configuration description file to the embedded computer; Step S102: Using the electromechanical system control algorithm generation tool, obtain the core algorithm data corresponding to the embedded computer from the airborne software interface protocol, package the core algorithm data and transmit it to the embedded computer, obtain the standard algorithm data from the electromechanical system standard algorithm package, and burn the standard algorithm data to the embedded computer through the burning serial port of the embedded computer; Step S103: Connect the excitation system to the airborne software interface protocol via Ethernet, and connect the embedded computer to the excitation system via Ethernet; Step S104: The status information of the temperature sensor, pressure sensor, and switches, indicator lights, and buttons on the cockpit control board assembly are transmitted to the embedded computer through the excitation system via the airborne software interface protocol. Step S105: Receive simulation instructions from the excitation system through the debug signal interface device of the embedded computer, and send the state simulation result data generated by the embedded computer to the excitation system through the debug signal interface device.
[0015] Specifically, when data is transmitted to the embedded computer via the excitation system through the airborne software interface protocol, the main transmitted data consists of hardwired data and bus data. Hardwired data includes status information from temperature sensors, pressure sensors, and switches, indicator lights, and buttons on the cockpit control panel assembly. Bus data includes control commands, maintenance information, feedback, software version, and time information.
[0016] In practice, the following steps are used to generate a configuration description file using a configuration-based embedded development tool: In the configurable embedded development tool, control scheduling sequence data, data output location, data output cycle, and configuration parameter information are set; input data is obtained from the airborne software interface protocol, and the source of the input data is determined, wherein the source of the input data includes the hydraulic system, landing gear system, fuel system, fire prevention system, de-icing system, power supply system, lighting system, environmental control system, and fire prevention and rescue system; the algorithm functions to be used are obtained from the electromechanical system standard algorithm package; based on the control scheduling sequence data, the data output location, the data output cycle, the configuration parameter information, the input data, the source of the input data, and the algorithm functions, a configuration description file is generated.
[0017] In specific implementation, the configuration parameter information is achieved through the following steps: The configuration table includes a length, a number of device status parameters, a context buffer, a number of input / output signal table entries, and a data packet description table. The length of the configuration table defines the total number of data bytes in the configuration table for different simulation tasks. The number of device status parameters defines the total number of device status parameters that the configuration table needs to monitor. The context buffer stores temporary data during software operation. The number of input / output signal table entries counts the specific number of entries for input / output signals. The data packet description table defines the structure, encoding format, and parsing rules of data packets during data transmission.
[0018] In specific implementation, the following steps are used to obtain the core algorithm data corresponding to the embedded computer from the airborne software interface protocol through the electromechanical system control algorithm generation tool: The electromechanical system control algorithm generation tool accesses and parses the airborne software interface protocol, and extracts the corresponding set of dedicated algorithm functions from the airborne software interface protocol according to the control logic to be implemented by the embedded computer. The extracted set of dedicated algorithm functions is integrated and adapted at the code level according to the predefined algorithm interface format, parameter passing standard and data interaction protocol to generate dedicated core algorithm source code. The dedicated core algorithm source code is compiled to generate the corresponding core algorithm data.
[0019] In practice, the following steps are used to obtain standard algorithm data from the electromechanical system standard algorithm package: The electromechanical system control algorithm generation tool accesses the electromechanical system standard algorithm package; retrieves and calls standardized algorithm functions from the electromechanical system standard algorithm package, the standardized algorithm functions including motor speed control algorithm functions and temperature closed-loop regulation algorithm functions; and compiles the called standardized algorithm functions to generate corresponding standard algorithm data.
[0020] In specific implementation, the standard algorithm data is programmed into the embedded computer via its programming serial port through the following steps: A physical connection is established between the electromechanical system control algorithm generation tool and the embedded computer via a programming serial port. The compiled standard algorithm target file is transmitted and programmed into the address range of the specified non-volatile memory in the embedded computer in the form of a data frame sequence through the programming serial port. After programming, the programmed data is subjected to integrity verification. During the operation of the embedded computer, the algorithm function in the corresponding standard algorithm target file is dynamically loaded from the non-volatile memory and executed by parsing the algorithm call logic defined in the configuration description file.
[0021] Specifically, during the operation of the embedded computer, the core algorithm target data is also dynamically loaded in the same way.
[0022] In practice, the following steps are used to input simulation parameters and output simulation results via a display device: Connect the digital simulation display device to the excitation system; input simulation parameters through the digital simulation display device, and send the simulation parameters to the embedded computer through the excitation system; display the state simulation result data through the digital simulation display device.
[0023] In one embodiment of the present invention, such as Figure 2 As shown, 1 is the airborne software interface protocol, 2 is the configuration-based embedded development tool, 3 is the standard algorithm package for electromechanical systems, 4 is the electromechanical system control algorithm generation tool, 5 is the embedded computer, 6 is the debugging signal interface device, 7 is the excitation system, and 8 is the digital simulation display device.
[0024] The .crt file (configuration description file) is the core configuration and logic description file in electromechanical system application software. Its core function is to clearly define the main behavioral logic and operation scheduling rules of the software, and it is a "behavioral guide" to ensure that the system works stably according to the preset process.
[0025] From the perspective of the specific information contained, the .crt file not only clarifies the software's control and scheduling order (such as the startup priority and execution interval of each functional module), the source of input (e.g., data from sensors, external devices, or internal system cache), the algorithm functions used (specifying the specific algorithm module name and parameter passing rules to be called by the current task), and the output location (the hardware interface, storage address, or associated module to which the data needs to be transmitted) and output cycle (e.g., control signals with high real-time requirements need to be output once every 10ms, and status feedback signals can be output once every 100ms), but also contains a series of key configuration parameter information, as follows: (1) Configuration table number: As a unique identifier for the .crt file, it is used by the system to distinguish and manage the configuration tables of different functional modules, and avoid confusion when calling multiple files.
[0026] (2) Configuration table length: Defines the total number of bytes of data in the configuration table, providing a data boundary reference for the system when reading the file, and ensuring that the data is read completely without omission.
[0027] (3) Number of equipment status parameters: Determine the total number of equipment status parameters that need to be monitored in the current configuration table (such as the number of parameters such as motor speed, temperature, and voltage) to support the system in comprehensive monitoring of equipment operating status.
[0028] (4) Context buffer: Used to store temporary data during software operation (such as intermediate calculation results of the algorithm and temporary variables of inter-module interaction) to ensure the continuity and integrity of data when it is transferred between different modules.
[0029] (5) Number of input / output signal entries: The number of specific entries for input and output signals is counted separately. Each entry corresponds to detailed information such as the source, type, data format and transmission protocol of a signal to ensure the accuracy of signal interaction.
[0030] (6) Data packet description table: Defines the structure of data packets during data transmission (such as packet header identifier, data length field, check bit position), encoding format (such as binary, ASCII code) and parsing rules, providing a basis for the correct reception and decoding of data.
[0031] At the core logic support level, the logic algorithms within the .crt file are not temporary constructs, but rather encapsulated from modular algorithms accumulated over a long period in electromechanical systems. These modular algorithms have been verified in numerous real-world scenarios and possess high stability and strong reusability. For example, motor speed control algorithms and temperature closed-loop regulation algorithms are all integrated into the logic description of the .crt file in the form of standardized modules, allowing for direct invocation without the need for repeated development.
[0032] From the perspective of system necessity, the accurate parsing of the information contained in the .crt file is crucial: if the system cannot correctly identify the configuration table number, it will lead to configuration table call errors; if the configuration table length cannot be read, incomplete data reading or overflow may occur; if the parsing of information such as the context buffer and input / output signal table entries is abnormal, it will directly lead to chaotic software operation logic, or even cause equipment control failure. Therefore, the parsing quality of the .crt file information directly determines whether the electromechanical system application software can run normally and whether the scheduling is accurate, and is a key link to ensure the implementation of system functions.
[0033] .O files (including core algorithm data and standard algorithm data) are key algorithm support files in the development process of airborne embedded software for electromechanical systems. Their generation and application are closely related to configuration-based software design rules.
[0034] From the perspective of the generation scenario, the .O file is not created independently, but is generated in a dedicated integrated development environment (such as an IDE tool customized for aviation electromechanical equipment) for airborne embedded system design: developers first modularize and encapsulate the specific algorithms required by the electromechanical system (such as signal filtering algorithms and control decision algorithms), and then adapt and adjust the algorithm modules according to the unified rules of configuration software design (including algorithm interface format, parameter passing standard, data interaction protocol, etc.), and finally compile and generate the .O file, making it a logical package that conforms to the system specifications.
[0035] From a functional perspective, the .O file is the core algorithm support environment for the .crt file. During actual operation, the .crt file calls the corresponding algorithm modules in the .O file according to its defined logical rules. For example, when the .crt file specifies that "motor speed closed-loop control" logic needs to be executed, it will automatically associate with and call the .O file containing that control algorithm. The .O file then performs the specific algorithm calculations (such as calculating the corresponding control quantity based on the difference between the current speed and the target speed), and feeds the calculation results back to the .crt file, which then outputs them to the actuator according to preset rules. In short, the .O file provides "algorithmic computing power support" for the logic execution of the .crt file. The two work together to ensure the functional implementation of the electromechanical system application software. Without the algorithm support of the .O file, the logical rules defined in the .crt file cannot be executed, and the system cannot complete the preset control and monitoring tasks.
[0036] The debug signal interface device in an embedded computer is a hardware debugging device used to excite and receive hardwired signal outputs. Through this device, hardwired signals can be quickly injected or acquired. For example, by toggling a switch on the debug signal interface device, the position signal of the target aircraft under test can be measured to verify the correctness of its hardware design and internal channel design. In addition, the debug signal interface also has indicator lights that can receive control commands or other hardware output signals from the target aircraft under test. For example, the indicator lights can be used to determine the output result of the aircraft's integrated wheel load determination. When the indicator light is on, it can be considered that the aircraft wheel load is grounded; when the indicator light is off, it can be considered that the aircraft wheel load is in the air.
[0037] The debugging signal interface device has soft bus emulation capabilities, which can convert received Ethernet signals into soft bus signals such as AFDX, 1394B, and 429 and send them to the target machine under test, thereby connecting to the display simulation and excitation simulation of the digital simulation platform. In this way, the target machine has all the capabilities of hard-wired output, hard-wired input, and bus input / output, which can effectively support the development and debugging work of electromechanical software designers.
[0038] like Figure 2 As shown, through the interconnection of airborne software interface protocols, configurable embedded development tools, electromechanical system standard algorithm packages, electromechanical system control algorithm generation tools, embedded computers (debugging signal interface devices), excitation systems, and digital simulation display devices, the system is used to verify the matching and consistency of interface circuits for various types of sensor devices and terminal devices in the electromechanical system. It enables linkage functions with intelligent sensors and provides the ability to detect electrical parameters such as sensor voltage and current. It completes the rapid debugging and verification of the bus and interface of the airborne test piece, providing all the bus debugging resources and hard-wired excitation resources required by the electromechanical system, and realizing the simulation testing function for the control and management of the electromechanical subsystem.
[0039] In this embodiment, a computer device is provided, such as... Figure 3 As shown, it includes a memory 301, a processor 302, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method for constructing any of the above-mentioned electromechanical simulation environments.
[0040] Specifically, the computer device can be a computer terminal, a server, or a similar computing device.
[0041] In this embodiment, a computer-readable storage medium is provided, which stores a computer program that executes any of the above-described methods for constructing electromechanical simulation environments.
[0042] Specifically, computer-readable storage media include both permanent and non-permanent, removable and non-removable media, which can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer-readable storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable storage media do not include transient media, such as modulated data signals and carrier waves.
[0043] Based on the same inventive concept, this invention also provides an apparatus for constructing an electromechanical simulation environment, as described in the following embodiments. Since the principle by which the apparatus for constructing an electromechanical simulation environment solves the problem is similar to that of the method for constructing an electromechanical simulation environment, the implementation of the apparatus for constructing an electromechanical simulation environment can refer to the implementation of the method for constructing an electromechanical simulation environment, and repeated details will not be elaborated further. As used below, the terms "unit" or "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0044] Figure 4 This is a structural block diagram of a device for constructing an electromechanical simulation environment according to an embodiment of the present invention, such as... Figure 4As shown, it includes: a configuration description file generation module 401, an algorithm acquisition module 402, a system connection module 403, a hardwired data transmission module 404, and a simulation data transmission module 405. The structure is described below.
[0045] The configuration description file generation module 401 is used to generate a configuration description file through a configuration-based embedded development tool and burn the configuration description file to the embedded computer. The algorithm acquisition module 402 is used to control the algorithm generation tool through the electromechanical system, obtain the core algorithm data corresponding to the embedded computer from the airborne software interface protocol, package the core algorithm data and transmit it to the embedded computer, obtain standard algorithm data from the standard algorithm package of the electromechanical system, and burn the standard algorithm data to the embedded computer through the burning serial port of the embedded computer. The system connection module 403 is used to connect the excitation system to the airborne software interface protocol via Ethernet, and to connect the embedded computer to the excitation system via Ethernet; The hard-wired data transmission module 404 is used to transmit the status information of temperature sensors, pressure sensors, and switches, indicator lights, and buttons on the cockpit control board assembly to the embedded computer through the excitation system via the airborne software interface protocol. The simulation data transmission module 405 is used to receive simulation commands from the excitation system through the debugging signal interface device of the embedded computer, and to send the state simulation result data generated by the embedded computer to the excitation system through the debugging signal interface device.
[0046] In one embodiment, the configuration description file generation module includes: The parameter setting unit is used to set control scheduling sequence data, data output position, data output cycle and configuration parameter information in the configuration-based embedded development tool. The hardwired data acquisition unit is used to acquire input data from the airborne software interface protocol and determine the source of the input data, wherein the source of the input data includes the hydraulic system, landing gear system, fuel system, fire prevention system, de-icing system, power supply system, lighting system, environmental control system, and fire prevention and life-saving system; The standard algorithm acquisition unit is used to acquire the algorithm functions to be used from the standard algorithm package of electromechanical systems; The configuration parameter setting unit is used to generate a configuration description file based on the control scheduling sequence data, the data output position, the data output period, the configuration parameter information, the input data, the source of the input data, and the algorithm function.
[0047] In one embodiment, the configuration parameter setting unit is further configured to configure the table length, the number of device status parameters, the context buffer, the number of input / output signal table entries, and the data packet description table; the configuration table length is used to define the total number of data bytes in the configuration table corresponding to different simulation tasks; the number of device status parameters is used to define the total number of device status parameters that need to be monitored in the configuration table; the context buffer is used to store temporary data during software operation; the number of input / output signal table entries is used to count the specific number of entries for input / output signals; and the data packet description table is used to define the structure, encoding format, and parsing rules of data packets during data transmission.
[0048] In one embodiment, the algorithm acquisition module includes: The protocol parsing unit is used by the electromechanical system control algorithm generation tool to access and parse the airborne software interface protocol, and extract the corresponding set of dedicated algorithm functions from the airborne software interface protocol according to the control logic to be implemented by the embedded computer. The core algorithm generation unit is used to integrate and adapt the extracted set of dedicated algorithm functions at the code level according to the predefined algorithm interface format, parameter passing standard and data interaction protocol to generate dedicated core algorithm source code. The core algorithm compilation unit is used to compile the dedicated core algorithm source code to generate corresponding core algorithm data.
[0049] In one embodiment, the algorithm acquisition module further includes: A standard algorithm generation unit is used by the electromechanical system control algorithm generation tool to access the electromechanical system standard algorithm package; The standardized algorithm function call unit is used to retrieve and call standardized algorithm functions from the electromechanical system standard algorithm package. The standardized algorithm functions include motor speed control algorithm functions and temperature closed-loop regulation algorithm functions. The standard algorithm compilation unit is used to compile the called standardized algorithm functions into corresponding standard algorithm data.
[0050] In one embodiment, the algorithm acquisition module further includes: A connection unit is established to establish a physical connection between the electromechanical system control algorithm generation tool and the embedded computer via the programming serial port. The programming unit is used to transmit and program the compiled standard algorithm target file to the address range of the specified non-volatile memory in the embedded computer in the form of a data frame sequence through the programming serial port. The integrity verification unit is used to perform integrity verification on the burned data after the burning process is completed. The loading unit is used to dynamically load and execute the corresponding algorithm functions in the standard algorithm object file from the non-volatile memory by parsing the algorithm call logic defined in the configuration description file during the runtime of the embedded computer.
[0051] In one embodiment, the above-described apparatus further includes a simulation display module.
[0052] In one embodiment, the simulation display module includes: A connection unit is used to connect the digital simulation display device to the excitation system; The analog parameter transmission unit is used to input simulation parameters through the digital simulation display device and send the simulation parameters to the embedded computer through the excitation system. The simulation result data display unit is used to display the state simulation result data through the digital simulation display device.
[0053] The embodiments of the present invention achieve the following technical effects: By linking with digital simulation and combining it with the excitation and simulation display interface, this invention provides convenient, fast, and intuitive display and excitation for the software design of electromechanical integrated management systems, thereby improving the reliability and stability of the system. This embodiment of the invention provides a distributed integrated simulation platform aimed at the full digitization of electromechanical systems. It receives and simulates the state information of embedded target machines in electromechanical systems, supports the graphical development function of airborne embedded algorithms, and allows for the writing and encapsulation of algorithm packages. Through the running engine and graphical design, it realizes the development and design of electromechanical control algorithms and software, making application software development simple and convenient, and saving human resources.
[0054] Obviously, those skilled in the art should understand that the modules or steps of the above-described embodiments of the present invention can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular hardware and software combination.
[0055] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, various modifications and variations can be made to the embodiments of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for constructing an electromechanical simulation environment, characterized in that, include: A configuration description file is generated using a configuration-based embedded development tool, and then the configuration description file is burned to the embedded computer. Using an electromechanical system control algorithm generation tool, the core algorithm data corresponding to the embedded computer is obtained from the airborne software interface protocol, the core algorithm data is packaged and transmitted to the embedded computer, standard algorithm data is obtained from the electromechanical system standard algorithm package, and the standard algorithm data is written to the embedded computer through the programming serial port of the embedded computer. The excitation system is connected to the airborne software interface protocol via Ethernet, and the embedded computer is connected to the excitation system via Ethernet. The status information of temperature sensors, pressure sensors, and switches, indicator lights, and buttons on the cockpit control panel assembly is transmitted to the embedded computer through the excitation system via the airborne software interface protocol. The embedded computer receives simulation commands from the excitation system through its debug signal interface device, and sends the state simulation result data generated by the embedded computer to the excitation system through the debug signal interface device.
2. The method for constructing an electromechanical simulation environment as described in claim 1, characterized in that, Generate configuration description files using configuration-based embedded development tools, including: In the configurable embedded development tool, control scheduling order data, data output position, data output cycle, and configuration parameter information are set. The system obtains input data from the airborne software interface protocol and determines the source of the input data, wherein the source of the input data includes the hydraulic system, landing gear system, fuel system, fire prevention system, de-icing system, power supply system, lighting system, environmental control system, and fire prevention and life-saving system; Obtain the algorithm functions to be used from the standard algorithm package for electromechanical systems; Based on the control scheduling sequence data, the data output position, the data output period, the configuration parameter information, the input data, the source of the input data, and the algorithm function, a configuration description file is generated.
3. The method for constructing an electromechanical simulation environment as described in claim 2, characterized in that, The configuration parameter information includes: Configuration table length, number of device status parameters, context buffer, number of input / output signal table entries, and packet description table; The configuration table length is used to define the total number of data bytes in the configuration table corresponding to different simulation tasks; The number of device status parameters is used to define the total number of device status parameters that the configuration table needs to monitor; The context buffer is used to store temporary data during software execution; The number of input / output signal entries is used to count the specific number of entries for input / output signals. The data packet description table is used to define the structure, encoding format, and parsing rules of data packets during data transmission.
4. The method for constructing an electromechanical simulation environment as described in claim 1, characterized in that, Using an electromechanical system control algorithm generation tool, the core algorithm data corresponding to the embedded computer is obtained from the airborne software interface protocol, including: The electromechanical system control algorithm generation tool accesses and parses the airborne software interface protocol, and extracts the corresponding set of dedicated algorithm functions from the airborne software interface protocol according to the control logic that the embedded computer needs to implement. The extracted set of dedicated algorithm functions is integrated and adapted at the code level according to the predefined algorithm interface format, parameter passing standard and data interaction protocol to generate dedicated core algorithm source code. The dedicated core algorithm source code is compiled to generate the corresponding core algorithm data.
5. The method for constructing an electromechanical simulation environment as described in claim 1, characterized in that, Obtain standard algorithm data from the electromechanical system standard algorithm package, including: The electromechanical system control algorithm generation tool accesses the electromechanical system standard algorithm package; The standardized algorithm functions are retrieved and invoked from the electromechanical system standard algorithm package. The standardized algorithm functions include motor speed control algorithm functions and temperature closed-loop regulation algorithm functions. The called standardized algorithm function is compiled to generate the corresponding standard algorithm data.
6. The method for constructing an electromechanical simulation environment as described in claim 1, characterized in that, The standard algorithm data is programmed into the embedded computer via its programming serial port, including: Establish a physical connection between the electromechanical system control algorithm generation tool and the embedded computer via the programming serial port; The compiled standard algorithm target file is transmitted and burned into the address range of the specified non-volatile memory in the embedded computer in the form of a data frame sequence through the burning serial port. After the programming is complete, an integrity check is performed on the programmed data; During the operation of the embedded computer, the algorithm function in the corresponding standard algorithm object file is dynamically loaded from the non-volatile memory and executed by parsing the algorithm call logic defined in the configuration description file.
7. The method for constructing an electromechanical simulation environment according to any one of claims 1 to 6 further includes: Connect the digital simulation display device to the excitation system; Simulation parameters are input through the digital simulation display device and sent to the embedded computer through the excitation system. The state simulation result data is displayed through the digital simulation display device.
8. A device for constructing an electromechanical simulation environment, characterized in that, include: The configuration description file generation module is used to generate a configuration description file through a configuration-based embedded development tool and to burn the configuration description file to an embedded computer. The algorithm acquisition module is used to control the algorithm generation tool through the electromechanical system, obtain the core algorithm data corresponding to the embedded computer from the airborne software interface protocol, package the core algorithm data and transmit it to the embedded computer, obtain standard algorithm data from the standard algorithm package of the electromechanical system, and write the standard algorithm data to the embedded computer through the programming serial port of the embedded computer. The system connection module is used to connect the excitation system to the airborne software interface protocol via Ethernet, and to connect the embedded computer to the excitation system via Ethernet; The hard-wired data transmission module is used to transmit the status information of temperature sensors, pressure sensors, and switches, indicator lights, and buttons on the cockpit control board assembly to the embedded computer through the excitation system via the airborne software interface protocol. The simulation data transmission module is used to receive simulation commands from the excitation system through the debug signal interface device of the embedded computer, and to send the state simulation result data generated by the embedded computer to the excitation system through the debug signal interface device.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for constructing the electromechanical simulation environment according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that performs the method for constructing the electromechanical simulation environment according to any one of claims 1 to 7.