DEENESPTFRRUARHIKOZHNL

struct ara::diag::CounterBased

[SWS_DM_00538] Upstream: RS_Diag_04068

struct CounterBased {...};

Represents the parameters for counter-based debouncing.

Header-Datei#include "ara/diag/monitor_types.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopenamespace ara::diag

User GuideAI-GEGENEREERD

Configureert drempelwaarden, stapgroottes en sprongwaarden voor de tellergebaseerde ontdendering van monitors.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 60957358c6ec Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Configureert drempelwaarden, stapgroottes en sprongwaarden voor de tellergebaseerde ontdendering van monitors.

De structuur ara::diag::CounterBased definieert de drempelwaarden, stapgroottes en sprongparameters voor de tellergebaseerde ontdendering van diagnostische gebeurtenissen [SWS_DM_00538]. Deze wordt door de applicatie geïnstantieerd en meegegeven aan de constructor van ara::diag::Monitor om de criteria voor fout- en goed-kwalificatie vast te leggen [SWS_DM_00549]. Diagnostic Management gebruikt deze parameters voor het bijwerken van de teller, voor zover er in het Diagnostic Extract (DEXT) geen voorranghebbende ontdendergegevens zijn vastgelegd.

Context

De structuur ara::diag::CounterBased representeert de configuratieparameters voor de tellergebaseerde ontdendering van diagnostische gebeurtenissen [SWS_DM_00538] conform de specificatie van het AUTOSAR Adaptive Platform SWS Diagnostics §7.3.4.1.5.1 “Counter-based debouncing”. Binnen het diagnosesubsysteem dient deze voor de uitwisseling van ontdenderparameters tussen de toepassende monitorimplementatie en Diagnostic Management (DM).

De interactie verloopt in wezen via vier interfacepartners:

CounterBasedContext Application Diagnostic Application CounterBased ara::diag::CounterBased Application->CounterBased konfiguriert Monitor ara::diag::Monitor Application->Monitor erzeugt CounterBased->Monitor uebergibt Parameter DM Diagnostic Management Monitor->DM meldet Aktionen DEXT DEXT Konfiguration DEXT->DM konfiguriert vorrangig

Contextdiagram: samenspel van applicatie, monitor, CounterBased, Diagnostic Management en DEXT. Bronnen: [SWS_DM_00538], [SWS_DM_00549], [SWS_DM_01099], [SWS_DM_01101].

Levenscyclus

Als C++-datastructuur (struct) SWS Diagnostics §8.41.2 “Struct: CounterBased” wordt CounterBased als pure waardecontainer door de toepassende softwarecomponent op de stack of heap gecreëerd. De levenscyclus ervan is typisch beperkt tot de configuratie- en initialisatiefase vóór het creëren van de ara::diag::Monitor.

Nadat de attributen zijn gedefinieerd, wordt de structuur op waarde doorgegeven aan de constructor van Monitor [SWS_DM_00549]. De structuur zelf houdt geen interne dynamische toestand bij en bezit geen toestandsmachine; het doorlopende tellerbeheer berust uitsluitend bij Diagnostic Management. Aangezien CounterBased is ontworpen als passieve datastructuur en geen interne synchronisatiemechanismen bezit, dient de configuratie naar interpretatie vóór de overdracht aan de monitor thread-lokaal of gesynchroniseerd plaats te vinden.

Gebruikspad

Het typische gebruik valt uiteen in het definiëren van de ontdenderparameters, de overdracht aan de monitor en de tellerevaluatie tijdens runtime:

  1. De applicatie creëert een instantie van CounterBased en vult de grenswaarden in: failedThreshold voor de foutkwalificatie [SWS_DM_00621] en passedThreshold voor de goed-detectie [SWS_DM_00622].
  2. De stapgroottes worden via failedStepsize voor gemelde fouttoestanden [SWS_DM_00623] en passedStepsize voor goedmeldingen [SWS_DM_00624] gedefinieerd.
  3. Optioneel worden sprongsgewijze aanpassingen geconfigureerd: via useJumpToFailed [SWS_DM_00627] en failedJumpValue [SWS_DM_00625] wordt het springen naar een minimale foutwaarde geactiveerd. Analoog sturen useJumpToPassed [SWS_DM_00628] en passedJumpValue [SWS_DM_00626] sprongen in de richting van de goed-toestand aan.
  4. De gevulde structuur wordt doorgegeven aan de constructor van Monitor [SWS_DM_00549]. Voor zover er geen DEXT-definities aanwezig zijn, gebruikt DM deze waarden [SWS_DM_01101].
  5. Tijdens runtime meldt de bewaking monitoracties via ReportMonitorAction SWS Diagnostics §7.3.4.1.5.1 “Internal debounce counter incrementation”. Bij kPrefailed controleert DM eventuele sprongvoorwaarden [SWS_DM_00022] en verhoogt deze de teller met failedStepsize [SWS_DM_00875].
  6. Bereikt de teller failedThreshold, dan classificeert DM de gebeurtenis als kFinallyDefective [SWS_DM_00024]. Overeenkomstigs geldt voor goedmeldingen middels passedStepsize [SWS_DM_00876].
