Autosar Basic Allmodule
Autosar Basic Allmodule
Support integra on of advanced features (ADAS, connec vity) with safety and security.
2. What are the differences between Classic Pla orm and Adap ve Pla orm?
Applica on type Sta c, real- me applica ons Dynamic, service-oriented applica ons
Communica on COM stack (e.g., CAN, LIN, FlexRay) Service-based (SOME/IP over Ethernet)
Applica on Layer: Contains applica on-level func onality in the form of So ware
Components (SWCs).
RTE (Run me Environment): Mediates communica on between SWCs and the BSW,
implemen ng the Virtual Func onal Bus (VFB).
Basic So ware (BSW): Provides core services, communica on stacks, ECU abstrac on, and
microcontroller abstrac on.
4. What are So ware Components (SWC) and how are they connected?
SWCs are reusable units of applica on func onality with well-defined interfaces. They are:
Hardware-independent
Connec ons:
Represents a virtual connec on between SWCs, regardless of their actual ECU loca on.
The RTE and COM stack implement the VFB func onality at run me.
The Diagnos c Communica on Manager (DCM) manages the diagnos c communica on as per UDS
(ISO 14229) and OBD standards.
Its main responsibili es include:
DCM supports UDS services via a service table and dispatching logic:
Each UDS service (e.g., 0x22, 0x2E, 0x19) has a handler func on.
Services are mapped via configura on (e.g., in ARXML or Vector's DaVinci Configurator).
DCM parses the SID, checks session/security validity, and routes it to:
Diagnos c Event Manager (DEM) manages Diagnos c Trouble Codes (DTCs) and their associated
events.
Key features:
o Clear DTCs
4. Explain the life cycle of a DTC in DEM.
4. DTC confirmed: If confirmed criteria are met (e.g., mul ple failed cycles).
Event debouncing prevents false posi ves due to signal noise or transient errors.
Key points:
Tester tool OEM/internal testers Standard scan tools (e.g., for inspec on)
Feature UDS (ISO 14229) OBD (ISO 15031/15765)
It helps in:
Packing (Tx):
o COM packs signals into an I-PDU buffer according to the configured bit posi on,
length, and byte order.
Unpacking (Rx):
o Updated signal values are passed to the applica on via RTE or no fica on callbacks.
Packing/unpacking uses signal group configura on, endianness, bit offset, and scaling rules as
defined in ARXML.
Routes I-PDUs between upper layers (COM, DCM, etc.) and lower layers (CAN Interface, LIN
Interface, etc.).
Is completely protocol-independent.
Example flows:
1. Import System Descrip on ARXML from communica on tools like CANdela Studio.
o Set a ributes: update bit, transfer property, signal length, meout, etc.
3. In PduR:
Use case Normal periodic signals Diagnos cs, mul plexed data
Lower layer (e.g., CANIF) asks upper layer (e.g., COM, DCM) to fill the data during
transmission.
Signal Timeout:
Providing a high-level API to applica ons and other BSW modules (e.g., DEM, DCM).
Ensuring data integrity, consistency, and reliability across resets and power cycles.
Managing block-based storage, job priori za on, redundancy, and error handling.
NvM uses mul ple mechanisms to ensure data consistency and reliability:
Redundant blocks: Writes two copies alternately to allow recovery if power fails mid-write.
Write verifica on: Ensures data was correctly wri en via checksum comparison.
Write-once blocks: Used for calibra on or factory data to prevent accidental overwrites.
A block is a logical representa on of a structured data unit (e.g., calibra on data, counters).
o Block ID (unique)
o Length
o Data pointer
Use case For internal Flash (no EEPROM) For dedicated external EEPROM
Device type Emulates EEPROM over internal Flash Talks to real EEPROM over I2C/SPI
NvM selects either Fee or Ea as the underlying memory driver based on block mapping.
Provides uniform APIs for memory opera ons (Read, Write, Erase, Compare).
Abstracts which physical memory is used—NvM doesn’t need to know if it’s Flash or
EEPROM.
At write me:
At read me:
o If mismatch occurs, NvM flags the block as invalid, and ROM default (if configured)
may be used.
NvM supports:
AUTOSAR OS defines several task types, categorized mainly by scheduling behavior and ac va on
method:
Runnable En ty - Not an OS task, but part of AUTOSAR SWC execu on via RTE
Ac ons include:
o Ac va ng a task
o Se ng an event
3. What are resources and how are they used to avoid race condi ons?
o When a task locks a resource, its priority is raised to the resource’s ceiling.
APIs:
GetResource(ResourceID)
ReleaseResource(ResourceID)
Configura on involves:
AUTOSAR supports mul -core, mul -app systems with varying trust levels:
API permissions Can call any OS services Limited to a subset of safe OS services
MCAL, OS core, and cri cal BSW are usually in trusted applica ons.
Key Types:
Implementa on:
o Protec on hooks
Summary:
E2E protec on (End-to-End protec on) ensures data integrity in safety-cri cal systems.
1. In DaVinci Configurator:
o Define:
Data ID
Run me behavior:
Used with ASIL-rated systems, especially in safety communica on (e.g., brake commands).
ARXML (AUTOSAR XML) files are central to the AUTOSAR toolchain and interoperability.
They define:
OEM ↔ Tier-1
ARXML is the standardized format that allows automa on, valida on, and integra on of so ware
across tools.
4. How does the configura on workflow proceed from SWC design to code genera on?
o System ARXML: ECU topology, signal mappings, DIDs, CAN network config, etc.
BSW modules
RTE
Integra on stubs