DEENESPTFRRUARHIKOZHNL

class apext::phm::WatchdogInterface

[SWS_PHM_01257] Upstream: RS_PHM_00101

class WatchdogInterface {...};

class for interface to hardware watchdog Note: class WatchdogInterface although identifiable in code as an interface, it is a PlatformExtension - i.e. no modelled interface - nothing to do here

Header-Datei#include "apext/phm/watchdog_interface.h"
Forwarding-Header#include "apext/phm/phm_fwd.h"
Scopenamespace apext::phm

User GuideAI-GENERATED

Connects hardware watchdog control and error reaction to Platform Health Management.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: ead3ce845973 Provenance Open questions (3)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Connects hardware watchdog control and error reaction to Platform Health Management.

As a platform extension, the class apext::phm::WatchdogInterface forms the interface between Platform Health Management and the physical hardware watchdog. During normal operation, the PHM cyclically notifies the interface via AliveNotification(), whereby the interface must independently trigger a watchdog reaction if the notification fails to arrive [SWS_PHM_01255]. In the event of critical system errors, the PHM can also directly force an error reaction of the watchdog hardware via FireWatchdogReaction() [SWS_PHM_01256]. As a key constraint, both methods are specified as thread-safe, but not exception-safe.

Context

In the Platform Health Management (PHM) of AUTOSAR Adaptive, the C++ class apext::phm::WatchdogInterface represents the interface to the physical watchdog hardware. As a platform extension (PlatformExtension), it does not represent a modeled AUTOSAR port interface, but serves as a vendor-specific bridge between the PHM service and the underlying hardware. The PHM monitors the execution of processes and platform components. To also reliably safeguard against a failure or blockage of the PHM itself, the WatchdogInterface connects the external or internal hardware monitoring. Via the method AliveNotification(), the PHM cyclically reports its functionality to the interface [SWS_PHM_01255]. If a critical system error occurs, the PHM can specifically request the hardware-side error reaction via the function FireWatchdogReaction() [SWS_PHM_01256].

WatchdogKontext PHM PHM WatchdogInterface WatchdogInterface PHM->WatchdogInterface AliveNotification() / FireWatchdogReaction() HardwareWatchdog HardwareWatchdog WatchdogInterface->HardwareWatchdog Triggerung / Watchdog-Reaktion

Context diagram: Integration of the WatchdogInterface between PHM and hardware watchdog. Sources: [SWS_PHM_01255], [SWS_PHM_01256]

Lifecycle

Since apext::phm::WatchdogInterface functions as a platform extension, the instantiation of the interface implementation and the connection to the hardware driver are likely to occur in a platform-specific manner during the initialization of the PHM service. Question Q-c2235d5c87e0a675 (open) The lifetime of the instance is typically tied to the runtime of the PHM, so that no dynamic life cycle with multiple creation or destruction during platform operation is intended. Regarding concurrency, both interface functions AliveNotification() and FireWatchdogReaction() are explicitly declared as thread-safe (thread-safe) [SWS_PHM_01255], [SWS_PHM_01256]. This allows the PHM to pass keep-alive signals and error messages from different internal worker threads to the watchdog interface in parallel and without caller-side synchronization.

Usage Path

The typical interaction between the PHM and the interface is divided into the regular monitoring cycle and error escalation:

  • Cyclic keep-alive reporting: The PHM calls AliveNotification() repeatedly within a configured cycle time [SWS_PHM_01255]. This cycle time does not have to match the real trigger period of the hardware; the implementation presumably buffers or scales the intervals internally for controlling the physical watchdog [SWS_PHM_01255]. Question Q-a6c08f102f09c8c1 (open)
  • Hardware triggering: Given regular messages, the WatchdogInterface ensures timely servicing of the hardware watchdog unit.
  • Targeted error indication: If the PHM detects an unrecoverable state in the monitored entities, it immediately calls FireWatchdogReaction() [SWS_PHM_01256].
Cyclic monitoring and triggering of the watchdog reactionPHMWatchdogInterfaceHardware-WatchdogUse Case: Regular monitoring cycleloopKonfigurierte ZykluszeitAliveNotification()Hardware-Watchdog bedienenUse Case: FehlerfallaltPHM fordert Fehlerreaktion anFireWatchdogReaction()Trigger watchdog reactionAlive notification fails to arrive (timeout)Timeout erkennenTrigger watchdog reaction

Sequence diagram: Regular keep-alive transmission and triggering of the watchdog reaction. Sources: [SWS_PHM_01255], [SWS_PHM_01256]

Error Scenarios

The interface supports two complementary mechanisms for handling system failures:

On the one hand, a passive absence of messages leads to a system reaction: If the PHM does not report via AliveNotification() within the configured time span, the WatchdogInterface is obliged to autonomously initiate the watchdog reaction [SWS_PHM_01255]. In this way, crashes or deadlocks of the PHM service itself are reliably intercepted by the hardware.

On the other hand, the active error path exists: Via the explicit call to FireWatchdogReaction(), a defined error reaction of the watchdog is triggered [SWS_PHM_01256]. In both cases, the final effect at system level is likely to typically consist of a hardware reset or a transition into a safe state. Question Q-817baa072cc94a19 (open)

