Electronic interlocking simulation test method, system, device and storage medium
By using simulation execution board software and data conversion equipment in the all-electronic computer interlocking system, a reliable and stable test platform can be built even when the number of boards in the OC cabinet is insufficient or malfunctioning. This solves the problem of not being able to build a test platform, ensures the timeliness and security of data, and reduces test time.
Patent Information
- Application Number
- CN202111356640.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-16
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2041-11-16
AI Technical Summary
During the testing phase of the all-electronic computer interlocking system, insufficient or faulty boards in the OC cabinet prevented the construction of a complete test platform, affecting the reliability and stability of the test.
The simulation execution board software is used to simulate the OC execution board. The conversion between CAN FD data and Ethernet data is realized through the data conversion device. A remote connection is established between the main control device and the trackside equipment simulation software deployment device. Ethernet is used for long-distance communication to build a reliable and stable test platform.
It solves the problem of insufficient or faulty boards in the OC cabinet, which prevents the test platform from being set up. It enables reliable and stable testing in the laboratory or studio, ensuring the timeliness and security of data and reducing the test platform setup time.
Smart Images

Figure CN114064371B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure belongs to the field of simulation testing, and particularly relates to the field of electronic interlocking simulation testing. BACKGROUND
[0002] Full electronic computer interlocking system (Full electronic computer interlocking) is a new generation of computer interlocking system, and an object controller (Object controller, OC) is a sub-module of the full electronic interlocking system and is an execution unit of interlocking.
[0003] Because there are not enough boards in the OC cabinet to support the collection and driving of the input and output of each station in the test phase, and the failure of a certain board in the OC cabinet will cause the entire interlocking centralized area to be unable to test, a complete test platform cannot be built in the indoor integrated test or engineering indoor test. SUMMARY
[0004] The present disclosure provides an electronic interlocking simulation testing method, system, device and storage medium.
[0005] According to a first aspect of the present disclosure, an electronic interlocking simulation testing method is provided, applied to an electronic interlocking simulation testing system, and the method comprises:
[0006] Using a data conversion device, based on data conversion between CAN FD data and Ethernet data, receiving a control signal in Ethernet frame format sent by a master control device, and sending the control signal in Ethernet frame format to a device deployed by simulation execution board software through a switch;
[0007] Based on the device deployed by the simulation execution board software, the control signal is converted into a first target signal meeting the processing requirements of the wayside device simulation software, and the first target signal is sent to the device deployed by the wayside device simulation software, so that the wayside device simulation software simulates the corresponding function according to the target signal;
[0008] Based on the device deployed by the simulation execution board software, receiving a state signal in Ethernet frame format fed back by the device deployed by the wayside device simulation software to execute the simulation function, converting the state signal into a second target signal meeting the processing requirements of the master control device, and sending the second target signal to the data conversion device through the switch;
[0009] Using the data conversion device, based on the data conversion between the CAN FD data and the Ethernet data, converting the second target signal into a third target signal in CAN FD frame format, and sending the third target signal to the master control device for the master control device to analyze the third target signal.
[0010] In some implementations of the first aspect, the control signal in the Ethernet frame format is received based on data conversion between the CAN FD data and the Ethernet data using a data conversion device, including:
[0011] The control signal in the CAN FD frame format is received using the data conversion device;
[0012] The SFP protocol header, the Ethernet header and the Ethernet trailer are added in the control signal in the CAN FD frame format to generate the control signal in the Ethernet frame format.
[0013] In some implementations of the first aspect, before the control signal in the CAN FD frame format sent by the master device is received, the method includes:
[0014] The two master devices generate two groups of control signals in the CAN FD frame format to be compared, wherein each group of control signals in the CAN FD frame format to be compared includes two signals;
[0015] Any one of the two master devices compares the two groups of control signals in the CAN FD frame format generated based on a two-by-two majority voting manner;
[0016] In the case that the two groups of control signals in the CAN FD frame format to be compared are the same, any one group of control signals in the CAN FD frame format to be compared is taken as the control signal in the CAN FD frame format.
[0017] In some implementations of the first aspect, the second target signal is converted into a third target signal in the CAN FD frame format based on data conversion between the CAN FD data and the Ethernet data using the data conversion device, including:
[0018] The second target signal sent by the device deployed with the simulation execution board software is received using the data conversion device;
[0019] The SFP protocol header, the Ethernet header and the Ethernet trailer are deleted in the second target signal to generate the third target signal in the CAN FD frame format.
[0020] In some implementations of the first aspect, the method further includes:
[0021] A test switching request input by a user is received, wherein the test switching request includes a target wayside device to be tested;
[0022] Parameters in the simulation execution board software are adjusted according to the test switching request to generate modified simulation execution board software, so that a test link between the master device and the target wayside device is established based on the modified simulation execution board software.
[0023] In some implementations of the first aspect, before receiving the control signal in the Ethernet frame format sent by the host device using the data conversion device, the method further comprises:
[0024] The conversion capability of the data conversion device is tested using preset test data and a test algorithm.
[0025] In some implementations of the first aspect, the method further comprises:
[0026] Based on the switch, the star topology between the host device and the devices deployed with the simulation execution board software is established by connecting the devices deployed with the simulation execution board software.
[0027] According to a second aspect of the present disclosure, an electronic interlocking simulation test system is provided, which comprises:
[0028] The data conversion device is configured to receive the control signal in the Ethernet frame format sent by the host device based on the data conversion between the CAN FD data and the Ethernet data, and send the control signal in the Ethernet frame format to the devices deployed with the simulation execution board software through the switch.
[0029] The devices deployed with the simulation execution board software are configured to convert the control signal into a first target signal meeting the processing requirements of the wayside device simulation software, and send the first target signal to the devices deployed with the wayside device simulation software, so that the wayside device simulation software simulates the corresponding functions according to the target signal.
[0030] The devices deployed with the simulation execution board software are further configured to receive a state signal in the Ethernet frame format fed back by the devices deployed with the wayside device simulation software, convert the state signal into a second target signal meeting the processing requirements of the host device, and send the second target signal to the data conversion device through the switch.
[0031] The data conversion device is further configured to convert the second target signal into a third target signal in the CAN FD frame format based on the data conversion between the CAN FD data and the Ethernet data, and send the third target signal to the host device, so that the host device analyzes the third target signal.
[0032] According to a third aspect of the present disclosure, an electronic device is provided. The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the program to implement the electronic interlocking simulation test method according to the first aspect and some implementations of the first aspect.
[0033] According to a fourth aspect of the present disclosure, a computer readable storage medium is provided, and a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to implement the electronic interlocking simulation test method according to the first aspect and some implementation manners of the first aspect.
[0034] The electronic interlocking simulation test method, system, device and storage medium provided by the present disclosure can solve the problem that the number of boards in the OC cabinet is insufficient or a fault occurs to cause a complete test platform to be unable to be built, and a reliable and stable test platform can be built.
[0035] It should be understood that the content described in the summary section is not intended to limit the key or important features of the embodiments of the present disclosure, nor to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0036] The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by describing in detail some embodiments thereof with reference to the attached drawings. The accompanying drawings, which are used to better understand the present disclosure, are not intended to limit the present disclosure and the same or similar reference numerals are used to designate the same or similar elements throughout the drawings. In the drawings:
[0037] Figure 1 is a structural block diagram of an electronic interlocking simulation test system provided by an embodiment of the present disclosure;
[0038] Figure 2 is a flowchart of an electronic interlocking simulation test method provided by an embodiment of the present disclosure;
[0039] Figure 3 is a flowchart of a control signal in an Ethernet frame format provided by an embodiment of the present disclosure;
[0040] Figure 4 is a structural block diagram of an exemplary electronic device capable of implementing the embodiments of the present disclosure. DETAILED DESCRIPTION
[0041] To make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present disclosure.
[0042] In addition, the term "and / or" herein merely describes an associated relationship between associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent three cases: A exists alone, A and B exist together, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the front and rear associated objects.
[0043] The full electronic computer interlocking system (Full electronic computer interlocking) is a new generation of computer interlocking system. The object controller (Object controller) is a sub-module of the full electronic interlocking system and is an execution unit of the interlocking. The traditional relay combination is miniaturized, on-board, and electronic, integrated on each control type board card, and the state of the outdoor signal equipment is collected and controlled commands are output externally.
[0044] The interlocking system is the most basic guarantee for safe and efficient train operation. The execution unit of the full electronic interlocking replaces the traditional relay interface, and the collection and driving of the signal equipment are realized by electronic devices. In the code variable layer of logical operation, the aging of electronic devices and environmental changes can easily affect the jump of the collection value. In the case of coincidence in many cases, the operation result is output to the signal equipment, which may cause danger. Therefore, the test must include the collection and driving of the real equipment, and the simulation software cannot be directly used to simulate the input and output.
[0045] The full electronic interlocking test platform is an environment built entirely by simulation software, mainly used for developers to debug and analyze problems. During indoor integrated testing, a real full electronic interlocking test platform needs to be built, including real cabinets, execution units using real OC cabinets, trackside devices using simulation trackside to simulate (using simulation IO to bridge the signal equipment state of the trackside to the simulation tooling, OC collecting the point position on the simulation tooling, and only one real device for each signal and switch machine), and local workstations.
[0046] During indoor integrated testing or engineering indoor testing, a complete test platform composed of real devices cannot be completely built, mainly due to the limitation of OC. Because there are not enough board cards to support the collection and driving of the input and output of each station during the testing phase, and when a fault occurs in a certain board card of the OC cabinet, the entire interlocking centralized area cannot be tested.
[0047] In summary, in the existing test scheme, a complete test platform cannot be built.
[0048] In the present disclosure, an electronic interlocking simulation test method, system, device and storage medium are provided. The OC execution board is simulated by using simulation execution board software to meet the processing requirements of the device deployed by the wayside device simulation software and the host device, solve the problem that the number of board cards in the OC cabinet is not enough or fails to build a complete test platform, and realize remote connection of the host device and the device deployed by the wayside device simulation software based on the data conversion function between the CAN FD data and the Ethernet data of the data conversion device. Therefore, based on simulation software simulation and Ethernet long-distance communication, a reliable and stable test platform can be built.
[0049] The technical solutions provided by the embodiments of the present disclosure are described below with reference to the drawings.
[0050] Figure 1 is a structural block diagram of an electronic interlocking simulation test system provided by an embodiment of the present disclosure, as Figure 1 shown, the electronic interlocking simulation test system can specifically include:
[0051] The host device 101 is configured to send a control signal to the device 105 deployed by the wayside device simulation software through the data conversion device.
[0052] The data conversion device 102 is configured to receive the control signal in the Ethernet frame format sent by the host device based on the data conversion between the CAN FD data and the Ethernet data, and send the control signal in the Ethernet frame format to the device deployed by the simulation execution board software through the switch 103.
[0053] The device 104 deployed by the simulation execution board software is configured to convert the control signal into a first target signal meeting the processing requirements of the wayside device simulation software, and send the first target signal to the device 105 deployed by the wayside device simulation software, so that the wayside device simulation software simulates the corresponding function according to the target signal.
[0054] The device 104 deployed by the simulation execution board software is further configured to receive a state signal in the Ethernet frame format fed back by the device deployed by the wayside device simulation software after simulating the function, convert the state signal into a second target signal meeting the processing requirements of the host device, and send the second target signal to the data conversion device through the switch 103.
[0055] The data conversion device 102 is further configured to convert the second target signal into a third target signal in the CAN FD frame format based on the data conversion between the CAN FD data and the Ethernet data, and send the third target signal to the host device, so that the host device analyzes the third target signal.
[0056] Because in the electronic interlocking simulation test system in the present disclosure, the OC execution board can use simulation software for simulation, the problem that the number of board cards in the OC cabinet is insufficient or fails to cause a complete test platform to be built is solved, and the main control equipment and the simulation software deployed equipment of the wayside equipment communicate through Ethernet to ensure the stability of long-distance communication. Therefore, based on simulation software simulation and Ethernet long-distance communication, a reliable and stable test platform can be built.
[0057] Figure 2 is a flowchart of an electronic interlocking simulation test method provided by an embodiment of the present disclosure, which is implemented based on the test system in Figure 1
[0058] As shown in Figure 2 , the electronic interlocking simulation test method can include two-way data transmission, i.e., the main control equipment sends signals to the simulation software deployed equipment of the wayside equipment and the simulation software deployed equipment of the wayside equipment sends signals to the main control equipment, which can specifically include:
[0059] S201: using a data conversion device, based on data conversion between CAN FD data and Ethernet data, receiving an Ethernet frame format control signal sent by the main control equipment, and sending the Ethernet frame format control signal to the simulation execution board software deployed equipment through a switch.
[0060] S202: based on the simulation execution board software deployed equipment, converting the control signal into a first target signal meeting the processing requirements of the wayside equipment simulation software, and sending the first target signal to the simulation software deployed equipment of the wayside equipment, so that the wayside equipment simulation software simulates the corresponding function according to the target signal.
[0061] S203: based on the simulation execution board software deployed equipment, receiving an Ethernet frame format state signal fed back by the simulation function executed by the simulation software deployed equipment of the wayside equipment, converting the state signal into a second target signal meeting the processing requirements of the main control equipment, and sending the second target signal to the data conversion device through the switch.
[0062] S204: using the data conversion device, based on data conversion between CAN FD data and Ethernet data, converting the second target signal into a CAN FD frame format third target signal, and sending the third target signal to the main control equipment for analysis by the main control equipment.
[0063] Because in the electronic interlocking simulation test method provided in the present disclosure, the OC execution board can use simulation software for simulation, the problem that the number of board cards in the OC cabinet is insufficient or a fault occurs to cause a complete test platform to be unable to be built is solved. Moreover, the inventor considers that the CAN FD communication mode has the problem of being unable to communicate remotely and can only communicate at close range, but actual situation tests are rarely performed near the cabinet, so the device deployed by the simulation software of the host device and the wayside device communicates remotely through Ethernet to ensure the stability of remote communication. Therefore, based on simulation software simulation and Ethernet remote communication, a reliable and stable test platform can be built for testing before the program is run on actual devices.
[0064] In addition, because the present solution is in the initial stage when the program is just written and has not been tested, the test method of the present disclosure can be performed in a laboratory or studio, and the wayside device can be replaced by simulation software, but in the actual environment test process, the wayside device is the real device in the test site.
[0065] It needs to be further explained that the wayside device simulated by the simulation software of the wayside device can be a turnout, a signal machine and the like. Corresponding to the turnout, the signal machine and the like, the simulation execution board software can simulate a turnout board, a signal machine board and the like, for converting the data format that the wayside device can process and the data format that the host device can process, such as analog-digital conversion and the like.
[0066] In one embodiment, in order to ensure the timeliness and safety of the control signal in the form of an Ethernet frame format sent by the host device in S201, the process of receiving the control signal in the form of an Ethernet frame format sent by the host device in S201 can be specifically using a data conversion device to receive the control signal in the form of a CAN FD frame format sent by the host device; then adding an SFP protocol header, an Ethernet header and an Ethernet trailer in the control signal in the form of a CAN FD frame to generate the control signal in the form of an Ethernet frame format.
[0067] In combination with Figure 3 , in the specific process of generating the control signal in the form of an Ethernet frame format, the control signal in the form of a CAN FD frame format can include pillow information, a frame ID and frame information, then the SFP protocol header is added in the frame information, and finally the Ethernet header and the Ethernet trailer are added to generate the control signal in the form of an Ethernet frame format.
[0068] In a specific example, through the inventor's actual test, the communication cycle of the interlocking host and the master device (host board) is 300 ms, and the host board has a window period for receiving data, that is, the data is received within 40 ms, and if the time exceeds this period, packet loss or incomplete reception may occur. In the present disclosure, the control signal in the Ethernet frame format sent by the host board has an SFP protocol header, and the frame format is as shown in Figure 3 The device deployed by the simulation execution board software stores the received data in the cache area, and the SFP takes out the received data in the two-by-two voting platform processing micro-period, compares the sequence number and identifier contained in the SFP header, and gives the latest one to the application when the data is the same. The data received outside the SFP tolerance period is discarded, thereby ensuring the timeliness and reliability of the data.
[0069] In the above embodiment, the CAN FD data is converted into Ethernet data by using the data conversion device to realize subsequent long-distance transmission through Ethernet, and the use of the SFP protocol can also ensure the reliability and timeliness of the data.
[0070] In addition, in order to ensure the safety of the test system, before receiving the CAN FD frame format control signal sent by the master device, the method comprises: two master devices generate two groups of CAN FD frame format comparison control signals, wherein each group of CAN FD frame format comparison control signals includes two signals; any one of the two master devices compares the two groups of CAN FD frame format comparison control signals generated based on the two-by-two voting method; in the case that the two groups of CAN FD frame format comparison control signals are the same, any one group of CAN FD frame format comparison control signal is taken as the CAN FD frame format control signal. In the present disclosure, by adopting the two-by-two voting data acquisition method, the effects of double system redundancy, data synchronization and voting, and fault self-closing can be realized.
[0071] In the process of S203, because the device deployed with the simulation execution board software and the device deployed with the trackside device simulation software are transmitted through Ethernet, that is, the second target signal sent by the device deployed with the simulation execution board software is only to convert the state signal fed back by the device deployed with the trackside device simulation software in the form of an Ethernet frame into data conforming to the processing requirements of the host device, and the state signal is also in the form of an Ethernet frame, in order to enable the second target signal to be transmitted to the host device in the form of a CAN FD frame, in an embodiment, in S204, a data conversion device can be used to receive the second target signal sent by the device deployed with the simulation execution board software; then in the second target signal, the SFP protocol header, the Ethernet header, and the Ethernet trailer are deleted, and a third target signal in the form of a CAN FD frame is generated. In turn, the Ethernet data fed back by the device deployed with the trackside device simulation software can be converted into a CAN FD frame, so as to realize subsequent transmission of the data fed back by the trackside device simulation software to the host device through CAN FD communication.
[0072] In order to use limited boards to target multiple cases, that is, use a set of simulation execution board software to target multiple test cases, in an embodiment, a test switching request input by a user can be received, wherein the test switching request includes a target trackside device to be tested; then parameters in the simulation execution board software are adjusted according to the test switching request, and a modified simulation execution board software is generated, so as to establish a test link between the host device and the target trackside device based on the modified simulation execution board software. The above modification of the simulation test platform by modifying the parameters of the simulation execution board software can be reused for testing other stations without changing the hard-wired connection in actual application, thereby greatly saving the time of test personnel to build a platform and avoiding the tediousness of changing lines when a test environment is used for testing other stations.
[0073] In addition, in actual operation, there may be a case where an OC cabinet contains a large number of execution boards, at which time the amount of data sent by the host board and each execution board to the data conversion device (CAN box) is large, and therefore the data forwarding capability of the data conversion device needs to be tested, so as to ensure that subsequent testing can be performed normally and the conversion capability of the data conversion device in the actual environment can support normal operation. In an embodiment, a preset test data and a test algorithm can be used to test the conversion capability of the data conversion device, which includes a data amount stress test and a transmission rate stress test, so as to ensure that the host board and the execution board or the simulation execution board software can communicate normally in the case where the execution board in the OC cabinet is fully configured.
[0074] Because the host device communicates with the trackside device simulation software deployed device through Ethernet in the present disclosure, the host device can be connected with multiple simulation execution board software deployed devices to establish a star topology of the host device and the multiple simulation execution board software deployed devices, for realizing the connection of the host device and the multiple simulation execution board software corresponding trackside devices. That is, in the actual test process, the host device can form a star topology with multiple execution board cards to realize long-distance connection test and control of the host device on multiple devices.
[0075] In the electronic interlocking simulation test method provided by the present disclosure, the execution board card lacking in the OC part can use simulation software to realize its function, in addition, the CAN FD to Ethernet data access switch is used to make the host board communicate with the simulation execution board card, to ensure the stability of long-distance communication, and the SFP security redundancy layer protocol is used, to further ensure the timeliness and security of data.
[0076] Moreover, the simulation test platform built uses few board cards to test the collection and driving of real board cards, and the rest of the board cards can all be replaced by simulation execution boards (simulation software), so that after the test platform is built, only the configuration of the simulation execution board software needs to be modified, and the rest of the related parameters or function data packets are replaced, to realize the environment building of different stations, so that a test platform can be built without modifying the hardware circuit and all the board cards required by the interlocking central station, which increases the reusability of the environment and greatly reduces the time of test personnel building the test platform.
[0077] In addition, the test method of the present disclosure can be for the initial version of the program just written, that is, the program that has not been actually verified, and the test method can be for the test method in the laboratory or studio.
[0078] According to the embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections, and relationships, and their functions, are merely examples and are not intended to limit implementations of the present disclosure described and / or claimed herein.
[0079] In the technical solutions of the present disclosure, the acquisition, storage and application of user personal information comply with relevant laws and regulations and do not violate public order and good customs.
[0080] According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0081] Figure 4 A schematic block diagram of an electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present disclosure described and / or claimed in this document.
[0082] The device 400 includes a computing unit 401 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded into a random access memory (RAM) 403 from a storage unit 408. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0083] Various components in the device 400 are connected to the I / O interface 405, including an input unit 406, such as a keyboard, a mouse, etc., an output unit 407, such as various types of displays, speakers, etc., a storage unit 408, such as a magnetic disk, an optical disk, etc., and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0084] The computing unit 401 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs various methods and processes described above, such as Figure 2 electronic interlocking simulation test method. For example, in some embodiments, Figure 2The mid-electronic interlock simulation test method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 408. In some embodiments, portions or all of the computer program can be loaded and / or installed onto device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded onto RAM 403 and executed by the computing unit 401, one or more steps of the interlock device burn-in method described above can be performed. Alternatively, in other embodiments, the computing unit 401 can be configured, by way of other any suitable means (e.g., by way of firmware), to execute the steps of the interlock device burn-in method Figure 2 The mid-electronic interlock simulation test method.
[0085] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0086] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or the block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0087] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0088] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0089] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0090] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0091] It should be understood that the various forms of flow shown above can be used to reorder, add, or remove steps. For example, the steps described in the present disclosure can be performed in parallel, in series, or in a different order, without limitation herein, so long as the desired results of the technology described in the present disclosure are achieved.
[0092] The specific implementation described above does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An electronic interlocking simulation testing method, applied to an electronic interlocking simulation testing system, characterized in that, The method includes: Using a data conversion device, based on the data conversion between CAN FD data and Ethernet data, the device receives control signals in Ethernet frame format sent by the master control device, and sends the control signals in Ethernet frame format to the device deployed by the simulation execution board software through a switch; The device deployed based on the simulation execution board software converts the control signal into a first target signal that meets the processing requirements of the trackside equipment simulation software, and sends the first target signal to the device deployed based on the trackside equipment simulation software, so that the trackside equipment simulation software can simulate and execute the corresponding function according to the target signal. The device based on the simulation execution board software receives the status signal in Ethernet frame format from the simulation function of the device deployed by the trackside equipment simulation software, converts the status signal into a second target signal that meets the processing requirements of the main control device, and sends the second target signal to the data conversion device through a switch; Using the data conversion device, based on the data conversion between CAN FD data and Ethernet data, the second target signal is converted into a third target signal in CAN FD frame format, and the third target signal is sent to the master control device for analysis. The data conversion device, based on the data conversion between CAN FD data and Ethernet data, receives control signals in Ethernet frame format sent by the master control device, including: Use a data conversion device to receive control signals in CAN FD frame format sent by the master control device; An SFP protocol header, an Ethernet header, and an Ethernet trailer are added to the control signal in the CAN FD frame format to generate a control signal in the Ethernet frame format.
2. The method according to claim 1, characterized in that, Before receiving control signals in CAN FD frame format sent by the master control device, the method includes: The two master control devices generate two sets of CAN FD frame format control signals to be compared, wherein each set of CAN FD frame format control signals to be compared includes two signals; Either of the two main control devices compares the two sets of CAN FD frame format control signals generated by the two-out-of-two method. When the control signals to be compared in two sets of CAN FD frame formats are the same, the control signal to be compared in any set of CAN FD frame formats shall be used as the control signal of the CAN FD frame format.
3. The method according to claim 1, characterized in that, The step of using the data conversion device to convert the second target signal into a third target signal in CAN FD frame format based on data conversion between CAN FD data and Ethernet data includes: Using the data conversion device, a second target signal sent by the device deployed on the simulation execution board software is received; In the second target signal, the SFP protocol header, Ethernet header, and Ethernet trailer are deleted to generate the third target signal in CAN FD frame format.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: Receive a test switching request input by the user, wherein the test switching request includes the target trackside device to be tested; Based on the test switching request, the parameters in the simulation execution board software are adjusted to generate a modified simulation execution board software, which is used to establish a test link between the main control device and the target trackside device.
5. The method according to any one of claims 1-3, characterized in that, Before using the data conversion device to receive control signals in Ethernet frame format sent by the master control device, the method further includes: The conversion capability of the data conversion device is tested using preset test data and test algorithms.
6. The method according to any one of claims 1-3, characterized in that, The method further includes: Based on the switch, the main control device is connected to multiple devices with simulation execution board software deployed, and a star topology is established between the main control device and the multiple devices with simulation execution board software deployed.
7. An electronic interlocking simulation test system, characterized in that, The system is used to implement the method according to any one of claims 1-6, comprising: The data conversion device is used for data conversion between CAN FD data and Ethernet data, receiving control signals in Ethernet frame format sent by the master control device, and sending the control signals in Ethernet frame format to the device deployed by the simulation execution board software through a switch; The device deployed by the simulation execution board software is used to convert the control signal into a first target signal that meets the processing requirements of the trackside equipment simulation software, and send the first target signal to the device deployed by the trackside equipment simulation software so that the trackside equipment simulation software can simulate and execute the corresponding function according to the target signal. The device deployed by the simulation execution board software is also used to receive the status signal in Ethernet frame format from the simulation function of the device deployed by the trackside equipment simulation software, convert the status signal into a second target signal that meets the processing requirements of the main control device, and send the second target signal to the data conversion device through a switch; The data conversion device is further configured to convert the second target signal into a third target signal in CAN FD frame format based on data conversion between CAN FD data and Ethernet data, and send the third target signal to the master control device for analysis by the master control device.
8. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1-6.
9. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.
Citation Information
Patent Citations
Train control ground equipment simulation testing system and method thereof
CN107450353A