Mode Management

Micael Coutinho,autosarbswecum

Mode management is essential to synchronize all the modules in an Autosar environment. Learn what it's all about

In Autosar, there are multiple managers, both for the global state of an ECU, which is the focus today, or its submodules, such as communication, with state and network managers for the standards bus's (CAN, Lin, FlexRay and Ethernet), for the entire COM and even a global manager for the vehicle network, NM.

Today, the focus will be on the ECU state machine itself, by knowing what are the different ECU modes and we'll learn briefly about what the modules in play are and how they infuence these states. It's a relatively complex topic, the more you look at it. So, let's start small.

What is the ECU state machine?

To answer this question, let's start by learning a bit about the EcuM (ECU State Manager). It's the BSW module that manages the different modes and transitions between the states within the ECU, where the states are OFF, RUN and SLEEP, and their transitions correspond to STARTUP, WAKEUP and SHUTDOWN. The state machine looks as such:

ECUM state machine, as per Autosar Specification { w: 746, h: 792 }

ECUM state machine, as per Autosar Specification

Now, let's take a look at the definition for each ECU state and transition:

What controls the ECU state machine?

Now that you know where the ECU state machine lies (EcuM) and what the states are, it's time to know how to control it. The module responsible for deciding which mode the ECU is transitioned to is the BswM (BSW Mode Manager). The BswM provides interfaces for the Software Components to request or get notified of a transition / current mode, through interfaces (to learn more about interfaces, please consult the article Types of Interfaces and Ports (opens in a new tab)). The BswM controls all the different mode management modules, and the EcuM is no exception. It contains two kinds of ports: mode request ports (request a new mode) and mode switch ports (get notified of the current mode):

Mode management ports contained in the BswM, as per Autosar Specification { w: 711, h: 444 }

Mode management ports contained in the BswM, as per Autosar Specification

Fixed (EcuMFixed) vs Flexible (EcuMFlex) Ecu management:

Lastly, we want to touch on the two variants of Ecu state management: fixed (EcuMFixed) and flexible (EcuMFlex). The flexible ECU state management is more powerful than the fixed state management, by adding the following differences:

Closing this article, I hope now you have a fair bit more knowledge regarding the different ECU modes, how they influence the ECU's behavior and the different modules involved in controlling them.

Author: Micael Coutinho (opens in a new tab)

References:

© AutosarToday —@LinkedIn