Advanced driver assistance system based on CAN-TSN gateway

Through the advanced assisted driving system based on the CAN-TSN gateway, the existing technology problems of insufficient perception of the car's internal state and driver information and communication incompatibility are solved, and multi-sensory fusion and decision support for autonomous vehicles are realized, improving safety and reliability.

CN115520118BActive Publication Date: 2024-09-20HUNAN UNIV CHONGQING RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211000155.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2024-09-20
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

Existing advanced assisted driving systems lack perception of the car's internal status and driver information, and have problems with communication protocols and rate mismatches with the car's control system, resulting in insufficient data transmission and decision support, affecting the safety of autonomous vehicles. performance and reliability.

Method used

Adopt an advanced assisted driving system based on CAN-TSN gateway, collect vehicle status data through OBD, use CAN-TSN protocol conversion algorithm for rate matching and protocol conversion, realize the interconnection and interoperability of assisted driving subsystem and vehicle control subsystem, and combine multi-sensing Fusion algorithm and AI detection algorithm provide more comprehensive data support and decision-making feedback.

Benefits of technology

It has expanded the functions of the advanced assisted driving system, improved the safety and accuracy of the autonomous driving algorithm in various scenarios, reduced the load pressure of low-bandwidth sensors, and proposed a ground-breaking gateway design solution through a car-grade development kit, enhancing the System real-time and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115520118B
    Figure CN115520118B
Patent Text Reader

Abstract

The present invention relates to the field of autonomous driving technology, and discloses an advanced driver assistance system based on a CAN-TSN gateway, including an assisted driving subsystem, a vehicle control subsystem and a central gateway; the assisted driving subsystem detects road condition information and driver behavior; the vehicle control subsystem detects the vehicle state and detects obstacles; the central gateway connects the assisted driving subsystem and the vehicle control subsystem, and uses a CAN-TSN protocol conversion algorithm for rate matching, including a CAN-TSN conversion strategy and a TSN-CAN conversion strategy, the CAN-TSN conversion strategy is packaged according to the message cycle and load, and the TSN-CAN conversion strategy divides the TSN frame according to the domain to be sent. The system provided by the present invention transmits the vehicle status data collected by the OBD to the assisted driving subsystem through the CAN-TSN gateway, provides more data support for the decision-making of the assisted driving subsystem, realizes multi-sensory fusion, feeds back the decision to the vehicle control subsystem, and improves the safety and reliability of the autonomous driving vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to an advanced driver assistance system based on a CAN-TSN gateway. Background Art

[0002] With the development of intelligent and connected vehicles, the automotive electronic and electrical architecture has shifted from a distributed automotive electronic and electrical architecture based on ECU to a domain-centralized electronic and electrical architecture. For example, BOSCH divides cars into power domain, body domain, chassis domain, cockpit domain and advanced driver assistance domain. The existing advanced driver assistance system mainly collects traffic environment data through external sensors such as millimeter-wave radar, lidar, on-board camera, inertial navigation, etc., accurately identifies various traffic elements, and provides support for the decision-making system of autonomous driving vehicles. The existing advanced driver assistance system mainly focuses on the external road conditions of the vehicle, and has little perception of information such as the driver's status and driving status of the car. It lacks perception of information such as the car's speed, tire speed, engine temperature, whether the driver is driving fatigued, and whether there is bad driving behavior.

[0003] The existing problems of advanced driver assistance systems include: 1. They mainly make decisions on autonomous driving by collecting road condition information, with single data, lack of vehicle status detection and driver information collection and decision-making, and are unable to transmit data to the vehicle control system. 2. The advanced driver assistance system and the vehicle control system have problems such as incompatible communication protocols and rate mismatch, and need to be interconnected through a gateway. 3. The existing CAN-TSN gateway mainly focuses on theory, and the verification platform used lacks automotive-grade certification, is not feasible for actual implementation, and lacks practical solutions. Summary of the invention

[0004] The present invention provides an advanced driver assistance system based on CAN-TSN gateway, which transmits the vehicle status data collected by OBD to the driver assistance subsystem through the CAN-TSN gateway, provides more data support for the decision-making of the driver assistance subsystem, realizes multi-sensory fusion, feeds back the decision to the vehicle control subsystem, and improves the safety and reliability of the autonomous driving vehicle.

