Secure platform emulation system and secure platform emulation system application method

By setting up logic simulation software and API files in the EI32-JD computer interlocking system, a safety platform simulation system is generated, which solves the problem of high hardware platform costs, realizes hardware-free functionality, reduces R&D and testing costs, and improves work efficiency.

CN116382115BActive Publication Date: 2026-02-06BEIJING JIAODA MICROUNION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310364002.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2026-02-06
Estimated Expiration
2043-04-06

AI Technical Summary

Technical Problem

The existing EI32-JD interlocking system hardware platform suffers from high research and development, production and testing costs due to the distance to the production site and high cost, and its reliance on hardware affects work efficiency.

Method used

By setting up a logic simulation software and an API file generation safety platform simulation system on the basis of the EI32-JD computer interlocking system hardware, the same functions as the hardware system can be achieved, and research and development, production and testing can be completed without hardware.

Benefits of technology

It reduces R&D, production and testing costs, improves work efficiency, has powerful functionality, and meets the actual requirements of development, production and system testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116382115B_ABST
    Figure CN116382115B_ABST
Patent Text Reader

Abstract

The application discloses a safety platform simulation system and a safety platform simulation system application method, and belongs to the technical field of rail transit. The safety platform simulation system is applied to an EI32-JD computer interlocking system. The EI32-JD computer interlocking system comprises an interlocking machine, a driver and a sampling machine and an EI32 safety platform. The EI32 safety platform comprises a logic unit and a LAN interface. The logic unit is applied to the interlocking machine. The safety platform simulation system comprises a logic unit simulation software, an API file and an interface function. The logic unit simulation software is used for loading the functions corresponding to the logic unit. The API file comprises the interface function used for calling the LAN interface. The safety platform simulation system can reduce the development, production and test costs and improve the work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of rail transit, and particularly relates to a safety platform simulation system and a safety platform simulation system application method. BACKGROUND

[0002] With the rapid rise of high-speed rail technology, the demand for CTCS-3 level train operation control system to transport goods or run passengers is also increasing, and the working line is also becoming more and more busy, which leads to the increasing demand for interlocking system signal equipment and the increasing safety requirement for the interlocking system signal equipment. In the related technology, the EI32-JD interlocking system is often used for testing, but the hardware platform of the EI32-JD interlocking system is the EI32 safety platform of Japanese signals. Due to the factors of hardware origin distance and cost, it is basically impossible to meet the actual requirements of development and production and system testing, and the dependence on hardware in the development, production and testing process is high, which leads to high cost and also affects the work efficiency to some extent. SUMMARY

[0003] The present application aims to at least solve one of the technical problems existing in the prior art. To this end, the present application provides a safety platform simulation system and a safety platform simulation system application method, which can reduce the development, production and testing cost and improve the work efficiency.

[0004] In a first aspect, the present application provides a safety platform simulation system applied to an EI32-JD computer interlocking system, the EI32-JD computer interlocking system comprising an interlocking machine, a drive and sampling machine and an EI32 safety platform, the EI32 safety platform comprising a logic part and a LAN interface, wherein the logic part is applied to the interlocking machine; the safety platform simulation system comprises:

[0005] a logic part simulation software, the logic part simulation software being used to load the functions corresponding to the logic part;

[0006] an API file, the API file comprising an interface function used to call the LAN interface.

[0007] According to the safety platform simulation system of the present application, by setting the logic part simulation software and the API file matched with the hardware of the EI32-JD computer interlocking system, the corresponding safety platform simulation system is generated, so that the same functions as the hardware system of the EI32-JD computer interlocking system can be realized through software, and the corresponding functions can be realized without loading hardware, which effectively reduces the development, production and testing cost; and the safety platform simulation system has high flexibility and powerful functionality, can meet the actual requirements of development and production and system testing, and is helpful to improve the work efficiency.

[0008] According to one embodiment of the present application, the API file further comprises an interface function for calling a LAN ring network communication, the interface function of the LAN ring network communication being applied to an interconnection interface and / or a driving acquisition communication interface of the EI32-JD computer interlocking system.

[0009] According to one embodiment of the present application, the EI32-JD computer interlocking system further comprises a communication machine, and the safety platform simulation system is in interface communication connection with the communication machine.

[0010] According to one embodiment of the present application, the safety platform simulation system further comprises an Ethernet communication module corresponding to an Ethernet communication interface of the EI32-JD computer interlocking system, the Ethernet communication interface corresponding to two network ports, and maximum supporting four board cards.

[0011] According to one embodiment of the present application, the safety platform simulation system further comprises a serial port communication module corresponding to a serial port communication interface of the EI32-JD computer interlocking system, the serial port communication interface maximum supporting four serial port cards, and a single serial port card supporting six serial ports.

