| As a core subsystem of train operation control system, the Automatic Train Protection (ATP) system provides security for safe operation of the train. Each sub-module’s function and performance of the ATP system should be tested before formal application. Overall simulation and testing environment has been built, and designation for the software of the PC and the lower machine has been completed according to the testing requirements of on-board ATP in this paper. Function and performance of on-board ATP have been tested in the lab environment. The thesis was divided into following segments:(1) Firstly, the functional requirements of simulation and testing for on-board ATP of the train control system has been analyzed, a overall scheme of software design has been developed, and the test scripts and communication protocol has been completed.(2) Secondly, the overall framework and each function modules of the PC software have been designed in detail according to the overall design. The interface of the PC software has been designed and implemented by using C#. The design mainly involves five modules, including the executing script file module, the train operation module, the analog driving station operation module, the show module of testing results and communication module.(3) Thirdly, the overall framework and each function modules of the lower machine software have been designed in detail according to the overall design. The software for the speed board and the fama board which are needed to control by programming has been designed in detail. The speed board is used to collect speed information of the train by simulating speed sensors, and using obtained speed generates speed pulse that will be transmitted on-board ATP. The fama board is used to transmit information of the balise message and track circuit message to the on-board ATP by simulating BTM and TCR. Simultaneously equipment of on-board ATP were tested by the lower machine based on testing commands of the PC.(4) Lastly, the simulation and testing software of the train control system has been debugged, and equipment of on-board ATP has been tested. Debug results show that bilateral communication is normal between the PC and the lower machine. The Testing results show that the functions of on-board ATP are correctly, the availability of simulation and testing environment that is built in this paper has been verified. |