ATP equipment adaptation device and method based on train TSN network interface

By adopting the CPU+FPGA architecture in ATP equipment and integrating the TSN protocol IP core and related protocols, the adaptation problem of the train network and ATP equipment is solved, an efficient and reliable TSN network interface is realized, and time synchronization and data transmission are ensured. Determinism improves the flexibility and usability of interface adaptation.

CN118740875APending Publication Date: 2024-10-01SIGNAL & COMM RES INST OF CHINA ACAD OF RAILWAY SCI +3
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410929453.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-07-09
Filing Date
2024-07-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing train network communicates with ATP equipment through the MVB bus and cannot directly adapt to the Ethernet-based TSN network. Moreover, TSN technology is not yet mature and lacks a method to directly adapt to ATP equipment.

Method used

An ATP equipment adaptation device based on the train TSN network interface is designed. It adopts a combination of CPU system, FPGA system and backplane bus. It is connected through the LocalBus bus. The FPGA system integrates the TSN protocol IP core to realize the interface between ATP equipment and the train TSN network. Communication functions, and integrates IEEE802.1AS, IEEE802.1Qbv and IEEE802.1CB protocols to ensure time synchronization, deterministic data transmission and redundant link transmission.

Benefits of technology

It realizes efficient interface adaptation between ATP equipment and train TSN network, guarantees the time synchronization error within 1 microsecond, the certainty and reliability of data transmission, improves the flexibility and availability of the interface adaptation device, and supports subsequent protocols. expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740875A_ABST
    Figure CN118740875A_ABST
Patent Text Reader

Abstract

The invention discloses an ATP equipment adaptation device and method based on a train TSN network interface, and the device comprises a CPU system, an FPGA system and a backboard bus, and the CPU system, the FPGA system and the backboard bus are in data connection through a Local Bus. The CPU system is used for running application software and an openSAFETY protocol; the FPGA system is integrated with a TSN protocol IP core to realize the ATP and train TSN network interface communication function; and the backboard bus realizes a data interaction function between internal functional board cards of the train control on-board equipment ATP. The CPU + FPGA architecture adopted by the invention has the characteristics of high flexibility and high availability. The TSN function is realized by adopting the mode that the FPGA is integrated with the TSN protocol IP core, and only application software and the real-time Ethernet openSAFETY protocol run in the CPU, so that the problem of expansion of the subsequent TSN function can be effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an adaptation device and method thereof, and in particular to an ATP equipment adaptation device and method based on a train TSN network interface, belonging to the field of ATP interface of train control on-board equipment. Background Art

[0002] With the rapid development of the rail transit industry, the number of Fuxing China Standard EMUs continues to increase, and "intelligence" has put forward higher requirements for data transmission volume. As Ethernet communication technology gradually matures, Ethernet-based train networks have gradually begun to be used, but traditional Ethernet has problems such as high latency and poor determinism. TSN (Time-Sensitive Ethernet) is a set of protocol specifications developed by the IEEE802.1 task group to build a low-latency, highly reliable Ethernet. Train networks based on TSN are an important technology for the future. Europe's next-generation train network has been tested for TSN. In China, in the CR450 scientific and technological innovation project, TSN was used for the first time as a new train network communication technology in the high-speed EMU network control system, and TSN performance tests were carried out in a real vehicle environment on the Fuzhou-Xiamen line.

[0003] Currently, the train network communicates with ATP devices through the MVB (Multi-function Vehicle Bus) bus, and does not have the conditions to communicate with the vehicle through the Ethernet interface. After the train network adopts TSN, ATP devices need to be re-adapted. At present, TSN technology is still in a rapid development stage and does not have the conditions to directly adapt to ATP devices. An ATP device adaptation method based on the train TSN network interface is urgently needed. Summary of the invention

[0004] In order to solve the deficiencies and defects of the above technical problems, an embodiment of the present invention provides an ATP equipment adapter device based on a train TSN network interface, and its technical solution is as follows: An ATP equipment adapter based on a train TSN network interface includes a CPU system, an FPGA system and a backplane bus, wherein the CPU system, the FPGA system and the backplane bus are data-connected via a LocalBus bus; the device is characterized by: The CPU system is used to run application software and openSAFETY protocol; The FPGA system integrates the TSN protocol IP core to realize the communication function between the ATP device and the train TSN network interface; The backplane bus realizes the data interaction function between the internal functional boards of the train control on-board equipment ATP.

