A train control system joint simulation test method, system and storage medium

By acquiring and analyzing the data packets of the train control system and building a real simulation test environment, the problem of consistency differences between the software test environment and on-site operation was solved, and more accurate and efficient simulation testing was achieved.

CN119439940BActive Publication Date: 2025-09-16ZHUZHOU CSR TIMES ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310941126.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-09-16
Estimated Expiration
2043-07-28

AI Technical Summary

Technical Problem

In the existing technology, there are consistency differences between the software testing environment of the train control system and the on-site operation, which leads to inaccurate test results and difficulty in reproducing on-site problems.

Method used

By obtaining joint simulation test instructions, identifying the target control system, downloading target data packets and historical data packets, analyzing data integrity and value, selecting joint simulation test modes, building a simulation test environment, and conducting joint simulation tests, simulation tests are performed using real data.

Benefits of technology

It improves the accuracy of simulation testing and the consistency of on-site operation, ensures the matching of test environment and on-site environment, and improves the accuracy and efficiency of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119439940B_ABST
    Figure CN119439940B_ABST
Patent Text Reader

Abstract

The present invention provides a train control system joint simulation test method, system and storage medium, the method comprising the following steps: obtaining a joint simulation test instruction, and identifying a target control system corresponding to the joint simulation test instruction by parsing the joint simulation test instruction, the target control system including multiple control subsystems; downloading a target data packet and a historical data packet of the target control system from a preset service cloud; analyzing the target data packet using the historical data packet to obtain a target data packet integrity test result and data value; selecting a joint simulation test mode in combination with the joint simulation test instruction, the integrity test result and the data value; constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode; and performing a joint simulation test on the target control system based on the simulation test environment and through the simulation test system. The present invention has the effect of improving the accuracy of software simulation testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of system simulation testing, and in particular relates to a train control system joint simulation testing method, system and storage medium. Background Art

[0002] The development of the rail transit industry is facing numerous challenges, including a large number of projects, short development cycles, frequent changes in requirements, numerous field software changes, numerous files, and a heavy maintenance workload for existing projects. During the development of train control system software, system software testing is necessary. Currently, laboratory software testing is primarily based on software requirements, lacking coverage for scenarios not covered by the requirements. In particular, some field operation scenarios are not adequately tested. As a result, even if the software passes software testing during software changes, problems may still arise during actual field use. Furthermore, the current software testing environment utilizes mathematical models, which cannot accurately assess the current situation and optimize decisions. The consistency between the test environment and field operations varies, making some field issues difficult to replicate in the laboratory, ultimately leading to inaccurate software testing results. Summary of the Invention

[0003] The present invention provides a train control system joint simulation test method, system and storage medium to solve the problem of inaccurate software test results due to differences in test environment and on-site operation consistency.

[0004] In a first aspect, the present invention provides a train control system joint simulation test method, the method comprising the following steps:

[0005] Acquire a joint simulation test instruction, and identify a target control system corresponding to the joint simulation test instruction by parsing the joint simulation test instruction, wherein the target control system includes multiple control subsystems;

[0006] Download the target data packet and the historical data packet of the target control system from a preset service cloud;

[0007] Analyzing the target data packet using the historical data packet to obtain the target data packet integrity test result and data value;

[0008] Selecting a joint simulation test mode in combination with the joint simulation test instruction, the integrity test result and the data value, the joint simulation test mode including a full data playback mode and a simulation model-data recording mode;

[0009] Constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode;

[0010] Based on the simulation test environment, a joint simulation test is performed on the target control system through a simulation test system.

[0011] Optionally, constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode includes the following steps:

[0012] If the selected joint simulation test mode is the full data playback mode, an initial simulation test environment is constructed, wherein the initial simulation test environment includes a plurality of system simulators corresponding to a plurality of the control subsystems;

[0013] Parsing the target data packet into channel data of a plurality of configuration channels;

[0014] Building a data graph network model by combining the plurality of channel data and the data association relationship between the plurality of channel data;

[0015] generating virtual channel data not included in the target data packet through the data graph network model;

