Concept for ECU Monitoring: The Three Levels of Functional Safety

Concept for ECU Monitoring: The Three Levels of Functional Safety

31.03.2025 Off By Aliant Auto

In modern vehicles, the Electronic Control Unit (ECU) plays a crucial role in managing the engine, transmission, and related systems. To ensure the reliability, safety, and efficiency of these systems, an ECU monitoring concept has been developed, which includes three main levels: Functional Level (Level 1), Functional Monitoring (Level 2), and Controller Monitoring (Level 3).

This article will focus on these three levels, which are key to ensuring the proper operation of the software and hardware that control the vehicle.


Level 1: Functional Level


Level 1 (basic control level) is the fundamental functional level in the monitoring system architecture. Its main tasks include engine management, signal diagnostics, and system response control in case of errors.

Key Elements of Level 1

Torque Management:

  • Converting driver torque requests received through throttle pedal signals.
  • Controlling fuel delivery timing and corresponding pressure in the fuel system.
  • Managing fuel injection timing and quantity (e.g., via injector maps).

Input and Output Signals:

  • Sensors (Input):
    • Throttle Position Sensors (APP1, APP2).
    • Fuel Pressure Sensors.
    • Temperature Sensors (coolant, air).
    • Engine Speed Sensors (RPM).
  • Actuators (Output):
    • Fuel injector control.
    • Turbocharger control (if present).
    • Exhaust gas and EGR valve management.

Diagnostics:

  • Validity check of input signals by comparing two independent signals (e.g., APP1 and APP2).
  • Detecting signal errors, such as out-of-range values or sudden changes.

Key Functions of Level 1

Sensor and Signal Monitoring:

  • Validity checks of input data through cross-referencing.
    • Example: If APP1 and APP2 show a mismatch, a debouncing mechanism is activated (confirmation through re-measurement).
  • Checking signal range (e.g., ensuring sensor voltage is within acceptable limits).

Error Response Generation:

Errors are classified into two categories:

  • Assumed defective:
    • The error is considered temporary, and verification mechanisms are activated.
  • Confirmed defective:
    • Once the error is confirmed through a set number of measurements or a time delay logic, protective mechanisms are triggered.

Possible reactions include:

  • Torque limitation.
  • Switching to limp home mode.
  • Driver indication via warning lights.

Fuel Management:

  • Generating fuel injection signals:
    • Managing injection timing based on engine load and speed.
    • Ensuring consistency between requested and actual torque.

Examples of Level 1 Diagnostic Reactions

Throttle Pedal Error:

  • If a discrepancy occurs between APP1 and APP2 signals:
    • The system activates debouncing.
    • If the error is confirmed, engine power may be limited to a fixed percentage (e.g., 20% of maximum torque).

Incorrect Fuel Pressure Sensor Signal:

  • If an out-of-range signal is detected:
    • The system activates emergency mode.
    • Fuel is minimally dosed to prevent engine damage.

Torque Mismatch:

  • If the calculated torque exceeds predefined limits, the system restricts fuel delivery and signals an error.

System Resilience Details at Level 1

Debouncing:

  • Triggered when a signal goes out of bounds for a short time. The system waits for a specific period (e.g., 50 ms) before confirming the error.

EEPROM Storage:

  • Maximum debounce counter values are stored in EEPROM for each driving session, allowing error analysis even after the engine is turned off.

Connection with Other Levels

  • Level 1 sends data to Level 2 to verify allowable values (such as torque) and detect inconsistencies in calculations.
  • If Level 1 detects an error, the signal is sent to Level 3 for further verification and potential engine shutdown.

Level 2: Functional Monitoring


Level 2 is the intermediate layer in the monitoring system architecture, ensuring the verification of Level 1 operations. Its primary goal is to monitor the calculations of the functional software and detect anomalies in key parameters such as torque and the dynamic behavior of the engine.

Key Elements of Level 2

Functional Monitoring:

  • Observes the calculations and operations performed by the Level 1 functional controller.
  • Monitors values critical to safety, such as permissible torque.

Comparison of Calculated Torques:

  • Compares the calculated permissible torque with the actual torque generated by the engine.
  • Detects discrepancies and triggers protective reactions.

Data Flow Verification:

  • Monitors time dependencies in control operations to detect missing or incorrect signals.

Key Functions of Level 2

Torque Monitoring:

  • Calculates the limits of permissible torque based on the current engine condition, including:
    • Maximum and minimum allowable torque.
    • Normal operating mode relative to external conditions (e.g., temperature, pressure).
  • Compares the currently measured torque with the pre-calculated limits:
    • If the difference exceeds the permissible values, an error is signaled.

Engine Dynamics Monitoring:

  • Analyzes changes in key parameters such as torque and engine speed (RPM).
  • Monitors change gradients to detect sudden or unusual deviations.
    • Example: A sudden increase in torque not justified by input data.

Error Response:

  • Triggers a response when inconsistencies are detected between measured and calculated values.
  • Errors can be classified as:
    • Recoverable: The system adapts.
    • Critical: The engine is shut down.
  • Possible reactions include:
    • Torque limitation.
    • Emergency mode (“limp home”).
    • Engine shutdown in critical error cases.

System Dependency Monitoring:

  • Tracks dependencies between input signals (e.g., throttle position) and output data (torque).
  • Ensures that time dependencies between different operations remain within specification.

Architectural Components of Level 2

Permissible Torque Calculation Module:

  • Calculates real-time torque limits.
  • Includes safety mechanisms to prevent overload.

Input Data Sensors:

  • Data from the throttle pedal, fuel system pressure, engine speed, and other parameters are used for monitoring.

Value Comparison Module:

  • Compares current calculations with permissible limits.
  • Triggers an error if values do not match.

Error Reactions in Level 2

Types of Errors:

  • Torque limit errors:
    • If the measured torque exceeds the set limits, the system activates a protective response.
  • Torque gradient errors:
    • The system monitors the rate of change in torque. Sudden changes are considered errors.
  • Signal errors:
    • Inconsistencies in sensor data or calculations.

Example Reactions:

  • Power Limitation:
    • If an error is detected, engine power may be reduced to a specific limit (e.g., 50% of maximum).
  • Emergency Mode:
    • Switches the engine to minimal power mode to ensure safety.
  • Engine Shutdown:
    • In the case of a critical error, Level 2 may signal Level 3 to shut down the engine.

Example Scenario for Level 2 Operation

Situation: The driver presses the accelerator pedal for rapid acceleration.

Process:

  1. Level 1 calculates the requested torque based on input signals.
  2. Level 2 checks whether the requested torque aligns with the limits for the current engine state (e.g., maximum permissible torque).
  3. If the difference between calculated and measured torque exceeds the limits:
    • An error is triggered.
    • The system limits engine power.
    • The error is recorded in EEPROM for future diagnostics.

Relation to Level 1 and Level 3

  • Level 1 provides data such as measured torque and current input signals, which Level 2 uses for monitoring.
  • Level 3 uses information from Level 2 to generate a response for critical errors, such as engine shutdown or system restart.

Level 3: Controller Monitoring


Level 3 represents the highest level of monitoring in the system. It is an independent module that verifies the functionality and correct execution of program commands from the functional controller (Level 1) and functional monitoring (Level 2). The primary goal of Level 3 is to ensure overall system reliability by preventing critical failures.

Main Functions of Level 3

Monitoring via „Query-Response“ Methodology:

  • Level 3 utilizes an independent monitoring module (Monitoring Module – MM), which communicates with the functional controller (Function Controller – FC) through a sequence of queries and responses.
  • Both the response values and the execution time intervals are checked.

Error Testing:

  • MM deliberately generates errors in the values or response timing to test FC’s reaction.
  • If FC fails to respond correctly or within the specified time, the error is recorded.

Monitoring Autonomy:

  • MM has its own independent clock and hardware platform to ensure that FC errors do not affect monitoring.

Reactions to Critical Errors:

  • If errors exceed a certain threshold, Level 3 can trigger protective mechanisms such as engine shutdown or a hardware restart of the system.

Key Components of Level 3

Query-Response Module:

  • Sends pseudo-random queries to FC and expects a correct response within a specified time window.
  • Queries are encoded in a 4-bit format, which expands to a 32-bit structure for better diagnostics.

Timing Monitoring Module:

  • Measures the time between sending a query and receiving a response.
  • If the response is too early, too late, or missing, the error is recorded.

Error Management Module:

  • Maintains an error counter that increments with each incorrect or delayed response.
  • When the maximum error count is reached, the module can signal the engine controller to shut down.

Query-Response Methodology in Level 3

Operation Sequence:

  1. MM sends a query to FC via the SPI interface.
  2. FC generates a response based on the system’s current state and Level 1 and Level 2 calculations.
  3. The response is returned to MM for verification.

Response Verification:

  • Queries and expected responses are based on predefined values and pseudo-random codes.
  • MM compares the received responses with expected values and checks the arrival time.

Timing Window:

  • MM sets a timing window for a valid response, typically between 1.6 ms to 100.8 ms.
  • If the response arrives outside this window, an error is recorded.

Error Reactions in Level 3

Response Value Errors:

  • If FC sends an incorrect response (value outside expected limits), the error is recorded.
  • Example: Query „0x1“ should return „0xE1E1E1E1“, but FC returns a different value.

Response Timing Errors:

  • If FC sends a response outside the defined timing window (too early or too late), it is considered a timing error.
  • Example: MM sets a timing window of 75.2 ms, but the response arrives at 50 ms.

Incorrect Sequences:

  • If MM receives correct responses but in the wrong sequence, the system generates an error.

Error Counter Thresholds in Level 3

  • 0-4 errors: The system continues to operate normally, but errors are recorded for diagnostics.
  • 5-6 errors: Emergency mode is activated, potentially limiting power.
  • 7 errors: MM signals engine shutdown or initiates a hardware restart.

Example Scenario of Level 3 Operation

Situation:

  • The driver accelerates sharply, generating high torque.
  • MM sends a query to check permissible values.

Process:

  1. FC calculates a response based on current parameters (torque, speed, load).
  2. MM compares the response with expected values.

Error Handling:

  • If FC sends an incorrect response or does not respond within the timing window:
    • MM records the error.
    • If errors persist, the engine may be shut down.

Relation to Level 1 and Level 2

  • Level 1:
    • Performs basic calculations and sends primary data to Level 3.
  • Level 2:
    • Provides verified values (e.g., allowable torque), which Level 3 uses to check FC accuracy.

Overall Objectives of the Three Levels


  • The monitoring system is designed to detect both individual and combined errors to ensure safe engine operation.
  • Errors are categorized before reactions are triggered to avoid unnecessary disruptions.
  • Each level adds a layer of protection and verification, making the system more fault-resistant.

Level 3 is a critical component that ensures safety and reliability in the system through independent monitoring and verification. It guarantees that errors in Level 1 and Level 2 do not lead to uncontrolled system reactions.