Heterogeneous system integration method, device and equipment based on plug-in development framework

Through the heterogeneous system integration method based on the plug-in development framework, the problems of communication efficiency, stability and interface consistency in heterogeneous system integration are solved, efficient, stable and flexible system integration is achieved, and the user experience and system adaptability are improved.

CN118445001BActive Publication Date: 2024-09-24NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410908436.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-24
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Existing heterogeneous system integration methods have problems in aspects such as insufficient system communication efficiency and responsiveness, poor stability, inconsistent interfaces, and difficulty in maintenance and upgrades, resulting in insufficient user experience and system adaptability.

Method used

Adopting a heterogeneous system integration method based on the plug-in development framework, by building an operation management mechanism, configuring communication interfaces, optimizing the plug-in development framework, and using UI embedding technology to present the data of third-party software programs in the user interface of the main program, and through automatic Inspection strategies realize automatic management and fault handling of the system.

Benefits of technology

It improves the communication efficiency and stability of the system, ensures the consistency and intuitiveness of the user interface, simplifies the maintenance and upgrade process, and enhances the flexibility and scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118445001B
    Figure CN118445001B
Patent Text Reader

Abstract

The present invention relates to a heterogeneous system integration method, device and equipment based on a plug-in development framework. The method comprises: using the plug-in development framework to construct an operation management mechanism for a third-party software program. The main program is started through the operation management mechanism to manage the process parameters of the third-party software program, so that the main program completes the configuration of the communication interface with the third-party software program. A communication status connection is established with the plug-in development framework according to the configured communication interface to obtain the process status. The plug-in development framework is optimized according to the process status and a preset self-check strategy to obtain a plug-in integrated heterogeneous framework. The plug-in integrated heterogeneous framework is loaded into the main program using UI embedding technology, so that the data of the third-party software program is presented in the user interface of the main program. The method can realize fast and flexible integration across systems and platforms, and provide a durable, stable, easy-to-maintain and upgrade integrated plug-in system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of heterogeneous system integration of simulation platforms, and in particular to a heterogeneous system integration method, device and equipment based on a plug-in development framework. Background Art

[0002] With the rapid development of information technology, heterogeneous system integration has become a major challenge in the industry. In scenarios where multiple independent and decentralized systems need to work together, how to achieve efficient integration and communication between different systems is a problem that current technology urgently needs to solve. Existing integration methods usually face the following challenges:

[0003] Insufficient system communication efficiency and responsiveness: Although the middleware provides a wealth of services and interfaces, it is still insufficient when dealing with large amounts of data and high-frequency interactions. Poor stability of the integrated system: The integrated system often lacks effective error handling and recovery mechanisms during operation, resulting in low overall stability. Inconsistent interface integration and user experience: Differences in interface styles and inconsistent operating logic between different systems lead to uneven user experience. Difficulty in maintenance and upgrades: Once the system integration is completed, subsequent maintenance and upgrades become extremely difficult, resulting in insufficient system adaptability and scalability. Summary of the invention

[0004] Based on this, it is necessary to provide a heterogeneous system integration method, device and equipment based on a plug-in development framework that is more efficient, stable, easy to use and low-cost in order to address the above technical problems.

[0005] A heterogeneous system integration method based on a plug-in development framework, the method comprising:

[0006] Use the plug-in development framework to build an operation management mechanism for third-party software programs.

[0007] The main program is started through the operation management mechanism to manage the process parameters of the third-party software program, so that the main program completes the communication interface configuration with the third-party software program.

[0008] Establish a communication status connection with the plug-in development framework according to the configured communication interface to obtain the process status.

[0009] The plug-in development framework is optimized according to the process status and the preset self-check strategy to obtain a plug-in integration heterogeneous framework.

[0010] The plug-in integrated heterogeneous framework is loaded into the main program using UI embedding technology so that the data of the third-party software program can be presented in the user interface of the main program.

[0011] In one embodiment, the method further includes: obtaining a simulation training plan formulated by a user, generating an underlying framework code according to the simulation training plan and a preset business scenario customization template, configuring interactive information of a development wizard by running the underlying framework code, and generating a plug-in development framework of a simulation platform according to the interactive information and the lifecycle management mechanism of the development wizard.

[0012] In one of the embodiments, it also includes: using the plug-in development framework of the simulation platform to build an operation management mechanism for the third-party software program, wherein the operation management mechanism includes: third-party software program loading, third-party software program uninstallation and third-party software program integrated control.

[0013] In one embodiment, it also includes: starting the main program to establish a communication connection with the third-party software program through the operation management mechanism and the JLINK protocol, so that the main program uses the API interface provided by DDS to manage the process parameters of the third-party software program and obtain the plug-in data information of the third-party software program. According to the plug-in data information, the communication interface with the plug-in development framework is configured.

[0014] In one of the embodiments, it also includes: after establishing a communication status connection with the plug-in development framework according to the configured communication interface, parsing the process parameters, and obtaining the process status of the third-party software program using a polling mechanism.