[0005] The present invention provides an advanced driver assistance system based on CAN-TSN gateway, including an assisted driving subsystem, a vehicle control subsystem and a central gateway;

[0006] The auxiliary driving subsystem is used to detect road condition information and driver behavior; the vehicle control subsystem is used to detect the vehicle status and use millimeter wave radar to detect obstacles; the central gateway is used to connect the first domain controller of the auxiliary driving subsystem and the second domain controller of the vehicle control subsystem. The central gateway is a CAN-TSN gateway, which uses the CAN-TSN protocol conversion algorithm for rate matching, allocates IP addresses to the first domain controller and the second domain controller, and uses Socket transmission of the TCP / IP network layer and Ethernet frame / TSN frame transmission of the data link layer;

[0007] The CAN-TSN protocol conversion algorithm includes a CAN-TSN conversion strategy and a TSN-CAN conversion strategy. The CAN-TSN conversion strategy is packaged according to the message cycle and the load, and the TSN-CAN conversion strategy divides the TSN frame according to the domain to which it needs to be sent.

[0008] Furthermore, the CAN-TSN conversion strategy converts the CAN message of the vehicle control subsystem into a TSN frame and forwards it to the auxiliary driving subsystem, and the steps include:

[0009] S11, load the CAN message into the TSN frame;

[0010] S12, determining whether the TSN frame is overloaded;

[0011] S13, when the TSN frame is overloaded, create a TSN frame and return to step S11;

[0012] S14, when the TSN frame is not overloaded, determine whether the real-time scheduling is met;

[0013] S15, when the real-time scheduling is not met, the message is repackaged and the process returns to step S11;

[0014] S16: forwarding when real-time scheduling is met.

[0015] Furthermore, the TSN-CAN conversion strategy sends the decision of the auxiliary driving subsystem to the vehicle control subsystem, and the steps include:

[0016] S21, splitting the TSN frame;

[0017] S22, filling the CAN message with data;

[0018] S23, judging whether filling is possible;

[0019] S24. When filling is not possible, create a new CAN message and return to step S22;

[0020] S25, when it can be filled, determine whether the real-time scheduling is met;

[0021] S26. When the real-time scheduling is not met, return to step S21;

[0022] S27. Forwarding is performed when real-time scheduling is satisfied.

[0023] Furthermore, the auxiliary driving subsystem includes a first domain controller, an on-board external camera, an on-board internal camera and an on-board embedded GPU, and communicates through a TSN network;

[0024] The on-board external camera collects road condition information facing outside the vehicle and performs real-time target detection through a first set algorithm; wherein the detection content includes cars, trucks, buses, pedestrians, bicycles, and traffic signs;

[0025] The in-vehicle camera collects driver behavior information facing the interior of the vehicle and performs fatigue driving detection and bad behavior detection through a second set algorithm;

[0026] The vehicle-mounted embedded GPU is used to receive the road condition information and the driver behavior information for data processing, and transmit the processing result to the first domain controller;

[0027] The first domain controller is used to perform perception fusion on the data transmitted by the vehicle-mounted embedded GPU using a multi-perception fusion algorithm to form the decision, and send the decision to the central gateway.

[0028] Furthermore, the steps of the multi-sensory fusion algorithm include:

[0029] S31, multiple sensors of different types collect data of the observed target;

[0030] S32, extracting and transforming features from output data of multiple different types of sensors, performing pattern recognition processing on feature vector Yi, and obtaining description data of each sensor about the target;

[0031] S33, performing sensor synchronization, including time synchronization and space synchronization;

[0032] S34, grouping the description data of each sensor about the target according to the same target, and synthesizing the sensor data of the target using a fusion algorithm to obtain a consistent explanation and description of the observed target.

[0033] Furthermore, the time synchronization and space synchronization include IEEE 802.1AS protocol and sensor calibration.

[0034] Furthermore, the first setting algorithm is a YOLOv5 algorithm, and the second setting algorithm is a lightweight MobileNet.

