A train control simulation test system and a test method

By separating the equipment and interfaces in the column-controlled simulation test system, using the equipment simulation model and interface protocol model, and configuring the adaptive interface protocol, the problem of coexistence of simulation equipment between different system standards is solved, and the testing efficiency and modularity are improved.

CN114296436BActive Publication Date: 2025-06-27CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210002535.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-04
Publication Date
2025-06-27
Estimated Expiration
2042-01-04

AI Technical Summary

Technical Problem

When the existing train control simulation test system maintains and designs new system standards, due to the increase in code redundancy and complexity, simulation equipment between different system standards cannot coexist in the same set of code, affecting the testing efficiency.

Method used

By separating and modeling the interfaces of the equipment to be simulated in the train control system and external communication, the device simulation model and interface protocol model are obtained, and the communication interface protocol is configured through the preset interface protocol configuration information to achieve flexible adaptation of the interface protocol.

Benefits of technology

Reduce duplicate development work, improve change response speed, increase module reuse rate, reduce development costs, and improve the testing efficiency of the train control simulation and the modularity of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114296436B_ABST
    Figure CN114296436B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a train control simulation test system and a test method. Among them, the train control simulation test system includes an actual test device, a hardware interface, a simulation test module, and an interaction terminal. The actual test device is connected to the simulation test module through the hardware interface, and the simulation test module is connected to the interaction terminal. The simulation test module includes a device simulation model and an interface protocol model. The device simulation model is used to determine a target interface protocol model according to preset interface protocol configuration information. The actual test device is connected to the target interface protocol model through the hardware interface and is used to perform data interaction with the device simulation model through the target interface protocol. The device simulation model sends the current information of the actual test device and the current information of the device simulation model to the interaction terminal for testing. By means of the interface protocol model, the configurability of the train control simulation test can be improved, the test efficiency can be increased, and the hybrid test of different system formats can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to rail transit testing technologies, and in particular, to a train control simulation testing system and a testing method. Background Art

[0002] The rail transit industry has been developing rapidly. Existing system formats have been continuously accumulated, and new system formats have emerged continuously. Each signal equipment manufacturer has its own train control simulation testing system to maintain existing system formats and equipment, as well as to design new system formats and equipment.

[0003] Existing train control simulation testing systems are divided by system format. That is, the code within the system only differentiates code logic at the granularity of the system format, and different system formats use different codes for testing. However, the functions and interface protocols of some simulation devices have only very small differences among different system formats. As the number of maintained system formats increases, the code redundancy and complexity increase sharply, and simulation devices among different system formats cannot coexist in the same set of codes, affecting the testing efficiency of train control simulation. Summary of the Invention

[0004] The embodiments of the present invention provide a train control simulation testing system and a testing method to improve the testing efficiency of train control simulation.

[0005] In a first aspect, the embodiments of the present invention provide a train control simulation testing system, which includes an actual testing device, a hardware interface, a simulation testing module, and an interaction terminal. The actual testing device is connected to the simulation testing module through the hardware interface, and the simulation testing module is connected to the interaction terminal;

[0006] The simulation testing module includes at least one device simulation model and at least one interface protocol model. The device simulation model is used to determine a target interface protocol model according to preset interface protocol configuration information and connect to the target interface protocol model;

[0007] The actual testing device is connected to the target interface protocol model through the hardware interface and is used to perform data interaction with the device simulation model through the target interface protocol;

[0008] The device simulation model is connected to the interaction terminal and is further used to send the current information of the device simulation model and the current information of the received actual testing device to the interaction terminal, and the interaction terminal performs testing according to the current information of the actual testing device and the current information of the device simulation model.

[0009] Second aspect, an embodiment of the present invention further provides a train control simulation test method, which is executed by a train control simulation test system. The train control simulation test system includes an actual test device, a hardware interface, a simulation test module, and an interaction terminal. The actual test device is connected to the simulation test module through the hardware interface, and the simulation test module is connected to the interaction terminal. The simulation test module includes at least one device simulation model and at least one interface protocol model. The method includes:

[0010] The device simulation model determines a target interface protocol model according to preset interface protocol configuration information and connects to the target interface protocol model;

[0011] The actual test device is connected to the target interface protocol model through the hardware interface and performs data interaction with the device simulation model through the target interface protocol;

[0012] The device simulation model is connected to the interaction terminal, and sends the current information of the device simulation model and the current information of the actual test device received to the interaction terminal. The interaction terminal performs tests according to the current information of the actual test device and the current information of the device simulation model.

[0013] In the embodiment of the present invention, the devices to be simulated in the train control system and the interfaces for external communication are separately modeled to obtain a device simulation model and an interface protocol model. The communication interface protocol is configured through the preset interface protocol configuration information, so that when the interface protocol needs to be changed, only a small amount of logic code needs to be modified or no modification is required, and only the protocol configuration information needs to be modified to adapt to the change, achieving the effects of reducing repetitive development work and improving the change response speed. Moreover, the interface protocol model can serve as a communication bridge between the hardware interface and the device simulation model, enabling the interaction terminal to obtain the current information of the actual test device and the current information of the device simulation model, and constructing a complete test environment for testing. This solves the problem in the prior art that test codes need to be rewritten every time the test environment is changed, decouples the two parts of the device simulation model and the interface protocol model, improves the modularity of the system. When the communication between multiple devices reuses the same interface protocol or the protocols are similar, the existing interface protocol model can be directly reused or slightly modified in the configuration file for reuse, increasing the module reuse rate and reducing the development cost. Through configuration, the simulation devices in the existing system formats can be conveniently mixed, and a new system format simulation system can be flexibly constructed, improving the test efficiency of train control simulation. Description of the Drawings

[0014] Figure 1 It is a schematic structural diagram of a train control simulation test system in the first embodiment of the present invention;

