logo资料库

AUTOSAR_SWS_SynchronizedTimeBaseManager_merged_abroad_with_bookmark.pdf

第1页 / 共201页
第2页 / 共201页
第3页 / 共201页
第4页 / 共201页
第5页 / 共201页
第6页 / 共201页
第7页 / 共201页
第8页 / 共201页
资料共201页,剩余部分请下载后查看
1 Introduction and functional overview
1.1 Use Cases
1.2 Functional Overview
2 Acronyms and Abbreviations
2.1 Definitions
2.1.1 Time Base Customer
3 Related documentation
3.1 Input documents & related standards and norms
3.2 Related specification
4 Constraints and assumptions
4.1 Limitations
4.1.1 OS ScheduleTable
4.1.2 Synchronized Time Base Identifier
4.1.3 Mode switches
4.1.4 Configuration
4.1.5 Out of scope
4.2 Applicability to car domains
4.3 Conflicts
5 Dependencies to other modules
5.1 Code file structure
5.2 Header file structure
6 Requirements Tracing
7 Functional specification
7.1 Startup behavior
7.1.1 Preconditions
7.1.2 Initialization
7.2 Shutdown behavior
7.3 Normal operation
7.3.1 Introduction
7.3.1.1 Virtual Local Time
7.3.1.2 Types of Time Bases
7.3.1.3 Roles of the StbM
7.3.1.4 Interpolating the Global Time
7.3.2 Synchronized Time Bases
7.3.2.1 Global Time Master
7.3.2.2 Time Slave
7.3.3 Offset Time Bases
7.3.3.1 Global Time Master
7.3.3.2 Time Slave
7.3.4 Pure Local Time Bases
7.3.5 Synchronization State
7.3.5.1 Global Time Master
7.3.5.2 Time Slaves
7.3.6 Immediate Time Synchronization
7.3.7 User Data
7.3.8 Time Correction
7.3.8.1 Rate Correction Measurement (for Time Slaves)
7.3.8.2 Time Interpolation, Rate and Offset Correction (for Time Slaves)
7.3.8.3 Time Interpolation and Rate Correction for Global Time Masters
7.3.9 Time Base Cloning
7.3.10 Notification of Customers
7.3.10.1 Time Notifications
7.3.10.2 Status Notifications
7.3.11 Triggering Customers
7.3.12 Time Recording
7.3.12.1 General
7.3.12.2 Global Time Precision Measurement Support
7.3.12.3 Time Validation Support
7.3.13 Freshness Value
7.3.13.1 General
7.3.14 Interaction with User Defined Timesync Module (CDD)
7.4 Multicore Distribution
7.5 Error Handling
7.6 Error Classification
7.6.1 Development Errors
7.6.2 Runtime Errors
7.6.3 Transient Faults
7.6.4 Production Errors
7.6.5 Extended Production Errors
7.7 Version Check
8 API specification
8.1 Imported types
8.2 Type definitions
8.2.1 Extension to Std_ReturnType
8.2.2 StbM_ConfigType
8.2.3 StbM_VirtualLocalTimeType
8.2.4 StbM_MeasurementType
8.3 Function definitions
8.3.1 StbM_GetVersionInfo
8.3.2 StbM_Init
8.3.3 StbM_GetCurrentTime
8.3.4 StbM_GetCurrentTimeExtended
8.3.5 StbM_GetCurrentVirtualLocalTime
8.3.6 StbM_SetGlobalTime
8.3.7 StbM_UpdateGlobalTime
8.3.8 StbM_SetUserData
8.3.9 StbM_SetOffset
8.3.10 StbM_GetOffset
8.3.11 StbM_BusGetCurrentTime
8.3.12 StbM_BusSetGlobalTime
8.3.13 StbM_GetRateDeviation
8.3.14 StbM_SetRateCorrection
8.3.15 StbM_GetTimeLeap
8.3.16 StbM_GetTimeBaseStatus
8.3.17 StbM_CloneTimeBase
8.3.18 StbM_StartTimer
8.3.19 StbM_GetSyncTimeRecordHead
8.3.20 StbM_GetOffsetTimeRecordHead
8.3.21 StbM_TriggerTimeTransmission
8.3.22 StbM_GetTimeBaseUpdateCounter
8.3.23 StbM_GetMasterConfig
8.3.24 StbM_CanSetSlaveTimingData
8.3.25 StbM_ FrSetSlaveTimingData
8.3.26 StbM_EthSetSlaveTimingData
8.3.27 StbM_CanSetMasterTimingData
8.3.28 StbM_FrSetMasterTimingData
8.3.29 StbM_EthSetMasterTimingData
8.3.30 StbM_EthSetPdelayInitiatorData
8.3.31 StbM_EthSetPdelayResponderData
8.3.32 StbM_GetBusProtocolParam
8.3.33 StbM_SetBusProtocolParam
8.3.34 StbM_GetTxFreshness
8.3.35 StbM_GetTxFreshnessTruncData
8.3.36 StbM_SPduTxConfirmation
8.3.37 StbM_GetRxFreshness
8.4 Callback notifications
8.5 Scheduled functions
8.5.1 StbM_MainFunction
8.6 Expected interfaces
8.6.1 Mandatory interfaces
8.6.2 Optional interfaces
8.6.3 Configurable interfaces
8.6.3.1 SyncTimeRecordBlockCallback
8.6.3.2 OffsetTimeRecordBlockCallback
8.6.3.3 StatusNotificationCallback
8.6.3.4 _TimeNotificationCallback
8.6.3.5 SPduTxConfirmationFct
8.6.3.6 GetTxFreshnessTruncDataFct
8.6.3.7 GetTxFreshnessFct
8.6.3.8 GetRxFreshnessFct
8.7 Service Interfaces
8.7.1 Provided Ports
8.7.1.1 GlobalTime_Master
8.7.1.2 GlobalTime_Slave
8.7.1.3 GlobalTime_StatusEvent
8.7.1.4 StartTimer
8.7.2 Required Ports
8.7.2.1 GlobalTime_TimeEvent
8.7.2.2 GlobalTime_Measurement
8.7.2.3 TimeBaseProviderNotification_Eth
8.7.2.4 TimeBaseProviderNotification_Fr
8.7.2.5 TimeBaseProviderNotification_Can
8.7.2.6 FreshnessManagement
8.7.3 Sender-Receiver Interfaces
8.7.3.1 StatusNotification
8.7.4 Client-Server-Interfaces
8.7.4.1 GlobalTime_Master
8.7.4.2 GlobalTime_Slave
8.7.4.3 StartTimer
8.7.4.4 TimeNotification
8.7.4.5 MeasurementNotification
8.7.4.6 TimeBaseProviderNotification_Eth
8.7.4.7 TimeBaseProviderNotification_Fr
8.7.4.8 TimeBaseProviderNotification_Can
8.7.4.9 FreshnessManagement
8.7.5 Implementation Data Types
8.7.5.1 StbM_PortIdType
8.7.5.2 StbM_SynchronizedTimeBaseType
8.7.5.3 StbM_TimeBaseStatusType
8.7.5.4 StbM_TimeStampShortType
8.7.5.5 StbM_TimeStampType
8.7.5.6 StbM_TimeStampExtendedType
8.7.5.7 StbM_TimeTupleType
8.7.5.8 StbM_TimeDiffType
8.7.5.9 StbM_RateDeviationType
8.7.5.10 StbM_CloneConfigType
8.7.5.11 StbM_UserDataType
8.7.5.12 StbM_CustomerIdType
8.7.5.13 StbM_TimeBaseNotificationType
8.7.5.14 StbM_SyncRecordTableHeadType
8.7.5.15 StbM_SyncRecordTableBlockType
8.7.5.16 StbM_OffsetRecordTableHeadType
8.7.5.17 StbM_OffsetRecordTableBlockType
8.7.5.18 StbM_MasterConfigType
8.7.5.19 StbM_EthTimeMasterMeasurementType
8.7.5.20 StbM_FrTimeMasterMeasurementType
8.7.5.21 StbM_CanTimeMasterMeasurementType
8.7.5.22 StbM_EthTimeSlaveMeasurementType
8.7.5.23 StbM_FrTimeSlaveMeasurementType
8.7.5.24 StbM_CanTimeSlaveMeasurementType
8.7.5.25 StbM_PdelayInitiatorMeasurementType
8.7.5.26 StbM_PdelayResponderMeasurementType
8.7.5.27 StbM_TimeSyncType
8.7.5.28 StbM_ProtocolParamType
8.7.5.29 StbM_FreshnessArrayType
9 Sequence diagrams
9.1 StbM Initialization
9.2 Immediate Time Synchronisation
9.3 Explicit synchronization of OS ScheduleTable
10 Configuration specification
10.1 How to read this chapter
10.2 Containers and configuration parameters
10.2.1 StbM
10.2.2 StbMGeneral
10.2.3 StbMSynchronizedTimeBase
10.2.4 StbMTimeCorrection
10.2.5 StbMLocalTimeClock
10.2.6 StbMTimeRecording
10.2.7 StbMTimeValidation
10.2.8 StbMNotificationCustomer
10.2.9 StbMTriggeredCustomer
10.2.10 StbMFreshnessValueInformation
10.2.11 StbMFreshnessValue
10.3 Constraints
10.4 Published Information
A Not applicable requirements
Specification of Synchronized Time-Base Manager AUTOSAR CP R22-11 同步时基管理器规范 AUTOSAR CP R22-11 Document Title Document Owner Specification of Synchronized Time-Base Manager AUTOSAR Document Responsibility AUTOSAR Document Identification No 421 Document Status published Part of AUTOSAR Standard Classic Platform Part of Standard Release R22-11 Document Change History Date Release Changed by 2022-11-24 R22-11 2021-11-25 R21-11 AUTOSAR Release Management AUTOSAR Release Management Synchronization" added Description • Support for "Secured Time • API StbM_GetCurrentTime modified • Restorage of Global Time from persistent memory enhanced to query the Time Tuple • Support for CAN HW timestamping • API for cloning of timebases added • Rate correction of the sync reception • Several minor clarifications and delay added added corrections 文件名 文件所有者 文件责任 文件识别号 文件状态 AUTOSAR标准的一部分 标准发布的一部分 同步规格 AUTOSAR AUTOSAR 421 published 经典平台 R22-11 Date Release 2022-11-24 R22-11 文档变更历史 更改者 AUTOSAR Release Management 2021-11-25 R21-11 AUTOSAR Release Management Description •添加了对“安全时间同步”的 支持 •修改APIStbM_GetCurrentTime以查询 时间元组 •增强了从持久内存中恢复全球时 间的能力 •添加了对CAN硬件时间戳的支持 •添加了用于克隆时基的API•添加了同 步接收延迟的速率校正 •一些小的澄清和更正 1 of 201 Document ID 421: AUTOSAR_SWS_SynchronizedTimeBaseManager 1 of 201 文档ID421:AUTOSAR_SWS_SynchronizedTimeBaseManager 趣卡翻译(fanyi.qukaa.com)
Specification of Synchronized Time-Base Manager AUTOSAR CP R22-11 同步时基管理器规范 AUTOSAR CP R22-11 2020-11-30 R20-11 AUTOSAR Release Management 2019-11-28 R19-11 AUTOSAR Release Management 2018-10-31 4.4.0 AUTOSAR Release Management 2017-12-08 4.3.1 AUTOSAR Release Management • Update for Time Validation feature - support for time gateways - ring buffer added to pDelay data • New interface Set/GetBusProtocolParam added to access bus specific protocol parameters • Attribute "Variation" of the R-Port MeasurementNotification and DET Error from StbM_BusGetCurrentTime and StbM_BusSetGlobalTime APIs corrected • Timesync definitions moved to RS_TimeSync • Time Validation (draft) • Multicore Distribution support (draft) • Clarification regarding behavior when • Clarification on StbM "Time • Changed Document Status from Time Stamp or User Data is invalid Notifications" Feature Final to published • Modifications to enhance the precision of Global Time Synchronization • Additional minor corrections / clarifications / editorial changes; For details please refer to the ChangeDocumentation to apply rate correction • Corrections and clarification on how • Clarifications on Time Base Status • Additional minor corrections / and Time Leap behavior clarifications / editorial changes; For details please refer to the ChangeDocumentation 2020-11-30 R20-11 AUTOSAR Release Management 2019-11-28 R19-11 AUTOSAR Release Management 2018-10-31 4.4.0 AUTOSAR Release Management 2017-12-08 4.3.1 AUTOSAR Release Management •更新时间验证功能,支持添加到pDel ay数据的时间网关环形缓冲区 •新界面 添加了SetGetBusProtocolParam以 访问总线特定协议参数 •R端口测量通知和DET的属性“变化” 错误来自 更正了StbM_BusGetCurrentTi me和StbM_BusSetGlobalTime API •时间同步定义移至RS_TimeSync •时间验证(草案)•多核分发支持(草 案)•澄清时间戳或用户数据无效时的 行为 •对StbM“时间通知”功能的澄 清 •将文档状态从最终更改为已发布 •进行修改以提高全球时间同步 的精度 •其他细微修正 澄清编辑修改;详细信息请参考变 更文档 •关于如何应用利率修正的更正和澄清 •对时基状态和时间跳跃行为的澄清 •其他细微修正 澄清编辑修改;详细信息请参考变 更文档 2 of 201 Document ID 421: AUTOSAR_SWS_SynchronizedTimeBaseManager 2 of 201 文档ID421:AUTOSAR_SWS_SynchronizedTimeBaseManager 趣卡翻译(fanyi.qukaa.com)
Specification of Synchronized Time-Base Manager AUTOSAR CP R22-11 同步时基管理器规范 AUTOSAR CP R22-11 2016-11-30 4.3.0 AUTOSAR Release Management 2015-07-31 4.2.2 AUTOSAR Release Management 2014-10-31 4.2.1 AUTOSAR Release Management 2014-03-31 4.1.3 AUTOSAR Release Management to uint32 StbM_Init • Config parameter argument added to • StbM_TimeStampRawType changed • StbM_BusSetGlobalTime allow • "const" added to input arguments • Debugging support marked as NULL as userDataPtr passed by pointer obsolete • Concept "Global Time support added • Rate Correction added • Time precision measurement • Time/status notification mechanism • Various enhancements and added corrections Synchronization" incorporated to replace (and by that improve) original functionality and to support new functionality, e.g. support of CAN and Ethernet • Support for gateways to enable time domains spanning several busses • Due to deficiencies R4.0/1 content has been removed (e.g. customer API + polling of time-base providers). Exception: API to synchronize OS schedule tables • Clarification on Autonomous Time Maintenance 2016-11-30 4.3.0 AUTOSAR Release Management 2015-07-31 4.2.2 AUTOSAR Release Management 2014-10-31 4.2.1 AUTOSAR Release Management 2014-03-31 4.1.3 AUTOSAR Release Management •添加了速率校正•添加了时间 精度测量支持 •添加时间状态通知机制 •各种增强和修正 •配置参数参数添加到StbM_Init •StbM_TimeStampRawType更改为uint 32 •StbM_BusSetGlobalTime允许NU LL作为userDataPtr •将“const”添加到由指针传递的输入 参数中 •调试支持标记为过时 •概念“全球时间 合并“同步”以取代(并由此改进)原 始功能并支持新功能,例如支持CAN 和以太网 •支持网关以启用跨多个总线的时域 •由于缺陷,R4.01内容已被删除(例如 客户API+时基提供商轮询)。 例外:用于同步操作系统调度表的 API •对自主时间维护的澄清 3 of 201 Document ID 421: AUTOSAR_SWS_SynchronizedTimeBaseManager 3 of 201 文档ID421:AUTOSAR_SWS_SynchronizedTimeBaseManager 趣卡翻译(fanyi.qukaa.com)
Specification of Synchronized Time-Base Manager AUTOSAR CP R22-11 同步时基管理器规范 AUTOSAR CP R22-11 2013-10-31 4.1.2 AUTOSAR Release Management 2013-03-15 4.1.1 AUTOSAR Administration / StbMTtcanClusterRef set to obsolete • Editorial changes • Removed chapter(s) on change documentation added • Parameter StbMMainFunctionPeriod • Requirements StbM_0030 and • Restructuring of and clarification 00035 removed w.r.t. Service Interface related chapters • Parameters StbMFlexRayClusterRef removed • Added "Known Limitations" • Contradictions in error handling • Added chapter service interfaces • Added Subchapter 3.x due to SWS • Reworked according to the new General Rollout SWS_BSWGeneral 2011-12-22 4.0.3 2010-09-30 3.1.5 2010-02-02 3.1.4 AUTOSAR Administration AUTOSAR Administration AUTOSAR Administration • Added functionality for absolute time provision • SRS_General: SRS_BSW_00004 • Binding character of the Standardized AUTOSAR Interfaces mentioned in the SWS Documents. • Missing Port Driver DET Error Codes • Initial Release 2013-10-31 4.1.2 AUTOSAR Release Management •添加了参数StbMMainFunctionPeriod •删除了StbM_0030和00035要 求 •重组和澄清。服务接口相关章节 •参数StbMFlexRayClusterRefStbMTtca nClusterRef设置为过时 •编辑性变更•删除了有关变更文档 的章节 •添加了“已知限制”•删除了错误处 理中的矛盾 2013-03-15 4.1.1 AUTOSAR Administration •添加了章节服务接口•由于SWS常规 部署而添加了Subchapter3.x 2011-12-22 4.0.3 2010-09-30 3.1.5 AUTOSAR Administration AUTOSAR Administration •根据新的SWS_BSWGeneral重新 设计 •添加了绝对时间提供功能 •SRS_General:SRS_BSW_00004• 的绑定字符 SWS文档中提到的标准化AUTOSAR 接口。 •缺少端口驱动程序DET错误代码 2010-02-02 3.1.4 AUTOSAR Administration •初始发行 4 of 201 Document ID 421: AUTOSAR_SWS_SynchronizedTimeBaseManager 4 of 201 文档ID421:AUTOSAR_SWS_SynchronizedTimeBaseManager 趣卡翻译(fanyi.qukaa.com)
Specification of Synchronized Time-Base Manager AUTOSAR CP R22-11 同步时基管理器规范 AUTOSAR CP R22-11 Disclaimer Disclaimer This work (specification and/or software implementation) and the material contained in it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR and the companies that have contributed to it shall not be liable for any use of the work. The material contained in this work is protected by copyright and other types of intel- lectual property rights. The commercial exploitation of the material contained in this work requires a license to such intellectual property rights. This work may be utilized or reproduced without any modification, in any form or by any means, for informational purposes only. For any other purpose, no part of the work may be utilized or reproduced, in any form or by any means, without permission in writing from the publisher. The work has been developed for automotive applications only. developed, nor tested for non-automotive applications. It has neither been The word AUTOSAR and the AUTOSAR logo are registered trademarks. AUTOSAR发布的本作品(规范和/或软件实现)及其中包含的材料仅供参考。AUTOSA R和为其做出贡献的公司不对作品的任何使用承担责任。 本作品中包含的材料受版权和其他类型的知识产权保护。对本作品中包含的材料进行 商业利用需要获得此类知识产权的许可。 本作品可在不作任何修改的情况下以任何形式或通过任何方式使用或复制,仅供参考 。未经出版商书面许可,不得出于任何其他目的以任何形式或通过任何方式使用或复 制作品的任何部分。 该工作仅针对汽车应用而开发。它尚未针对非汽车应用进行开发或测试。 AUTOSAR一词和AUTOSAR徽标是注册商标。 5 of 201 Document ID 421: AUTOSAR_SWS_SynchronizedTimeBaseManager 5 of 201 文档ID421:AUTOSAR_SWS_SynchronizedTimeBaseManager 趣卡翻译(fanyi.qukaa.com)
Specification of Synchronized Time-Base Manager AUTOSAR CP R22-11 同步时基管理器规范 AUTOSAR CP R22-11 Contents Contents 1 Introduction and functional overview 1.1 1.2 Use Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Acronyms and Abbreviations 2.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.1 Time Base Customer 3 Related documentation 3.1 3.2 Input documents & related standards and norms . . . . . . . . . . . . Related specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Constraints and assumptions 4.1 4.2 4.3 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OS ScheduleTable . . . . . . . . . . . . . . . . . . . . . . . . 4.1.1 Synchronized Time Base Identifier . . . . . . . . . . . . . . . 4.1.2 4.1.3 Mode switches . . . . . . . . . . . . . . . . . . . . . . . . . . Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.4 4.1.5 Out of scope . . . . . . . . . . . . . . . . . . . . . . . . . . . Applicability to car domains . . . . . . . . . . . . . . . . . . . . . . . . Conflicts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Dependencies to other modules 5.1 5.2 Code file structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Header file structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Requirements Tracing 7.1 7.2 7.3 7 Functional specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Startup behavior Preconditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1.1 7.1.2 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shutdown behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Normal operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . Virtual Local Time . . . . . . . . . . . . . . . . . . . Types of Time Bases . . . . . . . . . . . . . . . . . . Roles of the StbM . . . . . . . . . . . . . . . . . . . Interpolating the Global Time . . . . . . . . . . . . . Synchronized Time Bases . . . . . . . . . . . . . . . . . . . Global Time Master . . . . . . . . . . . . . . . . . . Time Slave . . . . . . . . . . . . . . . . . . . . . . . Offset Time Bases . . . . . . . . . . . . . . . . . . . . . . . . Global Time Master . . . . . . . . . . . . . . . . . . Time Slave . . . . . . . . . . . . . . . . . . . . . . . 7.3.1.1 7.3.1.2 7.3.1.3 7.3.1.4 7.3.3.1 7.3.3.2 7.3.2.1 7.3.2.2 7.3.2 7.3.3 1 2 3 4 5 6 7 11 11 11 15 15 15 17 17 17 18 18 18 18 18 18 18 19 19 20 20 20 21 32 32 32 32 33 34 34 35 37 37 39 42 43 43 44 45 45 简介和功能概述 用例。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 功能概述 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 1.2 缩略语 2.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.1 相关文档 时基客户 输入文件及相关标准规范 相关规范。。。。。。。。。。。。。。。。。。。。。。。。。。。。 . . . . . . . . . . . . 3.1 3.2 约束和假设 4.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OS ScheduleTable . . . . . . . . . . . . . . . . . . . . . . . . 4.1.1 同步时基标识符。。。。。。。。。。。。。。。 4.1.2 模式开关。。。。。。。。。。。。。。。。。。。。。。。。。。 4.1.3 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.4 超出范围。。。。。。。。。。。。。。。。。。。。。。。。。。。 4.1.5 适用于汽车领域 . . . . . . . . . . . . . . . . . . . . . . . . Conflicts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 4.3 对其他模块的依赖 代码文件结构 头文件结构 5.1 5.2 需求追踪 功能规格 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preconditions . . . . . . . . . . . . . . . . . . . . . . . . . . . Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 启动行为 7.1.1 7.1.2 关机行为。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 普通手术。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 7.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 虚拟当地时间 . . . . . . . . . . . . . . . . . . . 时基的类型。。。。。。。。。。。。。。。。。。 StbM的角色 . . . . . . . . . . . . . . . . . . . 插值全球时间。。。。。。。。。。。。。 7.3.1.1 7.3.1.2 7.3.1.3 7.3.1.4 7.3.2 7.3.3 7.3.2.1 7.3.2.2 同步时基 全球时间大师 时间奴隶 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 偏移时基。。。。。。。。。。。。。。。。。。。。。。。。 7.3.3.1 7.3.3.2 全球时间大师 时间奴隶 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 11 11 15 15 15 17 17 17 18 18 18 18 18 18 18 19 19 20 20 20 21 32 32 32 32 33 34 34 35 37 37 39 42 43 43 44 45 45 6 of 201 Document ID 421: AUTOSAR_SWS_SynchronizedTimeBaseManager 6 of 201 文档ID421:AUTOSAR_SWS_SynchronizedTimeBaseManager 趣卡翻译(fanyi.qukaa.com)
Specification of Synchronized Time-Base Manager AUTOSAR CP R22-11 同步时基管理器规范 AUTOSAR CP R22-11 7.3.8.3 7.3.4 7.3.5 7.3.9 7.3.10 7.3.5.1 7.3.5.2 7.3.8.1 7.3.8.2 7.3.6 7.3.7 7.3.8 7.3.10.1 7.3.10.2 Pure Local Time Bases . . . . . . . . . . . . . . . . . . . . . Synchronization State . . . . . . . . . . . . . . . . . . . . . . Global Time Master . . . . . . . . . . . . . . . . . . Time Slaves . . . . . . . . . . . . . . . . . . . . . . . Immediate Time Synchronization . . . . . . . . . . . . . . . . User Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Time Correction . . . . . . . . . . . . . . . . . . . . . . . . . Rate Correction Measurement (for Time Slaves) . . Time Interpolation, Rate and Offset Correction (for Time Slaves) . . . . . . . . . . . . . . . . . . . . . . Time Interpolation and Rate Correction for Global Time Masters . . . . . . . . . . . . . . . . . . . . . . Time Base Cloning . . . . . . . . . . . . . . . . . . . . . . . Notification of Customers . . . . . . . . . . . . . . . . . . . . Time Notifications . . . . . . . . . . . . . . . . . . . Status Notifications . . . . . . . . . . . . . . . . . . . Triggering Customers . . . . . . . . . . . . . . . . . . . . . . Time Recording . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Freshness Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4 Multicore Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.5 Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Error Classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6 Development Errors . . . . . . . . . . . . . . . . . . . . . . . 7.6.1 7.6.2 Runtime Errors . . . . . . . . . . . . . . . . . . . . . . . . . . Transient Faults . . . . . . . . . . . . . . . . . . . . . . . . . 7.6.3 Production Errors . . . . . . . . . . . . . . . . . . . . . . . . 7.6.4 7.6.5 Extended Production Errors . . . . . . . . . . . . . . . . . . . Version Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Global Time Precision Measurement Support Time Validation Support Interaction with User Defined Timesync Module (CDD) 7.3.12.1 7.3.12.2 7.3.12.3 7.3.11 7.3.12 7.3.13.1 General 7.3.13 7.3.14 7.7 8 API specification 8.1 8.2 8.3 Imported types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Type definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Extension to Std_ReturnType . . . . . . . . . . . . . . . . . . 8.2.1 StbM_ConfigType . . . . . . . . . . . . . . . . . . . . . . . . 8.2.2 8.2.3 StbM_VirtualLocalTimeType . . . . . . . . . . . . . . . . . . 8.2.4 StbM_MeasurementType . . . . . . . . . . . . . . . . . . . . Function definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.3.1 StbM_GetVersionInfo . . . . . . . . . . . . . . . . . . . . . . StbM_Init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.3.2 StbM_GetCurrentTime . . . . . . . . . . . . . . . . . . . . . 8.3.3 8.3.4 StbM_GetCurrentTimeExtended . . . . . . . . . . . . . . . . 46 47 48 48 51 51 52 52 57 60 63 65 65 68 70 72 72 72 77 86 86 87 87 88 88 88 88 89 89 89 89 90 90 90 90 91 91 91 92 92 92 93 94 8 7.3.4 7.3.5 7.3.6 7.3.7 7.3.8 7.3.5.1 7.3.5.2 7.3.8.1 7.3.8.2 7.3.8.3 7.3.9 7.3.10 7.3.11 7.3.12 7.3.10.1 7.3.10.2 7.3.12.1 7.3.12.2 7.3.12.3 纯本地时基。。。。。。。。。。。。。。。。。。。。。 同步状态。。。。。。。。。。。。。。。。。。。。。。 全球时间大师 时间奴隶。。。。。。。。。。。。。。。。。。。。。。。 . . . . . . . . . . . . . . . . . . 立即时间同步。。。。。。。。。。。。。。。。 用户数据。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 时间修正。。。。。。。。。。。。。。。。。。。。。。。。。 . . 速率校正测量(时间从站) 时间插值、速率和偏移校正(对于 Time Slaves) . . . . . . . . . . . . . . . . . . . . . . 全球时间主站的时间插值和速率校正。。。。。。。 。。。。。。。。。。。。。。。 时基克隆 客户通知。。。。。。。。。。。。。。。。。。。。 . . . . . . . . . . . . . . . . . . . . . . . 时间通知 . . . . . . . . . . . . . . . . . . . 状态通知。。。。。。。。。。。。。。。。。。。 触发客户。。。。。。。。。。。。。。。。。。。。。。 时间记录 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General 全球时间精确测量支持。。。。 时间验证支持。。。。。。。。。。。。。。。。 7.3.14 7.3.13 General 7.3.13.1 与用户定义的时间同步模块(CDD)交互 新鲜度值。。。。。。。。。。。。。。。。。。。。。。。。。 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4 Multicore Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.5 7.6 错误处理。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 错误分类。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 7.6.1 7.6.2 7.6.3 7.6.4 7.6.5 版本检查。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 开发错误。。。。。。。。。。。。。。。。。。。。。。。 Runtime Errors . . . . . . . . . . . . . . . . . . . . . . . . . . 瞬态故障 . . . . . . . . . . . . . . . . . . . . . . . . . 生产错误 . . . . . . . . . . . . . . . . . . . . . . . . 生产错误扩大。。。。。。。。。。。。。。。。。。。 7.7 API规范 8.1 8.2 8.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 扩展为Std_ReturnType。。。。。。。。。。。。。。。。。。 StbM_ConfigType . . . . . . . . . . . . . . . . . . . . . . . . StbM_VirtualLocalTimeType . . . . . . . . . . . . . . . . . . StbM_MeasurementType . . . . . . . . . . . . . . . . . . . . 进口类型 类型定义。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 8.2.1 8.2.2 8.2.3 8.2.4 函数定义。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 8.3.1 8.3.2 8.3.3 8.3.4 StbM_GetVersionInfo . . . . . . . . . . . . . . . . . . . . . . StbM_Init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . StbM_GetCurrentTime . . . . . . . . . . . . . . . . . . . . . StbM_GetCurrentTimeExtended . . . . . . . . . . . . . . . . 46 47 48 48 51 51 52 52 57 60 63 65 65 68 70 72 72 72 77 86 86 87 87 88 88 88 88 89 89 89 89 90 90 90 90 91 91 91 92 92 92 93 94 7 of 201 Document ID 421: AUTOSAR_SWS_SynchronizedTimeBaseManager 7 of 201 文档ID421:AUTOSAR_SWS_SynchronizedTimeBaseManager 趣卡翻译(fanyi.qukaa.com)
Specification of Synchronized Time-Base Manager AUTOSAR CP R22-11 同步时基管理器规范 AUTOSAR CP R22-11 8.3.5 94 StbM_GetCurrentVirtualLocalTime . . . . . . . . . . . . . . . 8.3.6 95 StbM_SetGlobalTime . . . . . . . . . . . . . . . . . . . . . . 8.3.7 96 StbM_UpdateGlobalTime . . . . . . . . . . . . . . . . . . . . 8.3.8 97 StbM_SetUserData . . . . . . . . . . . . . . . . . . . . . . . 8.3.9 98 StbM_SetOffset . . . . . . . . . . . . . . . . . . . . . . . . . 8.3.10 StbM_GetOffset 99 . . . . . . . . . . . . . . . . . . . . . . . . . 8.3.11 StbM_BusGetCurrentTime . . . . . . . . . . . . . . . . . . . 100 8.3.12 StbM_BusSetGlobalTime . . . . . . . . . . . . . . . . . . . . 100 8.3.13 StbM_GetRateDeviation . . . . . . . . . . . . . . . . . . . . 102 8.3.14 StbM_SetRateCorrection . . . . . . . . . . . . . . . . . . . . 102 8.3.15 StbM_GetTimeLeap . . . . . . . . . . . . . . . . . . . . . . . 103 8.3.16 StbM_GetTimeBaseStatus . . . . . . . . . . . . . . . . . . . 104 8.3.17 StbM_CloneTimeBase . . . . . . . . . . . . . . . . . . . . . 105 8.3.18 StbM_StartTimer . . . . . . . . . . . . . . . . . . . . . . . . . 106 8.3.19 StbM_GetSyncTimeRecordHead . . . . . . . . . . . . . . . . 107 8.3.20 StbM_GetOffsetTimeRecordHead . . . . . . . . . . . . . . . 108 8.3.21 StbM_TriggerTimeTransmission . . . . . . . . . . . . . . . . 109 8.3.22 StbM_GetTimeBaseUpdateCounter . . . . . . . . . . . . . . 109 8.3.23 StbM_GetMasterConfig . . . . . . . . . . . . . . . . . . . . . 110 8.3.24 StbM_CanSetSlaveTimingData . . . . . . . . . . . . . . . . . 111 8.3.25 StbM_ FrSetSlaveTimingData . . . . . . . . . . . . . . . . . 111 8.3.26 StbM_EthSetSlaveTimingData . . . . . . . . . . . . . . . . . 112 8.3.27 StbM_CanSetMasterTimingData . . . . . . . . . . . . . . . . 113 8.3.28 StbM_FrSetMasterTimingData . . . . . . . . . . . . . . . . . 113 8.3.29 StbM_EthSetMasterTimingData . . . . . . . . . . . . . . . . 114 8.3.30 StbM_EthSetPdelayInitiatorData . . . . . . . . . . . . . . . . 115 8.3.31 StbM_EthSetPdelayResponderData . . . . . . . . . . . . . . 116 8.3.32 StbM_GetBusProtocolParam . . . . . . . . . . . . . . . . . . 117 8.3.33 StbM_SetBusProtocolParam . . . . . . . . . . . . . . . . . . 117 8.3.34 StbM_GetTxFreshness . . . . . . . . . . . . . . . . . . . . . 118 8.3.35 StbM_GetTxFreshnessTruncData . . . . . . . . . . . . . . . 119 8.3.36 StbM_SPduTxConfirmation . . . . . . . . . . . . . . . . . . . 120 8.3.37 StbM_GetRxFreshness . . . . . . . . . . . . . . . . . . . . . 121 Callback notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Scheduled functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 8.5.1 StbM_MainFunction . . . . . . . . . . . . . . . . . . . . . . . 122 Expected interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Mandatory interfaces . . . . . . . . . . . . . . . . . . . . . . 122 8.6.1 Optional interfaces . . . . . . . . . . . . . . . . . . . . . . . . 123 8.6.2 8.6.3 Configurable interfaces . . . . . . . . . . . . . . . . . . . . . 124 SyncTimeRecordBlockCallback . . . . . . . . . . . . 124 OffsetTimeRecordBlockCallback . . . . . . . . . . . 124 StatusNotificationCallback . . . . . . . . . . . . . . . 125 _TimeNotificationCallback . . . . . . . . 126 SPduTxConfirmationFct . . . . . . . . . . . . . . . . 126 GetTxFreshnessTruncDataFct . . . . . . . . . . . . . 127 8.6.3.1 8.6.3.2 8.6.3.3 8.6.3.4 8.6.3.5 8.6.3.6 8.4 8.5 8.6 8.4 8.5 8.6 8.3.5 8.3.6 8.3.7 8.3.8 8.3.9 8.3.10 8.3.11 8.3.12 8.3.13 8.3.14 8.3.15 8.3.16 8.3.17 8.3.18 8.3.19 8.3.20 8.3.21 8.3.22 8.3.23 8.3.24 8.3.25 8.3.26 8.3.27 8.3.28 8.3.29 8.3.30 8.3.31 8.3.32 8.3.33 8.3.34 8.3.35 8.3.36 8.3.37 回拨通知。。。。。。。。。。。。。。。。。。。。。。。。。。。。 预定功能 8.5.1 预期的接口。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 8.6.1 8.6.2 8.6.3 94 StbM_GetCurrentVirtualLocalTime . . . . . . . . . . . . . . . 95 StbM_SetGlobalTime . . . . . . . . . . . . . . . . . . . . . . 96 StbM_UpdateGlobalTime . . . . . . . . . . . . . . . . . . . . 97 StbM_SetUserData . . . . . . . . . . . . . . . . . . . . . . . 98 StbM_SetOffset . . . . . . . . . . . . . . . . . . . . . . . . . StbM_GetOffset 99 . . . . . . . . . . . . . . . . . . . . . . . . . StbM_BusGetCurrentTime . . . . . . . . . . . . . . . . . . . 100 StbM_BusSetGlobalTime . . . . . . . . . . . . . . . . . . . . 100 StbM_GetRateDeviation . . . . . . . . . . . . . . . . . . . . 102 StbM_SetRateCorrection . . . . . . . . . . . . . . . . . . . . 102 StbM_GetTimeLeap . . . . . . . . . . . . . . . . . . . . . . . 103 StbM_GetTimeBaseStatus . . . . . . . . . . . . . . . . . . . 104 StbM_CloneTimeBase . . . . . . . . . . . . . . . . . . . . . 105 StbM_StartTimer . . . . . . . . . . . . . . . . . . . . . . . . . 106 StbM_GetSyncTimeRecordHead . . . . . . . . . . . . . . . . 107 StbM_GetOffsetTimeRecordHead . . . . . . . . . . . . . . . 108 StbM_TriggerTimeTransmission . . . . . . . . . . . . . . . . 109 StbM_GetTimeBaseUpdateCounter . . . . . . . . . . . . . . 109 StbM_GetMasterConfig . . . . . . . . . . . . . . . . . . . . . 110 StbM_CanSetSlaveTimingData . . . . . . . . . . . . . . . . . 111 StbM_ FrSetSlaveTimingData . . . . . . . . . . . . . . . . . 111 StbM_EthSetSlaveTimingData . . . . . . . . . . . . . . . . . 112 StbM_CanSetMasterTimingData . . . . . . . . . . . . . . . . 113 StbM_FrSetMasterTimingData . . . . . . . . . . . . . . . . . 113 StbM_EthSetMasterTimingData . . . . . . . . . . . . . . . . 114 StbM_EthSetPdelayInitiatorData . . . . . . . . . . . . . . . . 115 StbM_EthSetPdelayResponderData . . . . . . . . . . . . . . 116 StbM_GetBusProtocolParam . . . . . . . . . . . . . . . . . . 117 StbM_SetBusProtocolParam . . . . . . . . . . . . . . . . . . 117 StbM_GetTxFreshness . . . . . . . . . . . . . . . . . . . . . 118 StbM_GetTxFreshnessTruncData . . . . . . . . . . . . . . . 119 StbM_SPduTxConfirmation . . . . . . . . . . . . . . . . . . . 120 StbM_GetRxFreshness . . . . . . . . . . . . . . . . . . . . . 121 122 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 StbM_MainFunction . . . . . . . . . . . . . . . . . . . . . . . 122 122 强制接口 . . . . . . . . . . . . . . . . . . . . . . 122 可选接口。。。。。。。。。。。。。。。。。。。。。。。。 123 Configurable interfaces . . . . . . . . . . . . . . . . . . . . . 124 SyncTimeRecordBlockCallback . . . . . . . . . . . . 124 OffsetTimeRecordBlockCallback . . . . . . . . . . . 124 StatusNotificationCallback . . . . . . . . . . . . . . . 125 _TimeNotificationCallback . . . . . . . . 126 SPduTxConfirmationFct . . . . . . . . . . . . . . . . 126 GetTxFreshnessTruncDataFct . . . . . . . . . . . . . 127 8.6.3.1 8.6.3.2 8.6.3.3 8.6.3.4 8.6.3.5 8.6.3.6 8 of 201 Document ID 421: AUTOSAR_SWS_SynchronizedTimeBaseManager 8 of 201 文档ID421:AUTOSAR_SWS_SynchronizedTimeBaseManager 趣卡翻译(fanyi.qukaa.com)
分享到:
收藏