Watchdog Autosar Stack

Watchdog Autosar Stack

What is watchdog timer?

  • It is an electronic timer that used to detect and recover from computer malfunctions or any issue happens in software.

How it works?

  • During normal Operation, The computer regularly resets the watchdog timer to prevent it from timing out.

No alt text provided for this image

What if any issue happened in software due to a hardware fault or a program error?

  • The computer fails to reset the watchdog, the timer will generate a timeout signal.
  • The timeout signal is used to initiate corrective actions.

Watchdog Stack Architecture:

No alt text provided for this image

  • The need to monitor the running SW and to take one or more recovery action in case of detected failure.
  • WdgM is responsible for that which located in the AUTOSAR service layer.
  • WdgM need to communicate to either an internal or external watchdog .
  • And if many WDG devices are used to enable the WdgM to select between them through Wdgif.
  • WDG initialize or edit wdg hardware registers, and to refresh the wdg.
  • We need to communicate with external wdg device through Dio pin or SPI.

AUROSAR Watchdog concepts:

Supervision function: Defines the way that WdgM monitors the SW.

Supervision types:

1/ Alive Supervision for periodicity monitoring (SW aliveness)

  • Kind of supervision that checks if a supervised entity executed sufficiently often and not too often (including tolerances).
  • Timing focus (Check SW time rate) based on configurations.

2/ Deadline Supervision for execution time monitoring

  • Kind of supervision that checks if the execution time between to checkpoints are lower than a given upper execution time limit.
  • Timing focus.

3/ Logical Supervision (Internal and external): Program flow monitoring

  • Kind of supervision that checks if the software is executer in the sequence defined by the programmer.
  • Logical Sequence Focus.

Supervised Entity: is the unit of supervision for the WdgM:

Examples of a SE:

  1. Feature.
  2. Function in a BSW Module or SW-Check.
  3. Entire BSW Module.
  4. Entire SW-C.

  • There maybe zero, one or more supervised entities in a software component(SW-C) or BSW module.
  • Each supervised entity can be supervised by a different supervision function or a combination of them.

Checkpoint: is a point in the control flow of a SE where the activity is reported to the WdgM.

A supervised entity is defined by 1 or more checkpoints.

No alt text provided for this image

Watchdog mode:

In the context of the watchdog manger a mode is defined by:

1/ Set of supervised entities (SEs).

2/ Set of Alive supervisions.

3/ Set of Deadline supervisions.

4/ Set of Logical Supervisions.

Supervision Cycle: is the period at which Wdgm_MainFunction is called.

No alt text provided for this image

要查看或添加评论,请登录

Ashraf Asaad Khaled的更多文章

  • Shoe-Wearing Robot's No Flatfoot — It Walks Like a Person

    Shoe-Wearing Robot's No Flatfoot — It Walks Like a Person

    A bipedal robot can now put its best foot forward, stepping with a heel-toe motion that copies human locomotion more…

  • Iris Scans to Replace Fingerprints

    Iris Scans to Replace Fingerprints

    FBI officials have scanned the irises of nearly 460,000 people in a pilot program that may soon replace fingerprints…

  • Smartphone-Connected Contact Lenses Give New Meaning to 'Eye Phone'

    Smartphone-Connected Contact Lenses Give New Meaning to 'Eye Phone'

    Apps allow you to link your smartphone to anything from your shoes, to your jewelry, to your doorbell — and soon, you…

  • Li-Fi

    Li-Fi

    What is Li-Fi technology? Li-Fi technology is a ground-breaking light-based communication technology, which makes use…

社区洞察

其他会员也浏览了