UNIT- II
Basics of Vehicle Software Architecture
CONTENTS
Introduction to ECUs
Types of ECUs
Central vs. Distributed Control
Centralized Architecture:
Fewer, powerful ECUs
Easier data handling, but higher failure impact
Distributed Architecture:
Many specialized ECUs
Better modularity and fault isolation
Function: Controls core engine operations (fuel, ignition, idle, emissions) for a 4-cylinder gasoline engine.
Key Hardware:
Microcontroller: 32-bit automotive-grade (e.g., Infineon/NXP), 300-500 MHz, with 4-8 MB Flash.
Inputs: Analog (e.g., temp, pressure, O2), Digital (e.g., crank/cam position), PWM.(Pulse Width Modulation)
Outputs: Drivers for injectors, ignition coils, PWM for throttle/EGR, relay drivers.
Communication: CAN(Controller Area Network), LIN(Local Interconnect Network), Ethernet.
Power: 9-16V DC, low quiescent current.
Housing: IP(Ingress Protection)67-rated, robust for automotive environment.
Key Software:
OS: AUTOSAR-compliant RTOS(Real-Time Operating System).
Features: Engine control algorithms, OBD-II diagnostics, communication stack.
Safety/Security: ASIL(Automotive Safety Integrity Level)-D functional safety, secure boot, HSM(Hardware Security Module).
Environmental:
Temp Range: -40°C to +125°C.
Robustness: High resistance to vibration, shock, and EMC(Electromagnetic Compatibility)/EMI(Electromagnetic Interference).
Lifetime: Designed for 15 years / 300,000 km.
Many Dedicated ECUs: Vehicles historically used numerous Electronic Control Units (ECUs), with each responsible for a specific function or small group of functions.
Examples: Braking ECU, Drivetrain ECU, Infotainment ECU, Climate ECU, Lights ECU, etc.
Decentralized Control: Each ECU operates largely independently.
Challenges:
Distributed Control
Central Control
Central & Zonal ECUs:
Integrated & Software-Defined:
Key Principles:
Feature | Centralized (Tesla Model 3) | Distributed (Toyota Camry) |
No. of ECUs | ~3 main domain controllers | 50+ individual ECUs |
Complexity | Lower in wiring, higher in software | Higher in wiring complexity |
Fault Isolation | Lower | Higher |
Scalability | High (software updates) | Moderate |
Central vs. Distributed Control
Operating Systems (OS) in Vehicles
The Role of the OS: Operating Systems are critical for managing this complexity, enabling new functionalities, and ensuring safety and reliability.
Real-Time Performance: Critical for safety-related functions (e.g., braking, airbags) where precise timing is paramount. Low latency and deterministic behavior are a must.
Safety & Reliability (Functional Safety): Must adhere to standards like ISO 26262 (ASIL levels) to prevent hazards caused by electrical/electronic system malfunctions.
Security (Cybersecurity): Protection against hacking, malware, and unauthorized access to safeguard vehicle functions, data, and privacy.
Connectivity: Support for various communication protocols (CAN, LIN, Ethernet, Wi-Fi, 5G) for internal and external communication.
Resource Management: Efficient handling of limited hardware resources (CPU, memory) in embedded environments.
Over-the-Air (OTA) Updates: Ability to update software remotely, crucial for bug fixes, new features, and security patches.
Core Requirements of Automotive OS
Types of Automotive Operating Systems
Real-Time Operating Systems (RTOS):
Purpose: For safety-critical and time-sensitive functions.
Characteristics: Deterministic, low latency, small footprint.
Examples:
AUTOSAR OS: Standardized RTOS often built on OSEK/VDX, widely used in traditional ECUs (e.g., engine, brakes, steering).
QNX Neutrino: Commercial RTOS known for reliability, used in infotainment, ADAS, and digital cockpits.
VxWorks: Another commercial RTOS with strong real-time capabilities.
Diverse OS Landscape in Modern Vehicles
Types of Automotive Operating Systems
Linux-Based OS:
Purpose: For non-safety-critical, feature-rich domains like infotainment, telematics, and digital clusters.
Characteristics: Open-source, flexible, rich ecosystem, powerful graphics capabilities.
Examples:
AGL (Automotive Grade Linux): Collaborative open-source project.
Google Android Automotive OS: Designed for in-car infotainment.
Diverse OS Landscape in Modern Vehicles
Hypervisors
Purpose: Allows multiple OS (e.g., RTOS for safety, Linux for infotainment) to run simultaneously and independently on a single powerful processor.
Benefits: Resource isolation, consolidation, reduced hardware, increased flexibility.
Examples: QNX Hypervisor, Green Hills INTEGRITY.
What is AUTOSAR?
Definition: AUTOSAR (AUTomotive Open System ARchitecture) is a worldwide development partnership of automotive OEMs, suppliers, and tool developers.
Goal: To standardize the software architecture of Electronic Control Units (ECUs) within the automotive industry.
Why it's needed:
Overview of Automotive Software Platforms
Key Concepts & Layers
Benefits of AUTOSAR
AUTOSAR Evolution & Future
Introduction to Sensors & Actuators in SDVs
Perception:
Vehicle State:
Key Sensors for SDVs
Key Actuators in SDVs
Synergy & Future Outlook
Challenges in SDV