23.02.2013 Views

Requirements on Mode Management - autosar

Requirements on Mode Management - autosar

Requirements on Mode Management - autosar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Document Title <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong><br />

<strong>Mode</strong> <strong>Management</strong><br />

Document Owner AUTOSAR GbR<br />

Document Resp<strong>on</strong>sibility AUTOSAR GbR<br />

Document Versi<strong>on</strong> 1.0.1<br />

Document Status Final<br />

Document Change History<br />

Date Versi<strong>on</strong> Changed by Change Descripti<strong>on</strong><br />

26.06.2006 1.0.1 AUTOSAR<br />

Administrati<strong>on</strong><br />

Layout Adaptati<strong>on</strong>s<br />

08.05.2006 1.0.0 AUTOSAR<br />

Administrati<strong>on</strong><br />

Initial Release<br />

1 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


Disclaimer<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

This specificati<strong>on</strong> as released by the AUTOSAR Development Partnership is<br />

intended for the purpose of informati<strong>on</strong> <strong>on</strong>ly. The use of material c<strong>on</strong>tained in this<br />

specificati<strong>on</strong> requires membership within the AUTOSAR Development Partnership or<br />

an agreement with the AUTOSAR Development Partnership . The AUTOSAR<br />

Development Partnership will not be liable for any use of this Specificati<strong>on</strong>.<br />

Following the completi<strong>on</strong> of the development of the AUTOSAR Specificati<strong>on</strong>s<br />

commercial exploitati<strong>on</strong> licenses will be made available to end users by way of<br />

written License Agreement <strong>on</strong>ly.<br />

No part of this publicati<strong>on</strong> may be reproduced or utilized in any form or by any<br />

means, electr<strong>on</strong>ic or mechanical, including photocopying and microfilm, without<br />

permissi<strong>on</strong> in writing from the publisher.<br />

The word AUTOSAR and the AUTOSAR logo are registered trademarks.<br />

Copyright © 2004-2006 AUTOSAR Development Partnership. All rights reserved.<br />

Advice to users of AUTOSAR Specificati<strong>on</strong> Documents:<br />

AUTOSAR Specificati<strong>on</strong> Documents may c<strong>on</strong>tain exemplary items (exemplary<br />

reference models, "use cases", and/or references to exemplary technical soluti<strong>on</strong>s,<br />

devices, processes or software).<br />

Any such exemplary items are c<strong>on</strong>tained in the Specificati<strong>on</strong> Documents for<br />

illustrati<strong>on</strong> purposes <strong>on</strong>ly, and they themselves are not part of the AUTOSAR<br />

Standard. Neither their presence in such Specificati<strong>on</strong> Documents, nor any later<br />

AUTOSAR compliance certificati<strong>on</strong> of products actually implementing such<br />

exemplary items, imply that intellectual property rights covering such exemplary<br />

items are licensed under the same rules as applicable to the AUTOSAR Standard.<br />

2 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


Table of C<strong>on</strong>tents<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

1 Scope of document ............................................................................................. 4<br />

2 How to read this document.................................................................................. 5<br />

2.1 C<strong>on</strong>venti<strong>on</strong>s used......................................................................................... 5<br />

2.2 <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> structure ................................................................................ 6<br />

3 Acr<strong>on</strong>yms and abbrevati<strong>on</strong>s ................................................................................ 7<br />

4 Requirement Specificati<strong>on</strong>................................................................................... 9<br />

4.1 ECU State Manager ..................................................................................... 9<br />

4.1.1 Functi<strong>on</strong>al Overview.............................................................................. 9<br />

4.1.2 Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> .................................................................... 10<br />

4.1.2.1 C<strong>on</strong>figurati<strong>on</strong>................................................................................ 10<br />

4.1.2.2 Normal Operati<strong>on</strong>......................................................................... 12<br />

4.2 Watchdog Manager .................................................................................... 22<br />

4.2.1 Functi<strong>on</strong>al Overview............................................................................ 22<br />

4.2.2 Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> .................................................................... 22<br />

4.2.2.1 C<strong>on</strong>figurati<strong>on</strong>................................................................................ 22<br />

4.2.2.2 Initializati<strong>on</strong> .................................................................................. 23<br />

4.2.2.3 Normal Operati<strong>on</strong>......................................................................... 24<br />

4.2.3 Fault Operati<strong>on</strong> ................................................................................... 29<br />

4.2.4 Output for other WPs .......................................................................... 29<br />

4.3 Communicati<strong>on</strong> Manager ........................................................................... 30<br />

4.3.1 Functi<strong>on</strong>al Overview............................................................................ 30<br />

4.3.2 Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> .................................................................... 30<br />

4.3.2.1 C<strong>on</strong>figurati<strong>on</strong>................................................................................ 30<br />

4.3.2.2 Normal Operati<strong>on</strong>......................................................................... 32<br />

4.3.3 N<strong>on</strong>-Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> (Qualities) ........................................... 38<br />

5 References ........................................................................................................ 40<br />

5.1 Deliverables of AUTOSAR ......................................................................... 40<br />

5.2 Related standards and norms .................................................................... 40<br />

3 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


1 Scope of document<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

The goal of this document is to define the functi<strong>on</strong>al and n<strong>on</strong>-functi<strong>on</strong>al requirements<br />

for all modules of the AUTOSAR mode management work package (4.2.2.1.9):<br />

1. ECU State Manager (EcuM) which manages startup and shutdown of the<br />

ECU. This includes triggering the shutdown when all requests for run are<br />

released;<br />

2. Watchdog Manager (WdgM) which collects the alive indicati<strong>on</strong>s from the<br />

independent applicati<strong>on</strong>s and relays them to the hardware watchdog in a<br />

suitable way;<br />

3. Communicati<strong>on</strong> Manager (ComM) which coordinates the communicati<strong>on</strong> of<br />

the independent applicati<strong>on</strong>s.<br />

All modules are needed if more than <strong>on</strong>e independent software comp<strong>on</strong>ent resides<br />

<strong>on</strong> the ECU.<br />

The locati<strong>on</strong> of these modules within the whole AUTOSAR ECU SW Architecture is<br />

defined in [DOC_LAYERED_ARCH].<br />

4 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


2 How to read this document<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Each requirement has its unique identifier starting with BSW prefix. For any review<br />

annotati<strong>on</strong>s, remarks and/or questi<strong>on</strong>s, please refer to this unique ID rather than<br />

chapter or page numbers!<br />

2.1 C<strong>on</strong>venti<strong>on</strong>s used<br />

In requirements, the following specific semantics shall be used (based <strong>on</strong> the Internet<br />

Engineering Task Force IETF).<br />

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",<br />

"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this<br />

document are to be interpreted as:<br />

• SHALL: This word means that the definiti<strong>on</strong> is an absolute requirement of the<br />

specificati<strong>on</strong>.<br />

• SHALL NOT: This phrase means that the definiti<strong>on</strong> is an absolute prohibiti<strong>on</strong><br />

of the specificati<strong>on</strong>.<br />

• MUST: This word means that the definiti<strong>on</strong> is an absolute requirement of the<br />

specificati<strong>on</strong> due to legal issues.<br />

• MUST NOT: This phrase means that the definiti<strong>on</strong> is an absolute prohibiti<strong>on</strong> of<br />

the specificati<strong>on</strong> due to legal c<strong>on</strong>straints.<br />

• SHOULD: This word, or the adjective "RECOMMENDED", mean that there<br />

may exist valid reas<strong>on</strong>s in particular circumstances to ignore a particular item,<br />

but the full implicati<strong>on</strong>s must be understood and carefully weighed before<br />

choosing a different course.<br />

• SHOULD NOT: This phrase, or the phrase "NOT RECOMMENDED" mean<br />

that there may exist valid reas<strong>on</strong>s in particular circumstances when the<br />

particular behavior is acceptable or even useful, but the full implicati<strong>on</strong>s<br />

should be understood and the case carefully weighed before implementing<br />

any behavior described with this label.<br />

• MAY: This word, or the adjective "OPTIONAL", means that an item is truly<br />

opti<strong>on</strong>al. One vendor may choose to include the item because a particular<br />

marketplace requires it or because the vendor feels that it enhances the<br />

product while another vendor may omit the same item. An implementati<strong>on</strong>,<br />

which does not include a particular opti<strong>on</strong>, MUST be prepared to interoperate<br />

with another implementati<strong>on</strong>, which does include the opti<strong>on</strong>, though perhaps<br />

with reduced functi<strong>on</strong>ality. In the same vein an implementati<strong>on</strong>, which does<br />

include a particular opti<strong>on</strong>, MUST be prepared to interoperate with another<br />

implementati<strong>on</strong>, which does not include the opti<strong>on</strong> (except, of course, for the<br />

feature the opti<strong>on</strong> provides.)<br />

5 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


2.2 <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> structure<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Each module specific chapter c<strong>on</strong>tains a short functi<strong>on</strong>al descripti<strong>on</strong> of the Basic<br />

Software Module. <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> of the same kind within each chapter are grouped<br />

under the following headlines (where applicable):<br />

Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g>:<br />

- C<strong>on</strong>figurati<strong>on</strong> (which elements of the module need to be c<strong>on</strong>figurable)<br />

- Initializati<strong>on</strong><br />

- Normal Operati<strong>on</strong><br />

- Shutdown Operati<strong>on</strong><br />

- Fault Operati<strong>on</strong><br />

- ...<br />

N<strong>on</strong>-Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g>:<br />

- Timing <str<strong>on</strong>g>Requirements</str<strong>on</strong>g><br />

- Resource Usage<br />

- Usability<br />

- Output for other WPs (e.g. Descripti<strong>on</strong> Templates, Tooling,...)<br />

- ...<br />

6 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


3 Acr<strong>on</strong>yms and abbrevati<strong>on</strong>s<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Acr<strong>on</strong>ym: Descripti<strong>on</strong>:<br />

Alive indicati<strong>on</strong> Indicati<strong>on</strong> that a supervised SWC is alive – meaning active – provided<br />

from the SWC itself to the Watchdog Manager.<br />

Applicati<strong>on</strong> Software which is positi<strong>on</strong>ed “above” RTE, typically applicati<strong>on</strong><br />

software comp<strong>on</strong>ents (SWCs).<br />

Communicati<strong>on</strong> mode Related to a physical channel or to a user, it indicates if it is possible to<br />

send/receive, <strong>on</strong>ly receive, neither send nor receive.<br />

Communicati<strong>on</strong> request A communicati<strong>on</strong> request indicates a demand for communicati<strong>on</strong> from<br />

a given user (i.e. a runnable requiring an operati<strong>on</strong>al communicati<strong>on</strong><br />

stack). However, it can neither be assumed that the request will be<br />

fulfilled within a certain time nor that it will be fulfilled at all. The<br />

demander itself has to make sure that communicati<strong>on</strong> is indeed<br />

established, by using query functi<strong>on</strong>s or callbacks.<br />

ECU state General term to indicate the states managed by the ECU State<br />

Manager. They represent a structured model that extends the power<br />

modes of the ECU with states and transiti<strong>on</strong>s to support necessary<br />

activities of software to enter/leave these power modes.<br />

Inoperati<strong>on</strong> An artificial word to describe the ECU when it is not operati<strong>on</strong>al, i.e. not<br />

running. It comprises all meanings of off, sleeping, frozen, etc. Using<br />

this definiti<strong>on</strong> is beneficial since it has no predefined meaning.<br />

Low-power mode All power modes except “<strong>on</strong>” (full power).<br />

OFF state ECU state. It denotes the unpowered ECU. Depending <strong>on</strong> the<br />

hardware design, the ECU can or cannot react to passive wake-up in<br />

