A TSN-based vehicle-mounted safety computer platform and data processing method thereof

By adopting TSN technology and redundant architecture in the vehicle-mounted safety computer platform, combined with IEEE802.1AS and IEEE802.1Qbv protocols, the problems of task cycle error and expansion capability of the existing platform are solved, and high reliability and security are achieved. The vehicle-mounted safety computer platform is advanced and easy to expand.

CN118410495BActive Publication Date: 2024-09-17SIGNAL & COMM RES INST OF CHINA ACAD OF RAILWAY SCI +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832094.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-17
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

The existing vehicle-mounted safety computer platform has problems such as large task cycle errors, low system bandwidth, and limited expansion capabilities, and it is difficult to meet the needs of high real-time, high reliability, and high security.

Method used

Adopting a vehicle-mounted security computer platform based on Time Sensitive Ethernet (TSN), using a 'two times two' redundant security architecture, dual-system hot standby operation, and combining IEEE802.1AS and IEEE802.1Qbv protocols to achieve time synchronization and traffic shaping scheduling , realize redundancy comparison and data transmission through FPGA module to improve the reliability and security of the system.

Benefits of technology

The time synchronization accuracy has been achieved at the nanometer level. The platform is advanced, highly reliable, and easy to expand. It can meet the installation size requirements of different vehicle systems and improve the reliability and security of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410495B
    Figure CN118410495B
Patent Text Reader

Abstract

The present invention discloses a vehicle-mounted safety computer platform based on TSN, comprising: a platform I series and a platform II series with the same structure, a maintenance record board and a high-speed backplane, wherein the platform I series and the platform II series communicate data with the maintenance record board through a TSN bus; the platform I series comprises a minimum system platform I series and a plurality of I series function expansion boards; the platform II series comprises a minimum system platform II series and a plurality of II series function expansion boards; the plurality of I series function expansion boards and the plurality of II series function expansion boards all comprise a multi-channel bus interface board, a switch quantity acquisition interface board, a switch quantity drive interface board and a train interface board; a data processing method implemented by a safety-related core board is also disclosed, comprising: two processing flows of sending business data from a CPU side to a TSN bus and sending business data from the TSN bus to a CPU side; the platform adopts a redundant safety architecture of "two times two take two", and operates with dual-system hot standby, and has the advantages of modularity, advancement, easy expansibility and high efficiency, so as to provide a universal product for a train control vehicle-mounted system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of railway signal safety computer platforms, and in particular to a vehicle-mounted safety computer platform based on Time Sensitive Ethernet (TSN) and a data processing method thereof, which have better versatility, advancement and scalability. Background Art

[0002] As a safety-critical system, the onboard safety computer platform is based on computer control technology, and uses reliability technology, fail-safe technology, online fault detection technology, and safety-related communication technology to achieve core safety control of signals. It is a key system to ensure the safety of train operation. Compared with the advanced level of foreign countries, my country's onboard safety computer technology still has a certain gap; the safety computer platforms used in high-speed and trunk railway onboard systems are mainly imported.

[0003] In the field of railway signaling, the task cycle error of traditional on-board safety computer platforms is large, the system bandwidth is low, and when the number of boards is greater than a certain level, the platform expansion capability is limited, and the distributed architecture capability is limited. In addition, as the evolution direction of the next generation of industrial networks, the TSN network can meet the high-speed, low-latency, and deterministic transmission of on-board network information by introducing technologies such as time synchronization and traffic shaping scheduling, and has been studied as the next generation of train communication networks. Therefore, on the basis of solving existing problems, taking into account the scalability requirements of future vehicle integration and the needs of network topology diversity, how to develop a safety computer platform that meets high real-time, high reliability, and high security has become an urgent problem to be solved. Summary of the invention

[0004] The purpose of the present invention is to provide a TSN-based on-board safety computer platform and its data processing method. Based on the design concept of high security and high reliability, the platform adopts a "two times two take two" redundant safety architecture and dual-system hot standby operation. It has the advantages of modularity, advancement, easy scalability, high efficiency, etc., providing a universal product for train control on-board systems.

[0005] A first aspect of the present invention is to provide a TSN-based vehicle-mounted safety computer platform, comprising:

[0006] The platform I series and platform II series with the same structure, the maintenance record board (MTN board) and the high-speed backplane (BP board), wherein the platform I series and platform II series with the same structure communicate data with the maintenance record board (MTN board) through the TSN bus to realize basic operation processing, redundant control processing and online fault detection and processing functions, and provide the basic and underlying technical means for the vehicle-mounted system to realize its functions; the maintenance record board (MTN board) is used to obtain the operation status and fault information of each board in the TSN-based vehicle-mounted safety computer platform, and provide software, firmware, time planning table and other upgrade services for the TSN-based vehicle-mounted safety computer platform to meet the platform's maintainability and testability requirements; the high-speed backplane (BP board) is used to provide power supply and business data interaction functions for the TSN-based vehicle-mounted safety computer platform;

[0007] The platform I series includes the minimum system platform I series and multiple I series function expansion boards; the platform II series includes the minimum system platform II series and multiple II series function expansion boards; the platform I series and the platform II series are adapted through the multiple I series function expansion boards and the multiple II series function expansion boards respectively according to the application requirements of different vehicle systems;

[0008] The structures of the minimum system platform I series and the minimum system platform II series are the same, both of which include a core processing board (VCU board), a power board (PS board) and a switch board (SW board); wherein the core processing board (VCU board) provides core control and operation management functions for the platform I series and the platform II series; the power board (PS board) is used to convert the vehicle's 110V power supply into the working voltage of each board of the platform I series and the platform II series; the switch board (SW board) is used to set the time schedule, TSN protocol parsing, traffic forwarding and time synchronization; each board of the platform I series and the platform II series is point-to-point connected to the switch board (SW board) to realize the interactive function of business data.

[0009] The multiple I series function expansion boards and the multiple II series function expansion boards all include a multi-channel bus interface board (MBI board), a switch quantity acquisition interface board (DI board), a switch quantity drive interface board (DO board) and a train interface board (TIU board); wherein the multi-channel bus interface board (MBI board) is used to realize the bridging function of the information of the platform I series and the platform II series with various external buses; the switch quantity acquisition interface board (DI board) is used to realize the acquisition function of the external safety relay; the switch quantity drive interface board (DO board) is used to realize the drive function of the external safety relay; the train interface board (TIU board) is used to realize the acquisition of the train speed sensor signal and the power supply function of the external speed transmission circuit;

[0010] The core processing board (VCU board), switch quantity acquisition interface board (DI board), switch quantity drive interface board (DO board) and train interface board (TIU board) are the safety-related core boards of the TSN-based on-board safety computer platform.

[0011] Preferably, the TSN-based in-vehicle safety computer platform adopts a "two times two out of two" (2×2oo2) redundant architecture, and the redundant architecture includes: realizing a primary-standby redundant (2×) architecture through the platform I system and the platform II system with the same structure, and realizing a comparative redundant (2oo2) architecture through dual branches of the safety-related core boards in the platform I system and the platform II system with the same structure.

[0012] Preferably, the active-standby redundant (2×) architecture includes: completing the active-standby system switching through the interaction of status information and heartbeat information between the platform I system and the platform II system as well as hardware level signals to avoid the "dual-active" mode under any circumstances; the status information includes a system status code, and the system status code is used to characterize the health status of the system.

[0013] Preferably, the implementation method of realizing the active-standby redundant (2×) architecture through the platform I system and the platform II system with the same structure includes: the platform I system and the platform II system are independent and isolated from each other, and are physically communicated and connected through the switch board (SW board) and network isolated through VLAN.

[0014] Preferably, the implementation method of the safety-related core boards in the platform I system and the platform II system with the same structure to achieve a comparative redundancy (2oo2) architecture through dual branches includes: the dual branches are independent and isolated from each other and adopt a safety redundancy mechanism of consistency comparison and rejection.

[0015] Preferably, the dual branches of the safety-related core board both adopt a "CPU module + FPGA module" structure; wherein the structures and functions of the two FPGA modules of the dual branches are exactly the same, and are used to realize the functions of business data reception and transmission, TSN network communication and dual-branch data comparison; the FPGA module exchanges data and status with the CPU module through a memory bus, and provides interrupt signals and multiple types of operation monitoring signals to the CPU module;

[0016] The CPU module is designed in hardware and software according to different board functions. The CPU module of the core processing board (VCU board) is used to complete the main and standby switching, task scheduling, fault handling, power-on self-test, operation self-test and time management functions.

[0017] Preferably, the TSN-based in-vehicle safety computer platform includes two networks, a TSN network and an ordinary Ethernet network; wherein the TSN network is used for business data interaction within the TSN-based in-vehicle safety computer platform and for interconnection with devices with TSN functions in peripherals; the ordinary Ethernet is used for interconnection between the TSN-based in-vehicle safety computer platform and devices with ordinary Ethernet functions in peripherals; the high-speed backplane (BP board) is a 1000BASE-T1 Gigabit Ethernet interface.

