Portable train full-system simulation test method and system

Through the full-system simulation testing method and system of portable trains, using Ethernet connection and configuration file simulation, the high cost and complexity of simulation testing of rail transit train control system are solved, and an efficient and simple test environment is achieved.

CN119690047AInactive Publication Date: 2025-03-25青岛富欣城轨科技有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411856691.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-03-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the complete vehicle control of rail transit trains, the prior art is difficult to effectively reduce the cost and complexity of simulation testing of train control systems built in real environments.

Method used

The portable train full-system simulation test method and system is adopted. This method connects the main test equipment and accompanying test equipment through Ethernet, uses simulation software to replace real hardware equipment, uses configuration files to complete the simulation of each device, and supports multiple communication protocols.

Benefits of technology

It greatly reduces the testing cost of the train control system, simplifies the construction of the test environment, improves the operability and scalability of the test, and can conduct one-to-one system testing and many-to-one system testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690047A_ABST
    Figure CN119690047A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of rail transit vehicles, and discloses a portable train full-system simulation test method and system. According to the method, in the same local area network, a main testing device and one or more auxiliary testing devices are connected through the Ethernet, and the same communication protocol is used when the multiple auxiliary testing devices communicate with the main testing device; the test accompanying device reads a configuration file in a certain format through built-in test accompanying software, and automatically generates a corresponding display interaction interface according to the configuration file; according to the test content, a user inputs related data, and the data is sent to the Ethernet network through the accompanying test software and is received by the main test equipment; and after the main test equipment performs logic processing, a logic result is sent to the Ethernet network, and the accompanying test software receives and displays the logic result. According to the invention, one-to-one system testing and many-to-one system testing can be carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of rail transit vehicles, and in particular relates to a portable train full-system simulation test method and system. Background Art

[0002] As the level of intelligence of rail transit trains gradually improves, the amount of train control data increases further, and real-time Ethernet technology is rapidly used on trains. The train TCMS system uses real-time Ethernet as the communication basis to build the entire communication network of the train. The train's traction system, braking system, on-board signal system, door system, air conditioning system, passenger information service system, etc. are all connected to this network, communicating with each other to complete the train control of the entire vehicle.

[0003] In order to ensure the safety and reliability of the train control, the control logic of each system of the train needs to be tested during the development and maintenance process. It is necessary to build a simulation test environment between the control systems of the train. However, the actual construction of a 1:1 test environment will increase the cost of the test environment, the site, and the maintenance workload as the number of projects increases. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the disclosed embodiment of the present invention provides a portable train full system simulation test method and system, especially a train control and management system (TCMS) which uses real-time Ethernet as the communication basis to communicate with other train control systems such as train traction system, braking system, on-board signal system, etc. The present invention is suitable for testing between various control systems of a train.

[0005] The technical solution is as follows: A portable train full system simulation test method, comprising:

[0006] S1, in the same local area network, the main test device and one or more accompanying test devices are connected through Ethernet, and the same communication protocol is used when multiple accompanying test devices communicate with the main test device;

[0007] S2, the accompanying test device reads the configuration file through the built-in accompanying test software, and automatically generates the corresponding display interaction interface according to the configuration file;

[0008] S3, according to the test content, the user inputs relevant data, and the data is sent to the Ethernet network through the accompanying test software and received by the main test device;

[0009] S4, after the main test device performs logic processing, it sends the logic result to the Ethernet network, which is received and displayed by the accompanying test software.

[0010] In step S1, the communication protocol includes: UDP, TCP / IP or TRDP.

[0011] In step S1, when the main test device communicates with multiple companion test devices, an Ethernet switch is also required for communication.

[0012] In step S2, the accompanying test software periodically sends and receives data on the Ethernet bus and displays it in real time.

[0013] In steps S1-S2, the companion device simulates multiple devices according to different ports in the configuration file; or outputs different types of control variables according to different data types.

[0014] In steps S1-S2, the accompanying test equipment automatically generates relevant test data according to a regular pattern.

[0015] Furthermore, the accompanying test equipment is a traction system and a braking system, the main test equipment is a TCMS controller, and the portable train full system simulation test method performed includes:

[0016] (1) Use two accompanying test PC devices to replace the traction system and the braking system. The two accompanying test PC devices and the TCMS controller are connected to the Ethernet switch at the same time, and the device IP is set;

[0017] (2) According to the communication protocol between the traction system and the TCMS system, and between the braking system and the TCMS system, use Python to generate two configuration XML files;

