Unit 4 SystemDesk 4
Unit 4 SystemDesk 4
Unit 4 SystemDesk 4
Experiment 4
AUTOSAR
08.12.2015
Content
1.
2.
Basics ............................................................................................................................................... 1
1.1.
1.2.
1.3.
1.4.
Methodology ........................................................................................................................... 6
3.
Tasks ................................................................................................................................................ 9
3.1. Task 1 Preparation ..................................................................................................................... 9
3.2. Task 2 System Architecture ....................................................................................................... 9
3.3. Task 3 Implementation ............................................................................................................ 10
3.4. Task 4 Simulation ..................................................................................................................... 10
1. Basics
Before the year 2003 control units were mostly ordered at ancillary companies from the automobile
manufacturers. Often not only the software was ordered but the development of software and
hardware as a whole. Often a kind of basic software is provided by the automotive manufacturer to
the supplier on which the ordered functionality should set up. This situation caused that the
suppliers had to set up on different basic software for each OEM. Out of the view of the OEM it
needs a great effort to develop the basic software and they were forced to order the whole control
unit at an ancillary company. A split-up and a possible cost reduction were impossible. Furthermore it
was impossible to improve a stage of development at low costs, but it was required to order a
redevelopment.
AUTOSAR stands for Automotive Open System Architecture. It is a consolidation of automotive
manufacturer companies, their suppliers and tool manufacturers, which was founded in the year
2003. The partnership has the goal, to avoid regular redevelopment of equal or similar software
components with the help of standardization in the software development for control units, which
ASE Practical: Experiment 4
1
tackle the increasing complexity. To realize this aim, an open standard for the system architecture in
the automotive industry was defined. The system architecture includes a uniform and manufacturer
independent system platform, which shall provide a reduced development effort and for each
manufacturer a quality intensification.
Precondition therefore is the main focus on the following goals:
Scalability of functions,
Transferability,
An AUTOSAR control unit is divided into several layers (see figure 1):
The application layer, the runtime environment and the basic software. The basic software consists
again of three horizontal layers the service layer, the ECU abstraction layer and the microcontroller
abstraction layer. The following chapters shall deal with the layers in greater detail.
A software component communicates with its environment via ports, which are defined as
interaction-points from software components. Ports, which have compatible interfaces, can
communicate with each other.
By this strict division between implementation and communication it is possible to build the RTE
independent from its actual functionality. At the generation of the RTE the connection between the
interfaces of the basic software and the interfaces of the software components is build.
Software components are classified in AUTOSAR. It is differentiated between atomic software
components and composition. A composition is simply a logic aggregation of different components,
which can be distributes over several control units. The atomic software components are again
divided into application software component and sensor respectively actuator software component.
The communication between software components can be reduced to two different models:
sender-receiver
client-server
Operating System The operating system is an important basic element of the architecture
and serves as a central control unit for the software components and the basic software.
Services The term services accommodates diagnosis-, power up-, and power downbehavior as well as memory management.
Communication The term communication means network management and the
description of the communication via bus systems (CAN, FlexRay and LIN).
ECU Abstraction stands for providing a software interface for hardware specific values
from a control unit to uncouple higher situated software layers from hardware dependences.
Microcontroller Abstraction under this term modules are understood which are partial
hardware independent and which prepare the hardware independency for higher situated
modules.
Complex Device Driver A Complex Device Driver is a special function, which has
requirements to the system, which cannot be realized by AUTOSAR modules.
This cursory view onto the basic software can be refined. In Figure 3 the module view of basic
software is shown. In the figure all possible modules are displayed. According to the requirements
from the application layer only required modules are used and flashed to the control unit. Every basic
module can be assigned to horizontal layers.
The basic software modules have to be configured accordant to the requirements of the application
layer.
1.4.Methodology
AUTOSAR provides a general technical approach to be able to develop a system. This approach is
called the AUTOSAR methodology. AUTOSAR does not want to predefine a complete process
description, because of roles and responsibilities are not defined. Rather, the methodology is
described as a work-product flow, which defines the dependencies of activities on work results.
Figure 4: Methodology
The first step is to specify the design or the architecture of the system being developed. That means
to select the target hardware and the software components. Also system restrictions have to be
defined. In the workflow this step is visualized as System Configuration. The following activity is
called Configure System. That means to map the components by regarding timings and resources
onto control devices. The result is a System Configuration Description, which contains the
complete system information as bus-mapping, topology and mapping of software components on
control units. The following steps are processed for each control unit for its own, thus no longer for
the complete system. The activity Extract ECU-Specific Information extracts the information from
the system configuration description, which is required by a specific control unit. This specific
information is stored in an ECU Extract of System Configuration. The following activity Configure
ECU feeds all the necessary information, task scheduling, necessary basic software modules,
configuration of the basic software and allocation from runnables to tasks, to the control unit. This
information is stored in an ECU Configuration Description. In the last step Generate Executable a
flashable file, which contains the basic software, the RTE code and the software components of the
application layer, is generated on the basis of the former generated ECU Configuration Description.
The basic process of an AUTOSAR-compliant software development requires that first one software
component is developed. After specifying on which control unit this software component shall be
processed, the basic software and the necessary modules are integrated and configured
corresponding to the requirements of the software component. After repeating this step for all
software components of the control unit, the RTE is generated on the basis of the interfaces of the
software components and the interfaces of the basic software modules which communicate with the
RTE.
2. Tool chain
At the professorship Computer Engineering a tool chain exists for the development of software for
AUTOSAR-control units. This tool chain consists of 3 tools (see figure 5):
dSpace SystemDesk
Basic software
EB tresos Studio
2.1. SystemDesk
The program SystemDesk from the company dSpace is a software-architecture tool to support the
development of distributed automotive electric-/ electronic systems. SystemDesk allows a model
based development of control unit-software and displays their components and communication
graphically. The modeling system is built up corresponding to the AUTOSAR standard. Beside the
integration of control unit code RTE code can be generated by SystemDesk also (in the experiments
we do not use this RTE generator). To detect error sources in an early development stadium
individual software components or a control unit interlocking as well can be simulated and tested.
Apart from a graphic user interface SystemDesk can be controlled by an API.
We use SystemDesk to generate AUTOSAR-compliant interfaces for software components. After
defining the interfaces of a software component, they can be exported as XML-files. These XML-files
have to be imported into tresos Studio.
Figure 6 shows a screenshot from SystemDesk. Three system components (TurnSwitchSensor,
WarnLightSensor und ForntLeftActuator) and composition (Indicator) can be seen. The applications
communicate via ports, symbolized by the triangles at the components. The triangles stand for
communication as sender / receiver.
In figure 7 the tresos studio is shown. In the left area there is the project list. In each project is one
ECU in which all the imported basic software modules are shown. With double-click on a module it
can be configured (right area).
3. Tasks
In this experiment, the basics of AUTOSAR are to be understood. This gives an overview of the inner
AUTOSAR-context. It includes the definition of system components as well as the coordination of
application and basic software with the operating system.
Aim of the experiment is to build an easy example, which is similar to the former units/experiments.
But in contrast to the former ones this one should be AUTOSAR-compliant. Thereby the significant
differences between AUTOSAR-compliant and not-standard-compliant implementations should be
made aware.
A simple light control has to be implemented in this unit. It consists of two software components
which exchange data. Depending on a light value and a light switch a specific output should be
generated.
List of References
(1) JRG SCHUFFELE, THOMAS ZURAWKA: Automotive Software Engineering, 2010
(2) NORBERT ENGLISCH: Methode zur Absicherung der Basissoftware von AUTOSAR
Steuergerten, 2009
(3) OLAF KINDEL, MARIO FRIEDRICH: Softwareentwicklung mit AUTOSAR: Grundlagen,
Engineering, Management in der Praxis, 2009