[0018] Preferably, the TSN-based in-vehicle safety computer platform implements platform-level master-standby system time synchronization and board-level dual-branch time synchronization based on the IEEE802.1AS protocol; and implements time-determined sending and receiving of business data based on the IEEE802.1Qbv protocol. By setting a time planning table, the business data of the TSN-based in-vehicle safety computer platform is divided based on time slices to ensure the security and reliability of the business data.

[0019] Preferably, each TSN interface of the TSN-based in-vehicle safety computer platform uses the IEEE802.1CB protocol to interact with the switch board for business data, thereby realizing the four-degree-of-redundancy transceiver function of the TSN bus communication and improving the reliability of the business data transmission.

[0020] The second aspect of the present invention is to provide a data processing method of a TSN-based vehicle-mounted safety computer platform according to the first aspect, which is implemented by the safety-related core board, including: sending service data from the CPU side to the TSN bus and sending service data from the TSN bus to the CPU side; wherein:

[0021] The sending of service data from the CPU side to the TSN bus includes:

[0022] For branch X, the CPU module of branch X sends branch X service data to the FPGA module of branch X; after confirming receipt of the branch X service data, the FPGA module of branch X copies the branch X service data and sends it to the FPGA module of branch Y; for branch Y, the CPU module of branch Y sends branch Y service data to the FPGA module of branch Y; after receiving the branch Y service data, the FPGA module of branch Y copies the branch Y service data and sends it to the FPGA module of branch X;

[0023] For the X branch, the comparison module of the FPGA module of the X branch compares the X branch service data with the Y branch service data sent by the FPGA module of the Y branch to obtain an X branch comparison result, and sends the X branch comparison result to the FPGA module of the Y branch; for the Y branch, the comparison module of the FPGA module of the Y branch compares the Y branch service data with the X branch service data sent by the FPGA module of the X branch to obtain a Y branch comparison result, and sends the Y branch comparison result to the FPGA module of the X branch;

[0024] For the X branch, if the comparison result of the X branch is consistent with the comparison result of the Y branch, the TSN gating sending module of the X branch will encapsulate the relatively correct X branch service data into Ethernet messages, and send the obtained X branch Ethernet message to the TSN MAC module of the X branch, otherwise, the X branch service data will not be sent; for the Y branch, if the comparison result of the Y branch is consistent with the comparison result of the X branch, the TSN gating sending module of the Y branch will encapsulate the relatively correct Y branch service data into Ethernet messages, and send the obtained Y branch Ethernet message to the TSN MAC module of the Y branch, otherwise, the Y branch service data will not be sent;

[0025] For the X branch, the TSN MAC module of the X branch receives the message sending request of the TSN gating sending module, and sends the Ethernet message of the X branch to the external Ethernet PHY interface; for the Y branch, the TSN MAC module of the Y branch receives the message sending request of the TSN gating sending module, and sends the Ethernet message of the Y branch to the external Ethernet PHY interface.

[0026] The TSN bus sends service data to the CPU side including:

[0027] For the X branch, the TSN MAC module of the X branch receives the Ethernet message of the X branch from the external Ethernet PHY interface, sends it to the TSN gating receiving module of the X branch, and copies the Ethernet message of the X branch and sends it to the FPGA module of the Y branch; for the Y branch, the TSN MAC module of the Y branch receives the Ethernet message of the Y branch from the external Ethernet PHY interface, sends it to the TSN gating receiving module of the X branch, and copies the Ethernet message of the Y branch and sends it to the FPGA module of the X branch;

[0028] For the X branch, the TSN gating receiving module of the X branch performs Ethernet unpacking and verification on the X branch Ethernet message and the Y branch Ethernet message sent by the FPGA module of the Y branch, and sends the obtained X branch service data and the Y branch service data to the comparison module of the FPGA module of the X branch; for the Y branch, the TSN gating receiving module of the Y branch performs Ethernet unpacking and verification on the Y branch Ethernet message and the X branch Ethernet message sent by the FPGA module of the X branch, and sends the Y branch service data and the X branch service data to the comparison module of the FPGA module of the Y branch;

[0029] For the X branch, the comparison module of the FPGA module of the X branch compares the X branch service data with the Y branch service data to obtain an X branch comparison result, and sends the X branch comparison result to the FPGA module of the Y branch; for the Y branch, the comparison module of the FPGA module of the Y branch compares the Y branch service data with the X branch service data to obtain a Y branch comparison result, and sends the Y branch comparison result to the FPGA module of the X branch;