[0005] The TSN protocol IP core completes TSN data transmission and reception, and configures IEEE802.1AS, IEEE802.1Qbv or IEEE802.1CB protocols as needed.

[0006] IEEE802.1AS precise time synchronization protocol achieves precise clock synchronization across the entire network. This protocol defines the time synchronization mechanism for the entire network. By defining the master clock selection and negotiation algorithm, path delay measurement and compensation, and clock frequency matching and adjustment mechanism, gPTP devices exchange standard Ethernet messages to synchronize the time of each node in the network to a common master clock.

[0007] IEEE802.1Qbv, a traffic scheduling protocol, implements deterministic data scheduling and forwarding. Based on the global time reference provided by the time synchronization protocol IEEE802.1AS, scheduling tasks are created and distributed to participating network nodes. IEEE802.1Qbv defines a mechanism to control queued traffic by controlling the switch of the gate at the exit of the TSN switch. The messages in these queues will be transmitted in preset time windows. Usually, within these time windows, the transmission of other queues will be blocked, thereby avoiding the scheduled traffic from being blocked by non-scheduled traffic, thus ensuring that the delay of data passing through the switch is deterministic.

[0008] IEEE802.1CB, redundancy protocol, realizes redundant link data transmission. Redundant message transmission is realized through frame replication and frame elimination technology in redundant links, reducing the impact of link and node failure on the network. Reliability is improved through redundant messages and setting up redundant links in the network for parallel transmission.

[0009] The present invention also discloses an ATP device adaptation method based on a train TSN network interface, which is characterized by: an FPGA system includes an FPGA chip, a PHY chip 22, a network transformer 23, an Ethernet interface 24, a PHY chip 25, a network transformer 26, an Ethernet interface 27, a PHY chip 28, a network transformer 29, and an Ethernet interface 30; When the FPGA chip integrates the TSN protocol IP core, the FPGA system implements the TSN network function; When the TSN protocol IP core, PHY chip 22, network transformer 23, and Ethernet interface 24 integrated in the FPGA chip form a TSN network channel 1; When the TSN protocol IP core, PHY chip 25, network transformer 26, and Ethernet interface 27 integrated in the FPGA chip form a TSN network channel 2; When the TSN protocol IP core, PHY chip 28, network transformer 29, and Ethernet interface 30 integrated in the FPGA chip form an SN network channel 3; When the FPGA chip integrates a common Ethernet IP core, the FPGA system can realize common Ethernet network functions; When the common Ethernet IP core, PHY chip 22, network transformer 23, and Ethernet interface 24 integrated in the FPGA chip form a common network channel 1; When the common Ethernet IP core, PHY chip 25, network transformer 26, and Ethernet interface 27 integrated in the FPGA chip form a common network channel 2; The common Ethernet IP core, PHY chip 28, network transformer 29 and Ethernet interface 30 integrated in the FPGA chip form a common network channel 3. Beneficial Effects

[0010] The TSN network in the present invention integrates three protocols: IEEE802.1AS, IEEE802.1Qbv, and IEEE802.1CB. The IEEE802.1AS protocol can realize time synchronization between the device and the train TSN network interface. In the time-sensitive domain, the gPTP in IEEE802.1AS can ensure that the time synchronization error is within 1 microsecond after a maximum of 7 jumps; in the same time-sensitive network domain, the synchronization accuracy shall not be greater than the accuracy of the minimum scheduling cycle and gating cycle, and the synchronization accuracy is guaranteed to be between 100 nanoseconds and 1 microsecond.

[0011] The IEEE802.1Qbv protocol can use the pre-set gating list to periodically and dynamically provide an on / off control mechanism for the port queue. Each priority cache queue is mapped with a switch-controllable transmission gate; the switch state of the transmission gate determines whether the frames in the priority cache queue can be transmitted. If the queue gating is open, the traffic is forwarded normally; if the gating is closed, the traffic enters the cache and waits for forwarding. This device and the train TSN network interface can strictly interact with data according to time division, effectively ensuring the determinism and security of the message.

[0012] The IEEE802.1CB protocol replicates messages based on flows. The replicated messages reach the destination through redundant forwarding paths. The replicated flow aggregation node eliminates the replicated flow frames, and finally only one copy of the message is received at the destination. If the intermediate redundant path fails, it will not cause packet loss at the receiving node, effectively ensuring the reliability of the message.

