CN110442528B - Train control software cross-platform operation system and method based on safety computer simulation software - Google Patents

Train control software cross-platform operation system and method based on safety computer simulation software Download PDF

Info

Publication number
CN110442528B
CN110442528B CN201910772713.2A CN201910772713A CN110442528B CN 110442528 B CN110442528 B CN 110442528B CN 201910772713 A CN201910772713 A CN 201910772713A CN 110442528 B CN110442528 B CN 110442528B
Authority
CN
China
Prior art keywords
simulator
software
plug
communication
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910772713.2A
Other languages
Chinese (zh)
Other versions
CN110442528A (en
Inventor
杨凯
罗红磊
柯长博
耿宏亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan CRRC Times Signal and Communication Co Ltd
Original Assignee
Hunan CRRC Times Signal and Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan CRRC Times Signal and Communication Co Ltd filed Critical Hunan CRRC Times Signal and Communication Co Ltd
Priority to CN201910772713.2A priority Critical patent/CN110442528B/en
Publication of CN110442528A publication Critical patent/CN110442528A/en
Application granted granted Critical
Publication of CN110442528B publication Critical patent/CN110442528B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides a system and a method for cross-platform operation of train control software based on safe computer simulation software, wherein the system comprises the following steps: the system comprises train control host software, train control communication software, a host plug-in simulator, a communication plug-in simulator and an external interface simulator, wherein the train control host software and the host plug-in simulator are compiled together to generate a train control host software model, and the train control communication software and the communication plug-in simulator are compiled together to generate a train control communication software model. The system and the method can enable the train control software to run on the physical equipment and the computer configured in mainstream in a cross-platform manner without any change, thereby facilitating the construction of a test environment and getting rid of the restriction of hardware and space; breakpoint debugging is supported, rapid problem positioning can be achieved, and efficiency is improved; and the test time can be greatly shortened by merely increasing the number of test computers.

Description

Train control software cross-platform operation system and method based on safety computer simulation software
Technical Field
The invention relates to a rail transit signal system, in particular to the technical field of simulation test of the rail transit signal system.
Background
The train operation control system is a core safety system of the existing high-speed railway, and along with the acceleration of the construction pace of the high-speed railway, the requirements on various train control ground equipment, train control vehicle-mounted equipment and other related equipment are continuously increased.
In order to ensure the safety of the system, each new device needs to be fully tested before being equipped in the train control system to determine whether the new device meets the requirements of the train control system. With the development of computer simulation technology, the computer simulation technology can carry out digital simulation on the operation process and the operation state of a complex real system and carry out dynamic simulation tests under certain experimental conditions. Computer simulation has the advantages of no destruction, repeatability, safety, economy, no limitation of weather conditions and site space and the like, and is an important implementation tool of analysis, design, operation, evaluation and training systems, particularly complex systems.
Disclosure of Invention
The invention provides a method and a system for cross-platform operation of train control software based on safe computer simulation software, which solve the problem of testing the train control software under the condition of no host computer material object.
The invention provides a system for cross-platform operation of train control software based on safe computer simulation software, which comprises:
the system comprises train control host software, train control communication software, a host plug-in simulator, a communication plug-in simulator and an external interface simulator, wherein the train control host software and the host plug-in simulator are compiled together to generate a train control host software model, and the train control communication software and the communication plug-in simulator are compiled together to generate a train control communication software model;
the host plug-in simulator is configured to simulate an application programming interface of a safety computer, receive external data of the column control host software and forward the external data to the communication plug-in simulator, receive external interface data sent by the communication plug-in simulator and actively call the application programming interface by the column control host software to receive the external interface data;
the safety computer communication plug-in simulator is configured to simulate an application programming interface of a safety computer, receive the external interface data sent by the host plug-in simulator and actively call the application programming interface by the train control communication software to receive the data, receive the external data sent by the external interface simulator and actively call the application programming interface by the train control communication software to receive the data;
the external interface emulator is configured to emulate a hard-wired interface and a communication channel and to communicate with the communication plug-in emulator.
In one embodiment, the host plug-in emulator comprises:
an API simulation module configured to implement interface function functionality following interface definition simulation of secure computer software to provide consistent said API to said column control host software.
In one embodiment, the host plug-in emulator comprises:
the data receiving and transmitting module is configured to receive the external data of the column control host software and forward the external data to the communication plug-in simulator in a TCP/UDP network communication mode, and the data receiving and transmitting module is further configured to receive and cache the external interface data sent by the communication plug-in simulator in a TCP/UDP network communication mode, and the column control host software actively calls the application programming interface to receive the external interface data.
In one embodiment, the host plug-in emulator comprises:
the configuration information module simulates the hardware configuration function of the security computer platform in a configuration file form, and the host plug-in simulator acquires the configuration information in a mode of reading the configuration file.
In one embodiment, the configuration information includes one or more of: the device current type, the Ethernet configuration, the external device type, the application identifier, the VCP device information description and the flash simulation folder.
In one embodiment, the host plug-in emulator comprises:
the file operation module is configured to simulate an equipment file operation interface of the physical security computer platform, reads a flash simulation folder in the configuration file, and realizes the simulation of the file operation interface through the file operation of the folder and files thereof;
the file operation is divided into a file operation module in an initialization stage and a file operation in a periodic operation stage, the file operation is immediately executed in the initialization stage, and a file operation result can be known through a function return value; in the period operation stage, file operations applied by the train control host software are stored in the background, file reading and writing are carried out by a background thread so as to avoid the period extension caused by too slow operation, and the train control host software inquires the previous file operation state through a file handle state inquiry interface in the subsequent period.
In one embodiment, the communications plug-in emulator comprises:
an API simulation module configured to implement interface function functionality following interface definition simulation of secure computer software to provide consistent said API to said column control host software.
In one embodiment, the communications plug-in emulator comprises:
the system comprises a host plug-in simulator, a data receiving and transmitting module, a train control communication software and an application program interface, wherein the host plug-in simulator is used for receiving and caching external interface data sent by the host plug-in simulator in a TCP/UDP network communication mode, the application program interface is actively called by the train control communication software to receive the external interface data, the data receiving and transmitting module is further used for receiving and caching external data sent by the external interface simulator in a TCP/UDP network communication mode, and the application program interface is actively called by the train control communication software to receive the external data.
In one embodiment, the communications plug-in emulator comprises:
the configuration information module simulates the hardware configuration function of the security computer platform in a configuration file form, and the communication plug-in simulator acquires the configuration information in a mode of reading the configuration file.
In one embodiment, the configuration information includes the family of the communication plug-in, the external device number, the interface number, and the ethernet configuration for simulating the hardware interface channel and the communication channel.
The invention also provides a method for the cross-platform operation of the train control software based on the safe computer simulation software, which comprises the following steps:
providing a host plug-in emulator and a communication plug-in emulator;
providing train control host software and train control communication software;
providing an external interface simulator;
the host plug-in simulator simulates an application programming interface of a security computer, receives external data of the column control host software and forwards the external data to the communication plug-in simulator, receives external interface data sent by the communication plug-in simulator, and the column control host software actively calls the application programming interface to receive the external interface data;
the communication plug-in simulator of the safety computer is made to simulate an application programming interface of the safety computer, the external interface data sent by the host plug-in simulator is received, the column control communication software actively calls the application programming interface to receive the data, the external data sent by the external interface simulator is received, and the column control communication software actively calls the application programming interface to receive the data;
the external interface simulator simulates a hard wire interface and a communication channel and communicates with the communication plug-in simulator;
and compiling the column control host software and the host plug-in simulator together to generate a column control host software model, and compiling the column control communication software and the communication plug-in simulator together to generate a column control communication software model.
In one embodiment, the column control host software model comprises: an initialization process and a periodic operation process;
the initialization process comprises the steps of:
the host plug-in simulator initializes itself, and loads configuration files and file operations;
the host plug-in simulator calls a user initialization API interface to enable the column control host software to complete initialization;
after the initialization process of the software model of the train control host is completed, the periodic operation process comprises the following steps:
the host plug-in simulator calls a user processing API interface to enable the train control host software to carry out logic processing;
the column control host software calls a sending API interface to send external data to the host plug-in simulator;
the host plug-in simulator transmits external data to the communication plug-in simulator in a TCP/UDP mode;
the host plug-in simulator receives external data from the communication plug-in simulator in a TCP/UDP mode;
and calling the receiving API by the train control host software to obtain external data.
In one embodiment, the train control communication software model comprises: an initialization process and a periodic operation process;
the initialization process comprises the steps of:
initializing the communication plug-in simulator, and loading a configuration file;
the communication plug-in simulator calls a user initialization API interface to enable the train control communication software to complete initialization;
after the initialization of the train control communication software model is completed, the periodic operation process comprises the following steps:
the communication plug-in simulator calls a user processing API interface to enable the train control communication software to carry out logic processing;
the communication plug-in simulator receives an external message from the host plug-in simulator in a TCP/UDP mode;
the train control communication software calls an API (application program interface) to acquire an external message;
the train control communication software calls an API (application programming interface) to send data to be sent to the communication plug-in simulator;
the communication plug-in simulator is externally sent in a TCP/UDP mode;
the communication plug-in simulator receives the message of an external interface in a TCP/UDP mode;
the train control communication software calls an API to acquire and process the external messages;
the train control communication software calls an API (application programming interface) to send an external message to the communication plug-in simulator;
and the communication plug-in simulator sends an external message to the host plug-in simulator in a TCP/UDP mode.
The invention has the following beneficial effects:
a) The train control software model structure based on the safety computer simulation software can enable the train control software to be operated on a physical device and a computer configured in a mainstream without any change, and the cross-platform operation is convenient for building a test environment.
b) The train control software based on the simulation software of the safety computer gets rid of the restriction of hardware and space, and can greatly shorten the test time only by increasing the number of test computers.
c) The train control software based on the simulation software of the safety computer supports breakpoint debugging, can realize quick problem positioning and improves efficiency.
Drawings
The foregoing summary, as well as the following detailed description of the invention, will be better understood when read in conjunction with the appended drawings. It is to be noted that the appended drawings are intended as examples of the claimed invention. In the drawings, like reference characters designate the same or similar elements.
FIG. 1 shows a logical structure of a cross-platform operation of train control software based on secure computer simulation software according to an embodiment of the invention.
FIG. 2 illustrates a data processing sequence according to an embodiment of the invention;
FIG. 3 illustrates a data processing sequence according to an embodiment of the invention;
FIG. 4 illustrates a train control software model data transmission sequence according to one embodiment of the present invention;
FIG. 5 illustrates a sequence of column control software model data reception according to an embodiment of the present invention.
Detailed Description
The detailed features and advantages of the present invention are described in detail in the detailed description which follows, and will be sufficient for anyone skilled in the art to understand the technical content of the present invention and to implement the present invention, and the related objects and advantages of the present invention will be easily understood by those skilled in the art from the description, claims and drawings disclosed in the present specification.
The system and the method for the cross-platform operation of the train control software based on the safe computer simulation software are at least based on the following starting points:
firstly, the prior art has an important disadvantage that the test of a host real object cannot be avoided being restricted by hardware and space, and breakpoint debugging and quick problem positioning cannot be realized. Therefore, if the train control logic software can be separated from the safe platform to independently run in real objects without any source code change, the problems can be solved.
Secondly, the train control software and the safety computer simulation software are compiled together and packaged into an executable train control software model, so that the train control software can run on a computer which is configured in a mainstream manner.
Based on the method, the invention provides a train control software logic structure based on the safety computer simulation software, and the cross-platform operation of the train control software under the condition without a host computer physical object is realized by simulating the safety platform software.
The following detailed description of specific embodiments of the invention.
The safety computer platform provides a general, safe and reliable hardware and software application development platform for the safety equipment of the train control system. The functions of the secure platform software are: internally, an external input and output interface is provided for the column control software; and externally, various communication related interfaces are adapted. Thus, the secure platform software may be understood to include both secure platform host software and secure platform communication software. The safety platform host software provides packaged module interfaces for the column control logic software, the column control logic software only needs to access the interfaces to realize external input and output, and the safety platform host software interacts information with the safety platform communication software in a network transmission mode. The secure platform communication software is specifically responsible for communicating with the plurality of peripheral device interfaces.
Likewise, the column control logic software is logically divided into two parts, host software which fulfills all functional requirements except for communication and communication software which focuses only on communication interface functional processing.
The external interface emulator is an emulation of the hard-wired interface and the communication channel. All the hard-line channels such as input/output drive interfaces, serial ports, analog quantity and digital quantity are simulated into a network communication mode to be communicated with the communication plug-in simulator.
FIG. 1 is a diagram illustrating a system architecture for a secure computer emulation software-based column control software running across platforms, according to an embodiment of the present invention.
The system comprises: column control host software 101, column control communication software 102, secure computer emulation host module (hereinafter simply referred to as host plug-in emulator) 103, secure computer emulation communication module (hereinafter simply referred to as communication plug-in emulator) 104, and external interface emulator 105.
The host plug-in emulator 103 includes the following modules:
(1) API (application programming interface) simulation module
The API simulation module is configured to simulate implementing interface function functionality in compliance with the interface definitions (content includes prototype declarations, argument descriptions, return value descriptions, and function descriptions) of the secure computer software, providing a consistent API to the column control host software 101.
(2) Data receiving and transmitting module
The transceiving data module is configured to receive external data of the column control host software 101 and forward the data to the communication plug-in emulator 104 through a TCP/UDP network communication manner. The transceiving data module is also configured to receive and buffer external interface data sent by the communication plug-in emulator 104 in a TCP/UDP network communication manner, and the train control host software 101 actively calls an API to receive the data.
(3) Configuration information module
The configuration information module simulates the hardware configuration function of the security computer platform in a configuration file form.
The host plug-in emulator 103 obtains the configuration information by reading the configuration file. For example, the host plug-in emulator 103 reads the configuration file during the initialization stage, and initializes the network connection according to the configuration information; and initializing an interface of file operation by simulating folder information through flash.
In one embodiment, the configuration information includes information such as the current class of the device, the ethernet configuration, the type of the external device, the application identifier, the VCP device information description, and the flash simulation folder.
(4) File operation module
The file manipulation module is configured to simulate a device file manipulation interface that implements a physically secure computer platform. The file operation module reads the flash simulation folder in the configuration file, and realizes the simulation of the file operation interface through the operation of the folder and the files thereof.
The file operation is divided into a file operation in an initialization phase and a file operation in a periodic operation phase. In the initialization stage, the file operation is executed immediately, and the result of the file operation can be known through the return value of the function. In the period running stage, the file operations applied by the column control host software 101 are all stored in the background, and the background thread reads and writes the file so as to avoid the period extension caused by too slow operation. The column control host software 101 queries the previous file operation state through the "file handle state query interface" in the subsequent cycle.
The communications plug-in emulator 104 includes the following modules:
(1) API simulation module
The API simulation module is configured to simulate implementing interface function functions in compliance with the interface definitions (content includes prototype declarations, argument descriptions, return value descriptions, and function descriptions) of the secure computer software, providing a consistent API to the hosting host software 101.
(2) Data receiving and transmitting module
The transceiving data module is configured to receive and cache external interface data sent by the host plug-in emulator 103 in a TCP/UDP network communication manner, and the train control communication software 102 actively calls an API to receive the external interface data. The transceiving data module is further configured to receive and buffer external data sent by the external interface emulator 105 in a TCP/UDP network communication manner, and the external data is received by the train control communication software 102 actively calling the API.
(3) Configuration information module
The configuration information module simulates the hardware configuration function of the safety computer platform in a configuration file form.
The communication plug-in emulator 104 obtains the configuration information by reading the configuration file. For example, the communication plug-in emulator 104 reads the configuration file and initializes the network connection in an initialization phase.
In one embodiment, the configuration information includes the family in which the communication plug-in is located, the external device number, the interface number, and the Ethernet configuration used to emulate the hardware interface channel and the communication channel.
The detailed features and advantages of the invention are described in further detail below in the detailed description.
The train control host software 101 and the host plug-in simulator 103 are compiled together to generate a train control host software model, and the program operation is divided into two stages: initialization and periodic run phase. The initialization phase is entered immediately after the startup of the train control host software 101 model. The initialization phase includes the following processes:
(1) The host plug-in emulator 103 initializes itself, loads configuration files and file operations;
(2) The host plug-in emulator 103 calls the user initialization API interface to complete initialization of the column control host software 101.
After the initialization of the model of the column control host software 101 is completed, the host plug-in simulator 103 controls the periodic processing, and the main processing procedures are as follows:
(1) The host plug-in emulator 103 calls a user processing API interface to cause the column control host software 101 to perform logic processing;
(2) The train control host software 101 calls a sending API interface and sends external data to the host plug-in simulator 103;
(3) The host plug-in simulator 103 sends the external data to the communication plug-in simulator 104 in a TCP/UDP mode;
(4) The host plug-in emulator 103 receives external data from the communication plug-in emulator 104 in a TCP/UDP manner;
(5) The column control host software 101 calls the reception API interface to obtain external data.
The data processing sequence is shown in fig. 2.
The train control communication software 102 and the communication plug-in simulator 104 are compiled together to generate a train control communication software model, and the program runs in two stages: initialization and periodic run phase. And entering an initialization stage immediately after the train control communication software model is started. The initialization phase includes the following processes:
(1) Firstly, initializing a communication plug-in simulator 104, and loading a configuration file;
(2) The communication plug-in emulator 104 calls the user initialization API interface to initialize the train control communication software 102.
After the initialization of the train control communication software model is completed, the communication plug-in simulator 104 controls the periodic processing, and the main processing logic is as follows:
(1) The communication plug-in simulator 104 calls a user processing API interface to enable the train control communication software 102 to carry out logic processing;
(2) The communication plug-in simulator 104 receives the external message from the host plug-in simulator 103 in a TCP/UDP mode;
(3) The train control communication software 102 calls an API to acquire an external message;
(4) The train control communication software 102 calls an API to send data to be sent to the communication plug-in simulator 104;
(5) The communication plug-in emulator 104 transmits the data to the outside in a TCP/UDP manner;
(6) The communication plug-in simulator 104 receives the message of the external interface in a TCP/UDP mode;
(7) The train control communication software 102 calls an API to acquire and process the external messages;
(8) The train control communication software 102 calls an API to send an external message to the communication plug-in simulator 104;
(9) The communication plug-in emulator 104 sends an external message to the host plug-in emulator 103 in a TCP/UDP manner.
The data processing sequence is shown in fig. 3.
The train control software model data transmission sequence is shown in fig. 4.
The train control software model data reception sequence is shown in fig. 5.
The invention has the following beneficial effects:
a) The train control software model structure based on the safety computer simulation software can enable the train control software to be operated on a physical device and a computer configured in a mainstream without any change, and the cross-platform operation is convenient for building a test environment.
b) The train control software based on the simulation software of the safety computer gets rid of the restriction of hardware and space, and can greatly shorten the test time only by increasing the number of test computers.
c) The train control software based on the simulation software of the safety computer supports breakpoint debugging, can realize quick problem positioning and improves efficiency.
The terms and expressions which have been employed herein are used as terms of description and not of limitation. The use of such terms and expressions is not intended to exclude any equivalents of the features shown and described (or portions thereof), and it is recognized that various modifications may be made which are within the scope of the claims. Other modifications, variations, and alternatives are also possible. Accordingly, the claims are to be regarded as covering all such equivalents.
Also, it should be noted that although the present invention has been described with reference to the current specific embodiments, it should be understood by those skilled in the art that the above embodiments are merely illustrative of the present invention, and various equivalent changes or substitutions may be made without departing from the spirit of the present invention, and therefore, it is intended that all changes and modifications to the above embodiments be included within the scope of the claims of the present application.