[0030] For the X branch, if the X branch comparison result of the FPGA module of the X branch is consistent with the Y branch comparison result sent by the FPGA module of the Y branch, an interrupt is reported for query by the CPU module of the X branch, otherwise the X branch service data is discarded; for the Y branch, if the Y branch comparison result of the FPGA module of the Y branch is consistent with the X branch comparison result sent by the FPGA module of the X branch, an interrupt is reported for query by the CPU module of the Y branch, otherwise the Y branch service data is discarded.

[0031] Beneficial effects of the platform and data processing method of the present invention:

[0032] (1) The platform introduced TSN technology into the field of in-vehicle safety computer platform for the first time, innovatively adopted TSN bus architecture, and achieved nanometer-level time synchronization accuracy, which is quite advanced;

[0033] (2) The platform uses FPGA to implement the two-out-of-two function, which does not require a large amount of CPU resources and is highly efficient and secure;

[0034] (3) The platform has long-distance transmission capabilities, can achieve distributed installation, is easy to install and expand, and can meet the installation size requirements of different vehicle systems;

[0035] (4) The platform adopts the TSN IEEE802.1Qbv protocol and introduces traffic shaping scheduling to achieve accurate forwarding of deterministic business flows and time-sensitive flows in various scenarios;

[0036] (5) The platform uses the TSN IEEE802.1CB protocol to achieve redundant transmission of business data within the platform, thereby improving the reliability of platform data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 The figure is a schematic diagram of the architecture of a TSN-based in-vehicle safety computer platform according to an embodiment of the present invention.

[0039] Figure 2 A business data flow diagram of a security core board provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0042] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0043] 1. Basic structure of the platform

[0044] The secure computer platform includes platforms I and II with the same structure, a maintenance record board (MTN board) and a high-speed backplane (BP board), such as Figure 1 The platforms I and II with the same structure communicate with the MTN board via the TSN bus to achieve basic operation processing, redundant control processing, and online fault detection and processing functions, providing the basis and underlying technical means for the vehicle-mounted system to realize its functions.

[0045] The platform has a minimum system. The minimum system includes a minimum system platform I series and a minimum system platform II series with the same structure, an MTN board and a BP board. The minimum system platform I series or the minimum system platform II series includes a core processing board (VCU board), a power supply board (PS board) and a switch board (SW board). According to the application requirements of different vehicle-mounted systems, the platform can be adapted through multiple function expansion boards.

[0046] 1. Platform I and II with the same structure

[0047] The platform series I or II with the same structure at least includes a VCU board, a PS board, a SW board and multiple function expansion boards. The multiple function expansion boards at least include a switch quantity acquisition interface board (DI board), a switch quantity drive interface board (DO board), a train interface board (TIU board) and a multi-channel bus interface board (MBI board).

[0048] The VCU board, DI board, DO board and TIU board are the security-related core boards of the platform.

[0049] (1) VCU board

[0050] The VCU board provides the core control and operation management functions for the platform, performs redundancy management on the collected digital signals, completes the vehicle control curve calculation of the vehicle system, outputs relevant command signals, and also includes the communication, management and key management functions of the vehicle radio station.

[0051] (2) PS board

[0052] The PS board is used to convert the vehicle's 110V power supply into the operating voltage of each board of the platform.

[0053] (3) SW board

[0054] The SW board implements functions such as time schedule setting, TSN protocol analysis, traffic forwarding and time synchronization. Each board of the platform is connected to the SW board in a point-to-point manner to realize the business data interaction function.

[0055] (4) DI / DO board

[0056] The DI / DO board adapts the number of switch quantity acquisition / drive interfaces according to the application requirements of different vehicle-mounted systems to complete the acquisition and drive functions of the external safety relay.

[0057] (5) TIU board

[0058] The TIU board adapts the speed sensor interface according to the application requirements of different vehicle-mounted systems, and realizes the functions of collecting train speed sensor signals and supplying power to external speed transmission circuits.

[0059] (6) MBI board

[0060] The MBI board realizes the information bridging function between the platform and various external buses, including bus interface types such as RS422 / RS485, Profibus, MVB and Ethernet.

[0061] 2. MTN board

[0062] The MTN board obtains the operating status and fault information of each board in the platform, and provides software, firmware, time schedule and other upgrade services for the platform to meet the maintainability and testability requirements of the platform.

