Software-Defined Vehicles · Software platform
Middleware
Also known as communication middleware, automotive middleware, ara::com, DDS middleware
Software between the operating system and applications that provides common services, chiefly communication plus discovery, serialisation and quality of service, so distributed application components can interact without handling transport details themselves.
Explanation
In vehicles, middleware connects software components within one computer and across ECUs. It hides whether a peer is a thread in the same process, another process reached through shared memory, or an ECU reached over Ethernet.
Examples include AUTOSAR Adaptive's Communication Management (the ara::com API), which creates and monitors communication paths locally and across machines, defined at design time, at startup or at runtime; SOME/IP-based stacks; and the OMG Data Distribution Service (DDS), which specifies a data-centric publish-subscribe model with configurable quality of service and on which ROS 2's standard middleware implementations are built. In AUTOSAR Classic ECUs, the Runtime Environment (RTE) plays a comparable role inside a single microcontroller.
Middleware choice affects latency, determinism, safety-certification effort, memory footprint and interoperability. Bridges between middleware, for example DDS to SOME/IP, add latency and need careful mapping of data types and QoS.
How it works
Developers describe interfaces in an interface definition language or model, and code generators produce proxies and skeletons. At runtime the middleware discovers peers, serialises data, chooses a transport (intra-process, shared memory, UDP or TCP) and applies QoS policies such as reliability, history depth and deadlines. Some middleware also handles security (authentication, encryption, access control) and records diagnostic information.
Automotive applications
- AUTOSAR Adaptive service communication
- ROS 2 and DDS-based ADAS prototypes
- Zero-copy sensor data sharing on HPCs
- Bridging in-vehicle services to cloud protocols
Example
A perception process publishes object lists on a DDS topic with reliable delivery and a 50 ms deadline QoS. The planning process on the same SoC receives them through shared memory, while a logging node on another ECU receives the same topic over Ethernet, without any change to the publisher's code.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- Data Distribution Service (DDS) specification, version 1.4 (opens in a new tab)
“The DDS specification describes a Data-Centric Publish-Subscribe (DCPS) model for distributed application communication”
- Adaptive Platform (opens in a new tab)
“The AUTOSAR Adaptive Platform standard specifies a runtime environment for automotive applications on µ-processor systems.”
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.