Claims (13)

1. A system for a column control software cross-platform run based on secure computer emulation software, the system comprising:
the system comprises train control host software, train control communication software, a host plug-in simulator, a communication plug-in simulator and an external interface simulator, wherein the train control host software and the host plug-in simulator are compiled together to generate a train control host software model, and the train control communication software and the communication plug-in simulator are compiled together to generate a train control communication software model;
the host plug-in simulator is configured to simulate an application programming interface of a safety computer, receive external data of the column control host software and forward the external data to the communication plug-in simulator, receive external interface data sent by the communication plug-in simulator and actively call the application programming interface by the column control host software to receive the external interface data;
the communication plug-in simulator is configured to simulate an application programming interface of a safety computer, receive the external data sent by the host plug-in simulator and actively call the application programming interface by the train control communication software to receive the data, receive the external data sent by the external interface simulator and actively call the application programming interface by the train control communication software to receive the data;
the external interface emulator is configured to emulate a hard-wired interface and a communication channel and to communicate with the communication plug-in emulator.
2. The system of claim 1, wherein the host plug-in emulator comprises:
an API simulation module configured to implement interface function functionality following interface definition simulation of secure computer software to provide the consistent API to the train control host software.
3. The system of claim 1, wherein the host plug-in emulator comprises:
the data receiving and transmitting module is configured to receive the external data of the column control host software and forward the external data to the communication plug-in simulator in a TCP/UDP network communication mode, and the data receiving and transmitting module is further configured to receive and cache the external interface data sent by the communication plug-in simulator in a TCP/UDP network communication mode, and the column control host software actively calls the application programming interface to receive the external interface data.
4. The system of claim 1, wherein the host plug-in emulator comprises:
the configuration information module simulates the hardware configuration function of the security computer platform in a configuration file form, and the host plug-in simulator acquires the configuration information in a mode of reading the configuration file.
5. The system of claim 4, wherein the configuration information includes one or more of: the equipment current category, the Ethernet configuration, the external equipment type, the application identification, the VCP equipment information description and the flash simulation folder.
6. The system of claim 5, wherein the host plug-in emulator comprises:
the file operation module is configured to simulate an equipment file operation interface of a physical security computer platform, reads a flash simulation folder in the configuration file, and realizes the simulation of the file operation interface through the file operation on the folder and files thereof;
the file operation is divided into a file operation module in an initialization stage and a file operation in a periodic operation stage, the file operation is immediately executed in the initialization stage, and a file operation result can be known through a function return value; in the period operation stage, file operations applied by the train control host software are stored in the background, file reading and writing are carried out by a background thread so as to avoid the period extension caused by too slow operation, and the train control host software inquires the previous file operation state through a file handle state inquiry interface in the subsequent period.
7. The system of claim 1, wherein the communications plug-in emulator comprises:
an API simulation module configured to implement interface function functionality following interface definition simulation of secure computer software to provide the consistent API to the train control host software.
8. The system of claim 1, wherein the communications plug-in emulator comprises:
the system comprises a host plug-in simulator, a column control communication software and a data transceiving module, wherein the host plug-in simulator is used for receiving and caching external interface data sent by the host plug-in simulator in a TCP/UDP network communication mode, the column control communication software actively calls the application programming interface to receive the external interface data, the data transceiving module is further used for receiving and caching external data sent by the external interface simulator in a TCP/UDP network communication mode, and the column control communication software actively calls the application programming interface to receive the external data.
9. The system of claim 1, wherein the communications plug-in emulator comprises:
and the configuration information module is used for simulating and realizing the hardware configuration function of the safety computer platform in a configuration file form, and the communication plug-in simulator acquires the configuration information in a mode of reading the configuration file.
10. The system for secure computer emulation software-based train control software to run across platforms of claim 9, wherein the configuration information comprises a family of the communications plugin, an external device number, an interface number, and an ethernet configuration to emulate a hardware interface channel and a communications channel.
11. A method for running column control software in a cross-platform mode based on safety computer simulation software is characterized by comprising the following steps:
providing a host plug-in emulator and a communication plug-in emulator;
providing train control host software and train control communication software;
providing an external interface simulator;
the host plug-in simulator simulates an application programming interface of a safety computer, receives the external data of the column control host software and forwards the external data to the communication plug-in simulator, receives the external interface data sent by the communication plug-in simulator, and the column control host software actively calls the application programming interface to receive the external interface data;
the communication plug-in simulator simulates an application programming interface of a safety computer, receives the external data sent by the host plug-in simulator and actively calls the application programming interface by the train control communication software to receive the data, receives the external data sent by the external interface simulator and actively calls the application programming interface by the train control communication software to receive the data;
enabling the external interface simulator to simulate a hard-wire interface and a communication channel and communicate with the communication plug-in simulator;
compiling the column control host software and the host plug-in simulator together to generate a column control host software model; and
and compiling the train control communication software and the communication plug-in simulator together to generate a train control communication software model.
12. The method of claim 11, wherein the running of the column control host software model comprises: an initialization process and a periodic operation process;
the initialization process comprises the steps of:
the host plug-in simulator initializes itself, and loads configuration files and file operations;
the host plug-in simulator calls a user initialization API interface to enable the column control host software to complete initialization;
after the initialization process of the train control host software model is completed, the periodic operation process comprises the following steps:
the host plug-in simulator calls a user processing API interface to enable the column control host software to perform logic processing;
the column control host software calls a sending API interface to send external data to the host plug-in simulator;
the host plug-in simulator transmits external data to the communication plug-in simulator in a TCP/UDP mode;
the host plug-in simulator receives external data from the communication plug-in simulator in a TCP/UDP mode;
and calling the receiving API by the train control host software to obtain external data.
13. The method for the cross-platform running of the train control software based on the secure computer simulation software as claimed in claim 11, wherein the running process of the train control communication software model comprises: an initialization process and a periodic operation process;
the initialization process comprises the steps of:
initializing the communication plug-in simulator, and loading a configuration file;
the communication plug-in simulator calls a user initialization API interface to enable the train control communication software to complete initialization;
after the initialization of the train control communication software model is completed, the periodic operation process comprises the following steps:
the communication plug-in simulator calls a user processing API interface to enable the train control communication software to carry out logic processing;
the communication plug-in simulator receives an external message from the host plug-in simulator in a TCP/UDP mode;
the train control communication software calls an API (application program interface) to acquire an external message;
the train control communication software calls an API (application programming interface) to send data to be sent to the communication plug-in simulator;
the communication plug-in simulator transmits the data to the outside in a TCP/UDP mode;
the communication plug-in simulator receives the message of an external interface in a TCP/UDP mode;
the train control communication software calls an API to acquire and process the external messages;
the train control communication software calls an API (application programming interface) to send an external message to the communication plug-in simulator;
and the communication plug-in simulator sends an external message to the host plug-in simulator in a TCP/UDP mode.
CN201910772713.2A 2019-08-21 2019-08-21 Train control software cross-platform operation system and method based on safety computer simulation software Active CN110442528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910772713.2A CN110442528B (en) 2019-08-21 2019-08-21 Train control software cross-platform operation system and method based on safety computer simulation software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910772713.2A CN110442528B (en) 2019-08-21 2019-08-21 Train control software cross-platform operation system and method based on safety computer simulation software