[0018] (3) The accompanying test software of the two accompanying test PC devices updates a copy of the xml configuration file in step (2) respectively, starts the accompanying test software, and the accompanying test software receives the relevant data of the TCMS controller;

[0019] (4) According to the logic function requirements, relevant data is input into the two accompanying test software, and after the logic processing of the TCMS controller, the logic results are received in the accompanying test software to test each logic function.

[0020] Another object of the present invention is to provide a portable train full system simulation test system, which implements the portable train full system simulation test method, and the system comprises:

[0021] The accompanying test device reads a configuration file in a certain format through the built-in accompanying test software, and automatically generates a corresponding display interactive interface based on the configuration file; according to the test content, the user inputs relevant data, and the accompanying test software sends the data to the Ethernet network, which is received by the main test device;

[0022] Ethernet network, used to connect the companion test equipment and the main test equipment, and communicate using the communication protocol;

[0023] The main test device is used to logically process the information sent by the companion test device and then send the logical results to the Ethernet network, which are received and displayed by the companion test software.

[0024] Furthermore, the accompanying test device simulates multiple devices according to different ports in the configuration file; or outputs different types of control variables according to different data types; or automatically generates relevant test data volumes according to a regular pattern.

[0025] Furthermore, the portable train full-system simulation test system is mounted on a computer-readable storage medium, and the computer-readable storage medium stores a computer program, which can realize the functions of the above-mentioned portable train full-system simulation test system when executed by a processor.

[0026] Combining all the above technical solutions, the beneficial effects of the present invention are as follows: the present invention uses simulation software instead of real hardware devices, which greatly reduces the test cost of the train control system; the test environment is easy to build and has strong operability; the software uses configuration files to complete the simulation of each device, and has strong scalability. The present invention proposes a simple and reliable simulation test method for simulation testing between various train systems based on real-time Ethernet communication, which can perform one-to-one system testing and many-to-one system testing.

[0027] The test method of the present invention can be promoted for use in the rail transit industry and can facilitate testing by various controller manufacturers. The present invention gets rid of the equipment cost and environmental cost brought by physical testing, and can complete the test using a personal computer. The communication method has a wide range of applications and eliminates the problem of needing to build different environments under different communication methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure;

[0029] Figure 1 is a flow chart of a portable train full system simulation test method provided by an embodiment of the present invention;

[0030] Figure 2 is a one-to-one test flow chart provided by an embodiment of the present invention;

[0031] Figure 3 is a one-to-many test flow chart provided by an embodiment of the present invention;

[0032] Figure 4 It is a display interactive interface effect diagram provided by an embodiment of the present invention; DETAILED DESCRIPTION