Initialisatie en tellergebaseerde ontdenderingApplicationCounterBasedMonitorDiagnostic ManagementUse Case: Parameterconfiguratie en monitorcreatieDrempelwaarden, stappen en sprongwaarden instellenMonitor(specifier, notifier, counterBased)altDEXT-Parameter vorhandenDEXT-Werte nutzen (CounterBased ignoriert)Geen DEXT-parameters aanwezigCounterBased-Werte verwendenUse Case: Laufzeit-EntprellungReportMonitorAction(kPrefailed)Ereignisstatus aktualisierenoptuseJumpToFailed == true && Zaehler < failedJumpValueTeller op failedJumpValue instellenZaehler um failedStepsize inkrementierenoptZaehler >= failedThresholdTeller op failedThreshold begrenzenStatus kFinallyDefective setzen

Sequentiediagram: verloop van parameterconfiguratie en monitorinitialisatie tot aan de tellerkwalificatie. Bronnen: [SWS_DM_00549], [SWS_DM_00875], [SWS_DM_00022], [SWS_DM_00024].

Foutscenario's

Bij het gebruik van CounterBased moet rekening worden gehouden met diverse randvoorwaarden en voorrangsregels:

  • DEXT-voorrangsconflict: Wanneer er in het DEXT ontdenderparameters aanwezig zijn, negeert DM de in CounterBased gedefinieerde parameters volledig [SWS_DM_01099]. Een misconfiguratie ontstaat wanneer applicatieontwikkelaars een dynamische parameterwijziging via de constructor verwachten, hoewel statische DEXT-waarden actief zijn.
  • Ontbrekende DEXT-waarden: Ontbreken gegevens in het DEXT, dan is DM er dwingend op aangewezen dat de constructor een geldige CounterBased-instantie ter beschikking stelt [SWS_DM_01101].
  • Drempeloverschrijding: Stijgt de interne ontdenderteller door de optelling van failedStepsize boven de drempelwaarde failedThreshold, dan zet DM de teller exact terug op deze drempelwaarde en kwalificeert deze het defect [SWS_DM_00024], [SWS_DM_00875].
  • Voorwaardelijke spronglogica: Is useJumpToFailed ingesteld, dan wordt de sprong naar failedJumpValue alleen uitgevoerd wanneer de tellerstand vóór de verhoging strikt kleiner is dan failedJumpValue [SWS_DM_00022]. Voor useJumpToPassed geldt analoog dat de teller groter moet zijn dan passedJumpValue [SWS_DM_00023].

Deze handleiding is gebaseerd op de specificatie AUTOSAR Adaptive Platform R25-11 en vat de eisen aan tellergebaseerde ontdendering samen.

Ledenkaart

Klassendiagram

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

G nara__diag__CounterBased25 «struct» CounterBased + failedJumpValue + failedStepsize + failedThreshold + passedJumpValue + passedStepsize + passedThreshold + useJumpToFailed + useJumpToPassed

Detailweergave

Kies een item in de inhoudsopgave.

Constanten

failedJumpValue variabele

failed to jump value

std::int16_t failedJumpValue;
failedStepsize variabele

Stepsize per pre-failed report.

std::uint16_t failedStepsize;
failedThreshold variabele

Threshold until qualified failed.

std::int16_t failedThreshold;
passedJumpValue variabele

passed to jump value

std::int16_t passedJumpValue;
passedStepsize variabele

Stepsize per pre-passed report.

std::uint16_t passedStepsize;
passedThreshold variabele

Threshold until qualified passed.

std::int16_t passedThreshold;
useJumpToFailed variabele

is jump supported