[0012] According to one embodiment of the present application, the safety platform simulation system further comprises an acquisition driving communication module corresponding to an acquisition driving communication interface of the EI32-JD computer interlocking system, the acquisition driving communication interface corresponding to 64 acquisition channels and 16 driving channels.

[0013] According to one embodiment of the present application, the interlocking machine comprises a first interlocking machine and a second interlocking machine, and the safety platform simulation system further comprises at least two first shared memory modules, the first shared memory modules being in communication connection with the first interlocking machine and the second interlocking machine respectively, and the at least two first shared memory modules being protected by a mutex core object respectively.

[0014] According to one embodiment of the present application, the first shared memory module comprises:

[0015] an action R relay, the action R relay being used for controlling the first interlocking machine and the second interlocking machine to be in different lifting states at the same time;

[0016] a COR relay, the COR relay being set to be in a falling state when the first interlocking machine is a host machine, and in a lifting state when the second interlocking machine is a host machine.

[0017] In a second aspect, the present application provides a safety platform simulation system application method, applied to the safety platform simulation system as described in the first aspect, the method comprising:

[0018] Initialize the security platform simulation system;

[0019] In the case of successful initialization processing, control the security platform simulation system to enter a fixed-period processing state;

[0020] In the fixed-period processing state, execute a fixed-period task in the security platform simulation system based on a target function.

[0021] According to the security platform simulation system application method, the security platform simulation system can execute the same fixed-period processing task as the hardware system, so that the platform scheduling function is realized, which is simple and reliable and does not need to set additional configurations, and helps to reduce the design cost.

[0022] In a third aspect, the present application provides a security platform simulation system application device, applied to the security platform simulation system of the first aspect, the device comprises:

[0023] The first processing module is configured to initialize the security platform simulation system;

[0024] The second processing module is configured to, in the case of successful initialization processing, control the security platform simulation system to enter a fixed-period processing state;

[0025] The third processing module is configured to, in the fixed-period processing state, execute a fixed-period task in the security platform simulation system based on a target function.

[0026] According to the security platform simulation system application device, the security platform simulation system can execute the same fixed-period processing task as the hardware system, so that the platform scheduling function is realized, which is simple and reliable and does not need to set additional configurations, and helps to reduce the design cost.

[0027] In a fourth aspect, the present application provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the security platform simulation system application method of the first aspect.

[0028] In a fifth aspect, the present application provides a computer program product comprising a computer program, wherein the computer program is executed by a processor to implement the security platform simulation system application method of the first aspect.

[0029] The one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:

[0030] The safety platform simulation system is simulated by setting the logic part simulation software and the API file generation corresponding safety platform simulation system matched with the hardware of the EI32-JD computer interlocking system, so that the same function of the hardware system of the EI32-JD computer interlocking system can be realized by the software, the corresponding function can be realized without the hardware, the research and development, production and test cost is effectively reduced, the flexibility is high, the functionality is powerful, the actual requirements of the development, production and system test can be met, and the work efficiency is improved.

[0031] Further, the optical port communication between the two systems is realized by setting the shared module, which is simple and reliable, and does not need to set additional configuration, and helps to reduce the design cost.

[0032] Further, the working state module and the main state module are set in the first shared memory module to provide the machine switching function, the machine switching simulation can be realized, the functionality is higher, and the test cost is further reduced, and the work efficiency is improved.

[0033] Additional aspects and advantages of the application will be in part apparent and in part pointed out hereinafter. BRIEF DESCRIPTION OF DRAWINGS

[0034] The above and / or additional aspects and advantages of the application will become apparent and be readily appreciated from the following description, including the appended drawings.

[0035] Figure 1 is one of the structure schematic diagrams of the safety platform simulation system provided by the embodiment of the application;

[0036] Figure 2 is the second structure schematic diagram of the safety platform simulation system provided by the embodiment of the application;

[0037] Figure 3 is the third structure schematic diagram of the safety platform simulation system provided by the embodiment of the application;

[0038] Figure 4 is the fourth structure schematic diagram of the safety platform simulation system provided by the embodiment of the application;

[0039] Figure 5 is one of the flow schematic diagrams of the safety platform simulation system application method provided by the embodiment of the application;

[0040] Figure 6 is the second flow schematic diagram of the safety platform simulation system application method provided by the embodiment of the application;

[0041] Figure 7 is the structure schematic diagram of the safety platform simulation system application device provided by the embodiment of the application. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the present application.

[0043] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a category and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in a "or" relationship.

[0044] The safety platform simulation system, the safety platform simulation system application method, the safety platform simulation system application device and the readable storage medium provided by the embodiments of the present application will be described in detail below with reference to the drawings, specific embodiments and application scenarios.

[0045] It should be noted that the safety platform simulation system is applied to an EI32-JD computer interlocking system.

[0046] As shown in Figure 1 The safety platform simulation system includes: a logic part simulation software (nsspe_debug.lib) and an API file.