[0035] Furthermore, the vehicle control subsystem includes a second domain controller, a vehicle power simulator, a millimeter wave radar and a vehicle OBD instrument panel, and communicates via an on-board CAN bus;

[0036] The second domain controller is used for receiving and parsing CAN bus data, and packing the data into Ethernet / TSN frame format, and transmitting it to the central gateway via Socket socket;

[0037] The vehicle power simulator sends a vehicle status signal at a first set period; wherein the vehicle status signal includes vehicle speed, tire speed, coolant temperature, intake air temperature, intake manifold pressure, throttle position, ignition advance angle, engine load, remaining fuel, air-fuel ratio, and turbine pressure;

[0038] The millimeter wave radar collects obstacle information at a second set period and calculates the angle, distance and speed of the obstacle; wherein the obstacle information includes lateral distance, longitudinal distance, lateral speed and longitudinal speed;

[0039] The automobile OBD instrument panel reads the data of the automobile power simulator through the OBD interface, and displays the data in real time and issues an abnormal alarm.

[0040] The beneficial effects of the present invention are:

[0041] 1. The present invention can expand the functions of the existing advanced driver assistance system, provide more information for the decision-making of the autonomous driving algorithm, such as the vehicle's driving conditions, body information, etc., and perform multi-sensory fusion, thereby comprehensively improving the safety and accuracy of the autonomous driving algorithm in various scenarios.

[0042] 2. The present invention reduces the load pressure of the existing autonomous driving domain and improves the real-time performance of low-bandwidth sensors by placing a portion of low-bandwidth sensors (such as millimeter-wave radars) into the body control domain.

[0043] 3. The present invention is compatible with various OBD interfaces and millimeter-wave radars, can dynamically adjust the real-time scheduling algorithm of CAN-TSN protocol conversion according to data characteristics, and proposes a feasible gateway design solution based on the automotive-grade development kit. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 The figure is a functional schematic diagram of the advanced driver assistance system based on the CAN-TSN gateway of the present invention.

[0045] Figure 2 The figure is a schematic diagram of the advanced driver assistance system architecture based on the CAN-TSN gateway of the present invention.

[0046] Figure 3 The figure is a schematic diagram of the internal architecture of the advanced driver assistance system based on the CAN-TSN gateway of the present invention.

[0047] Figure 4 Schematic diagram of the multi-sensor fusion algorithm in the present invention.

[0048] Figure 5 This is a flow chart of the CAN-TSN forwarding strategy in the CAN-TSN protocol conversion algorithm of the present invention.

[0049] Figure 6 This is a flow chart of the TSN-CAN forwarding strategy in the CAN-TSN protocol conversion algorithm of the present invention.

[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0052] In advanced driver assistance systems, high-speed in-vehicle Ethernet technologies such as time-sensitive networks (TSN) are needed to meet the needs of the autonomous driving domain for high bandwidth and low latency. However, traditional automotive control systems, such as power domains, base domains, and body domains, still use controller area networks (CAN) as backbone communication networks. Therefore, in order to achieve interconnection and interoperability of various domains in a domain-centralized electronic and electrical architecture, the present invention proposes a CAN-TSN gateway to send vehicle status data in the vehicle control domain to the driver assistance subsystem, solve the rate matching and protocol conversion problems between different networks, and achieve auxiliary decision-making for the driver assistance subsystem.

[0053] like Figure 1-3 As shown, the present invention provides an advanced driver assistance system based on CAN-TSN gateway, including an assisted driving subsystem, a vehicle control subsystem and a central gateway, wherein the assisted driving subsystem (advanced driver assistance domain) and the vehicle control subsystem (vehicle power control domain) are connected through the vehicle gateway. The assisted driving subsystem is used to realize road condition information detection and driver behavior detection, the vehicle control subsystem is used to realize vehicle status detection and millimeter wave radar obstacle detection, and the central gateway is used to connect the domain controllers of the two domains to realize direct protocol conversion and rate matching between different domains.

[0054] The assisted driving subsystem (advanced assisted driving domain) is mainly based on Ethernet / TSN, which detects driver behavior in real time through the on-board camera facing the inside of the car, and detects road conditions in real time through the on-board camera facing the outside of the car, and sends the data to the switch through the domain controller. The vehicle control subsystem (vehicle power control domain) is mainly based on the CAN bus, and realizes vehicle status display through the vehicle OBD instrument panel, power simulation through the vehicle ECU simulator, and obstacle distance and speed detection through millimeter wave radar.

