DEENESPTFRRUARHIKOZHNL

命名空间 ara::com::e2e

用户指南人工智能生成

为自适应通信的端到端保护提供类型、校验状态和错误域。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9f0a97d88379 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

为自适应通信的端到端保护提供类型、校验状态和错误域。

命名空间 ara::com::e2e 定义了用于自适应通信端到端保护的类型、状态和错误代码。使用端应用程序根据 ProfileCheckStatus 和 SMState 评估接收到的数据样本,并且仅当存在状态 kValid 时才允许使用数据 ([SWS_CM_90422])。在提供端,可以通过 TransportFaultConditionHandler 监控截止时间冲突或数据包丢失等错误 ([SWS_CM_00091])。错误状态通过错误域 ComE2EErrorDomain 进行标准化映射。

上下文

命名空间 ara::com::e2e 为 AUTOSAR Adaptive 通信模块中的端到端保护 (E2E) 提供数据类型、状态枚举和错误处理结构。其主要任务是在应用层和传输层透明且标准化地检测传输错误和数据完整性错误。

在通信架构内部,该命名空间与多个关键组件进行交互:

  • 服务提供者(Skeleton):在提供端,可以通过函数指针监控传输的错误情况。类型 TransportFaultConditionHandler ([SWS_CM_00092]) 允许针对 Skeleton 的所有方法 (AUTOSAR_AP_EXP_SWArchitecture 第68页) 以及单个 Skeleton 字段的 Getter 和 Setter 调用 (AUTOSAR_AP_EXP_SWArchitecture 第69页) 注册和注销相应的监控回调。
  • 消费者与事件数据(SamplePtr):在消费者端,接收到的数据样本会接受 E2E 校验。单个样本的校验结果通过 ProfileCheckStatus 映射 ([SWS_CM_90421]),而监控的总体状态通过 SMState 记录 ([SWS_CM_90422])。
  • 错误处理:错误域 ComE2EErrorDomain (AUTOSAR_AP_EXP_ARAComAPI 第9页) 和关联的错误代码 ComE2EErrc ([SWS_CM_10474]) 将 E2E 错误无缝集成到 ara::core 的错误架构模型中。类 ComE2EException 用于异常处理。
E2EContext Skeleton ara::com::Skeleton E2ENamespace ara::com::e2e Skeleton->E2ENamespace registriert TransportFaultConditionHandler SamplePtr ara::com::SamplePtr SamplePtr->E2ENamespace 返回 ProfileCheckStatus 与 SMState Application 应用 Application->E2ENamespace erzeugt Fehlercodes via MakeErrorCode Application->SamplePtr 检查 E2E 状态

上下文图:服务提供者(Skeleton)、样本管理(SamplePtr)与错误域 ara::com::e2e 的交互。来源:AUTOSAR_AP_EXP_SWArchitecture 第68页、[SWS_CM_90421]、[SWS_CM_10474]。

生命周期与状态监控

E2E 监控具有基于状态的生命周期阶段,该阶段与通过事件接收数据样本相耦合。状态由枚举 SMState 表示 ([SWS_CM_90422]):

  • kInit:初始化后,尚无足够数量通过 E2E 校验的数据样本;不得使用样本。
  • kValid:根据 E2E 校验,数据样本通信正常工作;允许消费样本。
  • kInvalid:在 E2E 时间窗口内接收到的无错误样本太少,或错误样本过多;不得使用样本。
  • kNoData:尚未从发布者处接收到任何数据。
  • kStateMDisabled:E2E 状态机已被管理性禁用。
  • kIncompatibleQoS:两个通信端点配置的服务质量策略 (QoS) 不匹配。

与此同时,ProfileCheckStatus 提供单个数据样本的周期状态 ([SWS_CM_90421]):除成功状态 kOk 外,校验还能区分计数器重复 (kRepeated)、不允许的计数器跳变 (kWrongSequence) 以及数据校验错误 (kError,如 CRC、长度或 Data-ID 错误)。当校验被禁用时,返回 kCheckDisabled。

作为数据处理的基本前提条件:应用程序仅当 SMState == kValid 成立且数据样本的校验 (GetProfileCheckStatus) 未导致错误 (kError) 时,才可以使用接收到的数据样本 ([SWS_CM_90422])。

使用路径