[0015] Figure 2It is a schematic structural diagram of a train control simulation test system in the second embodiment of the present invention;

[0016] Figure 3 It is a schematic structural diagram of a train control simulation test system in the third embodiment of the present invention;

[0017] Figure 4 It is a schematic flowchart of a train control simulation test method in the fourth embodiment of the present invention. Detailed implementation manners

[0018] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. In addition, it should be noted that for the convenience of description, only the parts related to the present invention are shown in the drawings, rather than all the structures.

[0019] Embodiment 1

[0020] Figure 1 It is a schematic structural diagram of a train control simulation test system provided by the first embodiment of the present application, which can execute the train control simulation test method provided by the embodiments of the present application. As Figure 1 shown, the train control simulation test system 10 may include an actual test device 101, a hardware interface 102, a simulation test module 103, and an interaction terminal 104.

[0021] The actual test device 101 is connected to the simulation test module 103 through the hardware interface 102, and the simulation test module 103 is connected to the interaction terminal 104. The simulation test module 103 includes at least one device simulation model 1032 and at least one interface protocol model 1031. The device simulation model 1032 is used to determine a target interface protocol model according to the preset interface protocol configuration information and connect to the target interface protocol model. For example, the user can pre-set in the interface protocol configuration information that the interface protocol model one is connected to the device simulation model one, and the interface protocol model one is the target interface protocol model of the device simulation model one. The actual test device 101 is connected to the target interface protocol model through the hardware interface 102, and is used to perform data interaction with the device simulation model 1032 through the target interface protocol. The device simulation model 1032 is connected to the interaction terminal 104, and is further used to send the current information of the actual test device received from the actual test device 101 and the current information of its own device simulation model to the interaction terminal 104, and the interaction terminal performs tests according to the current information of the actual test device and the current information of the device simulation model.

[0022] The actual test device 101 is the device actually being tested, which is different from the device simulated by the device simulation model 1032. The actual test device 101 and the device simulated by the device simulation model 1032 form a complete test environment. The actual test device 101 may include actual signal devices and actual train control devices, etc. The actual train control devices may include train control devices on the ground or actual on-vehicle devices. The device simulation model 1032 may include a line signal device simulation model, a train control device simulation model, and a simulated vehicle, etc. For example, if the actual test device 101 is an on-vehicle device, the actual on-vehicle device needs to be installed on a train. Therefore, the device simulation model 1032 may be a simulated vehicle, which combines with the actual on-vehicle device to form a complete test environment. Another example is that if the actual test device 101 is a line signal device, the device simulation model 1032 may be a train control device simulation model, etc. Before testing, data configuration needs to be performed on the system, which can be divided into line signal device data configuration, vehicle data configuration, and train control device data configuration, to generate corresponding configuration data for subsequent programs to call. The data configuration can be the configuration of the actual test device 101 or the simulation test module 102. After configuring the data, the system is started, and the system initializes each configured device or module. After successful initialization, each line signal device, train control device, and vehicle device perform data interaction according to the configuration data. The user can select to create a simulated vehicle to join the interaction network according to needs through the interaction terminal 104 to construct a complete train control simulation test system. The user constructs scenarios through the operation interface in the system for testing and verification.

[0023] Data configuration and initialization can be performed on the line signal device simulation model. For different types of signal devices, there is no strong association with the system standard. During modeling initialization, it is completely initialized according to the configured data list to enable multiple signal device simulations to be achieved through configuration for the same system standard. For example, on the same line of the same system standard, axle counter and track circuit two occupancy inspection devices can be simulated simultaneously according to the data configuration. In the prior art, axle counter and track circuit are used for different system standards and cannot be tested in the same system. For example, if there are both axle counter and track circuit on a line, in the prior art, two system standards need to be used to simulate the axle counter and the track circuit respectively. In this embodiment, the axle counter and the track circuit can be connected to their respective target interface protocol models through data configuration to achieve simultaneous simulation.

[0024] Data configuration and initialization can be performed on the simulated vehicle. The dynamic parameters and in-vehicle device access interfaces of multiple different vehicle models can be configured at the vehicle model granularity for users to select and combine, so as to enable the same system standard to simultaneously simulate the mixed running of multiple different vehicle models. The dynamic parameters can include static characteristics such as vehicle length and vehicle weight, as well as dynamic characteristics such as traction and braking curves and response delays. The in-vehicle device access configuration can be that for the simulation of different types of in-vehicle interface devices, there is no strong association with the system standard, and it is initialized completely according to the configured data list during modeling initialization, so as to enable a certain simulated vehicle of the same system standard to flexibly configure different types of in-vehicle interfaces. For example, in this system, the same vehicle can simultaneously interact with in-vehicle devices for track circuit data and cross induction loop data. In the prior art, track circuit data and cross induction loop data are used for different system standards and cannot be simultaneously simulated by in-vehicle devices, thus making it impossible to test in-vehicle devices.

[0025] Data configuration and initialization can be performed on the train control equipment. For different types of train control equipment, there is no strong association with the system standard, and it is initialized completely according to the configured data list during modeling initialization, so as to enable the same system standard to simulate or access multiple types of train control equipment through configuration. For example, in this system, the lines of the same system standard can simultaneously access ZC (Zone Controller) and RBC (Radio Block Center) equipment according to the data configuration. In the prior art, ZC and RBC are used for different system standards and cannot be simultaneously applied to the test system. For the same type of train control equipment, the modeling and simulation of the communication interfaces related to the train control equipment are increased, and the corresponding interface protocol configuration information is configured at the same time, so as to realize the initialization of the device interface protocol parsing and packet assembly functions according to the interface protocol configuration information. The configured data needs to be accurate to the smallest field specified by the interface protocol, so as to modify the configured data by field and enable the function of printing and recording the parsed protocol data as needed. The configured data information needs to use a common configuration file as the carrier. For example, a database or an XML file can be used to facilitate cross-software and cross-operating system reuse.