[0055] Assisted driving subsystem: used to detect road condition information and driver behavior.

[0056] The auxiliary driving subsystem includes a first domain controller, an on-board external camera, an on-board internal camera and an on-board embedded GPU, and communicates through a TSN network;

[0057] The on-board external camera faces outside the vehicle to collect road condition information and performs real-time target detection through a first set algorithm; wherein the detection content includes cars, trucks, buses, pedestrians, bicycles, and traffic signs, and the first set algorithm is the YOLOv5 algorithm.

[0058] The in-vehicle camera collects driver behavior information facing the interior of the vehicle, and performs fatigue driving detection and bad behavior detection through a second set algorithm, where the second set algorithm is a lightweight MobileNet.

[0059] The vehicle-mounted embedded GPU is used to receive the road condition information and the driver behavior information for data processing, and transmit the processing result to the first domain controller;

[0060] The first domain controller is used to perform perception fusion on the data transmitted by the vehicle-mounted embedded GPU using a multi-perception fusion algorithm to form the decision, and send the decision to the central gateway.

[0061] As mentioned above, the assisted driving subsystem uses an embedded GPU as a computing unit, collects information through the on-board camera, and communicates through the TSN network. It collects road condition information outside the vehicle and performs real-time target detection through the YOLOv5 algorithm. The main detection content includes road condition information such as cars, trucks, buses, pedestrians, bicycles, and traffic signs. It collects driver information inside the vehicle and uses lightweight MobileNet to detect fatigue driving and bad behavior, such as making phone calls and smoking. Data processing is performed through the embedded GPU, and the processing results are summarized to the first domain controller for perception fusion. Decisions are made through the multi-perception fusion algorithm, and finally the decisions are sent to the central gateway through the first domain controller.

[0062] like Figure 4 As shown, the steps of the multi-sensory fusion algorithm include:

[0063] S31, multiple sensors of different types collect data of the observed target;

[0064] S32, extracting and transforming features from output data of multiple different types of sensors, performing pattern recognition processing on feature vector Yi, and obtaining description data of each sensor about the target;

[0065] S33, performing sensor synchronization, including time synchronization and space synchronization; the time synchronization and space synchronization include IEEE802.1AS protocol and sensor calibration.

[0066] S34, grouping the description data of each sensor about the target according to the same target, and synthesizing the sensor data of the target using a fusion algorithm to obtain a consistent explanation and description of the observed target.

[0067] As mentioned above, the principle of the multi-sensor fusion algorithm is as follows: First, the data of the observed target is collected through multiple sensors of different types, and the output data of the sensor is subjected to feature extraction and transformation. The feature vector Yi is subjected to pattern recognition processing to complete the description of the target by each sensor. Secondly, the sensor synchronization is performed, including time synchronization and space synchronization. The design technology includes IEEE802.1AS and sensor calibration. Finally, the description data of the target by each sensor is grouped according to the same target, and the sensor data of the target is synthesized using the fusion algorithm to obtain a consistent interpretation and description of the target.

[0068] Vehicle control subsystem: used to detect the vehicle status and detect obstacles using millimeter-wave radar.

[0069] The vehicle control subsystem includes a second domain controller, a vehicle power simulator, a millimeter wave radar and a vehicle OBD instrument panel, and communicates through the vehicle CAN bus;

[0070] The second domain controller is used for receiving and parsing CAN bus data, and packing the data into Ethernet / TSN frame format, and transmitting it to the central gateway via Socket socket;

[0071] The vehicle power simulator sends a vehicle status signal at a first set period; wherein the vehicle status signal includes vehicle speed, tire speed, coolant temperature, intake air temperature, intake manifold pressure, throttle position, ignition advance angle, engine load, remaining fuel, air-fuel ratio, and turbine pressure;

[0072] The millimeter wave radar collects obstacle information at a second set period and calculates the angle, distance and speed of the obstacle; wherein the obstacle information includes lateral distance, longitudinal distance, lateral speed and longitudinal speed;

