DEENESPTFRRUARHIKOZHNL

类 ara::rds::IEEE1722RawDataStreamProducer

Diese Seite wurde vollständig KI-generiert auf Basis von SWS Raw Data Stream (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.

[SWS_RDS_90322] · Header ara/rds/raw_data_stream_IEEE1722.h

template<typename T> class IEEE1722RawDataStreamProducer final {...};

Producer for typed IEEE 1722 stream datagrams.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopenamespace ara::rds

用户指南人工智能生成

支持通过已配置的连接类型化发送 IEEE 1722 数据流报文。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 4f4ec9f5aa38 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

支持通过已配置的连接类型化发送 IEEE 1722 数据流报文。

模板类 ara::rds::IEEE1722RawDataStreamProducer 用于在 AUTOSAR Adaptive Platform 中发送符合 IEEE 1722 标准(AUTOSAR_AP_SWS_RawDataStream, 第1页)的类型化数据流报文。通过 Create 进行静态创建后,通过 Connect 建立连接,随后有效数据通过 WriteData 作为 vector 进行传输 [SWS_RDS_90332]。该类具有严格的移动语义(Move-Only 语义),且在移动操作以及析构函数中非线程安全。显式调用 Shutdown 或销毁对象可正常关闭连接。

上下文

模板类 ara::rds::IEEE1722RawDataStreamProducer 在 AUTOSAR Adaptive Platform 的模块 rds(Raw Data Stream)内提供了用于发送符合 IEEE 1722 标准(AUTOSAR_AP_SWS_RawDataStream, 第1页)的类型化数据流数据报的接口。作为生成器组件,它封装了特定于通道和协议的连接建立以及通过底层网络进行的有效数据传输。

寻址以及在软件端绑定到已配置的 Stream 实例是通过将 ara::core::InstanceSpecifier 传递给创建方法 [SWS_RDS_90323] 来实现的。主要交互方是创建模板类型 T 的数据元素的应用软件,以及物理传输数据报的 IEEE 1722 网络协议栈。类定义通过头文件 #include "ara/rds/raw_data_stream_IEEE1722.h" 包含 [SWS_RDS_90323]。

生命周期

ara::rds::IEEE1722RawDataStreamProducer 的实例化仅通过静态工厂方法 Create [SWS_RDS_90323] 进行。该类遵循严格的移动语义(Move-Only 语义):复制构造函数 [SWS_RDS_90327] 以及复制赋值运算符 [SWS_RDS_90328] 已被删除(=delete),从而防止了资源的重复。

可以通过移动构造函数 [SWS_RDS_90324] 和移动赋值运算符 [SWS_RDS_90326] 将实例转移给其他所有者。在并发性方面,移动操作以及析构函数被声明为非线程安全 [SWS_RDS_90324]、[SWS_RDS_90326]、[SWS_RDS_90329];来自不同线程的并发访问需要外部同步。

创建后,Producer 最初处于断开状态。连接通过 Connect 建立 [SWS_RDS_90330]。连接的终止既可以通过 Shutdown [SWS_RDS_90331] 显式进行,也可以在实例销毁时自动进行:析构函数 ~IEEE1722RawDataStreamProducer() 确保关闭仍处于打开状态的连接 [SWS_RDS_90329]。

Lebenszyklus NichtInitialisiert 未初始化 Erzeugt 已创建(未连接) NichtInitialisiert->Erzeugt Create() Verbunden Verbunden Erzeugt->Verbunden Connect() Beendet Beendet Erzeugt->Beendet ~IEEE1722RawDataStreamProducer() Verbunden->Verbunden WriteData() Verbunden->Beendet Shutdown() / ~IEEE1722RawDataStreamProducer()

状态图:Producer 从创建、建立连接到关闭的生命周期阶段。来源:[SWS_RDS_90323]、[SWS_RDS_90330]、[SWS_RDS_90331]、[SWS_RDS_90329]、[SWS_RDS_90332]。

使用路径

传输 IEEE 1722 数据流的常规流程分为以下几个阶段:

  1. 创建:应用程序通过 Create 指定 instance 标识符 [SWS_RDS_90323] 来实例化 Producer,并接管返回的实例。
  2. 建立连接:在数据传输之前,应用程序调用 Connect [SWS_RDS_90330] 以打开通信通道。
  3. 数据传输:随后,数据报作为类型 T 的 vector 通过 WriteData(std::vector<T> data) 传递给网络 [SWS_RDS_90332]。该步骤可以周期性或事件驱动地重复执行。
  4. 断开连接:传输完成后,Shutdown 显式终止连接 [SWS_RDS_90331]。或者,析构函数在离开作用域时关闭连接 [SWS_RDS_90329]。
发送 IEEE 1722 报文时的典型流程ApplikationIEEE1722RawDataStreamProducerUse Case: 初始化与连接建立Create(instance)Result<IEEE1722RawDataStreamProducer>Connect()Result<void>Use Case: 数据传输loopDaten vorhandenWriteData(data)Result<void>Use Case: VerbindungsabbauShutdown()Result<void>

时序图:从实例化到断开连接的数据传输典型流程。来源:[SWS_RDS_90323]、[SWS_RDS_90330]、[SWS_RDS_90332]、[SWS_RDS_90331]。

错误场景

该类的操作被指定为 noexcept 并使用错误模型 ara::core::Result:

  • Create 返回一个 ara::core::Result<IEEE1722RawDataStreamProducer<T>> [SWS_RDS_90323]。在配置错误或资源匮乏的情况下,结果将包含相应的错误代码而非实例。
  • Connect 通过 ara::core::Result<void> [SWS_RDS_90330] 报告连接建立失败。
  • WriteData 返回一个 ara::core::Result<void> [SWS_RDS_90332]。Interpretation:调用可能要求先前已通过 Connect 成功建立了连接;在缺少连接或出现内部发送错误时将报告错误。 问题 Q-ee438b8710c58062 (未决)
  • Shutdown 同样通过 ara::core::Result<void> [SWS_RDS_90331] 指示关闭连接时可能发生的错误。

Interpretation:接口摘录中未指定具体的 ara::core::ErrorCode 值,必须通过返回的 Result 进行针对具体应用的检查。 问题 Q-472e6d4a603c883d (未决)

本指南仅基于 AUTOSAR Adaptive R25-11 的接口规范,由系统自动生成。

成员图

详细视图

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

构造函数和析构函数

Copy constructor is not allowed.

重载 IEEE1722RawDataStreamProducer 2
IEEE1722RawDataStreamProducer(const IEEE1722RawDataStreamProducer &)=delete; SWS_RDS_90327
IEEE1722RawDataStreamProducer(IEEE1722RawDataStreamProducer &&other) noexcept; SWS_RDS_90324

Destructor; an open connection is shut down.

~IEEE1722RawDataStreamProducer() noexcept;

方法

Connect 函数

Connects the IEEE 1722 stream producer.

ara::core::Result<void> Connect() noexcept;
Create 函数

Creates an IEEE 1722 producer.

static ara::core::Result<IEEE1722RawDataStreamProducer<T>> Create(const ara::core::InstanceSpecifier &instance) noexcept;
Shutdown 函数

Shuts down the producer connection.

ara::core::Result<void> Shutdown() noexcept;
WriteData 函数

Writes IEEE 1722 datagrams.

ara::core::Result<void> WriteData(std::vector<T> data) noexcept;

运算符

operator= 函数 2

Copy assignment operator is not allowed.

重载 = 2
IEEE1722RawDataStreamProducer &operator=(const IEEE1722RawDataStreamProducer &)=delete; SWS_RDS_90328
IEEE1722RawDataStreamProducer &operator=(IEEE1722RawDataStreamProducer &&other) & noexcept; SWS_RDS_90326

方法与类型文档

函数 IEEE1722RawDataStreamProducer [SWS_RDS_90327]

IEEE1722RawDataStreamProducer(const IEEE1722RawDataStreamProducer &)=delete;

Copy constructor is not allowed.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer

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

Record
AUTOSAR/AP/record/SWS_RDS_90327
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90327@rel:R25-11#573df9fc
Content hash
573df9fc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90327
Status: valid/unmigrated Version: rel:R25-11#e5a42a2f 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_RDS_90327@rel:R25-11#e5a42a2f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c6f04c482026-09-30
  • R24-11rel:R24-11#e5a42a2f2026-10-14
  • R25-11rel:R25-11#e5a42a2f2026-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

函数 IEEE1722RawDataStreamProducer [SWS_RDS_90324]

IEEE1722RawDataStreamProducer(IEEE1722RawDataStreamProducer &&other) noexcept;

Move constructor.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_RDS_90324
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90324@rel:R25-11#3d365521
Content hash
3d365521
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90324
Status: valid/unmigrated Version: rel:R25-11#ed095031 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_RDS_90324@rel:R25-11#ed095031
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6eccec192026-09-30
  • R24-11rel:R24-11#ed0950312026-10-14
  • R25-11rel:R25-11#ed0950312026-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

函数 operator= [SWS_RDS_90328]

IEEE1722RawDataStreamProducer &operator=(const IEEE1722RawDataStreamProducer &)=delete;

Copy assignment operator is not allowed.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer

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

Record
AUTOSAR/AP/record/SWS_RDS_90328
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90328@rel:R25-11#a05ad11b
Content hash
a05ad11b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90328
Status: valid/unmigrated Version: rel:R25-11#d9f22fa2 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_RDS_90328@rel:R25-11#d9f22fa2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#eaae76f22026-09-30
  • R24-11rel:R24-11#d9f22fa22026-10-14
  • R25-11rel:R25-11#d9f22fa22026-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

函数 operator= [SWS_RDS_90326]

IEEE1722RawDataStreamProducer &operator=(IEEE1722RawDataStreamProducer &&other) & noexcept;

Move assignment operator.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_RDS_90326
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90326@rel:R25-11#00da0a26
Content hash
00da0a26
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90326
Status: valid/unmigrated Version: rel:R25-11#77a790e4 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_RDS_90326@rel:R25-11#77a790e4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#019c358d2026-09-30
  • R24-11rel:R24-11#77a790e42026-10-14
  • R25-11rel:R25-11#77a790e42026-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

函数 ~IEEE1722RawDataStreamProducer [SWS_RDS_90329]

~IEEE1722RawDataStreamProducer() noexcept;

Destructor; an open connection is shut down.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_RDS_90329
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90329@rel:R25-11#d1121efa
Content hash
d1121efa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90329
Status: valid/unmigrated Version: rel:R25-11#a0af2838 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_RDS_90329@rel:R25-11#a0af2838
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6c7e14a62026-09-30
  • R24-11rel:R24-11#a0af28382026-10-14
  • R25-11rel:R25-11#a0af28382026-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

函数 Connect [SWS_RDS_90330]

ara::core::Result<void> Connect() noexcept;

Connects the IEEE 1722 stream producer.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer

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

Record
AUTOSAR/AP/record/SWS_RDS_90330
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90330@rel:R25-11#b45c3cfd
Content hash
b45c3cfd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90330
Status: valid/unmigrated Version: rel:R25-11#cd9ebb3d 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_RDS_90330@rel:R25-11#cd9ebb3d
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#60092d922026-09-30
  • R24-11rel:R24-11#89d5b0f42026-10-14
  • R25-11rel:R25-11#cd9ebb3d2026-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

函数 Shutdown [SWS_RDS_90331]

ara::core::Result<void> Shutdown() noexcept;

Shuts down the producer connection.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer

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

Record
AUTOSAR/AP/record/SWS_RDS_90331
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90331@rel:R25-11#8985d17c
Content hash
8985d17c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90331
Status: valid/unmigrated Version: rel:R25-11#34c26504 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_RDS_90331@rel:R25-11#34c26504
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c8f38c642026-09-30
  • R24-11rel:R24-11#68ca17352026-10-14
  • R25-11rel:R25-11#34c265042026-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

函数 WriteData [SWS_RDS_90332]

ara::core::Result<void> WriteData(std::vector<T> data) noexcept;

Writes IEEE 1722 datagrams.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer

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

Record
AUTOSAR/AP/record/SWS_RDS_90332
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90332@rel:R25-11#db44e1b3
Content hash
db44e1b3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90332
Status: valid/unmigrated Version: rel:R25-11#488e5e5f 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_RDS_90332@rel:R25-11#488e5e5f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5ab525c82026-09-30
  • R24-11rel:R24-11#953ee92e2026-10-14
  • R25-11rel:R25-11#488e5e5f2026-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

函数 Create [SWS_RDS_90323]

static ara::core::Result<IEEE1722RawDataStreamProducer<T>> Create(const ara::core::InstanceSpecifier &instance) noexcept;

Creates an IEEE 1722 producer.

Header-Datei#include "ara/rds/raw_data_stream_IEEE1722.h"
Scopeclass ara::rds::IEEE1722RawDataStreamProducer

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

Record
AUTOSAR/AP/record/SWS_RDS_90323
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_90323@rel:R25-11#58aef748
Content hash
58aef748
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_90323
Status: valid/unmigrated Version: rel:R25-11#d9dfc519 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_RDS_90323@rel:R25-11#d9dfc519
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#845985082026-09-30
  • R24-11rel:R24-11#a86036322026-10-14
  • R25-11rel:R25-11#d9dfc5192026-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