[0016] Adjusting model parameters in the data graph network model using a mechanism analysis method to optimize the virtual channel data;

[0017] The channel data and the optimized virtual channel data are mapped to the corresponding system simulator in the initial simulation test environment to generate a simulation test environment.

[0018] Optionally, constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode includes the following steps:

[0019] If the selected joint simulation test mode is the simulation model-data recording mode, constructing a simulation test model and obtaining an operation cycle of the simulation test model;

[0020] Filtering out valid data in the target data packet in combination with the operation cycle and the data value;

[0021] Determining whether there is a step size deviation in the valid data;

[0022] If the valid data has the step size deviation, filling the valid data with a data fitting method, and building a simulation test environment by combining the filled valid data with the simulation test model;

[0023] If the valid data does not have the step size deviation, the simulation test environment is constructed by combining the valid data and the simulation test model.

[0024] Optionally, the data fitting method is linear interpolation, polynomial interpolation or spline interpolation.

[0025] The joint simulation test of the target control system based on the simulation test environment and through the simulation test system comprises the following steps:

[0026] Based on the timeliness attributes preset by the multiple control subsystems, analyzing and determining whether the target control system meets the timeliness requirements;

[0027] If the target control system does not meet the timeliness requirement, the simulation environment data in the simulation test environment is imported into the target control system through bus communication, and the simulation test system is used to perform a joint simulation test on the target control system;

[0028] If the target control system meets the timeliness requirement, all system simulators in the simulation test environment are set to the same simulation step size;

[0029] Sharing the simulation environment data to the target control system through a reflective memory method, and performing periodic synchronization verification on the simulation environment data;

[0030] A simulation test system is used to perform a joint simulation test on the target control system.

[0031] Optionally, the step of analyzing the target data packet using the historical data packet to obtain the target data packet integrity test result and data value comprises the following steps:

[0032] Extracting historical data fields from the historical data packets, and using all the historical data fields as data nodes;

[0033] Parsing the field attributes of all the historical data fields, and building a historical data graph network by combining the field attributes and all the data nodes;

[0034] Extracting the target data field of the target data packet as a data node, and constructing a target data graph network by combining the target data field and the field attributes of the target data field;

[0035] Comparing the historical data graph network and the target data graph network based on the field attributes to obtain an integrity test result;

[0036] The data value of the target data packet is obtained by combining the historical data graph network and the target data graph network analysis.

[0037] Optionally, the analyzing the historical data graph network and the target data graph network to obtain the data value of the target data packet includes the following steps:

[0038] Calculating node value weights of all data nodes in the historical data graph network based on field attributes of the historical data fields;

[0039] According to the data node correspondence between the historical data graph network and the target data graph network, all the node value weights are assigned to each data node in the target data graph network;

[0040] The data value of the target data packet is obtained by analyzing and calculating the field attributes of the target data field and the node value weight.

[0041] Optionally, selecting a joint simulation test mode in combination with the joint simulation test instruction, the integrity test result, and the data value includes the following steps:

[0042] Parsing the joint simulation test instruction, and determining whether a mode specifying instruction exists in the joint simulation test instruction according to the parsing result;

[0043] If the mode specifying instruction exists in the joint simulation test instruction, selecting the full data playback mode or the simulation model-data recording mode according to the mode specifying instruction;

[0044] If the mode specifying instruction does not exist in the joint simulation test instruction, calculating the data integrity of the target data packet based on the integrity test result;

[0045] Determining whether the data integrity exceeds a preset integrity threshold;

[0046] and,

[0047] Determining whether the value of the data exceeds a preset value threshold;

[0048] If the data integrity exceeds the integrity threshold and the data value exceeds the value threshold, selecting the full data playback mode;

[0049] If either the data integrity or the data value does not exceed the corresponding threshold, the simulation model-data recording mode is selected.

[0050] In a second aspect, the present invention also provides a train control system joint simulation test system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0051] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method described in the first aspect when executed by a processor.

[0052] The beneficial effects of the present invention are:

