Vehicle Gateway

DE102022201356B4Active Publication Date: 2024-10-02CONTINENTAL AUTOMOTIVE TECHNOLOGIES GMBH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
DE102022201356
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-02-09
Publication Date
2024-10-02
Estimated Expiration
2042-02-09

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Motor vehicle control unit (10) comprising at least one microprocessor (12), associated volatile (14) and non-volatile (16) memory, and one or more physical communication interfaces (18) which are communicatively interconnected via one or more data lines (20) or buses, wherein the microprocessor (12) is configured to execute a computer operating system, wherein the microprocessor (12) is also configured to execute a virtualized gateway instance (100) with a router function (102), wherein the gateway instance (100) implements one or more protocol stacks (110, 112, 114, 116) for corresponding communication protocols, wherein the gateway instance (100) accesses functions of the computer operating system via an operating system abstraction layer (130),wherein the gateway instance (100) for communication via a physical communication interface (18) of the motor vehicle control unit (10) includes an adapted configuration and corresponding computer commands (120', 122', 124', 126') for controlling the drivers for the physical communication interface (18) implemented in a kernel of the computer operating system, and wherein the gateway instance (100) for communication with a virtualized ECU (200) implements a virtual interface (120, 122, 124, 126) which corresponds to a virtual interface (220, 226) implemented in the virtualized ECU (200), characterized in that the router function (102) is configured toTo send data packets to a second vehicle control unit (10) implemented in an ECU or SW function connected to the first vehicle control unit (10) via several physical communication interfaces (18) via the one of the several physical communication interfaces (18) which can transmit the data packet to the second ECU or SW function within an allowed maximum delay time.
Need to check novelty before this filing date? Find Prior Art

Description