[0015] In one embodiment, it also includes: if the process state is abnormal and the self-check strategy is active termination, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a stop signal, restarts the main program to repair the plug-in data information, optimizes the plug-in development framework according to the repaired plug-in data information, and obtains a plug-in integrated heterogeneous framework. If the system state is abnormal and the self-check strategy is forced termination, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a forced termination signal, restarts the main program to repair the plug-in data information, optimizes the plug-in development framework according to the repaired plug-in data information, and obtains a plug-in integrated heterogeneous framework.

[0016] In one of the embodiments, it also includes: using UI embedding technology to embed the plug-in integrated heterogeneous framework into the container control of the main program, so that the third-party software program can establish a process communication connection with the main program according to the inter-process communication mechanism, and present the data of the third-party software program in the user interface of the main program.

[0017] A heterogeneous system integration device based on a plug-in development framework, the device comprising:

[0018] An operation management mechanism building module is used to build an operation management mechanism for third-party software programs using a plug-in development framework;

[0019] The communication interface configuration module is used to start the main program to manage the process parameters of the third-party software program through the operation management mechanism, so that the main program completes the communication interface configuration with the third-party software program;

[0020] The process status acquisition module is used to establish a communication status connection with the plug-in development framework according to the configured communication interface and obtain the process status;

[0021] The plug-in heterogeneous integration module is used to optimize the plug-in development framework according to the process status and the preset self-checking strategy to obtain the plug-in integration heterogeneous framework;

[0022] The UI integration module is used to load the plug-in integrated heterogeneous framework into the main program by adopting UI embedding technology, so that the data of the third-party software program can be presented in the user interface of the main program.

[0023] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0024] Use the plug-in development framework to build an operation management mechanism for third-party software programs;

[0025] The main program is started to manage the process parameters of the third-party software program through the operation management mechanism, so that the main program completes the configuration of the communication interface with the third-party software program;

[0026] Establish a communication status connection with the plug-in development framework according to the configured communication interface to obtain the process status;

[0027] The plug-in development framework is optimized according to the process status and the preset self-checking strategy to obtain a plug-in integration heterogeneous framework;

[0028] The plug-in integrated heterogeneous framework is loaded into the main program using UI embedding technology so that the data of the third-party software program can be presented in the user interface of the main program.

[0029] The above-mentioned heterogeneous system integration method, device and equipment based on the plug-in development framework realize the process management of the third-party software program through the plug-in development framework, ensure that the main program can correctly configure the interface for communication with the third-party software program, and manage these configurations in real time, realize the automatic management of the third-party software program, reduce manual intervention and improve efficiency. Then, establish a communication connection with the third-party software program, optimize the plug-in development framework according to the process status and self-check strategy to ensure its stability and performance, so that the main program can monitor the running status of the third-party software program in real time, and the optimization and integration of the plug-in development framework make the system have better flexibility and scalability, and can easily add new functional modules and plug-ins, and make corresponding feedback and processing according to the situation. Finally, by using UI embedding technology, the data of the third-party software program is presented in the user interface of the main program, which ensures the consistency and intuitiveness of user operations, improves user satisfaction, and realizes the fast, stable and flexible integration of heterogeneous systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flowchart of a heterogeneous system integration method based on a plug-in development framework in one embodiment;

[0031] Figure 2 A schematic diagram of a process of a framework loading a third-party EXE program in an embodiment;

[0032] Figure 3 A schematic diagram of a process of uninstalling a third-party EXE program by a framework in an embodiment;

[0033] Figure 4 A schematic diagram of a process of launching a third-party EXE program loaded by a framework in an embodiment;

[0034] Figure 5 A schematic diagram of a process of a framework loading a third-party EXE program heartbeat in an embodiment;

[0035] Figure 6 A schematic diagram of a process of integrating a third-party EXE program into a framework in one embodiment;

[0036] Figure 7 It is a structural block diagram of a heterogeneous system integration device based on a plug-in development framework in one embodiment;

[0037] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0039] In one embodiment, Figure 1 As shown, a heterogeneous system integration method based on a plug-in development framework is provided, comprising the following steps:

[0040] Step 102, using the plug-in development framework to build an operation management mechanism for the third-party software program.

[0041] Specifically, the simulation application platform uses a plug-in development framework to build an operation management mechanism for third-party software programs. The mechanism is used to manage the functions of the plug-in interaction interface, including the loading process function, unloading process function and process integration control function of the third-party software program, wherein the integration control function includes a monitoring process function and an external process management function.

[0042] Step 104 , starting the main program through the operation management mechanism to manage the process parameters of the third-party software program, so that the main program completes the configuration of the communication interface with the third-party software program.

[0043] Specifically, the plug-in function of the system is initialized, and the main program runs the loading process function to parse the process parameters of the received third-party software program. The process parameters can be ishikawa command lines, environment variables, etc., and then the parsed process parameters are used to configure and start the third-party software program.