[0053] The train control system joint simulation test method adopted by the present invention includes the following steps: obtaining a joint simulation test instruction, and identifying the target control system corresponding to the joint simulation test instruction by parsing the joint simulation test instruction, the target control system including multiple control subsystems; downloading the target data packet and historical data packet of the target control system from a preset service cloud; using the historical data packet to analyze the target data packet to obtain the target data packet integrity test result and data value; selecting a joint simulation test mode in combination with the joint simulation test instruction, the integrity test result and the data value, the joint simulation test mode including a full data playback mode and a simulation model-data recording mode; constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode; performing a joint simulation test on the target control system based on the simulation test environment and through the simulation test system. Through the above steps, the controller can be provided with real data of the external environment for simulation testing, avoiding the method of relying solely on the simulation model for testing, ensuring the authenticity of the train operation scenario data, improving the accuracy of the simulation test environment, and the consistency between the test environment and the on-site operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a flow chart of the joint simulation test method of the train control system in the present invention. DETAILED DESCRIPTION

[0055] The invention discloses a joint simulation test method for a train control system.

[0056] Reference Figure 1 ,The train control system joint simulation test method specifically includes the following steps:

[0057] S101. Obtain a joint simulation test instruction, and identify a target control system corresponding to the joint simulation test instruction by parsing the joint simulation test instruction.

[0058] The joint simulation test instruction is an instruction sent by the user through the client, and the target control system includes multiple control subsystems.

[0059] S102. Download the target data package and the historical data package of the target control system from the preset service cloud.

[0060] The train's onboard controllers, through the configuration of periodic and event-based data recording, record the dynamic data of each onboard control device during train operation and store the train's on-site operation data to the service cloud according to the configured method. The service cloud collects and manages the real-time or cached on-site operation data uploaded by different controllers on the corresponding train formation. This classification is not only based on the different onboard controllers, but also on the cache time. Data packets with a cache time exceeding a certain threshold are classified as historical data packets, while data packets within the time threshold are classified as target data packets. Through joint simulation test instructions, data packets corresponding to the onboard devices of a specified train are obtained from the service cloud. Multiple data packets recorded by different controllers on the same train are integrated according to the timestamp to form a complete data file for the entire train operation. By determining the initial and final operating conditions of the train operation, the valid recorded data intervals to be used are intercepted.

[0061] S103. Analyze the target data packet using the historical data packet to obtain the target data packet integrity test result and data value.

[0062] The target data packet is verified against historical data packets, including verification of the packet format, data field integrity, and data consistency. The target data packet is checked for loss, duplication, and errors to ensure data integrity. The correlation between the individual data in the target data packet is tested to ensure the correct logical relationships and dependencies between the data. Finally, the integrity test results for the target data packet are generated.

[0063] Based on historical data packets, the target data packets are cleaned and filtered to remove redundant and invalid data, retaining the most valuable signal data. The correlations between the individual data in the target data packets are analyzed to determine the dependencies and impact relationships between the data. The cleaned and filtered data is evaluated for value, including the amount of information and the degree of impact on the test results, to determine the data value of the target data packets.

[0064] S104. Select a joint simulation test mode based on the joint simulation test instructions, integrity test results and data value.

[0065] The joint simulation test modes include full-data playback mode and simulation model-data recording mode. In full-data playback mode, based on existing field operation record data, an automatic test environment data generation tool built with intelligent algorithms is used to generate unrecorded environmental data in the simulation environment data link. Through continuous optimization, a full field operation data package for the project under test is constructed. In simulation model-data recording mode, data is cleaned and filtered based on the recorded signals to be used, generating a recording file with the most valuable signals. By forcing the corresponding signal output in the simulation model, a joint simulation based on the model and field recorded data is formed.

[0066] S105. Construct a simulation test environment based on the target data packet and according to the selected joint simulation test mode.