Area The invention relates to communication networks in motor vehicles, in particular the connection of communication networks implementing different protocols and possibly different physical interfaces. background Modern motor vehicles contain a multitude of computer-controlled control units, at least some of which require data and / or control signals from other control units for optimal function. Since the requirements of each control unit regarding the amount of data to be transmitted or received for its operation vary considerably, and not least for safety reasons, not all control units are connected via a shared communication network, a multitude of different communication networks have been developed and operated in parallel in motor vehicles. These different communication networks sometimes use different logical protocols and possibly also different physical interfaces.The communication networks known by abbreviations or names such as CAN (Controller Area Network), FlexRay, Ethernet, LIN (Local Interconnect Network), and MOST (Media Oriented Systems Transport) represent just a selection of the more well-known communication networks used in motor vehicles. Control units in motor vehicles are also referred to as engine control units or electronic control units, both of which are summarized under the acronym ECU. In this description, the term "motor vehicle control unit" refers to the hardware, and the term "ECU" refers to a function or group of related functions, unless the context indicates otherwise. In order to ensure the exchange of data or signals between the different communication networks of a motor vehicle, today's motor vehicles are equipped with a control unit specifically designed for this purpose, which is also referred to as a gateway. The development and manufacture of such a dedicated control unit as well as its integration into a motor vehicle is very complex, particularly when very different requirements regarding the communication networks to be connected or the design of the gateway have to be met within different model series of a manufacturer or between different manufacturers. In addition, the software architecture is usually tailored exactly to a manufacturer and the specific vehicle topology, i.e. the communication networks and control units present in a specific vehicle, and is optimized for this purpose in order to be able to perform the task with the minimum possible expenditure on processor power and memory.This specialization prevents, or at least significantly complicates, the adaptation and reuse of the hardware and / or software of existing gateways for other vehicle architectures. DE 10 2019 106 551 A1 discloses a multiple control unit for a vehicle with a control unit virtualization environment, comprising a first virtual control unit with a first logical control unit communication interface, which is executed in the control unit virtualization environment; and a second virtual control unit with a second logical control unit communication interface, which is executed in the control unit virtualization environment. US 8 204 967 B2 discloses a method for dynamically creating encapsulation and decapsulation chains and segmenting the packet forwarding layer. A distributed router may consist of multiple cards, each providing a subset of the router's physical interfaces. Some physical interfaces may be configured to send / receive only specific types and destinations of data packets. Some cards may not provide physical interfaces configured to send / receive a specific packet type and destination. This renders encapsulation and / or decapsulation chains useless for virtual interfaces that process data packets of that specific type on those cards.Therefore, instead of always creating both encapsulation and decapsulation chains for a virtual interface on a card, one aspect of the method dynamically determines which of the encapsulation and decapsulation chains are useful for a virtual interface on that card and creates only the chains that are useful on that card. Therefore, the packet forwarding layer is divided into independent encapsulation and decapsulation segments. WO 2018 / 015 460 A1 discloses a platform for controlling at least one industrial field device in an industrial plant with control software, comprising an execution environment in which the control software can run, and an external interface for communication between the control software and the field device, wherein the execution environment has virtual hardware which, from the point of view of the control software, behaves like the field device, wherein a switching unit is connected between the virtual hardware and the external interface, which switching unit is designed to bidirectionally translate data exchanged between the control software and the virtual hardware for communication with the field device via the external interface. JP 2014-236433 A discloses a communication device capable of selecting a network available for communication for each data flow, even when the connection between a packet transmission section and a transmission control section is disconnected. The communication device, which uses a network control system of a flow unit, includes: one or more communication interfaces; a communication stack having one or more channel tables; a packet transmission section that transmits a received packet; and a transmission control section that controls the operation of a packet transmission section.When the connection between the packet transmission section and the transmission control section is disconnected and when packet transmission by the packet transmission section and the transmission control section becomes impossible, the communication device changes the channel table used by the communication stack to control the channel. Summary of the invention Based on this, the present invention aims to create a motor vehicle gateway that can be easily adapted to different real or at least partially virtualized hardware environments. A further objective is to provide a method for operating the motor vehicle gateway that is adapted to a given hardware environment. This object is achieved by the device proposed in claim 1 and the method specified in claim 5. Advantageous embodiments and further developments are specified in the respective dependent claims. A motor vehicle control unit according to a first aspect of the invention comprises at least one microprocessor, volatile and non-volatile memory associated therewith, and one or more physical communication interfaces communicatively connected to one another via one or more data lines or buses. The microprocessor is configured to execute a computer operating system. The microprocessor is also configured to execute a virtualized gateway instance with a router function. The gateway instance implements one or more protocol stacks for corresponding communication protocols. The gateway instance accesses functions of the computer operating system via an operating system abstraction layer (OSAL). For communication via a physical interface of the vehicle control unit, the gateway instance contains a customized configuration and corresponding computer commands for controlling the drivers for the physical communication interface implemented in a kernel of the computer operating system. The drivers are controlled, for example, via a POSIX interface. POSIX is an acronym for "Portable Operating System Interface" and refers to a programming interface standardized in the ISO / IEC / IEEE 9945 standard, which represents the interface between application software and the operating system. In addition, the gateway instance implements a virtual interface for communication with a virtualized ECU, which corresponds to a virtual interface implemented in the virtualized ECU. In virtualized ECUs, the same type of interface is typically virtualized as is present in a physical ECU. In physical ECUs, this serves, among other things, to improve interchangeability across different vehicle networks of different vehicle models. Furthermore, it allows for the use of proven system designs, development environments, and test installations, which ultimately benefits reliability and rapid adaptability. Multiple virtualized ECUs with different functions can be executed independently from the same automotive ECU hardware. In one or more embodiments, the routing function is configured to connect virtual interfaces of two ECUs virtualized within the same motor vehicle control unit, each with the same protocol, via a connection within the motor vehicle control unit. The connection within the motor vehicle control unit can use at least one protocol that differs from that of the virtual interfaces. Often, a different physical connection is also present. For example, functions virtualized in their own containers, which essentially run independently of each other, are known to exchange data between containers via virtual IP connections. An alternative communication between containers can take place via shared storage space. In this case, the physical connection is established via the memory bus, although to the virtualized function, it appears as if the communication is taking place via a "real" physical interface. In one or more embodiments, the router function is configured to initially connect virtual interfaces of two ECUs virtualized on two different motor vehicle control units to a respective internal motor vehicle control unit connection. The respective internal motor vehicle control unit connections are connected to at least one physical communication interface connecting the two motor vehicle control units, which provides sufficient capacity for the current data exchange between the virtualized ECUs. The term "capacity" refers to the communication requirements of the virtualized ECUs, e.g., data rate, timing, current availability, and the like.If the two vehicle control units, each of which has an ECU virtualized, are connected via multiple physical communication interfaces, the router function can select a physical interface suitable for the current communication requirement. In one or more embodiments, the router function of the gateway instance is configured to establish a connection between two ECUs based on a correlation of ECUs, regardless of whether they are implemented physically or in a virtualized manner, or software functions implemented in them and / or the interfaces implemented or present in the ECUs according to a network table. A connection between two real ECUs or two ECUs virtualized on different automotive control units that have multiple physical interfaces can be established via any of the physical interfaces, regardless of which interface the ECU or the software function implemented on it would use to communicate in a conventional system. The gateway instance receives the information at compile time or runtime regarding the automotive control unit on which the function to which the data is to be sent is executed. The network table contains the information about the physically available communication interfaces.This also makes it possible to dynamically distribute functions to different vehicle control units during operation, for example if a vehicle control unit fails and the functions originally performed on it are taken over by other vehicle control units. A second aspect of the invention relates to a method for routing data packets from a first ECU or software function to a second ECU or software function by means of a gateway instance virtualized in a first motor vehicle control unit according to the first aspect of the invention. The method first comprises receiving a data packet from the first ECU or software function. The data packet contains an identification of the addressee, i.e., the ECU or software function for which it is intended. Based on this identification, the gateway instance determines whether the second ECU or software function is virtualized in the first motor vehicle control unit or implemented in a second motor vehicle control unit connected via a physical interface. If the second ECU or software function is implemented in a second motor vehicle control unit connected via a physical interface, the received data packet is sent via the corresponding physical interface to the receiver or another router or gateway, from where the data packet is ultimately forwarded to the receiver. Depending on the receiver's communication protocol or the communication connections between the first motor vehicle control unit and the receiver, the data packet may be subjected to appropriate protocol conversion and / or encapsulation. If the second ECU or software function is virtualized in the first motor vehicle control unit, the received data packet is sent via the corresponding virtualized interface to a communication link within the motor vehicle control unit, and from the communication link within the motor vehicle control unit to a virtualized interface of the virtualized ECU or software function. Protocol conversion may also occur here, if necessary. According to the invention, if the second ECU or software function is implemented in a second motor vehicle control unit connected to the first motor vehicle control unit via multiple physical interfaces, the method comprises determining a physical interface that can transmit the data packet to the second ECU or software function within a permitted maximum delay time. For example, current availability or the waiting time until an interface is available, a data rate of the interfaces, and the like can be taken into account. Once a suitable interface has been determined, the received data packet is sent via the corresponding physical interface. In one or more embodiments, the determination is carried out using a network table in which virtual and physical interfaces of ECUs and / or SW functions as well as data types required by them and their senders are correlated with each other. A computer program product according to a further aspect of the invention contains instructions which, when executed by a processor or computer, cause the processor or computer to carry out one or more embodiments and further developments of the method described above. The computer program product can be stored on a computer-readable medium or data carrier. The medium or data carrier can be physically embodied, e.g., as a hard disk, CD, DVD, flash memory, or the like; however, the medium or data carrier can also comprise a modulated electrical, electromagnetic, or optical signal that can be received by a computer using a corresponding receiver and stored in the computer's memory. A motor vehicle control unit with a virtualized gateway instance enables flexible configuration of gateway functions on different ECUs. Depending on the vehicle's network architecture, the gateway instance can be implemented as a physically separate ECU or as a virtual ECU on a domain controller together with other virtualized ECUs or functions. In addition to hardware savings, this also enables performance improvements, particularly in communication between virtualized ECUs. This is due, among other things, to the fact that complex drivers are not required for the virtual interfaces; instead, a control system can be implemented that uses fewer host system resources. The ability to implement and provide protocol transformations in the gateway instance, enabling automatic protocol conversion between signal-, service-, and / or object-based protocols, further expands the flexibility and usability of the motor vehicle control unit according to the invention. Code generators can be used for this purpose, if necessary. These generate suitable source code based on appropriate correlations, which implements the respective transformations as needed. The easy adaptability of the gateway instance, which is based on generic, mature software modules, to different vehicle architectures from different manufacturers reduces development effort. The method according to the invention can be used advantageously in land, water or air vehicles. Short description of the drawing The invention is explained in more detail below with reference to the accompanying figures. All figures are purely schematic, and elements irrelevant to the explanation may be omitted. They show: Fig. 1 shows an exemplary representation of components of a virtualized gateway instance. Fig. 2 shows an exemplary representation of components of a gateway ECU implemented on a dedicated motor vehicle control unit with a virtualized gateway instance with drivers for the physical interfaces, which replace the virtual interfaces. Fig. 3 shows a further exemplary representation of components of a gateway instance virtualized on the hardware of a motor vehicle control unit, which has both virtual interfaces and drivers for physical interfaces.4 shows an exemplary representation of components of an ECU virtualized on the hardware of a motor vehicle control unit, on which the gateway instance is also virtualized, Fig. 5 shows an exemplary flow diagram of a method for routing data packets from a first ECU or SW function to a second ECU or SW function by means of a gateway instance according to the invention virtualized in a first motor vehicle control unit, and Fig. 6 shows an exemplary block diagram of a motor vehicle control unit configured to carry out one or more aspects of the method according to the invention. Identical or similar elements are provided with identical or similar reference numerals in the figures. Example Fig. 1 shows an exemplary representation of components of a virtualized gateway instance 100 of a vehicle system. The exemplary gateway instance 100 comprises a router function 102, several protocol gateways 104, and several logic functions or applications 106 for operating the gateway instance. Corresponding protocol stacks are available for communication with other ECUs present in the vehicle system, i.e., for each physically present or virtually implemented communication interface of an ECU of the vehicle system, the required protocol stack is provided in the gateway instance. In the example, protocol stacks 110, 112, 114, 116 are available for a LIN network, a CAN network, a FlexRay network, and an IP-based network.For each protocol stack 110, 112, 114, 116, a corresponding virtual interface 120, 122, 124, 126 is also implemented for communication with ECUs virtualized on the same motor vehicle control unit. If the gateway instance is virtualized on a separate motor vehicle control unit, or if communication is required on a physically separate motor vehicle control unit with virtualized ECUs or dedicated non-virtualized ECUs, so-called "legacy ECUs," the virtual interfaces can be supplemented by or replace corresponding drivers for the physically existing networks. An operating system abstraction layer 130 is provided for accessing functions of the computer operating system. Fig. 2 shows an exemplary representation of components of a gateway ECU implemented on a dedicated motor vehicle control unit with a virtualized gateway instance 100 with drivers 120', 122', 124', 126' for the physical interfaces, which replace the virtual interfaces 120, 122, 124, 126. The remaining elements correspond to those in Fig. 1. Virtualizing the gateway instance allows, starting from a general gateway instance and adapted to the specific conditions of the vehicle network, to provide only those protocol stacks for which virtual or physical interfaces actually exist in the vehicle network. The use of verified and validated modularized software components eliminates sources of error, and the required software can be developed more quickly. Fig. 3 shows an exemplary representation of components of a gateway instance 100 virtualized on the hardware of a motor vehicle control unit 10, which is configured for communication with ECUs virtualized on the same hardware and with ECUs implemented on separate hardware. An exemplary ECU virtualized on the same hardware as the gateway instance is shown in Fig. 4. Accordingly, the gateway instance has both virtual interfaces 120, 122, 124, and 126 for communication with ECUs virtualized on the same hardware, as well as drivers 120', 122', 124', and 126' for physical interfaces for communication with ECUs implemented on separate hardware. This communication occurs in a known manner and will not be further described here. The virtual interfaces 120, 122, 124, 126 communicate with corresponding virtual interfaces of the other ECUs virtualized on the same motor vehicle control unit via a motor vehicle control unit-internal communication interface 140. The motor vehicle control unit-internal communication interface 140 can encapsulate the data sent via the virtual interfaces 120, 122, 124, 126 according to the respective protocol and send it according to a different protocol to the virtual interface of the recipient, where it is decapsulated and is present in the original protocol. Fig. 4 shows an exemplary representation of components of an ECU 200 virtualized on the hardware of a motor vehicle control unit 10, on which the gateway instance 100 is also virtualized. The exemplary ECU 200 comprises one or more logic functions or applications 206 for operating the ECU. For communication with other ECUs present in the vehicle system, corresponding protocol stacks are available, in this example a LIN protocol stack 210 and an IP protocol stack 216, both of which communicate with the gateway instance via the motor vehicle control unit's internal communication interface 140.If the ECU 200 needs to communicate with an ECU that is not virtualized on the same hardware as the motor vehicle control unit, a connection is established to the router function of the gateway instance via a corresponding virtual interface, and the router function establishes the connection to the receiving ECU via a suitable physical interface. Fig. 5 shows an exemplary flow diagram of a method 500 for routing data packets from a first ECU or SW function to a second ECU or SW function by means of a gateway instance 100 according to the invention that is virtualized in a first motor vehicle control unit 10. In step 502, a data packet is received from the first ECU or SW function. Subsequently, in step 504, it is determined whether the second ECU or SW function is virtualized in the first motor vehicle control unit or implemented in a second motor vehicle control unit connected to the first motor vehicle control unit via a physical interface. If the second ECU or SW function is implemented in a second motor vehicle control unit connected to the first motor vehicle control unit via a physical interface, “j” branch of test step 506, the received data packet is sent via the corresponding physical interface.A protocol conversion or encapsulation may occur beforehand. If the second ECU or software function is implemented in a second motor vehicle control unit connected to the first motor vehicle control unit 10 via multiple physical interfaces, a physical interface that can transmit the data packet to the second ECU or software function within a permitted maximum delay time can be determined in an optional step 508 prior to sending in step 510. When determining the maximum expected delay time, the current availability of the interface, its data rate, and the like can be taken into account, among other things. If the second ECU or software function is virtualized in the first motor vehicle control unit (the "n" branch of step 506), the received data packet is sent in step 512 via the corresponding virtualized interface to a motor vehicle control unit-internal communication connection 140, and from the motor vehicle control unit-internal communication connection 140 to a virtualized interface of the virtualized ECU or software function. Here, too, a protocol conversion or encapsulation may be performed beforehand if necessary. Fig. 6 shows an exemplary block diagram of a motor vehicle control unit 10 configured to execute one or more aspects of the method according to the invention. In addition to a microprocessor 12, the motor vehicle control unit 10 comprises volatile and non-volatile memory 14 and 16, respectively, as well as at least one communication interface 18. The elements of the motor vehicle control unit 10 are communicatively connected to one another via one or more data connections or buses 20. The non-volatile memory 16 contains computer program instructions which, when executed by the microprocessor 12, configure the motor vehicle control unit 10 to execute the method 500 according to the invention. List of reference symbols 10 Motor vehicle control unit 12 Microprocessor 14 Volatile memory 16 Non-volatile memory 18 Physical communication interface 20 Data connection / bus 100 Gateway instance 102 Router function 104 Protocol gateways 106 Logic functions / applications 110 LIN protocol stack 112 CAN protocol stack 114 FlexRay protocol stack 116 IP protocol stack 120, 120' Virtual LIN interface 122, 122' Virtual CAN interface 124, 124' Virtual FlexRay interface 126, 126' Virtual Ethernet interface 130 Operating system abstraction layer 140 Motor vehicle control unit internal communication 200 Virtualized ECU 500 Procedure 502 Receive 504 Determine 506 Check 508 Determine 510 Send 512 Send