[0073] The automobile OBD instrument panel reads the data of the automobile power simulator through the OBD interface, and displays the data in real time and issues an abnormal alarm.

[0074] As mentioned above, the vehicle control subsystem consists of the second domain controller, the vehicle OBD instrument panel, the vehicle power simulator, and the millimeter-wave radar, which communicate through the vehicle CAN bus. The second domain controller realizes the reception and analysis of CAN bus data, packages the data into Ethernet / TSN frame format, and transmits it to the central gateway through the Socket socket. The vehicle power simulator sends the vehicle status signal at a cycle of 50ms, including vehicle speed, tire speed, coolant temperature, intake temperature, intake manifold pressure, throttle position, ignition advance angle, engine load, remaining fuel, air-fuel ratio, turbine pressure, etc. The millimeter-wave radar collects obstacle information at a cycle of 30ms, including lateral distance, longitudinal distance, lateral speed, longitudinal speed, etc., and calculates the angle, distance and speed of the obstacle through the existing algorithm. The vehicle OBD instrument panel can read the power simulator data through the OBD interface to realize real-time display of data and abnormal alarm.

[0075] Central Gateway:

[0076] The central gateway is used to connect the first domain controller of the auxiliary driving subsystem and the second domain controller of the vehicle control subsystem. The central gateway is a CAN-TSN gateway, which uses the CAN-TSN protocol conversion algorithm for rate matching, allocates IP addresses to the first domain controller and the second domain controller, and uses the Socket transmission of the TCP / IP network layer and the Ethernet frame / TSN frame transmission of the data link layer;

[0077] The CAN-TSN protocol conversion algorithm includes a CAN-TSN conversion strategy and a TSN-CAN conversion strategy. The CAN-TSN conversion strategy is packaged according to the message cycle and the load, and the TSN-CAN conversion strategy divides the TSN frame according to the domain to which it needs to be sent.

[0078] As mentioned above, the CAN-TSN gateway is used as the central gateway, and its main functions include network routing, protocol conversion, and rate matching. The central gateway assigns IP addresses to each controller, supports Socket transmission at the TCP / IP network layer, and Ethernet frame / TSN frame transmission at the data link layer; since Ethernet / TSN supports 100M or even 1000M networks, and the vehicle-mounted CAN bus only supports 1M / s. Therefore, it cannot be forwarded directly in the gateway, and the CAN-TSN protocol conversion algorithm is required for rate matching. The CAN-TSN protocol conversion algorithm is divided into CAN-TSN conversion strategy and TSN-CAN conversion strategy. The CAN to TSN conversion strategy is to package according to the message cycle and load, and to maximize bandwidth utilization while meeting real-time and security requirements. The TSN to CAN conversion strategy is to divide the TSN frame according to the domain to which it needs to be sent, and to minimize the number of CAN messages created while meeting the CAN message communication matrix.

[0079] like Figure 5 As shown, the CAN-TSN conversion strategy converts the CAN message of the vehicle control subsystem into a TSN frame and forwards it to the auxiliary driving subsystem, and the steps include:

[0080] S11, load the CAN message into the TSN frame;

[0081] S12, determining whether the TSN frame is overloaded;

[0082] S13, when the TSN frame is overloaded, create a TSN frame and return to step S11;

[0083] S14, when the TSN frame is not overloaded, determine whether the real-time scheduling is met;

[0084] S15, when the real-time scheduling is not met, the message is repackaged and the process returns to step S11;

[0085] S16: forwarding when real-time scheduling is met.

[0086] like Figure 6 As shown, the TSN-CAN conversion strategy sends the decision of the auxiliary driving subsystem to the vehicle control subsystem, and the steps include:

[0087] S21, splitting the TSN frame;

[0088] S22, filling the CAN message with data;

[0089] S23, judging whether filling is possible;

[0090] S24. When filling is not possible, create a new CAN message and return to step S22;

[0091] S25, when it can be filled, determine whether the real-time scheduling is met;

[0092] S26. When the real-time scheduling is not met, return to step S21;

[0093] S27. Forwarding is performed when real-time scheduling is satisfied.