[0067] Specifically, based on the selected joint simulation test mode and the characteristics of the target data package, the hardware equipment, software environment, network connection, etc. required for the simulation test environment are clearly defined. Based on the hardware equipment requirements involved in the target data package, the corresponding equipment is configured and its compatibility with the simulation test system is ensured. Based on the software and tools used in the target data package, the corresponding software environment, including the operating system, drivers, applications, etc., is installed and configured. Based on the network requirements in the target data package, the network connection in the simulation test environment is configured to ensure smooth communication between the target control system and the simulation test system. Based on the content of the target data package, the data is loaded into the corresponding components or modules in the simulation test environment, and the necessary configuration and parameter settings are performed. Based on the selected joint simulation test mode, the corresponding test parameters and test scenarios, including test cases, test data, test time, etc., are set. The constructed simulation test environment is verified to ensure the normal operation of each component and module, as well as the normal connection and communication with the target control system.

[0068] S106. Perform a joint simulation test on the target control system based on the simulation test environment and through the simulation test system.

[0069] The target control systems include the Car Control Unit, Traction Control Unit, Air Conditioning Control Unit, Emergency Brake System, Door Control Unit, and Brake Control Unit. Each subsystem is controlled by pure software or physical controllers connected to the simulation test system. Based on the simulation test environment, on-site operating data and instructions are obtained, and various control systems are dynamically closed-loop controlled, thus achieving laboratory test verification based on real-world operating scenario data.

[0070] The implementation principle of this embodiment is:

[0071] The steps in the above implementation can provide the controller with real data from the external environment for simulation testing, avoiding the method of relying solely on simulation models for testing, ensuring the authenticity of the train operation scenario data, improving the accuracy of the simulation test environment, and the consistency between the test environment and on-site operation. It can also more conveniently implement functional verification of specific test requirements, use field data to interpolate abnormal data, and test whether the on-board controller software responds normally to abnormal environments / state variables. Compared with manually constructed simulation test environments, this can avoid deviations that occur in manually constructed environments, ensure the validity of test data, and improve the efficiency of simulation testing.

[0072] In one embodiment, step S105, i.e., constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode, specifically includes the following steps:

[0073] If the selected joint simulation test mode is the full data playback mode, an initial simulation test environment is constructed, which includes multiple system simulators corresponding to multiple control subsystems;

[0074] Parse the target data packet into channel data of multiple configured channels;

[0075] Build a data graph network model by combining multiple channel data and the data association relationship between multiple channel data;

[0076] Generate virtual channel data not included in the target data packet through a data graph network model;

[0077] The model parameters in the data graph network model are adjusted using the mechanism analysis method to optimize the virtual channel data;

[0078] The channel data and the optimized virtual channel data are mapped to the corresponding system simulator in the initial simulation test environment to generate a simulation test environment.

[0079] In this embodiment, an initial simulation test environment is constructed, and the target data packet is parsed into channel data of multiple configured channels, and the data fields and records therein are extracted. The correlation between the data fields is analyzed to determine the associated signals that affect the operation of the vehicle on the line. Specifically, this analysis can be performed using statistical analysis methods. A data graph network model between the associated signals is established by combining the data of multiple channels and the data correlation relationship between the multiple channel data to determine the dependency and influence relationship between the signals. Correlation analysis methods can also be used for modeling. The data in the target data packet is mapped to the test environment, and the time consistency of the data in the test environment and the data in the target data packet is ensured. Clock synchronization can be performed using time synchronization protocols, clock calibration, and other methods.

[0080] Based on the results of signal correlation, signal mapping, and clock synchronization, the data graph network model generates virtual channel data not included in the target data packet. Data generation can be performed using methods such as model inference, interpolation, and generation algorithms, ensuring that the generated virtual channel data conforms to actual field operations. Mechanism analysis methods such as model analysis and statistical analysis can be used to fine-tune the weights of various virtual channel data. During this process, the properties of the virtual channel data can be optimized based on the actual conditions and expected results of the test environment to improve the accuracy and reliability of the data graph network model.

[0081] In one embodiment, step S105, i.e., constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode, specifically includes the following steps:

[0082] If the selected joint simulation test mode is the simulation model-data recording mode, then a simulation test model is constructed and an operation cycle of the simulation test model is obtained;