Claims

Motor vehicle control unit (10) comprising at least one microprocessor (12), volatile (14) and non-volatile (16) memory associated therewith, and one or more physical communication interfaces (18) which are communicatively connected to one another via one or more data lines (20) or buses, wherein the microprocessor (12) is configured to execute a computer operating system, wherein the microprocessor (12) is also configured to execute a virtualized gateway instance (100) with a router function (102), wherein the gateway instance (100) implements one or more protocol stacks (110, 112, 114, 116) for corresponding communication protocols, wherein the gateway instance (100) accesses functions of the computer operating system via an operating system abstraction layer (130),wherein the gateway instance (100) for communication via a physical communication interface (18) of the motor vehicle control unit (10) includes an adapted configuration and corresponding computer commands (120`, 122', 124', 126') for controlling the drivers for the physical communication interface (18) implemented in a kernel of the computer operating system, and wherein the gateway instance (100) for communication with a virtualized ECU (200) implements a virtual interface (120, 122, 124, 126) which corresponds to a virtual interface (220, 226) implemented in the virtualized ECU (200), characterized in that the router function (102) is configured toto send data packets to an ECU or SW function implemented in a second motor vehicle control unit (10) connected to the first motor vehicle control unit (10) via a plurality of physical communication interfaces (18) via that of the plurality of physical communication interfaces (18) which can transmit the data packet to the second ECU or SW function within a permitted maximum delay time. Motor vehicle control unit (10) according to claim 1, wherein the router function (102) is configured to connect virtual interfaces (120, 122, 124, 126, 220, 226) of two ECUs (200) virtualized within the same motor vehicle control unit (10) using the same protocol via a motor vehicle control unit-internal connection (140) which uses at least one protocol that differs from that of the virtual interfaces (120, 122, 124, 126, 220, 226). Motor vehicle control unit (10) according to claim 1, wherein the router function (102) is configured to connect virtual interfaces (120, 122, 124, 126, 220, 226) of two ECUs (200) virtualized on two different motor vehicle control units (10) via a respective motor vehicle control unit-internal connection (140) to one of a plurality of physical communication interfaces (18) connecting the two motor vehicle control units (10), which physical communication interfaces provide sufficient capacity for an existing data exchange of the virtualized ECUs (200). Motor vehicle control unit (10) according to one of the preceding claims, wherein the router function (102) of the gateway instance (100) is configured to establish a connection between two ECUs based on a correlation of ECUs or software functions implemented in them and / or the interfaces implemented or present in the ECUs according to a network table. Method (500) for routing data packets from a first ECU or SW function to a second ECU or SW function by means of a gateway instance (100) virtualized in a first motor vehicle control unit (10) according to one of claims 1 to 4, comprising: - receiving (502) a data packet from the first ECU or SW function, - determining (504) whether the second ECU or SW function is virtualized in the first motor vehicle control unit (10) or implemented in a second motor vehicle control unit (10) connected via a physical communication interface (18), wherein, if the second ECU or SW function is virtualized in the first motor vehicle control unit (10),the method (500) comprises: - sending (512) the received data packet via the corresponding virtualized interface to a motor vehicle control unit-internal communication connection (140) and from the motor vehicle control unit-internal communication connection (140) to a virtualized interface of the virtualized ECU (200) or SW function, and wherein, if the second ECU or SW function is implemented in a second motor vehicle control unit (10) connected via a physical communication interface (18), the method (500) comprises: - sending (510) the received data packet via the corresponding physical communication interface (18), characterized in that if the second ECU or SW function is implemented in a second motor vehicle control unit (10) connected via a plurality of physical communication interfaces (18),the method (500) comprises:- determining (508) a physical communication interface (18) which can transmit the data packet to the second ECU or SW function within a permitted maximum delay time, and- sending (510) the received data packet via the corresponding physical communication interface (18)., Method (500) according to claim 5, wherein the determination (504) is carried out using a network table in which virtual (120, 122, 124, 126, 220, 226) and physical (18) interfaces of ECUs and / or SW functions as well as data types required by them and their senders are correlated with one another. Computer program product comprising instructions which, when the program is executed by a microprocessor (12) of a motor vehicle control unit (10) according to one of claims 1 to 4, cause the microprocessor (12) of a motor vehicle control unit (10) to carry out the method (500) according to one or more of claims 5 or 6. A computer-readable medium on which the computer program product according to claim 7 is stored. Motor vehicle with a motor vehicle control unit (10) according to one of claims 1 to 4.

Citation Information

Patent Citations

  • MULTI-CONTROL UNIT FOR ONE VEHICLE

    DE102019106551A1

  • Communication apparatus, transmission control method and transmission control program

    JP2014236433A

  • Dynamic chain creation and segmentation of the packet-forwarding plane

    US8204967B2

  • Platform for continued use of existing software for the actuation of industrial field devices

    WO2018015460A1

  • JP002014236433A