[0047] It can be understood that the EI32-JD computer interlocking system includes an interlocking machine (ILC), an input / output machine (IOC), an operation machine (OW) and a maintenance machine (MW).

[0048] The EI32-JD computer interlocking system is used to complete the basic interlocking function, that is, to control the route, signal and turnout under the specified interlocking condition and specified time sequence; and has a communication interface with I2I (adjacent station interlocking system), TCC (train control center system), RBC (wireless block center system), SFM (communication machine system) and LEU (ground electronic unit).

[0049] The interlocking machine (ILC) includes: an EI32 safety platform and an interlocking machine application software.

[0050] The interlocking machine software is compiled, linked and generated by the interlocking machine application software and the EI32 safety platform system software, and is burned into the CPU board.

[0051] The drive and mining machine (IOC) comprises an EI32 safety platform and drive and mining machine application software.

[0052] The platform interface (API) is a software interface provided by the EI32 safety platform to the interlocking machine application software, and the EI32 safety platform is composed of platform system software and hardware.

[0053] The operating machine (OW) and the maintenance machine (MW) generally adopt industrial computers (the operating system is Windows).

[0054] In some embodiments, the EI32-JD type computer interlocking system can further comprise a communication machine (SFM).

[0055] In this embodiment, the communication machine (SFM) comprises an EI32 safety platform and communication machine application software.

[0056] The safety platform simulation system is in communication connection with the interface of the communication machine.

[0057] In actual execution, the EI32 safety platform and various application software are in communication connection based on the platform interface (API).

[0058] The EI32 safety platform comprises a logic part (FSSQ) and is applied to the interlocking machine and the drive and mining machine and the communication machine.

[0059] The logic part is composed of two systems and, together with the reverse machine unit (SW), forms a 2*2 take 2 dual-machine hot standby redundancy structure, and the main board is shown in Table 1.

[0060] Table 1

[0061]

[0062] The main functions of the logic part are as follows:

[0063] 1) A safe and reliable operation platform is provided.

[0064] 2) Ethernet electrical port, RS422 / RS485 / RS2322, LAN five type communication interfaces are provided.

[0065] 3) Two-way inter-system LAN ring network communication interfaces are provided.

[0066] 4) Control and state acquisition functions of the reverse machine related relays are supported, and the dual-machine hot standby of the logic part I / II system can be realized in cooperation with the application software.

[0067] 5) The running state of the equipment is diagnosed, monitored and reported.

[0068] In some embodiments, continuing to refer to Figure 1 , the EI32 safety platform can further include a LAN interface for LAN communication.

[0069] In the present application, it is to be noted that the safety platform simulation system is a simulation implementation of the EI32 safety platform under the Windows platform.

[0070] For example, the safety platform simulation system can be an EI32 safety platform simulation system.

[0071] The safety platform simulation system is completely consistent with the application interface (EI32-JD APIs) of the EI32 safety platform.

[0072] The safety platform simulation system (NSSP) is used to simulate the functions of the EI32 safety platform (NSSP) and is used for developing, debugging, producing and testing the NSSP application software (such as interlocking machine software, drive and collection machine software, communication machine software, etc.) under the Windows environment; to reduce the dependence on hardware in the development, production and testing process and to provide work efficiency.

[0073] The safety platform simulation system has a built-in main function main().

[0074] The safety platform simulation system includes: logic part simulation software (nsspe_debug.lib) corresponding to the logic part (FSSQ) in the EI32 safety platform.

[0075] The logic part simulation software (nsspe_debug.lib) is a static library file, and the logic part simulation software is used to load the functions corresponding to the logic part. The specific functions have been described above and will not be repeated here.

[0076] The safety platform simulation system further includes an API file, which is a file corresponding to the platform interface.

[0077] The API file includes an interface function for calling the LAN interface.

[0078] In some embodiments, the API file can further include an interface function for LAN ring network communication.

[0079] In this embodiment, the interface function for LAN ring network communication is applied to the interconnection interface and / or the drive and collection communication interface of the EI32-JD type computer interlocking system, and communication is performed through the optical fiber LAN network.

[0080] In some embodiments, the API file can further include an interface function corresponding to all involved communication interfaces.

[0081] Table 2 illustrates a file list included in the API file.

[0082] Table 2

[0083]

[0084] In the present application, it can be understood that the system software of the target machine is generated by compiling and linking the application software together with the EI32 security platform system library, and the application software based on the security platform simulation system is generated by compiling and linking the application software together with the security platform simulation system library, and the final result is shown in Table 3.

[0085] The platform library, compiler and running environment used by the two are different, but the upper-layer application software is completely consistent.

[0086] Table 3

[0087]