this state (wakeability is not required in this state).<br />

Power mode Hardware power mode of the ECU. Typically: <strong>on</strong> (full power), off, sleep,<br />

standby, etc… The last two items can take several forms depending <strong>on</strong><br />

hardware capabilities (reduced clock, peripheral standby, etc.).<br />

RUN state ECU state. The ECU is fully functi<strong>on</strong>al, all BSW modules are initialized<br />

and applicati<strong>on</strong> software comp<strong>on</strong>ents are able to run.<br />

Shutdown target The chosen low-power state (OFF, SLEEP) for the next shutdown. If<br />

the SLEEP state supports several sleep modes, the shutdown target<br />

shall indicate the chosen sleep mode.<br />

Sleep mode The term "mode" is related to the current availability of the ECU's<br />

capabilities. “Sleep mode” is the overall abstracted term for a variety of<br />

low-power modes that could exist at different CPU's, which have in<br />

comm<strong>on</strong> that they currently do not perform code-executi<strong>on</strong>, but are still<br />

powered.<br />

SLEEP state ECU state. It is an energy saving state: no code is executed but power<br />

is still supplied, and if c<strong>on</strong>figured correctly, the ECU is wakeable. The<br />

SLEEP state provides a c<strong>on</strong>figurable set of sleep modes which<br />

typically are a trade off between power c<strong>on</strong>sumpti<strong>on</strong> and time to restart<br />

the ECU.<br />

State/communicati<strong>on</strong> See User.<br />

requestor<br />

User C<strong>on</strong>cept for requestors of the ECU State Manager and of the<br />

Communicati<strong>on</strong> Manager. A user may be a runnable entity, a<br />

SWC/BSW or even a group of SWCs/BSWs, which acts as a single<br />

unit towards the ECU State Manager and the Communicati<strong>on</strong><br />

Manager.<br />

Wake-up event A physical event which causes a wake-up. A CAN message or a<br />

toggling IO line can be wake-up events. Similarly, the internal SW<br />

representati<strong>on</strong>, e.g. an interrupt, may also be called a wake-up event.<br />

Wake-up reas<strong>on</strong> The wake-up event being actually the cause of the current/last wakeup.<br />

Wake-up source The peripheral or ECU comp<strong>on</strong>ent which deals with wake-up events is<br />

called a wake-up source.<br />

7 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


Abbreviati<strong>on</strong>: Descripti<strong>on</strong>:<br />

BSW Basic Software<br />

ComM Communicati<strong>on</strong> Manager<br />

DCM Diagnostic Communicati<strong>on</strong> Manager<br />

DEM Diagnostic Event Manager<br />

EcuM ECU State Manager<br />

FiM Functi<strong>on</strong> Inhibiti<strong>on</strong> Manager<br />

RE Runnable Entity<br />

SWC Software Comp<strong>on</strong>ent<br />

WdgM Watchdog Manager<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

8 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


4 Requirement Specificati<strong>on</strong><br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

The <strong>Mode</strong> <strong>Management</strong> cluster is in charge of three Basic Software modules:<br />

→ the ECU State Manager, c<strong>on</strong>trolling the startup phase of AUTOSAR BSW<br />

modules including startup of the OS;<br />

→ the Communicati<strong>on</strong> Manager, in charge of the network resource management;<br />

→ the Watchdog Manager, resp<strong>on</strong>sible for triggering the watchdog based <strong>on</strong> the<br />

aliveness status of applicati<strong>on</strong> software.<br />

In the following, requirements will be assigned to each of these modules.<br />

4.1 ECU State Manager<br />

4.1.1 Functi<strong>on</strong>al Overview<br />

The ECU State Manager is a basic software module that manages the ECU states<br />

(OFF, RUN, SLEEP) and the transiti<strong>on</strong>s between these states (transient states:<br />

STARTUP, WAKEUP, SHUTDOWN). In detail, the ECU State Manager:<br />

− is resp<strong>on</strong>sible for the initializati<strong>on</strong> and de-initializati<strong>on</strong> of all basic software<br />

modules, including OS and RTE;<br />

− cooperates with the so-called Resource Managers (e.g. the Communicati<strong>on</strong><br />

Manager) to shut down the ECU when needed;<br />

− manages all wake-up events and c<strong>on</strong>figures the ECU for SLEEP when<br />

requested.<br />

The ECU State Manager shall support individual preparati<strong>on</strong>-activities and transiti<strong>on</strong>s<br />

to bring up the ECU or put it into a decreased power mode (low-power mode, e.g.<br />

sleep / standby). By a well defined usage of ECU State Manager features and<br />

capabilities, this module can then be used to perform a pre-defined strategy of<br />

power-c<strong>on</strong>sumpti<strong>on</strong>, thus allowing efficient energy management for the ECU.<br />

Features and benefits of the ECU State Manager include the following:<br />

• Initializati<strong>on</strong> and shutdown of Basic Software Modules.<br />

• Standardized definiti<strong>on</strong> of ECU main states.<br />

• Time triggered increased inoperati<strong>on</strong> 1 .<br />

Much more details about these functi<strong>on</strong>alities can be found in the ECU State<br />

Manager SWS specificati<strong>on</strong> [DOC_WP42219_ECUM_SWS].<br />

1<br />

This mechanism is intended to wake-up the ECU after a certain time-period automatically, if no other<br />

wake-up reas<strong>on</strong>s have occurred, in order to transfer the ECU into another sleep mode, which may be<br />

related to further decreased capabilities and power-c<strong>on</strong>sumpti<strong>on</strong>.<br />

9 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


4.1.2 Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g><br />

4.1.2.1 C<strong>on</strong>figurati<strong>on</strong><br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

4.1.2.1.1 [BSW09120] C<strong>on</strong>figurati<strong>on</strong> of initializati<strong>on</strong> process of Basic Software<br />

modules<br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 16.12.2004<br />

Short Descripti<strong>on</strong> C<strong>on</strong>figurati<strong>on</strong> of initializati<strong>on</strong> process of Basic Software modules<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Basic Software modules with their initializati<strong>on</strong> routines and their<br />

initializati<strong>on</strong> order shall be c<strong>on</strong>figurable attributes of the ECU State Manager.<br />

Rati<strong>on</strong>ale: The ECU State Manager shall have knowledge about the initializati<strong>on</strong>routines<br />

from Basic Software modules and their predecessors and successor<br />

relati<strong>on</strong>ships. However, it shall be possible to adapt the c<strong>on</strong>crete initializati<strong>on</strong><br />

process of the ECU State Manager to the project specific initializati<strong>on</strong><br />

demands of the Basic Software modules.<br />

Use Case: System A requires the initializati<strong>on</strong> of the watchdog driver as so<strong>on</strong> as<br />

possible to m<strong>on</strong>itor the system startup whereas in system B the watchdog<br />

driver shall be initialized at last, in order to avoid resets based <strong>on</strong> l<strong>on</strong>g lasting<br />

hardware initializati<strong>on</strong>s.<br />

Integrati<strong>on</strong> of supplier specific driver (complex driver), e.g. Display driver,<br />

into the startup sequence.<br />

Dependencies: Initializati<strong>on</strong> of Basic Software modules.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.1.2 [BSW09147] C<strong>on</strong>figurati<strong>on</strong> of de-initializati<strong>on</strong> process of Basic Software<br />

modules<br />

Initiator: PSA (P. Castelpietra)<br />

Date: 13.07.2005<br />

Short Descripti<strong>on</strong> C<strong>on</strong>figurati<strong>on</strong> of de-initializati<strong>on</strong> process of Basic Software modules<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Basic Software modules with their de-initializati<strong>on</strong> routines and their deinitializati<strong>on</strong><br />

order shall be c<strong>on</strong>figurable attributes of the ECU State Manager.<br />

Rati<strong>on</strong>ale: The ECU State Manager shall have knowledge about the de-initializati<strong>on</strong>routines<br />

from Basic Software modules and their predecessors and successor<br />

relati<strong>on</strong>ships. However, it shall be possible to adapt the c<strong>on</strong>crete deinitializati<strong>on</strong><br />

process of the ECU State Manager to the project specific deinitializati<strong>on</strong><br />

demands of the Basic Software modules.<br />

Use Case: --<br />

Dependencies: De-initializati<strong>on</strong> of Basic Software modules.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.1.3 [BSW09122] C<strong>on</strong>figurati<strong>on</strong> of users of the ECU State Manager<br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 16.12.2004<br />

10 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Short Descripti<strong>on</strong> C<strong>on</strong>figurati<strong>on</strong> of users of the ECU State Manager<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: Users, indicating the operati<strong>on</strong>al needs of individual software comp<strong>on</strong>ents,<br />

shall be established and assigned by static c<strong>on</strong>figurati<strong>on</strong> to the ECU State<br />

Manager. Requests from unknown sources are ignored.<br />

Rati<strong>on</strong>ale: All users are known and c<strong>on</strong>figured at compile-time.<br />

This requirement supports static administrati<strong>on</strong> of (known) state requestors<br />

<strong>on</strong> the ECU; it supports also testing and documentati<strong>on</strong>.<br />

Use Case: - -<br />

Dependencies: Requesting and releasing states.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.1.4 [BSW09100] Selecti<strong>on</strong> of wake-up sources shall be c<strong>on</strong>figurable<br />

Initiator: WP4.2.2.1.9<br />

Date: 13.12.2004<br />

Short Descripti<strong>on</strong>: Selecti<strong>on</strong> of wake-up sources shall be c<strong>on</strong>figurable<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: It shall be possible to c<strong>on</strong>figure off-line, i.e. at system c<strong>on</strong>figurati<strong>on</strong> time,<br />

which wake-up sources are relevant in which sleep mode, provided that they<br />