[0083] Filter out valid data in the target data packet based on the operating cycle and data value;

[0084] Determine whether there is step size deviation in valid data;

[0085] If there is a step size deviation in the valid data, the data fitting method is used to fill in the valid data, and the simulation test environment is constructed by combining the filled valid data with the simulation test model;

[0086] If there is no step size deviation in the valid data, a simulation test environment is constructed by combining the valid data and the simulation test model.

[0087] In this embodiment, a simulation test model can be constructed using methods such as mathematical models, physical models, and logical models. The operating cycle of the simulation test model, that is, the interval or step size of the simulation time, is determined based on the characteristics of the simulation test model and the test requirements. The data sampling interval and timestamp in the target data packet are determined based on the operating cycle of the simulation test model. The data in the target data packet is evaluated based on the evaluation criteria for data value, and data with higher value is screened out. Based on the operating cycle of the simulation test model and the valid data screened out, data alignment and matching are performed to ensure data consistency between the simulation test model and the target data packet.

[0088] Based on the operating cycle of the simulation test model, determine the data sampling interval and timestamp in the target data packet. Based on the data value evaluation criteria, evaluate the data in the target data packet and filter out data with higher value. Combined with the operating cycle of the simulation test model and the filtered valid data, perform data alignment and matching to ensure data consistency between the simulation test model and the target data packet. When there is a step size deviation, data fitting methods such as linear interpolation, polynomial interpolation, or spline interpolation can be used to fill in the valid data with step size deviation to match the operating cycle of the simulation test model. Combine the filled valid data with the simulation test model to build a simulation test environment, including configuring the simulation test system and setting simulation parameters.

[0089] In one embodiment, step S106, i.e., performing a joint simulation test on the target control system based on the simulation test environment and through the simulation test system, specifically includes the following steps:

[0090] Based on the preset timeliness attributes of multiple control subsystems, analyze and determine whether the target control system meets the timeliness requirements;

[0091] If the target control system does not meet the timeliness requirement, the simulation environment data in the simulation test environment is imported into the target control system through bus communication, and the simulation test system is used to perform a joint simulation test on the target control system;

[0092] If the target control system has timeliness requirements, all system simulators in the simulation test environment are set to the same simulation step size;

[0093] Share the simulation environment data to the target control system through reflective memory, and perform periodic synchronization verification on the simulation environment data;

[0094] The simulation test system is used to conduct joint simulation tests on the target control system.

[0095] In this embodiment, the preset timeliness attributes of each control subsystem are analyzed, such as response time, task processing cycle, etc. The timeliness attributes of each subsystem are comprehensively considered to analyze the overall timeliness performance of the target control system. Based on the analysis results, it is determined whether the target control system meets the timeliness requirements, that is, whether it can complete the task response and processing within the specified time. When the timeliness requirements are not met, the simulation environment data in the simulation test environment is transmitted to the target control system via bus communication. In the target control system, the simulation test system is used to receive and process the simulation environment data transmitted via the bus. The simulation test system is used to perform a joint simulation test on the target control system to verify its performance, function and safety in the simulation environment. The simulation model and test cases of the target control system are loaded into the simulation test system. The simulation test system is used to perform a joint simulation test on the target control system to simulate the actual operating environment and various operating conditions.

[0096] When real-time requirements are met, determine the timeliness requirements of the target control system, including task response time, task processing cycle, etc. Set the simulation step size of all system simulators in the simulation test environment to a value that matches the timeliness requirements of the target control system. Ensure that each system simulator in the simulation test environment simulates at the same step size during the simulation process to ensure the accuracy and reliability of the simulation test results. Establish a reflective memory channel between the simulation test environment and the target control system to enable data sharing and transmission. Regularly synchronize and verify the simulation environment data to ensure the accuracy and consistency of the data during the sharing process. Based on the verification results, update and correct the data in the target control system to ensure the real-time and correctness of the data. Load the simulation model and test cases of the target control system into the simulation test system. Use the simulation test system to conduct joint simulation tests on the target control system, simulating the actual operating environment and various operating conditions.

