A method for constructing a multi-process simulation test system
By using a multi-process simulation testing system architecture, the operation control system testing module of the maglev transportation system is divided according to real-time performance, model and interface separation, and functional division strategies. This solves the problems of high development cost and low stability in existing technologies, and realizes efficient test system construction and rapid iteration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HIWING TECH ACAD OF CASIC
- Filing Date
- 2022-03-09
- Publication Date
- 2026-05-22
AI Technical Summary
In existing technologies, the testing of the operation control system of maglev transportation systems relies on the joint commissioning and testing of online running vehicles. The development and secondary development of multi-threaded simulation test systems are costly and inefficient, and have a significant impact on the stability of the test system architecture.
A multi-process simulation test system architecture is adopted, and the functional modules of the simulation test system are divided according to the real-time principle, the model and interface separation strategy, and the interface function division strategy. Non-real-time functional processes, model simulation functional processes, periodic and command-triggered interface communication processes are constructed to form a loosely coupled test system.
It improves the architectural stability and development efficiency of the simulation testing system, reduces the risk of online joint debugging and testing, enables rapid problem localization and iterative updates, and reduces development costs.
Smart Images

Figure CN116775203B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of test system architecture construction technology, and in particular to a method for constructing a multi-process simulation test system. Background Technology
[0002] The ultra-high-speed low-vacuum pipeline maglev transportation system is characterized by its operation within a low-vacuum pipeline and the high-speed movement of the maglev train. The operation control system is responsible for the comprehensive functions of operation control and safety protection of the maglev train system. This operation control system comprises three subsystems: a central operation control system, a regional operation control system, and an onboard operation control system. Taking the onboard operation control system as an example, it is mainly responsible for monitoring the status of onboard equipment, operation control, and train protection.
[0003] Testing a motion control system requires simulating the functions and interface logic of controller systems, actuators, and sensor systems from other subsystems connected to the motion control system. This simulation satisfies the functional requirements of peripheral equipment operating within the motion control system, enabling comprehensive testing of its functions, interfaces, and performance. Taking a vehicle-mounted motion control system as an example, it requires simulating the functions and interface logic of controllers such as the vehicle power supply system, vehicle positioning and speed measurement system, support wheel control system, and magnet control system, as well as actuators such as the vehicle battery and support wheel mechanism.
[0004] Currently, the testing of the operation control system of maglev transportation systems mainly relies on online test runs and commissioning to achieve online test testing of the operation control system. Offline simulation testing systems generally use a single test device, and the software system used adopts a multi-threaded software system architecture. When the object under test changes, especially when the external interface devices of the operation control system to be simulated change, the multi-threaded software system architecture brings more secondary development work, and modifying existing threads can also adversely affect the stability of the test system architecture. Therefore, the development costs in terms of manpower and time are relatively high. Summary of the Invention
[0005] This invention provides a method for constructing a multi-process simulation test system, which can solve the technical problems of high development cost and low efficiency of existing multi-threaded simulation test systems and secondary development.
[0006] According to one aspect of the present invention, a method for constructing a multi-process simulation testing system is provided, the method comprising:
[0007] Based on the principle of real-time performance, the various functional modules of the simulation test system are divided, and the non-real-time functional modules are divided into non-real-time functional processes.
[0008] Based on the model and interface separation strategy, the real-time functional modules are divided into model simulation functional processes.
[0009] The real-time function modules belonging to the interface are divided according to the interface function division strategy;
[0010] When the interface function is in interface response mode, the real-time function module of periodic interface type is divided into periodic interface communication process, and the real-time function module of command-triggered interface type is divided into command-triggered interface communication process.
[0011] The multi-process simulation test system was constructed based on non-real-time functional processes, model simulation functional processes, periodic interface communication processes, and instruction-triggered interface communication processes.
[0012] When the interface function is of the interface type, the real-time function module of the bus-type interface response mode is divided into the bus-type interface communication process, and the real-time function module of the non-bus-type interface response mode is divided into the non-bus-type interface communication process.
[0013] The multi-process simulation test system was constructed based on the non-real-time function process, the model simulation function process, the bus-type interface communication process, and the non-bus-type interface communication process.
[0014] Preferably, the simulation test system is a simulation test system for maglev transportation operation control systems.
[0015] Preferably, the maglev transportation control system includes a central control system, a zone control system, and an on-board control system.
[0016] According to another aspect of the present invention, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the methods described above.
[0017] By applying the technical solution of this invention, the various functional modules of the simulation test system are divided according to the principles of real-time performance, the separation strategy of model and interface, and the interface function division strategy, so as to complete the construction of a multi-process simulation test system. This effectively improves the architectural stability of the simulation test system, increases the efficiency of simulation test system development and secondary development, thereby improving the overall efficiency of offline verification and reducing the risk of online joint debugging and testing.
[0018] Compared with the prior art, the present invention has the following beneficial effects:
[0019] (1) A multi-process simulation test system architecture is adopted, and the test system software is deployed on the computer according to the process. When software problems occur during the debugging phase, the problem can be located as soon as possible according to the software module.
[0020] (2) A multi-process simulation test system architecture is adopted, which separates the simulation model and interface functions according to features, and further separates them according to interface type, which can facilitate data management and interface adaptation.
[0021] (3) A multi-process simulation test system architecture is adopted. The test system software is iterated and modified according to the process to which the module belongs. It does not affect other software processes. The overall software architecture is transparent to this modification, and the iteration is faster and more efficient. Attached Figure Description
[0022] The accompanying drawings, which form part of this specification, are provided to further illustrate embodiments of the invention and, together with the textual description, explain the principles of the invention. It is obvious that the drawings described below are merely some embodiments of the invention, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0023] Figure 1 A flowchart illustrating a method for constructing a multi-process simulation test system according to an embodiment of the present invention is shown;
[0024] Figure 2 A schematic diagram of a simulation test system architecture for an on-board motion control system according to an embodiment of the present invention is shown.
[0025] Figure 3 A flowchart is shown illustrating a method for constructing a multi-process simulation test system for an on-board motion control system according to an embodiment of the present invention. Detailed Implementation
[0026] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the present invention or its application or use. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0027] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this application. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0028] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the invention. It should also be understood that, for ease of description, the dimensions of the various parts shown in the drawings are not drawn to actual scale. Techniques, methods, and devices known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and devices should be considered part of the specification. In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters in the following figures denote similar items; therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0029] like Figure 1 As shown, the present invention provides a method for constructing a multi-process simulation test system, the method comprising:
[0030] S10. Divide the various functional modules of the simulation test system according to the real-time principle, and divide the non-real-time functional modules into non-real-time functional processes.
[0031] S20. Based on the model and interface separation strategy, the real-time functional modules are divided into model simulation functional processes.
[0032] S30. Divide the real-time function modules belonging to the interface according to the interface function division strategy;
[0033] S40. When the interface function is in interface response mode, the real-time function module of periodic interface type is divided into periodic interface communication process, and the real-time function module of command-triggered interface type is divided into command-triggered interface communication process.
[0034] S50. Construct a multi-process simulation test system based on non-real-time function processes, model simulation function processes, periodic interface communication processes, and instruction-triggered interface communication processes.
[0035] S60. When the interface function is an interface type, the real-time function module of the bus-type interface response mode is divided into a bus-type interface communication process, and the real-time function module of the non-bus-type interface response mode is divided into a non-bus-type interface communication process.
[0036] S70. Construct a multi-process simulation test system based on non-real-time function processes, model simulation function processes, bus-type interface communication processes, and non-bus-type interface communication processes.
[0037] This invention divides the various functional modules of the simulation test system through the principles of real-time performance, model and interface separation, and interface function division, thereby completing the construction of a multi-process simulation test system. This effectively improves the architectural stability of the simulation test system, increases the efficiency of simulation test system development and secondary development, thereby improving the overall efficiency of offline verification and reducing the risks of online joint debugging and testing.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] (1) A multi-process simulation test system architecture is adopted, and the test system software is deployed on the computer according to the process. When software problems occur during the debugging phase, the problem can be located as soon as possible according to the software module.
[0040] (2) A multi-process simulation test system architecture is adopted, which separates the simulation model and interface functions according to features, and further separates them according to interface type, which can facilitate data management and interface adaptation.
[0041] (3) A multi-process simulation test system architecture is adopted. The test system software is iterated and modified according to the process to which the module belongs. It does not affect other software processes. The overall software architecture is transparent to this modification, and the iteration is faster and more efficient.
[0042] According to one embodiment of the present invention, the simulation test system is a simulation test system for a maglev transportation control system.
[0043] In this invention, to address the typical testing requirements of the motion control system, a multi-process simulation test is developed to meet the needs of simulating train testing of the motion control system. Furthermore, it accommodates rapid version updates based on changes in the motion control system and its peripheral interface equipment. This invention solves the problems of long development cycles, low efficiency, and stability risks in the testing system of the motion control system caused by changes in the peripheral communication interface equipment of the ultra-high-speed maglev transportation system.
[0044] According to one embodiment of the present invention, the maglev transportation control system includes a central control system, a zone control system, and an on-board control system.
[0045] The method of the present invention will be specifically described below, taking the vehicle-mounted motion control system as the object of testing.
[0046] like Figure 2 As shown, a schematic diagram of a simulation test system architecture for an onboard motion control system is provided. Figure 2 In this context, the peripheral interface equipment of the vehicle-mounted motion control system includes the vehicle-mounted power supply system, the vehicle-mounted positioning and speed measurement system, the support wheel control system, and the magnet control system; the simulation test system of the vehicle-mounted motion control system includes functional modules such as data display, data storage, test interpretation, vehicle motion simulation, vehicle equipment simulation, and vehicle motion control simulation; ① is the interface between the vehicle-mounted motion control system and the peripheral interface equipment; ② is the interface between the vehicle-mounted motion control system and the simulation test system.
[0047] In this embodiment, as Figure 2 As shown, the interface devices of the vehicle-mounted motion control system include: the vehicle-mounted power supply system, the vehicle-mounted positioning and speed measurement system, the support wheel control system, and the magnet control system. The relationship between each interface device and the vehicle-mounted motion control system is as follows: the vehicle-mounted motion control system monitors the controller status of the vehicle-mounted power supply system and the remaining power of the vehicle-mounted battery; the vehicle-mounted motion control system acquires vehicle position, speed, and direction information collected by the vehicle-mounted positioning and speed measurement system, and protects against abnormal sensor parameters of the vehicle-mounted positioning and speed measurement system; the vehicle-mounted motion control system controls the support wheel control system, generating control strategies for the retraction and extension of the support wheels and corresponding braking amounts; the vehicle-mounted motion control system monitors the operating status of the magnet control system, performs overall control of the magnet excitation action, and protects against abnormal magnet operation.
[0048] In this embodiment, the partitioning strategies adopted include: real-time principle partitioning strategy, model and interface separation strategy, and interface function partitioning strategy.
[0049] (1) Real-time principle classification strategy
[0050] like Figure 2 As shown, the overall functions of the simulation test system for vehicle-mounted motion control systems include data display, data storage, test interpretation, and simulation. The simulation function requires simulation calculations based on the functional logic and interfaces of the actual equipment, thus it is a function with real-time requirements. Specifically, the simulation function includes vehicle motion simulation, vehicle equipment simulation, and vehicle motion control simulation. Data display, data storage, and test interpretation functions are standard test software requirements and are not real-time requirements.
[0051] In this embodiment, the simulation function and other functions (data display, data storage, test interpretation, etc.) are distributed in different processes according to different time requirements.
[0052] For simulation functions with strong real-time requirements, the operating system can allocate a higher process priority or implement them using a real-time operating system module. For other functions without real-time requirements, the operating system can allocate a lower process priority.
[0053] (2) Model and Interface Separation Strategy
[0054] The simulation test system models used for vehicle motion control systems are divided into two types: vehicle motion simulation models and vehicle equipment models.
[0055] The vehicle motion simulation model is responsible for solving the multi-degree-of-freedom motion of the vehicle, including simulation calculations of vehicle attitude, speed, position, and direction. It provides the control and protection parameters for the onboard motion control system, and is categorized into speed curve control, running direction protection, and vehicle attitude control. The onboard equipment models include simulation models of the onboard motion control system, onboard power supply system, onboard positioning and speed measurement system, support wheel control system, and magnet control system. These models are used to simulate the functions of peripheral interface devices during testing of the onboard motion control system.
[0056] The interfaces of the simulation test system used for the vehicle-mounted motion control system are mainly the communication interfaces of the equipment that interacts with the vehicle-mounted motion control system, including but not limited to: Ethernet interfaces, serial interfaces, bus interfaces, digital interfaces, and analog interfaces. The specific interfaces vary depending on the design of the onboard equipment of the maglev vehicle.
[0057] In this embodiment, the model solving and interface simulation functions are distributed across different processes. The interface simulation part is scheduled and controlled according to the actual communication cycle between the vehicle control system and other vehicle equipment; the model part is controlled with a higher time resolution, and the minimum communication cycle should be an integer multiple of the model part's solving cycle.
[0058] (3) Interface Function Division Strategy
[0059] The interface functions of the simulation test system for vehicle motion control system are divided into two types: interface type division and then interface response mode division.
[0060] The interface types include Ethernet interfaces, serial interfaces, bus interfaces, digital interfaces, and analog interfaces; the interface response modes include periodic communication and command-triggered communication. Periodic communication refers to the interface that communicates with the vehicle control system on a periodic basis, while command-triggered communication refers to the interface that receives commands and provides feedback on the status.
[0061] In this embodiment, different types of interfaces are distributed across different processes. Specifically, if classified by interface type, the process design and module deployment are categorized into bus-controlled interfaces and serial interfaces; if classified by interface response mode, the process design and module deployment are categorized into periodic communication interfaces and command-triggered communication interfaces.
[0062] By adopting the process partitioning design ideas and strategies of the above simulation test system, a stable test system software architecture with loose coupling, strong real-time capability, and arbitrary combination of software functional modules can be formed. This ensures the adaptability, efficiency, and rapid iteration of the testing requirements for the functional logic, interfaces, and performance of the operation and control system.
[0063] like Figure 3 As shown, a method for constructing a multi-process simulation test system for vehicle-mounted motion control systems is provided, which specifically includes the following steps:
[0064] Step 1: Divide the various functional modules of the simulation test system for the vehicle-mounted motion control system according to the principle of real-time performance;
[0065] Step 2: By judging the real-time requirements of each functional module, the functional modules are divided into non-real-time functional processes and real-time functional processes. The non-real-time functional processes include data display functional modules, data storage functional modules, and test and interpretation functional modules, while the real-time functional processes include simulation functional modules.
[0066] Step 3: Divide the simulation function modules according to the model and interface separation strategy;
[0067] Step 4: By determining whether the simulation function module is an interface function, the simulation function module is divided into the model simulation function process and the interface simulation function process. The model simulation function process includes the vehicle motion simulation function module, the vehicle equipment simulation function module, and the vehicle motion control simulation function module. The interface simulation function process includes the interface simulation function module.
[0068] Step 5: Divide the interface simulation function modules according to the interface function division strategy;
[0069] Step 6: When the interface function is in interface response mode, divide the interface simulation function module of periodic interface type into periodic interface communication process, and divide the interface simulation function module of command triggered interface type into command triggered interface communication process.
[0070] Step 7: When the interface function is an interface type, divide the real-time function module of the bus-type interface response mode into a bus-type interface communication process, and divide the real-time function module of the non-bus-type interface response mode into a non-bus-type interface communication process.
[0071] Step 8: Construct a multi-process simulation test system based on non-real-time functional processes, model simulation functional processes, periodic interface communication processes, and instruction-triggered interface communication processes, or construct a multi-process simulation test system based on non-real-time functional processes, model simulation functional processes, bus-type interface communication processes, and non-bus-type interface communication processes.
[0072] In summary, the beneficial effects of this multi-process simulation testing system construction method are: each process can be independently modified, edited, deployed, and iteratively updated; they are loosely coupled and have minimal mutual influence. Specifically:
[0073] (1) Modifications to the simulation model's functions only need to be made within its process and will not affect the interface communication process; modifications to the interface communication functions only need to be made within its process and will not affect the simulation model's process.
[0074] (2) Periodic interface communication and instruction-triggered interface communication functions (or bus-type interface communication and non-bus-type interface communication functions) are distributed in different processes, which shields the inconvenience of modification and addition caused by different communication methods, as well as the impact on the other party's interface, making the architecture more stable.
[0075] (3) Real-time and non-real-time functions are distributed in different processes, which reduces the impact of non-real-time function modules on real-time function modules and greatly simulates the functions of all peripheral devices of the tested object (such as vehicle operation control system); at the same time, depending on the replacement of the tested object (such as replacing it with a regional operation control system or a central operation control system, etc.), only the real-time function process (including the model simulation function process and other interface communication function processes) needs to be replaced, and the non-real-time function process is completely transparent.
[0076] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the methods described above.
[0077] In the description of this invention, it should be understood that the orientation or positional relationship indicated by directional terms such as "front, back, up, down, left, right", "horizontal, vertical, horizontal" and "top, bottom" is generally based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing this invention and simplifying the description. Unless otherwise stated, these directional terms do not indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on the scope of protection of this invention; the directional terms "inner" and "outer" refer to the inner and outer contours relative to the outline of each component itself.
[0078] For ease of description, spatial relative terms such as "above," "on top of," "on the upper surface of," "above," etc., are used herein to describe the spatial positional relationship of a device or feature as shown in the figures to other devices or features. It should be understood that spatial relative terms are intended to encompass different orientations in use or operation beyond the orientation of the device as described in the figures. For example, if the device in the figures were inverted, a device described as "above" or "on top of" other devices or structures would subsequently be positioned as "below" or "under" other devices or structures. Thus, the exemplary term "above" can include both "above" and "below." The device may also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatial relative descriptions used herein will be interpreted accordingly.
[0079] Furthermore, it should be noted that the use of terms such as "first" and "second" to define components is merely for the purpose of distinguishing the corresponding components. Unless otherwise stated, the above terms have no special meaning and therefore should not be construed as limiting the scope of protection of this invention.
[0080] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for constructing a multi-process simulation testing system, characterized in that, The method includes: Based on the principle of real-time performance, the various functional modules of the simulation test system are divided, and the non-real-time functional modules are divided into non-real-time functional processes. Based on the model and interface separation strategy, the real-time functional modules are divided into model simulation functional processes. The real-time function modules belonging to the interface are divided according to the interface function division strategy; When the interface function is in interface response mode, the real-time function module of the periodic interface type is divided into the periodic interface communication process, and the real-time function module of the command-triggered interface type is divided into the command-triggered interface communication process. The multi-process simulation test system was constructed based on non-real-time functional processes, model simulation functional processes, periodic interface communication processes, and instruction-triggered interface communication processes. When the interface function is of the interface type, the real-time function module of the bus-type interface response mode is divided into the bus-type interface communication process, and the real-time function module of the non-bus-type interface response mode is divided into the non-bus-type interface communication process. The multi-process simulation test system was constructed based on the non-real-time function process, the model simulation function process, the bus-type interface communication process, and the non-bus-type interface communication process.
2. The method according to claim 1, characterized in that, The simulation testing system is a simulation testing system for maglev transportation operation control systems.
3. The method according to claim 1 or 2, characterized in that, The maglev transportation control system includes a central control system, a zone control system, and an onboard control system.
4. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method of any one of claims 1 to 3.