[0063] 3. BP board

[0064] The BP board adopts a 1000BASE-T1 Gigabit Ethernet interface to provide power supply and business data interaction functions for the platform.

[0065] 2. Platform Architecture Design

[0066] 1. Active / standby redundant (2×) architecture

[0067] The platform implements active-standby redundant (2×) architecture through platform series I and series II with the same structure. Series I and series II are independent and isolated from each other, and are physically connected through SW boards and network isolated through VLANs.

[0068] The platform completes the master-slave system switching through the interaction of the status information and heartbeat information of the I and II systems, as well as the hardware level signal, to avoid the "dual master" mode under any circumstances. The status information includes the system status code, which is used to represent the health status of the system.

[0069] 2. Comparatively redundant (2oo2) architecture

[0070] In the platform series I or series II with the same structure, the safety-related core board implements a comparative redundancy (2oo2) architecture through dual branches, the dual branches are independent and isolated from each other, and a safety redundancy mechanism of consistency comparison and rejection is adopted.

[0071] The dual branches of the safety-related core board both adopt a "CPU module + FPGA module" structure, and each branch includes an independent power supply, clock, memory, temperature acquisition, voltage monitoring and debugging interface, etc.

[0072] The structure and function of the FPGA module are exactly the same, realizing business data reception and transmission, TSN network communication and dual-branch data comparison functions, interacting with the CPU module in terms of data and status through the memory bus, and providing interrupt signals and various operation monitoring signals to the CPU module.

[0073] The CPU module is designed in hardware and software according to different board function requirements. The CPU module of the VCU board mainly completes the functions of active-standby switching, task scheduling, fault handling, power-on self-test, operation self-test, time management, etc.

[0074] 3. TSN technology application

[0075] The platform uses two networks, TSN network and ordinary Ethernet. The TSN network is used for business data interaction within the platform and interconnection with devices with TSN functions in peripherals. The ordinary Ethernet is used for interconnection between the platform and devices with ordinary Ethernet functions in peripherals.

[0076] The platform adopts IEEE802.1AS protocol to realize platform-level master-slave system time synchronization and board-level dual-branch time synchronization of the platform. The master-slave system time synchronization accuracy is within 100ns, and the board-level dual-branch time synchronization accuracy is within 10ns. The platform selects the left-system VCU board as the main clock source (GM) by default, and other boards perform full network time synchronization based on the main clock source. The main clock source switches with the main system to ensure the reliability of the main clock source of the platform.

[0077] The platform adopts the IEEE802.1Qbv protocol to implement the sending and receiving of the platform's determined time business data. By setting a time planning table, the platform's business data is divided based on time slices to ensure the exclusive use of the TSN network transmission medium by the business data within the corresponding time slice, thereby ensuring the security and reliability of the business data.

[0078] Each TSN interface of the platform uses the IEEE802.1CB protocol to interact with the switch board for business data, realizing the four-redundancy transceiver function of TSN bus communication and improving the reliability of the business data transmission.

[0079] 4. Platform operation mode

[0080] The platform can meet the operation and maintenance requirements of the core computer of the vehicle system, and is mainly divided into working mode and maintenance mode. The working mode includes initial operation (under working mode), normal operation and fault operation. The maintenance includes initial operation (under maintenance mode), data maintenance and program maintenance.

[0081] The platform realizes the selection of working mode and maintenance mode through the external debugging cable of the MTN board. When the MTN board is not plugged into the external debugging cable, the MTN board outputs a double high-level signal to the BP board, and the platform enters the working mode; when the MTN board is plugged into the external debugging cable, the MTN board outputs a double low-level signal to the BP board, and the platform enters the maintenance mode.

[0082] 3. Processing flow of some business data on the platform

[0083] Reference Figure 2 , an embodiment of the present invention provides a data processing flow chart of a security-related core board.

[0084] 1. The CPU sends service data to the TSN bus

[0085] Step 1: For branch X, the CPUx module sends service data 1 to the FPGAx module (i.e., writes service data 1 to the CPUx data sending buffer). After receiving the service data 1, the FPGAx module copies the service data 1 and sends it to the FPGAy module. For branch Y, the CPUy module sends service data 2 to the FPGAy module (i.e., writes service data 2 to the CPUy data sending buffer). After receiving the service data 2, the FPGAy module copies the service data 2 and sends it to the FPGAx module.