典型的使用路径涵盖消费者端接收到的事件数据校验以及提供端传输错误通知的配置:

  1. 数据样本状态查询:通过 ara::com::SamplePtr 接收到数据样本后,使用端应用程序调用 GetProfileCheckStatus() 以确定该样本的特定校验结果 ([SWS_CM_90421])。
  2. 监控状态检查:应用程序调用 GetSMState() 以查询 E2E 状态机的聚合状态 ([SWS_CM_90422])。
  3. 处理或错误处理:如果存在 SMState == kValid 且未报告错误,则进行有效负载数据处理 ([SWS_CM_90422])。否则,通过标准化错误结构处理 E2E 错误或通过 MakeErrorCode 向后传递 ([SWS_CM_12511])。
  4. Skeleton 上的传输错误处理:服务提供者注册一个 TransportFaultConditionHandler 以监控其方法和字段操作 ([SWS_CM_00092], AUTOSAR_AP_EXP_SWArchitecture 第68页, AUTOSAR_AP_EXP_SWArchitecture 第69页)。发生与传输相关的错误时,将使用相应的 TransportFaultCondition 调用回调 ([SWS_CM_00091])。
E2E 校验流程与错误处理应用SamplePtrara::com::e2eGetProfileCheckStatus()ProfileCheckStatus (z. B. kOk)GetSMState()SMState (z. B. kValid)altSMState == kValid && Status != kErrorSample-Daten verarbeiten无效状态或 E2E 错误MakeErrorCode(ComE2EErrc, ...)ara::core::ErrorCode

时序图:用于校验接收到的数据样本及错误处理的调用顺序。来源:[SWS_CM_90421]、[SWS_CM_90422]、[SWS_CM_12511]。

错误场景

在发生错误时,该命名空间提供两种独立的机制,用于映射不同的错误源:

传输错误通过枚举 TransportFaultCondition 进行信号通知 ([SWS_CM_00091]):

  • kSampleRejected:由于端点处的资源耗尽,数据样本在第 4 层或更高层被丢弃。
  • kDeadlineMissed:数据样本已超出其配置的截止时间间隔(Deadline)。
  • kSampleLost:检测到数据样本丢失(例如序列号中存在间隙)。

E2E 转换的协议和校验错误通过 ComE2EErrc 进行分类 ([SWS_CM_10474])。这些错误代码包括计数器重复 (kRepeated)、超出允许增量的计数器跳变 (kWrongSequence)、CRC/长度错误 (kError)、缺少新数据 (kNoNewData) 以及远程服务错误 (kUnspecifiedE2EError)。函数 MakeErrorCode 用于构造类型 ara::core::ErrorCode 的实例 ([SWS_CM_12511]),而 GetComE2EErrorDomain 返回对 ComE2EErrorDomain 的单例实例的引用 ([SWS_CM_12510])。解释:类 ComE2EException 可能主要用于在启用了 C++ 异常的执行路径中映射错误。 问题 Q-8eaebde6d1182f66 (未决)

本指南总结了 AUTOSAR Adaptive R25-11 的命名空间 ara::com::e2e 的规范要素。

主题图

KI-gestützte Gruppierung auf Basis der Records und Spezifikationsauszüge; keine Gliederung aus der AUTOSAR-Spezifikation.

类图

Abgerundete Rahmen = Namespace- bzw. Klassen-Scopes; hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); graue Boxen = namespace-fremde bzw. externe Basisklassen. Klicken öffnet die jeweilige Klassen- bzw. cppreference-Seite.

G cluster_ns ara::com::e2e nara__com__e2e__ComE2EErrorDomain ComE2EErrorDomain next_ara__core__ErrorDomain ara::core::ErrorDomain nara__com__e2e__ComE2EErrorDomain->next_ara__core__ErrorDomain nara__com__e2e__ComE2EException ComE2EException next_ara__core__Exception ara::core::Exception nara__com__e2e__ComE2EException->next_ara__core__Exception

详细视图

请在大纲中选择一个条目。

Fehlerbehandlung

Defines a class representing the E2E error domain

继承自 ara::core::ErrorDomain

Defines a class for exceptions to be thrown by the E2E APIs

继承自 ara::core::Exception

Returns a reference to the ara::com::e2e::ComE2EErrorDomain object

constexpr const ara::core::ErrorDomain & GetComE2EErrorDomain () noexcept;

Creates an instance of ara::core::ErrorCode

constexpr ara::core::ErrorCode MakeErrorCode (ara::com::e2e::ComE2 EErrc code, ara::core::ErrorDomain::SupportDataType data) noexcept;
ComE2EErrc 枚举