[0097] In one embodiment, step S103, i.e., analyzing the target data packet using the historical data packet to obtain the target data packet integrity test result and data value, specifically includes the following steps:

[0098] Extract historical data fields from historical data packets and use all historical data fields as data nodes;

[0099] Parse the field attributes of all historical data fields, and build a historical data graph network by combining the field attributes and all data nodes;

[0100] Extract the target data field of the target data packet as a data node, and construct a target data graph network by combining the target data field and the field attributes of the target data field;

[0101] Compare the historical data graph network and the target data graph network based on field attributes to obtain the integrity test results;

[0102] The data value of the target data packet is obtained by combining the historical data graph network and the target data graph network analysis.

[0103] In this embodiment, all data fields are parsed from historical data packets. These historical data fields are used as data nodes to construct a data node set. Field attributes for all historical data fields are parsed, including data type, data range, data unit, etc. Field attributes are combined with all data nodes to construct a historical data graph network, where data nodes represent data fields and edges represent relationships between fields. Target data fields are parsed from target data packets. These target data fields are used as data nodes, and combined with the field attributes of the target data fields, a target data graph network is constructed.

[0104] Compare the data nodes in the historical data graph network and the target data graph network to determine whether there are any missing or newly added data nodes. Compare the field attributes in the historical data graph network and the target data graph network to determine whether there are any changes or inconsistencies in the field attributes. Based on the comparison results, obtain the data integrity test results, including the integrity of the data nodes and the consistency of the field attributes. Analyze the changes in the data nodes and field attributes in the historical data graph network and the target data graph network. Based on the changes, evaluate the data value of the target data packet, including the importance of the data nodes and the relevance of the field attributes. Combined with the evaluation results, the data value of the target data packet is obtained for subsequent data processing and testing.

[0105] In one embodiment, combining the historical data graph network and the target data graph network to analyze and obtain the data value of the target data packet specifically includes the following steps:

[0106] Calculate the node value weights of all data nodes in the historical data graph network based on the field attributes of the historical data fields;

[0107] According to the data node correspondence between the historical data graph network and the target data graph network, all node value weights are assigned to each data node in the target data graph network;

[0108] The data value of the target data packet is obtained by combining the field attributes of the target data field and the node value weight analysis and calculation.

[0109] In this embodiment, indicators for evaluating the value of data nodes, such as data type, data range, data unit, etc., are determined based on the field attributes of the historical data field. For each data node, the value weight of the node is calculated based on its field attributes, and methods such as weighted evaluation or rule evaluation can be used. A data node correspondence between the historical data graph network and the target data graph network is established to ensure that the correspondence between the nodes is accurate. The node value weights in the historical data graph network are assigned to the corresponding data nodes in the target data graph network to maintain the value consistency of the nodes. Based on the field attributes of the target data field and the node value weights, indicators for evaluating the data value of the target data packet are determined, such as the importance of the data type, the relevance of the data range, etc. For the target data field, the data value is analyzed and calculated in combination with the field attributes and the node value weights, and methods such as weighted evaluation or rule evaluation can be used.

[0110] In one embodiment, step S104, i.e., selecting a joint simulation test mode based on the joint simulation test instruction, integrity test results, and data value, specifically includes the following steps:

[0111] Parsing the joint simulation test instruction, and judging whether there is a mode specifying instruction in the joint simulation test instruction according to the parsing result;

[0112] If there is a mode specifying instruction in the joint simulation test instruction, the full data playback mode or the simulation model-data recording mode is selected according to the mode specifying instruction;

[0113] If the mode specifying instruction does not exist in the joint simulation test instruction, the data integrity of the target data packet is calculated based on the integrity test result;

[0114] Determine whether the data integrity exceeds a preset integrity threshold;

[0115] and,

[0116] Determine whether the data value exceeds the preset value threshold;

[0117] If the data integrity exceeds the integrity threshold and the data value exceeds the value threshold, the full data playback mode is selected;

[0118] If either the data integrity or the data value does not exceed the corresponding threshold, the simulation model-data recording mode is selected.