[0026] The hardware interface 102 may include, but is not limited to, CAN (Controller Area Network), Profibus, MVB (Multifunction Vehicle Bus), pulse signals, digital I / O, analog voltage / current, radio frequency signals, relay interfaces, serial ports, and Ethernet interfaces, etc. The actual test device 101 accesses the train control system test environment through the hardware interface 102. The hardware interface 102 is connected to the interface protocol model 1031, and the interface protocol model 1031 is the communication bridge between the hardware interface 102 and the device simulation model 1032. That is, the actual test device 101 is connected to the hardware interface 102, the hardware interface 102 is then connected to the interface protocol model 1031, and the interface protocol model 1031 is then connected to the device simulation model 1032, realizing the connection between the actual test device 101 and the device simulation model 1032. The simulation test module 103 may include multiple device simulation models 1032 and multiple interface protocol models 1031. That is, a complete test environment may include multiple device simulation models 1032 and multiple interface protocol models 1031. The device simulation model 1032 is connected to the interaction terminal 104, and the user can set the configuration data of the device simulation model 1032 through the interaction interface of the interaction terminal 104. The configuration data may include interface protocol configuration information and the current information of the device simulation model. The interface protocol configuration information is used to represent the target interface protocol model to which the device simulation model 1032 needs to be connected, and the current information of the device simulation model is the test parameters for testing, such as the model, voltage, working time of the device simulation model 1032, and the interface protocol data sent to other device simulation models 1032 or the actual test device 101.

[0027] The actual test device 101 may include a data sending unit and a data receiving unit; the data sending unit is used to send the current information of the actual test device to the target interface protocol model through the hardware interface 102, and the target interface protocol model sends the current information of the actual test device to the device simulation model 1032; the data receiving unit is used to receive the current information of the device simulation model sent by the target interface protocol model through the hardware interface 102, and the current information of the device simulation model is sent by the device simulation model 1032 to the target interface protocol model.

[0028] Specifically, data interaction can be carried out between the actual test device 101 and the device simulation model 1032. The actual test device 101 can sequentially send the current information of the actual test device to the device simulation model 1032 through the hardware interface 102 and the target interface protocol model. The device simulation model 1032 can sequentially send the current information of the device simulation model to the actual test device 101 through the target interface protocol model and the hardware interface 102. The actual test device 101 can operate the device according to the current information of the device simulation model, and the device simulation model 1032 can operate the simulation model according to the current information of the actual test device.

[0029] The complete test environment of the train control simulation test system consists of the actual test device 101, the hardware interface 102, the device simulation model 1032, the target interface protocol model, and the interaction terminal 104. Staff can pre-set the information to be tested on the actual test device 101. For example, the working voltage and interface type of the actual test device 101 during the test can be set. During the test, the actual test device 101 can generate the current information in real time according to the pre-set information to be tested. The actual test device 101 sends the generated current information to the target interface protocol model through the hardware interface 102, and then sends the current information of the actual test device 101 to the device simulation model 1032 through the target interface protocol model. The device simulation model 1032 can generate the current information of the device simulation model in real time according to the pre-set configuration data during the test, and send the current information of the actual test device and the current information of the device simulation model to the interaction terminal 104. The interaction terminal 104 determines whether the test of the actual test device 101 is completed. For example, it can be determined whether the current information of the actual test device is within the preset range. If so, the test is determined to be completed. The interaction terminal 104 can receive the current information of the actual test device and the test information of the device simulation model to determine the test result. The user can also determine the devices and states of the simulation modeling through the interaction terminal 104, which is displayed on the graphical interface of the interaction terminal 104. Interfaces such as scenario construction and fault injection can also be provided on the interaction terminal 104. Data for scenario construction and fault data are sent to the device simulation model 1032 and the actual test device 101 through the interaction terminal 104 to improve the test scenario.

[0030] In the embodiment of the present invention, by separately modeling the devices to be simulated in the train control system and the interfaces for external communication, a device simulation model and an interface protocol model are obtained. By configuring the communication interface protocol with the preset interface protocol configuration information, when it is necessary to change the interface protocol, the logic code is not modified or slightly modified, and only the protocol configuration information is modified to adapt to the change, achieving the effects of reducing repetitive development work and improving the change response speed. Moreover, the interface protocol model can serve as a communication bridge between the hardware interface and the device simulation model, enabling the interactive terminal to obtain the current information of the actual test device and the current information of the device simulation model, and constructing a complete test environment for testing. This solves the problem in the prior art that whenever the test environment is changed, the test code needs to be rewritten again. The device simulation model and the interface protocol model are decoupled, improving the modularity of the system. When the communication between multiple devices reuses the same interface protocol or the protocols are similar, the existing interface protocol model can be directly reused or slightly modified to reuse the configuration file, increasing the module reuse rate and reducing the development cost. Through configuration, the simulation devices in the existing system formats can be conveniently mixed, and a new system format simulation system can be flexibly constructed, improving the test efficiency of train control simulation.

[0031] Embodiment 2

[0032] Figure 2 As shown in the structural schematic diagram of a train control simulation test system provided according to an embodiment of the present application, further optimization is performed based on the above embodiment. As Figure 2 shown, the interface protocol model 1031 provided in this embodiment may include a hardware interface configuration unit 201 and an interface protocol configuration unit 202.

[0033] The hardware interface configuration unit 201 is connected to the hardware interface 102 and is used to call the hardware interface 102. The actual test device 101 is connected to the target interface protocol model through the hardware interface 102 and sends the current information of the actual test device to the target interface protocol model. The interface protocol configuration unit 202 is connected to the device simulation model 1032 and is used to connect the device simulation model 1032 with the actual test device 101.