[0088] With reference to Table 3, in some embodiments, the security platform simulation system can provide at least one of the following: an engineering simulation library software root directory, a simulation library general software, a functional module, a global header file and a compilation output LIB directory.

[0089] According to the security platform simulation system provided in the embodiments of the present application, by setting the logic part simulation software and the API file matched with the hardware of the EI32-JD computer interlocking system, the corresponding security platform simulation system is generated, so that the same function as the hardware system of the EI32-JD computer interlocking system can be realized by software, and the corresponding function can be realized without hardware, thereby effectively reducing the development, production and testing costs; and the security platform simulation system has high flexibility and powerful functionality, and can meet the actual requirements of development, production and system testing, thereby helping to improve work efficiency.

[0090] In some embodiments, the interlocking machine can further include a first interlocking machine and a second interlocking machine, and the security platform simulation system can further include at least two first shared memory modules.

[0091] In this embodiment, the first shared memory modules are respectively in communication connection with the first interlocking machine and the second interlocking machine, and the at least two first shared memory modules are respectively protected by a mutex core object.

[0092] The first interlocking machine and the second interlocking machine can correspond to an I series interlocking machine and a II series interlocking machine, respectively.

[0093] The at least two first shared memory modules include SM_I and SM_II.

[0094] The first shared memory module is in communication connection with the first interlocking machine and the second interlocking machine respectively, SM_I is used to realize one-way communication from the I series interlocking machine to the II series interlocking machine, and SM_II is used to realize one-way communication from the II series interlocking machine to the I series interlocking machine.

[0095] It should be noted that in the embodiment, the at least two first shared memory modules are protected by mutex core objects respectively to ensure exclusive access of a process to the shared memory; that is, when the writing operation of a series interlocking machine is not completed, the other series interlocking machine cannot access the buffer due to the protection of the mutex core object, thereby ensuring the integrity of the data.

[0096] It can be understood that in the EI32 safety platform, inter-series communication is completed by two redundant optical fiber Ethernet provided by the platform, and safety communication is also completed by the platform, and for the application software, data can be sent and received by directly calling the corresponding API function.

[0097] In the case of using the safety platform simulation system, the two series devices (such as the two series interlocking machines) are actually two processes of the application software (such as ILC.EXE), and the difference lies in that different parameters (the parameter is used to identify the series ID of different devices) are used when starting the two processes, and the inter-series communication based on the safety platform simulation system is actually the communication between the two processes.

[0098] It should be noted that in the case of using the shared memory, the two processes corresponding to the two series devices should run in the same computer.

[0099] For example, in the actual execution process, when the I series interlocking machine sends data to the II series interlocking machine, the data can be sent into the first shared memory module SM_I, and the II series interlocking machine can directly read the data from the first shared memory module SM_I when collecting inter-series data through the API.

[0100] Similarly, when the II series interlocking machine sends data to the I series interlocking machine, the data can be sent into the first shared memory module SM_II, and the I series interlocking machine can also directly obtain the related data from the first shared memory module SM_II when collecting the data.

[0101] According to the safety platform simulation system provided in the embodiment, the optical port communication between the two series is realized by setting the shared module, which is simple and reliable and does not need to set additional configuration, and helps to reduce the design cost.

[0102] As shown in FIG. Figure 3 In some embodiments, the first shared memory module can include an action R relay and a COR relay.

[0103] In the embodiment, the working state of the interlocking machine includes a normal working state and an abnormal working state.

[0104] In the EI32-JD computer interlocking system, the two-system interlocking machines output their working states to the switcher unit through switcher unit control commands, and the switcher unit is responsible for completing the main decision function (i.e., ensuring that only one system interlocking is the main system) and returning the decision result (i.e., the main system information) to the two-system interlocking machines through switcher unit state information.

[0105] In the safety platform simulation system, the function of the switcher unit can also be implemented through shared memory.

[0106] The action R relay and the COR relay states of the two-system interlocking machines are set in the first shared memory module simulating the switcher unit.

[0107] The action R relay is the action R relay of the I / II system, and the R relay is used to control the first interlocking machine and the second interlocking machine to be in different landing states at the same time.

[0108] In the case of the I system interlocking machine landing, the II system interlocking machine is lifted; in the case of the II system interlocking machine landing, the I system interlocking machine is lifted.

[0109] In the case of the COR relay state being in the lifted state, the II system interlocking machine is the main machine; in the case of the COR relay state being in the landing state, the I system interlocking machine is the main machine.

[0110] In the actual execution process, when the interlocking machine sets its working state through the API (sends the switcher unit control command), the safety platform simulation system determines and refreshes the current main state in real time according to the states of the action R relay and the COR relay of the other system; the two-system interlocking machines obtain the action R relay and the COR relay state from the first shared memory module through the API to refresh their main states.

