
Recall first from Linux, hypervisors and the application lifecycle
- Linux is a common Adaptive host choice, and the Adaptive Platform can run on other suitable operating systems.
- PREEMPT_RT improves kernel preemptibility, while scheduling policy and memory locking address specific sources of delay.
- A Type-1 hypervisor can isolate guest memory and devices, while shared hardware still needs interference analysis.
Where ARA fits
3 min readThe last lesson ended with the Adaptive application lifecycle and hypervisors. This lesson answers what ARA is and how the platform is organized into functional clusters.
Suppose a Linux application needs to save a setting and recover it after a restart. The Linux manual for open(2) describes opening a file and obtaining a file descriptor. The manual for fsync(2) describes synchronizing changes to a file with storage. It also explains that synchronizing a file does not necessarily synchronize the directory entry that names it. These are documented operating system behaviors. An Adaptive application that uses standardized Persistency needs a separate description of the storage operations it can request and the behavior it can expect. A platform implementer can use Linux facilities to provide that behavior. Linux open manual, Linux fsync manual.
The AUTOSAR Adaptive Platform specifications describe the architecture and define platform functionality for Adaptive applications. ARA is the runtime those applications use through standardized application interfaces and services. The interface tells the developer how to request an operation and what outcomes the caller must handle. The runtime implementation carries out the operation on the selected platform. For a storage request, the developer reads the applicable Adaptive software specification to find the application behavior and the vendor documentation to find how to build and deploy against the supplied runtime.
The word Foundation has a specific meaning in AUTOSAR. The AUTOSAR standards area for common requirements, protocols, and other specifications that platform standards can reference. A shared protocol definition, for example, can live in Foundation while the Adaptive Platform defines how an Adaptive application accesses communication functionality. The SOME/IP Protocol Specification illustrates the shared role. An Adaptive communication specification can refer to the protocol for communication behavior while specifying a C++ interface for applications. The shared protocol and the application interface answer different engineering questions and can be maintained as separate documents.
Foundation sits below the platforms in the sense of specification dependency. Both Classic and Adaptive can draw on common specifications, which gives engineers a common document to consult when a system spans the two platforms. The runtime arrangement is a separate view. On a Linux-based deployment, the Adaptive application uses interfaces provided by the Adaptive Platform implementation, and that implementation uses facilities supplied by its operating environment. Foundation appears in the standards view because its documents inform the platform specification. The operating system appears in the deployment view because it provides facilities the implementation uses at runtime.
This distinction helps when you open an AUTOSAR release collection. Follow a Foundation reference to learn the shared rules for a protocol or other common subject. Read the Adaptive document to learn what responsibilities the platform has and what is visible to the Adaptive application. Read the vendor documentation for the installed product to learn how the supplier delivers those responsibilities. Each source answers a different question about the same system.
What defines a functional cluster
4 min readA A logical grouping of related AUTOSAR platform functionality and responsibilities. Communication Management, Execution Management, and Persistency are examples. Communication Management covers application communication, Execution Management covers execution of platform and application processes, and Persistency covers retaining application data. Naming a cluster identifies the responsibilities you are interested in, which helps you locate the relevant specifications and the corresponding capabilities in a vendor stack.
Consider a platform integration issue in which an application cannot recover a setting that it expected to retain. The cluster name tells you which area of the platform to investigate. To understand the expected behavior, identify the storage operation the application uses and read its software specification. To understand why AUTOSAR requires a given capability, trace the requirement it addresses. To investigate the code actually executing on the target, identify the vendor's Persistency implementation and its integration settings. These are different investigations even when all three start with the same cluster name.
AUTOSAR document and artifact identifiers help you choose what to read. Use the release collection to find the items relevant to the cluster and follow the references within those items. Some documents apply across several clusters, and the available documents and models can vary by cluster and release. The roles are as follows.
| Identifier | Meaning | What to look for |
|---|---|---|
| RS | Requirements Specification | Required capabilities and constraints, with requirement identifiers for traceability |
| SWS | Software Specification | Specified software behavior, interfaces where applicable, and details such as conditions and errors |
| TR | Technical Report | Supporting explanations, rationale, or guidance where published |
| MOD | Model | Design information represented in a model artifact where supplied, such as elements and their relationships |
Use the RS when reviewing whether a capability is required. Use the SWS when reviewing how the relevant interface is specified or what observable behavior the software must provide. A TR can explain the context for a decision or show how concepts fit together. For a conformance question, cite the applicable requirement or software specification. A model can help you see relationships among specified elements and keep the design consistent. A MOD artifact describes design information. The implementation is the executable software and associated integration material that the supplier delivers.
The usual sourcing picture is one implementation of a given cluster per vendor stack offering. Two vendors can each supply an implementation of the same functional cluster against the same AUTOSAR baseline. Each vendor owns the design choices and integration of the implementation it delivers, and a supplier can have several product variants or support third-party components. For a concrete project, identify the selected implementation from the product documentation. The logical cluster name alone leaves the number of libraries, processes, and packages open.
A cluster's functionality can be delivered through application libraries, background processes, or a combination of components. Several clusters can also use a common runtime component. The application team can still identify which cluster specifies the behavior it relies on. When two implementations provide the same specified interface, their packaging and internal storage choices may differ. That is why a report about a missing vendor library needs the SDK and target details, while a report about unexpected standardized behavior needs the applicable specification and the condition under which the behavior occurred.
How a vendor stack maps to AUTOSAR releases
3 min readAUTOSAR publishes release collections. Labels such as R19-11, R20-11, R21-11, R22-11, R23-11 and R24-11 identify collections from November of their respective years. A cluster's specification and design evolve through the artifacts published for those releases. An SWS can have its own document version and change history, distinct from the enclosing release label. When you cite an API or requirement, record the release collection and the document identifier. When differences between document revisions matter, record the document version and the relevant requirement or interface as well.
A vendor stack has a separate product version, assigned by the vendor. A vendor can maintain one stack codebase and use it to ship several configurations or SDKs for different AUTOSAR releases. It can also retain selected older interfaces, provide compatibility support, or implement selected features from a newer release. The actual mapping is a supplier claim about a particular delivery, with a scope that may vary by cluster, feature, target, and configuration. An explicit mapping matters whenever the application and runtime come from different delivery schedules.
Consider an illustrative vendor support record for Persistency. It says the product's maintenance SDK supports an R20-11 configuration. The integration team selects an R22-11 build and wants to use an operation found in an R24-11 SWS. The R20-11 support entry applies to that maintenance configuration. It gives no evidence about the selected build. For the R22-11 build, the team needs the supplier's coverage statement for the operation and the SDK and runtime that deliver it. The newer SWS establishes what AUTOSAR specified in its own release. The support record establishes which release behavior the vendor claims for a delivery.
The same reading process applies to a project maintaining R19-11 or R21-11 applications. Open that release's documents and identify the exact behavior the application depends on. Then find the vendor entry for the relevant cluster and configuration. A release missing from the support record is an unverified case. Ask for evidence for that case or keep the application's dependency within the scope already documented. A table listing several release labels can be accurate while referring to separate builds or bounded compatibility claims.
For an integration decision, keep the application requirement, the vendor's support claim, and the delivered artifacts together. For an application API, identify the SDK headers used to build the application and the runtime intended to satisfy the calls on the target. Source compatibility concerns whether the source can be built against the selected SDK. Binary compatibility concerns whether an already-built application can use the selected runtime. Both depend on the delivery details. A header declaration can settle an interface spelling question while runtime behavior still requires the supplier's documentation and verification on the selected build.
The next lesson, ara::core types and the functional clusters, examines the common types that appear in Adaptive interfaces. Those types are easier to place once you know where the runtime fits and how to identify the specification that defines a cluster's behavior.
Key takeaways
- ARA stands for AUTOSAR Runtime for Adaptive Applications.
- AUTOSAR Foundation provides shared specifications that platform specifications can reference.
- A functional cluster groups related platform functionality, with specifications and design artifacts that guide vendor implementations.
- A stack's product version and the AUTOSAR releases it supports are recorded separately.
Reflect
- Explain to a colleague, in two sentences: explain how the Adaptive Platform uses shared AUTOSAR Foundation specifications.
- Which objective are you least sure about? Re-read that section, then do its exercise in the practice pack.
- What surprised you when you ran the commands yourself?
On a real board
Repeat the key commands on your Raspberry Pi or lab board over SSH or the serial console. Note anything that behaves differently from your PC, such as missing tools, a BusyBox shell or a read-only filesystem.
References and further reading
- Man pageopen(2), the Linux file-opening interface
- Man pagefsync(2), synchronizing a file with storage
- SpecificationAUTOSAR AP R24-11: Explanation of Adaptive Platform Design
Official documentation first. Links checked when the lesson was published.