[0044] Furthermore, a new external process is created using the system call fork or exec function. The plug-in development framework needs to record the PID (i.e., process ID) and other related information of the external process. The main application and the third-party software program establish a communication connection through the API interface provided by DDS, and combine the JLINK communication protocol to achieve real-time data manipulation and synchronization between the two. The main program publishes the data to be sent to the corresponding topic, and the third-party software program subscribes to these subjects to receive data, thereby completing the communication interface configuration with the third-party software program.

[0045] Step 106: Establish a communication status connection with the plug-in development framework according to the configured communication interface to obtain the process status.

[0046] Specifically, a communication status monitoring mechanism is established based on the configured communication interface and plug-in development framework, and the mechanism includes heartbeat detection and fault handling.

[0047] Furthermore, the main application periodically sends heartbeat packets to the third-party software program. After receiving the heartbeat packet, the third-party program replies to confirm, and the main application obtains the process status according to the reply signal. If no reply is received within a certain period of time, it is considered that the third-party program may have a fault or a connection interruption. When a third-party program fault or connection interruption is detected, the main application can take corresponding fault handling measures, such as reconnection, alarm, etc.

[0048] Step 108, optimizing the plug-in development framework according to the process status and the preset self-checking strategy to obtain a plug-in integrated heterogeneous framework.

[0049] The self-check strategy includes detection mechanism and restart mechanism.

[0050] Specifically, by monitoring the running status and log information of the third-party software program, detect whether there is a crash or anomaly. When a crash is detected, start the self-check mechanism to check the system status. If the problem can be repaired, repair it and resume the program; if the problem cannot be repaired, start the restart mechanism.

[0051] Furthermore, the plug-in of the main application first tries to shut down the external process by sending a specific signal (such as SIGTERM), waits for the external process to respond to the stop signal and exit normally, restarts the system according to the restart mechanism (such as immediate restart, delayed restart, restart number limit, etc.), and updates the process parameters at the same time, optimizes the plug-in development framework, and obtains a plug-in integration heterogeneous framework.

[0052] Furthermore, if the external process fails to respond to the stop signal or does not exit within the specified time, the main application's plug-in should use forced means (such as sending a SIGKILL signal) to terminate the external process, restart the system according to the restart mechanism, and update the process parameters at the same time, optimize the plug-in development framework, and obtain a plug-in integration heterogeneous framework.

[0053] Step 110, using UI embedding technology to load the plug-in integrated heterogeneous framework into the main program, so that the data of the third-party software program is presented in the user interface of the main program.

[0054] On the Windows platform, you can use the Windows window handle (HWND) to embed external windows; in cross-platform frameworks such as Qt, you can use the embedding function of QWindow or QWidget.

[0055] Specifically, in the main application, you need to create a container control for embedding the external process UI. This container control should be flexible enough to accommodate external UIs of different sizes and shapes. Use the platform plug-in to load the external process and ensure that the external process can start and run its UI normally. By selecting an IPC mechanism, establish a communication connection between the main application and the external process, allowing the main application to send instructions to the external process and receive status updates.

[0056] Furthermore, using UI embedding technology, the window handle or similar identifier of the external UI is obtained and associated with the container control, so that the UI of the external process is embedded in the container control of the main application, and then the interface of the third-party software program is presented in a native form in the main application.

[0057] In the above-mentioned heterogeneous system integration method based on the plug-in development framework, the plug-in development framework is used to realize the process management of the third-party software program, ensuring that the main program can correctly configure the interface for communication with the third-party software program, and manage these configurations in real time, so as to realize the automated management of the third-party software program, reduce manual intervention and improve efficiency. Then, a communication connection with the third-party software program is established, and the plug-in development framework is optimized according to the process status and self-checking strategy to ensure its stability and performance, so that the main program can monitor the running status of the third-party software program in real time. The optimization and integration of the plug-in development framework make the system have better flexibility and scalability, and new functional modules and plug-ins can be easily added, and corresponding feedback and processing can be made according to the situation. Finally, the data of the third-party software program is presented in the user interface of the main program by using UI embedding technology, which ensures the consistency and intuitiveness of user operations, improves user satisfaction, and realizes the fast, stable and flexible integration of heterogeneous systems.

[0058] In one embodiment, a simulation training plan prepared by a user is obtained. The underlying framework code is generated according to the simulation training plan and a preset business scenario customization template, and the interactive information of the development wizard is configured by running the underlying framework code. The plug-in development framework of the simulation platform is generated according to the interactive information and the life cycle management mechanism of the development wizard.

[0059] In one embodiment, a plug-in development framework of a simulation platform is used to construct an operation management mechanism for a third-party software program, wherein the operation management mechanism includes: third-party software program loading, third-party software program uninstallation, and third-party software program integrated control.

[0060] In one embodiment, the main program is started through the operation management mechanism and the JLINK protocol to establish a communication connection with the third-party software program, so that the main program uses the API interface provided by DDS to manage the process parameters of the third-party software program and obtain the plug-in data information of the third-party software program. The communication interface with the plug-in development framework is configured according to the plug-in data information.