bool useJumpToFailed;
useJumpToPassed variabele

is jump supported

bool useJumpToPassed;

Documentatie van constanten / variabelen

variabele failedJumpValue [SWS_DM_00625] Upstream: RS_Diag_04068

std::int16_t failedJumpValue;

failed to jump value

Header-Datei#include "ara/diag/monitor_types.h"
Scopestruct ara::diag::CounterBased
SymbolfailedJumpValue
Typstd::int16_t

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

Record
AUTOSAR/AP/record/SWS_DM_00625
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00625@rel:R25-11#b69cd25a
Content hash
b69cd25a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00625
Status: valid/unmigrated Version: rel:R25-11#dce9c004 Versionshistorie & Revisions (1 transition, 7 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_DM_00625@rel:R25-11#dce9c004
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#3d8ec9702026-09-30
  • R20-11rel:R20-11#f08528012026-10-14
  • R21-11rel:R21-11#3d8d66772026-10-14
  • R22-11rel:R22-11#4e10bb362026-10-14
  • R23-11rel:R23-11#dce9c0042026-10-14
  • R24-11rel:R24-11#dce9c0042026-10-14
  • R25-11rel:R25-11#dce9c0042026-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

variabele failedStepsize [SWS_DM_00623] Upstream: RS_Diag_04068

std::uint16_t failedStepsize;

Stepsize per pre-failed report.

Header-Datei#include "ara/diag/monitor_types.h"
Scopestruct ara::diag::CounterBased
SymbolfailedStepsize
Typstd::uint16_t

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

Record
AUTOSAR/AP/record/SWS_DM_00623
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00623@rel:R25-11#4db2fd51
Content hash
4db2fd51
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00623
Status: valid/unmigrated Version: rel:R25-11#dafec4f4 Versionshistorie & Revisions (1 transition, 7 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_DM_00623@rel:R25-11#dafec4f4
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#d4a093e42026-09-30
  • R20-11rel:R20-11#d8c07df52026-10-14
  • R21-11rel:R21-11#00dbada62026-10-14
  • R22-11rel:R22-11#ad00343e2026-10-14
  • R23-11rel:R23-11#dafec4f42026-10-14
  • R24-11rel:R24-11#dafec4f42026-10-14
  • R25-11rel:R25-11#dafec4f42026-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

variabele failedThreshold [SWS_DM_00621] Upstream: RS_Diag_04068

std::int16_t failedThreshold;

Threshold until qualified failed.

Header-Datei#include "ara/diag/monitor_types.h"
Scopestruct ara::diag::CounterBased
SymbolfailedThreshold
Typstd::int16_t

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

Record
AUTOSAR/AP/record/SWS_DM_00621
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00621@rel:R25-11#504bb3a7
Content hash
504bb3a7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00621
Status: valid/unmigrated Version: rel:R25-11#08353fef Versionshistorie & Revisions (1 transition, 7 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_DM_00621@rel:R25-11#08353fef
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#c3037cc02026-09-30
  • R20-11rel:R20-11#25e7cfaa2026-10-14
  • R21-11rel:R21-11#196f4ac32026-10-14
  • R22-11rel:R22-11#6af287f12026-10-14
  • R23-11rel:R23-11#08353fef2026-10-14
  • R24-11rel:R24-11#08353fef2026-10-14
  • R25-11rel:R25-11#08353fef2026-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

variabele passedJumpValue [SWS_DM_00626] Upstream: RS_Diag_04068

std::int16_t passedJumpValue;

passed to jump value

Header-Datei#include "ara/diag/monitor_types.h"
Scopestruct ara::diag::CounterBased
SymbolpassedJumpValue
Typstd::int16_t

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

Record
AUTOSAR/AP/record/SWS_DM_00626
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00626@rel:R25-11#bcebfdc7
Content hash
bcebfdc7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00626
Status: valid/unmigrated Version: rel:R25-11#ced89aeb Versionshistorie & Revisions (1 transition, 7 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_DM_00626@rel:R25-11#ced89aeb
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#48fa9fd72026-09-30
  • R20-11rel:R20-11#bca12a352026-10-14
  • R21-11rel:R21-11#ffcfafd22026-10-14
  • R22-11rel:R22-11#06c86bc12026-10-14
  • R23-11rel:R23-11#ced89aeb2026-10-14
  • R24-11rel:R24-11#ced89aeb2026-10-14
  • R25-11rel:R25-11#ced89aeb2026-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