[0111] In some embodiments, in the case that no control command is received within a continuous target number of cycles, the working state of the system can be automatically set to the non-working state, and the corresponding switcher logic is started to refresh the corresponding main state, so as to monitor the effectiveness of the switcher unit control command in real time.

[0112] In some embodiments, the first shared memory module can further include a synchronization protection module to provide a synchronization protection mechanism to ensure the integrity of the data.

[0113] According to the safety platform simulation system provided by the embodiments of the present application, the working state module and the main state module are set in the first shared memory module to provide the switcher function, which can realize switcher simulation, has higher functionality, further reduces the test cost, and helps to improve the work efficiency.

[0114] Continuing to refer to Figure 1In some embodiments, the safety platform simulation system can further include a general PC, an operating system driver and an emulator system library.

[0115] In this embodiment, the operating system driver is in communication connection with the general PC, and the emulator system library is in communication connection with the operating system driver.

[0116] In this embodiment, the emulator system library corresponds to the EI32-JD system library in the EI32-JD computer interlocking system, and the operating system driver corresponds to the OS / Driver in the EI32-JD computer interlocking system.

[0117] With reference to Figure 1 In some embodiments, the EI32-JD computer interlocking system can further include an Ethernet communication interface, and the safety platform simulation system can further include an Ethernet communication module corresponding to the Ethernet communication interface of the EI32-JD computer interlocking system.

[0118] In this embodiment, the Ethernet communication interface corresponds to two network ports, and supports a maximum of four board cards.

[0119] With reference to Figure 1 In some embodiments, the EI32-JD computer interlocking system can further include a serial port communication interface, and the safety platform simulation system can include a serial port communication module corresponding to the serial port communication interface of the EI32-JD computer interlocking system.

[0120] In this embodiment, the serial port communication interface supports a maximum of four serial port cards, and each serial port card supports six serial ports.

[0121] In actual execution, the serial port communication interface can support RS422 / RS458 / RS232 interfaces.

[0122] In the EI32 safety platform, this function is mainly completed by the serial port communication board card, including initialization, sending and receiving functions:

[0123] In this embodiment, the initialization is used to configure the baud rate, data bits, stop bits, parity check mode and the like.

[0124] The sending is to send data to the outside through a specified port.

[0125] The receiving is to return the received data to the caller.

[0126] As shown in Figure 4 In the safety platform simulation system, multiple simulation implementation schemes are provided based on actual applications, and the specific implementation can be performed by modifying the configuration of the safety platform simulation system as needed:

[0127] 1) Ethernet simulates serial port;

[0128] 2) use RS422 in PC to simulate RS422 in safety platform.

[0129] It should be noted that the above two ways, interlocking machine software call API are same, for EI32-JD daily signal platform output to the application software API, only safety platform simulation system to the interface using two different implementation way; That is, regardless of which way, the code of the application software is unchanged, only the configuration of the safety platform simulation system is different.

[0130] According to the safety platform simulation system provided in the embodiment of the application, the same serial communication interface as the EI32 safety platform is set to realize the serial communication function, which is higher in functionality and further reduces the test cost, thereby helping to improve the work efficiency.

[0131] In some embodiments, the EI32-JD type computer interlocking system can further include a collection driver communication interface, and the safety platform simulation system can include a collection driver communication module corresponding to the collection driver communication interface of the EI32-JD type computer interlocking system.

[0132] In this embodiment, the collection driver communication interface corresponds to 64 collection channels and 16 driving channels.

[0133] It can be understood that the state collection and output control of the wayside equipment in the EI32-JD type computer interlocking system are realized by the driver collection machine, mainly through the driving board (OUT16) and the collection board (IN64D).

[0134] The EI32-JD type computer interlocking system can support up to 8 groups of driver collection machines, and the number of driver collection machines depends on the size of the station yard.

[0135] In order to facilitate testing, the wayside equipment is realized by the wayside simulation software, which can display the state of the station yard equipment (turnout, signal machine, section, etc.), and can also manually set the state of each device, such as setting the filament breakage and section occupation.

[0136] In the safety platform simulation system, the shared memory mode can be used to realize the communication between the driver collection machine and the wayside simulation software.

[0137] In some embodiments, the EI32-JD type computer interlocking system can further include a second shared memory module, and the second shared memory module is in communication connection with the driver collection machine and the wayside simulation module, respectively.

[0138] In this embodiment, each driver collection machine sends a driving command to the corresponding second shared memory module, and the wayside simulation obtains the driving information from the corresponding second shared memory module.

[0139] The trackside simulation also outputs the acquisition information to the corresponding second shared memory module, and each drive and acquisition machine obtains data from the corresponding second shared memory module.

[0140] In some embodiments, in addition to the driving and acquisition information, configuration information of each drive and acquisition machine can also be updated to the second shared memory module, so as to collect driving commands and disassemble acquisition information.