Regarding the error behavior in code, both member functions are specified as not exception-safe (not exception safe) [SWS_PHM_01255], [SWS_PHM_01256]. The calling component can therefore rely on no exception handling guarantees, and the implementation of the interface must not emit any unhandled C++ exceptions.

This guide summarizes the specification of apext::phm::WatchdogInterface according to AUTOSAR Adaptive R25-11.

UML class diagram

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G napext__phm__WatchdogInterface47 WatchdogInterface + AliveNotification() + FireWatchdogReaction()

Methods

Called cyclically by PHM in configurable cycle time. Note: This time might differ from the cycle time of triggering the "real" hardware watchdog. If PHM does not report aliveness in configured time, WatchdogInterface shall initiate watchdog reaction

void AliveNotification ();

Interface to fire an error reaction of the Watchdog.

void FireWatchdogReaction ();

Method documentation

function AliveNotification [SWS_PHM_01255] Upstream: RS_PHM_00101, RS_PHM_09240

void AliveNotification ();

Called cyclically by PHM in configurable cycle time. Note: This time might differ from the cycle time of triggering the "real" hardware watchdog. If PHM does not report aliveness in configured time, WatchdogInterface shall initiate watchdog reaction

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: cb75c45d42c3 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The function AliveNotification from header apext/phm/watchdog_interface.h belongs to class apext::phm::WatchdogInterface and is used for cyclic aliveness monitoring of the Platform Health Management (PHM) [SWS_PHM_01255]. The interface has the signature void AliveNotification(), takes no parameters, and returns no value [SWS_PHM_01255].

Call Context and Timing Behavior

The call to AliveNotification is performed periodically by the PHM in a configurable cycle time [SWS_PHM_01255]. This call frequency is logically decoupled from the actuation of the actual physical hardware watchdog, so that the configured period of the PHM can deviate from the trigger time of the hardware watchdog [SWS_PHM_01255].

Error Response and Failure Scenarios

If the PHM does not successfully report its aliveness within the time interval configured for it, the WatchdogInterface is instructed to initiate a watchdog recovery action [SWS_PHM_01255]. Specific error codes are not provided. Interpretation: Since the interface is classified as not exception-safe, unexpected error conditions will likely be propagated as C++ exceptions into the caller context [SWS_PHM_01255]. Question Q-a9e59a992db9913f (open)

Concurrency and Exception Safety

The function is specified as thread-safe (thread-safe), which is why parallel accesses are permitted, but is considered not exception-safe (not exception safe) [SWS_PHM_01255].

This text was created by an AI and summarizes the specification status of AUTOSAR Adaptive R25-11.

Header-Datei#include "apext/phm/watchdog_interface.h"
Scopeclass apext::phm::WatchdogInterface
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01255
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01255@rel:R25-11#756ef89a
Content hash
756ef89a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01255
Status: valid/unmigrated Version: rel:R25-11#3204f230 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01255@rel:R25-11#3204f230
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#756ef89a2026-09-30
  • R24-11rel:R24-11#b0affe0c2026-10-14
  • R25-11rel:R25-11#3204f2302026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function FireWatchdogReaction [SWS_PHM_01256] Upstream: RS_PHM_00101

void FireWatchdogReaction ();

Interface to fire an error reaction of the Watchdog.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 28a89e0724c4 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The function FireWatchdogReaction serves as a dedicated interface within the Platform Health Management (PHM) module to specifically trigger an error response of the watchdog [SWS_PHM_01256]. It is assigned to the scope of class apext::phm::WatchdogInterface and is provided via the header file apext/phm/watchdog_interface.h [SWS_PHM_01256].

When using it, the following aspects must be observed:

  • Invocation and Interface: With the signature void FireWatchdogReaction ();, the function takes no parameters and returns no value [SWS_PHM_01256]. The call immediately triggers the error response of the watchdog.
  • Concurrency: The operation is specified as thread-safe [SWS_PHM_01256]. It may consequently be called concurrently from multiple threads without additional external synchronization.
  • Exception Safety and Error Handling: The function is declared as not exception safe [SWS_PHM_01256]. Interpretation: Since no exception safety is guaranteed, exceptions occurring in the event of an error are likely propagated directly to the caller, which is why the caller should be prepared for possible exceptions. Question Q-f53d689332369cd7 (open)

The function thus provides a standardized access point to actively intervene in the behavior of the watchdog in the event of severe errors and set defined protective measures into motion [SWS_PHM_01256].

This text was generated by an AI. It is based on AUTOSAR Adaptive R25-11.

Header-Datei#include "apext/phm/watchdog_interface.h"
Scopeclass apext::phm::WatchdogInterface
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01256
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01256@rel:R25-11#8b20aac1
Content hash
8b20aac1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01256
Status: valid/unmigrated Version: rel:R25-11#9d382947 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01256@rel:R25-11#9d382947
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#8b20aac12026-09-30
  • R24-11rel:R24-11#e80c13872026-10-14
  • R25-11rel:R25-11#9d3829472026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill