TECH ARTICLE

EB tresos Classic AUTOSAR:
Mode Management

Detailed introduction to the division of responsibilities between EcuM and BswM during ECU state phases, Watchdog operating mechanism, and ComM state machine transition processes.

This article is based on the video content of 'EB tresos Classic AUTOSAR-Mode Management Module Basic Software Training' provided by Elektrobit. The video introduces the basic concepts and module division of the AUTOSAR mode management modules, detailing the division of responsibilities between EcuM and BswM during various ECU state phases, the operating mechanism of the Watchdog Stack, and the transition processes of ComM and CanNm state machines. It also summarizes the common functions of related modules. This training will help automotive electronics developers master AUTOSAR mode management technologies and improve development efficiency.

1. Positioning and Objectives of Mode Management

The main task of mode management is to coordinate state switching of various software components and basic software modules within the ECU. Its core objectives are:

battery_charging_full Control Power Consumption

Save energy by managing sleep and wake-up processes.

settings_input_antenna Manage Communication Status

Controls the opening and closing of various communication channels (CAN, Lin, Eth).

rule Ensure System Consistency

Ensure that when the system switches modes (e.g., from 'Normal Operation' to 'Flashing Mode'), all related modules can synchronously enter the correct state.

2. Three Core Modules of Mode Management (EcuM, BswM, ComM)

The video breaks down the mode management system into three tightly collaborating 'pillar' modules:

power_settings_new EcuM (ECU State Manager)

EcuM is responsible for managing the overall state flow of the ECU.

  • Main Phases:Includes Startup, Shutdown, Sleep, and Wake-up.
  • Task:It is responsible for the lowest-level hardware initialization boot and closing the OS at the final moment. It is divided into two configuration methods: Fixed and Flexible.

psychology BswM (Basic Software Mode Manager)

BswM is the 'brain' of the entire mode management system, responsible for complex logical judgments and operating based on 'Rules'.

Operating Workflow:
  1. Collect Input:Receives requests from SWC or state indications from BSW modules.
  2. Rule Evaluation:Determines whether the trigger rules are met based on preset logical conditions.
  3. Execute Action:If the rule is established, execute the corresponding action (e.g., switch the mode of another module or call a specific API).

sensors ComM (Communication Manager)

ComM is specifically responsible for managing the network communication status of the ECU.

  • Communication Mode:Mainly divided into No Communication, Silent Communication (receive only), and Full Communication (normal send/receive).
  • Function:Simplifies the control of the communication network by upper-layer applications. The application layer only needs to request 'I need communication' from ComM, and ComM will automatically coordinate the underlying communication stack (CanSM, LinSM, etc.) to turn on the corresponding hardware.

3. Interaction and Collaboration in Mode Management

In actual operation, these three modules usually work together:

  • 1

    EcuM After starting the OS, hands over control to BswM

  • 2

    BswM Notifies ComM opens communication.

  • 3

    ComM Drives underlying communication modules and feeds back communication status to BswM

  • 4

    When shutdown is required, BswM Coordinate modules to stop working, and finally, EcuM Execute power-off.

4. Development Focus in EB tresos

When configuring in EB tresos Studio, developers need to focus on:

account_tree Logic Configuration

Define rules and action chains in BswM.

notifications_active Wake-up Source Definition

Configure which hardware signals (such as CAN messages or external pins) can wake up the ECU in EcuM.

manage_accounts Communication User Management

Define which software components (Users) have permission to request network communication in ComM.

This article summarizes the basic architecture of the mode management module. Through this mechanism, AUTOSAR ensures that the ECU can switch between various operating states stably, safely, and energy-efficiently in complex vehicle environments.

Tutorial Video