[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific implementation disclosed below.

[0034] The innovation of the present invention lies in that the simulation test method provided by the present invention can adapt to different communication modes, such as UDP or TCP / IP or TRDP; the test method is simple, the environment is easy to build, and the accompanying test device (such as a personal computer) can be directly connected to the main test device; the configuration file is used to complete the data filling of the accompanying test object, and the test method has strong applicability.

[0035] Embodiment 1, as Figure 1 As shown, the portable train full system simulation test method provided by the embodiment of the present invention includes:

[0036] S1, in the same local area network, the main test device and one or more accompanying test devices are connected through Ethernet, and the same communication protocol is used when multiple accompanying test devices communicate with the main test device;

[0037] S2, the accompanying test device reads the configuration file through the built-in accompanying test software, and automatically generates the corresponding display interaction interface according to the configuration file;

[0038] S3, according to the test content, the user inputs relevant data, and the data is sent to the Ethernet network through the accompanying test software and received by the main test device;

[0039] S4, after the main test device performs logic processing, it sends the logic result to the Ethernet network, which is received and displayed by the accompanying test software.

[0040] Specifically, the portable train full system simulation test method provided by the embodiment of the present invention can perform one-to-one testing, such as Figure 2 ; You can also perform many-to-one testing, such as Figure 3 ,The equipment involved includes the accompanying test equipment and the main test equipment. An Ethernet switch is used for the many-to-one system test;

[0041] The companion test device and the main test device are connected via Ethernet and use the same communication protocol, such as UDP or TCP / IP or TRDP. At the same time, the devices need to be in the same local area network to ensure normal communication.

[0042] The device to be tested can be an ordinary Windows system PC or an industrial device with a display screen and interactive operation under the Linux system. The device to be tested is built-in with a green and installation-free software for being tested, which is a self-developed software based on this method. It can read configuration files in a certain format, and the configuration file format is:

[0043] <?xml version="1.0"encoding="utf-8"?>

[0044] <CTCMS CCU ID="1"Name="CTCMS CCU">

[0045] <output childtype="ctcms item">

[0046] <CTCMs Item ID="1" Description="Life signal byte" Byte offset="0" Bit offset="0” Type="3” NameStr="TCIR LIFESIGNAL HIGH"

[0047] < / output>

[0048] <input ChildType="CTCMS Item">

[0049] <CTCNs Item ID-"1"Description="Life signal byte"Byteffset="0"Bitoffset="0”Type="3”Default="0”NameStr="LIFESIGNAL HIGH" / >

[0050]

[0051] < / CTCMS CCU>

[0052] The configuration file is in xml format. The software obtains the offset bytes, offset bits, data types, etc. of the data according to the keywords in the xml; according to the configuration file, the software for being tested can automatically generate a corresponding display and interaction interface. The display and interaction interface is as Figure 4 shown. The table part in the interaction interface corresponds to the data in the xml. According to whether the data configuration is input or output, the data selection is put into Input or Output. The Input interface is a data acquisition and display interface, which regularly sends and receives data on the Ethernet bus and displays it in real time. The OutPut interface is a data simulation sending interface, which cooperates with relevant value data controls, buttons, etc. to achieve data sending.

[0053] According to the test content, the user can input relevant data. After clicking OK, the software for being tested can send the data to the network for the main testing device to receive;

[0054] After being processed by the application software of the main testing device, the result is sent to the network again for the software for being tested to receive and display.

[0055] The accompanying test device can simulate multiple devices according to the different ports in the configuration file; it can also output different types of control variables according to different data types, such as Boolean, integer, etc.; for data with special requirements, such as data that increases by 1 every cycle, a special data type can be set, and the software can generate relevant test data according to the configured data type.

[0056] Example 2, as another implementation of the present invention, the portable train full system simulation test method provided in the embodiment of the present invention is applicable to the simulation test between various systems of the train, and the test objects can be freely matched according to the needs. The specific implementation process is as follows:

[0057] The companion test device and the main test device are connected via Ethernet and use the same communication protocol, such as UDP or TCP / IP or TRDP. At the same time, the devices need to be in the same local area network to ensure normal communication.

[0058] The companion test device has built-in companion test software, which can read configuration files in a certain format, automatically generate corresponding display interaction interfaces according to the configuration files, regularly send and receive data on the Ethernet bus, and display them in real time. According to the test content, the user can enter relevant data, and after clicking OK, the companion test software can send the data to the network, which will be received by the main test device. After the main test device performs logical processing, it will send the logical results to the network, which will be received and displayed by the companion test software.

[0059] The following uses the traction system and brake system as the accompanying test equipment and the TCMS controller as the main test equipment as an example to introduce the usage method. In order to be consistent with the actual situation as much as possible, the traction system and brake system are tested using two accompanying test equipment instead, including:

[0060] (1) Use two accompanying test PC devices to replace the traction system and brake system. The two accompanying test PC devices and the TCMS controller are connected to the Ethernet switch at the same time, and the device IP is set to ensure normal communication;

[0061] (2) According to the communication protocol between the traction system and the TCMS system, and between the braking system and the TCMS system, two configuration XML files are generated using Python: the protocol is usually in Excel format and does not contain information such as keywords. It does not conform to the XML format and cannot be used directly. Use Python to read the Excel content, add keywords according to the information in each column, and write the composed string into the XML file in XML format;

[0062] (3) The accompanying test software of the two accompanying test PC devices respectively use the XML configuration file in step (2) to copy and replace the existing XML file in the software path, start the accompanying test software, and the accompanying test software can receive the relevant data of the TCMS controller;

[0063] (4) According to the logic function requirements, relevant data is input into the two accompanying test software. After the logic processing of the TCMS controller, the logic results can be received in the accompanying test software, and the tests of various logic functions are carried out in this way.

[0064] Embodiment 2, the embodiment of the present invention provides a portable train full system simulation test system, the system comprising:

[0065] The accompanying test device reads a configuration file in a certain format through the built-in accompanying test software, and automatically generates a corresponding display interactive interface based on the configuration file; according to the test content, the user inputs relevant data, and the accompanying test software sends the data to the Ethernet network, which is received by the main test device;

[0066] Ethernet network, used to connect the companion test equipment and the main test equipment, and communicate using the communication protocol;

[0067] The main test device is used to logically process the information sent by the companion test device and then send the logical results to the Ethernet network, which are received and displayed by the companion test software.

[0068] The present invention is under the test environment for using TRDP as communication protocol, and advantage is obvious. Mostly the functional test based on TRDP agreement as communication, all use real TRDP equipment test, or purchase TRDP gateway equipment separately, or add communication board, cost is high, build environment trouble, the test software of the present invention, uses TRDP agreement to receive and send data, and can complete test without using special equipment, greatly reduces test cost.

[0069] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principles of the present invention should be covered within the protection scope of the present invention.

Claims

1. A portable train full system simulation test method, characterized in that: The method includes: S1, in the same local area network, the main test device and one or more accompanying test devices are connected through Ethernet, and the same communication protocol is used when multiple accompanying test devices communicate with the main test device; S2, the accompanying test device reads the configuration file through the built-in accompanying test software, and automatically generates the corresponding display interaction interface according to the configuration file; S3, according to the test content, the user inputs relevant data, and the data is sent to the Ethernet network through the accompanying test software and received by the main test device; S4, after the main test device performs logic processing, it sends the logic result to the Ethernet network, which is received and displayed by the accompanying test software.

2. The portable train full system simulation test method according to claim 1 is characterized in that: In step S1, the communication protocol includes: UDP, TCP / IP or TRDP.

3. The portable train full system simulation test method according to claim 1 is characterized in that: In step S1, when the main test device communicates with multiple companion test devices, an Ethernet switch is also required for communication.

4. The portable train full system simulation test method according to claim 1 is characterized in that: In step S2, the accompanying test software periodically sends and receives data on the Ethernet bus and displays it in real time.

5. The portable train full system simulation test method according to claim 1 is characterized in that: In steps S1-S2, the companion device simulates multiple devices according to different ports in the configuration file; or outputs different types of control variables according to different data types.

6. The portable train full system simulation test method according to claim 1 is characterized in that: In steps S1-S2, the accompanying test equipment automatically generates relevant test data according to a regular pattern.

7. The portable train full system simulation test method according to claim 1 is characterized in that: The accompanying test equipment is the traction system and the braking system, the main test equipment is the TCMS controller, and the portable train full system simulation test method performed includes: (1) Use two accompanying test PC devices to replace the traction system and the braking system. The two accompanying test PC devices and the TCMS controller are connected to the Ethernet switch at the same time, and the device IP is set; (2) According to the communication protocol between the traction system and the TCMS system, and between the braking system and the TCMS system, two configuration XML files are generated using Python; (3) The accompanying test software of the two accompanying test PC devices respectively updates a copy of the xml configuration file in step (2), starts the accompanying test software, and the accompanying test software receives the relevant data of the TCMS controller; (4) According to the logic function requirements, relevant data is input into the two accompanying test software, and after the logic processing of the TCMS controller, the logic results are received in the accompanying test software to test each logic function.

8. A portable train full system simulation test system, characterized in that: Implementing the portable train full system simulation test method as described in any one of claims 1 to 7, the system comprises: The accompanying test device reads a configuration file in a certain format through the built-in accompanying test software, and automatically generates a corresponding display interactive interface based on the configuration file; according to the test content, the user inputs relevant data, and the accompanying test software sends the data to the Ethernet network, which is received by the main test device; Ethernet network, used to connect the companion test equipment and the main test equipment, and communicate using the communication protocol; The main test device is used to logically process the information sent by the companion test device and then send the logical results to the Ethernet network, which are received and displayed by the companion test software.

9. The portable train full system simulation test system according to claim 8, characterized in that: The accompanying test device simulates multiple devices according to different ports in the configuration file; or outputs different types of control variables according to different data types; or automatically generates relevant test data according to a rule.

10. The portable train full system simulation test system according to claim 8, characterized in that: The portable train full-system simulation test system is mounted on a computer-readable storage medium, and the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the functions of the portable train full-system simulation test system can be realized.

Citation Information

Patent Citations

  • TCMS (Train Control and Monitoring System) testing system and method

    CN103676921A

  • Train control system software test system and method based on event and fault record data

    CN108804301A

  • Test device and system for train control and management system (TCMS)

    CN113055263A

  • Freight train automatic driving simulation test system and method

    CN113377026A

  • Rail train network system function automation test system and test method

    CN117499252A