[0141] In some embodiments, the driving commands in the second shared memory module in the security platform simulation system are provided with a "shelf life", that is, if the driving commands are not updated beyond the "shelf life", they will be cleared, and the acquisition information is similar.

[0142] In some embodiments, a synchronization protection mechanism can also be added in the second shared memory module to ensure the integrity of the data.

[0143] According to the security platform simulation system provided by the embodiments of the present application, the second shared memory module is set to realize the communication between the drive and acquisition machine and the trackside simulation software, thereby providing the same IO function as the hardware device, which is simple and reliable and does not need to set additional configurations, and helps to reduce the design cost.

[0144] The embodiments of the present application also provide a security platform simulation system application method, which is applied to the security platform simulation system as described in any of the above embodiments.

[0145] As shown in the figure, the security platform simulation system application method comprises steps 510, 520 and 530. Figure 5

[0146] Step 510, initialize the security platform simulation system;

[0147] In this step, it can be understood that after the EI32 security platform is powered on or reset, the "initialization" process is first executed, and in this process, the system platform completes the initialization of the application software by calling back init_rt(); after the initialization is successful, the EI32 security platform enters the periodic processing, and the periodic processing task of the application software is completed by calling back mainrt(). The initialization interface function init_rt() and the periodic processing interface function mainrt() are both implemented by the application layer, and the security platform is responsible for calling and executing.

[0148] The scheduling mechanism of the EI32 security platform determines that the entry of the application software must be implemented in the platform rather than in the application software, and the security platform simulation system can also be implemented according to this mechanism, and main() is encapsulated in the security platform simulation system library.

[0149] In the actual execution process, as shown in the figure, the security platform simulation system application method comprises steps 510, 520 and 530. Figure 6 ​As shown, similar to the real platform, before the application layer initialization by calling init_rt(), the initialization function of each module in the security platform simulation system is called to complete the initialization of the security platform simulation system.

[0150] For example, the device ID is set by setting the analog jumper; the RS422 simulation implementation mode is set and initialized by reading the configuration file (Note: RS422 can be implemented according to the real RS422 in Ethernet or Windows).

[0151] Step 520, in the case of successful initialization processing, the security platform simulation system is controlled to enter a fixed cycle processing state.

[0152] In this step, in the case of successful initialization processing, the security platform simulation system is controlled to enter a fixed cycle processing state.

[0153] Step 530, in the fixed cycle processing state, based on the target function, the fixed cycle task is executed in the security platform simulation system.

[0154] In this step, with reference to Figure 6 When entering the fixed cycle processing state, the fixed cycle processing task of the application software can be completed by calling back mainrt().

[0155] With reference to Figure 6 In some embodiments, after step 530, the method can further include:

[0156] Based on the start time and the end time corresponding to the fixed cycle processing state, the first duration of the fixed cycle processing state is determined.

[0157] In the case that the first duration is less than the target running cycle duration corresponding to the security platform simulation system, the security platform simulation system is controlled to enter an idle time processing state.

[0158] In the case that the first duration is not less than the target running cycle duration, the security platform simulation system library is controlled to enter the next round of idle time processing state.

[0159] In this embodiment, the target running cycle duration can be based on user customization, which is not limited in the present application.

[0160] The idle time processing state is used to make the security platform simulation system enter a fixed sleep state, and the EI32 security platform performs system self-checking and other necessary processing.

[0161] For example, at each re-entry cycle processing, start timing, end timing after completing the mainrt() callback processing, and compare the time difference (i.e. the first duration) with the set cycle value (i.e. the target running cycle duration).

[0162] If there is remaining time, let the process idle time processing.

[0163] If there is no remaining time, process based on the super cycle processing strategy set by the security platform simulation system, and enter the beginning of the fixed cycle processing again after the idle time processing is completed, and repeat.

[0164] According to the security platform simulation system application method provided by the embodiment of the application, the same fixed cycle processing task as the hardware system can be executed by using the security platform simulation system, so as to realize the platform scheduling function, which is simple and reliable and does not need to set additional configuration, and helps to reduce the design cost.

[0165] In some embodiments, the method can further include:

[0166] Configuring at least one of the baud rate, the data bit, the stop bit and the parity check mode corresponding to the security platform simulation system;

[0167] Sending target data based on the target port.

[0168] In this embodiment, the target port is a specified port.

[0169] In the actual execution process, the VSIO serial communication function can be realized by using a serial communication board card.

[0170] It can be understood that in the EI32 security platform, the function is mainly completed by the serial communication board card, including initialization, sending and receiving functions:

[0171] Among them, the initialization is used to configure the baud rate, the data bit, the stop bit, the parity check mode and the like.

[0172] The sending is to send data to the outside through the specified port.

[0173] The receiving is to return the received data to the caller.

[0174] In the security platform simulation system, based on the actual application, a plurality of simulation implementation schemes are provided, and the configuration of the security platform simulation system can be modified according to the needs:

[0175] 1) Ethernet simulates serial port;

[0176] 2) RS422 in the PC is used to simulate RS422 in the security platform.

[0177] It should be noted that the above two ways, interlocking machine software call API are same, for EI32-JD daily signal platform output to application software API, only is the safety platform simulation system to the interface adopts two different implementation ways. That is, no matter which way, the code of application software is unchanged, only the configuration of safety platform simulation system is different.

[0178] In some embodiments, after configuring at least one of the baud rate, data bits, stop bits and parity mode corresponding to the safety platform simulation system, the method can further include returning the received data to the caller.

[0179] According to the safety platform simulation system application method provided in the embodiments of the present application, the same VSIO serial port communication function as the hardware system can be realized by using the safety platform simulation system, which is simple and reliable and does not need to set additional configuration, and helps to reduce the design cost.

[0180] In some embodiments, the method can further include:

[0181] storing the received first data to a target buffer;

[0182] receiving a request instruction for obtaining data;

[0183] in response to the request instruction, sending the second data stored in the target buffer; the second data is all the first data stored in the target buffer.

[0184] In this embodiment, the EI32 safety platform can further include an ENETHXR board card to realize the Ethernet communication function; including initialization, sending and receiving functions.

[0185] Initialization is used to configure IP address, subnet mask and route.

[0186] Creating and closing socket is used to create or close socket when communicating.

[0187] Sending is to send data outside by specifying socket.

[0188] Receiving is to return the received data to the caller.

[0189] The target buffer can be a buffer corresponding to the socket.

[0190] It should be noted that in the safety platform simulation system, the Ethernet received data is completed by a separate thread, and is not subject to platform cycle constraints to receive data from the network in real time, and saves the received data to the buffer corresponding to the socket. When the application software obtains the received data through the API, the safety platform simulation system returns the corresponding data in the specified socket buffer to the caller.

[0191] In the sending scenario, execution is immediate; that is, when the application calls the platform interface to send data, the platform immediately sends the data to the network.

[0192] The characteristics of sending and receiving data are consistent with the actual platform behavior.

[0193] In some embodiments, state management of TCP type sockets (including Server and Client) is also performed in the thread receiving data.

[0194] In the specific implementation, multiplexing technology is mainly adopted, that is, the select system call is used to monitor and wait for changes in the attributes of all sockets. The monitored attributes include: readfds (readable), writefds (writable), and exceptfds (exceptions).

[0195] After the select function is called, it will block (the thread will be in a sleep state) until a socket is ready (data can be read, written, or an error exception occurs), or the timeout (timeout specifies the waiting time) occurs, at which point the function will return and wake up the thread.

[0196] After the select() function returns, if there is a ready socket (i.e., the select return value is greater than 0), you can use FD_ISSET to query the socket whose status has changed and perform the corresponding processing on that socket.

[0197] According to the application method of the security platform simulation system provided in the embodiments of this application, the same Ethernet communication function as the hardware platform can be realized by using the security platform simulation system. It is simple, reliable and does not require additional configuration, which helps to reduce design costs.

[0198] Through numerous experiments by the inventors, the security platform simulation system provided in this application can improve users' work efficiency in multiple aspects, including development, production and testing, and training.

[0199] First, a convenient and efficient development environment can be built for R&D personnel in the following ways:

[0200] 1. Developers can complete development, debugging, and testing on ordinary PCs or laptops, reducing dependence on hardware platforms and requirements for laboratory environments, thus reducing the company's R&D costs.

[0201] 2. Compared to the previous development using JD-IA in DOS mode, the convenience of Windows undoubtedly greatly improves work efficiency. In addition, the available memory of Windows applications far exceeds 640K of memory, so there is no situation where debugging is impossible due to memory limitations.

[0202] 3. Windows offers a wealth of mature and advanced testing tools, providing more technologies and measures to ensure software quality. For example, by introducing the C++Test testing tool during development, developers can check at any time whether their code conforms to the company's specifications.

[0203] Second, after using the safety platform simulation system, production personnel (referring to the process of creating station software using general-purpose software) can perform the work entirely on ordinary PCs or laptops, without occupying the laboratory testing environment. This avoids situations where personnel have to wait for each other due to insufficient resources, saves company costs, and improves work efficiency. Furthermore, production personnel can set up a testing environment on their own computers to perform preliminary testing on the generated station software, avoiding unnecessary rework due to typos.

[0204] Third, the training system built on the safety platform simulation system (Computer Interlocking RALI Training Platform) has the same interlocking logic as the actual station, which allows for practical application of knowledge and is highly targeted, thus achieving a good training effect.

[0205] The training system built on a safety platform simulation system can greatly reduce the cost of the training system and eliminate safety hazards caused by inadequate training of operators. It is of positive significance for strengthening the construction of station and section training bases and meeting the training requirements of front-line employees.