variabele passedStepsize [SWS_DM_00624] Upstream: RS_Diag_04068

std::uint16_t passedStepsize;

Stepsize per pre-passed report.

Header-Datei#include "ara/diag/monitor_types.h"
Scopestruct ara::diag::CounterBased
SymbolpassedStepsize
Typstd::uint16_t

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

Record
AUTOSAR/AP/record/SWS_DM_00624
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00624@rel:R25-11#c1c27fd0
Content hash
c1c27fd0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00624
Status: valid/unmigrated Version: rel:R25-11#9a3eeb83 Versionshistorie & Revisions (1 transition, 7 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_DM_00624@rel:R25-11#9a3eeb83
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#fe1d69922026-09-30
  • R20-11rel:R20-11#1453700f2026-10-14
  • R21-11rel:R21-11#c63f63342026-10-14
  • R22-11rel:R22-11#4d2e11a52026-10-14
  • R23-11rel:R23-11#9a3eeb832026-10-14
  • R24-11rel:R24-11#9a3eeb832026-10-14
  • R25-11rel:R25-11#9a3eeb832026-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

variabele passedThreshold [SWS_DM_00622] Upstream: RS_Diag_04068

std::int16_t passedThreshold;

Threshold until qualified passed.

Header-Datei#include "ara/diag/monitor_types.h"
Scopestruct ara::diag::CounterBased
SymbolpassedThreshold
Typstd::int16_t

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

Record
AUTOSAR/AP/record/SWS_DM_00622
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00622@rel:R25-11#c1c772a7
Content hash
c1c772a7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00622
Status: valid/unmigrated Version: rel:R25-11#24f4cdaa Versionshistorie & Revisions (1 transition, 7 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_DM_00622@rel:R25-11#24f4cdaa
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#ce4c070e2026-09-30
  • R20-11rel:R20-11#a6d5e9c72026-10-14
  • R21-11rel:R21-11#72e5c6f22026-10-14
  • R22-11rel:R22-11#8565f7cc2026-10-14
  • R23-11rel:R23-11#24f4cdaa2026-10-14
  • R24-11rel:R24-11#24f4cdaa2026-10-14
  • R25-11rel:R25-11#24f4cdaa2026-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

variabele useJumpToFailed [SWS_DM_00627] Upstream: RS_Diag_04068

bool useJumpToFailed;

is jump supported

Header-Datei#include "ara/diag/monitor_types.h"
Scopestruct ara::diag::CounterBased
SymboluseJumpToFailed
Typbool

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

Record
AUTOSAR/AP/record/SWS_DM_00627
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00627@rel:R25-11#88a0e2ff
Content hash
88a0e2ff
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00627
Status: valid/unmigrated Version: rel:R25-11#3b6a9b1e Versionshistorie & Revisions (1 transition, 7 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_DM_00627@rel:R25-11#3b6a9b1e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#4e142f5c2026-09-30
  • R20-11rel:R20-11#500659252026-10-14
  • R21-11rel:R21-11#b0c513c82026-10-14
  • R22-11rel:R22-11#fa011c9a2026-10-14
  • R23-11rel:R23-11#3b6a9b1e2026-10-14
  • R24-11rel:R24-11#3b6a9b1e2026-10-14
  • R25-11rel:R25-11#3b6a9b1e2026-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

variabele useJumpToPassed [SWS_DM_00628] Upstream: RS_Diag_04068

bool useJumpToPassed;

is jump supported

Header-Datei#include "ara/diag/monitor_types.h"
Scopestruct ara::diag::CounterBased
SymboluseJumpToPassed
Typbool

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

Record
AUTOSAR/AP/record/SWS_DM_00628
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00628@rel:R25-11#6819259c
Content hash
6819259c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00628
Status: valid/unmigrated Version: rel:R25-11#6b5a1179 Versionshistorie & Revisions (1 transition, 7 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_DM_00628@rel:R25-11#6b5a1179
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#2b7444452026-09-30
  • R20-11rel:R20-11#a21e0a812026-10-14
  • R21-11rel:R21-11#fac6d4792026-10-14
  • R22-11rel:R22-11#a2c3b6d22026-10-14
  • R23-11rel:R23-11#6b5a11792026-10-14
  • R24-11rel:R24-11#6b5a11792026-10-14
  • R25-11rel:R25-11#6b5a11792026-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