Defines the error codes for the ara::com::e2e::ComE2EErrc

enum class ComE2EErrc : ara::core::ErrorDomain::CodeType {...};

Status und Überwachung

The result of the check of a single ara::com::SamplePtr

enum class ProfileCheckStatus : std::uint8_t {...};
SMState 枚举

The state of the E2E supervision after the most recent check of a received sample of the event. If ara::com::e2e::SMState == kValid, and the ara::com::SamplePtr:: GetProfileCheckStatus did not result in an Error then, the last checked sample can be used.

enum class SMState : std::uint8_t {...};

Transportfehler

Defines the TransportFaultCondition which represent a single transport-related fault event

enum class TransportFaultCondition : std::uint8_t {...};

Handler type to be called when one or more (determined by the value of the std::size_t) fault conditions are detected ≙ std::size_t

using TransportFaultConditionHandler = std::function<void(Transport FaultCondition, std::size_t)>;

枚举

枚举 ComE2EErrc [SWS_CM_10474] Upstream: RS_AP_00130

enum class ComE2EErrc :          ara::core::ErrorDomain::CodeType {...};

Defines the error codes for the ara::com::e2e::ComE2EErrc

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com::e2e
SymbolComE2EErrc
Basistypara::core::ErrorDomain::CodeType

Werte

EnumeratorBeschreibung
kRepeated=1 Data has a repeated counter
kWrongSequence=2 The checks of the Data in this cycle were successful, with the exception of counter jump, which changed more than the allowed delta
kError=3 Error not related to counters occurred (e.g. wrong crc, wrong length, wrong Data ID) or the return of the check function was not OK
kNoNewData=5 No new data is available
kUnspecifiedE2EError= 13 A remote service returned an unspecified E2E error.
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 141dc0897b65 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

枚举 ComE2EErrc 在命名空间 ara::com::e2e 中基于 ara::core::ErrorDomain::CodeType [SWS_CM_10474] 定义了端到端保护(E2E)的特定错误码。在错误域 ara::com::e2e::ComE2EErrorDomain 内,该类型通过类型别名 Errc 提供 [SWS_CM_12504]。

枚举器值描述了确定的校验结果和错误状态 [SWS_CM_10474]:

  • kRepeated:数据呈现出重复的计数值 [SWS_CM_10474]。
  • kWrongSequence:校验成功,但计数跳变超过了允许的增量 [SWS_CM_10474]。
  • kError:发生了与计数器无关的错误(例如错误的CRC、错误的长度或无效的Data-ID),或者校验函数的返回结果不正常 [SWS_CM_10474]。
  • kNoNewData:没有新数据可用 [SWS_CM_10474]。
  • kUnspecifiedE2EError:远端服务返回了未指定的E2E错误 [SWS_CM_10474]。

在服务端请求处理中,当消息的E2E校验失败时,ComE2EErrc 将作为参数 errorCode 传递给骨架的方法 E2EErrorHandler [SWS_CM_10470],AUTOSAR_AP_SWS_CommunicationManagement §7.4.1.2.3.3 “E2E error notification”。如果没有新的请求消息就绪,则必须使用 ComE2EErrc::kNoNewData 以及 dataID = 0 和 messageCounter = 0 调用处理程序 [SWS_CM_00047]。在错误处理程序执行完毕后,将进行响应消息的E2E保护 [SWS_CM_90481]。

关于并发性和边界条件:方法 E2EErrorHandler 未被指定为可重入,且不是 exception safe [SWS_CM_10470]。其注册完全在运行时之前静态进行;不提供动态注册或注销 AUTOSAR_AP_SWS_CommunicationManagement §7.4.1.2.3.3 “E2E error notification”。此外,在发生CRC错误时,服务端应用程序不得依赖传入的Data-ID,因为该标识符可能已损坏 [SWS_CM_10470]。

本文字由 AI 创建,且完全基于版本 R25-11 的规范。

实现者指南即将推出(复杂度 I2)

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

Record
AUTOSAR/AP/record/SWS_CM_10474
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_10474@rel:R25-11#64c070af
Content hash
64c070af
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_10474
Status: valid/unmigrated Version: rel:R25-11#badd908e Versionshistorie & Revisions (1 transition, 8 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_CM_10474@rel:R25-11#badd908e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7fdc69172026-09-30
  • R19-11rel:R19-11#6a4cea2f2026-10-14
  • R20-11rel:R20-11#61179def2026-10-14
  • R21-11rel:R21-11#61179def2026-10-14
  • R22-11rel:R22-11#cd4dc4512026-10-14
  • R23-11rel:R23-11#9b21e5562026-10-14
  • R24-11rel:R24-11#e3693bd52026-10-14
  • R25-11rel:R25-11#badd908e2026-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