Publications (2)

Publication Number Publication Date
CN110442528A CN110442528A (en) 2019-11-12
CN110442528B true CN110442528B (en) 2023-04-14

Family

ID=68436709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910772713.2A Active CN110442528B (en) 2019-08-21 2019-08-21 Train control software cross-platform operation system and method based on safety computer simulation software

Country Status (1)

Country Link
CN (1) CN110442528B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765924B (en) * 2021-01-28 2023-07-21 新华三半导体技术有限公司 Chip verification method, device and system
CN113642149A (en) * 2021-07-02 2021-11-12 上海创景信息科技有限公司 Method and system for realizing universal configurable data simulation and forwarding
CN114020359B (en) * 2021-11-08 2024-04-16 中国电子科技集团公司第二十八研究所 Distributed platform integration method based on plug-in
CN113869801B (en) * 2021-11-30 2022-06-14 阿里云计算有限公司 Maturity state evaluation method and device for enterprise digital middleboxes

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147760A (en) * 2011-04-22 2011-08-10 中国电子科技集团公司第三十八研究所 Processor co-verification platform based on network transmission and testing method of processor co-verification platform
US9026966B1 (en) * 2014-03-13 2015-05-05 Cadence Design Systems, Inc. Co-simulation methodology to address performance and runtime challenges of gate level simulations with, SDF timing using emulators
CN107065598B (en) * 2017-06-09 2020-07-10 湖南中车时代通信信号有限公司 L KJ simulation system and method