can be actually assigned to a sleep mode (i.e. they will be enabled when the<br />

ECU enters that particular sleep mode.<br />

Rati<strong>on</strong>ale: Wake-up sources cannot be standardized in detail. Their mapping to use<br />

cases cannot be standardized neither. Therefore this flexibility is needed.<br />

Use Case: Depending <strong>on</strong> the ECU, the allowed wake-up source may vary:<br />

− recepti<strong>on</strong> of a CAN frame,<br />

− direct input(s),<br />

− either CAN frames or direct inputs,<br />

− etc.<br />

Which wake-up source has to be activated in which sleep mode, is then a<br />

c<strong>on</strong>figurati<strong>on</strong> parameter.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.1.5 [BSW09146] C<strong>on</strong>figurati<strong>on</strong> of time triggered increased inoperati<strong>on</strong><br />

Initiator: PSA (P. Castelpietra)<br />

Date: 08.07.2005<br />

Short Descripti<strong>on</strong> C<strong>on</strong>figurati<strong>on</strong> of time triggered increased inoperati<strong>on</strong><br />

Type: New<br />

Importance: Medium<br />

Descripti<strong>on</strong>: It shall be possible to statically enable or disable the time triggered increased<br />

inoperati<strong>on</strong>. This feature shall stay of course disabled if the time triggered<br />

increased inoperati<strong>on</strong> is not supported by the hardware (the wake-up/sleep<br />

capability and several sleep modes should be available <strong>on</strong> the ECU; see<br />

BSW09118)..<br />

Rati<strong>on</strong>ale: Making this feature c<strong>on</strong>figurable will save resources <strong>on</strong> ECUs which do not<br />

need it.<br />

Use Case: --<br />

11 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Dependencies: - Wake-up/sleep capability shall be available <strong>on</strong> the ECU.<br />

- Time-triggered wake-up events shall be available <strong>on</strong> the ECU.<br />

- [BSW09119] Support of several sleep modes.<br />

- [BSW09118] Time triggered increased inoperati<strong>on</strong>.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2 Normal Operati<strong>on</strong><br />

4.1.2.2.1 [BSW09001] Standardizati<strong>on</strong> of state relati<strong>on</strong>s<br />

Initiator: DC<br />

Date: 13.02.2004<br />

Short Descripti<strong>on</strong>: Standardizati<strong>on</strong> of state relati<strong>on</strong>s<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The number and names of main states and the transiti<strong>on</strong>s between main<br />

states shall be standardized.<br />

Rati<strong>on</strong>ale: The state machine is standardized.<br />

Use Case: Relocatability of software comp<strong>on</strong>ents.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.2 [BSW09116] Requesting and releasing the RUN state<br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 16.12.2004<br />

Short Descripti<strong>on</strong> Requesting and releasing the RUN state<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide services to request and release the<br />

RUN state.<br />

Rati<strong>on</strong>ale: The decisi<strong>on</strong> to hold an ECU in the RUN state is always related to the<br />

applicati<strong>on</strong> c<strong>on</strong>text, which cannot be standardized. Therefore the ECU State<br />

Manager needs to get "user-requests" from applicati<strong>on</strong> perspective to be<br />

aware of the current situati<strong>on</strong>. It is recommended that independent<br />

applicati<strong>on</strong>s (SWCs), having independent RUN state needs, shall c<strong>on</strong>trol<br />

their "user request" by usage of the provided interface of the ECU State<br />

Manager.<br />

Use Case: A wake-up event (e.g. door c<strong>on</strong>tact) related with a preheating functi<strong>on</strong>ality of<br />

the catalytic exhaust system occurs <strong>on</strong> the ECU which covers and c<strong>on</strong>trols<br />

this feature by software. With this wake-up event, a request to enter the<br />

RUN state <strong>on</strong> this ECU shall be established at the ECU State Manager. As<br />

so<strong>on</strong> as the preheating is finished, the preheating functi<strong>on</strong>ality shall release<br />

its demand to stay in the RUN state. If no other applicati<strong>on</strong> software<br />

comp<strong>on</strong>ents <strong>on</strong> this ECU are requesting to stay in the RUN state, the ECU<br />

State Manager will further proceed with the shutdown process.<br />

Dependencies: [BSW09115] Evaluate c<strong>on</strong>diti<strong>on</strong> to stay in the RUN state.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

12 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


4.1.2.2.3 [BSW09114] Starting/invoking the shutdown process<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 16.12.2004<br />

Short Descripti<strong>on</strong> Starting/invoking the shutdown process<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide a mechanism to start / invoke the<br />

shutdown process of the ECU, based <strong>on</strong> the requests from SWC and BSW.<br />

In the RUN state, the decisi<strong>on</strong> to begin the transiti<strong>on</strong> to a given shutdown<br />

target (shutdown process) is cooperative, meaning that the ECU State<br />

Manager initiates shutdown <strong>on</strong>ly after the last request for RUN state was<br />

released. This rule may <strong>on</strong>ly be breached under error c<strong>on</strong>diti<strong>on</strong>s.<br />

Note that a request to RUN has to be issued by the ECU State Manager<br />

itself when entering the RUN state (and kept for a c<strong>on</strong>figurable amount of<br />

time), in order to avoid immediate shutdown and give users the chance/time<br />

to request RUN themselves.<br />

Rati<strong>on</strong>ale: The ECU State Manager is the BSW module c<strong>on</strong>trolling the states of the<br />

ECU. Therefore the ECU State Manager is resp<strong>on</strong>sible to initiate the state<br />

transiti<strong>on</strong>s.<br />

Defined resp<strong>on</strong>sibility to initiate the shutdown process.<br />

Use Case: --<br />

Dependencies: The OS shall provide an interface/service to invoke its own shutdown.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.4 [BSW09104] ECU State Manager shall take over c<strong>on</strong>trol after OS shutdown<br />

Initiator: WP4.2.2.1.9<br />

Date: 13.12.2004<br />

Short Descripti<strong>on</strong>: ECU State Manager shall take over c<strong>on</strong>trol after OS shutdown<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: After OS shutdown, additi<strong>on</strong>al shutdown activities shall be taken like<br />

preparing hardware for the next wake-up. Finally the ECU has to be<br />

switched off or put into a sleep mode. This shall be the task of the ECU State<br />

Manager.<br />

Rati<strong>on</strong>ale: - Provide services after OS-shutdown.<br />

- Startup/shutdown symmetry.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.5 [BSW09113] Initializati<strong>on</strong> of Basic Software modules<br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 15.12.2004<br />

Short Descripti<strong>on</strong> Initializati<strong>on</strong> of Basic Software modules<br />

Type: New<br />

Importance: High<br />

13 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Descripti<strong>on</strong>: The ECU State Manager shall initialize the Basic Software modules. When<br />

the init process has finished, the RUN state shall be entered. Nevertheless,<br />

the ECU State Manager is not resp<strong>on</strong>sible for the initializati<strong>on</strong> of the<br />

applicati<strong>on</strong> software comp<strong>on</strong>ents; this resp<strong>on</strong>sibility lies with the RTE.<br />

Note that a request to RUN has to be issued by the ECU State Manager<br />

itself when entering the RUN state, in order to avoid immediate shutdown<br />

and give users the chance/time to request RUN themselves.<br />

Rati<strong>on</strong>ale: Organize the initializati<strong>on</strong> process of the BSW modules and give SWCs the<br />

possibility to request the RUN state.<br />

Use Case: Defined initializati<strong>on</strong> process of the basic software architecture.<br />

Dependencies: - Predecessor and successor relati<strong>on</strong>ships of the Basic Software modules<br />

during the initializati<strong>on</strong> process.<br />

- [BSW09120] C<strong>on</strong>figurati<strong>on</strong> of initializati<strong>on</strong> process of Basic Software<br />

modules.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.6 [BSW09127] De-initializati<strong>on</strong> of Basic Software modules<br />

Initiator: WP4.2.2.1.9<br />

Date: 03.03.2005<br />

Short Descripti<strong>on</strong>: De-Initializati<strong>on</strong> of Basic Software modules<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall de-initialize Basic Software modules where<br />

appropriate during the shutdown process.<br />

Rati<strong>on</strong>ale: Coordinated ECU shutdown.<br />

Use Case: --<br />

Dependencies: [BSW09147] C<strong>on</strong>figurati<strong>on</strong> of de-initializati<strong>on</strong> process of Basic Software<br />

modules.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.7 [BSW09128] Support of several shutdown targets<br />

Initiator: WP4.2.2.1.9<br />

Date: 03.03.2005<br />

Short Descripti<strong>on</strong>: Support of several shutdown targets<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall offer the following targets for shutting down<br />

the ECU:<br />

• Power Off<br />

• Reset of ECU<br />

• Sleep <strong>Mode</strong>s<br />

The default target shall be defined by c<strong>on</strong>figurati<strong>on</strong>. It can be overridden by<br />

an API-service.<br />

Several Sleep <strong>Mode</strong>s may be supported (BSW09119).<br />

Rati<strong>on</strong>ale: Allow trade off between energy c<strong>on</strong>sumpti<strong>on</strong> and time to wake-up/startup the<br />

ECU.<br />

Use Case: --<br />

Dependencies: - [BSW09119] Support of several sleep modes.<br />

- [BSW09118] Time triggered increased inoperati<strong>on</strong>.<br />

14 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.8 [BSW09119] Support of several sleep modes<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 16.12.2004<br />

Short Descripti<strong>on</strong>: Support of several sleep modes<br />

Type: New<br />

Importance: Medium<br />

Descripti<strong>on</strong>: The ECU State Manager shall be able to handle a pre-defined (offline<br />

c<strong>on</strong>figurati<strong>on</strong>) set of sleep modes.<br />

Rati<strong>on</strong>ale: Support portability of system-strategies according to increased inoperati<strong>on</strong><br />

mechanism.<br />

Use Case: --<br />

Dependencies: - The hardware has to support several sleep modes.<br />

- Interface of MCU-driver.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.9 [BSW09102] API for selecting the sleep mode<br />

Initiator: WP4.2.2.1.9<br />

Date: 13.12.2004<br />

Short Descripti<strong>on</strong>: API for selecting the sleep mode<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide an API to select the sleep mode<br />

which will be chosen for next ECU shutdown.<br />

Rati<strong>on</strong>ale: Applicati<strong>on</strong> needs a way to select the next shutdown target.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.10 [BSW09072] Force ECU shutdown<br />

Initiator: Porsche<br />

Date: 27.09.2004<br />

Short Descripti<strong>on</strong>: Force ECU shutdown<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide a mean (explicit API or procedure) to<br />

force starting the shutdown process (BSW09114). This feature shall not be<br />

available to the applicati<strong>on</strong>, but <strong>on</strong>ly accessible by BSW.<br />

Rati<strong>on</strong>ale: C<strong>on</strong>trolled de-initializati<strong>on</strong> of basic software.<br />

Use Case: Force ECU to shutdown because it is assumed that this ECU does not work<br />

properly.<br />

Putting it into defined testing c<strong>on</strong>diti<strong>on</strong>.<br />

Dependencies: [BSW09114] Starting/invoking the shutdown process.<br />

C<strong>on</strong>flicts: --<br />

15 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


Supporting Material: --<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

4.1.2.2.11 [BSW09009] Activati<strong>on</strong> of software when entering/leaving ECU states<br />

Initiator: DC<br />

Date: 13.02.2004<br />

Short Descripti<strong>on</strong>: Activati<strong>on</strong> of software when entering/leaving ECU states<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide the ability to execute external,<br />

statically-c<strong>on</strong>figured code at each transiti<strong>on</strong> between ECU states.<br />

This will be likely implemented by a callback when entering/leaving ECU<br />

states.<br />

Rati<strong>on</strong>ale: Basic Functi<strong>on</strong>ality.<br />

Use Case: Launching initializati<strong>on</strong>/de-initializati<strong>on</strong> routines when entering/leaving the<br />

RUN state.<br />

Dependencies: [BSW101] Initializati<strong>on</strong> interface (WP1.1.2).<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.12 [BSW09017] Provide ECU state informati<strong>on</strong><br />

Initiator: Bosch<br />

Date: 12.02.2004<br />

Short Descripti<strong>on</strong>: Provide ECU state informati<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide an API to query the current ECU<br />

state.<br />

Rati<strong>on</strong>ale: Basic functi<strong>on</strong>ality. SW may behave differently depending <strong>on</strong> current ECU<br />

state.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.13 [BSW09138] Selecti<strong>on</strong> of applicati<strong>on</strong> mode of OS<br />

Initiator: IAV (Gerlach), BMW (Schlaugath)<br />

Date: 18.05.2005<br />

Short Descripti<strong>on</strong>: Selecti<strong>on</strong> of applicati<strong>on</strong> mode of OS<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall c<strong>on</strong>trol the selecti<strong>on</strong> of the applicati<strong>on</strong> mode<br />

of the OS at startup (StartOS-service parameter)<br />

Rati<strong>on</strong>ale: ECU State Manager starts the OS. The “applicati<strong>on</strong> mode” parameter has to<br />

be provided when calling the StartOS primitive (see OSEK OS specificati<strong>on</strong><br />

[STD_OSEK_OS]).<br />

Applicati<strong>on</strong> modes are designed to allow the operating system to come up<br />

under different modes of operati<strong>on</strong>s; e.g. end of line programming and<br />

16 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


normal operati<strong>on</strong>.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.14 [BSW09136] Centralized wake-up management<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: Porsche<br />

Date: 06.04.2005<br />

Short Descripti<strong>on</strong>: Centralized wake-up management<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall be the receiver of all wake-up events which<br />

occur <strong>on</strong> its ECU; it shall react appropriately (e.g. ECU wake-up) and<br />

propagate the informati<strong>on</strong> to other c<strong>on</strong>cerned comp<strong>on</strong>ents.<br />

Rati<strong>on</strong>ale: Unambiguous and defined behaviour at wake-up events.<br />

Use Case: --<br />

Dependencies: - [BSW00375] Notificati<strong>on</strong> of wake-up reas<strong>on</strong> (WP1.1.2).<br />

- [BSW09113] Initializati<strong>on</strong> of Basic Software modules<br />

- [BSW09097] Validati<strong>on</strong> of physical channel wake-up<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.15 [BSW09098] Registrati<strong>on</strong> of wake-up reas<strong>on</strong>s<br />

Initiator: WP4.2.2.1.9<br />

Date: 13.12.2004<br />

Short Descripti<strong>on</strong>: Registrati<strong>on</strong> of wake-up reas<strong>on</strong>s<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall be able to store the current wake-up reas<strong>on</strong>.<br />

Rati<strong>on</strong>ale: Storing the wake-up reas<strong>on</strong> in <strong>on</strong>e module and give every module (BSWs<br />

and SWCs) the possibility to query the wake-up reas<strong>on</strong>.<br />

Use Case: Retrieve the last wake-up reas<strong>on</strong> by means of an external diagnostic tool.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.16 [BSW09097] Validati<strong>on</strong> of physical channel wake-up<br />

Initiator: WP4.2.2.1.9<br />

Date: 13.12.2004<br />

Short Descripti<strong>on</strong>: Validati<strong>on</strong> of physical channel wake-up<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall start a timeout (T_wake_up_timeout, statically<br />

c<strong>on</strong>figurable) after receiving a wake-up indicati<strong>on</strong> from the physical channel<br />

handler. If a valid message is received before the timeout expires, the timer<br />

shall be stopped and the ECU State Manager indicates a physical channel<br />

wake-up. ECU State Manager shall not indicate a wake-up if the first wake-<br />

17 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

up indicati<strong>on</strong> from the physical channel handler is not c<strong>on</strong>firmed by a<br />

subsequent valid message within T_wake_up_timeout.<br />

Rati<strong>on</strong>ale: Avoiding wake-up because of err<strong>on</strong>eous signals (e.g. spikes). If a wake-up<br />

occurs but no succeeding activity can be detected <strong>on</strong> the physical channel,<br />

the wake-up is not c<strong>on</strong>sidered, in order to save power.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.17 [BSW09118] Time triggered increased inoperati<strong>on</strong><br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 16.12.2004<br />

Short Descripti<strong>on</strong> Time triggered increased inoperati<strong>on</strong><br />

Type: New<br />

Importance: Medium<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide a mechanism to enter a step by step<br />

decreasing power mode (sleep modes), based <strong>on</strong> timeouts. This mechanism<br />

can <strong>on</strong>ly be available if<br />

→ the wake-up/sleep capability is available <strong>on</strong> the ECU;<br />

→ several sleep modes are available <strong>on</strong> the ECU.<br />

It shall be a c<strong>on</strong>figurable feature of the ECU State Manager (see<br />

BSW09146).<br />

Rati<strong>on</strong>ale: If the ECU provides a set of different sleep modes, it should be possible to<br />

define a time-triggered sequence to change the sleep modes without<br />

additi<strong>on</strong>al interacti<strong>on</strong> from outside of the ECU.<br />

It is assumed that the different sleep modes represent a different level of<br />

low-power c<strong>on</strong>sumpti<strong>on</strong>. The change of sleep mode should lead into a step<br />

by step decreasing power-c<strong>on</strong>sumpti<strong>on</strong> of the ECU, while the ECU is not<br />

needed in the system.<br />

Use Case: If the car is left for a l<strong>on</strong>ger time – e.g. 3 days typically – more and more<br />

systems are shut off to save energy. The saving effect can be increased by<br />

shutting off more and more resources of the ECU itself: PLLs, clocks,<br />

sensors, etc.<br />

The aliveness of a comfort-body unit (ECU), for example, is not needed the<br />

whole time, because the user doesn’t place any requests <strong>on</strong> the functi<strong>on</strong>ality<br />

of this unit (e.g. pressing a butt<strong>on</strong>) while the system is running. After a<br />

(c<strong>on</strong>figurable) period of time this unit could reduce its power c<strong>on</strong>sumpti<strong>on</strong> by<br />

entering a given sleep mode. Further it goes down in power-c<strong>on</strong>sumpti<strong>on</strong> by<br />

using the time triggered increased inoperati<strong>on</strong> mechanism, while no userrequests<br />

are detected <strong>on</strong> this unit.<br />

Build up a system strategy with shortened startup, if the system was in<br />

usage immediately before. The l<strong>on</strong>ger the system is not in usage, the powerc<strong>on</strong>sumpti<strong>on</strong><br />

is reduced by means of the time triggered increased<br />

inoperati<strong>on</strong>, but as a c<strong>on</strong>sequence also the time for startup increases.<br />

Dependencies: - Wake-up/sleep capability shall be available <strong>on</strong> the ECU.<br />

- Time-triggered wake-up events shall be available <strong>on</strong> the ECU.<br />

- [BSW09119] Support of several sleep modes.<br />

- [BSW09146] C<strong>on</strong>figurati<strong>on</strong> of time triggered increased inoperati<strong>on</strong>.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

18 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


4.1.2.2.18 [BSW09145] Support of wake-sleep operati<strong>on</strong><br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: WP4.2.2.1.9<br />

Date: 28.06.2005<br />

Short Descripti<strong>on</strong> Support of wake-sleep operati<strong>on</strong><br />

Type: New<br />

Importance: high<br />

Descripti<strong>on</strong>: The ECU State Manager shall support a sequence c<strong>on</strong>sisting of:<br />

o partial startup<br />

o executi<strong>on</strong> of limited jobs (see use case)<br />

o quick shutdown<br />

without OS c<strong>on</strong>text. This behaviour will be called "wake-sleep operati<strong>on</strong>" in<br />

the c<strong>on</strong>text of the ECU State Manager.<br />

Rati<strong>on</strong>ale: Energy saving.<br />

Use Case: A cyclic wake-up by a timer-event, which should <strong>on</strong>ly do a short check of<br />

system wake-up c<strong>on</strong>diti<strong>on</strong>s of n<strong>on</strong> wakeable-sources (standard IO-ports) or<br />

execute a cyclic alive-feedback to customer, like i.e. a blinking LED.<br />

Dependencies: - Reduced capabilities of basic software architecture, according to n<strong>on</strong> full<br />

startup for wake-sleep operati<strong>on</strong>.<br />

- The wake-up/sleep hardware capability shall be available <strong>on</strong> the ECU.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.19 [BSW09126] Provide an API for querying the wake-up reas<strong>on</strong><br />

Initiator: BMW<br />

Date: 11.02.2004<br />

Short Descripti<strong>on</strong>: Provide an API for querying the wake-up reas<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide an API for querying the wake-up<br />

event causing the last ECU wake-up.<br />

Rati<strong>on</strong>ale: For diagnostics purposes.<br />

Applicati<strong>on</strong>s shall be able to react <strong>on</strong> different wake-up.<br />

Use Case: At initializati<strong>on</strong>, applicati<strong>on</strong> needs to perform different treatments depending<br />

<strong>on</strong> the wake-up reas<strong>on</strong>.<br />

Dependencies: [BSW00375] Notificati<strong>on</strong> of wake-up reas<strong>on</strong>.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.20 [BSW09101] Provide an API to query the reset reas<strong>on</strong><br />

Initiator: WP 4.2.2.1.9<br />

Date: 13.12.2004<br />

Short Descripti<strong>on</strong>: Provide an API to query the reset reas<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide an API to query the reas<strong>on</strong> of the last<br />

reset.<br />

Rati<strong>on</strong>ale: This feature is needed for setting up different startup scenarios depending if<br />

the reset was intenti<strong>on</strong>al or unintenti<strong>on</strong>al.<br />

Use Case: Reset loop detecti<strong>on</strong>.<br />

Dependencies: This feature can <strong>on</strong>ly be provided if supported by the hardware.<br />

19 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.21 [BSW09115] Evaluate c<strong>on</strong>diti<strong>on</strong> to stay in the RUN state<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 16.12.2004<br />

Short Descripti<strong>on</strong> Evaluate c<strong>on</strong>diti<strong>on</strong> to stay in the RUN state<br />

Type: New<br />

Importance: high<br />

Descripti<strong>on</strong>: The ECU State Manager shall include a mechanism to evaluate the<br />

c<strong>on</strong>diti<strong>on</strong> to stay in the RUN state, derived from current demands of the<br />

applicati<strong>on</strong> <strong>on</strong> the ECU.<br />

Rati<strong>on</strong>ale: The ECU State Manager is resp<strong>on</strong>sible for managing the ECU states.<br />

Therefore, it is necessary to evaluate the c<strong>on</strong>diti<strong>on</strong> to stay in the RUN state,<br />

which has to be in relati<strong>on</strong>ship with the needs of the applicati<strong>on</strong> software<br />

comp<strong>on</strong>ents.<br />

Use Case: --<br />

Dependencies: [BSW09116] Requesting and releasing the RUN state.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.22 [BSW09164] Shutdown synchr<strong>on</strong>izati<strong>on</strong> support for SW-Comp<strong>on</strong>ents<br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 28.11.2005<br />

Short Descripti<strong>on</strong> Shutdown synchr<strong>on</strong>izati<strong>on</strong> support for SW-Comp<strong>on</strong>ents<br />

Type: New<br />

Importance: Medium<br />

Descripti<strong>on</strong>: When leaving the RUN state, the ECU State Manager shall provide a<br />

synchr<strong>on</strong>izati<strong>on</strong> point for SWCs shutdown by defining a POST-RUN state. In<br />

this state, BSW and the underlying hardware are still fully functi<strong>on</strong>al.<br />

This state can <strong>on</strong>ly be entered when all users have released their RUN<br />

request. It is expected that the users release their POST-RUN request after<br />

finalizati<strong>on</strong> of their shutdown preparati<strong>on</strong> activities, thus allowing the<br />

subsequent de-initializati<strong>on</strong> of BSW.<br />

Rati<strong>on</strong>ale: This state will be requested by SWCs needing shutdown synchr<strong>on</strong>izati<strong>on</strong> to<br />

perform shutdown activities that are required before their access to<br />

resources is decreased (i.e. Stop of RTE; Stop of OS).<br />

Use Case: A digital filter algorithm that does not have the knowledge when its<br />

functi<strong>on</strong>ality is needed but needs to perform activities to prepare for<br />

shutdown.<br />

Dependencies: [BSW09001] Standardisati<strong>on</strong> of state relati<strong>on</strong>s.<br />

[BSW09116] Requesting and releasing the RUN state.<br />

[BSW09165] Requesting and releasing the POST-RUN state.<br />

[BSW09166] Evaluate c<strong>on</strong>diti<strong>on</strong> to stay in the POST-RUN state.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

20 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

4.1.2.2.23 [BSW09165] Requesting and releasing the POST-RUN state<br />

Initiator: DC (H. Kober)<br />

Date: 28.11.2005<br />

Short Descripti<strong>on</strong> Requesting and releasing the POST-RUN state<br />

Type: New<br />

Importance: Medium<br />

Descripti<strong>on</strong>: The ECU State Manager shall provide services to request and release the<br />

POST-RUN state.<br />

Rati<strong>on</strong>ale: The decisi<strong>on</strong> to hold an ECU in the POST-RUN state is always related to the<br />

applicati<strong>on</strong> c<strong>on</strong>text, which cannot be standardized. Therefore the ECU State<br />

Manager needs to get "user-requests" from applicati<strong>on</strong> perspective to be<br />

aware of the current situati<strong>on</strong>. It is recommended that independent<br />

applicati<strong>on</strong>s (SWCs), having independent POST-RUN state needs, shall<br />

c<strong>on</strong>trol their "user request" by usage of the provided interface of the ECU<br />

State Manager.<br />

Use Case: --<br />

Dependencies: [BSW09164] Shutdown synchr<strong>on</strong>izati<strong>on</strong> support for SW-Comp<strong>on</strong>ents.<br />

[BSW09166] Evaluate c<strong>on</strong>diti<strong>on</strong> to stay in the POST-RUN state.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.1.2.2.24 [BSW09166] Evaluate c<strong>on</strong>diti<strong>on</strong> to stay in the POST-RUN state<br />

Initiator: PSA (P. Castelpietra)<br />

Date: 28.11.2005<br />

Short Descripti<strong>on</strong> Evaluate c<strong>on</strong>diti<strong>on</strong> to stay in the POST-RUN state<br />

Type: New<br />

Importance: Medium<br />

Descripti<strong>on</strong>: The ECU State Manager shall include a mechanism to evaluate the<br />

c<strong>on</strong>diti<strong>on</strong> to stay in the POST-RUN state, derived from current demands of<br />

the applicati<strong>on</strong> <strong>on</strong> the ECU.<br />

Rati<strong>on</strong>ale: The ECU State Manager is resp<strong>on</strong>sible for managing the ECU states.<br />

Therefore, it is necessary to evaluate the c<strong>on</strong>diti<strong>on</strong> to stay in the POST-RUN<br />

state, which has to be in relati<strong>on</strong>ship with the needs of the applicati<strong>on</strong><br />

software comp<strong>on</strong>ents.<br />

Use Case: --<br />

Dependencies: [BSW09164] Shutdown synchr<strong>on</strong>izati<strong>on</strong> support for SW-Comp<strong>on</strong>ents.<br />

[BSW09116] Requesting and releasing the RUN state.<br />

[BSW09165] Requesting and releasing the POST-RUN state.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

21 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


4.2 Watchdog Manager<br />

4.2.1 Functi<strong>on</strong>al Overview<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

The Watchdog Manager is a basic software module of the standardized basic<br />

software architecture of AUTOSAR (service layer). It is intended to supervise the<br />

reliability of applicati<strong>on</strong> executi<strong>on</strong> with respect to timing c<strong>on</strong>straints.<br />

Derived from the layered architecture approach, a decoupling between applicati<strong>on</strong><br />

timing c<strong>on</strong>straints and watchdog hardware timing c<strong>on</strong>straints becomes possible.<br />

Based <strong>on</strong> this decoupling the Watchdog Manager provides alive-supervisi<strong>on</strong> of<br />

several independent applicati<strong>on</strong>s while triggering the watchdog hardware.<br />

The following features are provided by the Watchdog Manager:<br />

- Supervisi<strong>on</strong> of multiple individual applicati<strong>on</strong>s located <strong>on</strong> the ECU, having<br />

independent timing c<strong>on</strong>straints and requiring a special supervisi<strong>on</strong> of runtime<br />

behaviour and aliveness.<br />

- Fault-reacti<strong>on</strong> mechanism for each independent supervised entity.<br />

- Possibility to switch off supervisi<strong>on</strong> of individual applicati<strong>on</strong>s, without violating<br />

the watchdog triggering (e.g. for inhibited applicati<strong>on</strong>s).<br />

- Triggering of internal or external, standard or window, watchdog, via a<br />

watchdog driver. The access to the internal or external watchdog will be<br />

handled by the Watchdog Interface.<br />

- Selecti<strong>on</strong> of the watchdog mode (Off <strong>Mode</strong>, Slow <strong>Mode</strong>, Fast <strong>Mode</strong>)<br />

depending <strong>on</strong> the ECU state and the hardware capabilities.<br />

Much more details about these functi<strong>on</strong>alities can be found in the Watchdog<br />

Manager SWS specificati<strong>on</strong> [DOC_WP42219_WDGM_SWS].<br />

4.2.2 Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g><br />

4.2.2.1 C<strong>on</strong>figurati<strong>on</strong><br />

4.2.2.1.1 [BSW09106] C<strong>on</strong>figurati<strong>on</strong> of Watchdog Manager<br />

Initiator: WP4.2.2.1.9<br />

Date: 05.10.2004<br />

Short Descripti<strong>on</strong>: C<strong>on</strong>figurati<strong>on</strong> of Watchdog Manager<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The list of entities supervised by the Watchdog Manager, with their individual<br />

timing c<strong>on</strong>straints, shall be c<strong>on</strong>figurable.<br />

Rati<strong>on</strong>ale: Applicati<strong>on</strong> supervising.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

22 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

4.2.2.1.2 [BSW09158] Different c<strong>on</strong>figurati<strong>on</strong> sets for the Watchdog Manager<br />

Initiator: PSA (P. Castelpietra)<br />

Date: 11.10.2005<br />

Short Descripti<strong>on</strong>: Different c<strong>on</strong>figurati<strong>on</strong> sets for the Watchdog Manager<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall support several c<strong>on</strong>figurati<strong>on</strong> sets <strong>on</strong> <strong>on</strong>e<br />

ECU. It shall also be able to switch between these different c<strong>on</strong>figurati<strong>on</strong><br />

sets (e.g. depending <strong>on</strong> the current scheduling table).<br />

Rati<strong>on</strong>ale: Adapting alive-supervisi<strong>on</strong> to the current schedule.<br />

Use Case: - Schedule table switch between STARTUP II and RUN states (see ECU<br />

State Manager SWS).<br />

- Allowing a limp-home mode, having a totally different schedule.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.1.3 [BSW09154] Parameter for access protecti<strong>on</strong> for disabling alive-supervisi<strong>on</strong><br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 15.09.2005<br />

Short Descripti<strong>on</strong> Parameter for access protecti<strong>on</strong> for disabling alive-supervisi<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The possibility to disable the alive-supervisi<strong>on</strong> for each supervised entity<br />

shall be c<strong>on</strong>trolled by a static c<strong>on</strong>figurable parameter.<br />

Rati<strong>on</strong>ale: The possibility to disable alive-supervisi<strong>on</strong> may vary <strong>on</strong> the applicati<strong>on</strong>al and<br />

safety critical c<strong>on</strong>text of each supervised entities. Therefore the opti<strong>on</strong> to<br />

grant access shall be a c<strong>on</strong>figurable attribute, which shall never change<br />

during runtime.<br />

Use Case: --<br />

Dependencies: [BSW09153] Access protecti<strong>on</strong> for disabling alive-supervisi<strong>on</strong>.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.2 Initializati<strong>on</strong><br />

4.2.2.2.1 [BSW09107] Watchdog Manager initializati<strong>on</strong><br />

Initiator: WP4.2.2.1.9<br />

Date: 05.10.2004<br />

Short Descripti<strong>on</strong>: Watchdog Manager initializati<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall provide an initializati<strong>on</strong> service.<br />

This service allows the selecti<strong>on</strong> of <strong>on</strong>e of the statically c<strong>on</strong>figured Watchdog<br />

Manager modes.<br />

Rati<strong>on</strong>ale: Basic functi<strong>on</strong>ality.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

23 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


Supporting Material: --<br />

4.2.2.2.2 [BSW09109] Prohibit disabling of watchdog<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: WP4.2.2.1.9<br />

Date: 21.10.2004<br />

Short Descripti<strong>on</strong>: Prohibit disabling of watchdog<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: It shall be possible to c<strong>on</strong>figure, by means of a pre-processor switch,<br />

whether the Watchdog Manager initializati<strong>on</strong> service and the Watchdog<br />

Manager mode selecti<strong>on</strong> service allow the disabling of the watchdog or not..<br />

Rati<strong>on</strong>ale: Avoid the presence of code sequences in a safety relevant ECU that disable<br />

the watchdog.<br />

Use Case: Usage within safety relevant systems.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3 Normal Operati<strong>on</strong><br />

4.2.2.3.1 [BSW09112] Check aliveness of applicati<strong>on</strong><br />

Initiator: WP4.2.2.1.9<br />

Date: 05.10.2004<br />

Short Descripti<strong>on</strong>: Check aliveness of applicati<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall cyclically check the periodicity of the<br />

supervised entities, in order to detect aliveness of applicati<strong>on</strong>.<br />

Rati<strong>on</strong>ale: This requirement is needed by AUTOSAR Software Comp<strong>on</strong>ents requiring a<br />

special supervisi<strong>on</strong> of runtime behaviour and aliveness.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.2 [BSW09125] Update alive-supervisi<strong>on</strong><br />

Initiator: WP4.2.2.1.9<br />

Date: 05.10.2004<br />

Short Descripti<strong>on</strong>: Update alive-supervisi<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall provide a service allowing supervised entities<br />

to forward an alive indicati<strong>on</strong>, thus updating the alive-supervisi<strong>on</strong> for the<br />

given entity.<br />

Rati<strong>on</strong>ale: This requirement is needed by AUTOSAR Software Comp<strong>on</strong>ents requiring a<br />

special supervisi<strong>on</strong> of runtime behaviour and aliveness<br />

Use Case: --<br />

Dependencies: --<br />

24 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.3 [BSW09142] Enabling / disabling alive-supervisi<strong>on</strong><br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: Hitachi (Kentaro Yoshimura)<br />

Date: 17.04.2005<br />

Short Descripti<strong>on</strong> Enabling / disabling alive-supervisi<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall provide API to enable / disable alivesupervisi<strong>on</strong><br />

of individual supervised entities.<br />

Rati<strong>on</strong>ale: Supervised entities can be temporarily disabled. For example, the FiM can<br />

change the running status of runnable entities from “enable” to “disable”. The<br />

Watchdog Manager shall <strong>on</strong>ly check the aliveness of “enabled” entities.<br />

Use Case: A SWC will change its behaviour based <strong>on</strong> the ECU state, by changing the<br />

set of running REs of the SWC.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.4 [BSW09160] Indicati<strong>on</strong> of failed alive-supervisi<strong>on</strong><br />

Initiator: WP4.2.2.1.9<br />

Date: 16.11.2005<br />

Short Descripti<strong>on</strong> Indicati<strong>on</strong> of failed alive-supervisi<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall be able to notify the applicati<strong>on</strong> when the<br />

alive-supervisi<strong>on</strong> of a supervised entity fails. This informati<strong>on</strong> shall be<br />

forwarded through the RTE in order to allow fault reacti<strong>on</strong> by software. In this<br />

case, the informati<strong>on</strong> about which supervised entity has failed shall also be<br />

made available to the applicati<strong>on</strong>.<br />

Rati<strong>on</strong>ale: This gives the opportunity to establish some fault-reacti<strong>on</strong>s by software<br />

before a watchdog-reset occurs (fault recovery/reporting to the Diagnostic<br />

Event Manager).<br />

Use Case: --<br />

Dependencies: Alive-supervisi<strong>on</strong> of the watchdog-manager.<br />

[BSW09112] Check aliveness of applicati<strong>on</strong>.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.5 [BSW09161] C<strong>on</strong>diti<strong>on</strong> to stop triggering the Watchdog Driver<br />

Initiator: PSA (P. Castelpietra)<br />

Date: 03.11.2005<br />

Short Descripti<strong>on</strong> C<strong>on</strong>diti<strong>on</strong> to stop triggering the Watchdog Driver<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall stop triggering the watchdog driver if the alivesupervisi<strong>on</strong><br />

of a given supervised entity fails c<strong>on</strong>tinuously during a<br />

25 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

c<strong>on</strong>figurable amount of time (this amount of time can be set to 0 by<br />

c<strong>on</strong>figurati<strong>on</strong>, thus excluding any software recovery possibility).<br />

Rati<strong>on</strong>ale: This means the alive-supervisi<strong>on</strong> failure is now c<strong>on</strong>sidered unrecoverable.<br />

Then, a watchdog reset is the <strong>on</strong>ly soluti<strong>on</strong>.<br />

Use Case: --<br />

Dependencies: [BSW09162] Indicati<strong>on</strong> of an upcoming watchdog reset.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.6 [BSW09162] Indicati<strong>on</strong> of an upcoming watchdog reset<br />

Initiator: PSA (P. Castelpietra)<br />

Date: 03.11.2005<br />

Short Descripti<strong>on</strong> Indicati<strong>on</strong> of an upcoming watchdog reset<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall be able to notify the software (BSW and SWC)<br />

when the decisi<strong>on</strong> to stop triggering the watchdog driver has been taken due<br />

to an alive-supervisi<strong>on</strong> failure (see BSW09161). This informati<strong>on</strong> shall be<br />

forwarded through the RTE in order to allow software preparing to the<br />

imminent reset.<br />

Rati<strong>on</strong>ale: Some applicati<strong>on</strong>s need to perform some activity before a reset.<br />

Use Case: Storing of persistent data in the NV-RAM.<br />

Dependencies: [BSW09161] C<strong>on</strong>diti<strong>on</strong> to stop triggering the Watchdog Driver.<br />

[BSW09163] Delay before provoking a watchdog reset.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.7 [BSW09163] Delay before provoking a watchdog reset<br />

Initiator: PSA (P. Castelpietra)<br />

Date: 03.11.2005<br />

Short Descripti<strong>on</strong> Delay before provoking a watchdog reset<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: It shall be possible to c<strong>on</strong>figure a delay between the moment the decisi<strong>on</strong> to<br />

stop triggering the watchdog driver has been taken (due to an alivesupervisi<strong>on</strong><br />

failure, see BSW09161) and the moment the Watchdog<br />

Manager will actually stop triggering the watchdog driver. This delay will be<br />

used by the software in order to prepare itself to the upcoming reset (see<br />

BSW09162).<br />

Rati<strong>on</strong>ale: Giving the time to the whole software to prepare properly to the upcoming<br />

reset.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

26 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

4.2.2.3.8 [BSW09143] Behaviour of the WdgM during inactive alive-supervisi<strong>on</strong><br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 24.05.2005<br />

Short Descripti<strong>on</strong>: Behaviour of the WdgM during inactive alive-supervisi<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall trigger the watchdog itself if no supervisi<strong>on</strong> is<br />

active/necessary.<br />

Rati<strong>on</strong>ale: Prevent unintended watchdog-resets.<br />

Use Case: There are no supervised entities or all supervised entities are switched off<br />

from supervisi<strong>on</strong>.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.9 [BSW09111] Watchdog driver triggering<br />

Initiator: WP4.2.2.1.9<br />

Date: 05.10.2004<br />

Short Descripti<strong>on</strong>: Watchdog driver triggering<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall trigger the watchdog driver (via the Watchdog<br />

Interface) as l<strong>on</strong>g as the timing c<strong>on</strong>straints / schedule periods of the entities<br />

under its c<strong>on</strong>trol are met, thus preventing the HW watchdog from expiring.<br />

Rati<strong>on</strong>ale: Basic functi<strong>on</strong>ality.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.10 [BSW09110] Watchdog Manager mode selecti<strong>on</strong> service<br />

Initiator: WP4.2.2.1.9<br />

Date: 21.10.2004<br />

Short Descripti<strong>on</strong>: Watchdog Manager mode selecti<strong>on</strong> service<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The watchdog Manager shall provide a service interface, to select a mode of<br />

the Watchdog Manager. Each mode corresp<strong>on</strong>ds to a watchdog driver<br />

mode.<br />

Rati<strong>on</strong>ale: The watchdog triggering will be provided by three modes of the watchdog<br />

driver (off, slow, fast), which will be related to the length of the time-period<br />

before the watchdog expires (no expirati<strong>on</strong>, short time-period and l<strong>on</strong>g timeperiod).<br />

The decisi<strong>on</strong> about which mode is necessary could not be d<strong>on</strong>e<br />

internally by the Watchdog Manager. Therefore, the Watchdog Manager<br />

provides an interface to perform the watchdog driver mode selecti<strong>on</strong>.<br />

Use Case: Appropriate modes of the watchdog are typically related to the current state<br />

of the ECU. The ECU State Manager could forward a mode-selecti<strong>on</strong> from<br />

slow to fast, when initializati<strong>on</strong> phase is finished.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

27 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


Supporting Material: --<br />

4.2.2.3.11 [BSW09028] Support multiple watchdog instances<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: Siemens VDO Automotive (D. Sauerbier)<br />

Date: 09.08.2004<br />

Short Descripti<strong>on</strong>: Support multiple watchdog instances<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Watchdog Manager shall support multiple watchdog instances.<br />

Rati<strong>on</strong>ale: There are ECUs including both an internal and an external watchdog for<br />

m<strong>on</strong>itoring the system.<br />

Use Case: Due to the usage of the same clock, the internal watchdog doesn't recognize<br />

the "hang-up" of a system. To achieve a higher robustness an external<br />

watchdog is used.<br />

Dependencies: [BSW09167] Independent timing-c<strong>on</strong>straints for watchdog-instances<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.12 [BSW09153] Access protecti<strong>on</strong> for disabling alive-supervisi<strong>on</strong><br />

Initiator: VW (D. Gerlach, IAV)<br />

Date: 15.09.2005<br />

Short Descripti<strong>on</strong>: Access protecti<strong>on</strong> for disabling alive-supervisi<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The disabling of alive-supervisi<strong>on</strong> for certain supervised entities shall not be<br />

executed, if the disabling is prohibited for the corresp<strong>on</strong>ding supervised<br />

entity.<br />

Rati<strong>on</strong>ale: It may be of interest for safety critical applicati<strong>on</strong>s, that supervised entities<br />

could never be disabled from alive-supervisi<strong>on</strong>, <strong>on</strong>ce the supervisi<strong>on</strong> was<br />

enabled. The Watchdog Manager shall protect unintended or not allowed<br />

disabling of alive-supervisi<strong>on</strong> for such entities.<br />

Use Case: An applicati<strong>on</strong> may have detected errors or other c<strong>on</strong>diti<strong>on</strong>s that typically<br />

shall lead into a limitati<strong>on</strong> of comfort functi<strong>on</strong>s (e.g. low battery voltage). As a<br />

possible reacti<strong>on</strong>, this applicati<strong>on</strong> inhibits (e.g. by usage of FiM mechanisms)<br />

certain applicati<strong>on</strong>s and therefore their alive-supervisi<strong>on</strong> may need to be<br />

disabled, too. The service to disable the alive-supervisi<strong>on</strong> will be used with a<br />

parameter in order to select the corresp<strong>on</strong>ding supervised entity. The<br />

selecti<strong>on</strong> is out of resp<strong>on</strong>sibility of the Watchdog Manager, therefore a<br />

mechanism inside the Watchdog Manager is needed to protect prohibited<br />

accesses.<br />

Dependencies: [BSW09142] Enabling / disabling alive-supervisi<strong>on</strong>.<br />

[BSW09154] Parameter for access protecti<strong>on</strong> for disabling alive-supervisi<strong>on</strong>.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.2.3.13 BSW09167 Independent timing-c<strong>on</strong>straints for watchdog-instances<br />

Initiator: VW (D.Gerlach)<br />

Date: 15.12.2005<br />

Short Descripti<strong>on</strong> Independent timing-c<strong>on</strong>straints for watchdog-instances<br />

28 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Type: New<br />

Importance: Medium<br />

Descripti<strong>on</strong>: The Watchdog Manager shall support independent timing-c<strong>on</strong>straints for<br />

each watchdog-instance that needs to be triggered.<br />

Rati<strong>on</strong>ale: If multiple watchdog-instances exist <strong>on</strong> <strong>on</strong>e platform (i.e. internal and<br />

external watchdog) it's very likely, that these watchdogs will come up with<br />

independent timing-c<strong>on</strong>straints, which needs to be fulfilled by individual<br />

triggering. To support independent time periods for triggering each watchdog<br />

instance offers full flexibility to adapt the watchdog manager <strong>on</strong> any platform.<br />

Use Case: HW-platform with internal and external watchdog<br />

Dependencies: [BSW09028] Support multiple watchdog instances<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.3 Fault Operati<strong>on</strong><br />

4.2.3.1.1 [BSW09159] Reporting failure of the alive-supervisi<strong>on</strong> to DEM<br />

Initiator: WP4.2.2.1.9<br />

Date: 18.10.2005<br />

Short Descripti<strong>on</strong>: Reporting failure of the alive-supervisi<strong>on</strong> to DEM<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: When it stops triggering the watchdog, the Watchdog Manager shall report to<br />

DEM the failure of the alive-supervisi<strong>on</strong>.<br />

The report to DEM shall be a c<strong>on</strong>figurable opti<strong>on</strong> of the Watchdog Manager.<br />

Rati<strong>on</strong>ale: Error tracing, Diagnostics.<br />

Use Case: --<br />

Dependencies: The current API of the DEM does not allow reporting the informati<strong>on</strong> about<br />

which supervised entity has failed.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.2.4 Output for other WPs<br />

4.2.4.1.1 [BSW09075] NoInit-Area in RAM<br />

Initiator: Siemens (D. Sauerbier)<br />

Date: 27.10.2004<br />

Short Descripti<strong>on</strong>: NoInit-Area in RAM<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The system shall provide the possibility to prevent a pre-defined RAM area<br />

from being re-initialized at reset (NoInit-Area).<br />

Rati<strong>on</strong>ale: There should be an area in the RAM, which will not be affected by a reset<br />

(clearing all memory). This area is used as storage for persistent data which<br />

are needed during normal operati<strong>on</strong> (and that will not be stored in<br />

EEPROM).<br />

Use Case: Reset informati<strong>on</strong> is stored in RAM and has to be evaluated after reset.<br />

Dependencies: Hardware has to support this feature (which is not always the case).<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

29 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


4.3 Communicati<strong>on</strong> Manager<br />

4.3.1 Functi<strong>on</strong>al Overview<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

The Communicati<strong>on</strong> Manager collects and coordinates the communicati<strong>on</strong> access<br />

requests from communicati<strong>on</strong> requestors (users, see glossary).<br />

The purpose of the Communicati<strong>on</strong> Manager is:<br />

- Simplifying the usage of the communicati<strong>on</strong> protocol stack for the user. This<br />

includes the initializati<strong>on</strong> of the communicati<strong>on</strong> stack and a simplified network<br />

management handling.<br />

- Coordinating the availability of the communicati<strong>on</strong> stack (allow sending and<br />

receiving of messages) of multiple independent software comp<strong>on</strong>ents <strong>on</strong> <strong>on</strong>e<br />

ECU.<br />

- Temporarily disabling sending of messages to prevent the ECU from (actively)<br />

waking up the physical channel(s).<br />

- C<strong>on</strong>trolling of more than <strong>on</strong>e physical channels of an ECU by implementing a<br />

state machine for every physical channel.<br />

- Offering the possibility to force ECUs which keeps the physical channel awake<br />

to "Silent Communicati<strong>on</strong>" mode.<br />

- Simplifying the resource management by allocating all resources necessary<br />

for the requested communicati<strong>on</strong> mode.<br />

In order to do so, the Communicati<strong>on</strong> Manager defines “communicati<strong>on</strong> modes”,<br />

indicating if a given physical channel is available for the applicati<strong>on</strong> and how<br />

(send/receive, <strong>on</strong>ly receive, neither send nor receive).<br />

Much more details about these functi<strong>on</strong>alities can be found in the Communicati<strong>on</strong><br />

Manager SWS specificati<strong>on</strong> [DOC_WP42219_COMM_SWS].<br />

4.3.2 Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g><br />

4.3.2.1 C<strong>on</strong>figurati<strong>on</strong><br />

4.3.2.1.1 [BSW09090] User-to-channel relati<strong>on</strong>ship<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: User-to-channel relati<strong>on</strong>ship<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The data defining the relati<strong>on</strong>ship between users and physical channels<br />

(which user communicates <strong>on</strong> which physical channel) shall be c<strong>on</strong>figurable<br />

attributes of the Communicati<strong>on</strong> Manager.<br />

Note: A possible soluti<strong>on</strong> is a 2D matrix with users as rows and physical<br />

channels as columns; an entry in this matrix links the user (row) with the<br />

corresp<strong>on</strong>ding physical channel (column).<br />

Rati<strong>on</strong>ale: Necessary for physical channel independency; communicati<strong>on</strong> shall be <strong>on</strong>ly<br />

activated if communicati<strong>on</strong> is needed <strong>on</strong> this physical channel.<br />

Use Case: --<br />

30 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

4.3.2.1.2 [BSW09133] Assigning physical channels to the Communicati<strong>on</strong> Manager<br />

Initiator: WP4.2.2.1.9 (D. Gerlach, IAV)<br />

Date: 23.02.2005<br />

Short Descripti<strong>on</strong> Assigning physical channels to the Communicati<strong>on</strong> Manager<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: Physical channels, which should be handled by the Communicati<strong>on</strong> Manager<br />

shall be assigned to the module by static c<strong>on</strong>figurati<strong>on</strong>.<br />

Rati<strong>on</strong>ale: The ECU specific implementati<strong>on</strong>s of the Communicati<strong>on</strong> Manager shall<br />

have knowledge about how many and which physical channels have to be<br />

treated by the Communicati<strong>on</strong> Manager <strong>on</strong> the dedicated ECU. This<br />

knowledge is required to enhance the independency of the physical channel<br />

management within the Communicati<strong>on</strong> Manager.<br />

Additi<strong>on</strong>ally, it gives flexibility to tailor required data-resources for the specific<br />

implementati<strong>on</strong>s.<br />

Use Case: The Communicati<strong>on</strong> Manager shall cope with individual communicati<strong>on</strong><br />

resources of different ECUs i.e.:<br />

ECU A : two FlexRay busses, <strong>on</strong>e CAN bus<br />

ECU B : <strong>on</strong>e CAN bus, <strong>on</strong>e LIN bus<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.1.3 [BSW09132] Assigning Network <strong>Management</strong> to physical channels<br />

Initiator: WP4.2.2.1.9 (D. Gerlach, IAV)<br />

Date: 23.02.2005<br />

Short Descripti<strong>on</strong> Assigning Network <strong>Management</strong> to physical channels<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The usage of Network <strong>Management</strong> shall be assigned to the physical<br />

channels by static c<strong>on</strong>figurati<strong>on</strong>. This opti<strong>on</strong> shall be provided independently<br />

for all physical channels, which are assigned to the Communicati<strong>on</strong><br />

Manager.<br />

Rati<strong>on</strong>ale: The Communicati<strong>on</strong> Manager needs the knowledge of the Network<br />

<strong>Management</strong> usage <strong>on</strong> each physical channel in order to provide each<br />

channel with the suitable synchr<strong>on</strong>izati<strong>on</strong>-mechanism to the Network<br />

<strong>Management</strong> (handling of additi<strong>on</strong>al indicati<strong>on</strong>s and acknowledges from/to<br />

Network <strong>Management</strong>).<br />

For physical channels without Network <strong>Management</strong>, the Communicati<strong>on</strong><br />

Manger has to be aware of the simplified handling (no indicati<strong>on</strong> or<br />

acknowledges needed to/from Network <strong>Management</strong>).<br />

Use Case: An ECU with two physical channels (A, B): A is related to powertrain<br />

domains, B is related to comfort-comp<strong>on</strong>ents.<br />

- physical channel A does not use Network <strong>Management</strong><br />

- physical channel B must use Network <strong>Management</strong><br />

Dependencies: Assigning physical channels to the Communicati<strong>on</strong> Manager.<br />

This issue is <strong>on</strong>ly relevant for assigned physical channels.<br />

C<strong>on</strong>flicts: --<br />

31 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


Supporting Material: --<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

4.3.2.1.4 [BSW09141] C<strong>on</strong>figurati<strong>on</strong> of physical channel wake-up preventi<strong>on</strong><br />

Initiator: WP4.2.2.1.9<br />

Date: 18.05.2005<br />

Short Descripti<strong>on</strong>: C<strong>on</strong>figurati<strong>on</strong> of physical channel wake-up preventi<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall be able to prevent wake-up at the level<br />

of physical channels (BSW09089). This feature shall be c<strong>on</strong>figurable.<br />

Rati<strong>on</strong>ale: This feature will not appear in all ECUs.<br />

Use Case: --<br />

Dependencies: [BSW09089] Preventing waking up physical channels.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2 Normal Operati<strong>on</strong><br />

4.3.2.2.1 [BSW09078] Coordinating communicati<strong>on</strong> requests<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: Coordinating communicati<strong>on</strong> requests<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall coordinate multiple communicati<strong>on</strong><br />

requests for multiple physical channels independently. The rule for<br />

coordinati<strong>on</strong> is that the highest requested communicati<strong>on</strong> mode is the target<br />

state of the physical channel (see BSW09083 for a brief descripti<strong>on</strong> of the<br />

communicati<strong>on</strong> modes).<br />

Rati<strong>on</strong>ale: Main functi<strong>on</strong>ality of Communicati<strong>on</strong> Manager. A SWC cannot know with<br />

which other SWC it will share an ECU in a particular c<strong>on</strong>figurati<strong>on</strong>.<br />

Coordinati<strong>on</strong> of communicati<strong>on</strong> requests has to be provided by BSW.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.2 [BSW049] Initiating wake-up and keeping awake physical channels<br />

Initiator: DC<br />

Date: 09.01.2004<br />

Short Descripti<strong>on</strong>: Initiating wake-up and keeping awake physical channels<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager c<strong>on</strong>trols the Network <strong>Management</strong> modules<br />

assigned to the physical channels according to the target communicati<strong>on</strong><br />

modes of these physical channels.<br />

As so<strong>on</strong> as a user requests communicati<strong>on</strong>, the Communicati<strong>on</strong> Manager<br />

shall initiate the physical channel wake-up by switching the affected physical<br />

32 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

channel’s NM to the AWAKE state (requesting communicati<strong>on</strong> for this<br />

physical channel).<br />

Rati<strong>on</strong>ale: If the Network <strong>Management</strong> has set the communicati<strong>on</strong> system into sleep<br />

mode the Communicati<strong>on</strong> Manager shall wake it up again if at least <strong>on</strong>e<br />

ECU/Applicati<strong>on</strong> requires physical channel communicati<strong>on</strong>.<br />

Basic functi<strong>on</strong>ality, resp<strong>on</strong>sibility to initiate physical channel wake-up.<br />

Use Case: --<br />

Dependencies: [BSW09087] Proxy communicati<strong>on</strong> request after wake-up.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.3 [BSW09080] Physical channel independency<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: Physical channel independency<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The physical channels shall have independent communicati<strong>on</strong> modes.<br />

Rati<strong>on</strong>ale: Possibility to have partial networks at physical channel level. Unnecessary<br />

physical channels shall not be activated.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.4 [BSW09081] API for requesting communicati<strong>on</strong><br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: API for requesting communicati<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall provide an API allowing to collect<br />

communicati<strong>on</strong> requests.<br />

Rati<strong>on</strong>ale: Means of interacti<strong>on</strong> necessary<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.5 [BSW09083] Support of different communicati<strong>on</strong> modes<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: Support of different communicati<strong>on</strong> modes<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall support three communicati<strong>on</strong> modes for<br />

each physical channel. The three modes are:<br />

• full communicati<strong>on</strong> (send & receive operati<strong>on</strong>s)<br />

33 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

• silent communicati<strong>on</strong> (receive operati<strong>on</strong>s)<br />

• no communicati<strong>on</strong> (neither send nor receive operati<strong>on</strong>s)<br />

The modes have an implicit order with full communicati<strong>on</strong> being the “highest”<br />

mode and no communicati<strong>on</strong> the “lowest” mode.<br />

Rati<strong>on</strong>ale: Full communicati<strong>on</strong> mode should be self explanatory, needed for normal<br />

operati<strong>on</strong> of distributed functi<strong>on</strong>s.<br />

Silent mode is needed for muting an ECU in case of an error leading to<br />

communicati<strong>on</strong> noise. Another possibility is to use silent mode, when an<br />

ECU does not take part in sleep coordinati<strong>on</strong> but follows physical channel<br />

traffic passively<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.6 [BSW09084] API for querying the current communicati<strong>on</strong> mode<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: API for querying the current communicati<strong>on</strong> mode<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall provide an API which allows applicati<strong>on</strong><br />

to query the current communicati<strong>on</strong> mode.<br />

Rati<strong>on</strong>ale: SWCs shall have the possibility to query the real mode because it is<br />

unknown if and when a requested mode is reached. The querying of the<br />

requested mode is added for completeness (see BSW09149).<br />

Use Case: --<br />

Dependencies: [BSW09149] API for querying the requested communicati<strong>on</strong> mode.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.7 [BSW09149] API for querying the requested communicati<strong>on</strong> mode<br />

Initiator: PSA (P. Castelpietra)<br />

Date: 28.07.2005<br />

Short Descripti<strong>on</strong>: API for querying the requested communicati<strong>on</strong> mode<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall provide an API which allows applicati<strong>on</strong><br />

to query the requested (target) communicati<strong>on</strong> mode.<br />

Rati<strong>on</strong>ale: SWCs shall have the possibility to query the real mode because it is<br />

unknown if and when a requested mode is reached (see BSW09084). The<br />

querying of the requested mode is added for completeness.<br />

Use Case: --<br />

Dependencies: [BSW09084] API for querying the current communicati<strong>on</strong> mode<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

34 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


4.3.2.2.8 [BSW09085] Indicati<strong>on</strong> of communicati<strong>on</strong> mode changes<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: Indicati<strong>on</strong> of communicati<strong>on</strong> mode changes<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall provide an indicati<strong>on</strong> in order to notify<br />

applicati<strong>on</strong> and DCM when the communicati<strong>on</strong> mode of the applicati<strong>on</strong> has<br />

changed.<br />

Rati<strong>on</strong>ale: State changes shall be communicated to affected entities, c<strong>on</strong>stant polling<br />

would hinder performance.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.9 [BSW09071] Limit Communicati<strong>on</strong> Manager modes<br />

Initiator: DC<br />

Date: 27.09.2004<br />

Short Descripti<strong>on</strong>: Limit Communicati<strong>on</strong> Manager modes<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: It shall be possible to limit communicati<strong>on</strong> modes independently for each<br />

physical channel. An API shall be provided to set the highest available<br />

mode. Limiting communicati<strong>on</strong> modes takes effect immediately:<br />

• If the current mode of a physical channel exceeds the selected limit,<br />

the Communicati<strong>on</strong> Manager shall take acti<strong>on</strong> to set down the<br />

communicati<strong>on</strong> mode to such limit, as so<strong>on</strong> as possible. This mode<br />

reducti<strong>on</strong> will propagate to all users linked to the affected physical<br />

channel.<br />

• Requests for modes exceeding the selected limit are not satisfied<br />

until the limitati<strong>on</strong> is revoked.<br />

Communicati<strong>on</strong> mode ordering is described in BSW09083.<br />

Passive wake-up shall always be possible, disregarding of the limitati<strong>on</strong><br />

Rati<strong>on</strong>ale: This feature is mainly to be used under error c<strong>on</strong>diti<strong>on</strong>s, in order to force<br />

communicati<strong>on</strong> capabilities limitati<strong>on</strong>s.<br />

Use Case: • Forcing into silent mode.<br />

• Preventi<strong>on</strong> of physical channel wake-up.<br />

• Forcing into no communicati<strong>on</strong> mode.<br />

• Force ECU to sleep because it is assumed that this ECU keeps<br />

without reas<strong>on</strong>, the physical channel awake or floods it with junk<br />

messages.<br />

Dependencies: [BSW09083] Support of different communicati<strong>on</strong> modes.<br />

[BSW09157] Revoke Communicati<strong>on</strong> Manager mode limitati<strong>on</strong>.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.10 [BSW09157] Revoke Communicati<strong>on</strong> Manager mode limitati<strong>on</strong><br />

Initiator: PSA (P. Castelpietra)<br />

Date: 04.10.2005<br />

35 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Short Descripti<strong>on</strong>: Revoke Communicati<strong>on</strong> Manager mode limitati<strong>on</strong><br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: It shall be possible to revoke a communicati<strong>on</strong> mode limitati<strong>on</strong>,<br />

independently for each physical channel. An API shall be provided.<br />

Rati<strong>on</strong>ale: This feature is necessary to cancel the effects of the mode limitati<strong>on</strong> service<br />

described in BSW09071.<br />

Use Case: --<br />

Dependencies: [BSW09083] Support of different communicati<strong>on</strong> modes.<br />

[BSW09071] Limit Communicati<strong>on</strong> Manager modes.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.11 [BSW09087] Proxy communicati<strong>on</strong> request after wake-up<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: Proxy communicati<strong>on</strong> request after wake-up<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall act as a proxy communicati<strong>on</strong> requestor<br />

to bridge the gap between wake-up and the genuine communicati<strong>on</strong><br />

requests. The proxy communicati<strong>on</strong> request is limited by a timeout (statically<br />

c<strong>on</strong>figurable) and invisible for functi<strong>on</strong>s.<br />

Rati<strong>on</strong>ale: Safeguard against possible irregularities caused by short timespan with no<br />

communicati<strong>on</strong> request e.g. due to delayed functi<strong>on</strong>s.<br />

Use Case: • Passive wake-up: keeping the communicati<strong>on</strong> stack awake until the<br />

applicati<strong>on</strong> is able to forward the first user request.<br />

• Active wake-up: keeping the communicati<strong>on</strong> stack awake while<br />

waiting for NM messages from other ECUs.<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.12 [BSW09088] Handling of different physical channel types<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: Handling of different physical channel types<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall be able to handle different physical<br />

channel types and instances of Network <strong>Management</strong>s.<br />

Rati<strong>on</strong>ale: Allow future extensi<strong>on</strong>s, backward compatibility, large scope of applicability.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

36 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


4.3.2.2.13 [BSW09089] Preventing waking up physical channels<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: Preventing waking up physical channels<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall be able to prevent the host ECU from<br />

waking up physical channels. An API to set the wake-up preventi<strong>on</strong> shall be<br />

provided.<br />

Rati<strong>on</strong>ale: Prevent c<strong>on</strong>stant wake-up from an ECU which is triggered by an error.<br />

Use Case: --<br />

Dependencies: [BSW09141] C<strong>on</strong>figurati<strong>on</strong> of physical channel wake-up preventi<strong>on</strong>.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.14 [BSW09130] Initializati<strong>on</strong> of communicati<strong>on</strong> resources<br />

Initiator: WP4.2.2.1.9 (D. Gerlach, IAV)<br />

Date: 23.02.2005<br />

Short Descripti<strong>on</strong> Initializati<strong>on</strong> of communicati<strong>on</strong> resources<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall invoke the initializati<strong>on</strong>-functi<strong>on</strong>s of<br />

assigned communicati<strong>on</strong>-resources at any required startup-scenarios for<br />

those resources.<br />

Rati<strong>on</strong>ale: Simplify the initializati<strong>on</strong>- subsequence of the communicati<strong>on</strong>-stack and give<br />

resp<strong>on</strong>sibility to Communicati<strong>on</strong>-Manager to avoid distributed resp<strong>on</strong>sibilities<br />

linked to other modules.<br />

Use Case: --<br />

Dependencies: [BSW09133] Assigning physical channels to the Communicati<strong>on</strong> Manager.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.15 [BSW09131] De-initializati<strong>on</strong> of communicati<strong>on</strong> resources<br />

Initiator: WP4.2.2.1.9 (D. Gerlach, IAV)<br />

Date: 23.02.2005<br />

Short Descripti<strong>on</strong> De-initializati<strong>on</strong> of communicati<strong>on</strong> resources<br />

Type: New<br />

Importance: high<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall invoke the de-initializati<strong>on</strong>-functi<strong>on</strong>s of<br />

assigned communicati<strong>on</strong>-resources at any required scenario for those<br />

resources.<br />

Rati<strong>on</strong>ale: Simplify the De-initializati<strong>on</strong>-subsequence of the communicati<strong>on</strong>-stack and<br />

give resp<strong>on</strong>sibility to Communicati<strong>on</strong>-Manager to avoid distributed<br />

resp<strong>on</strong>sibilities linked to other modules.<br />

Use Case: --<br />

Dependencies: [BSW09133] Assigning physical channels to the Communicati<strong>on</strong> Manager.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

37 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

4.3.2.2.16 [BSW09155] Counting of inhibited communicati<strong>on</strong> requests<br />

Initiator: DC, PSA (P. Castelpietra)<br />

Date: 21.09.2005<br />

Short Descripti<strong>on</strong> Counting of inhibited communicati<strong>on</strong> requests<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: The Communicati<strong>on</strong> Manager shall provide a counter for all rejected "Full<br />

Communicati<strong>on</strong>" mode requests, due to communicati<strong>on</strong> mode limitati<strong>on</strong>s.<br />

The counter shall be stored in n<strong>on</strong>-volatile memory.<br />

Rati<strong>on</strong>ale: The counter is used for detecting latent software problems relating to<br />

unmotivated communicati<strong>on</strong> bus wake-up.<br />

Use Case: --<br />

Dependencies: [BSW09071] Limit Communicati<strong>on</strong> Manager modes.<br />

[BSW09089] Preventing waking up physical channels.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.2.2.17 [BSW09156] API to retrieve the number of inhibited "Full Communicati<strong>on</strong>"<br />

mode requests<br />

Initiator: DC, PSA (P. Castelpietra)<br />

Date: 21.09.2005<br />

Short Descripti<strong>on</strong> API to retrieve the number of inhibited "Full Communicati<strong>on</strong>" mode requests<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: It shall be possible to read out (and reset) the number of "Full<br />

Communicati<strong>on</strong>" mode requests that were inhibited due to communicati<strong>on</strong><br />

mode limitati<strong>on</strong>s.<br />

This value shall be accessible via a Communicati<strong>on</strong> Manager API.<br />

Rati<strong>on</strong>ale: --<br />

Use Case: It shall be possible to read out and reset the current status of the counter by<br />

a diagnostic service.<br />

Dependencies: [BSW09155] Counting of inhibited communicati<strong>on</strong> requests.<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

4.3.3 N<strong>on</strong>-Functi<strong>on</strong>al <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> (Qualities)<br />

4.3.3.1.1 [BSW09079] Transparent relati<strong>on</strong>ship between software comp<strong>on</strong>ents and<br />

physical channels<br />

Initiator: BMW (Schlaugath)<br />

Date: 01.12.2004<br />

Short Descripti<strong>on</strong>: Transparent relati<strong>on</strong>ship between software comp<strong>on</strong>ents and physical<br />

channels<br />

Type: New<br />

Importance: High<br />

Descripti<strong>on</strong>: SWCs shall be defined independently from the physical channels which are<br />

available <strong>on</strong> the ECUs. Thus, they shall not have any knowledge about these<br />

physical channels<br />

We call this a “transparent relati<strong>on</strong>ship” between applicati<strong>on</strong> software<br />

38 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

comp<strong>on</strong>ents and physical channels.<br />

Rati<strong>on</strong>ale: Communicati<strong>on</strong> philosophy of AUTOSAR.<br />

Possibility to (almost) freely move SWCs <strong>on</strong> different ECUs c<strong>on</strong>nected to<br />

different physical channels.<br />

Use Case: --<br />

Dependencies: --<br />

C<strong>on</strong>flicts: --<br />

Supporting Material: --<br />

39 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -


5 References<br />

5.1 Deliverables of AUTOSAR<br />

<str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> <strong>Mode</strong> <strong>Management</strong><br />

V1.0.1<br />

[DOC_WP42219_COMM_SWS], Specificati<strong>on</strong> of Communicati<strong>on</strong> Manager<br />

AUTOSAR_SWS_ComManager.pdf<br />

[DOC_WP42219_ECUM_SWS], Specificati<strong>on</strong> of ECU State Manager<br />

AUTOSAR_SWS_EcuStateManager.pdf<br />

[DOC_WP42219_WDGM_SWS], Specificati<strong>on</strong> of Watchdog Manager<br />

AUTOSAR_SWS_WatchdogManager.pdf<br />

[DOC_COM_STACK], Specificati<strong>on</strong> of Communicati<strong>on</strong> Stack Types<br />

AUTOSAR_SWS_ComStackTypes.pdf<br />

[DOC_GENERAL_REQ], General <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> Basic Software Modules<br />

AUTOSAR_SRS_General.pdf<br />

[DOC_LAYERED_ARCH], Layered Software Architecture<br />

AUTOSAR_LayeredSoftwareArchitecture.pdf<br />

[DOC_WP111_VFB], Specificati<strong>on</strong> of the Virtual Functi<strong>on</strong>al Bus<br />

AUTOSAR_VirtualFuncti<strong>on</strong>Bus.pdf<br />

[DOC_METAMODEL], Meta<strong>Mode</strong>l<br />

AUTOSAR_Metamodel.eap<br />

[DOC_WP2111_SCT], Software Comp<strong>on</strong>ent Template<br />

AUTOSAR_SoftwareComp<strong>on</strong>entTemplate.pdf<br />

[DOC_WP2113_ST], Specificati<strong>on</strong> of System Template<br />

AUTOSAR_SystemTemplate.pdf<br />

[DOC_WP42211_CAN_SRS], <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> CAN<br />

AUTOSAR_SRS_CAN.pdf<br />

[DOC_WP42211_LIN_SRS], <str<strong>on</strong>g>Requirements</str<strong>on</strong>g> <strong>on</strong> LIN<br />

AUTOSAR_SRS_LIN.pdf<br />

5.2 Related standards and norms<br />

[STD_OSEK_OS], OSEK/VDX Operating System<br />

http://www.osek-vdx.org/mirror/<br />

os223.pdf<br />

40 of 40 AUTOSAR_SRS_<strong>Mode</strong><strong>Management</strong><br />

- AUTOSAR c<strong>on</strong>fidential -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!