[0119] In this embodiment, since the joint simulation test instruction is an instruction sent by the user, the instruction may include a mode specifying instruction for selecting a mode. If the joint simulation test instruction contains a mode specifying instruction, the corresponding joint simulation test mode is selected according to the specific content of the mode specifying instruction. If the joint simulation test instruction does not contain a mode specifying instruction, the selection is made in combination with the integrity test results and the data value. In the full data playback mode, unrecorded data will be automatically generated based on the existing data, so it is more suitable for target data packets with higher data integrity. In the simulation model-data recording mode, the data in the data packet will be cleaned and filtered. Therefore, if the overall data value of the data packet is high, it is less suitable to use the simulation model-data recording mode, and is more suitable for the full data playback mode. Therefore, when the data integrity exceeds the preset integrity threshold and the data value exceeds the value threshold, it is more suitable to select the full data playback mode; when any one of the data integrity or data value does not exceed the corresponding threshold, it is more suitable to select the simulation model-data recording mode.

[0120] The present invention also discloses a train control system joint simulation test system, including a memory, a processor and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, it implements the train control system joint simulation test method in any one of the above-mentioned embodiments.

[0121] The implementation principle of this embodiment is:

[0122] By calling the program, the steps of the train control system joint simulation test method in any of the above-mentioned embodiments are executed. Through the execution of the method steps, the controller can be provided with real data of the external environment for simulation testing, avoiding the method of relying solely on the simulation model for testing, ensuring the authenticity of the train operation scenario data, improving the accuracy of the simulation test environment, and the consistency between the test environment and the on-site operation. It is also possible to more conveniently implement functional verification of specific test requirements, use field data to interpolate abnormal data, and test whether the on-board controller software responds normally to abnormal environments / state variables. Compared with artificially constructed simulation test environments, it can avoid deviations in artificially constructed environments, ensure the validity of test data, and improve the efficiency of simulation testing.

[0123] The present invention also discloses a computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the train control system joint simulation test method in any of the above-mentioned embodiments are implemented.

[0124] The implementation principle of this embodiment is:

[0125] By calling the program, the steps of the train control system joint simulation test method in any of the above-mentioned embodiments are executed. Through the execution of the method steps, the controller can be provided with real data of the external environment for simulation testing, avoiding the method of relying solely on the simulation model for testing, ensuring the authenticity of the train operation scenario data, improving the accuracy of the simulation test environment, and the consistency between the test environment and the on-site operation. It is also possible to more conveniently implement functional verification of specific test requirements, use field data to interpolate abnormal data, and test whether the on-board controller software responds normally to abnormal environments / state variables. Compared with artificially constructed simulation test environments, it can avoid deviations in artificially constructed environments, ensure the validity of test data, and improve the efficiency of simulation testing.

[0126] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of protection of the present application is limited to these examples. In line with the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as above, which are not provided in detail for the sake of simplicity.

[0127] The one or more embodiments of this application are intended to encompass all such substitutions, modifications, and variations that fall within the broad scope of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this application should be included in the scope of protection of this application.

Claims

1. A joint simulation test method for a train control system, characterized in that: The steps include: Acquire a joint simulation test instruction, and identify a target control system corresponding to the joint simulation test instruction by parsing the joint simulation test instruction, wherein the target control system includes multiple control subsystems; Download the target data packet and the historical data packet of the target control system from a preset service cloud; Analyzing the target data packet using the historical data packet to obtain the target data packet integrity test result and data value; Selecting a joint simulation test mode in combination with the joint simulation test instruction, the integrity test result and the data value, the joint simulation test mode including a full data playback mode and a simulation model-data recording mode; Constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode; Performing a joint simulation test on the target control system based on the simulation test environment and through a simulation test system; The step of constructing a simulation test environment based on the target data packet and according to the selected joint simulation test mode includes the following steps: If the selected joint simulation test mode is the full data playback mode, an initial simulation test environment is constructed, and the initial simulation test environment includes multiple system simulators corresponding to multiple control subsystems; the target data packet is parsed into channel data of multiple configuration channels; a data graph network model is constructed by combining the multiple channel data and the data association relationship between the multiple channel data; virtual channel data not included in the target data packet is generated through the data graph network model; the model parameters in the data graph network model are adjusted using a mechanism analysis method to optimize the virtual channel data; the channel data and the optimized virtual channel data are mapped to the corresponding system simulators in the initial simulation test environment to generate a simulation test environment; If the selected joint simulation test mode is the simulation model-data recording mode, a simulation test model is constructed and the operation cycle of the simulation test model is obtained; the valid data in the target data packet is filtered out in combination with the operation cycle and the data value; it is determined whether the valid data has a step deviation; if the valid data has the step deviation, the valid data is filled in using a data fitting method, and a simulation test environment is constructed in combination with the filled valid data and the simulation test model; if the valid data does not have the step deviation, the simulation test environment is constructed in combination with the valid data and the simulation test model.