[0206] The security platform simulation system application method provided in this application embodiment can be executed by a security platform simulation system application device. This application embodiment uses the execution of the security platform simulation system application method by a security platform simulation system application device as an example to illustrate the security platform simulation system application device provided in this application embodiment.

[0207] This application also provides a security platform simulation system application device.

[0208] like Figure 7 As shown, the application device of the security platform simulation system includes: a first processing module 710, a second processing module 720 and a third processing module 730.

[0209] The first processing module 710 is used for initialization processing of the security platform simulation system;

[0210] The second processing module 720 is used to control the safety platform simulation system to enter a periodic processing state if the initialization process is successful.

[0211] The third processing module 730 is used to execute periodic tasks in the safety platform simulation system based on the objective function under periodic processing state.

[0212] According to the security platform simulation system application device provided in the embodiments of this application, by adopting the security platform simulation system, it is possible to execute the same periodic processing tasks as the hardware system, thereby realizing the platform scheduling function. It is simple, reliable and does not require additional configuration, which helps to reduce design costs.

[0213] In some embodiments, the device may further include:

[0214] The fourth processing module is used to configure at least one of the following: baud rate, data bits, stop bits, and parity check method corresponding to the security platform simulation system.

[0215] The fifth processing module is used to send target data based on the target port.

[0216] The security platform simulation system application device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0217] The security platform simulation system application device provided in this application embodiment can achieve... Figures 5 to 6 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0218] This application also provides a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described security platform simulation system application method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0219] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0220] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described security platform simulation system application method.

[0221] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0222] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described security platform simulation system application method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0223] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0224] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0225] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0226] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

[0227] In the description of the application, reference has been made to descriptive terms such as "one embodiment", "some embodiments", "an embodiment", "example", "specific example" or "some examples" etc. It is emphasized that each of these terms refers to a specific feature, structure, material or characteristic described in connection with a particular embodiment or example. The descriptive terms are not necessarily referring to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0228] While embodiments of the application have been shown and described, it is to be understood that the application is not limited to the details of the embodiments described, since the scope of the application is defined with respect to the appended claims.

Claims

1. A security platform simulation system, characterized in that, This is applied to the EI32-JD type computer interlocking system, which includes an interlocking machine, a drive and acquisition machine, and an EI32 safety platform. The EI32 safety platform includes a logic unit and a LAN interface, wherein the logic unit is used in the interlocking machine; the safety platform simulation system includes: Logic unit simulation software, which is used to load the functions corresponding to the logic unit; API file, the API file including interface functions for calling the LAN interface; The API file also includes interface functions for calling LAN ring network communication. These interface functions are applied to the inter-system communication interface and / or drive acquisition communication interface of the EI32-JD computer interlocking system. The EI32-JD computer interlocking system also includes a communication unit, and the security platform simulation system is connected to the interface of the communication unit. The safety platform simulation system also includes an Ethernet communication module corresponding to the Ethernet communication interface of the EI32-JD computer interlocking system. The Ethernet communication interface has two network ports and supports up to four boards. The safety platform simulation system also includes a serial communication module corresponding to the serial communication interface of the EI32-JD computer interlocking system. The serial communication interface supports a maximum of 4 serial port cards, and each serial port card supports 6 serial ports. The safety platform simulation system also includes an acquisition drive communication module corresponding to the acquisition drive communication interface of the EI32-JD computer interlocking system. The acquisition drive communication interface has 64 acquisition channels and 16 drive channels. The interlocking mechanism includes a first interlocking mechanism and a second interlocking mechanism. The safety platform simulation system also includes at least two first shared memory modules. The first shared memory modules are respectively connected to the first interlocking mechanism and the second interlocking mechanism, and the at least two first shared memory modules are respectively protected by a mutex core object. The first shared memory module includes: An action R relay is used to control the first interlocking machine and the second interlocking machine to be in different lifting and lowering states simultaneously. The COR relay is configured to be in a dropped state when the first interlocking machine is the master, and in a picked-up state when the second interlocking machine is the master.

2. A method for applying a security platform simulation system, characterized in that, Applied to the security platform simulation system as described in claim 1, the method includes: The security platform simulation system is initialized. If the initialization process is successful, the security platform simulation system is controlled to enter a periodic processing state; In the fixed-period processing state, a fixed-period task is executed in the security platform simulation system based on the objective function.

3. The application method of the security platform simulation system according to claim 2, characterized in that, Also includes: Configure at least one of the following baud rate, data bits, stop bits, and parity check methods for the security platform simulation system: Send target data based on the target port.

Citation Information

Patent Citations

  • A dual-computer redundant hot standby device based on shared memory

    CN109005070A

  • Intelligent programmable computer interlocking simulation training platform

    CN115578906A