[0061] It is worth mentioning that the plugin interface will contain functions for loading, monitoring and managing external processes. The interface should have the following features:

[0062] Initialization: Plug-in initialization function, used to set the initial state of the plug-in;

[0063] Loading process: providing the parameters required to start the process and starting the external process;

[0064] Monitor processes: Regularly check the status of external processes, including whether they are running, resource usage, etc.

[0065] Stop process: safely stop the external process and release related resources;

[0066] Recover Process: Attempt to restart a process when it crashes or exits abnormally.

[0067] Loading an external process:

[0068] Parsing parameters: The plug-in configures and starts external processes based on the passed parameters (such as command lines, environment variables, etc.);

[0069] Create a process: Use system calls (such as fork and exec) to create a new external process;

[0070] Record process information: The plug-in needs to record the PID (process ID) and other related information of the external process for subsequent management and monitoring.

[0071] Monitor process status:

[0072] Polling mechanism: The plug-in periodically polls the status of the external process, which can be achieved by checking whether the PID exists, sending signals, etc.

[0073] Event monitoring: Use the mechanisms provided by the system (such as Unix signals, Windows events) to monitor process status changes;

[0074] Logging: Record process status changes, error messages, etc. for subsequent analysis and troubleshooting.

[0075] Stop an external process:

[0076] Send stop signal: The plugin first tries to shut down the external process gracefully by sending a specific signal (such as SIGTERM);

[0077] Wait for process to exit: The plugin waits for the external process to respond to the stop signal and exit normally;

[0078] Forced termination: If the external process fails to respond to a stop signal or does not exit within the specified time, the plugin should use forceful means (such as sending a SIGKILL signal) to terminate the process.

[0079] To resume an external process:

[0080] Crash detection: The plug-in uses a monitoring mechanism to detect whether the external process crashes or exits abnormally;

[0081] Automatic restart: The plug-in automatically restarts crashed external processes according to the preset restart strategy (such as immediate restart, delayed restart, restart limit, etc.).

[0082] In addition, when integrating DDS into the communication framework, first, you need to define the topics of the data that needs to be exchanged between the main application and the third-party program. These topics will serve as channels for data publishing. The main application publishes the data that needs to be sent to the corresponding topics, and the third-party program subscribes to these topics to receive the data. In order to ensure the correct transmission of data, the data needs to be encoded and decoded. DDS usually supports multiple data formats, which can be selected as needed. The main application and the third-party program establish a connection through the API provided by DDS to realize data publishing and subscription. In addition, the JLINK communication mechanism is integrated to ensure fast and reliable transmission of data between the application and the third-party program. The message distribution process is optimized and the communication delay of the system is reduced.

[0083] In one of the embodiments, after establishing a communication status connection with the plug-in development framework according to the configured communication interface, the process parameters are parsed, and the process status of the third-party software program is obtained using a polling mechanism.

[0084] It is worth noting that since the external process and the main application run in different process spaces, an inter-process communication (IPC) mechanism is needed to implement data exchange and instruction delivery between them. Common IPC mechanisms include shared memory, message queues, sockets, etc. When selecting an IPC mechanism, factors such as communication efficiency, security, and cross-platform compatibility need to be considered.

[0085] In one embodiment, if the process state is abnormal and the self-check strategy is to terminate actively, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a stop signal, restarts the main program to repair the plug-in data information, optimizes the plug-in development framework according to the repaired plug-in data information, and obtains a plug-in integrated heterogeneous framework. If the system state is abnormal and the self-check strategy is to terminate forcibly, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a forced termination signal, restarts the main program to repair the plug-in data information, optimizes the plug-in development framework according to the repaired plug-in data information, and obtains a plug-in integrated heterogeneous framework.

[0086] In one of the embodiments, UI embedding technology is used to embed the plug-in integrated heterogeneous framework into the container control of the main program, so that the third-party software program can establish a process communication connection with the main program according to the inter-process communication mechanism, and present the data of the third-party software program in the user interface of the main program.

[0087] In one embodiment, if Figure 2 As shown, the process of the framework loading a third-party EXE program is provided. The specific steps are as follows:

[0088] Step 1: The simulation platform starts the plug-in development framework;

[0089] Step 2: Plugin discovery and identification. First, the plugin development framework scans the specified plugin directory or path to find all available plugins. This is done by reading the file list in the directory and identifying plugin files that conform to specific naming rules or file formats. The framework identifies the plugin type, version, and other related information based on the plugin's metadata or descriptor.

[0090] Step 3: Plugin verification and loading preparation. After discovering the plugin, the framework will verify it to ensure its integrity and compatibility. This may include checking the plugin's signature, version, dependencies, etc. At the same time, the framework will prepare the resources required to load the plugin, such as allocating memory, initializing necessary variables, etc.

[0091] Step 4: Plug-in loading. Once the plug-in is verified and ready to be loaded, the framework will use a specific loading mechanism to load the plug-in into memory. This involves loading a dynamic link library (DLL) or a shared object (SO), depending on the operating system and programming environment. During the loading process, the framework will parse the plug-in code and link it to the framework's own code to enable interaction between the plug-in and the framework.

