Electronic Control Unit ECU
Electronic Control Unit ECU
Gathering data from dozens of different sensors, the ECU performs millions of
calculations each second, including looking up values in tables, calculating the
results of long equations to decide on the best spark timing or determining how
long the fuel injector is open.
Number Crunching
A modern ECU might contain a 32-bit, 40-MHz processor, which
may not sound fast compared to the processors we probably have
in our PCs, but the processor in our car runs a much more efficient
code. The code in an average ECU takes up less than 1
megabyte(MB) of memory. By comparison, we probably have at
least 2 gigabytes (GB) of programs on our computers -- 2,000 times
the amount in an ECU.
AUTOSAR Architecture
The software is structured according to AUTOSAR, with application layer, RTE
and base software. The architecture is divided into four main parts:
Application Layer: Containing the application functions, primarily model
based
Run Time Environment (RTE): Abstraction of the ECU hardware, provid-
ing a common runtime environment
Base Software: Basic services for communication, I/O, memory and
system
functionality
Flash Loader: Standalone application allowing a flash update of the
system
Need of AUTOSAR
Without a proper software standard every company built its own software
solution or utilised 3rd party software for the same. Integration of 3rd party
software created implementation issues (e.g. wrapper software, interface
components), issues with testing methodology etc. with several tool chains
further required, to associate the hardware with the software.
It piled up the issues for Tier-1 manufacturers who now had to integrate
different software for each OEM.
These integration problems proved difficult to identify and costly to
debug in the
long run.
AUTOSAR provides different functional blocks for the integration of application
layer with the micro-controller.
Implementation with AUTOSAR
Applications
Depending upon the nature of the circuit the
Engine mappings can change completely. On
slower and twister tracks, the engine control
system will help the driver have more control on
the throttle input by making the first half of the
pedal movement very sensitive.