枚举 ProfileCheckStatus [SWS_CM_90421] Upstream: RS_E2E_08534, RS_AP_00114, RS_AP_00115, RS_AP_00119

enum class ProfileCheckStatus :               std::uint8_t {...};

The result of the check of a single ara::com::SamplePtr

Header-Datei#include "ara/com/e2e/profile_check_status.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com::e2e
SymbolProfileCheckStatus
Basistypstd::uint8_t

Werte

EnumeratorBeschreibung
kOkThe checks of the sample in this cycle were successful (including counter check)
kRepeatedSample has a repeated counter
kWrongSequenceThe checks of the sample in this cycle were successful, with the exception of counter jump, which changed more than the allowed delta.
kErrorError not related to counters occurred (e.g. wrong crc, wrong length, wrong Data ID).
kCheckDisabledNo E2E check status available. Return value of function GetProfile CheckStatus if EndToEndTransformationComSpecProps. disableEndToEndCheck is set to TRUE
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f09c177b785b 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与调用上下文

命名空间 ara::com::e2e 中的枚举 ProfileCheckStatus 表示对单个接收到的数据样本进行端到端检查 (E2E) 的结果 [SWS_CM_90421]。接收到受 E2E 保护的样本时,通信管理会在 GetNewSamples() 内执行例程 E2E_check,该例程返回 ProfileCheckStatus [SWS_CM_90411]。该状态直接保存在相关的 ara::com::SamplePtr 中 [SWS_CM_90413]。接收方通过类 ara::com::SamplePtr 的方法 GetProfileCheckStatus() 以同步且异常安全的方式访问检查状态 [SWS_CM_00042],[SWS_CM_90420]。

状态值与错误处理

底层类型采用 std::uint8_t [SWS_CM_90421]。该枚举定义了以下状态用于单独的错误分析:

  • kOk:当前周期中样本的所有检查(包括计数器检查)均成功 [SWS_CM_90421]。
  • kRepeated:接收到的数据样本具有重复的计数器值 [SWS_CM_90421]。
  • kWrongSequence:检查成功,但存在超出允许增量的不合规计数器跳跃 [SWS_CM_90421]。
  • kError:发生了与计数器无关的错误,例如 CRC 错误、长度不正确或 Data ID 错误 [SWS_CM_90421]。
  • kCheckDisabled:当 EndToEndTransformationComSpecProps.disableEndToEndCheck 配置为 TRUE 时,表示没有处于激活状态的 E2E 检查 [SWS_CM_90421]。

交互与约束条件

虽然 ProfileCheckStatus 反映了单个样本的独立检查结果 [SWS_CM_90421],但事件类并行管理上层状态机 ara::com::e2e::SMState [SWS_CM_90413],该状态机可通过 GetE2EStateMachineState() 获取 [SWS_CM_10475]。其定义位于头文件 ara/com/e2e/profile_check_status.h [SWS_CM_90421] 中。

本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。

实现者指南即将推出(复杂度 I3)

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

Record
AUTOSAR/AP/record/SWS_CM_90421
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_90421@rel:R25-11#58f9df01
Content hash
58f9df01
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_90421
Status: valid/unmigrated Version: rel:R25-11#19293cac Versionshistorie & Revisions (1 transition, 8 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_CM_90421@rel:R25-11#19293cac
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#83c1e2b52026-09-30
  • R19-11rel:R19-11#3bebc6d32026-10-14
  • R20-11rel:R20-11#f00535832026-10-14
  • R21-11rel:R21-11#7826cb9c2026-10-14
  • R22-11rel:R22-11#7826cb9c2026-10-14
  • R23-11rel:R23-11#2f5320e82026-10-14
  • R24-11rel:R24-11#774fbe762026-10-14
  • R25-11rel:R25-11#19293cac2026-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

枚举 SMState [SWS_CM_90422] Upstream: RS_E2E_08534, RS_AP_00114, RS_AP_00115, RS_AP_00119

enum class SMState :         std::uint8_t {...};