[0092] Step 5: Plug-in initialization and registration. After loading, the framework will call the plug-in initialization function to initialize the plug-in. This includes setting the initial state of the plug-in, allocating resources, creating necessary objects, etc. At the same time, the plug-in will register the functions or services it provides with the framework so that the framework can call these functions when needed;

[0093] Step 6: Follow the above steps to load the platform plug-in, interface plug-in, plug-in function plug-in, and framework plug-in function plug-in. After completion, the plug-in function plug-in will determine the EXE program and specify the specific information of the third-party EXE program to be loaded, including its path, name, and required parameters. This information is usually specified by the user or stored in the configuration file for the plug-in to read;

[0094] Step 7: Verify the EXE program; before loading the EXE program, the framework will verify the program to ensure its integrity and security. This includes checking the signature, size, modification time, etc. of the EXE file to prevent malware or damaged files from being loaded;

[0095] Step 8: Prepare the loading environment. The framework prepares the necessary environment for loading the EXE program, including setting the working directory of the process, creating temporary files or directories, and allocating necessary system resources.

[0096] Step 9: Start the EXE program process and use the operating system's process creation mechanism to start the third-party EXE program. This usually involves calling the system API (such as the CreateProcess function in Windows) and passing the EXE program's path, command line parameters and other necessary information;

[0097] Step 10: Monitor the EXE program status. Once the EXE program process is started, the framework will monitor its status, including whether the process is successfully started, whether it runs normally, whether there are errors, etc. This is achieved by reading the operating system's process information or using an inter-process communication mechanism;

[0098] Step 11: Establish communication with the EXE program. In order to ensure that the framework can interact with the EXE program, a communication mechanism needs to be established. This includes using named pipes, sockets, shared memory, etc. to implement inter-process communication (IPC). The choice of communication mechanism depends on the specific application scenario and platform requirements;

[0099] Step 12, calling the function of the EXE program. Once the communication is established, the framework can call the function or interface provided by the EXE program through the IPC mechanism. This involves sending a request or command to the EXE program and receiving the result or response returned by it. The specific calling method depends on the API or protocol provided by the EXE program;

[0100] Step 13: Process the output and response of the EXE program. The framework will receive and process the output and response of the EXE program, including parsing the returned data, handling errors or exceptions, updating the user interface, etc. Depending on the functions of the EXE program and the requirements of the framework, further data processing or business logic implementation may be required;

[0101] In one embodiment, if Figure 3 As shown, the process of framework uninstalling third-party EXE programs is provided. The specific steps are as follows:

[0102] Step 1: Terminate the EXE program. Before uninstalling a third-party EXE program, you must first ensure that the program has stopped running. The framework will check the process status of the EXE program. If it finds that the program is still running, it will send a termination signal or call the corresponding API to terminate the process. This usually involves closing the program window, terminating the process thread, etc. to ensure that the program is completely exited.

[0103] Step 2: Release resources. After the program exits, the framework needs to release the resources previously allocated to the EXE program. This includes closing file handles, releasing memory, disconnecting network connections, etc. Releasing resources is an important step to ensure system stability and avoid resource leaks.

[0104] Step 3: Disconnect the communication connection. If a communication connection (such as a named pipe, socket, etc.) is established between the framework and the EXE program, these connections need to be disconnected before uninstalling the program. This involves closing the connection handle, releasing the connection resources, etc., to ensure that the communication channel is closed and the resources are released;

[0105] Step 4: Clean up temporary files and directories. During the running of the EXE program, some temporary files or directories may be generated. The framework needs to clean up these temporary files to avoid occupying disk space or causing other potential problems. Cleanup operations may include deleting temporary folders, deleting log files, etc.

[0106] Step 5: Update configuration and registry (if necessary). If the installation or operation of the EXE program involves the modification of the system configuration or registry, the framework needs to update these configuration and registry items when uninstalling the program. This may include deleting registry key values, restoring system configuration, etc. to ensure the integrity and consistency of the system.

[0107] Step 6: Record the uninstallation log, which records the log of uninstalling the EXE program. The log contains the uninstallation time, uninstallation program information, any errors or warnings during the uninstallation process, etc. This helps to provide necessary information in subsequent troubleshooting or auditing;

[0108] Step 7, the uninstallation is completed. The framework sends a notification of the completion of the uninstallation to the user or the system, informing the user or administrator that the EXE program has been successfully uninstalled.

[0109] In one embodiment, if Figure 4 As shown in the figure, the process of loading a third-party EXE program in the framework is provided. The specific steps are as follows:

[0110] Step 1: Capture crash exceptions. The framework needs to be able to capture the exceptions that caused the EXE program to crash. This is usually achieved through an exception handling mechanism, such as using a try-catch block or setting an exception listener in the program. Once the crash exception is captured, the framework can respond immediately and take appropriate measures;

[0111] Step 2: Record exception information. After catching an exception, the framework will record relevant exception information, including the type of exception, the time of occurrence, the stack trace of the exception, etc. This information is very important for subsequent troubleshooting and debugging, and can help developers quickly locate the problem;