[0086] Step 2: For branch X, the comparison module of the FPGAx module compares service data 1 with service data 2 sent by the FPGAy module, and sends the comparison result ComResultx of this branch to the FPGAy module. For branch Y, the comparison module of the FPGAy module compares service data 2 with service data 1 sent by the FPGAx module, and sends the comparison result ComResulty of this branch to the FPGAx module.

[0087] Step 3: For branch X, if the comparison result ComResultx of the FPGAx module is consistent with the comparison result ComResulty sent by the FPGAy module, the TSN gating transmission module of this branch will encapsulate the correct service data 1 into an Ethernet message (Ethernet message 1) and send it to the TSN MAC module of this branch, otherwise the service data 1 will not be sent. For branch Y, if the comparison result ComResulty of the FPGAy module is consistent with the comparison result ComResultx sent by the FPGAx module, the TSN gating transmission module of this branch will encapsulate the correct service data 2 into an Ethernet message (Ethernet message 2) and send it to the TSN MAC module of this branch, otherwise the service data 2 will not be sent.

[0088] Step 4: For branch X, the TSN MAC module of this branch receives the message sending request from the TSN gated sending module and sends Ethernet message 1 to the external Ethernet PHY interface (TSN bus). For branch Y, the TSN MAC module of this branch receives the message sending request from the TSN gated sending module and sends Ethernet message 2 to the external Ethernet PHY interface (TSN bus).

[0089] 2. TSN bus sends service data to the CPU side

[0090] Step 1: For branch X, the TSN MAC module of this branch receives Ethernet message 1 from the external Ethernet PHY interface, sends it to the TSN gating receiving module of this branch, and copies Ethernet message 1 to the FPGAy module. For branch Y, the TSN MAC module of this branch receives Ethernet message 2 from the external Ethernet PHY interface, sends it to the TSN gating receiving module of this branch, and copies Ethernet message 2 to the FPGAx module.

[0091] Step 2: For branch X, the TSN gating receiving module of this branch performs Ethernet unpacking and verification on Ethernet message 1 and Ethernet message 2 sent by FPGAy module (i.e., service message 1 and service message 2), and sends service message 1 and service message 2 to the comparison module of FPGAx module. For branch Y, the TSN gating receiving module of this branch performs Ethernet unpacking and verification on Ethernet message 2 and Ethernet message 1 sent by FPGAx module (i.e., service message 2 and service message 1), and sends service message 2 and service message 1 to the comparison module of FPGAy module.

[0092] Step 3: For branch X, the comparison module of the FPGAx module compares service data 1 with service data 2, and sends the comparison result ComResultx of this branch to the FPGAy module. For branch Y, the comparison module of the FPGAy module compares service data 2 with service data 1, and sends the comparison result ComResulty of this branch to the FPGAx module.

[0093] Step 4: For branch X, if the comparison result ComResultx of the FPGAx module is consistent with the comparison result ComResulty sent by the FPGAy module, an interrupt is reported for query by the CPUx module, otherwise the service data 1 is discarded. For branch Y, if the comparison result ComResulty of the FPGAy module is consistent with the comparison result ComResultx sent by the FPGAx module, an interrupt is reported for query by the CPUy module, otherwise the service data 2 is discarded.

[0094] This embodiment is based on the TSN vehicle-mounted safety computer platform. Based on the high security and high reliability design concept, it adopts the "two times two take two" redundant safety architecture and dual-system hot standby operation. The safety computer platform includes an MTN board, a BP board, and platform I series and II series with the same structure. The platform I series or II series includes at least a PS board, a VCU board, a SW board, and multiple function expansion boards. The multiple function expansion boards include at least an MBI board, a DI board, a DO board, and a TIU board. The platform introduces TSN technology into the field of vehicle-mounted safety computer platforms for the first time, using the TSN bus architecture to achieve nanometer-level time synchronization accuracy; using the IEEE802.1Qbv protocol to achieve accurate forwarding of deterministic business data; using the IEEE802.1CB protocol to achieve redundant transmission of business data, with the advantages of advancement, high reliability, easy scalability, modularization, high efficiency, etc., with long-distance transmission function, distributed installation, and meeting the installation size requirements of different vehicle-mounted systems, providing a universal product for train control vehicle-mounted systems.