[0013] The "CPU+FPGA" architecture adopted by the present invention has the characteristics of high flexibility and high availability. The TSN function is realized by integrating the TSN protocol IP core with an FPGA chip. Only application software and real-time Ethernet openSAFETY protocol are run in the CPU, which can effectively solve the expansion problem of subsequent TSN protocol functions, and add IEEE802.1Qci, IEEE802.1Qbu and other protocols on the basis of IEEE802.1AS, IEEE802.1Qbv, and IEEE802.1CB. It can also effectively solve the problem of expanding other real-time Ethernet protocols such as TRDP after the real-time Ethernet openSAFETY is integrated into the CPU, increasing the flexibility and availability of the interface adapter. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is the interaction relationship diagram between the ATP equipment TSN network interface and the train TSN network interface; Figure 2 It is the overall module architecture diagram; Figure 3 It is the internal module structure diagram of FPGA; Figure 4 It is the internal structure diagram of the hardware control management module; Figure 5 This is the internal structure diagram of the time-sensitive MAC module; Figure 6 This is the internal structure diagram of the time-sensitive switching module; Figure 7 It is a safe data communication model using open SAFETY. DETAILED DESCRIPTION

[0015] The technical solutions in the embodiments of the invention are further described in detail below in conjunction with the accompanying drawings in the embodiments of the invention. Example 1

[0016] Figure 1 It is the overall module architecture diagram, such as Figure 1 As shown, this example provides an ATP device adaptation method based on the train TSN network interface, the adaptation method includes a CPU system, an FPGA system and a backplane bus 30, the CPU system, the FPGA system and the backplane bus 40 are data connected via the LocalBus bus; the CPU system is used to run application software and the openSAFETY protocol; the FPGA system integrates the TSN protocol IP core to realize the communication function between the ATP and the train TSN network interface; the backplane bus 40 realizes the data interaction function between the internal functional boards of the train control on-board equipment ATP.

[0017] When the internal functional board of the ATP device communicates with the train TSN network interface through this device, the securely encoded message is sent to the CPU system of this device through the backplane bus 40. The CPU system completes the packetization of the openSAFETY protocol based on this message, and then forwards the packetized message to the FPGA system. After receiving the message, the FPGA system encapsulates it into an Ethernet message with a TSN label, and copies the message into two identical copies through the IEEE802.1CB protocol frame replication technology. One message is forwarded to PHY22 through TSN MAC, and communicates with the train TSN network interface 501 through Ethernet interface 24. The other message is forwarded to PHY26 through TSN MAC, and communicates with the train TSN network interface 502 through Ethernet interface 27.

[0018] In this embodiment, the CPU system includes a CPU minimum system circuit and corresponding peripheral circuits; the FPGA system includes an FPGA minimum system, corresponding peripheral circuits and an Ethernet communication interface circuit.

[0019] The TSN protocol IP core is set in FPGA20 to complete TSN data transmission and reception, and can be configured with IEEE802.1AS, IEEE802.1Qbv, IEEE802.1CB and other protocols as needed.

[0020] Specifically, the CPU system includes a CPU 10 and a peripheral circuit 11 .

[0021] The FPGA system includes an FPGA 20 , a peripheral circuit 21 , a PHY chip 22 , a network transformer 23 , an Ethernet interface 24 , a PHY chip 25 , a network transformer 26 , an Ethernet interface 27 , a PHY chip 28 , a network transformer 29 , and an Ethernet interface 30 .

[0022] When the TSN protocol IP core is integrated in FPGA20, the FPGA system can realize the TSN network function. The TSN protocol IP core, PHY chip 22, network transformer 23, and Ethernet interface 24 integrated in FPGA20 constitute TSN network channel 1. The TSN protocol IP core, PHY chip 25, network transformer 26, and Ethernet interface 27 integrated in FPGA20 constitute TSN network channel 2. The TSN protocol IP core, PHY chip 28, network transformer 29, and Ethernet interface 30 integrated in FPGA20 constitute TSN network channel 3.

[0023] When FPGA20 integrates a common Ethernet IP core, the FPGA system can realize common Ethernet network functions. The common Ethernet IP core, PHY chip 22, network transformer 23, and Ethernet interface 24 integrated in FPGA20 constitute common network channel 1. The common Ethernet IP core, PHY chip 25, network transformer 26, and Ethernet interface 27 integrated in FPGA20 constitute common network channel 2. The common Ethernet IP core, PHY chip 28, network transformer 29, and Ethernet interface 30 integrated in FPGA20 constitute common network channel 3.