[0094] As mentioned above, the CAN-TSN protocol conversion algorithm is divided into CAN-TSN conversion strategy and TSN-CAN conversion strategy. The CAN to TSN conversion strategy is to package according to the message cycle and load, and to maximize bandwidth utilization while meeting the real-time and security requirements. The TSN to CAN conversion strategy is to divide the TSN frame according to the domain to be sent, and to minimize the number of CAN messages created while meeting the CAN message communication matrix.

[0095] like Figure 1 , 2 As shown, the system of the present invention can be divided into external vehicle detection, internal vehicle detection and vehicle status detection according to its functions. External vehicle detection includes road condition detection, common road sign recognition and obstacle detection; internal vehicle detection includes fatigue driving detection and driver's bad driving behavior detection; vehicle status detection includes status detection display and vehicle braking simulation. Figure 2 EPS (Electric Power Steering). Common environmental perception sensors used in ADAS are cameras, millimeter wave radars and ultrasonic radars. Navi refers to the vehicle's own voice electronic navigation system (NAVI), an on-board computer with integrated multimedia functions that can perform multiple tasks at the same time. V2X (Vehicle to Everything), with the vehicle as the center, communicates with surrounding vehicles, equipment, and base stations to obtain a series of traffic information such as real-time road conditions, road information, pedestrian information, etc., to improve driving safety, reduce congestion, improve traffic efficiency, and provide in-vehicle entertainment information.

[0096] The present invention uses a CAN-TSN gateway to send the vehicle status data in the vehicle control domain to the assisted driving subsystem, solve the rate matching and protocol conversion problems between different networks, and achieve the auxiliary decision-making function of the assisted driving subsystem. The vehicle status monitoring and data collection are carried out through the vehicle OBD interface, and the vehicle status data collected by the OBD is transmitted to the assisted driving subsystem through the CAN-TSN gateway, providing more data support for the decision-making of the assisted driving subsystem and realizing multi-sensory fusion. The decision is fed back to the vehicle control subsystem to realize an assisted driving system that integrates perception, decision-making, and execution, thereby improving the safety and reliability of autonomous driving vehicles.

[0097] The equipment models involved in the present invention include: 1 NXP automotive-grade vehicle-mounted Ethernet switch: the main model used is SJA1105Q-EVB; 2 NXP automotive-grade microcontrollers: the main model is S32K148EVB; 2 NXP automotive-grade on-chip devices: the main model is I.MX6; 2 NXP automotive-grade PHY devices: the main model is TJA1101; 2 vehicle-mounted Ethernet transparent transmission modules; 4 vehicle-mounted millimeter-wave radars: the main model is Nanoradar Technology SR73; 1 automotive ECU power simulator; 2 vehicle-mounted embedded GPUs: the main model is NVIDIA Jetson Nano; 2 vehicle-mounted cameras;

[0098] The present invention uses an automobile ECU simulator supporting an OBD interface to simulate the power domain data source, uses a millimeter-wave radar as the body domain data source, uses a microcontroller as a node in the CAN domain, uses an on-board Ethernet switch as a central gateway, and uses an on-chip device as a domain controller. The vehicle's driving status and road condition information are obtained from the OBD interface and millimeter-wave radar, and data analysis is performed on the CAN node. The CAN message is converted into a TSN frame through the central gateway and sent to the auxiliary driving subsystem; the camera collects information inside and outside the car, deploys an AI detection algorithm in the embedded GPU, sends the data to the domain controller for perception fusion, forms a decision, and sends the decision to the vehicle control subsystem through the central gateway for decision-making.