[0095] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data processing method for a TSN-based vehicle-mounted safety computer platform, implemented by a safety-related core board, characterized in that: The TSN-based in-vehicle safety computer platform includes: The platform I series and platform II series with the same structure, the maintenance record board and the high-speed backplane, wherein the platform I series and platform II series with the same structure communicate data with the maintenance record board through the TSN bus to realize basic operation processing, redundant control processing and online fault detection and processing; the maintenance record board is used to obtain the operation status and fault information of each board in the TSN-based vehicle safety computer platform, and provide software, firmware, and time schedule upgrade services for the TSN-based vehicle safety computer platform; the high-speed backplane is used to provide power supply and business data interaction functions for the TSN-based vehicle safety computer platform; The platform I series includes the minimum system platform I series and multiple I series function expansion boards; the platform II series includes the minimum system platform II series and multiple II series function expansion boards; the platform I series and the platform II series are adapted through the multiple I series function expansion boards and the multiple II series function expansion boards respectively according to the application requirements of different vehicle systems; The structures of the minimum system platform I series and the minimum system platform II series are the same, both of which include a core processing board, a power board and a switch board; wherein the core processing board provides core control and operation management functions for the platform I series and the platform II series; the power board is used to convert the vehicle's 110V power supply into the working voltage of each board of the platform I series and the platform II series; the switch board is used to set the time schedule, TSN protocol analysis, traffic forwarding and time synchronization; each board of the platform I series and the platform II series is point-to-point connected to the switch board to realize the interactive function of business data; The multiple I series function expansion boards and the multiple II series function expansion boards all include a multi-channel bus interface board, a switch quantity acquisition interface board, a switch quantity drive interface board and a train interface board; wherein the multi-channel bus interface board is used to realize the bridging function of the information of the platform I series and the platform II series with a variety of external buses; the switch quantity acquisition interface board is used to realize the acquisition function of the external safety relay; the switch quantity drive interface board is used to realize the drive function of the external safety relay; the train interface board is used to realize the acquisition of the train speed sensor signal and the power supply function of the external speed transmission circuit; The core processing board, switch quantity acquisition interface board, switch quantity drive interface board and train interface board are safety-related core boards of the TSN-based on-board safety computer platform; The data processing method includes two data processing flows: sending service data from the CPU side to the TSN bus and sending service data from the TSN bus to the CPU side; wherein: The sending of service data from the CPU side to the TSN bus includes: For branch X, the CPU module of branch X sends branch X service data to the FPGA module of branch X; after confirming receipt of the branch X service data, the FPGA module of branch X copies the branch X service data and sends it to the FPGA module of branch Y; for branch Y, the CPU module of branch Y sends branch Y service data to the FPGA module of branch Y; after receiving the branch Y service data, the FPGA module of branch Y copies the branch Y service data and sends it to the FPGA module of branch X; For the X branch, the comparison module of the FPGA module of the X branch compares the X branch service data with the Y branch service data sent by the FPGA module of the Y branch to obtain an X branch comparison result, and sends the X branch comparison result to the FPGA module of the Y branch; for the Y branch, the comparison module of the FPGA module of the Y branch compares the Y branch service data with the X branch service data sent by the FPGA module of the X branch to obtain a Y branch comparison result, and sends the Y branch comparison result to the FPGA module of the X branch; For the X branch, if the comparison result of the X branch is consistent with the comparison result of the Y branch sent by the FPGA module of the Y branch, the TSN gating sending module of the X branch will encapsulate the relatively correct X branch service data into Ethernet messages, and send the obtained X branch Ethernet message to the TSN MAC module of the X branch, otherwise, the X branch service data will not be sent; for the Y branch, if the comparison result of the Y branch is consistent with the comparison result of the X branch sent by the FPGA module of the X branch, the TSN gating sending module of the Y branch will encapsulate the relatively correct Y branch service data into Ethernet messages, and send the obtained Y branch Ethernet message to the TSN MAC module of the Y branch, otherwise, the Y branch service data will not be sent; For the X branch, the TSN MAC module of the X branch receives the message sending request of the TSN gating sending module, and sends the Ethernet message of the X branch to the external Ethernet PHY interface; for the Y branch, the TSN MAC module of the Y branch receives the message sending request of the TSN gating sending module, and sends the Ethernet message of the Y branch to the external Ethernet PHY interface; The TSN bus sends service data to the CPU side including: For the X branch, the TSN MAC module of the X branch receives the Ethernet message of the X branch from the external Ethernet PHY interface, sends it to the TSN gating receiving module of the X branch, and copies the Ethernet message of the X branch and sends it to the FPGA module of the Y branch; for the Y branch, the TSN MAC module of the Y branch receives the Ethernet message of the Y branch from the external Ethernet PHY interface, sends it to the TSN gating receiving module of the Y branch, and copies the Ethernet message of the Y branch and sends it to the FPGA module of the X branch; For the X branch, the TSN gating receiving module of the X branch performs Ethernet unpacking and verification on the X branch Ethernet message and the Y branch Ethernet message sent by the FPGA module of the Y branch, and sends the obtained X branch service data and the Y branch service data to the comparison module of the FPGA module of the X branch; for the Y branch, the TSN gating receiving module of the Y branch performs Ethernet unpacking and verification on the Y branch Ethernet message and the X branch Ethernet message sent by the FPGA module of the X branch, and sends the Y branch service data and the X branch service data to the comparison module of the FPGA module of the Y branch; For the X branch, the comparison module of the FPGA module of the X branch compares the X branch service data with the Y branch service data to obtain an X branch comparison result, and sends the X branch comparison result to the FPGA module of the Y branch; for the Y branch, the comparison module of the FPGA module of the Y branch compares the Y branch service data with the X branch service data to obtain a Y branch comparison result, and sends the Y branch comparison result to the FPGA module of the X branch; For the X branch, if the X branch comparison result of the FPGA module of the X branch is consistent with the Y branch comparison result sent by the FPGA module of the Y branch, an interrupt is reported for query by the CPU module of the X branch, otherwise the X branch service data is discarded; for the Y branch, if the Y branch comparison result of the FPGA module of the Y branch is consistent with the X branch comparison result sent by the FPGA module of the X branch, an interrupt is reported for query by the CPU module of the Y branch, otherwise the Y branch service data is discarded.