[0034] The interface protocol model 1031 is a model established for the interface protocols between different devices in the train control simulation test system 10, and models each interface protocol according to preset configuration data. For example, the relevant configuration data of the hardware interface 102 can be initialized in the hardware interface configuration unit 201 for the invocation of the hardware interface 102, etc. The hardware interface 102 is connected to the interface protocol model 1031 through the hardware interface configuration unit 201, thereby realizing the connection between the actual test device 101 and the device simulation model 1032. The interface protocol configuration unit 202 in the interface protocol model 1031 can be connected to the hardware interface configuration unit 201 to receive the current information of the actual test device 101 and send it to the device simulation model 1032. The interface protocol configuration unit 202 may include a transport layer, a network layer, a security layer, and an application layer. The transport layer and the network layer can be used for the initialization of communication configuration and the establishment, maintenance, and deletion of channels, etc.; the security layer can be used to parse and obtain application data and encapsulate the application data; the application layer can be used to parse and obtain protocol fields and encapsulate the protocol fields.

[0035] According to communication requirements, the user configures the device simulation model 1032 and presets interface protocol configuration information. The device simulation model 1032 can call an appropriate interface protocol model 1031 according to the configuration information as the target interface protocol model. In this embodiment, by configuring the interface protocol model 1031 and the device simulation model 1032, the interface protocol part and the model logic part of the device simulation are decoupled. The model logic part can be written with fixed code for logical functions, and the interface protocol part can be modified in real time according to the configuration file. When the communication between multiple devices multiplexes the same interface protocol or the protocols are similar, the existing interface protocol model can be directly reused or slightly modified by reusing the configuration file, increasing the module reuse rate and reducing the development cost. The highly configurable system adds configuration data to each device simulation model 1032, and can conveniently mix the unique signal devices and train control devices in different existing system formats through configuration, and conveniently construct a simulation system of a new system format. For the interface protocol that may change frequently, the system adds configuration data refined to the protocol fields for each interface protocol, and can quickly respond by modifying the configuration data, which has high application value.

[0036] In this embodiment, optionally, the line signal device simulation model is connected to the interaction terminal 104 and the interface protocol model 1031, and is used to respond to the system startup instruction of the interaction terminal 104, determine the target line signal device simulation model, determine the first target interface protocol model according to the preset interface protocol configuration information of the target line signal device simulation model, and call the first target interface protocol model;

[0037] The train control equipment simulation model is connected to the interactive terminal 104 and the interface protocol model 1031, and is used to respond to the system startup instruction of the interactive terminal 104, determine the target train control equipment simulation model, determine the second target interface protocol model according to the preset interface protocol configuration information of the target train control equipment simulation model, and call the second target interface protocol model;

[0038] The simulation vehicle is connected to the interactive terminal 104 and the interface protocol model 1031, and is used to respond to the system startup instruction of the interactive terminal 104, determine the target simulation vehicle, determine the third target interface protocol model according to the preset interface protocol configuration information of the target simulation vehicle, and call the third target interface protocol model.

[0039] Specifically, the equipment simulation model 1032 may include a line signal equipment simulation model, a train control equipment simulation model, and a simulation vehicle. The user can issue a system startup instruction on the interactive terminal. The system startup instruction may include the equipment simulation model 1032 selected by the user as the target equipment simulation model. The target equipment simulation model may be a target line signal equipment simulation model, a target train control equipment simulation model, and a target simulation vehicle. For example, the line signal equipment simulation model in the equipment simulation model 1032 responds to the system startup instruction of the interactive terminal 104, and determines the target line signal equipment simulation model from multiple line signal equipment simulation models. According to the preset interface protocol configuration information of the target line signal equipment simulation model, the first target interface protocol model is determined from the interface protocol model 1031, and the first target interface protocol model can be called. The interface protocol configuration information may be sent by the user to the equipment simulation model 1032 for determining the target interface protocol model. The train control equipment simulation model in the equipment simulation model 1032 can also respond to the system startup instruction of the interactive terminal 104 to determine the target train control equipment simulation model. According to the preset interface protocol configuration information in the target train control equipment simulation model, the second target interface protocol model is determined from the interface protocol model 1031, and the second target interface protocol model is called. The simulation vehicle can also respond to the system startup instruction of the interactive terminal 104 to determine the target simulation vehicle, and determine the third target interface protocol model from the interface protocol model 1031 according to the preset interface protocol configuration information in the target simulation vehicle, and call the third target interface protocol model. The user can also send a test instruction to the actual test equipment 101 to determine the actual test equipment 101 and the hardware interface 102.

[0040] Therefore, the complete test environment of the train control simulation test system may include actual test equipment 101, a hardware interface 102, a target line signal equipment simulation model, a target train control equipment simulation model, a target simulation vehicle, a first target interface protocol model, a second target interface protocol model, a third target interface protocol model, and an interaction terminal. In this embodiment, the target line signal equipment simulation model, the target train control equipment simulation model, and the target simulation vehicle may be increased or decreased according to test requirements, and the corresponding first target interface protocol model, second target interface protocol model, and third target interface protocol model may also be increased or decreased. Through preset interface protocol configuration information, the interface protocol model 1031 and the equipment simulation model 1032 can be flexibly matched to improve the flexibility and efficiency of train control system testing.

[0041] In this embodiment, optionally, the actual test equipment 101 is connected to the third target interface protocol model through the hardware interface 102 and is connected to the target simulation vehicle through the third target interface protocol model for sending the current information of the actual test equipment to the target simulation vehicle.