[0024] Figure 2 This is the interaction diagram between the ATP equipment TSN network interface and the train TSN network interface, such as Figure 2 As shown, the ATP1 device communicates with train switch 1 2 and train switch 2 3.

[0025] Specifically, ATP1 includes at least two TSN network interfaces, TSN network interface 1 is connected to train TSN network interface 1501 of train switch 12, and TSN network interface 2 is connected to train TSN network interface 2502 of train switch 23. Example 2

[0026] Figure 2 This is the internal structure diagram of the FPGA chip, such as Figure 2 As shown, it is divided into three parts: a time-sensitive hardware control module 210 , a time-sensitive MAC module 220 and a time-sensitive switching module 230 .

[0027] (I) The main function of the time-sensitive hardware control module 210 is to receive and parse the time management protocol (TMP) from the TSN controller to configure and read the registers and tables of this switch. Encapsulate the missed message in the forwarding table into the time management protocol TMP protocol and transmit it to the controller. Synchronize the clock of this switch with the network clock based on the IEEE 802.1AS standard. Maintain the time management protocol TMP message forwarding table. Generate a cycle start indication according to the cycle length register, which is used to align the start time of different switching devices and network cards in the network.

[0028] See also Figure 4 As shown in FIG. 1 , the figure is a diagram showing the internal structure of the time-sensitive hardware control module 210. Figure 4 As shown, it is divided into five parts: AS timing module 2101, time management protocol TMP agent module 2102, time management protocol TMP message forwarding table module 2103, cycle control module 2104, and AS controller module 2105.

[0029] The main functions of the time management protocol TMP agent module 2102 are to receive and parse the time management protocol TMP message from the hardware control module 210; to encapsulate the missed message of the TMP message forwarding table 2103 into the time management protocol TMP and transmit it to the hardware control module 210; at the sending end of the interface, to compensate for the sending time of the As protocol message sent to the master / slave clock node; at the receiving side of the interface, to calculate the receiving time of the gPTP message from the master / slave clock node received by this switch, and store it in the As header.

[0030] The main functions of the AS timing module 2101 are to parse the time management protocol TMP, configure or read the clock synchronization related registers; maintain a synchronous clock, and assign, phase correct and frequency correct the synchronous clock according to the information configured by the AS controller 2105; the synchronous clock outputs a pulse every time it passes a scheduling cycle (used to determine the synchronization accuracy between the synchronous clock and the TSN network clock and the start time of the hardware scheduling cycle); maintain a local time and output the time to the time-sensitive MAC processing on the receiving side and the time-sensitive MAC processing on the sending side for calculating the residence time of the gPTP document in this switch.

[0031] The main functions of the TMP message forwarding table module 2103 are to maintain a time management protocol TMP message forwarding table; parse the time management protocol TMP, configure and read the TMP forwarding table; receive the table lookup keyword from the time-sensitive switching module 230, and output the table lookup result to the time-sensitive switching module 230.

[0032] The main function of the loop control module 2104 is to generate a loop period start indication flag according to the loop length register, which is used to align the start time of different switching devices and network cards in the network.

[0033] When the time-sensitive hardware control module 210 is working, it can provide a timing reference for the time-sensitive MAC module 220 and the IEEE802.1Qbv protocol gated reception and transmission. Through the corresponding register interface, the IEEE802.1As protocol calibrates the internal timing of the FPGA according to the offset between the local timing and the GM (Grand Master) clock, thereby realizing the time synchronization function.

[0034] (ii) The main function of the time-sensitive MAC module 220 is to remove the message preamble, frame start symbol and CRC at the MAC receiving end, and control the message to a certain length (excluding CRC), switch the message transmission clock domain from the GMII receiving clock domain to the internal clock domain of the time-sensitive switching module 230; transmit the As protocol synchronization message from / to the time-sensitive hardware control module 210, record the timestamp (current local time value) of the received precise time synchronization (gPTP) message, encapsulate the gPTP message in the As protocol, and store the received local time value in the As protocol message header. At the MAC sending end, decapsulate the synchronization protocol message sent to the master / slave clock node into gPTP, calculate the residence time of the gPTP message in this switch, and accumulate it in the correction domain of the message; switch the message transmission clock domain from the internal clock domain of the time-sensitive switching module 230 to the GMII sending clock domain.

[0035] See also Figure 5 As shown, the figure records the internal structure diagram of the time-sensitive MAC module 220. As shown in the figure, it is divided into seven parts: a receiving side MAC processing module 2201, a cross-clock domain module 2202, an As protocol encapsulation module 2203, an As protocol decapsulation module 2204, an As correction domain update module 2205, a cross-clock domain module 2206 and a sending side MAC processing module 2207.