2. The data processing method according to claim 1, characterized in that: The TSN-based in-vehicle safety computer platform adopts a "two by two take two" redundant architecture, which includes: realizing a primary-standby redundant architecture through the platform I series and the platform II series with the same structure, and realizing a comparative redundant architecture through dual branches of the safety-related core boards in the platform I series and the platform II series with the same structure.

3. The data processing method according to claim 2, characterized in that: The active-standby redundant architecture includes: completing the active-standby system switching through the interaction of status information and heartbeat information between the platform I system and the platform II system as well as hardware level signals; the status information includes a system status code, and the system status code is used to characterize the health status of the system.

4. The data processing method according to claim 3, characterized in that: The implementation method of realizing the active-standby redundant architecture through the platform I system and the platform II system with the same structure includes: the platform I system and the platform II system are independent and isolated from each other, and are physically connected through the switch board and network isolated through VLAN.

5. The data processing method according to claim 2, characterized in that: The implementation method of the safety-related core boards in the platform I series and the platform II series with the same structure to realize a comparative redundant architecture through dual branches includes: the dual branches are independent and isolated from each other and adopt a safety redundancy mechanism of consistency comparison and rejection.

6. The data processing method according to claim 5, characterized in that: The dual branches of the safety-related core board both adopt a "CPU module + FPGA module" structure; wherein the structures and functions of the two FPGA modules of the dual branches are exactly the same, and are used to realize the functions of business data reception and transmission, TSN network communication and dual-branch data comparison; the FPGA module exchanges data and status with the CPU module through the memory bus, and provides interrupt signals and multiple types of operation monitoring signals to the CPU module; The CPU module is designed in hardware and software according to different board functions. The CPU module of the core processing board is used to complete the main and standby switching, task scheduling, fault handling, power-on self-test, operation self-test and time management functions.

7. The data processing method according to claim 1, characterized in that: The TSN-based in-vehicle safety computer platform includes two networks: TSN network and ordinary Ethernet. The TSN network is used for business data interaction within the TSN-based in-vehicle safety computer platform and for interconnection with devices with TSN functions in peripherals. The ordinary Ethernet is used for interconnection between the TSN-based in-vehicle safety computer platform and devices with ordinary Ethernet functions in peripherals. The high-speed backplane is a 1000BASE-T1 Gigabit Ethernet interface.

8. The data processing method according to claim 1, characterized in that: The TSN-based in-vehicle safety computer platform implements platform-level master-slave system time synchronization and board-level dual-branch time synchronization based on the IEEE802.1AS protocol; The sending and receiving of service data are determined at a certain time based on the IEEE802.1Qbv protocol, and the service data of the TSN-based vehicle safety computer platform is divided based on time slices by setting a time planning table.

9. The data processing method according to claim 1, characterized in that: Each TSN interface of the TSN-based vehicle safety computer platform uses the IEEE802.1CB protocol to interact with the switch board for business data, thereby realizing the four-redundancy transceiver function of the TSN bus communication.