[0042] The target simulation vehicle is connected to the target line signal equipment simulation model and the target train control equipment simulation model for obtaining the current information of the target line signal equipment simulation model and the target train control equipment simulation model, and sending the current information of the actual test equipment 101, the target line signal equipment simulation model, and the target train control equipment simulation model to the interaction terminal 104 for testing by the interaction terminal 104.

[0043] Specifically, the interaction terminal 104 may perform tests according to the current information of the actual test equipment and the current information of the equipment simulation model. The current information of the equipment simulation model may include the current information of the target simulation vehicle, the current information of the target line signal equipment simulation model, and the current information of the target train control equipment simulation model. The target simulation vehicle may uniformly send the current information of the actual test equipment and the current information of the equipment simulation model to the interaction terminal 104. That is, the actual test equipment 101 may send the current information of the actual test equipment to the target simulation vehicle through the hardware interface 102 and the third target interface protocol model. The line signal equipment simulation model, the train control equipment simulation model, and the simulation vehicle may also communicate with each other. The target line signal equipment simulation model and the target train control equipment simulation model may send their own current information to the target simulation vehicle, and the target simulation vehicle may send all the received information to the interaction terminal 104.

[0044] In the embodiment of the present invention, the configuration of the communication interface protocol is determined through the preset interface protocol configuration information, achieving the effect that when the interface protocol needs to be changed, the logic code is not modified or slightly modified, and mainly adapting to the change by modifying the protocol configuration information, reducing the repetitive development work and improving the change response speed, and enhancing the flexibility of protocol adaptation. Moreover, the interface protocol model can serve as a communication bridge between the hardware interface and the device simulation model, enabling the interactive terminal to obtain the current information of the actual test device and the current information of the device simulation model, and constructing a complete test environment for testing. Decoupling the two parts of the device simulation model and the interface protocol model improves the modularity of the system. When the communication between multiple devices reuses the same interface protocol or the protocols are similar, the existing interface protocol model can be directly reused or slightly modified by modifying the configuration file, increasing the module reuse rate and reducing the development cost. Through configuration, the simulation devices in different existing system formats can be conveniently mixed to flexibly construct a simulation system of a new system format, improving the test efficiency of train control simulation. The simulation vehicle sends each piece of current information to the interactive terminal, which can avoid the situation where each simulation device transmits the current information to the interactive terminal, causing information chaos, and improving the test accuracy of the train control system.

[0045] Embodiment III

[0046] Figure 3 FIG. is a schematic structural diagram of a train control simulation test system provided according to an embodiment of the present application, and is further optimized based on the above embodiment. As Figure 3 shown, the train control simulation test system 10 further includes a communication support module 105.

[0047] The device simulation model 1032 is connected to the communication support module 105 and is used for data interaction between the device simulation models 1032 through the communication support module 105.

[0048] Data interaction can occur between device simulation models 1032 through communication support module 105. They can also send their respective current information to communication support module 105, and send the current information of the actual test device received to communication support module 105. For example, the target line signal device simulation model and the target train control device simulation model can send their current information to the target simulation vehicle through the communication support module. The actual test device 101 can send the current information to the target simulation vehicle through the hardware interface 102 and the third target interface protocol model. After receiving the current information of each device, the target simulation vehicle sends the received current information and its own current information to the interaction terminal 104 for testing. For example, the device simulation models 1032 exchange data with each other through communication support module 105. The target simulation vehicle receives the data of the current information, completes the calculation of the positional relationship between the target simulation vehicle and the line, and sends the calculation result to the interaction terminal 104. The user can obtain the graphical calculation result through the interface of the interaction terminal 104. For example, the user can obtain the state of the line signal device simulation model and the vehicle state, etc., and perform control to construct a test scenario.

[0049] In this embodiment, optionally, the communication support module 105 is connected to the device simulation model 1032 and the interaction terminal 104, and is used to obtain the current information of the actual test device and the current information of the device simulation model transmitted by the device simulation model 1032, and send the current information of the actual test device and the current information of the device simulation model to the interaction terminal 104.

[0050] Specifically, the communication support module 105 can be used to receive the information transmitted by each device simulation model 1032 and send all the obtained information to the interaction terminal 104. It can also be that the target simulation vehicle receives the current information of the actual test device 101, as well as the current information of the target line signal device simulation model and the target train control device simulation model, and transfers the received information to the communication support module 105, and the communication support module 105 transfers the information to the interaction terminal 104. The communication support module 105 can calculate the received information to obtain the positional relationship between the target simulation vehicle and the line, etc., and send the calculation result to the interaction terminal 104. The device simulation models 1032 exchange data with each other through the communication support module 105 to avoid omission of calculation data and improve the accuracy of test calculation. The communication support module 105 uniformly transmits data to the interaction terminal 104 to improve the efficiency of data transmission.

[0051] In the embodiments of the present invention, the devices to be simulated in the train control system and the interfaces for external communication are separately modeled to obtain device simulation models and interface protocol models. By determining the configuration of the communication interface protocol through the preset interface protocol configuration information, when it is necessary to change the interface protocol, the logic code is not modified or slightly modified, and the change is mainly adapted by modifying the protocol configuration information, achieving the effects of reducing repetitive development work and improving the change response speed. Moreover, the interface protocol model can serve as a communication bridge between the hardware interface and the device simulation model. The interaction terminal can obtain the current information of the actual test device and the current information of the device simulation model through the communication support module to construct a complete test environment for testing. This solves the problem in the prior art that whenever the test environment is changed, the test code needs to be rewritten again. The device simulation model and the interface protocol model are decoupled, improving the modularity of the system. When the communication between multiple devices reuses the same interface protocol or the protocols are similar, the configuration file can be directly reused or slightly modified, and the existing interface protocol model can be reused, increasing the module reuse rate and reducing the development cost. Through configuration, the simulation devices in different existing system formats can be conveniently mixed to flexibly construct a simulation system of a new system format, improving the test efficiency and accuracy of train control simulation.

