结构体 ara::tsync::TimePrecisionMeasurement
[SWS_TS_01400] Upstream: RS_TS_00034 原文尚未导入
struct TimePrecisionMeasurement final {...};
Structure with detailed data for precision measurement of the Time Slave .
Header-Datei #include "ara/tsync/time_precision_measurement_type.h" Forwarding-Header #include "ara/tsync/tsync_fwd.h" Scope namespace ara::tsync
用户指南人工智能生成 提供详细的测量数据和状态位,用于评估 Time Slave 的时间同步精度。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 360378009f87
来源
未决问题(1)
摘要 详细
提供详细的测量数据和状态位,用于评估 Time Slave 的时间同步精度。
上下文
数据结构 ara::tsync::TimePrecisionMeasurement 用于提供详细的测量数据,以采集已同步 Time Slave 相对上级时间基准的精度。在模块 tsync 内,它在发生同步事件时获取紧接与全局时间基准校准之前和之后的本地时钟时间快照。该结构因此构成了在分布式系统中对时钟同步进行测量监控、质量评估和诊断的接口。
TimePrecisionContext
Master
Global Time Master /
Time Gateway
Slave
Time Slave
(ara::tsync )
Master->Slave
Synchronisations-
nachrichten
Measurement
ara::tsync ::
TimePrecisionMeasurement
Slave->Measurement
erzeugt &
befuellt
Consumer
Anwendung /
Diagnosemonitor
Consumer->Measurement
liest Messdaten &
Statusbits
上下文图:时间基准、Time Slave 与监控应用程序之间精度数据的采集与传递。来源:[SWS_TS_01401] 、[SWS_TS_01403] 、[SWS_TS_01408]
生命周期
作为没有自身指针或资源管理的最终结构,TimePrecisionMeasurement 作为值对象 (Value Object) 被实例化。实例化和填充通常由 Adaptive 平台的 Time Slave 在紧随同步步骤之后周期性执行。该结构没有动态生命周期阶段或内部状态转换;其状态自填充之时起作为一致的测量数据集是不可变的。由于该结构通常大概会通过复制或通过常量引用传递给求值组件,因此不存在上级所有权关系或复杂的销毁要求。 问题 Q-11af6e7f794e4acb (未决) 只要不发生并发写入操作,从多个执行线程对已填充实例的同时读取访问即被视为非关键的。
使用路径
测量值的典型评估遵循用于分析走时精度、同步跳变和网络延迟的固定模式:
错误场景
错误和异常状态不通过 C++ 异常报告,而是直接通过 [SWS_TS_01403] (timeBaseStatus)中的状态位进行编码。评估组件在进一步处理时间值之前,必须检查存在哪些错误条件:
接收超时: 如果位 0(TIMEOUT,0x01)被置位,则在接收同步报文时发生了超时。
时间跳变: 位 TIMELEAP_FUTURE(0x10,位 4)或 TIMELEAP_PAST(0x20,位 5)指示已超出向未来或过去进行跳跃式时间校正的配置阈值。
速率错误: 如果位 7(RATE_EXCEEDED,0x80)被置位,则计算出的时钟速率超出定义的限值;而位 6(RATE_CORRECTED,0x40)则指示是否根本能够计算出有效的速率校正。
依赖条件: 根据 [SWS_TS_01403] ,仅当位 3(GLOBAL_TIME_BASE,0x08)被置位时,位 TIMEOUT、TIMELEAP_FUTURE、TIMELEAP_PAST 和 SYNC_TO_GATEWAY(0x04,位 2)才能被置位。如果缺少 GLOBAL_TIME_BASE,则本地时间基准迄今为止仅在本地参考时钟上运行,并且从未与全局时间基准同步。
本指南由 AI 基于 AUTOSAR 规范 R25-11 编写。
分组依据 类别 历史
成员图 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
nara__tsync__TimePrecisionMeasurement344
«struct»
TimePrecisionMeasurement
+ glbNanoSeconds
+ glbSeconds
+ locNanoSeconds
+ locSeconds
+ pathDelay
+ rateDeviation
+ timeBaseStatus
+ virtualLocalTimeLow
详细视图 此版本没有元素数据
常量 Nanoseconds of the Local Time Base directly after synchronization with the Global Time Base. Range: 0..999999999 (4 Byte)
Seconds of the Local Time Base directly after synchronization with the Global Time Base. Range: 0..4294967295 (4 Byte)
Nanoseconds of the Local Time Base directly before synchronization with the Global Time Base. Range: 0..999999999 (4 Byte)
Seconds of the Local Time Base directly before synchronization with the Global Time Base. Range: 0..4294967295 (4 Byte)
Current propagation delay in nanoseconds. Range: 0..4294967295 (4 Byte)
Calculated Rate Deviation directly after rate deviation measurement. Range: 0..+-32000 (2 Byte)
TimeBaseStatus. Time Base Status of the Local Time Base directly after synchronization with the Global Time Base TIMEOUT 0x01 Bit 0 (LSB): 0x00: No Timeout on receiving Synchronisation Messages 0x01: Timeout on receiving Synchronisation Messages SYNC_TO_GATEWAY 0x04 Bit 2 0x00: Local Time Base is synchronous to Global Time Master 0x04: Local Time Base updates are based on a Time Gateway below the Global Time Master GLOBAL_TIME_BASE 0x08 Bit 3 0x00: Local Time Base is based on Local Time Base reference clock only (never synchronized with Global Time Base) 0x08: Local Time Base was at least synchronized with Global Time Base one time TIMELEAP_FUTURE 0x10 Bit 4 0x00: No leap into the future within the received time for Time Base, 0x10: Leap into the future within the received time for Time Base exceeds a configured threshold TIMELEAP_ PAST 0x20 Bit 5 0x00: No leap into the past within the received time for Time Base 0x20: Leap into the past within the received time for Time Base exceeds a configured threshold.
Least significant 32 bit of the Virtual Local Time directly after synchronization with the Global Time Base. Range: 0..4294967295 (4 Byte)
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
常量 / 变量文档
变量 glbNanoSeconds [SWS_TS_01402] Upstream: RS_TS_00034 原文尚未导入
std::uint32_t glbNanoSeconds;
Nanoseconds of the Local Time Base directly after synchronization with the Global Time Base. Range: 0..999999999 (4 Byte)
Status: valid/unmigrated
Version: rel:R25-11#237761c4
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_TS_01402@rel:R25-11#237761c4
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#6ce5f9892026-09-30 Inspect R20-11 rel:R20-11#dcc055a12026-10-14 Inspect R21-11 rel:R21-11#dcc055a12026-10-14 Inspect R22-11 rel:R22-11#fa4c93492026-10-14 Inspect R23-11 rel:R23-11#237761c42026-10-14 Inspect R24-11 rel:R24-11#237761c42026-10-14 Inspect R25-11 rel:R25-11#237761c42026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
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/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
变量 glbSeconds [SWS_TS_01401] Upstream: RS_TS_00034 原文尚未导入
std::uint32_t glbSeconds;
Seconds of the Local Time Base directly after synchronization with the Global Time Base. Range: 0..4294967295 (4 Byte)
Status: valid/unmigrated
Version: rel:R25-11#c7a8c118
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_TS_01401@rel:R25-11#c7a8c118
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#8ce5c9a62026-09-30 Inspect R20-11 rel:R20-11#3eb4084a2026-10-14 Inspect R21-11 rel:R21-11#3eb4084a2026-10-14 Inspect R22-11 rel:R22-11#755f009a2026-10-14 Inspect R23-11 rel:R23-11#c7a8c1182026-10-14 Inspect R24-11 rel:R24-11#c7a8c1182026-10-14 Inspect R25-11 rel:R25-11#c7a8c1182026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
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/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
变量 locNanoSeconds [SWS_TS_01407] Upstream: RS_TS_00034 原文尚未导入
std::uint32_t locNanoSeconds;
Nanoseconds of the Local Time Base directly before synchronization with the Global Time Base. Range: 0..999999999 (4 Byte)
Status: valid/unmigrated
Version: rel:R25-11#bf68c493
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_TS_01407@rel:R25-11#bf68c493
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#aa5525982026-09-30 Inspect R20-11 rel:R20-11#b0d215ed2026-10-14 Inspect R21-11 rel:R21-11#b0d215ed2026-10-14 Inspect R22-11 rel:R22-11#cdd6414a2026-10-14 Inspect R23-11 rel:R23-11#bf68c4932026-10-14 Inspect R24-11 rel:R24-11#bf68c4932026-10-14 Inspect R25-11 rel:R25-11#bf68c4932026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
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/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
变量 locSeconds [SWS_TS_01406] Upstream: RS_TS_00034 原文尚未导入
std::uint32_t locSeconds;
Seconds of the Local Time Base directly before synchronization with the Global Time Base. Range: 0..4294967295 (4 Byte)
Status: valid/unmigrated
Version: rel:R25-11#ddbe78ef
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_TS_01406@rel:R25-11#ddbe78ef
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#ae7070552026-09-30 Inspect R20-11 rel:R20-11#c06b058b2026-10-14 Inspect R21-11 rel:R21-11#bd6d8eb32026-10-14 Inspect R22-11 rel:R22-11#004237c12026-10-14 Inspect R23-11 rel:R23-11#ddbe78ef2026-10-14 Inspect R24-11 rel:R24-11#ddbe78ef2026-10-14 Inspect R25-11 rel:R25-11#ddbe78ef2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
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/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
变量 pathDelay [SWS_TS_01408] Upstream: RS_TS_00034 原文尚未导入
std::uint32_t pathDelay;
Current propagation delay in nanoseconds. Range: 0..4294967295 (4 Byte)
Status: valid/unmigrated
Version: rel:R25-11#ec89c91b
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_TS_01408@rel:R25-11#ec89c91b
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#b72bc7652026-09-30 Inspect R20-11 rel:R20-11#dd666fae2026-10-14 Inspect R21-11 rel:R21-11#dd666fae2026-10-14 Inspect R22-11 rel:R22-11#42bda34a2026-10-14 Inspect R23-11 rel:R23-11#ec89c91b2026-10-14 Inspect R24-11 rel:R24-11#ec89c91b2026-10-14 Inspect R25-11 rel:R25-11#ec89c91b2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
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/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
变量 rateDeviation [SWS_TS_01405] Upstream: RS_TS_00034 原文尚未导入
std::int16_t rateDeviation;
Calculated Rate Deviation directly after rate deviation measurement. Range: 0..+-32000 (2 Byte)
Status: valid/unmigrated
Version: rel:R25-11#a522ccb0
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_TS_01405@rel:R25-11#a522ccb0
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#e439fe9e2026-09-30 Inspect R20-11 rel:R20-11#4dd015bf2026-10-14 Inspect R21-11 rel:R21-11#4dd015bf2026-10-14 Inspect R22-11 rel:R22-11#6b8a92e42026-10-14 Inspect R23-11 rel:R23-11#e18bf2962026-10-14 Inspect R24-11 rel:R24-11#a522ccb02026-10-14 Inspect R25-11 rel:R25-11#a522ccb02026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
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/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
变量 timeBaseStatus [SWS_TS_01403] Upstream: RS_TS_00034 原文尚未导入 , RS_TS_00021 原文尚未导入
std::uint8_t timeBaseStatus;
TimeBaseStatus. Time Base Status of the Local Time Base directly after synchronization with the Global Time Base TIMEOUT 0x01 Bit 0 (LSB): 0x00: No Timeout on receiving Synchronisation Messages 0x01: Timeout on receiving Synchronisation Messages SYNC_TO_GATEWAY 0x04 Bit 2 0x00: Local Time Base is synchronous to Global Time Master 0x04: Local Time Base updates are based on a Time Gateway below the Global Time Master GLOBAL_TIME_BASE 0x08 Bit 3 0x00: Local Time Base is based on Local Time Base reference clock only (never synchronized with Global Time Base) 0x08: Local Time Base was at least synchronized with Global Time Base one time TIMELEAP_FUTURE 0x10 Bit 4 0x00: No leap into the future within the received time for Time Base, 0x10: Leap into the future within the received time for Time Base exceeds a configured threshold TIMELEAP_ PAST 0x20 Bit 5 0x00: No leap into the past within the received time for Time Base 0x20: Leap into the past within the received time for Time Base exceeds a configured threshold.
Bit 6 RATE_CORRECTED 0x00: Valid rate correction not calculated for the Synchronized Time Base, 0x40: Valid rate correction calculated for the Synchronized Time Base. Bit 7 RATE_EXCEEDED 0x00: Calculated rate for Time Base does not exceed limits, 0x80: Calculated rate for Time Base exceeds limits. Description Bit 1 is always 0 (reserved for future usage) Variables of this type are used to express if and how a Local Time Base is synchronized to the Global Time Master. The type is a bitfield of individual status bits, although not every combination is possible, i.e. any of the bits TIMEOUT, TIMELEAP_ FUTURE, TIMELEAP_PAST and SYNC_TO_GATEWAY can only be set if the GLOBAL_ TIME_BASE bit is set.
Status: valid/unmigrated
Version: rel:R25-11#dee1f15d
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_TS_01403@rel:R25-11#dee1f15d
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#6a53bfde2026-09-30 Inspect R20-11 rel:R20-11#be77789b2026-10-14 Inspect R21-11 rel:R21-11#ab49120e2026-10-14 Inspect R22-11 rel:R22-11#7ad12e822026-10-14 Inspect R23-11 rel:R23-11#4e6eadf32026-10-14 Inspect R24-11 rel:R24-11#4e6eadf32026-10-14 Inspect R25-11 rel:R25-11#dee1f15d2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
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/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
变量 virtualLocalTimeLow [SWS_TS_01404] Upstream: RS_TS_00034 原文尚未导入
std::uint32_t virtualLocalTimeLow;
Least significant 32 bit of the Virtual Local Time directly after synchronization with the Global Time Base. Range: 0..4294967295 (4 Byte)
Status: valid/unmigrated
Version: rel:R25-11#fd280f7c
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_TS_01404@rel:R25-11#fd280f7c
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#8c0320502026-09-30 Inspect R20-11 rel:R20-11#502db2192026-10-14 Inspect R21-11 rel:R21-11#502db2192026-10-14 Inspect R22-11 rel:R22-11#e776b8532026-10-14 Inspect R23-11 rel:R23-11#fd280f7c2026-10-14 Inspect R24-11 rel:R24-11#8f66b6822026-10-14 Inspect R25-11 rel:R25-11#fd280f7c2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
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/unmigratedmechanically 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 · 德文原文