DEENESPTFRRUARHIKOZHNL

结构体 ara::diag::GenericDataIdentifier::OperationOutput

[SWS_DM_00641] Upstream: RS_Diag_04169, RS_Diag_04172

struct OperationOutput {...};

Response data of positive respose message.

Header-Datei#include "ara/diag/generic_data_identifier.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopeclass ara::diag::GenericDataIdentifier

用户指南人工智能生成

用作通用数据标识符的肯定诊断响应有效载荷数据的输出结构。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 00159dc7defb 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用作通用数据标识符的肯定诊断响应有效载荷数据的输出结构。

数据结构 ara::diag::GenericDataIdentifier::OperationOutput 在通用 DID 诊断操作上下文中封装肯定响应消息的有效载荷数据([SWS_DM_00641])。在收到传入的诊断请求时,应用程序实例化该结构并在将其传递给 Diagnostic Management 之前,使用确定的输出数据填充成员 responseData([SWS_DM_00631])。在此过程中,核心约束条件是 responseData 必须仅包含纯有效载荷数据,决不能包含实际的 Data Identifier。在转换为 UDS 响应报文后,该短暂值对象的生命周期即告结束。

上下文

数据结构 ara::diag::GenericDataIdentifier::OperationOutput 是 AUTOSAR Adaptive Platform 中模块 diag 的组成部分,通过头文件 ara/diag/generic_data_identifier.h 提供([SWS_DM_00641]、[SWS_DM_00631])。在诊断架构内,该结构用作针对通用数据标识符(Data Identifier,DID)的肯定诊断响应消息结果数据的专用数据容器(AUTOSAR_AP_SWS_Diagnostics §8.19.2 “Struct: OperationOutput”)。

在相关架构组件的交互中,OperationOutput 构成了应用特定诊断服务功能与中央 Diagnostic Management 之间的纽带。应用程序负责读取和准备有效载荷数据,而诊断运行时系统则负责面向外部诊断测试仪的高级协议处理。为了传递响应数据,该结构声明了类型为 ara::core::Vector<std::uint8_t> 的公共成员变量 responseData([SWS_DM_00631]、AUTOSAR_AP_SWS_Diagnostics §8.19.2.1.1 “responseData”)。该字节向量传输肯定响应消息的有效载荷,其中数据标识符本身不得包含在向量中([SWS_DM_00631])。

生命周期

作为没有自身方法的轻量级数据传输结构体,ara::diag::GenericDataIdentifier::OperationOutput 服从简单的瞬态值生命周期([SWS_DM_00641])。一旦通用 DID 的相应读取或查询操作被成功处理,就会在应用特定的处理例程中按需进行实例化。其中包含的向量 responseData 将填充有所请求的诊断有效载荷数据([SWS_DM_00631])。

所有权关系是严格顺序的:生成该实例的应用程序首先在本地持有该实例,并在完成后将其传递给诊断框架。一旦 Diagnostic Management 将有效载荷数据接纳到发出的诊断响应报文中,该实例的生命周期便结束。推测向运行时系统的返回是通过移动语义或打包在异步容器(如 ara::core::Future 或 ara::core::Result)中以节省资源的方式进行的。 问题 Q-6e8dadb21e01d4fb (未决)该结构不提供用于并发访问的内部同步;然而,由于它是在操作的执行工作线程内瞬态填充并传递的,因此解释:在常规运行流程中不需要跨线程保护。

使用路径

处理通用诊断数据查询时的典型调用顺序分为以下步骤:

  1. 外部诊断测试仪发起查询(例如通过数据标识符读取的 UDS 服务),该查询由车辆的 Diagnostic Management 接收。
  2. 诊断系统将读取请求委托给应用程序对应的 ara::diag::GenericDataIdentifier 实例。
  3. 应用程序确定所需的传感器数据或内部参数并实例化 ara::diag::GenericDataIdentifier::OperationOutput([SWS_DM_00641])。
  4. 应用程序将确定的字节分配给向量 responseData([SWS_DM_00631])。在此过程中,DID 值本身不得存储在 responseData 中(AUTOSAR_AP_SWS_Diagnostics §8.19.2.1.1 “responseData”)。
  5. 填充后的实例被返回给 Diagnostic Management,后者在前面添加 DID,组装完整的肯定响应报文并将其发送给诊断测试仪。
提供肯定诊断数据的流程Diagnosetester诊断管理应用Diagnoseanfrage (DID-Abfrage)Leseanforderung weiterleitenOperationOutput instanziieren填充不含 DID 的 responseData返回 OperationOutputDID voranstellen & positive Antwort bildenPositive UDS-Antwortnachricht

时序图:使用 OperationOutput 进行通用数据查询的处理流程。来源:[SWS_DM_00641]、[SWS_DM_00631]、AUTOSAR_AP_SWS_Diagnostics §8.19.2 “Struct: OperationOutput”。

本类指南是基于 AUTOSAR Adaptive Platform Release R25-11 规范自动生成的。

UML 类图

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

G nara__diag__GenericDataIdentifier__OperationOutput669 «struct» OperationOutput + responseData

常量

Content of positive respose message (without DataIdentifier)

常量 / 变量文档

变量 responseData [SWS_DM_00631] Upstream: RS_AP_00137, RS_Diag_04169

ara::core::Vector<std::uint8_t> responseData;

Content of positive respose message (without DataIdentifier)

Header-Datei#include "ara/diag/generic_data_identifier.h"
Scopestruct ara::diag::GenericDataIdentifier::OperationOutput
SymbolresponseData
Typara::core::Vector< std::uint8_t >

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

Record
AUTOSAR/AP/record/SWS_DM_00631
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00631@rel:R25-11#fcc2f532
Content hash
fcc2f532
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00631
Status: valid/unmigrated Version: rel:R25-11#08f5ddb6 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_00631@rel:R25-11#08f5ddb6
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#b0f271fe2026-09-30
  • R20-11rel:R20-11#45f2e5b92026-10-14
  • R21-11rel:R21-11#45f2e5b92026-10-14
  • R22-11rel:R22-11#843f570f2026-10-14
  • R23-11rel:R23-11#8c8c7ab82026-10-14
  • R24-11rel:R24-11#8c8c7ab82026-10-14
  • R25-11rel:R25-11#08f5ddb62026-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