[0052] Embodiment 4

[0053] Figure 4 It is a schematic flowchart of a train control simulation test method provided by an embodiment of the present application. This embodiment is used for the situation of testing train equipment through a train control simulation test system. This method can be executed by a train control simulation test system, which includes an actual test device, a hardware interface, a simulation test module, and an interaction terminal. The actual test device is connected to the simulation test module through the hardware interface, and the simulation test module is connected to the interaction terminal. The simulation test module includes at least one device simulation model and at least one interface protocol model. The device where this system is located can be implemented in a software and / or hardware manner and can be integrated into an electronic device with computing capabilities. As Figure 4 shown, a train control simulation test method provided by this embodiment may include:

[0054] Step 410: The device simulation model determines the target interface protocol model according to the preset interface protocol configuration information and connects to the target interface protocol model.

[0055] Among them, when the user configures the device simulation model, the interface protocol configuration information of the device simulation model can be pre-configured. After receiving its own interface protocol configuration information, the device simulation model determines the interface protocol model that can be called as the target interface protocol model. That is, the device simulation model calls the appropriate target interface protocol model according to the configuration and connects to the target interface protocol model. In this embodiment, the modeling of separating the functional logic and communication interface of the simulation devices in the train control simulation test system is carried out. The functional logic can be a preset fixed logic, and the communication interface can be adjusted according to the configuration of the interface protocol. Configuration data is added to the separated interface protocol model, and the configuration items include but are not limited to hardware interface-related configuration data, transport layer / network layer communication configuration, security layer communication configuration, and application layer interaction data configuration, etc., and the modeling granularity is refined to the smallest protocol field. It realizes that the user can change the connection between the device simulation model and the interface protocol model, as well as the interaction logic and data control only by changing the configuration data of the communication interface, improving the test efficiency.

[0056] In this embodiment, the actual test devices include actual signal devices, actual train control devices, and actual on-vehicle devices; the device simulation models include line signal device simulation models, train control device simulation models, and simulation vehicles;

[0057] Correspondingly, the device simulation model determines the target interface protocol model according to the preset interface protocol configuration information and connects to the target interface protocol model, including: the line signal device simulation model is connected to the interaction terminal and the interface protocol model, responds to the system startup instruction of the interaction terminal, determines the target line signal device simulation model, determines the first target interface protocol model according to the preset interface protocol configuration information of the target line signal device simulation model, and calls the first target interface protocol model;

[0058] The train control device simulation model is connected to the interaction terminal and the interface protocol model, responds to the system startup instruction of the interaction terminal, determines the target train control device simulation model, determines the second target interface protocol model according to the preset interface protocol configuration information of the target train control device simulation model, and calls the second target interface protocol model;

[0059] The simulation vehicle is connected to the interaction terminal and the interface protocol model, responds to the system startup instruction of the interaction terminal, determines the target simulation vehicle, determines the third target interface protocol model according to the preset interface protocol configuration information of the target simulation vehicle, and calls the third target interface protocol model.

[0060] Specifically, different device simulation models can be connected to different interface protocol models, and the connection relationship between the device simulation model and the interface protocol model can be determined by preset interface protocol configuration information. For interface protocols that may change frequently, the system can add configuration data for each interface protocol down to the protocol fields, and quickly respond to the appropriate target interface protocol model by modifying the configuration data. In a complete test environment, different types of device simulation models can be deleted or added as needed. For example, there can be a line signal device simulation model, a train control device simulation model, and a simulation vehicle, or there can be only a simulation vehicle, etc. By way of example, the actual test device is an on-vehicle device, that is, the on-vehicle device needs to be tested. The on-vehicle device is a device installed on a train. Therefore, the device simulation model can be a simulation vehicle and a train control device simulation model on the ground. According to the preset interface protocol configuration information, determine the second target interface protocol model and the third target interface protocol model, call the second target interface protocol model and the third target interface protocol model, realize the connection between the simulation vehicle and the on-vehicle device, and construct a complete test environment.

[0061] Step 420: The actual test device is connected to the target interface protocol model through the hardware interface, and data interaction is performed with the device simulation model through the target interface protocol.

[0062] Among them, after the target interface protocol model is determined, the actual test device can be connected to the target interface protocol model through the hardware interface. The train control simulation test system can be divided into a device interface layer, a simulation layer, and a user interface layer. The device interface layer consists of the actual test device and the hardware interface. The hardware interface provides a hardware interface channel for the actual test device for the simulation layer to call. The simulation layer consists of the device simulation model and the interface protocol model, and provides the simulation logic of devices that are not available in kind in the laboratory, such as trains, tracks, and signal lights, etc. Between each device simulation model, and between the device simulation model and the actual test device, they can interact with each other to construct a complete semi-physical train control system for simulating and testing the operation of the train control system (including the train running on the line, the train control device controlling the train, etc.). That is, the actual test device can send the current information of the actual test device to the device simulation model. The device simulation model can also send the current information of the device simulation model to the actual test device, so that the actual test device operates according to the current information of the device simulation model, and realizes the data interaction between the device simulation model and the actual test device. Specifically, the actual test device can include a data sending unit and a data receiving unit. The data sending unit can send the current information of the actual test device to the target interface protocol model through the hardware interface, and the target interface protocol model can send the current information of the actual test device to the device simulation model. The data receiving unit can receive the current information of the device simulation model sent by the target interface protocol model through the hardware interface, and the current information of the device simulation model is sent by the device simulation model to the target interface protocol model.

[0063] The user interface layer can be composed of interactive terminals, providing a graphical interface to display the devices and status of simulation modeling, and can also provide interfaces for scenario construction and fault injection, etc.

