Method for forwarding data in communication system of vehicle
By outsourcing the routing function to another domain and adopting a hybrid software architecture, the problem of insufficient processing speed of the AUTOSAR software system is solved, high-performance data forwarding and load balancing are achieved, and the performance requirements of vehicle manufacturers are met.
Patent Information
- Application Number
- CN202380026719.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-10
- Filing Date
- 2023-01-26
- Publication Date
- 2024-10-29
AI Technical Summary
The processing speed of the AUTOSAR software system is insufficient to meet vehicle manufacturers' performance requirements for high-performance data forwarding, especially in high-performance applications, resulting in high routing delays and inability to effectively utilize hardware resources.
By outsourcing the routing function to another domain, the burden of the AUTOSAR domain is reduced, a hybrid software architecture is adopted to distribute functions in different domains, and multi-core CPUs are used for flexible distribution to achieve high-performance data forwarding, especially during vehicle operation. Low latency data exchange.
It achieves better load balancing and hardware resource utilization, improves data forwarding performance, meets the needs of high-performance applications, reduces routing delays, and simplifies the integration of AUTOSAR standards.
Smart Images

Figure CN118871887A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for forwarding data in a communication system of a vehicle according to the type of the independent claim. Background Art
[0002] AUTOSAR (Automotive Open System Architecture) is the name for a development partnership of vehicle manufacturers, control unit manufacturers and manufacturers of development tools, control unit basic software and microcontrollers, which aims to facilitate the exchange of software on different control units.
[0003] AUTOSAR provides a set of specifications that describe basic software modules, define application program interfaces, and create a common development method based on standardized exchange formats. The basic software modules provided for use by the AUTOSAR layered software architecture can be used in vehicles of different manufacturers and electronic components of different suppliers.
[0004] A method for bypassing AUTOSAR software components of an AUTOSAR software system is known from US Pat. No. 8,966,443.
[0005] The object of the present invention is to further improve the processing speed, in particular the processing speed of an AUTOSAR software system. This object is achieved by the features of the independent claims. Summary of the invention
[0006] The method according to the features of the independent claim is precisely for a control device with an integrated gateway function to achieve high-performance forwarding or routing of specific data. By outsourcing the routing function to another domain accordingly, the burden on the first domain, especially the AUTOSAR domain, can be relieved. This leads to better load balancing in the overall system and better utilization of hardware resources, especially when using multi-core controllers. Due to the proposed hybrid software architecture in the form of different domains and task distribution, on the one hand, the software in the AUTOSAR domain can remain unchanged in order to achieve the hosting of vehicle functions, while the software on the other domain can be optimized precisely in terms of the performance of data forwarding and therefore for performance-related application scenarios. Due to the proposed distribution of functions in different domains and therefore in different implementation examples, they can be flexibly distributed on one or more CPU cores according to system requirements and design. In particular, during the driving operation of the vehicle, low routing delays can be achieved due to the proposed solution. In addition, it is achieved that the data exchange with the first domain is always carried out through another domain, which is characterized by a high-performance forwarding mechanism. It is particularly expedient if data relevant to high performance remain in the further domain for further processing, while further data are forwarded to the first domain.
[0007] In a suitable development, a separate additional domain is used for the first bus system and a separate additional domain is used for the other bus system, wherein data exchange between the two separate domains takes place exclusively at the level of data units, in particular at the level of protocol data units (PDUs), in particular universal data units and / or data units contained in containers. Precisely these routing mechanisms are widely used for application data that are exchanged between vehicle functions on different control devices while the vehicle is driving in normal operation.
[0008] In a suitable development, it is provided that between the first and the further domain, data can be exchanged at the frame level and / or at the data unit level, in particular by using a memory shared by both domains, while between a domain in the further domain and a different domain in the further domain, data is exchanged only at the data unit level, but not at the frame level. Thus, a function- and protocol-independent data exchange mechanism can be used. This makes it possible to maintain the interface defined in the AUTOSAR standard, thereby simplifying the integration of the first domain in the overall system or maintaining it as usual. Data exchange within the further domain based on data units can be performed particularly quickly and with high performance.
[0009] In a suitable development, it is provided that the further domain comprises at least one driver for connection to a physical interface of a communication system, in particular a bus system, in particular for data access or for control mechanisms of ISO / OSI layer 2, and / or that the further domain comprises at least one protocol memory or protocol stack, in particular for data access or for control mechanisms of ISO / OSI layers 3-5, which are necessary for processing high-performance-relevant data from the further domain, and / or that the further domain comprises at least one gateway for forwarding at least one data unit, in particular between protocol stacks of different further domains. On the one hand, this ensures that communication takes place exclusively via the further domain. In addition, high-performance processing of performance-relevant application scenarios can be carried out, such as, for example, processing of non-transmission protocols in order to extract data units for high-performance routing.
[0010] In a purposeful development, a virtual driver is provided in a first domain, in particular an AUTOSAR domain, in particular as a proxy for a real driver, which is used to exchange frames between the first domain and another domain with a corresponding driver of the other domain, and / or to exchange with an interface for frames provided in the first domain, and / or to provide at least one adapter in the first domain in order to exchange data or data units with a gateway of the other domain and / or to exchange with a router provided in the first domain for data units. This ensures that direct access to the physical communication interface is limited to the other domain. However, it is possible to consider including the other domain accordingly, in particular in the AUTOSAR architecture definition, via a virtual interface. By means of the adapter, data exchange with the other domain can be ensured at the level of the data unit.
[0011] In one expedient development, it is provided that from the system description of the first domain, in particular the complete AUTOSAR control unit, a In the embodiment of the present invention, the configuration code related to the forwarding of data in the other domain and / or a reduced system description for the first domain, in particular a reduced AUTOSAR control unit extraction, is generated in the AUTOSAR-Extrakt. Thus, the existing tool chain can be adapted to derive the corresponding domain-specific configuration from the complete control unit configuration. Thus, automated software generation for both domains can be performed. This involves a tool support for processing, in particular, AUTOSAR standard inputs (control unit extractions in ARXML format), both for configuring the software of the AUTOSAR domain and for configuring the software of the other domain.
[0012] In one expedient development, the configuration code is generated by using a data model that describes the data forwarding. The data model allows for storage and visualization of the data of the routing device extracted from the control unit for other domains.
[0013] Further expedient developments emerge from the further dependent claims and from the description. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings show:
[0015] Figure 1 shows the classic E / E architecture of a motor vehicle,
[0016] Figure 2 shows the domain E / E architecture of a motor vehicle,
[0017] Figure 3 shows the central E / E architecture of a motor vehicle,
[0018] Figure 4 shows an abstract representation of a hybrid software architecture,
[0019] Figure 5 A schematic diagram showing a data structure,
[0020] Figure 6 shows the different data paths in a hybrid software architecture,
[0021] Figure 7 shows the data path for routing of PDUs and containers within one of the other domains,
[0022] Figure 8 shows the data path for routing of PDUs and containers between two of the further domains associated with the receiving part,
[0023] Fig. 9 shows the data path for routing of PDUs and containers between two of the further domains associated with the transport portion,
[0024] Fig.10 shows the data path for receiving and transmitting frames by the AUTOSAR domain,
[0025] Fig.11 shows the data path for receiving and transmitting PDUs by the AUTOSAR domain,
[0026] Fig.12 shows the data path for PDU reception through the application and PDU routing,
[0027] Fig.13 Shows the tools and workflows for hybrid software architectures, and
[0028] Fig.14 Shows the data model for routing settings. DETAILED DESCRIPTION
[0029] The invention is schematically shown on the basis of one exemplary embodiment and is subsequently explained in greater detail with reference to the drawing.
[0030] In the automotive context, the electrical and electronic architecture (E / E) of the vehicle comprises a network of electronic control devices 5 which are interconnected via communication channels. These E / E architectures are designed in such a way that the exchange of information between the control devices 5 is limited. This limitation of the information is technically carried out by a gateway function 3 which is integrated as a pure software solution or a software-hardware solution in a specific control device 2, 4, 6, 7, 8 at a communication interface in the vehicle. The task of the gateway 3 is to interconnect communication channels of the same or different vehicle bus technologies (e.g. CAN, LIN, Flexray, Ethernet or the like) and to enable a controlled transmission of communication messages between them. Figure 1-3 Different E / E architectures are shown in FIG.
[0031] according to Figure 1 The classic E / E architecture of is characterized by a central gateway 2 with a gateway function 3, via which a plurality of communication channels are interconnected, to which control devices 5 are respectively connected. Subgroups of the control devices 5 can be interconnected using data technology via sub-gateways 4, which in turn have a gateway function 3.
[0032] In accordance with Figure 2 In the domain-related E / E architecture, a central gateway 2 is provided, which connects a plurality of domain control devices 6 (which have gateway functions 3 included therein) to each other for the purpose of data exchange. Through the domain control device 6, another control device 5 can be provided or a sub-gateway 4 (which has a control device 5 connected thereto) can be provided according to the architecture for the purpose of data exchange.
[0033] In accordance with Figure 3In the region-related E / E architecture of a vehicle, a plurality of regional control devices 9 with a gateway function 3 are provided, which can be arranged, for example, at different locations in a motor vehicle. The regional control devices 9 are connected to each other via a computing device 8, in particular a powerful vehicle computer 8, for the purpose of data exchange. For this purpose, the computing device 8 also includes a gateway function 3. Additional control devices 5 are connected by data technology via the regional control device 9, which are spatially arranged within the region (for example, in the vehicle at the front left, at the front right, at the rear, etc.). Depending on the application, a sub-gateway 4 for connecting additional control devices 5 can also be provided.
[0034] The main application scenario for most control devices 5 is the hosting of application software components for implementing various vehicle functions (e.g. brakes, engine control, energy management, etc.). To facilitate this, automotive standards are defined for software architecture in AUTOSAR. AUTOSAR defines standard interfaces for application software components in a real-time environment (also called RTE, Real-time environment) and mechanisms for the corresponding infrastructure such as operating systems, communication, diagnostics, non-volatile data storage in the basic software, etc. It is therefore advantageous to retain a standardized approach with standard software AUTOSAR for this application scenario.
[0035] However, for control devices with integrated gateway functions 3, high-performance data processing such as high-performance forwarding of communication messages and the like must be met. Although the necessary routing functions are defined and supported by the AUTOSAR standard, the routing performance in AUTOSAR standard software is generally not sufficient to meet performance requirements such as those defined by vehicle manufacturers. Due to the standardization of software architecture, functions and interfaces by AUTOSAR and liability issues when standard software is changed, the possibility of optimizing the software in terms of performance is limited. In addition, the different communication paradigms and routing mechanisms of vehicle manufacturers provide additional optimization potential through vehicle manufacturer-specific solutions, which cannot be used together with AUTOSAR standard software. Therefore, AUTOSAR standard software is not optimal for the implementation of gateway functions 3.
[0036] In the following embodiments, the gateway function 3 is described in more detail, which implements high-performance data processing or data routing for the AUTOSAR environment. For the control device 5 that must not only meet the application scenario (hosting vehicle functions) but also meet the gateway function 3, a high-performance software architecture and a complete software solution are proposed. This is called a hybrid multi-core (Multi-Kern) software architecture for a vehicle controller with an integrated gateway function 3.
[0037] The hybrid software architecture is divided into independent implementation instances, which are referred to as domains 16, 18, 20; 40, 42, 44 in the following. These domains 16, 18, 20; 40, 42, 44 can be implemented independently of each other and are characterized by different partitions, especially software partitions. The communication between the different domains 16, 18, 20; 40, 42, 44 is carried out either via corresponding interfaces or, for example, via a specific storage design (shared memory: for example a ring buffer, which the different domains 16, 18, 20; 40, 42, 44 can access according to specific rules (write / read; storage area, etc.) for the purpose of data exchange). In multi-core CPU systems (microcontrollers or microprocessors or system-on-chip SOC), these domains can be flexibly distributed on one or more CPU cores according to the system requirements and design of the control device. The universal data exchange mechanism (as inter-domain communication 30 , 66 between at least a first domain 40 , 42 , 44 , in particular an AUTOSAR domain, and a further domain 16 , 18 , 20 , in particular a communication domain) enables data exchange between a domain 16 , 18 , 20 ; 40 , 42 , 44 and a kernel or within a computer kernel.
[0038] The software architecture is additionally partitioned into independent execution units (hereinafter referred to as domains 16, 18, 20; 40, 42, 44). These domains 16, 18, 20; 40, 42, 44 have corresponding execution functions, which can be flexibly incorporated into the operating system planning as periodic tasks or interrupts in order to realize the necessary control device system behavior.
[0039] A part of the AUTOSAR architecture is assigned to at least one (first) domain 40, 42, 44 or, depending on the application scenario, also to multiple (first) domains 40, 42, 44, which are referred to as first or AUTOSAR domains 40, 42, 44 below and which fully comply with the AUTOSAR standard and will not undergo any changes. The AUTOSAR domains 40, 42, 44 can be implemented as AUTOSAR single-core architectures or multi-core architectures. In the AUTOSAR domains 40, 42, 44, different application programs 46 can be set up, which are exemplarily represented as vehicle function programs 48.1, 48.2, ..., 48.n, depending on the application scenario. Furthermore, the respective AUTOSAR domain 40 , 42 , 44 comprises basic software 52 , which may comprise, for example, a router, in particular a PDU router 54 (I-PDU: interaction layer protocol data unit, a data unit defined by AUTOSAR, also referred to below as PDU (protocol data unit) or data unit) and / or an interface 56 for the bus system used (e.g. CAN, Flexray, Ethernet, etc.).
[0040] Independently of at least one (first) AUTOSAR domain 40, 42, 44, at least one further domain 16, 18, 20 is provided, preferably a plurality of further domains 16, 18, 20 are provided. The further domains 16, 18, 20 have independent implementation functions, which relate to the routing and processing of data. Particularly preferably, separate domains 16, 18, 20 are provided for each communication protocol (of the corresponding communication system 11), for example a CAN domain 20, a Flexray domain 18, an Ethernet domain 16, etc. The further domains 16, 18, 20 access the corresponding physical interface 13 of the communication system 11 and process the messages of the corresponding communication system 11.
[0041] The functional division between the AUTOSAR domains 40, 42, 44 and the further domains 16, 18, 20 (in particular for routing of data) is carried out in such a way that high-performance-related application scenarios (which are distinguished by fast routing and forwarding of data) are assigned to the further domains 16, 18, 20. Most of the complete data forwarding to be implemented by the gateway 3 in the control device uses the so-called PDU mechanism and container routing mechanism. This routing mechanism is widely used for application data, which are exchanged between vehicle functions on the control device 5 when the vehicle is driving (normal operation). Such application scenarios have high requirements for low routing delays and are therefore assigned to the further domain or domains for routing or forwarding data. The forwarding of data in the further domains 16, 18, 20 is carried out in conjunction with the data unit PDU 72 or the container 74, in particular by means of information in the header 80 or forwarding information such as is stored in a routing table. The header 80 or its associated information can be used to identify how the following user data 82 is to be interpreted or forwarded.
[0042] All other application cases or standard cases, such as diagnostic tasks or the like, which are not distinguished by fast data forwarding, are assigned to the AUTOSAR domains 40, 42, 44. All other application cases, such as local termination (receiving and transmitting via hosted vehicle functions), transmission protocols (ISO-TP (International Organization for Standardization Transport Protocol), TCP (Transmission Control Protocol), diagnostic communication and diagnostic routing (UDS, unified diagnostic service), OBD (on-board diagnostics), DoIP (diagnostics over Internet Protocol), network management, etc. are assigned to the AUTOSAR domains 40, 42, 44.
[0043] Domains 16, 18, 20; 40, 42, 44 in the hybrid software architecture can be mapped to one or more CPU cores in a multi-core CPU system (microcontroller or microprocessor or system on chip (SoC)) to meet the control device requirements and design (for example, the number of interfaces, data traffic (Datenverkehr), delay and throughput requirements, CPU load caused by routing, etc.).
[0044] The first or AUTOSAR domain 40 , 42 , 44 may be implemented as a single-core or multi-core implementation as defined by the AUTOSAR standard.
[0045] The additional domains 16, 18, 20 dedicated to the communication protocol can be flexibly mapped to the CPU cores to achieve a single-core or multi-core implementation. Each additional domain 16, 18, 20 can be assigned to another CPU core (e.g. CAN core, Ethernet core, etc.) or multiple or all additional domains 16, 18, 20 can be assigned to a single core (e.g. CAN, Flexray and Ethernet on a single core).
[0046] The communication data between the AUTOSAR domains 40, 42, 44 and the further domains 16, 18, 20 are exchanged via a common data exchange mechanism, which is based on a shared memory design as described above and is referred to as inter-domain communication 30, 66, located in the first domain and the further domains 16, 18, 20; 40, 42, 44 that are communicating, as described above. Figure 4 indicated in.
[0047] Inter-domain communication 30 , 66 is a function- and protocol-independent data exchange mechanism that enables the transmission of data blocks from one sender to one or more receivers.
[0048] Data blocks (e.g., according to Figure 5 The user data 82) is accompanied by additional meta-information (e.g., Figure 5 The additional meta information enables the transmitter and the receiver to interpret the exchanged data jointly. The time schedule of the data exchange can be configured via polling or interrupt mode. The exchanged data can additionally be protected by security mechanisms such as authentication to ensure data integrity.
[0049] If the areas between which data are exchanged are mapped onto different cores according to the control device design, the same data exchange mechanism is referred to as inter-core communication.
[0050] In the framework of this application, according to Figure 5 The data units frame 70, PDU 72 and container 74 are related. The format of these data units follows the TLW pattern (type, length, value). The type (identifier, additional protocol parameters) and length (user data 82 or payload, in bytes) are meta information, which is collectively called the data header 80 and gives the content of the value (user data 82 or user data).
[0051] A frame or frame 70 is a unit of data which is transmitted to the physical interface 13 of a specific communication protocol and whose exact format is defined by the protocol (CAN, Flexray, Ethernet).
[0052] The PDU 72 corresponds completely or partially to the user data 82 of the frame or frame 70, which contains application data (from signals with physical or functional relevance, such as vehicle speed, ambient temperature, fault status flags, etc.). The PDU 72 has its own data header 80 and payload or user data 82.
[0053] The container 74 for the PDU 72 is a collector that is used to group a plurality of contained PDUs 72. A PDU 72 that is transmitted in a frame 70 without a container 74 is referred to as a generic PDU 72. The container 74, the PDU 72 contained in the container 74, and the generic PDU 72 have their respective headers 80 and payloads or user data 82. These data units may have a nested structure in which the frame 70 is composed of generic PDUs 72 and / or container PDUs 72, and the container PDU 72 itself is composed of PDUs 72 contained in the container 74, as in Figure 5 It is shown exemplarily in FIG.
[0054] In order to comply with the interface (API: Application Programming Interface) defined in the AUTOSAR standard, the data unit frame 70 (see Figure 4 , the double arrow below between the communication driver 24 of the further domains 16, 18, 20 and the virtual driver 64 of the first domain 40, 42, 44) and the PDU 72 (generic and contained in the container 74; in Figure 4 The upper double arrow between the PDU gateway 28 and the PDU adapter 60 indicates that data are exchanged between the further domains 16 , 18 , 20 and the AUTOSAR domain 40 , 42 , 44 at the level of a PDU router 54 forwarding to the first domain 40 , 42 , 44 .
[0055] In accordance with the data units exchanged with the AUTOSAR domains 40, 42, 44, data can only be exchanged at the level of data units PDU 72 (generic and / or PDU 72 contained in a container 74) between the further domains 16, 18, 20. Due to the different frame layouts of the respective protocols, data exchange between two further domains 16, 18, 20 based on different communication protocols (CAN, Flexray, Ethernet) is not possible at the frame level.
[0056] Within the hybrid software architecture, direct access to the physical communication interface 13 of the CAN, Flexray and Ethernet protocols is limited only to the respective additional domains 16, 18, 20, which are associated with the routing or forwarding of data. This approach enables the further domains 16, 18, 20 to receive messages directly from the interface 13 and disconnect them within a short time. The messages are stored in the respective additional domains 16, 18, 20 for further processing, and the remaining messages are forwarded to the AUTOSAR domains 40, 42, 44. Therefore, the AUTOSAR domains 40, 42, 44 do not have direct access to the interface 13 of the respective communication system 11, but receive messages associated therewith indirectly via the respective additional domains 16, 18, 20.
[0057] The software architecture of the further domains 16, 18, 20 which are provided specifically for the respective communication protocols (CAN, Flexray, Ethernet) is similarly designed (see Figure 4 ). The routing device 22 for the respective other domains 16, 18, 20 is respectively composed of a communication driver 24 for connection to the respective physical interface 13 of the communication system 11, a communication protocol stack 26 or a stack memory for processing higher protocol layers (e.g. CAN / FR / ETH . . . ) and a protocol-independent PDU gateway 28 for forwarding PDUs 72. For data exchange with other (other) domains 16, 18, 20 or AUTOSAR domains 40, 42, 44, an instance of an inter-domain communication 30 is necessary.
[0058] The communication driver 24 implements data access (read and write) and control mechanisms (mode and fault management) related to ISO / OSI layer 2, which are necessary for communication control of the corresponding communication protocol (CAN, Flexray FR, Ethernet ETH, etc.) and processing of the physical interface 13.
[0059] The communication protocol stack 26 or the communication protocol memory 26 implements only those data access and control mechanisms of ISO / OSI layers 3-5 which are necessary for the processing of routing-related application scenarios on the other domains 16, 18, 20. This scope primarily includes the processing of non-transport protocol messages (non-ISO-TP, UDP) in order to extract PDUs 72 for high-performance routing.
[0060] The PDU gateway 28 performs high-performance forwarding of PDUs 72 between different data sources and data sinks, i.e., via inter-domain communication 30, local communication protocol stacks 26, communication protocol stacks 26 on different additional domains 16, 18, 20 and / or AUTOSAR domains 40, 42, 44. This forwarding is regulated by configurable routing instructions, which are also referred to as routing tables. The forwarding can be performed based on the corresponding data header 80.
[0061] In order to exchange data with the various further domains 16 , 18 , 20 and the AUTOSAR domains 40 , 42 , 44 , an instance of an inter-domain communication 30 is implemented in each of the further domains 16 , 18 , 20 .
[0062] AUTOSAR is an independent and complete standard architecture. In order to integrate a proprietary routing architecture into it, software modules 58, 60, 62, 64 located on the first domain 40, 42, 44 and directly connected to any AUTOSAR standard modules 52, 54, 56 must be adopted and included in the AUTOSAR architecture definition of the control device. The AUTOSAR standard provides the possibility of using complex device drivers 58 (CDD) for such integration.
[0063] In the AUTOSAR standard architecture, the drivers of the communication interfaces (CAN / Flexray / Ethernet drivers) are part of the microcontroller abstraction layer (MCAL) architecture layer. Since direct access to the physical communication interface 13 within the hybrid software architecture is limited to other domains 16, 18, 20, the MCAL must be adapted to the AUTOSAR domains 40, 42, 44 via so-called virtual communication drivers or virtual drivers 64 (CDD) for the corresponding protocols. As the name implies, the virtual driver 64 is not a real driver, but a proxy for the actual driver and is used as a standard AUTOSAR API with respect to the upper-level interface module (CAN / Flexray / Ethernet interface) of the so-called control unit abstraction layer (ECU abstraction layer, ECUAL). Virtual drivers 64 interact with their counterparts and exchange frames 50 , ie with actual communication drivers 24 in the respective other domains 16 , 18 , 20 via interdomain communication 30 , 66 , which is also located as a counterpart in the AUTOSAR domains 40 , 42 , 44 .
[0064] In the AUTOSAR standard architecture, the PDU router 54 is a software module in which PDUs 72 are forwarded between different software modules of the lower and upper layers. In order to be able to exchange PDUs 72 between the AUTOSAR domains 40, 42, 44 and the further domains 16, 18, 20, a driver CDD (AUTOSAR Complex Device Driver) called a PDU adapter 60 is included in the architecture as a low-level module of the AUTOSAR PDU router 54. The PDU adapter 60 interacts and exchanges PDUs 72 with the PDU gateway 28 of the respective further domain 16, 18, 20 via inter-domain communication 30, 66. This is achieved by the mentioned shared memory architecture (i.e. a shared memory such as a ring memory, for example).
[0065] An example of inter-domain communication 66 is implemented in the AUTOSAR domains 40, 42, 44 in order to exchange data with partners in other domains 16, 18, 20. The reception and transmission of frames 70 and PDUs 72 in the AUTOSAR domains 40, 42, 44 are achieved by forwarding these data units from or to a virtual communication driver 64 (on the frame level) or a PDU adapter 60 (on the PDU level). However, unlike the virtual communication driver 64 and the PDU adapter 60, the inter-domain communication 66 cannot be included in the AUTOSAR architecture definition because it is not directly connected to the standard AUTOSAR modules 52, 54, 56.
[0066] In order to address the hosting of vehicle functions and gateway application scenarios 5, data from two data sources (ie, the physical communication interface 13 and the application software component) are forwarded and processed along different data paths in a hybrid software architecture, such as from Figure 6 Obviously.
[0067] The forwarding decision 90 for the received frame or frame 70 is located in each of the other domains 16, 18, 20 or the associated communication driver 24 in order to further process the frame 70 received directly from the corresponding interface 13 (CAN, Flexray, Ethernet). The other domains 16, 18, 20 have independent implementation functions related to the routing of data. According to the configurable forwarding decision 90 when the data header 80 for the frame 70 is evaluated and utilized within the communication driver 24, the received frame 70 is forwarded (in step 88) to one of the following destinations:
[0068] Only for the AUTOSAR domain 40 , 42 , 44 : Only frames 70 that are to be further processed in the AUTOSAR domain 40 , 42 , 44 are forwarded to the AUTOSAR (CAN / Flexray / Ethernet) interface module 56 via the corresponding virtual driver 64 (CDD).
[0069] Only for further domains 16 , 18 , 20 : Frames 70 with application-related PDUs 72 to be extracted and further processed are only forwarded upwards (to the respective further domain 16 , 18 , 20 ) in the software stack 26 or communication protocol stack 26 (communication protocol stack 26 and PDU gateway 28 ) within the further domain 16 , 18 , 20 .
[0070] Not only for the AUTOSAR domain 40 , 42 , 44 but also for the further domain 16 , 18 , 20 : For certain special cases, the frame 70 is forwarded not only to the AUTOSAR domain 40 , 42 , 44 but also upwards into the software stack or communication protocol stack 26 of the further domain 16 , 18 , 20 .
[0071] The forwarding decision 90 for a received framework or frame can be summarized as follows:
[0072] - Only for AUTOSAR domains 40, 42, 44
[0073] oDiagnostic communication
[0074] CAN / FR: UDS (Uniform Diagnostic Service) based on ISO-TP (International Organization for Standardization - Transport Protocol)
[0075] ETH(Ethernet): Based on DoIP(Diagnostic Internet Protocol) (UDP, TCP
[0076] UDS (Transmission Control Protocol)
[0077] oDiagnostic forwarding
[0078] CAN / FR: Message routing for ISO-TP messages
[0079] ETH: DoIP routing for non-diagnostic TCP channels
[0080] oNon-diagnostic TCP channel
[0081] Related to CAN, FR, ETH:
[0082] oTime synchronization, network management, measurement and calibration (XCP)
[0083] - Only for the other domains 16, 18, 20
[0084] o Frame 70 with PDU 72 for PDU and container routing and / or reception by an application
[0085] - Relevant for AUTOSAR domains 40, 42, 44 and for the other domains 16, 18, 20 o Relevant only for ETH:
[0086] Address Resolution Protocol (ARP)
[0087] SOME / IP Service Discovery (SD)
[0088] Forwarding decision 92 for received PDU 72
[0089] The frames 70 forwarded from the communication driver 24 up into the software stack 26 are further processed to extract generic PDUs 72 and / or container PDUs 72 containing atomic, contained PDUs 72 .
[0090] Based on a configurable PDU forwarding decision 92 within the PDU gateway 28, the generic PDU 72 or the PDU 72 contained (in a container 74) is forwarded to one of the following destinations:
[0091] Only AUTOSAR domain 40 , 42 , 44 : Only PDUs 72 relevant for reception of applications 46 , 48 hosted in the AUTOSAR domain 40 , 42 , 44 are forwarded to the AUTOSAR PDU router 54 via the PDU adapter 60 .
[0092] - Only relevant to the other domains 16, 18, 20: only PDUs 72 relevant to PDU and container routing are forwarded:
[0093] If the target interface 13 is located in the same further domain 16 , 18 , 20 , it is forwarded back down to the communication protocol stack 26 and the communication driver 24 of the routing device 22 for transmission.
[0094] - When the target interface 13 is located in a different further domain 16, 18, 20, it is forwarded to the PDU gateway 28 of the corresponding further domain 16, 18, 20 for transmission.
[0095] - Not only for AUTOSAR domains 40, 42, 44 but also for the other domains 16, 18, 20:
[0096] The PDUs 72 which are relevant not only for reception by the applications 46 , 48 but also for PDU and container routing are forwarded not only to the AUTOSAR domains 40 , 42 , 44 but also to the target domains of the further domains 16 , 18 , 20 .
[0097] Combination of transmission of PDUs 72 and frames 70 from the AUTOSAR domains 40, 42, 44 and the further domains 16, 18, 20:
[0098] Since only the further domains 16 , 18 , 20 have direct access to the physical interface 13 , the transmission data from the AUTOSAR domains 40 , 42 , 44 and the further domains 16 , 18 , 20 must be combined and transmitted to the further domains 16 , 18 , 20 of the associated target interface 13 (CAN / Flexray / Ethernet).
[0099] Applications in AUTOSAR 46, 48 PDUs 72
[0100] The fields 40 , 42 , 44 from different further domains 16 , 18 , 20 and / or from the local further domain 16 , 18 , 20 are combined in the PDU gateway of the local further domain 16 , 18 , 20 in order to construct the user data 82 of the target frame 70 .
[0101] Frames 70 from the basic software 52 in the AUTOSAR domains 40 , 42 , 44 and the local further domains 16 , 18 , 20 are transmitted to the target interface 13 by the communication driver 24 in the local further domains 16 , 18 , 20 .
[0102] Data paths for different application scenarios
[0103] Depending on the respective application scenario, a certain amount of processing, forwarding decisions and data paths are relevant in the hybrid software architecture. Figure 6-12 The data paths for different application scenarios are explained in conjunction.
[0104] The PDU and container routing within one of the other domains 16, 18, 20 is Figure 7 . For this application scenario, the PDU 72 and / or container 74 received at one of the further domains 16, 18, 20 (contained in the frame 70 received in step 88) is transmitted to the target interface 13 of the same further domain 16, 18, 20 (according to the transmission of the corresponding frame 70 in step 106) (e.g. CAN to CAN routing). Therefore, the data path in the software stack 26 (steps 91, 92, 93, 110, 120) goes up and down within a single domain of the further domains 16, 18, 20, without data exchange with the AUTOSAR domains 40, 42, 44 and the different further domains 16, 18, 20.
[0105] The PDU and container routing between the other domains 40, 42, 44 is Figure 8 (receiving part) or Fig. 9 (Transmission part) is shown. For this application scenario (steps 88, 90, 91, 92, 94 ( Figure 8 ); Steps 108, 110, 120, 104, 106 ( Fig. 9 )), the PDU 72 and / or container 74 received at the source domain 16, 18, 20 is first transmitted to the target domain 16, 18, 20 (the corresponding frame 70 is received in step 88 for forwarding to the forwarding decision of the PDU gateway 28 or the forwarding decision there when the PDU 72 is received, and forwarded to the corresponding other target domain 16, 18, 20 in step 94), in the other target domain 16, 18, 20, the PDU 72 is received from the different other domains 16, 18, 20 in step 108, and in step 110, the PDU 72 is combined and transmitted to the communication driver 24 of the target domain 16, 18, 20 (step 120), wherein the communication driver 24 transmits the PDU 72 in the associated frame 70 (step 104) and then transmits it to the associated interface 13 to the target interface 13 of the target domain 16, 18, 20.
[0106] The reception and transmission of the frame 70 and the PDU 72 by the AUTOSAR domains 40, 42, 44 is performed in Fig.10 . For this application scenario, a frame 70 received at one of the other domains 16, 18, 20 (step 88) and relevant to the AUTOSAR domain 40, 42, 44 (for which, in the forwarding decision 90, for example, the header 80 and the routing table are determined) is transmitted from the communication driver 24 of the other domains 16, 18 and 20 to the virtual driver 64 of the AUTOSAR domain 40, 42, 44 (in step 96). Likewise, the frame 70 to be transmitted from the AUTOSAR domain 40, 42, 44 is first transmitted to the target domain in the other domains 16, 18, 20 and then transmitted to the target interface 13. For this purpose, in step 100, the corresponding virtual interface 56 transmits the corresponding frame 70 to the virtual driver 64. The virtual driver 64 , which is also located in the AUTOSAR domain 40 , 42 , 44 , transmits the corresponding frame 70 in step 102 to the communication driver 24 of the associated target domain 16 , 18 , 20 and then via step 104 to the associated interface 13 (see step 106 ).
[0107] For the application scenario of receiving and transmitting PDU 72 via AUTOSAR domains 40, 42, 44 ( Fig.11), the generic PDU 72 extracted from the frame 70 or the contained PDU 72 and the corresponding container 74 received at one of the other domains 16, 18, 20 associated with the AUTOSAR domain 40, 42, 44 are transmitted to the AUTOSAR domain 40, 42, 44. In step 88, the received frame 70 is checked in terms of relevance or routing in the forwarding decision 90 and is transmitted in step 91 to the forwarding decision 92 for the PDU 72 of the AUTOSAR domain 40, 42, 44. In step 112, the transmission to the AUTOSAR domain 40, 42, 44 takes place via the PDU adapter 60 (via step 112) and the PDU router 54 (step 114). When transmitting the PDU from the AUTOSAR domain 40, 42, 44, this takes place in step 116 from the PDU router 54 to the PDU adapter 60 and in step 118 to the PDU gateway 28. In step 110 , the transmission takes place and the PDU 72 to be transmitted therefore reaches the communication driver 24 in step 120 , wherein in step 104 a conversion into the associated frame 70 of the respective other domain 16 , 18 , 20 and subsequent transmission to the respective interface 13 takes place (step 106 ).
[0108] The combination of application scenarios is Fig.12 . In addition to the three application scenarios mentioned above (forwarding decision for frame 70, forwarding decision for PDU 72, combined transmission of PDU 72 and frame 70 from AUTOSAR domain 40, 42, 44 and further domain 16, 18, 20), combinations of these application scenarios are possible. An example for such an application scenario is the combination of receiving PDU 72 by application 46, 48 and PDU routing within the local further domain 16, 18, 20. In this case, the received PDU 72 is divided by the PDU forwarding decision 92 on the AUTOSAR domain 40, 42, 44 (via transmission paths 112, 140 using PDU adapter 60) and by transmission paths 93, 110, 120, 104 in the software stack 26 of the same further domain 16, 18, 20. The hybrid software architecture supports further such combinations of application scenarios.
[0109] An integrated offboard toolchain for the additional domains 16, 18, 20 for data routing is provided in Fig.13The implementation of a hybrid software architecture in embedded software must be supplemented by adapting the so-called external tool chain or development environment and the workflow for generating the control device configuration and the corresponding ECU flash container 146. The hybrid software architecture essentially divides the complete range of control device functions into an AUTOSAR domain part and a further domain part. Therefore, the tool chain (see Fig.13 ) in order to derive AUTOSAR domain and further domain-specific configurations from the complete control unit configuration.
[0110] By means of a configuration partitioning 134 contained in a tool 132 for generating configuration data 140, 142 for further domains 16, 18, 20, the AUTOSAR control device configuration defined in the so-called complete AUTOSAR control device extraction 130 of the system description (*.arxml) is partitioned into a data routing-specific configuration (such as is required for further domains 16, 18, 20), which is stored in an intermediate data model 136 (of further domains 16, 18, 20) and an AUTOSAR-specific configuration, which is a reduced AUTOSAR control device extraction 150. In other words, the content of the reduced AUTOSAR control device extraction 150 is the content of the complete AUTOSAR control device extraction 130 minus the part of the data model 136 assigned to the further domains 16, 18, 20 for data routing. The data routing configuration code (*.c, *.h) is generated from the data routing data model 136.
[0111] A tool 132 for generating configuration data for the further domains 16, 18, 20 is integrated at the entry point of the software development tool chain and workflow. For example, a complete AUTOSAR control device extraction 130 of a vehicle manufacturer is input into the tool 132 in order to obtain a configuration code 140 and a reduced AUTOSAR control device extraction 150. Although reduced in scope, the reduced AUTOSAR control device extraction 150 is consistent and can therefore be input into various AUTOSAR configuration tools and code generators 152 in order to generate an AUTOSAR configuration code 154. Both static code 142 (*.c, *.h) and static AUTOSAR code 156 (*.c, *.h) of routing unit 22 (of further domains 16 , 18 , 20 ) and configuration code 140 of routing unit 22 as well as AUTOSAR configuration code 154 are provided to a compiler or linker, which compiles and links them in order to generate a complete control unit SW flash container 146 , via which software updates can be flashed into control unit 5 .
[0112] The data model 136 of the routing units of the other domains 16, 18, 20 is a compact control-centric object model, the content of which is derived from the complex and redundant vehicle-centric AUTOSAR data model. Before the configuration code 140 is generated, the routing unit-specific configuration is cached in the tool 132 in the format of the data model 136 of the routing units of the other domains 16, 18, 20. This format enables a simpler visualization and analysis of the data flows and the communication relationships of the gateway 3.
[0113] Data Model 136 (see Fig.14 ) depicts the data flow in the gateway 3 in the form of a directed acyclic graph (DAG), which consists of corner points (nodes) connected to unidirectional edges (arrows). The end-point corners represent the source 200 and sink 240 of the data (communication controller 202 (receive e.g. CAN), 242 (transmit e.g. CAN); 214 (receive e.g. FR (Flexray), 258 (transmit e.g. FR), 210 (receive e.g. ETH socket), 246 (transmit e.g. ETH socket, AUTOSAR basic software 220, AUTOSAR software component 230). The middle corners represent the processing steps in the gateway (receive (204 (receive CAN frame), 207 (receive CAN container PDU), 209 (receive CAN generic PDU), 212 (receive ETH generic / contained PDU), 216 (receive FR Frame), 223 (receive FR container, PDU), 226 (receive generic PDU)) unpack (208 (CAN unpack PDU), 224 (FR unpack PDU)) especially PDU in CAN, FR, forward, pack (233 (CAN pack PDU), 250 (FR pack PDU)), send (223 (CAN send contained PDU, 248 (FR send contained PDU), 235 (CAN send container PDU), 252 (FR send container PDU), 253 (FR send generic PDU), 256 (FR send frame), 260 (AUTOSARCAN send frame), 262 (AUTOSAR FR send frame), 270 (CAN send frame), the interconnected edges represent the communication data units (frame 70, PDU 72, generic PDU 72) including their mutual relationship (PDU 72 of frame 70) and the order of their processing in time. These corners and edges additionally have characteristics that describe them more precisely.
[0114] The proposed hybrid multi-core software architecture for a vehicle control unit with integrated gateway functionality provides an optimal solution for the problem case in question. It combines the advantages of the AUTOSAR standard software architecture with a proprietary routing unit software architecture in order to address the application scenario of hosting vehicle functions or gateway functions (high-performance data forwarding). In addition to the description of the necessary adjustments to the embedded software, the necessary expansion and integration of the tool 132 is also described.
Claims
1. A method for forwarding data in a communication system (11) of a vehicle, in, The communication system (11) comprises at least one first bus system (10, 12, 14) and at least one further bus system (10, 12, 14), wherein data can be exchanged between the bus systems (10, 12, 14), with at least one first domain (40, 42, 44), in particular an AUTOSAR domain (40, 42, 44), as an independent implementation instance, wherein applications (46, 48), in particular vehicle functions, can be implemented in the first domain (40, 42, 44), wherein the first domain (40, 42, 44) comprises a connection to the application (46, 48), to A less standardized interface, in particular an AUTOSAR real-time environment, wherein data are exchanged between the communication system (11) and the first domain (40) via a further domain (16, 18, 20) as a further implementation instance independent of the first domain (40, 42, 44), in that a physical interface (13) of the communication system (11) is accessed only via the further domain (16, 18, 20), wherein data (70, 72, 74) received via the physical interface (13) of the communication system (11) in the further domain (16, 18, 20) are processed at least with respect to forwarding.
2. The method according to claim 1, It is characterized in that The data comprises at least one data unit (72), in particular an AUTOSARI-PDU or a subsequent protocol data unit (PDU), wherein the data unit (72) can be contained in a frame (70) transmitted via the physical interface (13) and / or in a container (74) contained in the frame (70), wherein the data unit (72) and / or the container (74) comprises at least one data header (80) and user data (82), in particular application data such as signals having physical or functional relevance.
3. The method according to any one of the preceding claims, It is characterized in that For a first bus system (10, 12, 14), a separate further domain (16, 18, 20) is used, and for a further bus system (10, 12, 14), a further separate further domain (16, 18, 20) is used, wherein data exchange between two further domains (16, 18, 20) takes place only at the level of data units (72), in particular at the level of common data units (72) and / or data units (72) contained in containers (74).
4. The method according to any one of the preceding claims, It is characterized in that In the further domain (16, 18, 20) data are forwarded which relate in particular to high-performance-related application data which are exchanged between vehicle functions, in particular on a control unit (5), in particular in a moving vehicle.
5. The method according to any one of the preceding claims, It is characterized in that Between the first domain and the further domain (16, 18, 20; 40, 42, 44), data may be transmitted at the level of frames (70) and / or at the level of data units (72), in particular by using a plurality of data units which are transmitted between the two domains (16, 18, 20; The invention relates to a memory exchange common to the other domains (40, 42, 44), while between a further domain in the further domains (16, 18, 20) and a different further domain in the further domains (16, 18, 20), data are exchanged only at the level of the data unit (72), but not at the level of the frame (70).
6. The method according to any one of the preceding claims, It is characterized in that The high performance related data is retained in the further domain (16, 18, 20) for further processing, while the further data is forwarded to the first domain (40).
7. A method according to any one of the preceding claims, It is characterized in that The frame (70) forwarded from the communication driver (24) to the protocol memory or the protocol stack (26) is further processed by the further domain (16, 18, 20) in that particularly common data units (72) and / or data units (72) contained in the container (74) are extracted from the frame (70) and / or the container (74).
8. The method according to any one of the preceding claims, It is characterized in that In said first domain (40) application scenarios such as local termination (reception and transmission by hosted vehicle functions), transmission protocols, diagnostic communication, diagnostic routing, network management are implemented.
9. The method according to any one of the preceding claims, It is characterized in that A forwarding decision (90) for a received frame (70) distinguishes whether a frame (70) with a data unit (72) and / or a container (74) is present for forwarding and / or is intended for reception by an application.
10. The method according to any one of the preceding claims, It is characterized in that The further domain (16, 18, 20) comprises at least one driver (24) for connecting to a physical interface (13) of the communication system (11), in particular a bus system (10, 12, 14), in particular for data access or for control mechanisms of ISO / OSI layer 2, and / or the further domain (16, 18, 20) comprises at least one protocol memory or protocol stack (26), in particular for data access or for control mechanisms of ISO / OSI layers 3-5, which are required for high-performance-related data processing on the further domain (14, 16, 18), and / or the further domain (16, 18, 20) comprises at least one gateway (28) for forwarding at least one data unit (72), in particular between protocol stacks (26) of different further domains (16, 18, 20).
11. The method according to any one of the preceding claims, It is characterized in that In the first domain (40, 42, 44), at least one virtual driver (58, 60, 62, 64) is provided for a frame (74), in particular as a proxy for a real driver, particularly preferably an AUTOSAR complex device driver (CDD), so that the first domain and the further domain (16, 18, 20; The invention relates to a method for exchanging frames (74) between a gateway (28) of the further domain (16, 18, 20) and a corresponding driver (24) of the further domain (40, 42, 44) and / or for exchanging frames with an interface (56), in particular an AUTOSAR protocol interface, arranged in the first domain (40, 42, 44) and / or for providing at least one adapter (60) for the data unit (72) in the first domain (40, 42, 44) for exchanging data or data units (72) with a gateway (28) of the further domain (16, 18, 20) and / or for exchanging frames with a router (54), in particular an AUTOSAR PUD router, particularly preferably an AUTOSAR complex device driver (CDD) arranged in the first domain (40, 42, 44).
12. The method according to any one of the preceding claims, It is characterized in that Configuration code (140, 142) associated with forwarding the data in the further domain (16, 18, 20) and / or a reduced system description of the first domain (150), in particular a reduced AUTOSAR controller extract, is generated from a system description (130), in particular a complete AUTOSAR controller extract, of the first domain (40, 42, 44).
13. A method according to any one of the preceding claims, It is characterized in that At least the configuration code (140) of the further domain (16, 18, 20) and the configuration code (154) of the first domain (40, 42, 44) are provided to a compiler or linker (144) in order to create a flash container (146) of the control device (5).
14. A method according to any one of the preceding claims, It is characterized in that The configuration code (140, 142) is generated using a data model (136) that describes forwarding of the data (136).
Citation Information
Patent Citations
Method of bypassing an AUTOSAR software component of an AUTOSAR software system
US8966443B2
Cited By
Routing architecture and routing method based on AUTOSAR architecture cross-chip CAN data and vehicle
CN120896897A