[0112] Step 3: Clean up resources. Before restarting the EXE program, the framework needs to clean up the resources previously allocated to the program. This includes closing file handles that may still be open, releasing memory, disconnecting network connections, etc. The purpose of cleaning up resources is to avoid resource leaks and potential conflicts.

[0113] Step 4: Terminate the crashed EXE process. If the EXE process is still running due to the crash, the framework needs to terminate the process. This can be achieved by sending a termination signal or using the system API. Ensure that the crashed process exits completely to avoid further impact on the system.

[0114] Step 5: Try to restart the EXE program. After cleaning up resources and terminating the process, the framework will try to restart the EXE program. This usually involves restarting the program process and reestablishing the communication connection with the framework. The framework will ensure that the program is started in the correct order and configuration to ensure that it can run normally.

[0115] Step 6: Monitor the program status. Once the EXE program is restarted, the framework will continue to monitor its status. This includes checking whether the program is successfully started, whether it runs normally, whether there are new exceptions, etc. By monitoring the program status, the framework can detect and handle potential problems in a timely manner;

[0116] Step 7: Restore user operations or tasks. If the user is performing certain operations or tasks when the EXE program crashes, the framework needs to try to restore these operations or tasks. This may involve reloading user data, restoring interface status, retrying failed operations, etc. Ensure that user operations and tasks can be seamlessly connected to improve user experience;

[0117] Step 8: Notify the user or administrator. Finally, the framework sends a notification to the user or administrator to inform them that the EXE program has been restarted and resumed normal operation. The notification may include the reason for the crash, the time of the restart, and any matters that need attention. This helps to enhance the user's trust and satisfaction with the system.

[0118] It is worth mentioning that the introduction of heartbeat detection and self-check restart strategy not only improves the system's self-recovery ability to program anomalies, but also reduces the problem diagnosis time through optimized fault diagnosis mechanism. This mechanism enables the system to respond quickly when faced with program crashes or other operating anomalies, ensuring the continuity and availability of the system.

[0119] In one embodiment, if Figure 5 As shown, the framework provides a process for loading the heartbeat of a third-party EXE program. The specific steps are as follows:

[0120] Step 1: Start the heartbeat detection timing task;

[0121] Step 2: Receive heartbeat signal;

[0122] Step 3: Regularly detect the difference between the last heartbeat time and the current time;

[0123] Step 4: If the difference is greater than the set threshold, it is considered that the third-party EXE has stopped running and the re-pull process is executed.

[0124] In one embodiment, if Figure 6 As shown, the process of loading a third-party EXE program integration in the framework is provided. After starting the third-party program integration, the system currently running the program is determined. If the system is a Windows system, the Windows window handle (HWND) is used to embed the external window, and the interface image content of the third-party program is displayed on the user interface of the main application; if the system is a Linux system, the embedding function of QWidget is used to embed the external window, and the interface image content of the third-party program is displayed on the user interface of the main application. The specific steps are as follows:

[0125] Step 1: Determine the system on which the program is currently running. Before integrating a third-party program, you need to determine the type of system on which the program is currently running. This can be done by checking operating system-specific environment variables, API calls, or library functions. For example, on Windows, you can check the version information returned by the GetWindowsVersion function; on Linux, you can check the kernel name returned by the uname system call;

[0126] Step 2: Select UI embedding technology based on system type. Before integrating a third-party program, you need to determine the system type on which the program is currently running. This can be done by checking operating system-specific environment variables, API calls, or library functions. For example, on Windows, you can check the version information returned by the GetWindowsVersion function; on Linux, you can check the kernel name returned by the uname system call;

[0127] Step 3: Select UI embedding technology based on the system type. On Windows, you can use the window handle (HWND) to embed an external window. This usually involves the following steps:

[0128] 1. Get the window handle of the third-party program: Find and get the handle of the third-party program window by calling Windows API functions (such as FindWindow or EnumWindows);

[0129] 2. Set the parent window relationship: Use the SetParent function to set the third-party program's window as a child window of your main program window. In this way, the third-party program's window will be displayed on your main program interface;

[0130] 3. Adjust position and size: Adjust the position and size of the third-party program window on the main program interface as needed to ensure that it can be embedded and displayed correctly;

[0131] 4. Handle message delivery: Ensure that messages between the main program and third-party programs are delivered and processed correctly so that they can work together and respond to user operations.

[0132] On Linux, due to the diversity of UI systems (such as GTK, Qt, etc.), you may need to use the embedding function specific to the UI framework. Taking Qt as an example, using the embedding function of QWidget can be done by following the steps below:

[0133] 1. Create an embedded container: Use the Qt framework to create a QWidget or similar container control in your main program as the embedding point of the third-party program window;

[0134] 2. Integrate third-party programs: Integrate them into your main program according to the API or protocol provided by the third-party program. This may involve calling the library function of the third-party program or establishing a communication connection with it;