[0099] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0100] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An advanced driver assistance system based on CAN-TSN gateway, characterized in that: Including assisted driving subsystem, vehicle control subsystem and central gateway; The auxiliary driving subsystem is used to detect road condition information and driver behavior; the vehicle control subsystem is used to detect the vehicle status and use millimeter wave radar to detect obstacles; The central gateway is used to connect the first domain controller of the auxiliary driving subsystem and the second domain controller of the vehicle control subsystem. The central gateway is a CAN-TSN gateway, which uses the CAN-TSN protocol conversion algorithm for rate matching, allocates IP addresses to the first domain controller and the second domain controller, and uses the Socket transmission of the TCP / IP network layer and the Ethernet frame / TSN frame transmission of the data link layer; The CAN-TSN protocol conversion algorithm includes a CAN-TSN conversion strategy and a TSN-CAN conversion strategy. The CAN-TSN conversion strategy is packaged according to the message cycle and the load. The TSN-CAN conversion strategy divides the TSN frame according to the domain to be sent. The CAN-TSN conversion strategy converts the CAN message of the vehicle control subsystem into a TSN frame and forwards it to the auxiliary driving subsystem, and the steps include: S11, load the CAN message into the TSN frame; S12, determining whether the TSN frame is overloaded; S13, when the TSN frame is overloaded, create a TSN frame and return to step S11; S14, when the TSN frame is not overloaded, determine whether the real-time scheduling is met; S15. When the real-time scheduling is not met, the message is repackaged and the process returns to step S11; S16, forwarding when real-time scheduling is met; The TSN-CAN conversion strategy sends the decision of the auxiliary driving subsystem to the vehicle control subsystem, and the steps include: S21, splitting the TSN frame; S22, filling the CAN message with data; S23, judging whether filling is possible; S24. When filling is not possible, create a new CAN message and return to step S22; S25, when it can be filled, determine whether the real-time scheduling is met; S26. When the real-time scheduling is not met, return to step S21; S27, forwarding when the real-time scheduling is met; The auxiliary driving subsystem includes a first domain controller, an on-board external camera, an on-board internal camera and an on-board embedded GPU, and communicates through a TSN network; The on-board external camera collects road condition information facing outside the vehicle and performs real-time target detection through a first set algorithm; wherein the detection content includes cars, trucks, buses, pedestrians, bicycles, and traffic signs; The in-vehicle camera collects driver behavior information facing the interior of the vehicle and performs fatigue driving detection and bad behavior detection through a second set algorithm; The vehicle-mounted embedded GPU is used to receive the road condition information and the driver behavior information for data processing, and transmit the processing result to the first domain controller; The first domain controller is used to perform perception fusion on the data transmitted by the vehicle-mounted embedded GPU using a multi-perception fusion algorithm to form the decision, and send the decision to the central gateway.

2. The advanced driver assistance system based on CAN-TSN gateway according to claim 1 is characterized in that: The steps of the multi-sensory fusion algorithm include: S31, multiple sensors of different types collect data of the observed target; S32, extracting and transforming features from output data of multiple different types of sensors, performing pattern recognition processing on feature vector Yi, and obtaining description data of each sensor about the target; S33, performing sensor synchronization, including time synchronization and space synchronization; S34, grouping the description data of each sensor about the target according to the same target, and synthesizing the sensor data of the target using a fusion algorithm to obtain a consistent explanation and description of the observed target.

3. The advanced driver assistance system based on CAN-TSN gateway according to claim 2 is characterized in that: The time synchronization and space synchronization include IEEE 802.1AS protocol and sensor calibration.

4. The advanced driver assistance system based on CAN-TSN gateway according to claim 3 is characterized in that: The first setting algorithm is the YOLOv5 algorithm, and the second setting algorithm is the lightweight MobileNet.

5. The advanced driver assistance system based on CAN-TSN gateway according to claim 1 is characterized in that: The vehicle control subsystem includes a second domain controller, a vehicle power simulator, a millimeter wave radar and a vehicle OBD instrument panel, and communicates through the vehicle CAN bus; The second domain controller is used for receiving and parsing CAN bus data, and packing the data into Ethernet / TSN frame format, and transmitting it to the central gateway via Socket socket; The vehicle power simulator sends a vehicle status signal at a first set period; wherein the vehicle status signal includes vehicle speed, tire speed, coolant temperature, intake air temperature, intake manifold pressure, throttle position, ignition advance angle, engine load, remaining fuel, air-fuel ratio, and turbine pressure; The millimeter wave radar collects obstacle information at a second set period and calculates the angle, distance and speed of the obstacle; wherein the obstacle information includes lateral distance, longitudinal distance, lateral speed and longitudinal speed; The automobile OBD instrument panel reads the data of the automobile power simulator through the OBD interface, and displays the data in real time and issues an abnormal alarm.