The state of the E2E supervision after the most recent check of a received sample of the event. If ara::com::e2e::SMState == kValid, and the ara::com::SamplePtr:: GetProfileCheckStatus did not result in an Error then, the last checked sample can be used.

Header-Datei#include "ara/com/e2e/sm_state.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com::e2e
SymbolSMState
Basistypstd::uint8_t

Werte

EnumeratorBeschreibung
kValidCommunication of the samples of this event is functioning properly according to E2E checks; sample(s) can be used
kNoDataNo data have been received from the publisher at all
kInitNot enough data where the E2E check yielded OK from the publisher is available since the initialization; sample(s) cannot be used
kInvalidToo little data (where the E2E check yielded OK), or too much data (where the e2e check yielded ERROR) were received within the E2 E time window - communication of the sample of this event not functioning properly; sample(s) cannot be used
kStateMDisabledNo E2E state machine available. Return value of function Get SMState if disableEndToEndStateMachine == TRUE
kIncompatibleQoSSamples can’t be received because configured QoS policies at each end of communication don’t match. (Only applicable to certain network bindings.)

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

Record
AUTOSAR/AP/record/SWS_CM_90422
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_90422@rel:R25-11#aefc6dcb
Content hash
aefc6dcb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_90422
Status: valid/unmigrated Version: rel:R25-11#0dc36587 Versionshistorie & Revisions (1 transition, 8 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_CM_90422@rel:R25-11#0dc36587
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d168e6b92026-09-30
  • R19-11rel:R19-11#d0a2c20a2026-10-14
  • R20-11rel:R20-11#80fe23132026-10-14
  • R21-11rel:R21-11#b6f05aa62026-10-14
  • R22-11rel:R22-11#ac0177e92026-10-14
  • R23-11rel:R23-11#f37781082026-10-14
  • R24-11rel:R24-11#9c1bf6142026-10-14
  • R25-11rel:R25-11#0dc365872026-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

枚举 TransportFaultCondition [SWS_CM_00091]

enum class TransportFaultCondition :                 std::uint8_t {...};

Defines the TransportFaultCondition which represent a single transport-related fault event

Header-Datei#include "ara/com/e2e/transport_fault_condition.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com::e2e
SymbolTransportFaultCondition
Basistypstd::uint8_t

Werte

EnumeratorBeschreibung
kSampleRejectedA sample has been rejected on layer 4 or above due to end-point resource exhaustion
kDeadlineMissedA sample has missed its configured deadline period
kSampleLostLoss of a sample has been detected (e.g. gap in expected sequence numbering)

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

Record
AUTOSAR/AP/record/SWS_CM_00091
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00091@rel:R25-11#3ca9f0c1
Content hash
3ca9f0c1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00091
Status: valid/unmigrated Version: rel:R25-11#7c33a23c 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_CM_00091@rel:R25-11#7c33a23c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#cdde28982026-09-30
  • R24-11rel:R24-11#b04753832026-10-14
  • R25-11rel:R25-11#7c33a23c2026-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

类型别名

类型别名 TransportFaultConditionHandler [SWS_CM_00092]

using TransportFaultConditionHandler = std::function<void(Transport FaultCondition, std::size_t)>;

Handler type to be called when one or more (determined by the value of the std::size_t) fault conditions are detected

Header-Datei#include "ara/com/e2e/transport_fault_condition.h"
Scopenamespace ara::com::e2e
SymbolTransportFaultConditionHandler

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

Record
AUTOSAR/AP/record/SWS_CM_00092
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00092@rel:R25-11#24fd7a0d
Content hash
24fd7a0d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00092
Status: valid/unmigrated Version: rel:R25-11#018e4f61 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_CM_00092@rel:R25-11#018e4f61
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2f78d2f22026-09-30
  • R24-11rel:R24-11#97594fb62026-10-14
  • R25-11rel:R25-11#018e4f612026-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

自由函数文档

函数 GetComE2EErrorDomain [SWS_CM_12510] Upstream: RS_AP_00120, RS_AP_00130

constexpr const ara::core::ErrorDomain & GetComE2EErrorDomain () noexcept;

Returns a reference to the ara::com::e2e::ComE2EErrorDomain object

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 983028d92996 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

自由函数 ara::com::e2e::GetComE2EErrorDomain 通过头文件 #include "ara/com/e2e/e2e_error_domain.h" 提供 [SWS_CM_12510]。它用于获取对全局 ara::com::e2e::ComE2EErrorDomain 对象的引用 AUTOSAR_AP_SWS_CommunicationManagement §8.15.2.1.1 “GetComE2EErrorDomain”。