[0135] 3. Embed window: Use Qt's embedding function (such as QWidget::embed or similar mechanisms) to embed the third-party program's window into the previously created container. This usually requires passing the third-party program's window handle or identifier to Qt's embedding function;

[0136] 4. Layout and style: Adjust the layout and style of the embedded window to ensure that it is consistent with the interface style of the main program and provide a good user experience.

[0137] It is worth noting that in order to ensure the consistency and integrity of the user experience, it is necessary to implement the transmission of events between the main application and the external process. This includes mouse events, keyboard events, touch events, etc. The main application should be able to capture these events and forward them to the external process as needed. In order to keep the interaction between the main application and the external process synchronized, a mechanism needs to be implemented to ensure that the status updates of both parties can be reflected in the UI in real time. This can be achieved through regular updates or event-triggered synchronization. After implementing UI embedding, some optimization and debugging work may be required to ensure the stability and performance of the integration effect. This may include adjusting the frequency and method of IPC communication, optimizing UI rendering performance, etc. As a result, not only the user's operating experience is improved, but also the developer's handling of interface consistency is simplified.

[0138] It should be understood that although Figure 1-Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0139] In one embodiment, Figure 7 As shown, a heterogeneous system integration device based on a plug-in development framework is provided, including: an operation management mechanism construction module 702, a communication interface configuration module 704, a process status acquisition module 706, a plug-in heterogeneous integration module 708 and a UI integration module 710, wherein:

[0140] The operation management mechanism construction module 702 is used to construct the operation management mechanism of the third-party software program using the plug-in development framework;

[0141] The communication interface configuration module 704 is used to start the main program to manage the process parameters of the third-party software program through the operation management mechanism, so that the main program completes the communication interface configuration with the third-party software program;

[0142] The process status acquisition module 706 is used to establish a communication status connection with the plug-in development framework according to the configured communication interface and acquire the process status;

[0143] The plug-in heterogeneous integration module 708 is used to optimize the plug-in development framework according to the process status and the preset self-checking strategy to obtain the plug-in integration heterogeneous framework;

[0144] The UI integration module 710 is used to load the plug-in integrated heterogeneous framework into the main program by using UI embedding technology, so that the data of the third-party software program can be presented in the user interface of the main program.

[0145] In one embodiment, the plug-in heterogeneous integration module 708 is also used for, if the process state is abnormal and the self-check strategy is active termination, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a stop signal, restarts the main program to repair the plug-in data information, optimizes the plug-in development framework according to the repaired plug-in data information, and obtains the plug-in integrated heterogeneous framework. If the system state is abnormal and the self-check strategy is forced termination, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a forced termination signal, restarts the main program to repair the plug-in data information, optimizes the plug-in development framework according to the repaired plug-in data information, and obtains the plug-in integrated heterogeneous framework.

[0146] For the specific definition of the heterogeneous system integration device based on the plug-in development framework, please refer to the definition of the heterogeneous system integration method based on the plug-in development framework above, which will not be repeated here. Each module in the above-mentioned heterogeneous system integration device based on the plug-in development framework can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0147] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a heterogeneous system integration method based on a plug-in development framework is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0148] Those skilled in the art will understand that Figure 7-Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0149] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0150] Use the plug-in development framework to build an operation management mechanism for third-party software programs.

[0151] The main program is started through the operation management mechanism to manage the process parameters of the third-party software program, so that the main program completes the communication interface configuration with the third-party software program.

[0152] Establish a communication status connection with the plug-in development framework according to the configured communication interface to obtain the process status.

[0153] The plug-in development framework is optimized according to the process status and the preset self-check strategy to obtain a plug-in integration heterogeneous framework.

[0154] The plug-in integrated heterogeneous framework is loaded into the main program using UI embedding technology so that the data of the third-party software program can be presented in the user interface of the main program.

[0155] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0156] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0157] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A heterogeneous system integration method based on a plug-in development framework, characterized in that: The method comprises: The plug-in development framework is used to build the operation management mechanism of the third-party software program; the simulation application platform uses the plug-in development framework to build the operation management mechanism of the third-party software program, which is used to manage the functions of the plug-in interaction interface, including the loading process function, unloading process function and process integration control function of the third-party software program, wherein the integration control function includes the monitoring process function and the management external process function; The main program is started through the operation management mechanism to manage the process parameters of the third-party software program, so that the main program completes the configuration of the communication interface with the third-party software program; the main program is started through the operation management mechanism and the JLINK protocol to establish a communication connection with the third-party software program, so that the main program manages the process parameters of the third-party software program using the API interface provided by DDS, and obtains the plug-in data information of the third-party software program; The main program configures a communication interface with the plug-in development framework according to the plug-in data information; the communication interface includes functions for loading, monitoring and managing external processes, and has the following functions: Initialization: Plug-in initialization function, used to set the initial state of the plug-in; Loading process: providing the parameters required to start the process and starting the external process; Monitor processes: Regularly check the status of external processes, including whether they are running and resource usage; Stop process: safely stop the external process and release related resources; Recover process: When a process crashes or exits abnormally, try to restart the process; Establishing a communication status connection with the plug-in development framework according to the configured communication interface to obtain the process status; Optimizing the plug-in development framework according to the process status and a preset self-checking strategy to obtain a plug-in integrated heterogeneous framework; The plug-in integrated heterogeneous framework is loaded into the main program by adopting UI embedding technology, so that the data of the third-party software program is presented in the user interface of the main program.