[0036] The main function of the receiving side MAC processing module 2201 is to receive GMII data.

[0037] The main function of the cross-clock domain module 2202 is to switch the message transmission clock domain from the GMII receiving clock domain to the internal clock domain of the time-sensitive switching module 230.

[0038] The main function of the As protocol encapsulation module 2203 is to encapsulate the gPTP message into the As protocol and store the received local time in the As protocol header; directly forward and output non-gPTP messages, thereby supporting ordinary Ethernet message transmission.

[0039] The main function of the As protocol decapsulation module 2204 is to decapsulate the As protocol into a gPTP message, and extract the time information stored in the network receiving interface of the time-sensitive switching module 230 / the sending interface of the time-sensitive hardware control module 210 from the As protocol header; and directly forward and output other messages.

[0040] The main function of the AS correction domain update module 2205 is to identify gPTP messages, record the current local time value when the gPTP message is received, and subtract the value from the time information stored in the network receiving interface of the time-sensitive switching module 230 to calculate the message residence time in the time-sensitive switching module 230, and add it to the message correction domain; directly forward and output other messages.

[0041] The main function of the cross-clock domain module 2206 is to switch the message transmission clock domain from the internal clock domain of the time-sensitive switching module 230 to the GMII receiving clock domain.

[0042] The main functions of the transmitting side MAC processing module 2207 are to add a preamble and a frame start character to the message and output the message from the GMII interface.

[0043] When the time-sensitive MAC module 220 is working, the time base provided by the time-sensitive hardware control module 210 can be encapsulated into the AS protocol through the time-sensitive MAC module 220, and the time deviation value calculated by the time-sensitive hardware control module 210 is calibrated during the synchronization process to correct the corresponding register value, while non-TSN messages are directly forwarded. Protocol function, when CPU10 sends data to the train TSN network interface through FPGA20, the time-sensitive MAC module 220 will copy the received data into two identical redundant backup data and send them to TSN network channel 1 and TSN network channel 2 respectively; when FPGA20 receives two identical redundant backup data sent by train TSN network interface 1 and train TSN network interface 2, the time-sensitive MAC module 220 will integrate the redundant data into one data and forward it to CPU10.

[0044] (III) The main functions of the time-sensitive switching module 230 are to receive the control bus CBus transmitted by the time-sensitive hardware control module 210, configure the time-sensitive switching module 230 and read the status; filter the traffic at different hardware startup stages; forward TSN messages and standard Ethernet messages by table lookup; protect the time window of time-sensitive traffic in the switching node; and shape the traffic based on the IEEE802.1Qbv scheduling model.

[0045] Figure 6 This is the internal structure diagram of the time-sensitive switching module. As shown in the figure, it is divided into a port state control module 2301, a message summary generation module 2302, an input aggregation adaptation module 2305, a search pipeline module 2306, a flow rate limit module 2307, a receiving window detection module 2308, a network output scheduling module 2309, a control output scheduling module 2310 and a message centralized caching module 2311.

[0046] The main function of the port state control module 2301 is to receive messages from the interface; identify standard Ethernet messages and TSN messages according to the Ethernet type of the message, and filter time-sensitive traffic (ie, scheduled traffic ST) and resource-constrained traffic (RC) messages.

[0047] The main function of the message summary generation module 2302 is to receive the cache data ID assigned by the message centralized cache module 2311, generate a message summary and write it into the message centralized cache; construct summary information based on the received message, and supervise the RC message, BE (best effort forwarding traffic) message and standard Ethernet message. If the supervision passes, the summary is output to the centralized table lookup module; if the supervision fails, the message and summary are discarded; add a direct switching or storage and forwarding mode selection register. For the storage and forwarding mode, the message summary information is transmitted to the centralized table lookup module only after all the messages are written into the cache area.

[0048] The main function of the message centralized cache module 2311 is to read the number of remaining cache data IDs of this module according to the received read type and read address; to centrally cache all messages received by the interface, and to cache the cache data IDs in the free address cache area.

[0049] The main function of the input aggregation adapter module 2305 is to aggregate the port message digest and transmit it to the table lookup pipeline.

[0050] The main function of the search pipeline module 2306 is to determine the table lookup action of the message according to the Ethernet type field in the message summary.

[0051] The main function of the flow rate limiting module 2307 is to limit the rate of AVB messages according to FlowID.