2. The train control system joint simulation test method according to claim 1, characterized in that: The data fitting method is linear interpolation, polynomial interpolation or spline interpolation.

3. The train control system joint simulation test method according to claim 1, characterized in that: The joint simulation test of the target control system based on the simulation test environment and through the simulation test system comprises the following steps: Based on the timeliness attributes preset by the multiple control subsystems, analyzing and determining whether the target control system meets the timeliness requirements; If the target control system does not meet the timeliness requirement, the simulation environment data in the simulation test environment is imported into the target control system through bus communication, and the simulation test system is used to perform a joint simulation test on the target control system; If the target control system meets the timeliness requirement, all system simulators in the simulation test environment are set to the same simulation step size; Sharing the simulation environment data to the target control system through a reflective memory method, and performing periodic synchronization verification on the simulation environment data; A simulation test system is used to perform a joint simulation test on the target control system.

4. The train control system joint simulation test method according to claim 1, characterized in that: The step of analyzing the target data packet by using the historical data packet to obtain the target data packet integrity test result and data value comprises the following steps: Extracting historical data fields from the historical data packets, and using all the historical data fields as data nodes; Parsing the field attributes of all the historical data fields, and building a historical data graph network by combining the field attributes and all the data nodes; Extracting the target data field of the target data packet as a data node, and constructing a target data graph network by combining the target data field and the field attributes of the target data field; Comparing the historical data graph network and the target data graph network based on the field attributes to obtain an integrity test result; The data value of the target data packet is obtained by combining the historical data graph network and the target data graph network analysis.

5. The train control system joint simulation test method according to claim 4, characterized in that: The step of combining the historical data graph network and the target data graph network to analyze and obtain the data value of the target data packet comprises the following steps: Calculating node value weights of all data nodes in the historical data graph network based on field attributes of the historical data fields; According to the data node correspondence between the historical data graph network and the target data graph network, all the node value weights are assigned to each data node in the target data graph network; The data value of the target data packet is obtained by analyzing and calculating the field attributes of the target data field and the node value weight.

6. The train control system joint simulation test method according to claim 1, characterized in that: The selecting of the joint simulation test mode in combination with the joint simulation test instruction, the integrity test result and the data value comprises the following steps: Parsing the joint simulation test instruction, and determining whether a mode specifying instruction exists in the joint simulation test instruction according to the parsing result; If the mode specifying instruction exists in the joint simulation test instruction, selecting the full data playback mode or the simulation model-data recording mode according to the mode specifying instruction; If the mode specifying instruction does not exist in the joint simulation test instruction, calculating the data integrity of the target data packet based on the integrity test result; Determining whether the data integrity exceeds a preset integrity threshold; and, Determining whether the value of the data exceeds a preset value threshold; If the data integrity exceeds the integrity threshold and the data value exceeds the value threshold, selecting the full data playback mode; If either the data integrity or the data value does not exceed the corresponding threshold, the simulation model-data recording mode is selected.

7. A train control system joint simulation test system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Freight train automatic driving simulation test system and method

    CN113377026A

  • Train coupler stress monitoring method and system, terminal and storage medium

    CN115758780A