Also Published As

Publication number Publication date
CN110442528A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110442528B (en) Train control software cross-platform operation system and method based on safety computer simulation software
US5600579A (en) Hardware simulation and design verification system and method
CN112286746B (en) Universal verification platform and method for AXI slave device interface
US10409632B2 (en) Emulation of hardware components based on interrupt design
CN108038294B (en) UVM environment building method and system
CN104750603A (en) Multi-core DSP (Digital Signal Processor) software emulator and physical layer software testing method thereof
CN101174283A (en) Software and hardware cooperating simulation platform based on network
JP7321839B2 (en) General Purpose Virtualization Platform for Systems Using Hardware Abstraction Software Layers
CN114880977A (en) Software and hardware joint simulation system, method, device, equipment and storage medium
US8504344B2 (en) Interface between a verification environment and a hardware acceleration engine
US5363501A (en) Method for computer system development verification and testing using portable diagnostic/testing programs
CN107707986A (en) A kind of method and device that barrage message is simulated in the exploitation of live software
Camara et al. DCE: Test the real code of your protocols and applications over simulated networks
US9117018B2 (en) Method of debugging software and corresponding computer program product
CN106155903A (en) Apparatus and method for system design validation
CN104699523A (en) Debugging method and system used for application programs developed by hardware platform
Van Schooenderwoert et al. Taming the embedded tiger-agile test techniques for embedded software
CN104216831B (en) FPGA (Field Programmable Gate Array) interactive simulation method based on Tcl (Tool Command Language)
CN114207693A (en) Method and server for supporting the generation of scenarios for testing autonomous driving and/or advanced driver assistance system functions
CN116306479A (en) UVM-based Ethernet PHY universal verification platform and verification method
CN113010361B (en) MIO function rapid verification method of fully programmable SOC chip
CN115374017A (en) Method for capturing site during simulation running of executable file and computing equipment
CN113204929A (en) Method for realizing AHB VIP based on SV and UVM, electronic device and storage medium
CN108415839A (en) The development frame of multinuclear SoC chip and the development approach of multinuclear SoC chip
JP2003177937A (en) Apparatus and method for improvement of communication between emulator unit and host device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Yang Kai

Inventor after: Wang Shuxin

Inventor after: Luo Honglei

Inventor after: Ke Changbo

Inventor after: Geng Hongliang

Inventor before: Yang Kai

Inventor before: Luo Honglei

Inventor before: Ke Changbo

Inventor before: Geng Hongliang

CB03 Change of inventor or designer information