[0064] In this embodiment, optionally, the interface protocol model includes a hardware interface configuration unit and an interface protocol configuration unit; correspondingly, the actual test device is connected to the target interface protocol model through the hardware interface and conducts data interaction with the device simulation model through the target interface protocol, including: the hardware interface configuration unit calls the hardware interface for the actual test device to be connected to the target interface protocol model through the hardware interface and sends the current information of the actual test device to the target interface protocol model; the interface protocol configuration unit sends the current information of the actual test device to the device simulation model.

[0065] Specifically, the actual test device accesses the simulation test environment of the train control system through the hardware interface, and the hardware interface includes but is not limited to interfaces such as relays, serial ports, and Ethernet. The hardware interface is connected to the interface protocol model, and the interface protocol model is a communication bridge between the hardware interface and the device simulation model. The actual test device is connected to the interface protocol model through the hardware interface unit, and the interface protocol model is connected to the device simulation model through the interface protocol configuration unit, realizing that the actual test device sends its own current information to the device simulation model, enabling the device simulation model to determine test data such as the position relationship between the simulation vehicle and the line according to the current information of the actual test device and its own current information of the device simulation model. Decoupling the interface protocol part and the fixed model logic of the device simulation improves the modularity of the system, and users only need to adjust the configuration file of the interface protocol part. When the communication between multiple devices reuses the same interface protocol or the protocols are similar, the configuration file can be directly reused or slightly modified to reuse the existing interface protocol model, increasing the module reuse rate and reducing the development cost. The highly configurable system adds configuration data to each device simulation model, and can conveniently mix unique signal devices and train control devices in different existing system formats through configuration, facilitating the construction of a simulation system of a new system format. For the interface protocol that may change frequently, the system adds configuration data refined to the protocol fields for each interface protocol, and can quickly respond by modifying the configuration data, which has high application value.

[0066] In this embodiment, the actual test device is connected to the target interface protocol model through the hardware interface and sends the current information of the actual test device to the target interface protocol model, and the target interface protocol model sends the current information of the actual test device to the device simulation model, including: the actual test device is connected to the third target interface protocol model through the hardware interface, is connected to the target simulation vehicle through the third target interface protocol model, and sends the current information of the actual test device to the target simulation vehicle.

[0067] Specifically, data interaction can occur between each device simulation model. The actual test device does not need to send the current information of the actual test device to each device simulation model. For example, it can only send the current information of the actual test device to the target simulation vehicle, avoiding chaos in the data transmission process and preventing errors in the test data.

[0068] Step 430: The device simulation model is connected to the interaction terminal, and the current information of the device simulation model and the currently received actual test device information are sent to the interaction terminal. The interaction terminal conducts tests based on the current information of the actual test device and the device simulation model.

[0069] Among them, the device simulation model can send the current information of the device simulation model, such as the state of the line signal device simulation model and the vehicle state, to the interaction terminal. The interaction terminal can control the test process and construct a test scenario.

[0070] In this embodiment, optionally, the device simulation model is connected to the interaction terminal, and the current information of the actual test device and the device simulation model is sent to the interaction terminal. The interaction terminal conducts tests based on the current information of the actual test device and the device simulation model, including: The target simulation vehicle is connected to the target line signal device simulation model and the target train control device simulation model, obtains the current information of the target line signal device simulation model and the target train control device simulation model, and sends the current information of the actual test device, the target line signal device simulation model, and the target train control device simulation model to the interaction terminal for testing by the interaction terminal.

[0071] Specifically, in the case of multiple device simulation models, it is not necessary for each device simulation model to transmit information to the interaction terminal. For example, the target line signal device simulation model is initialized, and the target train control device simulation model is initialized. Then the user can select the target simulation vehicle, and the target line signal device simulation model and the target train control device simulation model can send their current information to the target simulation vehicle. The target simulation model can calculate the position relationship between the vehicle and the line based on the received information and can send the calculation result and the received information to the interaction terminal. Then the interaction terminal controls the test, and the received information can be the state of the device simulation model and the state of the actual test device, etc.

[0072] In this embodiment, optionally, the train control simulation test system further includes a communication support module;

[0073] Correspondingly, before the device simulation model sends the current information of the actual test device and the device simulation model to the interaction terminal, it further includes: The device simulation model conducts data interaction between device simulation models through the communication support module.

[0074] Specifically, the device simulation model is connected to the communication support module, and data interaction can be carried out through the communication support module to complete the calculation of the positional relationship between the simulated vehicle and the line, etc.

[0075] In this embodiment, optionally, the device simulation model is connected to the interaction terminal, and the current information of the actual test device and the current information of the device simulation model are sent to the interaction terminal. It further includes: the communication support module is connected to the device simulation model and the interaction terminal, obtains the current information of the actual test device and the current information of the device simulation model transmitted by the device simulation model, and sends the current information of the actual test device and the current information of the device simulation model to the interaction terminal.

[0076] Specifically, each device simulation model can send its own current information of the device simulation model and the current information of the actual test device received to the communication support module, and the communication support module sends them to the interaction terminal uniformly, avoiding chaos in the data transmission process and causing data loss.

[0077] The technical solution of this embodiment separates and models the devices to be simulated in the train control system and the interfaces for external communication to obtain the device simulation model and the interface protocol model. By determining the configuration of the communication interface protocol through the preset interface protocol configuration information, when it is necessary to change the interface protocol, the logic code is not modified or slightly modified, and mainly the protocol configuration information is modified to adapt to the change, achieving the effects of reducing repetitive development work and improving the change response speed. And the interface protocol model can serve as a communication bridge between the hardware interface and the device simulation model, enabling the interaction terminal to obtain the current information of the actual test device and the current information of the device simulation model, and constructing a complete test environment for testing. It solves the problem in the prior art that the test code needs to be rewritten every time the test environment is changed, decouples the device simulation model and the interface protocol model, improves the modularity of the system. When the communication between multiple devices reuses the same interface protocol or the protocols are similar, the existing interface protocol model can be directly reused or slightly modified, increasing the module reuse rate and reducing the development cost. Through configuration, the simulation devices in different existing system formats can be conveniently mixed to flexibly construct a simulation system of a new system format, improving the test efficiency of train control simulation.