[0052] The main function of the receiving window detection module 2308 is to identify ST traffic and detect whether the ST traffic receiving time window is legal. The ST traffic that enters the illegal time window will have its discard bit enabled.

[0053] The main function of the network output scheduling module 2309 is to perform traffic shaping and scheduling based on the 802.1Qbv standard, read out the message output from the message concentration cache module and release the cache ID.

[0054] The main functions of the control output scheduling module 2310 are to read out the message output from the message concentration buffer module and release the buffer ID; and store the standard Ethernet message table lookup result in its destination MAC.

[0055] When the time-sensitive switching module 230 is working, it forwards TSN messages and standard Ethernet messages by table lookup, protects the time window of time-sensitive traffic in the switching node, and shapes the traffic based on the IEEE 802.1Qbv scheduling model. When the shaped message is sent to the train TSN network interface, the data will be forwarded to the time-sensitive MAC module 220 first. When the shaped message is sent to the CPU 10, the data will be forwarded to the time-sensitive hardware control module 210 first. Example 3

[0056] Figure 7 This is a diagram of a secure data communication model using openSAFETY. As shown in the figure, it is divided into the physical layer, TSN data link layer, IP network layer, UDP transport layer, openSAFETY protocol layer, application layer, etc. The openSAFETY layer can use other real-time Ethernet protocols such as TRDP; the application layer also includes a security layer and secure applications.

[0057] The physical layer consists of Figure 2 The TSN data link layer is implemented by the TSN IP core integrated in FPGA 20; the IP network layer, UDP transport layer, openSAFETY protocol layer, application layer, etc. are implemented by the protocol cluster integrated in the CPU.

[0058] The security layer and security application are embedded in the application layer of the ISO / OSI reference model, where the security layer generates and parses security data packets, and the security application performs the reception and transmission of security-critical data. This communication model ensures the implementation of the "black channel principle" and is easy for security authentication.

[0059] The present invention realizes TSN function by integrating TSN protocol IP core in FPGA, and only runs application software and real-time Ethernet openSAFETY protocol in CPU. It can effectively solve the expansion problem of subsequent TSN functions, and add IEEE802.1Qci, IEEE802.1Qbu and other protocols on the basis of IEEE802.1AS, IEEE802.1Qbv, and IEEE802.1CB. It can also effectively solve the problem of expanding other real-time Ethernet protocols such as TRDP after real-time Ethernet openSAFETY is integrated into CPU, and the flexibility and availability of interface adapter are increased. In addition, the low latency, high reliability and large bandwidth characteristics of TSN network provide the possibility for multi-network integration of train communication, safety equipment and non-safety equipment fusion communication, which can effectively reduce equipment cost and promote the landing and application of TSN technology in the field of railway train control.

[0060] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.

Claims

1. An ATP equipment adapter based on a train TSN network interface, comprising a CPU system, an FPGA system and a backplane bus, wherein the CPU system, the FPGA system and the backplane bus are data-connected via a LocalBus bus; the characteristics are: The CPU system is used to run application software and openSAFETY protocol; The FPGA system integrates the TSN protocol IP core to realize the communication function between ATP and the train TSN network interface; The backplane bus realizes the data interaction function between the internal functional boards of the train control on-board equipment ATP.

2. The ATP equipment adapter based on the train TSN network interface according to claim 1 is characterized by: The TSN protocol IP core completes TSN data transmission and reception, and configures IEEE802.1AS, IEEE802.1Qbv or IEEE802.1CB protocols as needed: IEEE802.1AS, precise time synchronization protocol, realizes precise clock synchronization of the whole network; this protocol defines the time synchronization mechanism of the whole network, and synchronizes the time of each node in the network to a common master clock by defining the master clock selection and negotiation algorithm, path delay measurement and compensation, and clock frequency matching and adjustment mechanism; IEEE802.1Qbv, a traffic scheduling protocol, implements deterministic data scheduling and forwarding; creates scheduling tasks and distributes them to participating network nodes based on the global time reference provided by the time synchronization protocol IEEE802.1AS; IEEE802.1Qbv defines a mechanism to control queued traffic by controlling the switch of the gate at the exit of the TSN switch. The messages in these queues will be transmitted in preset time windows. During these time windows, the transmission of other queues will be blocked, thereby preventing the scheduled traffic from being blocked by non-scheduled traffic, thus ensuring that the delay of data passing through the switch is deterministic; IEEE802.1CB, redundancy protocol, realizes redundant link data transmission; realizes redundant message transmission through frame replication and frame elimination technology in redundant links, reduces the impact of link and node failure on the network; improves reliability through redundant messages and setting up redundant links in the network for parallel transmission.

