结构体 ara::tsync::TimeMasterMeasurementType
[SWS_TS_00414] Upstream: RS_TS_00034 原文尚未导入
struct TimeMasterMeasurementType final {...};
Structure with detailed data for validation of the Time Master .
| Header-Datei | #include "ara/tsync/time_validation_measurement_types.h" |
|---|
| Forwarding-Header | #include "ara/tsync/tsync_fwd.h" |
|---|
| Scope | namespace ara::tsync |
|---|
用户指南人工智能生成
用于采集发送时间戳和帧序列,以验证网络中的 Time Master。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 2ead85402aa5
来源
未决问题(3)
用于采集发送时间戳和帧序列,以验证网络中的 Time Master。
该数据结构用于整合详细的测量数据,以对 Time Master 进行测量技术验证与运行时监控。对于发送的每个同步帧,它通过 preciseOriginTimestamp [SWS_TS_14140] 汇聚全局时基中的发送时刻、网络相关发送时间戳 syncEgressTimestamp 以及 Ethernet 帧标识 sequenceId [SWS_TS_14142]。这些聚合的测量值使下游分析实例能够对抖动和数据包序列进行完整的合理性检查。由于该类型被声明为无自身同步的 final 数据容器,因此并发交换可能需要调用方采取额外的保护措施。 问题 (未决)
上下文
结构体 ara::tsync::TimeMasterMeasurementType 是 AUTOSAR Adaptive Platform 的 tsync 模块中时间验证(Time Validation)的组成部分。根据规范,它汇聚了用于验证 Time Master 的详细测量数据。在分布式系统中,Time Master 为相连的网络节点提供时间参考。为了确保符合要求的同步精度并在运行期间检测时间偏差,测量技术特征数据将直接在 Time Master 的接口处进行采集。
该类型的定义存放在头文件 ara/tsync/time_validation_measurement_types.h 中 [SWS_TS_14140]。作为核心数据传输对象,该结构体汇集了通过 Ethernet 发送同步消息(Sync-Frame)时产生的三个基本测量量:
preciseOriginTimestamp:Sync-Frame 相对于全局时基的发送时刻(Egress Timestamp),格式为 ara::tsync::Timestamp [SWS_TS_14140]。
syncEgressTimestamp:Sync-Frame 接近网络的发送时刻,表示为 64 位整数(std::uint64_t)[SWS_TS_14141]。
sequenceId:所发送 Ethernet 帧的序列标识,表示为 16 位值(std::uint16_t)[SWS_TS_14142]。
因此,该结构体充当了 Time Master 实际同步服务与下游监控或验证组件之间的标准化接口。
生命周期
其声明为 struct TimeMasterMeasurementType final,将该类标识为具有纯值语义的 final 数据结构。由于它不管理动态资源且没有继承层次结构,因此其实例化非常轻量。通常,在 Time Master 发送 Sync-Frame 后,一旦获得物理发送时间戳和序列号,就会立即创建一个实例。
实例的生命周期与评估周期紧密绑定。数据可以通过复制或 move 操作传递给消费端验证实例,并在合理性检查完成后丢弃。 问题 Q-c09487031c2b5638 (未决)该结构体不包含任何内部同步机制(如互斥锁)。如果实例在并发软件架构中跨线程边界交换,线程安全访问的责任可能完全由调用方承担。
使用路径
典型的使用流程包括在帧发送时确定测量值、封装在结构体中以及转发以进行验证:
- 发送 Sync-Frame:Time Master 通过 Ethernet 网络发送同步帧,其中帧标识记录在
sequenceId 中 [SWS_TS_14142]。
- 测量值采集:接近硬件或驱动程序的 Egress 时刻被采集为
syncEgressTimestamp [SWS_TS_14141]。同时确定对应的全局时间值并保存为 preciseOriginTimestamp [SWS_TS_14140]。
- 填充结构体:采集到的值被聚合在
TimeMasterMeasurementType 的实例中。
- 评估:该结构体被传递给验证子系统,后者根据序列号检测数据包丢失,并通过比对时间戳计算抖动或发送漂移。
时序图:TimeMasterMeasurementType 采集与转发的典型流程。来源:[SWS_TS_14140]、[SWS_TS_14141]、[SWS_TS_14142]。
解读:通过共同采集本地 Egress 时间戳 [SWS_TS_14141] 和全局参考时间 [SWS_TS_14140],验证逻辑能够确定 Time Master 协议栈中是否发生了处理延迟。 问题 Q-7454a019d8b9e764 (未决)
本指南基于 AUTOSAR Adaptive Platform 规范版本 R25-11,由自动化工具生成。
成员图
类图
Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
详细视图
此版本没有元素数据
常量
egress timestamp of Sync frame in Global Time
sequence Id of sent Ethernet frame
egress timestamp of Sync frame
常量 / 变量文档
变量 preciseOriginTimestamp [SWS_TS_14140] Upstream: RS_TS_00034 原文尚未导入
ara::tsync::Timestamp preciseOriginTimestamp;
egress timestamp of Sync frame in Global Time
Status: valid/unmigrated
Version: rel:R25-11#6002ae8e
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_TS_14140@rel:R25-11#6002ae8e
Point-in-Time History:
Recorded Revisions (8):
- R25-11
rel:R25-11#f10cc5ac2026-09-30 - R19-11
rel:R19-11#93e923d22026-10-14 - R20-11
rel:R20-11#ce0b905d2026-10-14 - R21-11
rel:R21-11#ce0b905d2026-10-14 - R22-11
rel:R22-11#41c0fa062026-10-14 - R23-11
rel:R23-11#6002ae8e2026-10-14 - R24-11
rel:R24-11#6002ae8e2026-10-14 - R25-11
rel:R25-11#6002ae8e2026-10-14 active
Historical Snapshot:
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
变量 sequenceId [SWS_TS_14142] Upstream: RS_TS_00034 原文尚未导入
std::uint16_t sequenceId;
sequence Id of sent Ethernet frame
Status: valid/unmigrated
Version: rel:R25-11#6981c39b
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_TS_14142@rel:R25-11#6981c39b
Point-in-Time History:
Recorded Revisions (8):
- R25-11
rel:R25-11#cd26e2ee2026-09-30 - R19-11
rel:R19-11#b5b8102f2026-10-14 - R20-11
rel:R20-11#78bfab7c2026-10-14 - R21-11
rel:R21-11#b86ac6202026-10-14 - R22-11
rel:R22-11#6ccb24eb2026-10-14 - R23-11
rel:R23-11#6981c39b2026-10-14 - R24-11
rel:R24-11#6981c39b2026-10-14 - R25-11
rel:R25-11#6981c39b2026-10-14 active
Historical Snapshot:
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
变量 syncEgressTimestamp [SWS_TS_14141] Upstream: RS_TS_00034 原文尚未导入
std::uint64_t syncEgressTimestamp;
egress timestamp of Sync frame
Status: valid/unmigrated
Version: rel:R25-11#9f2c420d
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_TS_14141@rel:R25-11#9f2c420d
Point-in-Time History:
Recorded Revisions (8):
- R25-11
rel:R25-11#737d705a2026-09-30 - R19-11
rel:R19-11#d14b42b02026-10-14 - R20-11
rel:R20-11#73a283f02026-10-14 - R21-11
rel:R21-11#73a283f02026-10-14 - R22-11
rel:R22-11#a5706d0f2026-10-14 - R23-11
rel:R23-11#9f2c420d2026-10-14 - R24-11
rel:R24-11#9f2c420d2026-10-14 - R25-11
rel:R25-11#9f2c420d2026-10-14 active
Historical Snapshot:
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 德文原文