用法与语义:该函数不接受任何参数,并同步返回一个 const ara::core::ErrorDomain & [SWS_CM_12510]。由于定义为 constexpr,对错误域的引用可以在编译时解析。

错误处理与并发性:该函数声明为 noexcept 并被标明为异常安全(exception safe)[SWS_CM_12510];它本身不会引发任何错误。由于它仅返回不可变的对象引用,因此该调用应是可重入的,并且可以在没有同步开销的情况下安全地并发使用。 问题 Q-02aeb40fc1953271 (未决)

交互作用:返回的错误域用于在受 E2E 保护的通信接口上下文中明确检查和分配错误码 [SWS_CM_12510]。

本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Scopenamespace ara::com::e2e
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
const ara::core::ErrorDomain &Reference to the ara::com::e2e::ComE2EErrorDomain object

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

Record
AUTOSAR/AP/record/SWS_CM_12510
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12510@rel:R25-11#6d36925a
Content hash
6d36925a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12510
Status: valid/unmigrated Version: rel:R25-11#8273e6ed Versionshistorie & Revisions (1 transition, 5 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_CM_12510@rel:R25-11#8273e6ed
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#cb6fe08e2026-09-30
  • R22-11rel:R22-11#4b8f06b62026-10-14
  • R23-11rel:R23-11#2d081e782026-10-14
  • R24-11rel:R24-11#d39b82d62026-10-14
  • R25-11rel:R25-11#8273e6ed2026-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

函数 MakeErrorCode [SWS_CM_12511] Upstream: RS_AP_00120, RS_AP_00121, RS_AP_00130

constexpr ara::core::ErrorCode MakeErrorCode (ara::com::e2e::ComE2 EErrc code, ara::core::ErrorDomain::SupportDataType data) noexcept;

Creates an instance of ara::core::ErrorCode

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 5253c66d35c2 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

辅助函数ara::com::e2e::MakeErrorCode用于为 E2E 通信领域创建类型为ara::core::ErrorCode的标准化错误实例[SWS_CM_12511]。它在命名空间ara::com::e2e内的头文件ara/com/e2e/e2e_error_domain.h中声明SWS CommunicationManagement §8.15.2.1.2 “MakeErrorCode”。

用法与参数

该函数同步工作,并被指定为constexpr以及noexcept[SWS_CM_12511]:

  • code:作为类型为ara::com::e2e::ComE2EErrc的枚举值的错误代码[SWS_CM_12511]。
  • data:与错误关联的类型为ara::core::ErrorDomain::SupportDataType的厂商自定义附加数据[SWS_CM_12511]。
  • 返回值:表示该错误的已初始化ara::core::ErrorCode对象[SWS_CM_12511]。

错误处理与并发

关于异常安全性,该创建被定义为完全异常安全(exception safe)[SWS_CM_12511]。由于声明为constexpr和noexcept,该函数不抛出任何异常,推测无副作用,并且在任意调用上下文中都是可重入且线程安全的。 问题 Q-d1f50cf94a3fa9e8 (未决)

通信管理中的协同交互

该函数构成了针对通用通信错误的ara::com::MakeErrorCode[SWS_CM_11335]以及针对下游错误领域(如 SecOC)的apext::com::secoc::MakeErrorCode[SWS_CM_12522]在特定领域内的对应项。所有这三个 API 均根据上层架构规定[SWS_CM_12511],通过ara::core::ErrorCode统一步骤对错误状态进行封装。

本使用说明基于规范自动生成。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Scopenamespace ara::com::e2e
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
codeError code number.
dataVendor defined data associated with the error

Rückgabewert

TypBeschreibung
ara::core::ErrorCodeAn ara::core::ErrorCode object.

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

Record
AUTOSAR/AP/record/SWS_CM_12511
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12511@rel:R25-11#e54903ed
Content hash
e54903ed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12511
Status: valid/unmigrated Version: rel:R25-11#4a23dbfe Versionshistorie & Revisions (1 transition, 5 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_CM_12511@rel:R25-11#4a23dbfe
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#6fea7c112026-09-30
  • R22-11rel:R22-11#047e791f2026-10-14
  • R23-11rel:R23-11#aa5da2702026-10-14
  • R24-11rel:R24-11#484ed1bf2026-10-14
  • R25-11rel:R25-11#4a23dbfe2026-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