3. The ATP equipment adapter based on the train TSN network interface according to claim 1 is characterized by: The FPGA system includes an FPGA chip, a PHY chip 22, a network transformer 23, an Ethernet interface 24, a PHY chip 25, a network transformer 26, an Ethernet interface 27, a PHY chip 28, a network transformer 29, and an Ethernet interface 30; When the FPGA chip integrates the TSN protocol IP core, the FPGA system implements the TSN network function; When the TSN protocol IP core, PHY chip 22, network transformer 23, and Ethernet interface 24 integrated in the FPGA chip form a TSN network channel 1; When the TSN protocol IP core, PHY chip 25, network transformer 26, and Ethernet interface 27 integrated in the FPGA chip form a TSN network channel 2; The TSN protocol IP core, PHY chip 28, network transformer 29, and Ethernet interface 30 integrated in the FPGA chip form a TSN network channel 3.

4. The ATP equipment adapter based on the train TSN network interface according to claim 1 is characterized by: When the FPGA chip integrates a common Ethernet IP core, the FPGA system implements common Ethernet network functions: When the common Ethernet IP core, PHY chip 22, network transformer 23, and Ethernet interface 24 integrated in the FPGA chip form a common network channel 1; When the common Ethernet IP core, PHY chip 25, network transformer 26, and Ethernet interface 27 integrated in the FPGA chip form a common network channel 2; The common Ethernet IP core, PHY chip 28, network transformer 29 and Ethernet interface 30 integrated in the FPGA chip form a common network channel 3.

5. The ATP equipment adapter device based on the train TSN network interface according to claim 3 is characterized by: The FPGA chip includes a time-sensitive hardware control module, a time-sensitive MAC module and a time-sensitive switching module; The time-sensitive hardware control module is used to receive and parse the time management protocol from the TSN controller to configure and read the registers and tables of the switch; The time-sensitive MAC module is used to remove the message preamble, frame start symbol and CRC at the MAC receiving end, control the message to a certain length, and switch the message transmission clock domain from the GMII receiving clock domain to the internal clock domain of the time-sensitive switching module; at the MAC sending end, decapsulate the synchronization protocol message sent to the master / slave clock node into gPTP, calculate the residence time of the gPTP message in the switch, and accumulate it into the correction domain of the message; The time-sensitive switching module is used to receive the control bus CBus transmitted by the time-sensitive hardware control module, configure the time-sensitive switching module and read the status; filter the traffic in different hardware startup stages; forward TSN messages and standard Ethernet messages by table lookup; protect the time window of time-sensitive traffic in the switching node; and shape the traffic based on the IEEE 802.1Qbv scheduling model.

6. The ATP equipment adapter based on the train TSN network interface according to claim 5 is characterized by: The time-sensitive hardware control module is divided into an As timing module, a time management protocol TMP agent module, a time management protocol TMP message forwarding table module, a cycle control module, and an As controller module; The function of the time management protocol TMP agent module is to receive and parse the time management protocol TMP message from the hardware control module; encapsulate the TMP message forwarding table miss message into the time management protocol TMP and transmit it to the hardware control module; at the interface sending end, compensate the sending time of the As protocol message sent to the master / slave clock node; at the interface receiving side, calculate the receiving time of the gPTP message received by the switch from the master / slave clock node and store it in the As protocol message header; The function of the AS timing module is to parse the time management protocol TMP, configure or read the clock synchronization related registers; maintain a synchronous clock, and assign, phase correct and frequency correct the synchronous clock according to the information configured by the AS controller; the synchronous clock outputs a pulse every time it passes a scheduling cycle; maintain a local time, and output the time to the receiving side time-sensitive MAC processing and the sending side time-sensitive MAC processing for calculating the residence time of the gPTP message in this switch; The function of the TMP message forwarding table module is to maintain a time management protocol TMP message forwarding table; parse the time management protocol TMP, configure and read the TMP forwarding table; receive the table lookup keyword from the time sensitive switching module, and output the table lookup result to the time sensitive switching module; The function of the loop control module is to generate a loop period start indication flag according to the loop length register, which is used to align the start time of different switching devices and network cards in the network.

