A method, device, module and medium for implementing vehicle Ethernet data routing
Through the preset Ethernet routing table and protocol conversion module, routing between Ethernet data and traditional vehicle network data is realized, which solves the problem of poor data interoperability in the existing technology and improves routing efficiency and compatibility.
Patent Information
- Application Number
- CN202111247972.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-10-26
AI Technical Summary
The existing technology cannot realize data interaction between the Ethernet network and the traditional vehicle network, and lacks a universal Ethernet routing design method, resulting in complex data routing and low efficiency.
Through the preset Ethernet routing table, Ethernet frames are received, private protocol messages are extracted, and based on the messages, routing of Ethernet data to vehicle network data is completed, and the Ethernet protocol conversion module is used to implement standard Ethernet application layer protocols and private Conversion and packaging of protocol messages to achieve data interoperability.
It improves the routing efficiency between Ethernet data and traditional vehicle network data, reduces routing delay and complexity, and achieves compatibility and interoperability between multiple protocols.
Smart Images

Figure CN116033036B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of vehicle-mounted communication technology, and in particular to a method, device, module and medium for implementing vehicle-mounted Ethernet data routing. Background Art
[0002] The rapid development of automobile intelligence and networking, as well as the increasing complexity of automobile electronic and electrical functions, have put forward higher requirements on the processing power of automobile electronic control units and the bandwidth of the vehicle network connecting electronic control units. Therefore, high-performance microprocessors (MPUs) and Ethernet technologies have been introduced into the automotive field. Traditional vehicle processors are generally microcontroller units (MCUs), and traditional vehicle network communication technologies generally include CAN bus, i.e. controller area network bus technology, LIN bus, i.e. local interconnect network technology, and FlexRay technology (FlexRay Consortium). In the current automotive electronic and electrical architecture, traditional MCUs and high-performance MPUs, traditional vehicle network communication technologies and Ethernet technologies coexist; Ethernet is generally used for communication between MPUs and between MPUs and MCUs, while traditional vehicle network communication technologies are used for data exchange between MCUs. However, data exchange between Ethernet networks and traditional vehicle networks cannot be achieved.
[0003] At present, the data routing between Ethernet network and traditional vehicle network involved in the vehicle field is generally implemented by MCU according to the characteristics of the current architecture. Due to the large number of application layer protocols of Ethernet data and traditional vehicle network technologies, there is a lack of more general Ethernet routing design methods in the industry. Generally, they are designed for specific protocols, such as SOME / IP to CAN routing design. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, module and medium for implementing vehicle-mounted Ethernet data routing, which can solve the routing problem between Ethernet data of multiple Ethernet application layer protocols and multiple traditional vehicle-mounted network data by presetting the Ethernet routing table.
[0005] In a first aspect, an embodiment of the present invention provides a method for implementing vehicle Ethernet data routing, which is executed by a first module and includes:
[0006] Receive an Ethernet frame sent by the second module, where the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table;
[0007] Extracting a preset private protocol message from the Ethernet frame;
[0008] The routing of Ethernet data to vehicle network data is completed based on the private protocol message.
[0009] In a second aspect, an embodiment of the present invention further provides a method for implementing data routing, which is executed by a second module and includes:
[0010] Based on the preset Ethernet routing table, the Ethernet protocol conversion module completes the conversion between the standard Ethernet application layer protocol message and the preset private protocol message;
[0011] Packing the converted preset private protocol messages;
[0012] Encapsulating the packaged preset private protocol message to obtain an Ethernet frame;
[0013] The Ethernet frame is sent to the first module to implement the routing of Ethernet data to the vehicle network data.
[0014] In a third aspect, an embodiment of the present invention further provides a device for implementing vehicle Ethernet data routing, which is arranged at a first module end and includes:
[0015] A receiving module, used for receiving an Ethernet frame sent by the second module, wherein the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table;
[0016] An extraction module, used for extracting a preset private protocol message from the Ethernet frame;
[0017] The completion module is used to complete the routing of Ethernet data to vehicle network data based on the private protocol message.
[0018] In a fourth aspect, an embodiment of the present invention further provides a device for implementing vehicle Ethernet data routing, which is arranged in the second module and includes:
[0019] A conversion module, used to complete the conversion between the standard Ethernet application layer protocol message and the preset private protocol message through the Ethernet protocol conversion module based on the preset Ethernet routing table;
[0020] A packaging module, used to package the converted preset private protocol messages;
[0021] An encapsulation module is used to encapsulate the packaged preset private protocol message to obtain an Ethernet frame;
[0022] The sending module is used to send the Ethernet frame to the first module to realize the routing of Ethernet data to the vehicle network data.
[0023] In a fifth aspect, an embodiment of the present invention further provides a first module, including:
[0024] one or more processors;
[0025] A storage device for storing one or more programs;
[0026] The one or more programs are executed by the one or more processors, so that the one or more processors are used to implement the method for implementing in-vehicle Ethernet data routing described in any embodiment of the present invention.
[0027] In a sixth aspect, an embodiment of the present invention further provides a second module, including:
[0028] one or more processors;
[0029] A storage device for storing one or more programs;
[0030] The one or more programs are executed by the one or more processors, so that the one or more processors are used to implement the method for implementing in-vehicle Ethernet data routing described in any embodiment of the present invention.
[0031] In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for implementing vehicle Ethernet data routing as provided in any embodiment of the present invention.
[0032] The embodiment of the present invention provides a method, device, module and medium for implementing vehicle Ethernet data routing, first receiving an Ethernet frame sent by a second module, the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table; then extracting a preset private protocol message from the Ethernet frame; finally completing the routing of Ethernet data to vehicle network data based on the private protocol message. The above technical solution can solve the routing problem between Ethernet data of multiple Ethernet application layer protocols and multiple traditional vehicle network data, and can effectively improve the opening efficiency and reduce the routing delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the structure of a vehicle provided in Embodiment 1 of the present invention;
[0034] Figure 2 A schematic flow chart of a method for implementing vehicle Ethernet data routing provided in the second embodiment of the present invention;
[0035] Figure 3 A schematic flow chart of a method for implementing vehicle-mounted Ethernet data routing provided in Embodiment 3 of the present invention;
[0036] Figure 4 A schematic diagram of the structure of a preset private protocol message in a method for implementing data routing provided in Embodiment 3 of the present invention;
[0037] Figure 5 A schematic flow chart of a method for implementing vehicle-mounted Ethernet data routing provided in Embodiment 4 of the present invention;
[0038] Figure 6 A structural schematic diagram of a method for implementing vehicle-mounted Ethernet data routing provided by Embodiment 5 of the present invention;
[0039] Figure 7 A flowchart of a method for implementing vehicle Ethernet data routing provided by Embodiment 6 of the present invention;
[0040] Figure 8 A schematic diagram of the structure of a device for implementing vehicle-mounted Ethernet data routing provided by Embodiment 7 of the present invention;
[0041] Fig. 9 A schematic diagram of the structure of a device for implementing vehicle-mounted Ethernet data routing provided by Embodiment 8 of the present invention;
[0042] Fig.10 A schematic diagram of the structure of a device for implementing vehicle-mounted Ethernet data routing provided by Embodiment 9 of the present invention;
[0043] Fig.11 A structural schematic diagram of a second module provided in Embodiment 10 of the present invention. DETAILED DESCRIPTION
[0044] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0045] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0046] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0047] Embodiment 1
[0048] Figure 1 A schematic diagram of the structure of a vehicle provided in the first embodiment of the present invention is shown in FIG. Figure 1 As shown, the vehicle includes a first module and a second module. The first module and the second module can realize the routing of Ethernet data to traditional vehicle network data and the routing of traditional vehicle network data to Ethernet data.
[0049] The first module may be a microcontroller, for example, the first module may be an MCU, and in this embodiment, the MCU refers to a low-power, low-cost, low-processing microcontroller commonly found in the automotive field. The operating system or software platform running on the MCU is mainly an automotive open system architecture (AUTOSAR).
[0050] Specifically, the first module may include an automotive open system architecture, and the basic software layer of the automotive open system architecture may include a basic software module, a socket adapter module, and a protocol data unit router module. In addition, the first module may also include a communication module.
[0051] The second module may be a microprocessor, and illustratively, the second module may be an MPU. In this embodiment, the MPU refers to a SoC (System on chip) in which the MPU is integrated. The MPU has the characteristics of powerful data processing capability and very high operating frequency. The operating system running on the MPU mainly includes a general operating system based on the POSIX specification, such as Linux, QNX, etc. Specifically, the second module end may include an Ethernet protocol conversion module.
[0052] Among them, AUTOSAR is an automotive embedded software standard, and can also refer to a basic software platform that follows the AUTOSAR standard specifications. The AUTOSAR software architecture can include an application software layer (Application layer), a real-time operating environment (RTE, Real-Time Environment) and a basic software layer (BSW, Basic Software). BSW contains a standard AUTOSAR communication protocol stack. The AUTOSAR network communication layered model includes: interactive layer signal I-Signal, interactive layer protocol data unit I-PDU and data link layer frame Frame, etc. Data is encapsulated into multiple frames through each layer and transmitted in the physical channel. Multiple frames may include: Ethernet (Ethernet), controller area network (Controller Area Network, CAN), local interconnect network (Local Interconnect Network, LIN) and FlexRay (FlexRay Consortium), etc. If a function, such as protocol conversion or data conversion, is implemented by configuring the standard module of AUTOSAR BSW, the open efficiency will be higher and the software processing delay will be lower than writing application layer software.
[0053] Among them, Ethernet is a high-bandwidth, cost-effective network technology that has been practiced in the industrial and Internet fields for many years. Its bandwidth can reach 100M, 1G, or even multiple G. It is a physical layer and data link layer technology.
[0054] It should be noted that traditional in-vehicle communication protocols, such as CAN, LIN, FlexRay, etc., have the characteristics of high real-time performance and high reliability, and are still irreplaceable in the current in-vehicle network. However, the bandwidth of the above traditional in-vehicle communication protocols is relatively low, generally not exceeding 10M.
[0055] A vehicle provided in Embodiment 1 of the present invention can solve the routing problem between Ethernet data based on multiple Ethernet application layer protocols such as DDS and HTTP and multiple traditional vehicle network data, and realize the routing between Ethernet and traditional vehicle networks in the basic software layer of MCU, thereby reducing the complexity of Ethernet routing implementation, improving development efficiency, and reducing routing delays.
[0056] Embodiment 2
[0057] Figure 2A flow chart of a method for implementing vehicle Ethernet data routing provided in Embodiment 2 of the present invention is provided. The method can be applied to the case where data is exchanged between an Ethernet network and a traditional vehicle network. The method can be executed by an implementation device for vehicle Ethernet data routing, wherein the device can be implemented by software and / or hardware and is generally integrated on a first module.
[0058] like Figure 2 As shown, a method for implementing vehicle Ethernet data routing provided by Embodiment 2 of the present invention implements routing of Ethernet data to traditional vehicle network data, and includes the following steps:
[0059] S110. Receive an Ethernet frame sent by the second module, where the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table.
[0060] It should be noted that the Ethernet data mentioned in this embodiment uses the Transmission Control Protocol (TCP) or Internet Protocol (IP) in the network and transport layer, and the Hypertext Transport Protocol (HTTP), Data Distribution Service for Real-Time Systems (DDS) and SOME / IP in the application layer. In addition, it should be noted that HTTP and DDS protocols are not compatible with AUTOSAR.
[0061] In this embodiment, the Ethernet frame can be obtained in the following manner: based on the preset Ethernet routing table, the conversion between the standard Ethernet application layer protocol and the preset private protocol is completed by the Ethernet protocol conversion module on the second module end; the second module packages the converted private protocol message through TCP or User Datagram Protocol (UDP) transmission protocol, and encapsulates it layer by layer into an Ethernet frame and sends it to the first module, so that the first module can receive the Ethernet frame sent by the second module.
[0062] The preset Ethernet routing table may be a routing table that is pre-formulated and stored in the second module end, and the preset Ethernet routing table may mainly include a mapping relationship and an arrangement position.
[0063] Specifically, the mapping relationship may include a mapping relationship between an Ethernet standard application layer protocol message, a valid load parameter of a preset private protocol message, and a signal defined in the vehicle network protocol.
[0064] Among them, Ethernet standard application layer protocols may include HTTP protocol, DDS protocol and SOME IP protocol, etc.; the preset private protocol may be a pre-set custom protocol; traditional vehicle network protocols may include CAN protocol, LIN protocol and FlexRay protocol.
[0065] Table 1 is a mapping relationship table provided in the second embodiment of the present invention. Table 1 shows the mapping relationship between different DDS protocol parameters, preset private protocol parameters and traditional vehicle network protocol signals.
[0066] Table 1 Mapping relationship table provided by embodiment 2 of the present invention
[0067] DDS protocol parameters Preset private protocol parameters Traditional vehicle network protocol signal VehiclelnfoStruct.VehicleSpeed VehicleSpeed VehSpeedSignal VehicleInfoStruct.WheelSpeed WheelSpeed WhlSpeedSignal VehicleInfoStruct.MotorTorque MotorTorque MotorTorqueSignal
[0068] It can be seen from Table 1 that when the DDS protocol parameter is VehiclelnfoStruct.VehicleSpeed, the corresponding preset private protocol parameter is VehicleSpeed, and the corresponding traditional vehicle network protocol signal is VehSpeedSignal; when the DDS protocol parameter is VehiclelnfoStruct.WheelSpeed, the corresponding preset private protocol parameter is WheelSpeed, and the corresponding traditional vehicle network protocol signal is WhlSpeedSignal; when the DDS protocol parameter is VehiclelnfoStruct.MotorTorque, the corresponding preset private protocol parameter is MotorTorque, and the corresponding traditional vehicle network protocol signal is MotorTorqueSignal.
[0069] Specifically, the arrangement position may include the arrangement position of the parameters of the Ethernet private protocol message in the second module in the effective load, and the arrangement position of the Ethernet signal in the first module in the interactive layer protocol data unit.
[0070] Table 2 is an arrangement position display table provided by Embodiment 2 of the present invention, which shows the preset private protocol parameters, Ethernet protocol data unit length, the starting position of the parameters of the Ethernet private protocol message in the MPU in the effective load, the starting position of the Ethernet signal in the MCU in the interactive layer protocol data unit, and the corresponding arrangement mode. Among them, the default arrangement mode is Motorola MSB.
[0071] Table 2 Arrangement position display table provided by embodiment 2 of the present invention
[0072]
[0073]
[0074] It can be seen from Table 2 that when the preset private protocol parameter is VehicleSpeed, the corresponding Ethernet protocol data unit length is 3, the corresponding starting position of the Ethernet private protocol message parameter in the MPU in the effective load is the 7th bit, the corresponding starting position of the Ethernet signal in the MCU in the interactive layer protocol data unit is the 3rd bit, and the corresponding arrangement method is Motorola MSB; when the preset private protocol parameter is WheelSpeed, the corresponding Ethernet protocol data unit length is 3, the corresponding starting position of the Ethernet private protocol message parameter in the MPU in the effective load is the 15th bit, the corresponding starting position of the Ethernet signal in the MCU in the interactive layer protocol data unit is the 10th bit, and the corresponding arrangement method is MotorolaMSB; when the preset private protocol parameter is MotorTorque, the corresponding arrangement method is Motorola MSB; when the preset private protocol parameter is WheelSpeed, the corresponding Ethernet protocol data unit length is 3, the starting position of the parameters of the Ethernet private protocol message in the corresponding MPU in the effective load is the 23rd bit, and the starting position of the Ethernet signal in the corresponding MCU in the interaction layer protocol data unit is the 18th bit, and the corresponding arrangement is Motorola MSB.
[0075] S120: Extract a preset private protocol message from the Ethernet frame.
[0076] In this embodiment, the method of extracting the preset private protocol message from the Ethernet frame can be: unpacking the Ethernet frame through the module in the automotive open system architecture, extracting the preset private protocol message, and sending it to the socket adapter module.
[0077] The process of extracting the preset private protocol message from the Ethernet frame is not described in detail here, and the specific process can be referred to Example 3.
[0078] S130: Complete the routing of Ethernet data to the vehicle network data based on the preset private protocol message.
[0079] In this embodiment, the interactive layer signal that needs to be routed can be routed to the target vehicle network channel based on the preset private protocol message. The specific process of completing the routing of Ethernet data to vehicle network data based on the preset private protocol message is not described in detail here, and the specific process can be referred to Example 3. Among them, the target vehicle network channel can be a channel for routing Ethernet data and traditional vehicle network data. The target vehicle network channel can include a CAN channel, a LIN channel, and a FlexRay channel, etc. The target vehicle network channel can be determined according to the specific situation.
[0080] A second embodiment of the present invention provides a method for implementing vehicle Ethernet data routing, first receiving an Ethernet frame sent by a second module, wherein the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table; then extracting a preset private protocol message from the Ethernet frame; and finally completing the routing of Ethernet data to vehicle network data based on the private protocol message. The above method can reduce the complexity of Ethernet routing implementation, improve development efficiency, and reduce routing delay by implementing the routing of Ethernet and traditional vehicle networks at the basic software layer of the automotive open system architecture.
[0081] Furthermore, the implementation process of routing traditional vehicle network data to Ethernet data includes the following steps:
[0082] Step 1: The first module receives a signal sent by a network segment of a target vehicle network channel, and routes the signal to an Ethernet network segment through a signal routing function of the communication module;
[0083] Step 2: The first module encapsulates the Ethernet signal into an Ethernet message of a preset private protocol and sends it to the second module through the socket adapter module, protocol data unit router module, TCP / IP module, Ethernet Diver module, and Ethernet Interface module in the basic software layer of the automotive open system architecture.
[0084] Step 3: The second module realizes the conversion between the preset private protocol and the standard Ethernet application protocol through the Ethernet protocol conversion module.
[0085] The above steps can realize the routing of traditional vehicle network data to Ethernet data.
[0086] Embodiment 3
[0087] Figure 3 The present invention provides a flowchart of a method for implementing vehicle Ethernet data routing in the third embodiment of the present invention. The third embodiment is optimized on the basis of the above embodiments. The present embodiment specifically extracts the preset private protocol message from the Ethernet frame. For details not yet provided in the present embodiment, please refer to the second embodiment.
[0088] like Figure 3 As shown, a method for implementing vehicle Ethernet data routing provided by Embodiment 3 of the present invention includes the following steps:
[0089] S210. Receive an Ethernet frame sent by the second module, where the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table.
[0090] S220 , gradually unpacking the Ethernet frame through a basic software module in a basic software layer of an automotive open system architecture.
[0091] In this embodiment, the basic software layer of the automotive open system architecture is generated based on the Ethernet routing table configuration, and the basic software modules may include an Ethernet Diver module, an Ethernet Interface module, and a TCP / IP module.
[0092] The unpacking operation in this step can remove the TCP / UDP header in the Ethernet frame, which is a basic unpacking process. The preset private protocol message extracted after unpacking is sent to the SoAd module.
[0093] S230: extracting a preset private protocol message from the unpacked Ethernet frame.
[0094] Among them, the preset private protocol message is a private Ethernet application layer protocol message compatible with the automotive open system architecture, and the preset private protocol message includes an information identification field, a length field and a payload field; wherein the information identification field is used to identify a group of data, and a group of data corresponds to an interactive layer protocol data unit in the automotive open system architecture; the length field indicates the length of the payload; the payload field contains one or more parameters, and the data type of the payload parameter adopts the basic data type compatible with the automotive open system architecture, and a payload parameter can correspond to an interactive layer signal in the automotive open system architecture.
[0095] Figure 4 This is a schematic diagram of the structure of a preset private protocol message in a data routing implementation method provided by the third embodiment of the present invention. Figure 4 It can be seen that an information identification field occupies 32 bits and is used to identify a group of data. A group of data can correspond to an interactive layer protocol data unit in the automotive open system architecture; the length field occupies 32 bits, indicating that the length of the payload is 32 bits; the payload field is a variable-length field, containing one or more parameters, and the data type of the parameter adopts the basic data type compatible with AUTOSAR.
[0096] Table 3 is a basic data type table provided by Embodiment 3 of the present invention. Among them, the protocol header should be encoded in network byte order, and the parameters in the payload can be arranged according to the definition in the preset Ethernet routing table, and the default arrangement is Motorola MSB. The private protocol message supports packaging and network transmission through UDP and TCP protocols.
[0097] Table 3 Basic data types provided by Example 3 of the present invention
[0098]
[0099] For example, it can be seen from Table 3 that if the data type is uint8, the data is unsigned integer data with a length of 8 bits, and if the data type is float 32, the data is floating point data with a length of 32 bits.
[0100] S240: Complete the routing of Ethernet data to vehicle network data based on the private protocol message.
[0101] The third embodiment of the present invention provides an implementation of vehicle Ethernet data routing, which embodies the process of extracting a preset private protocol message from an Ethernet frame. The method uses a preset private protocol message and, through the compatibility of the private protocol with AUTOSAR, can solve the routing problem between Ethernet data of multiple Ethernet application layer protocols and multiple traditional vehicle network data.
[0102] Embodiment 4
[0103] Figure 5 The fourth embodiment of the present invention provides a flowchart of a method for implementing vehicle Ethernet data routing. The fourth embodiment is optimized on the basis of the above embodiments. The present embodiment specifies the steps of completing the routing of Ethernet data to vehicle network data based on the private protocol message. For details not yet detailed in the present embodiment, please refer to the second embodiment.
[0104] like Figure 5 As shown, a method for implementing vehicle Ethernet data routing provided by Embodiment 4 of the present invention includes the following steps:
[0105] S310, receiving an Ethernet frame sent by a second module, wherein the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table.
[0106] S320: Extract a preset private protocol message from the Ethernet frame.
[0107] S330: Acquire an interaction layer protocol data unit in an automobile open system architecture according to the preset private protocol message.
[0108] In this embodiment, the payload of the preset private message can be converted into an interaction layer protocol data unit in the corresponding automobile open system architecture through the module in the automobile open system architecture.
[0109] Specifically, obtaining an interactive layer protocol data unit in an automotive open system architecture according to the preset private protocol message includes: identifying a header of the preset private protocol message through a socket adapter module and a protocol data unit router module in a basic software layer of the automotive open system architecture; removing the header to obtain a payload; and converting the payload into an interactive layer protocol data unit in a corresponding automotive open system architecture.
[0110] The above process can be understood as that the socket adapter module and the protocol data unit router module in the basic software layer of the automotive open system architecture can identify the header of the preset private protocol message, complete the unpacking, and directly convert the payload of the private protocol message into the corresponding interactive layer protocol data unit in the automotive open system architecture.
[0111] S340: Routing the interaction layer signal that needs to be routed in the interaction layer protocol data unit to the target vehicle network channel.
[0112] In this embodiment, the interactive layer signal that needs to be routed in the interactive layer protocol data unit can be routed to the target vehicle network channel through the communication module of the MCU.
[0113] Specifically, routing the interactive layer signal that needs to be routed in the interactive layer protocol data unit to the target vehicle network channel includes: intercepting the interactive layer signal that needs to be routed from the interactive layer protocol data unit through a communication module, and the communication module is a module in the first communication node; routing the interactive layer signal to the target vehicle network channel through the signal routing function in the communication module.
[0114] The above process can be understood as the communication module of the MCU intercepting the interaction layer signal that needs to be routed from the interaction layer protocol data unit, and routing the interaction layer signal to the target network channel through the signal routing function in the communication module.
[0115] The fourth embodiment of the present invention provides an implementation of vehicle Ethernet data routing, which embodies the process of completing the routing of Ethernet data to vehicle network data based on the private protocol message. The method can implement the routing of Ethernet data and multiple traditional vehicle network data in the standard software module in the automotive open system architecture of the first module.
[0116] Embodiment 5
[0117] Figure 6This is a structural schematic diagram of a method for implementing vehicle Ethernet data routing provided in Embodiment 5 of the present invention. The method can be applicable to the case where data is exchanged between an Ethernet network and a traditional vehicle network. The method can be executed by an implementation device for vehicle Ethernet data routing, wherein the device can be implemented by software and / or hardware and is generally integrated on the second module.
[0118] like Figure 6 As shown, a method for implementing vehicle Ethernet data routing provided by Embodiment 5 of the present invention implements routing of Ethernet data to traditional vehicle network data, including the following steps:
[0119] S410. Based on a preset Ethernet routing table, the Ethernet protocol conversion module completes the conversion between the standard Ethernet application layer protocol message and the preset private protocol message.
[0120] The Ethernet data mentioned in this embodiment adopts TCP / IP protocol in the network and transport layer, and HTTP, DDS and SOME / IP protocols in the application layer. In addition, it should be noted that HTTP and DDS protocols are not compatible with AUTOSAR.
[0121] In this embodiment, the preset Ethernet routing table includes a mapping relationship and an arrangement position;
[0122] Among them, the mapping relationship includes the mapping relationship between the Ethernet standard application layer protocol message, the effective load parameters of the preset private protocol message and the signal defined in the vehicle network protocol; the arrangement position includes the arrangement position of the parameters of the Ethernet private protocol message in the second module in the effective load, and the arrangement position of the Ethernet signal in the first module in the interactive layer protocol data unit.
[0123] In this embodiment, the preset private protocol message is a private Ethernet application layer protocol message compatible with the automotive open system architecture, and the preset private protocol message includes an information identification field, a length field, and a payload field;
[0124] Among them, the information identification field is used to identify a group of data, and a group of data corresponds to an interactive layer protocol data unit in the automotive open system architecture; the length field indicates the length of the payload; the payload field contains one or more parameters, and the data type of the payload parameter adopts the basic data type compatible with the automotive open system architecture. A payload parameter can correspond to an interactive layer signal in the automotive open system architecture.
[0125] In this embodiment, based on the preset Ethernet routing table, the specific process of completing the conversion between the standard Ethernet application layer protocol message and the preset private protocol message through the Ethernet protocol conversion module is not elaborated here, and the specific process can be referred to Example 6.
[0126] S420: Pack the converted preset private protocol message.
[0127] S430: Encapsulate the packaged preset private protocol message to obtain an Ethernet frame.
[0128] S440: Send the Ethernet frame to the first module to implement routing of Ethernet data to vehicle network data.
[0129] In this embodiment, after the Ethernet frame is sent to the first module, the process in which the first module implements the routing of Ethernet data to the vehicle network data according to the Ethernet frame can refer to Embodiments 2 to 4, which will not be described in detail here.
[0130] The fifth embodiment of the present invention provides a method for implementing vehicle Ethernet data routing. First, based on a preset Ethernet routing table, the Ethernet protocol conversion module completes the conversion between the standard Ethernet application layer protocol message and the preset private protocol message; then the converted preset private protocol message is packaged; then the packaged preset private protocol message is encapsulated to obtain an Ethernet frame; finally, the Ethernet frame is sent to the first module to realize the routing of Ethernet data to vehicle network data. The above method uses the high data processing capability of the MPU to complete the rapid conversion of the Ethernet application protocol to the private protocol at the MPU end, and can solve the routing problem between Ethernet data based on various Ethernet application layer protocols such as DDS and HTTP and various traditional vehicle network data.
[0131] Embodiment 6
[0132] Figure 7 The sixth embodiment of the present invention provides a flow chart of a method for implementing vehicle Ethernet data routing. The sixth embodiment is optimized on the basis of the above embodiments. The present embodiment specifies the steps for implementing the conversion between the standard Ethernet application layer protocol message and the preset private protocol message based on the preset Ethernet routing table. For the contents not yet detailed in the present embodiment, please refer to the fifth embodiment.
[0133] like Figure 7 As shown, a method for implementing vehicle Ethernet data routing provided by Embodiment 6 of the present invention includes the following steps:
[0134] S510: Based on a preset Ethernet routing table, the Ethernet protocol conversion module and the conversion strategy are used to implement the conversion between the standard Ethernet application layer protocol message and the preset private protocol message.
[0135] In this embodiment, the conversion strategy includes: converting an Ethernet standard application layer protocol message into a corresponding preset private protocol message; based on the mapping relationship of the preset Ethernet routing table, converting the parameters in the payload of the Ethernet standard application layer protocol message into one or more payload parameters of the corresponding preset private protocol message; the one or more payload parameters of the corresponding preset private protocol message correspond one-to-one to the signal defined in the vehicle network protocol, and the one or more payload parameters have the same data range as the signal defined in the vehicle network protocol.
[0136] Exemplarily, the basic conversion strategy between standard Ethernet application layer protocols such as HTTP, DDS and SOME / IP and preset private protocol messages is as follows:
[0137] 1. An HTTP, DDS and SOME / IP message, such as a DDS request / response message or a SOME / IP request / response message, is converted to a preset private protocol message;
[0138] 2. Based on the mapping relationship of data in the preset Ethernet routing table, the parameters in the HTTP, DDS and SOME / IP message payload are converted into one or more parameters in the preset private protocol;
[0139] 3. The converted parameters correspond one-to-one with the signals defined in the traditional vehicle network protocol, and the data representation range is the same.
[0140] The Ethernet protocol conversion module can realize the conversion between the standard Ethernet application layer protocol message and the preset private protocol message through the conversion strategy described above.
[0141] S520: Pack the converted preset private protocol message.
[0142] S530: Encapsulate the packaged preset private protocol message to obtain an Ethernet frame.
[0143] S540: Send the Ethernet frame to the first module to implement routing from Ethernet data to vehicle network data.
[0144] The sixth embodiment of the present invention provides an in-vehicle Ethernet data routing based on a preset Ethernet routing table, and completes the conversion process between a standard Ethernet application layer protocol message and a preset private protocol message through an Ethernet protocol conversion module. The method can achieve the conversion between a standard Ethernet application layer protocol message and a preset private protocol message by using a conversion strategy, and solve the routing problem between Ethernet data of multiple Ethernet application layer protocols and multiple traditional in-vehicle network data.
[0145] Embodiment 7
[0146] Figure 8 This is a schematic diagram of the structure of a device for implementing vehicle Ethernet data routing provided in Embodiment 7 of the present invention. The device can be applicable to situations where data is exchanged between an Ethernet network and a traditional vehicle network, wherein the device can be implemented by software and / or hardware and is generally integrated on a first module.
[0147] like Figure 8 As shown, the device includes: a receiving module 810, an extracting module 820 and a completing module 830.
[0148] In this embodiment, the device first receives the Ethernet frame sent by the second module through the receiving module 810, and the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on the preset Ethernet routing table; secondly, the preset private protocol message is extracted from the Ethernet frame through the extraction module 820; finally, the completion module 830 completes the routing of Ethernet data to the vehicle network data based on the private protocol message.
[0149] This embodiment provides a device for implementing vehicle-mounted Ethernet data routing, which can solve the routing problem between Ethernet data of multiple Ethernet application layer protocols and multiple traditional vehicle-mounted network data by presetting an Ethernet routing table.
[0150] Furthermore, the extraction module 820 is specifically used to: gradually unpack the Ethernet frame through the basic software modules in the basic software layer of the automotive open system architecture; and extract the preset private protocol message from the unpacked Ethernet frame.
[0151] Based on the above optimization, the completion module 830 includes an acquisition submodule and a routing submodule. The acquisition submodule is used to acquire the interaction layer protocol data unit in the automobile open system architecture according to the preset private protocol message; the routing submodule is used to route the interaction layer signal that needs to be routed in the interaction layer protocol data unit to the target vehicle network channel.
[0152] Based on the above technical solution, the acquisition submodule is specifically used for: identifying the header of the preset private protocol message through the socket adapter module and the protocol data unit router module in the basic software layer of the automotive open system architecture; removing the header to obtain the payload; and converting the payload into the corresponding interaction layer protocol data unit in the automotive open system architecture.
[0153] Based on the above technical solution, the routing submodule is specifically used to: intercept the interactive layer signal that needs to be routed from the interactive layer protocol data unit through the communication module, and the communication module is a module in the first communication node; route the interactive layer signal to the target vehicle network channel through the signal routing function in the communication module.
[0154] Furthermore, the preset Ethernet routing table includes a mapping relationship and an arrangement position;
[0155] The mapping relationship includes a mapping relationship between an Ethernet standard application layer protocol message, a valid load parameter of a preset private protocol message, and a signal defined in a vehicle network protocol;
[0156] The arrangement position includes the arrangement position of the parameters of the Ethernet private protocol message in the second module in the effective load, and the arrangement position of the Ethernet signal in the first module in the interactive layer protocol data unit.
[0157] Furthermore, the preset private protocol message is a private Ethernet application layer protocol message compatible with the automotive open system architecture, and the preset private protocol message includes an information identification field, a length field, and a payload field;
[0158] Among them, the information identification field is used to identify a group of data, and the group of data corresponds to an interactive layer protocol data unit in the automotive open system architecture; the length field indicates the length of the payload; the payload field contains one or more parameters, and the data type of the payload parameter adopts a basic data type compatible with the automotive open system architecture, and one payload parameter can correspond to an interactive layer signal in the automotive open system architecture.
[0159] The above-mentioned device for implementing vehicle Ethernet data routing can execute the method for implementing vehicle Ethernet data routing provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0160] Embodiment 8
[0161] Fig. 9 This is a schematic diagram of the structure of a device for implementing vehicle Ethernet data routing provided in Embodiment 8 of the present invention. The device can be applicable to situations where data is exchanged between an Ethernet network and a traditional vehicle network, wherein the device can be implemented by software and / or hardware and is generally integrated on a second module.
[0162] like Fig. 9 As shown, the device includes: a conversion module 910, a packaging module 920, an encapsulation module 930 and a sending module 940.
[0163] In this embodiment, the device first completes the conversion between the standard Ethernet application layer protocol message and the preset private protocol message through the conversion module 910 based on the preset Ethernet routing table and the Ethernet protocol conversion module; then the converted preset private protocol message is packaged through the packaging module 920; then the packaged preset private protocol message is encapsulated through the encapsulation module 930 to obtain an Ethernet frame; finally, the Ethernet frame is sent to the first module through the sending module 940 to realize the routing of Ethernet data to the vehicle network data.
[0164] This embodiment provides a device for implementing vehicle-mounted Ethernet data routing, which can quickly convert the Ethernet application protocol to the private protocol.
[0165] Furthermore, the conversion module 910 is specifically used to: based on a preset Ethernet routing table, realize the conversion between the standard Ethernet application layer protocol message and the preset private protocol message through the Ethernet protocol conversion module and the conversion strategy.
[0166] Based on the above technical solution, the conversion strategy includes:
[0167] An Ethernet standard application layer protocol message is converted into a corresponding preset private protocol message;
[0168] Based on the mapping relationship of the preset Ethernet routing table, convert the parameters in the payload of the Ethernet standard application layer protocol message into one or more payload parameters of the corresponding preset private protocol message;
[0169] The one or more payload parameters of the corresponding preset private protocol message correspond one-to-one to the signal defined in the vehicle network protocol, and the one or more payload parameters have the same data range as the signal defined in the vehicle network protocol.
[0170] Further, the preset private protocol message is a private Ethernet application layer protocol message compatible with the automotive open system architecture, and the preset private protocol message includes an information identification field, a length field, and a payload field;
[0171] Among them, the information identification field is used to identify a group of data, and the group of data corresponds to an interactive layer protocol data unit in the automotive open system architecture; the length field indicates the length of the payload; the payload field contains one or more parameters, and the data type of the payload parameter adopts a basic data type compatible with the automotive open system architecture, and one payload parameter can correspond to an interactive layer signal in the automotive open system architecture.
[0172] Furthermore, the preset Ethernet routing table includes a mapping relationship and an arrangement position;
[0173] The mapping relationship includes a mapping relationship between an Ethernet standard application layer protocol message, a valid load parameter of a preset private protocol message, and a signal defined in a vehicle network protocol;
[0174] The arrangement position includes the arrangement position of the parameters of the Ethernet private protocol message in the second module in the effective load, and the arrangement position of the Ethernet signal in the first module in the interactive layer protocol data unit.
[0175] The above-mentioned device for implementing vehicle Ethernet data routing can execute the method for implementing vehicle Ethernet data routing provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0176] Embodiment 9
[0177] Fig.10 This is a schematic diagram of the structure of a first module provided by Embodiment 9 of the present invention. Fig.10 As shown, the first module provided by the ninth embodiment of the present invention includes: one or more processors 41 and a storage device 42; the processor 41 in the first module may be one or more, Fig.10 A processor 41 is taken as an example; the storage device 42 is used to store one or more programs; the one or more programs are executed by the one or more processors 41, so that the one or more processors 41 implement the implementation method of in-vehicle Ethernet data routing as described in any one of the embodiments of the present invention.
[0178] The first module may further include: an input device 43 and an output device 44 .
[0179] The processor 41, storage device 42, input device 43 and output device 44 in the first module can be connected through a bus or other means. Fig.10 The example of connecting through bus is taken in the following.
[0180] The storage device 42 in the first module is a computer-readable storage medium, which can be used to store one or more programs, and the program can be a software program, a computer executable program, and a module, such as the program instructions / modules corresponding to the implementation method of the vehicle Ethernet data routing provided by the second to fourth embodiments of the present invention (for example, the attached Figure 8 The modules in the implementation device of the vehicle Ethernet data routing shown include: a receiving module 810, an extraction module 820 and a completion module 830). The processor 41 executes various functional applications and data processing of the first module by running the software programs, instructions and modules stored in the storage device 42, that is, the implementation method of the vehicle Ethernet data routing in the above method embodiment is implemented.
[0181] The storage device 42 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the first module, etc. In addition, the storage device 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 42 may further include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0182] The input device 43 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the first module. The output device 44 may include display devices such as a display screen.
[0183] Furthermore, when one or more programs included in the first module are executed by the one or more processors 41, the programs perform the following operations:
[0184] Receive an Ethernet frame sent by the second module, where the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table;
[0185] Extracting a preset private protocol message from the Ethernet frame;
[0186] The routing of Ethernet data to vehicle network data is completed based on the private protocol message.
[0187] Embodiment 10
[0188] Fig.11 This is a schematic diagram of the structure of a second module provided in Embodiment 10 of the present invention. Fig.11 As shown, the second module provided in the ninth embodiment of the present invention includes: one or more processors 51 and a storage device 52; the processor 51 in the second module may be one or more, Fig.11 A processor 51 is taken as an example; the storage device 52 is used to store one or more programs; the one or more programs are executed by the one or more processors 51, so that the one or more processors 51 implement the implementation method of in-vehicle Ethernet data routing as described in any one of the embodiments of the present invention.
[0189] The second module may further include: an input device 53 and an output device 54 .
[0190] The processor 51, storage device 52, input device 53 and output device 54 in the second module can be connected through a bus or other means. Fig.11The example of connecting through bus is taken in the following.
[0191] The storage device 52 in the second module is a computer-readable storage medium, which can be used to store one or more programs, and the program can be a software program, a computer executable program, and a module, such as the program instructions / modules corresponding to the implementation method of the vehicle Ethernet data routing provided in the fifth or sixth embodiment of the present invention (for example, the attached Fig. 9 The modules in the implementation device of the vehicle Ethernet data routing shown include: a receiving module 810, an extraction module 820 and a completion module 830). The processor 51 executes various functional applications and data processing of the second module by running the software programs, instructions and modules stored in the storage device 52, that is, the implementation method of the vehicle Ethernet data routing in the above method embodiment is implemented.
[0192] The storage device 52 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the second module, etc. In addition, the storage device 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 52 may further include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0193] The input device 53 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the second module. The output device 54 can include display devices such as a display screen.
[0194] Furthermore, when one or more programs included in the second module are executed by the one or more processors 51, the programs perform the following operations:
[0195] Based on the preset Ethernet routing table, the Ethernet protocol conversion module completes the conversion between the standard Ethernet application layer protocol message and the preset private protocol message;
[0196] Packing the converted preset private protocol messages;
[0197] Encapsulating the packaged preset private protocol message to obtain an Ethernet frame;
[0198] The Ethernet frame is sent to the first module to implement the routing of Ethernet data to the vehicle network data.
[0199] Embodiment 11
[0200] Embodiment 11 of the present invention provides a computer-readable storage medium having a computer program stored thereon, which is used to implement a method for implementing vehicle-mounted Ethernet data routing when the program is executed by a processor.
[0201] As a method performed by the first module, the method comprises:
[0202] Receive an Ethernet frame sent by the second module, where the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table;
[0203] Extracting a preset private protocol message from the Ethernet frame;
[0204] The routing of Ethernet data to vehicle network data is completed based on the private protocol message.
[0205] As a method performed by the second module, the method comprises:
[0206] Based on the preset Ethernet routing table, the Ethernet protocol conversion module completes the conversion between the standard Ethernet application layer protocol message and the preset private protocol message;
[0207] Packing the converted preset private protocol messages;
[0208] Encapsulating the packaged preset private protocol message to obtain an Ethernet frame;
[0209] The Ethernet frame is sent to the first module to implement the routing of Ethernet data to the vehicle network data.
[0210] Optionally, when the program is executed by a processor, it can also be used to execute the implementation method of vehicle-mounted Ethernet data routing provided by any embodiment of the present invention.
[0211] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination thereof. The computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.
[0212] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to: electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0213] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.
[0214] Computer program code for performing the operation of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0215] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for implementing vehicle Ethernet data routing, characterized in that: Applied to a vehicle, the vehicle comprises a first module and a second module, the first module is a microcontroller, and the second module is a microprocessor; The first module execution method includes: Receive an Ethernet frame sent by the second module, where the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table; Extracting a preset private protocol message from the Ethernet frame; The routing of Ethernet data to vehicle network data is completed based on the preset private protocol message.
2. The method according to claim 1, characterized in that The step of extracting a preset private protocol message from the Ethernet frame includes: gradually unpacking the Ethernet frame through a basic software module in a basic software layer of an automotive open system architecture; Extract the preset private protocol message from the unpacked Ethernet frame.
3. The method according to claim 1, characterized in that The method of completing the routing of Ethernet data to vehicle network data based on the preset private protocol message includes: Acquire an interactive layer protocol data unit in an automobile open system architecture according to the preset private protocol message; The interactive layer signal that needs to be routed in the interactive layer protocol data unit is routed to the target vehicle network channel.
4. The method according to claim 3, characterized in that The step of obtaining an interactive layer protocol data unit in an automobile open system architecture according to the preset private protocol message includes: Identifying the header of the preset private protocol message through a socket adapter module and a protocol data unit router module in the basic software layer of the automotive open system architecture; Removing the header to obtain a payload; The payload is converted into an interaction layer protocol data unit in a corresponding automotive open system architecture.
5. The method according to claim 3, characterized in that: The step of routing the interactive layer signal to be routed in the interactive layer protocol data unit to the target vehicle network channel includes: Intercepting the interaction layer signal to be routed from the interaction layer protocol data unit through a communication module, wherein the communication module is a module in the first communication node; The interactive layer signal is routed to the target vehicle network channel through the signal routing function in the communication module.
6. A method for implementing vehicle Ethernet data routing, characterized in that: Applied to a vehicle, the vehicle comprises a first module and a second module, the first module is a microcontroller, and the second module is a microprocessor; The second module execution method includes: Based on the preset Ethernet routing table, the Ethernet protocol conversion module completes the conversion between the standard Ethernet application layer protocol message and the preset private protocol message; Packing the converted preset private protocol messages; Encapsulating the packaged preset private protocol message to obtain an Ethernet frame; The Ethernet frame is sent to the first module to implement the routing of Ethernet data to the vehicle network data.
7. The method according to claim 1 or 6, characterized in that: The preset private protocol message is a private Ethernet application layer protocol message compatible with the automotive open system architecture, and the preset private protocol message includes an information identification field, a length field, and a payload field; Among them, the information identification field is used to identify a group of data, and the group of data corresponds to an interactive layer protocol data unit in the automotive open system architecture; the length field indicates the length of the payload; the payload field contains one or more parameters, and the data type of the payload parameter adopts a basic data type compatible with the automotive open system architecture, and one payload parameter can correspond to an interactive layer signal in the automotive open system architecture.
8. The method according to claim 1 or 6, characterized in that: The preset Ethernet routing table includes a mapping relationship and an arrangement position; The mapping relationship includes a mapping relationship between an Ethernet standard application layer protocol message, a valid load parameter of a preset private protocol message, and a signal defined in a vehicle network protocol; The arrangement position includes the arrangement position of the parameters of the Ethernet private protocol message in the second module in the effective load, and the arrangement position of the Ethernet signal in the first module in the interactive layer protocol data unit.
9. The method according to claim 6, characterized in that The conversion between the standard Ethernet application layer protocol message and the preset private protocol message based on the preset Ethernet routing table includes: Based on the preset Ethernet routing table, the conversion between the standard Ethernet application layer protocol message and the preset private protocol message is realized through the Ethernet protocol conversion module and the conversion strategy.
10. The method according to claim 9, characterized in that The conversion strategies include: An Ethernet standard application layer protocol message is converted into a corresponding preset private protocol message; Based on the mapping relationship of the preset Ethernet routing table, convert the parameters in the payload of the Ethernet standard application layer protocol message into one or more payload parameters of the corresponding preset private protocol message; The one or more payload parameters of the corresponding preset private protocol message correspond one-to-one to the signal defined in the vehicle network protocol, and the one or more payload parameters have the same data range as the signal defined in the vehicle network protocol.
11. A device for implementing vehicle Ethernet data routing, characterized in that: Set at the first module end, the first module is a microcontroller, and the device includes: A receiving module, used for receiving an Ethernet frame sent by a second module, wherein the Ethernet frame is obtained by the second module through Ethernet protocol conversion based on a preset Ethernet routing table; the second module is a microprocessor; An extraction module, used for extracting a preset private protocol message from the Ethernet frame; The completion module is used to complete the routing of Ethernet data to vehicle network data based on the preset private protocol message.
12. A device for implementing vehicle Ethernet data routing, characterized in that: Set at the second module end, the second module is a microprocessor, and the device includes: A conversion module, used to complete the conversion between the standard Ethernet application layer protocol message and the preset private protocol message through the Ethernet protocol conversion module based on the preset Ethernet routing table; A packaging module, used to package the converted preset private protocol messages; An encapsulation module is used to encapsulate the packaged preset private protocol message to obtain an Ethernet frame; The sending module is used to send the Ethernet frame to the first module to realize the routing of Ethernet data to the vehicle network data; the first module is a microcontroller.
13. A first module, characterized in that: include: one or more processors; a storage device for one or more programs; The one or more programs are executed by the one or more processors, so that the one or more processors are used to execute the method for implementing in-vehicle Ethernet data routing as described in any one of claims 1-5.
14. A second module, characterized in that: include: one or more processors; a storage device for one or more programs; The one or more programs are executed by the one or more processors, so that the one or more processors are used to execute the method for implementing in-vehicle Ethernet data routing as described in any one of claims 6-10.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for implementing vehicle Ethernet data routing as described in any one of claims 1 to 10 is implemented.
