Data conversion method, interface conversion device and vehicle
The format conversion and transmission of heterogeneous data through interface conversion equipment solves the problem of high cost of unifying the in-vehicle network into TSN Ethernet, achieves data accuracy and real-time, reduces vehicle upgrade costs, and meets the needs of advanced driving assistance systems needs.
Patent Information
- Application Number
- CN202210633004.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-06-06
AI Technical Summary
In the existing technology, unifying the vehicle network into the vehicle TSN Ethernet is costly and difficult to implement.
Receive heterogeneous raw data through the interface conversion device, perform format conversion based on the format of the target data, generate target data with a unified format, and send it to the vehicle controller to achieve data accuracy and real-time, thereby reducing the cost of vehicle upgrades and transformations cost.
Without the need for a comprehensive upgrade of the vehicle, it is possible to convert raw data into target data, reduce costs, meet the needs of advanced driving assistance systems, and improve data transmission and processing efficiency.
Smart Images

Figure CN115051887B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and is mainly applied to the fields of automobiles and industrial control, and in particular to a data conversion method, an interface conversion device and a vehicle. Background Art
[0002] With the development of technology, the vehicle's driver assistance system (ADAS) is becoming more and more mature. In order to effectively realize the functions of the ADAS system, multiple systems must be synchronized. Therefore, the communication time efficiency between the anti-collision system, detection system and braking system becomes very critical. Ethernet with vehicle TSN (Time Sensitive Network, TSN, a set of TSN standards released by the IEEE working group) function has become an ideal network choice.
[0003] However, at present, the vehicle in-vehicle network is composed of multiple buses such as CAN bus, LIN bus, FlexRay, MOST, etc. For example, the brake, engine, suspension, etc. use CAN bus, the light, door, remote control, etc. use LIN system, and the entertainment system uses FlexRay and MOST. Each ECU function uses its own bus standard. Therefore, the in-vehicle network is facing upgrading and transformation, and it is necessary to convert the heterogeneous network transmitted by each ECU into Ethernet with TSN function.
[0004] However, if the existing in-vehicle network is eliminated and all in-vehicle networks are unified into vehicle TSN Ethernet in one step, each ECU in the existing vehicle needs to be modified. Therefore, the cost of the vehicle will be high and difficult to achieve. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a data conversion method, which aims to solve the problem in the prior art that all vehicle networks are unified into vehicle TSN Ethernet, which is costly and difficult to implement.
[0006] According to a first aspect, an embodiment of the present invention provides a data conversion method, which is applied to an interface conversion device, comprising:
[0007] Receive heterogeneous raw data sent by heterogeneous controllers;
[0008] Based on the format of the target data, the format of heterogeneous raw data is converted to generate target data with a unified format;
[0009] Send the target data to the vehicle controller.
[0010] The data conversion method provided in the embodiment of the present invention receives heterogeneous raw data sent by heterogeneous controllers, and based on the format of the target data, performs format conversion on the heterogeneous raw data to generate target data with a unified format, thereby ensuring the accuracy and real-time performance of the generated target data. Then, the target data is sent to the vehicle controller so that the vehicle controller can receive the target data. The target data generated by the above method meets the requirements of the vehicle application advanced driver assistance system, thereby realizing the conversion of raw data into target data without the need for comprehensive upgrade and reconstruction of the vehicle, thereby reducing costs.
[0011] In combination with the first aspect, in a first implementation of the first aspect, based on the format of the target data, format conversion is performed on heterogeneous original data to generate target data with a unified format, including:
[0012] Encapsulate heterogeneous raw data based on the target protocol and add a message header corresponding to the target protocol to convert the raw data into target data.
[0013] The data conversion method provided by the embodiment of the present invention encapsulates heterogeneous original data based on the target protocol and adds a message header corresponding to the target protocol to convert the original data into target data, thereby ensuring the accuracy and real-time performance of the generated target data.
[0014] In combination with the first aspect, in a second implementation of the first aspect, after format conversion is performed on heterogeneous original data based on the format of the target data to generate target data with a unified format, the method further includes:
[0015] Obtain the sending device corresponding to the heterogeneous raw data;
[0016] Determine the priority level of the target data according to the relationship between the sending device and the priority level;
[0017] The target data is processed according to the priority corresponding to the target data.
[0018] The data conversion method provided by the embodiment of the present invention obtains the sending device corresponding to the heterogeneous original data, and then determines the priority corresponding to the target data according to the relationship between the sending device and the priority, thereby ensuring the accuracy of the priority corresponding to the determined target data. Then, the target data is processed according to the priority corresponding to the target data, thereby ensuring that the target data with a high priority is processed first.
[0019] In combination with the second implementation of the first aspect, in the third implementation of the first aspect, determining the priority corresponding to the target data according to the relationship between the sending device and the priority includes:
[0020] Obtaining location information of the sending device in the vehicle communication network;
[0021] According to the relationship between the location information and the priority, the priority corresponding to the target data is determined.
[0022] The data conversion method provided by the embodiment of the present invention obtains the location information of the sending device in the vehicle communication network, and then determines the priority corresponding to the target data based on the relationship between the location information and the priority, thereby ensuring the accuracy of the priority corresponding to the determined target data.
[0023] In combination with the third implementation of the first aspect, in a fourth implementation of the first aspect, the method further includes:
[0024] Determine whether to encrypt the target data according to the corresponding relationship between the location information and whether the message is encrypted;
[0025] When it is determined that the target data is to be encrypted, encrypting the target data;
[0026] Process the encrypted target data.
[0027] The data conversion method provided by the embodiment of the present invention determines whether to encrypt the target data according to the corresponding relationship between the position information and whether the message is encrypted, thereby ensuring the accuracy of the determination result. When it is determined that the target data is to be encrypted, the target data is encrypted, and the encrypted target data is processed, thereby ensuring the security of the target data.
[0028] According to the second aspect, an embodiment of the present invention further provides an interface conversion device, applicable to the data conversion method in the first aspect or any one of the implementations of the first aspect, including:
[0029] At least one bus interface, connected to the gateway device, for receiving heterogeneous raw data transmitted by the gateway device;
[0030] A data converter, connected to each bus interface, is used to convert the format of heterogeneous raw data based on the format of target data to generate target data with a unified format;
[0031] The target bus interface is connected to the data converter at one end and to the vehicle controller at the other end, and is used to send the target data to the vehicle controller.
[0032] The interface conversion device provided by the embodiment of the present invention has at least one bus interface that receives heterogeneous raw data transmitted by the gateway device. The data converter performs format conversion on the heterogeneous raw data based on the format of the target data to generate target data with a unified format, thereby ensuring the accuracy and real-time performance of the generated target data. Then, the target bus interface target data is sent to the vehicle controller so that the vehicle controller can receive the target data. The above-mentioned interface conversion device converts the raw data into target data so that the generated target data meets the requirements of the vehicle application advanced driver assistance system, thereby realizing the conversion of raw data into target data without the need for a comprehensive upgrade and reconstruction of the vehicle, thereby reducing costs.
[0033] In conjunction with the second aspect, in a first implementation of the second aspect, the data converter includes:
[0034] at least one heterogeneous raw data driving module, one end of which is connected to each bus interface, and the heterogeneous raw data driving module is configured to receive heterogeneous raw data transmitted by each bus interface;
[0035] The target data driving module is connected to each heterogeneous original data driving module at one end and connected to the target bus interface at the other end. The target data driving module is configured to convert the format of the heterogeneous original data based on the format of the target data to generate target data with a unified format.
[0036] The interface conversion device provided by the embodiment of the present invention, the data converter includes: at least one heterogeneous raw data driving module, one end of which is connected to each bus interface, and is used to receive the heterogeneous raw data transmitted by each bus interface, so that the data converter can receive the heterogeneous raw data. A target data driving module, one end of which is connected to each heterogeneous raw data driving module, and the other end is connected to the target bus interface, and is used to convert the format of the heterogeneous raw data based on the format of the target data to generate target data with a unified format. The generated target data meets the requirements of the advanced driver assistance system for vehicle applications, thereby realizing the conversion of raw data into target data without the need for comprehensive upgrades and renovations of the vehicle, thereby reducing costs.
[0037] In combination with the second aspect, in a second implementation of the second aspect, the target data driving module includes:
[0038] A first target data driving module, one end of which is connected to each heterogeneous original data driving module, and the first target data driving module is configured to encapsulate the heterogeneous original data based on the format of the target data to generate spare target data;
[0039] The second target data driving module has one end connected to the first target data driving module and the other end connected to the target bus interface. The second target data driving module is configured to add a message header corresponding to the target protocol to the spare target data to convert the spare target data into target data.
[0040] The interface conversion device provided by the embodiment of the present invention, the target data driving module includes: a first target data driving module, one end of which is connected to each heterogeneous original data driving module, and is used to encapsulate the heterogeneous original data based on the format of the target data to generate spare target data, thereby ensuring the accuracy of the generated spare target data. A second target data driving module, one end of which is connected to the first target data driving module, and the other end of which is connected to the target bus interface, and is used to add a message header corresponding to the target protocol to the spare target data to convert the spare target data into the target data, thereby ensuring the accuracy and real-time performance of the generated target data.
[0041] According to a third aspect, an embodiment of the present invention provides a vehicle, comprising:
[0042] Vehicle body;
[0043] Gateway device, connected to each ECU in the vehicle;
[0044] A vehicle controller connected to the vehicle body; and
[0045] The interface conversion device in the second aspect or any one embodiment of the second aspect, one end of the interface conversion device is connected to the gateway device, the other end of the interface conversion device is connected to the vehicle controller, and the interface conversion device is configured to convert original data into target data.
[0046] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the data conversion method in the first aspect or any one of the implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 This is a schematic diagram of a real situation of an in-vehicle network provided by an embodiment of the present invention;
[0049] Figure 2is a schematic diagram of an optional implementation of a data conversion device provided by another embodiment of the present invention;
[0050] Figure 3 is a flow chart of a data conversion method provided by another embodiment of the present invention;
[0051] Figure 4 is a flow chart of a data conversion method provided by another embodiment of the present invention;
[0052] Figure 5 is a flow chart of a data conversion method provided by another embodiment of the present invention;
[0053] Figure 6 It is a schematic diagram of Geneve protocol attribute fields and service attribute encapsulation provided by another embodiment of the present invention;
[0054] Figure 7 is a schematic diagram of a vehicle network based on Geneve encapsulation provided by another embodiment of the present invention;
[0055] Figure 8 is a schematic diagram of a Geneve encapsulated heterogeneous vehicle network protocol provided by another embodiment of the present invention;
[0056] Fig. 9 This is a schematic diagram of a unified vehicle-mounted network using TSN standard Ethernet provided by another embodiment of the present invention;
[0057] Fig.10 is a flow chart of a data conversion method provided by another embodiment of the present invention;
[0058] Fig.11 is a flow chart of a data conversion method provided by another embodiment of the present invention;
[0059] Fig.12 is a structural schematic diagram of an interface conversion device provided by another embodiment of the present invention;
[0060] Fig.13 is a structural schematic diagram of an interface conversion device provided by another embodiment of the present invention;
[0061] Fig.14 It is a functional module diagram of a data conversion device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0063] In the automotive field, an electronic control unit (ECU) is usually used to control the driving state of the car and realize its various functions. It mainly uses data collection and exchange of various sensors and buses to judge the vehicle status and the driver's intention and control the car through actuators. Nowadays, ECU has become one of the most common components in cars, and can be divided into different types according to different functions. The most common ECUs are as follows: Body Control Module (BCM) mainly controls the body electrical appliances, such as vehicle lights, wipers, washing, door locks, electric windows, sunroofs, electric rearview mirrors, remote controls, etc.; Battery Management System (BMS) is specially prepared for electric vehicles or hybrid vehicles equipped with power batteries. Its main function is to improve the utilization rate of the battery, prevent the battery from overcharging and over-discharging, extend the battery life, and monitor the battery status; Microcontroller Unit (MCU) mainly controls all electronic systems in the car, such as multimedia, audio, navigation, suspension, etc., as the core of the automotive electronic control system. In addition, the vehicle is also equipped with an ignition control module (ICM), which can realize automatic ignition, flame indication, flameout alarm, signal transmission, keyless start system (Passive Entry Passive Start, PEPS), vehicle control unit (VCU) and other control systems. The various control systems communicate with each other through the vehicle network. For example, Figure 1The implementation of an in-vehicle network in the automotive field is shown. The CAN bus is used in the power domain, body domain, and ADAS domain. For example, the Electronic Stability Program (ESP), Vehicular Communication Unit (VCU), Battery Management System (BMS), Microcontroller Unit (MCU), etc. in the power domain use the CAN bus for communication. In the body domain, ICM, PEPS, air conditioning, BMC and other systems communicate with the gateway GW through the CAN bus. Among them, the windows, doors, sunroof remote controls, etc. use the LIN system to communicate with the BMC. In the ADAS domain, the surround view system, positioning system, ultrasonic radar, lidar, and inertial navigation use the CAN bus for communication. In addition, brakes, engines, suspensions, etc. use the CAN bus, and lights, and each ECU function uses its own bus standard.
[0064] With the development of science and technology, the vehicle's driver assistance system (ADAS) is becoming more and more mature. ADAS combines data from emergency braking, collision avoidance, lane departure warning, fully automatic driving, etc. and performs calculations and inferences to effectively reduce accidents and deaths. All of this is based on a large amount of data transmission and subsequent processing. The prediction delay and bandwidth guarantee of the vehicle network are becoming more and more important. Vehicle TSN meets the Ethernet requirements in ADAS applications. Real-time networks are essential for ADAS applications to control vehicles to respond in a timely manner to situations such as avoiding collisions with pedestrians, objects or other vehicles. In order to effectively realize the functions of the ADAS system, multiple systems (for example, anti-collision systems, detection systems, and braking systems) must be synchronized, and the communication timeliness between these systems becomes very critical. Therefore, when the vehicle network is facing upgrades and renovations, Ethernet with vehicle TSN functions becomes an ideal network choice.
[0065] However, at present, the vehicle in-vehicle network is composed of multiple buses such as CAN bus, LIN bus, FlexRay, MOST, etc. For example, the brake, engine, suspension, etc. use CAN bus, the light, door, remote control, etc. use LIN system, and the entertainment system uses FlexRay and MOST. Each ECU function uses the bus standard of its own era. Figure 1 Therefore, the in-vehicle network is facing the need to upgrade and transform the heterogeneous network transmitted by each ECU into Ethernet with TSN function.
[0066] However, if all in-vehicle networks are eliminated and the in-vehicle networks, such as the heterogeneous networks transmitted by various ECUs, are converted into Ethernet with TSN functions, it will be necessary to modify each ECU in the existing vehicles, which will result in high vehicle costs and difficulty in implementation.
[0067] Therefore, an embodiment of the present application provides a data conversion method for solving the problem that all vehicle networks are unified into vehicle TSN Ethernet, which is costly and difficult to implement.
[0068] It should be noted that the data conversion method provided in the embodiments of the present application may be executed by a data conversion device, which may be implemented as part or all of an interface conversion device by software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is an interface conversion device as an example for explanation.
[0069] Exemplarily, a data conversion device is provided, such as Figure 2 As shown, Figure 2 An optional implementation of the data conversion device is shown. Figure 2 As shown in the figure, the TSN-CAN converter is an optional implementation of the data conversion device. One end of the TSN-CAN converter is connected to the original data interface such as the Ethernet interface, CAN interface, and LIN interface, and is used to receive the original data such as CAN messages and LIN messages sent by the Ethernet interface, CAN interface, and LIN interface. Then, based on the format of the target data, the format of the heterogeneous original data is converted to generate target data with a unified format. Figure 2 It can be understood that the TSN-CAN converter converts the original data such as CAN messages and LIN messages received from the Ethernet interface, CAN interface, and LIN interface into Ethernet messages, and then outputs the Ethernet message data of the TSN protocol through the Ethernet interface.
[0070] In one embodiment of the present application, Figure 3 As shown, a data conversion method is provided, and the method is applied to an interface conversion device as an example for explanation, wherein: Figure 2 As shown, Figure 2 The TSN-CAN converter in the embodiment can be an optional implementation of the interface conversion device. Specifically, the TSN-CAN converter can receive heterogeneous network message data transmitted by the Ethernet interface, the CAN interface, and the LIN interface, and then convert the heterogeneous network message data into an Ethernet format and transmit it to the external network interface. The above data conversion method may include the following steps:
[0071] S11. Receive heterogeneous raw data sent by heterogeneous controllers.
[0072] Specifically, the interface conversion device can receive heterogeneous original data sent by the gateway device based on the connection with the gateway device. The heterogeneous original data can be at least one of CAN message, LIN message, FlexRay message and MOST message data. The embodiment of the present application does not specifically limit the heterogeneous original data.
[0073] S12. Based on the format of the target data, the heterogeneous original data is converted into a format to generate target data with a unified format.
[0074] In an optional implementation of the present application, the interface conversion device can convert the format of heterogeneous original data based on the network virtualization Geneve (Generic Network Virtualization Encapsulation) protocol in the three-layer network virtualization technology NVO3 (Network Virtualization Over Layer 3, NVO3) to generate target data with a unified format. Among them, the target data can be the IP message format of the TSN standard Ethernet, or it can be other formats. The embodiment of the present application does not specifically limit the format of the target data. Among them, the three-layer network virtualization technology NVO3 is based on the existing IP network and superimposes virtualization technology to achieve the separation of the bearer network and the business network. Using NVO3 network virtualization technology in the vehicle network to unify and standardize various heterogeneous vehicle networks is conducive to upgrading the vehicle network system to a standard Ethernet mode, reducing the weight and length of the vehicle wiring harness required by the vehicle manufacturer, and greatly reducing the cost of the vehicle. The network virtualization technology is used to encapsulate the traditional network message into the IP message of TSN standard Ethernet, without changing the traditional network structure such as CAN and LIN, which is suitable for the existing ECU asset protection of OEM manufacturers. At the same time, the standard and unified Ethernet wiring harness is used to replace the original various heterogeneous network wiring harnesses in the car. It meets the needs of OEM manufacturers to adapt to the reality of vehicle network changes and the needs of OEM manufacturers for gradual product upgrades.
[0075] This step will be described in detail below.
[0076] S13, sending the target data to the vehicle controller.
[0077] Specifically, after converting the original data into the target data, the interface conversion device may send the target data to the vehicle controller based on the connection with the vehicle controller.
[0078] The data conversion method provided in the embodiment of the present invention receives heterogeneous raw data sent by heterogeneous controllers, and based on the format of the target data, performs format conversion on the heterogeneous raw data to generate target data with a unified format, thereby ensuring the accuracy and real-time performance of the generated target data. Then, the target data is sent to the vehicle controller so that the vehicle controller can receive the target data. The target data generated by the above method meets the requirements of the advanced driver assistance system for vehicle applications, thereby realizing the conversion of raw data into target data without the need for a comprehensive upgrade and transformation of the vehicle, thereby reducing costs. The present invention uses network virtualization technology based on the TSN standard to complete the upgrade and unification of the vehicle network. For vehicle terminals that do not support Ethernet, an interface, namely a data conversion device, is added for data conversion, which effectively reduces costs and improves the efficiency of data transmission and data processing.
[0079] In an optional implementation manner of the present application, the data conversion method provided in the embodiment of the present application involves four key points, namely, a message control unit, an encapsulation / decapsulation unit, a service control unit and a message forwarding unit. The specific steps can be as follows: Figure 4 As shown:
[0080] 1. The message control unit monitors and receives various in-vehicle heterogeneous network messages, and sends the received in-vehicle heterogeneous network messages to the next encapsulation / decapsulation transfer unit.
[0081] 2. The encapsulation / decapsulation conversion unit performs Geneve protocol encapsulation on the received vehicle heterogeneous network messages and adds various attribute fields according to the characteristics of the network protocol.
[0082] 3. The business control unit performs various business strategy analyses according to business needs.
[0083] 4. The message forwarding unit performs the encapsulated message IP network message forwarding work.
[0084] In one embodiment of the present application, Figure 5 As shown, a data conversion method is provided, which is described by taking the method applied to an interface conversion device as an example, and includes the following steps:
[0085] S21. Receive heterogeneous raw data sent by heterogeneous controllers.
[0086] For more information about this step, see Figure 3 I will not go into details about S11 here.
[0087] S22. Based on the format of the target data, convert the format of the heterogeneous original data to generate target data with a unified format.
[0088] In an optional implementation manner of the present application, the above S22 “converting the format of heterogeneous original data based on the format of the target data to generate target data with a unified format” may include the following steps:
[0089] S221. Encapsulate the heterogeneous original data based on the target protocol, and add a message header corresponding to the target protocol to convert the original data into target data.
[0090] In an optional implementation of the present application, the interface conversion device can encapsulate heterogeneous original data based on the network virtualization Geneve protocol and add a message header corresponding to the target protocol to convert the original data into target data. The network virtualization Geneve protocol belongs to the NVO3 technology category. Geneve is a network virtualization technology that combines the advantages of various existing network virtualization technologies and adopts a universal encapsulation format.
[0091] Specifically, the standard Geneve (Generic Network Virtualization Encapsulation) adopts the MAC-in-UDP encapsulation format, that is, the Layer 2 message is encapsulated with the Layer 3 protocol, which can realize the expansion of the Layer 2 network within the three-layer range, that is, a simple, redundant, and scalable interconnected bearer network (Underlay networking) network is adopted, and tunnel technology logical networking (Overlay networking) based on Geneve can provide dynamic and isolated virtual networks. Geneve is suitable for cloud computing, enterprise data centers and various heterogeneous networks in building migration, isolation and cross-network networking. Similarly, there is also a need for network unification and isolation in the on-board mobile data center. Geneve can adopt a unified on-board Ethernet method to logically isolate various on-board networks and protocols using network virtualization technology to provide a virtual on-board network.
[0092] Specifically, the Geneve attribute option is of TLV (Type-Length-Value) type, which can carry multiple metadata attribute fields. For example, Figure 6 As shown in the figure, the Geneve protocol attribute field and service attribute encapsulation. Geneve's TLV attribute encapsulates the vehicle protocol type, transmission urgency, and attribute information associated with the service in the Geneve message. Then, based on the Geneve protocol's ability to isolate traffic from each other, network traffic is actively isolated to reduce the possibility of mutual interference between protocols, thereby improving the stability of the vehicle network.
[0093] The Geneve protocol encapsulates various heterogeneous vehicle network messages in the vehicle heterogeneous network using Everything Over Geneve. For example, the specific Geneve encapsulation format is as follows: Figure 7 As shown, the heterogeneous network message and its data are used as IP payload, and the Geneve message header is added. The UDP header, IP header, and TSN label are encapsulated on the outside, the frame check sequence (FCS) field is calculated, and finally the MAC header is encapsulated. Various heterogeneous vehicle network protocols and their data (i.e., heterogeneous original data) are encapsulated by Geneve. The Geneve protocol message header is encapsulated on the periphery of the heterogeneous vehicle network message data (i.e., heterogeneous original data), and the TSN label is added to the standard Ethernet frame to complete the Geneve encapsulation of the vehicle network protocol based on the TSN standard, thereby generating target data with a unified format. The specific method is as follows Figure 8 As shown, it specifically refers to taking the entire heterogeneous network message data (including the protocol header and data) as the load of the IP message, and adding the Geneve protocol in front of it to form a tunnel encapsulation mode, which is the ability of various heterogeneous network messages on the vehicle to be transmitted across IP networks through the Geneve tunnel bearer mode. The embodiment of the present application involves unified encapsulation of the vehicle network. It can provide useful help in solving the wiring of the vehicle network and improving the stability and reliability of the vehicle network.
[0094] Among them, TSN standard Ethernet network has predictable and guaranteed delay. TSN network supports multiple time-aware shapers, preemption, cyclic queuing and forwarding, filtering, control, frame replication and elimination functions according to data flow, and enhanced universal precision timing protocol. Based on TSN standard Geneve encapsulation, the transmission of vehicle network messages (i.e. target data) has predictable and guaranteed delay characteristics in the vehicle network.
[0095] TSN network scheduling is achieved using a time-aware shaper. The time sensor ensures that the critical traffic queue will not be blocked. The time sensor allows time-sensitive critical data to flow and process unimpeded, while blocking non-time-critical data. Time-critical data frames will also interrupt the transmission of non-time-critical data frames by preemption. Based on the TSN standard Geneve encapsulation, critical messages (i.e., target data) in the vehicle network can be given priority processing to ensure that they will not be blocked. This fully meets the requirements of ADAS domain control, and functional safety traffic is guaranteed to be given priority processing.
[0096] The vehicle network will adopt TSN standardized Ethernet to standardize and unify the vehicle network. TSN standard vehicle network helps to build a resilient, adaptive, self-recovering and self-maintaining vehicle network environment. For example, Fig. 9 FIG. 1 is a schematic diagram of a unified vehicle network of a TSN standard Ethernet. The TSN gateway GW may be an optional implementation of an interface conversion device.
[0097] In an optional implementation of the present application, the interface conversion device may encapsulate heterogeneous original data based on other protocols, and add a message header corresponding to the target protocol to convert the original data into target data.
[0098] S23, sending the target data to the vehicle controller.
[0099] For more information about this step, see Figure 3 The introduction of S13 will not be elaborated here.
[0100] The data conversion method provided by the embodiment of the present invention encapsulates heterogeneous original data based on the target protocol and adds a message header corresponding to the target protocol to convert the original data into target data, thereby ensuring the accuracy and real-time performance of the generated target data.
[0101] In one embodiment of the present application, Fig.10 As shown, a data conversion method is provided, which is described by taking the method applied to an interface conversion device as an example, and includes the following steps:
[0102] S31. Receive heterogeneous raw data sent by heterogeneous controllers.
[0103] For more information about this step, see Figure 5 The introduction of S21 will not be elaborated here.
[0104] S32. Based on the format of the target data, convert the format of the heterogeneous original data to generate target data with a unified format.
[0105] For more information about this step, see Figure 5 The introduction of S22 will not be elaborated here.
[0106] S33. Obtain the sending device corresponding to the heterogeneous original data.
[0107] Specifically, the interface conversion device determines the sending device corresponding to the heterogeneous original data based on the received heterogeneous original data.
[0108] S34. Determine the priority level corresponding to the target data according to the relationship between the sending device and the priority level.
[0109] In an optional implementation, the interface conversion device may determine the priority corresponding to the target data according to the corresponding relationship between the sending device and the priority.
[0110] In an optional implementation manner of the present application, the above S34 “determining the priority corresponding to the target data according to the relationship between the sending device and the priority” may also include the following steps:
[0111] S341. Obtain location information of the sending device in the vehicle communication network.
[0112] Specifically, the interface conversion device can determine the location information corresponding to the sending device in the vehicle according to the identification information corresponding to the sending device, thereby determining the regional location corresponding to the sending device.
[0113] The priorities corresponding to the sending devices in different areas are different. For example, the priority of the sending device in area A is higher than the priority corresponding to the sending device in area B.
[0114] S342. Determine the priority corresponding to the target data according to the relationship between the location information and the priority.
[0115] Specifically, after determining the location information corresponding to the sending device, the interface conversion device may determine the priority corresponding to the target data according to the corresponding relationship between the location information and the priority.
[0116] S35. Process the target data according to the priority level corresponding to the target data.
[0117] Specifically, after determining the priority of the target data, the interface conversion device may process the target data according to the priority corresponding to the target device.
[0118] S36: Send the target data to the vehicle controller.
[0119] For more information about this step, see Figure 5 The introduction of S23 will not be elaborated here.
[0120] The data conversion method provided by the embodiment of the present invention obtains the sending device corresponding to the heterogeneous original data, then obtains the location information of the sending device in the vehicle communication network, and then determines the priority corresponding to the target data according to the relationship between the location information and the priority, thereby ensuring the accuracy of the priority corresponding to the determined target data. Then, according to the priority corresponding to the target data, the target data is processed, thereby ensuring that the target data with high priority is processed first.
[0121] The data conversion method provided in the embodiment of the present application is an implementation method for standardizing and unifying various heterogeneous networks in the vehicle network based on TSN using standard NVO3 network virtualization technology. Its value lies in getting rid of the limitations of various heterogeneous physical networks, unifying and standardizing complex and diverse heterogeneous networks, and providing a flat, point-to-point Ethernet network direct connection relationship. The present invention solves the problem that the vehicle network uses multiple wiring topologies (physical locations) to bind. Similarly, the embodiment of the present application also solves the performance bottleneck or control blind spot of the vehicle network. At the same time, the embodiment of the present application provides a method of using TSN to strengthen NVO3 network virtualization technology, a method of unifying various different network protocols in various complex vehicle networks through IP message standards, and a method of distinguishing and managing heterogeneous networks based on Geneve network attributes. It solves the problem that the existing vehicle network is difficult to bear the growing functional requirements of networking and intelligence, which makes it difficult for the vehicle network to bear the vehicle standards and safety compliance requirements in terms of deployment and cost. It also solves the problem that the cost of large-scale new transformation of the existing vehicle network is unacceptable to any enterprise. The data conversion method provided in the embodiment of the present application fully utilizes existing network resources, provides logical isolation and transformation, fully utilizes existing physical resources, and maximizes the effective and full protection of existing investments.
[0122] In addition, the embodiment of the present application adopts the network virtualization technology based on TSN standard to provide reliability and integrity guarantee, and has the characteristics of connection migration to meet the future vehicle network to support various business needs. The embodiment of the present application can also carry business attribute capabilities to achieve ECU access point and network topology decoupling, providing basic capabilities for unified and maximized use of existing Ethernet.
[0123] In an optional embodiment of the present application, as Fig.11 As shown, the above method may further include the following steps:
[0124] S41. Determine whether to encrypt the target data according to the corresponding relationship between the location information and whether the message is encrypted.
[0125] Specifically, the interface conversion device may determine whether to encrypt the target data according to the corresponding relationship between the location information of the sending device and whether the message is encrypted.
[0126] S42: When it is determined to encrypt the target data, encrypt the target data.
[0127] Specifically, when it is determined to encrypt the target data, the interface conversion device may encrypt the target data using a preset encryption algorithm.
[0128] The preset encryption algorithm may be a symmetric encryption algorithm, an asymmetric encryption algorithm, or other encryption algorithms. When the preset encryption algorithm is a symmetric encryption algorithm, the preset encryption algorithm may be a DES (Data Encryption Standard) algorithm, or a 3DES (Triple DES) algorithm. 3DES is a symmetric algorithm based on DES, and a piece of data is encrypted three times with three different keys. When the preset encryption algorithm is an asymmetric encryption algorithm, the preset encryption algorithm may be an RSA algorithm, a backpack algorithm, or an Elgamal algorithm. The embodiments of the present application do not specifically limit the preset encryption algorithm.
[0129] S43: Process the encrypted target data.
[0130] Specifically, after the interface conversion device encrypts the target file, it can process the encrypted target data according to the requirements of the target file.
[0131] Similarly, after the interface conversion device obtains the encrypted message sent by the vehicle controller based on the target bus interface, it can decrypt the encrypted message, and then send the decrypted message to the gateway device based on the bus interface, so that the gateway device can send the decrypted message to the vehicle-related devices.
[0132] The data conversion method provided by the embodiment of the present invention determines whether to encrypt the target data according to the corresponding relationship between the position information and whether the message is encrypted, thereby ensuring the accuracy of the determination result. When it is determined that the target data is to be encrypted, the target data is encrypted, and the encrypted target data is processed, thereby ensuring the security of the target data.
[0133] It should be understood that although Figure 3 , Figure 5 , Fig.10 ,as well as Fig.11 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 3 , Figure 5 , Fig.10 ,as well as Fig.11At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0134] like Fig.12 As shown, this embodiment provides an interface conversion device, applicable to the data conversion method of any one of the above implementations, including:
[0135] At least one bus interface 51, connected to the gateway device, for receiving heterogeneous original data transmitted by the gateway device;
[0136] A data converter 52 is connected to each bus interface and is used to convert the format of heterogeneous raw data based on the format of the target data to generate target data with a unified format;
[0137] The target bus interface 53 is connected to the data converter 52 at one end and to the vehicle controller at the other end, and is used to send the target data to the vehicle controller.
[0138] Specifically, at least one bus interface 51 can receive heterogeneous raw data sent by the gateway device based on the connection with the gateway device. The heterogeneous raw data can be at least one of CAN messages, LIN messages, FlexRay messages, and MOST messages. The embodiment of the present application does not specifically limit the heterogeneous raw data.
[0139] The data converter 52 can convert the format of heterogeneous original data based on the network virtualization Geneve protocol in the NVO3 network virtualization technology to generate target data with a unified format.
[0140] After the data converter 52 converts the original data into the target data, the target bus interface 53 may send the target data to the vehicle controller based on the connection with the vehicle controller.
[0141] The interface conversion device provided by the embodiment of the present invention has at least one bus interface 51 that receives heterogeneous raw data transmitted by the gateway device. The data converter 52 performs format conversion on the heterogeneous raw data based on the format of the target data to generate target data with a unified format, thereby ensuring the accuracy and real-time performance of the generated target data. Then, the target bus interface 53 sends the target data to the vehicle controller so that the vehicle controller can receive the target data. The above-mentioned interface conversion device converts the raw data into target data so that the generated target data meets the requirements of the advanced driver assistance system for vehicle applications, thereby realizing the conversion of raw data into target data without the need for a comprehensive upgrade and reconstruction of the vehicle, thereby reducing costs.
[0142] In an optional implementation of the present application, the data converter 52 includes:
[0143] At least one heterogeneous original data driving module 521 has one end connected to each bus interface and is used to receive heterogeneous original data transmitted by each bus interface.
[0144] The target data driving module 522 is connected to each heterogeneous original data driving module 521 at one end and connected to the target bus interface 53 at the other end, and is used to convert the format of the heterogeneous original data based on the format of the target data to generate target data with a unified format.
[0145] The interface conversion device provided by the embodiment of the present invention, the data converter 52 includes: at least one heterogeneous raw data driving module 521, one end of which is connected to each bus interface, and is used to receive the heterogeneous raw data transmitted by each bus interface, so that the data converter 52 can receive the heterogeneous raw data. The target data driving module 522, one end of which is connected to each heterogeneous raw data driving module 521, and the other end is connected to the target bus interface 53, and is used to convert the format of the heterogeneous raw data based on the format of the target data to generate target data with a unified format. The generated target data meets the requirements of the advanced driver assistance system for vehicle applications, thereby realizing the conversion of raw data into target data without the need for comprehensive upgrades and renovations of the vehicle, thereby reducing costs.
[0146] In an optional implementation of the present application, the target data driving module 522 includes:
[0147] A first target data driving module 5221, one end of which is connected to each heterogeneous original data driving module 521, and is used to encapsulate the heterogeneous original data based on the format of the target data to generate spare target data;
[0148] The second target data driving module 5222 is connected to the first target data driving module 5221 at one end and to the target bus interface 53 at the other end, and is used to add a message header corresponding to the target protocol to the spare target data to convert the spare target data into target data.
[0149] The interface conversion device provided by the embodiment of the present invention, the target data driving module 522 includes: a first target data driving module 5221, one end of which is connected to each heterogeneous original data driving module 521, and is used to encapsulate the heterogeneous original data based on the format of the target data to generate spare target data, thereby ensuring the accuracy of the generated spare target data. A second target data driving module 5222, one end of which is connected to the first target data driving module 5221, and the other end of which is connected to the target bus interface 53, and is used to add a message header corresponding to the target protocol to the spare target data to convert the spare target data into the target data, thereby ensuring the accuracy and real-time performance of the generated target data.
[0150] For example, Fig.13 As shown, the bus interface 51 can be a CAN interface, a CANFD interface, a LIN
[0151] Interface, etc.; the target bus interface 53 can be a TSN interface; at least one heterogeneous raw data driver module 521 can be a CAN driver module, a CANFD driver module, a LIN driver module, etc.; the first target data driver module 5221 can be a Geneve encapsulation / decapsulation driver module, which is used to encapsulate heterogeneous raw data based on the Geneve protocol; the second target data driver module 5222 can be a TSN driver module, which is used to add a TSN identifier to the Geneve encapsulated message, thereby generating target data with a unified format.
[0152] like Fig.14 As shown, this embodiment provides a data conversion device, which is applied to an interface conversion device and can be a virtual module in a receiving conversion device, including:
[0153] The receiving module 61 is used to receive heterogeneous original data sent by heterogeneous controllers.
[0154] The conversion module 62 is used to convert the format of heterogeneous original data based on the format of the target data to generate target data with a unified format.
[0155] The sending module 63 is used to send the target data to the vehicle controller.
[0156] In one embodiment of the present application, the above-mentioned conversion module 62 is specifically used to encapsulate heterogeneous original data based on the target protocol, and add a message header corresponding to the target protocol to convert the original data into target data.
[0157] In one embodiment of the present application, the data conversion device further includes:
[0158] An acquisition module 64 is used to acquire a sending device corresponding to the heterogeneous original data;
[0159] A determination module 65, configured to determine the priority corresponding to the target data according to the relationship between the sending device and the priority;
[0160] The processing module 66 is used to process the target data according to the priority corresponding to the target data.
[0161] In one embodiment of the present application, the above-mentioned determination module 65 is specifically used to obtain the location information of the sending device in the vehicle communication network; and determine the priority corresponding to the target data according to the relationship between the location information and the priority.
[0162] In one embodiment of the present application, the above-mentioned determination module 65 is also used to determine whether to encrypt the target data based on the correspondence between the location information and whether the message is encrypted; when it is determined that the target data is to be encrypted, the target data is encrypted; and the encrypted target data is processed.
[0163] For the specific definition and beneficial effects of the data conversion device, please refer to the definition of the data conversion method above, which will not be repeated here. Each module in the above-mentioned data conversion device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0164] The embodiment of the present invention further provides a vehicle, comprising a vehicle body; a gateway device connected to each ECU in the vehicle; a vehicle controller connected to the vehicle body;
[0165] The interface conversion device in the above implementation mode is connected to the gateway device at one end and to the vehicle controller at the other end, and is used to convert the original data into the target data.
[0166] The embodiment of the present invention also provides a non-transitory computer storage medium, which stores computer executable instructions, and the computer executable instructions can execute the data conversion method in any of the above method embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.
[0167] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A data conversion method, characterized in that: Applicable to interface conversion equipment, including: Receive heterogeneous raw data sent by heterogeneous controllers; Based on the format of the target data, the heterogeneous original data is converted into a format to generate the target data in a unified format; wherein the target data is in the IP message format of the TSN standard Ethernet; The step of converting the format of the heterogeneous original data based on the format of the target data to generate the target data in a unified format includes: Based on the network virtualization Geneve protocol in the three-layer network virtualization technology NVO3, the heterogeneous original data is format converted to generate the target data in a unified format; Acquire a sending device corresponding to the heterogeneous original data; Determining the priority level corresponding to the target data according to the relationship between the sending device and the priority level; Wherein, determining the priority corresponding to the target data according to the relationship between the sending device and the priority includes: Acquire identification information corresponding to the sending device, and determine location information corresponding to the sending device in the vehicle according to the identification information; Determining the priority corresponding to the target data according to the relationship between the location information and the priority; Processing the target data according to the priority level corresponding to the target data; The target data is sent to a vehicle controller.
2. The method according to claim 1, characterized in that The step of converting the format of the heterogeneous original data based on the format of the target data to generate the target data in a unified format includes: Based on encapsulating the heterogeneous original data and adding a message header corresponding to the target protocol, the heterogeneous original data is converted into the target data.
3. The method according to claim 1, characterized in that The method further comprises: Determining whether to encrypt the target data according to the corresponding relationship between the location information and whether the message is encrypted; When it is determined to encrypt the target data, encrypt the target data; Process the encrypted target data.
4. An interface conversion device, characterized in that: The data conversion method according to any one of claims 1 to 3 comprises: At least one bus interface, connected to the gateway device, and used to receive heterogeneous original data transmitted by the gateway device; A data converter, connected to each of the bus interfaces, is used to perform format conversion on the heterogeneous original data based on the format of the target data to generate the target data with a unified format; wherein the target data is in the IP message format of the TSN standard Ethernet; obtain the sending device corresponding to the heterogeneous original data; determine the priority corresponding to the target data according to the relationship between the sending device and the priority; wherein, the format conversion of the heterogeneous original data based on the format of the target data to generate the target data with a unified format includes: format conversion of the heterogeneous original data based on the network virtualization Geneve protocol in the three-layer network virtualization technology NVO3 to generate the target data with a unified format; wherein, the determination of the priority corresponding to the target data according to the relationship between the sending device and the priority includes: obtaining identification information corresponding to the sending device, and determining the position information corresponding to the sending device in the vehicle according to the identification information; determining the priority corresponding to the target data according to the relationship between the position information and the priority; processing the target data according to the priority corresponding to the target data; A target bus interface, one end of which is connected to the data converter and the other end of which is connected to the vehicle controller, is used to send the target data to the vehicle controller.
5. The interface conversion device according to claim 4, characterized in that: The data converter comprises: at least one heterogeneous raw data driving module, one end of which is connected to each of the bus interfaces, and the heterogeneous raw data driving module is configured to receive the heterogeneous raw data transmitted by each of the bus interfaces; A target data driving module has one end connected to each of the heterogeneous original data driving modules and the other end connected to the target bus interface. The target data driving module is configured to perform format conversion on the heterogeneous original data based on the format of the target data to generate the target data with a unified format.
6. The interface conversion device according to claim 5, characterized in that: The target data driving module includes: A first target data driving module, one end of which is connected to each of the heterogeneous original data driving modules, and the first target data driving module is configured to encapsulate the heterogeneous original data based on the format of the target data to generate spare target data; A second target data driving module has one end connected to the first target data driving module and the other end connected to the target bus interface. The second target data driving module is configured to add a message header corresponding to the target protocol to the backup target data to convert the backup target data into the target data.
7. A vehicle, characterized in that: include: Vehicle body; A gateway device connected to each ECU in the vehicle; A vehicle controller connected to the vehicle body; as well as The interface conversion device according to any one of claims 4 to 6, wherein one end of the interface conversion device is connected to the gateway device, the other end of the interface conversion device is connected to the vehicle controller, and the interface conversion device is configured to convert raw data into target data.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data conversion method according to any one of claims 1 to 3.