7. The ATP equipment adapter based on the train TSN network interface according to claim 5 is characterized by: The time-sensitive MAC module is divided into a receiving-side MAC processing module, a cross-clock domain module, an As protocol encapsulation module, an As protocol decapsulation module, an As correction domain update module, a cross-clock domain module, and a sending-side MAC processing module; The function of the receiving side MAC processing module is to receive GMII data; The function of the cross-clock domain module is to switch the message transmission clock domain from the GMII receiving clock domain to the internal clock domain of the time-sensitive switching module; The function of the As protocol encapsulation module is to encapsulate the gPTP frame into the As protocol and store the received local time in the As protocol header; Directly forward and output non-gPTP messages, thereby supporting the transmission of ordinary Ethernet messages; The function of the As protocol decapsulation module is to decapsulate the As protocol into a gPTP message, and extract the time information stored in the network receiving interface of the time-sensitive switching module / the sending interface of the time-sensitive hardware control module from the As protocol header; directly forward and output other messages; The function of the AS correction domain update module is to identify the gPTP message, record the current local time value when the gPTP message is received, calculate the message residence time in the time-sensitive switching module by subtracting the value from the time information stored in the network receiving interface of the time-sensitive switching module, and add it to the message correction domain; Directly forward and output other messages; The function of the cross-clock domain module is to switch the message transmission clock domain from the internal clock domain of the time-sensitive switching module to the GMII receiving clock domain; The function of the MAC processing module on the sending side is to add a preamble and a frame start character to the message and output the message from the GMII interface.

8. The ATP equipment adapter based on the train TSN network interface according to claim 5 is characterized by: The time-sensitive switching module is divided into a port status control module, a message summary generation module, an input aggregation adaptation module, a search pipeline module, a flow rate limit module, a receiving window detection module, a network output scheduling module, a control output scheduling module and a message centralized caching module; The function of the port status control module is to receive messages from the interface; identify standard Ethernet messages and TSN messages according to the Ethernet type of the message, and filter time-sensitive traffic and resource-constrained traffic RC messages; The function of the message summary generation module is to receive the cache data ID assigned by the message centralized cache module, generate a message summary and write it into the message centralized cache; construct summary information according to the received message, and supervise the RC message, BE message and standard Ethernet message; if the supervision passes, the summary is output to the centralized table lookup module; if the supervision fails, the message and summary are discarded; add a direct switching or store-and-forward mode selection register. For the store-and-forward mode, the message summary information is transmitted to the centralized table lookup module only after all the messages are written into the cache area; The message centralized cache module function is to read the number of remaining cache data IDs of this module according to the received read type and read address; to centrally cache all messages received by the interface, and to cache the cache data IDs of the free address cache area; The function of the input aggregation adapter module is to aggregate the port message summaries and transmit them to the table lookup pipeline.

9. An ATP device adaptation method based on a train TSN network interface, the method being applied to the ATP device adaptation device based on a train TSN network interface as claimed in claim 1, and characterized in that: The FPGA system includes an FPGA chip, a PHY chip 22, a network transformer 23, an Ethernet interface 24, a PHY chip 25, a network transformer 26, an Ethernet interface 27, a PHY chip 28, a network transformer 29, and an Ethernet interface 30; When the FPGA chip integrates the TSN protocol IP core, the FPGA system implements the TSN network function; When the TSN protocol IP core, PHY chip 22, network transformer 23, and Ethernet interface 24 integrated in the FPGA chip form a TSN network channel 1; When the TSN protocol IP core, PHY chip 25, network transformer 26, and Ethernet interface 27 integrated in the FPGA chip form a TSN network channel 2; When the TSN protocol IP core, PHY chip 28, network transformer 29, and Ethernet interface 30 integrated in the FPGA chip form an SN network channel 3; When the FPGA chip integrates a common Ethernet IP core, the FPGA system implements common Ethernet network functions: When the common Ethernet IP core, PHY chip 22, network transformer 23, and Ethernet interface 24 integrated in the FPGA chip form a common network channel 1; When the common Ethernet IP core, PHY chip 25, network transformer 26, and Ethernet interface 27 integrated in the FPGA chip form a common network channel 2; The common Ethernet IP core, PHY chip 28, network transformer 29 and Ethernet interface 30 integrated in the FPGA chip form a common network channel 3.

10. A non-volatile storage medium, characterized by: The non-volatile storage medium includes a stored program, wherein the program controls the device where the non-volatile storage medium is located to execute the method according to claim 9 when the program is executed.

Citation Information

Cited By

  • System and method for synchronizing path redundancy based on gPTP clock

    CN119052165A