2. The method according to claim 1, characterized in that Before the step of using the plug-in development framework to build the operation management mechanism of the third-party software program, it also includes: Obtain the simulation training plan formulated by the user; Generate underlying framework code according to the simulation training program and a preset business scenario customized template, and configure interactive information of the development wizard by running the underlying framework code; A plug-in development framework for the simulation platform is generated according to the interaction information and the lifecycle management mechanism of the development wizard.

3. The method according to claim 1, characterized in that Use the plug-in development framework to build an operation management mechanism for third-party software programs, including: The plug-in development framework of the simulation platform is used to construct an operation management mechanism for third-party software programs, wherein the operation management mechanism includes: third-party software program loading, third-party software program unloading and third-party software program integrated control.

4. The method according to claim 3, characterized in that Establishing a communication status connection with the plug-in development framework according to the configured communication interface to obtain the process status includes: After establishing a communication status connection with the plug-in development framework according to the configured communication interface, the process parameters are parsed, and the process status of the third-party software program is obtained using a polling mechanism.

5. The method according to claim 4, characterized in that The plug-in development framework is optimized according to the process state and the preset self-check strategy to obtain a plug-in integration heterogeneous framework, including: If the process state is abnormal and the self-check strategy is to terminate actively, the repair function plug-in in the plug-in development framework shuts down the third-party software program by sending a stop signal, restarts the main program to repair the plug-in data information, and optimizes the plug-in development framework according to the repaired plug-in data information to obtain a plug-in integrated heterogeneous framework; If the system status is abnormal and the self-check strategy is forced termination, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a forced termination signal, restarts the main program to repair the plug-in data information, and optimizes the plug-in development framework according to the repaired plug-in data information to obtain a plug-in integrated heterogeneous framework.

6. The method according to claim 5, characterized in that The plug-in integrated heterogeneous framework is loaded into the main program by using UI embedding technology so that the data of the third-party software program is presented in the user interface of the main program, including: The plug-in integrated heterogeneous framework is embedded into the container control of the main program by using UI embedding technology, so that the third-party software program establishes a process communication connection with the main program according to the inter-process communication mechanism, and presents the data of the third-party software program in the user interface of the main program.

7. A heterogeneous system integration device based on a plug-in development framework, characterized in that: The device comprises: The operation management mechanism construction module is used to construct the operation management mechanism of the third-party software program by using the plug-in development framework; the simulation application platform uses the plug-in development framework to construct the operation management mechanism of the third-party software program, and the mechanism is used to manage the functions of the plug-in interaction interface, including the loading process function, the unloading process function and the process integration control function of the third-party software program, wherein the integration control function includes the monitoring process function and the management external process function; A communication interface configuration module, used to start the main program through the operation management mechanism to manage the process parameters of the third-party software program, so that the main program completes the communication interface configuration with the third-party software program; start the main program through the operation management mechanism and the JLINK protocol to establish a communication connection with the third-party software program, so that the main program uses the API interface provided by DDS to manage the process parameters of the third-party software program and obtain the plug-in data information of the third-party software program; the main program configures the communication interface with the plug-in development framework according to the plug-in data information; The communication interface includes functions for loading, monitoring and managing external processes and has the following features: Initialization: Plug-in initialization function, used to set the initial state of the plug-in; Loading process: providing the parameters required to start the process and starting the external process; Monitor processes: Regularly check the status of external processes, including whether they are running and resource usage; Stop process: safely stop the external process and release related resources; Recover process: When a process crashes or exits abnormally, try to restart the process; A process status acquisition module, used to establish a communication status connection with the plug-in development framework according to the configured communication interface and acquire the process status; A plug-in heterogeneous integration module, used to optimize the plug-in development framework according to the process state and a preset self-checking strategy to obtain a plug-in integrated heterogeneous framework; The UI integration module is used to load the plug-in integrated heterogeneous framework into the main program by adopting UI embedding technology, so that the data of the third-party software program can be presented in the user interface of the main program.

8. The device according to claim 7, characterized in that The plug-in heterogeneous integration module is further used for, if the process state is abnormal and the self-check strategy is active termination, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a stop signal, restarts the main program to repair the plug-in data information, optimizes the plug-in development framework according to the repaired plug-in data information, and obtains a plug-in integrated heterogeneous framework; If the system status is abnormal and the self-check strategy is forced termination, the repair function plug-in in the plug-in development framework closes the third-party software program by sending a forced termination signal, restarts the main program to repair the plug-in data information, and optimizes the plug-in development framework according to the repaired plug-in data information to obtain a plug-in integrated heterogeneous framework.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.