[0078] Note that the above is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described here, and various obvious changes, re-adjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A train control simulation test system, characterized in that It includes an actual test device, a hardware interface, a simulation test module, and an interaction terminal. The actual test device is connected to the simulation test module through the hardware interface, and the simulation test module is connected to the interaction terminal; The simulation test module includes at least one device simulation model and at least one interface protocol model. The device simulation model is used to determine a target interface protocol model according to the preset interface protocol configuration information and connect to the target interface protocol model; The actual test device is connected to the target interface protocol model through the hardware interface and is used to perform data interaction with the device simulation model through the target interface protocol; The device simulation model is connected to the interaction terminal and is further used to send the current information of the device simulation model and the current information of the actual test device received to the interaction terminal. The interaction terminal performs tests according to the current information of the actual test device and the current information of the device simulation model.

2. The system according to claim 1, wherein The actual test device includes a data sending unit and a data receiving unit; The data sending unit is used to send the current information of the actual test device to the target interface protocol model through the hardware interface, and the target interface protocol model sends the current information of the actual test device to the device simulation model; The data receiving unit is used to receive the current information of the device simulation model sent by the target interface protocol model through the hardware interface. The current information of the device simulation model is sent by the device simulation model to the target interface protocol model.

3. The system according to claim 1, characterized in that, The actual test device includes an actual signal device and an actual train control device; the device simulation model includes a line signal device simulation model, a train control device simulation model, and a simulation vehicle.

4. The system according to claim 1, characterized in that, The interface protocol model includes a hardware interface configuration unit and an interface protocol configuration unit; The hardware interface configuration unit is connected to the hardware interface and is used to call the hardware interface. The actual test device is connected to the target interface protocol model through the hardware interface and sends the current information of the actual test device to the target interface protocol model; The interface protocol configuration unit is connected to the device simulation model and is used to send the current information of the actual test device to the device simulation model.

5. The system according to claim 3, wherein The line signal device simulation model is connected to the interaction terminal and the interface protocol model, and is used to respond to the system startup instruction of the interaction terminal, determine the target line signal device simulation model, determine the first target interface protocol model according to the preset interface protocol configuration information of the target line signal device simulation model, and call the first target interface protocol model; The train control device simulation model is connected to the interaction terminal and the interface protocol model, and is used to respond to the system startup instruction of the interaction terminal, determine the target train control device simulation model, determine the second target interface protocol model according to the preset interface protocol configuration information of the target train control device simulation model, and call the second target interface protocol model; The simulation vehicle is connected to the interaction terminal and the interface protocol model, and is used to respond to the system startup instruction of the interaction terminal, determine the target simulation vehicle, determine the third target interface protocol model according to the preset interface protocol configuration information of the target simulation vehicle, and call the third target interface protocol model.

6. The system according to claim 5, wherein The actual test device is connected to the third target interface protocol model through the hardware interface, and is connected to the target simulation vehicle through the third target interface protocol model, and is used to send the current information of the actual test device to the target simulation vehicle; The target simulation vehicle is connected to the target line signal device simulation model and the target train control device simulation model, and is used to obtain the current information of the target line signal device simulation model and the target train control device simulation model, and send the current information of the actual test device, the target line signal device simulation model and the target train control device simulation model to the interaction terminal for testing by the interaction terminal.

7. The system according to claim 1, wherein The train control simulation test system further includes a communication support module; The device simulation model is connected to the communication support module and is used to perform data interaction between the device simulation models through the communication support module.

8. The system according to claim 7, wherein The communication support module is connected to the device simulation model and the interaction terminal, and is used to obtain the current information of the actual test device and the current information of the device simulation model transmitted by the device simulation model, and send the current information of the actual test device and the current information of the device simulation model to the interaction terminal.

9. A train control simulation test method, characterized in that, Executed by a train control simulation test system, the train control simulation test system includes an actual test device, a hardware interface, a simulation test module and an interaction terminal. The actual test device is connected to the simulation test module through the hardware interface, and the simulation test module is connected to the interaction terminal. The simulation test module includes at least one device simulation model and at least one interface protocol model; the method includes: The device simulation model determines the target interface protocol model according to the preset interface protocol configuration information and connects to the target interface protocol model; The actual test device is connected to the target interface protocol model through the hardware interface and performs data interaction with the device simulation model through the target interface protocol; The device simulation model is connected to the interaction terminal and sends the current information of the device simulation model and the current information of the actual test device received to the interaction terminal, and the interaction terminal performs testing according to the current information of the actual test device and the current information of the device simulation model.

10. The method according to claim 9, wherein The interface protocol model includes a hardware interface configuration unit and an interface protocol configuration unit; Correspondingly, the actual test device is connected to the target interface protocol model through the hardware interface and performs data interaction with the device simulation model through the target interface protocol, including: The hardware interface configuration unit calls the hardware interface for the actual test device to connect to the target interface protocol model through the hardware interface and send the current information of the actual test device to the target interface protocol model; The interface protocol configuration unit sends the current information of the actual test device to the device simulation model.

Citation Information

Patent Citations

  • Train test simulation platform and train test method using same

    CN110849640A

  • Test platform for carrying out simulation experiment on subway vehicle-mounted ATC system

    CN214751849U