MICROSAR EthTSyn Technical Reference Global Time Synchronization over Ethernet Version 7.0.1 Authors Jeroen Laverman, Michael Seidenspinner Status Released MICROSAR EthTSyn技术参考通过以太网进行全球时间同步版本7.0.1作者杰罗恩·拉弗曼、迈克尔·塞登斯平纳地位已发布
Technical Reference MICROSAR EthTSyn © 2019 Vector Informatik GmbH Version 7.0.1 2 based on template version 5.7.1 Document Information History Author Date Version Remarks Jeroen Laverman 2014-09-23 1.0.0 Creation of document Jeroen Laverman 2014-11-11 1.0.1 Add new API Michael Seidenspinner 2015-01-12 1.0.2 ESCAN00080452 Modification of Chapter “Configuration” Michael Seidenspinner 2015-02-26 1.1.0 Added Configuration for SW-Timestamping Michael Seidenspinner 2015-07-10 1.2.0 ESCAN00083936 Michael Seidenspinner 2015-10-23 2.0.0 ESCAN00085377: FEAT-1529: Support Ethernet Switches for Ethernet Time Sync Michael Seidenspinner 2016-03-15 2.1.0 ESCAN00085303 Added Chapters: > Boundary Clock > AlwaysAsCapable > Announce > Source Port Identity Check > Correction Action Michael Seidenspinner 2016-05-13 2.2.0 ESCAN00089686 Added Chapter: > Flexible Pdelay configuration Michael Seidenspinner 2016-11-25 3.0.0 FEATC-248: FEAT-1998: Support of HW Time Stamping for Switch for EthTSyn (SysService_AsrTSynEth) Michael Seidenspinner 2017-03-07 4.0.0 FEATC-383: FEAT-2279: Time Synchronization acc. AR 4.3 for EthTSyn Michael Seidenspinner 2017-04-12 4.0.1 Fixed review findings Michael Seidenspinner 2017-07-05 5.0.0 STORYC-1213, STORY-128 Michael Seidenspinner 2018-02-22 6.0.0 Formal rework Michael Seidenspinner 2018-08-14 6.0.1 Fixed review findings Michael Seidenspinner 2018-11-16 7.0.0 STORYC-6413: [AVB] Implementation of 802.1Qbv extensions for EthTSyn Michael Seidenspinner 2019-01-31 7.0.1 Added EthIf restriction for STORYC-6413 2 2014-09-23 1.0.0 2014-11-11 1.0.1 2015-01-12 1.0.2 2015-02-26 1.1.0 2015-07-10 1.2.0 2015-10-23 2.0.0 2016-03-15 2.1.0 > > > > > 2016-05-13 2.2.0 > 2016-11-25 3.0.0 2017-03-07 4.0.0 2017-04-12 4.0.1 2017-07-05 5.0.0 2018-02-22 6.0.0 2018-08-14 6.0.1 2018-11-16 7.0.0 2019-01-31 7.0.1 技术参考 MICROSAR EthTSyn文件信息历史作者日期版本评论杰罗恩·拉弗曼创建文档杰罗恩·拉弗曼添加新的API迈克尔ESCAN00080452塞登斯宾纳修改“配置”章节迈克尔添加了 SW 时间戳配置塞登斯宾纳迈克尔ESCAN00083936塞登斯宾纳迈克尔ESCAN00085377:FEAT-1529:支持塞登斯宾纳用于以太网时间同步的以太网交换机迈克尔ESCAN00085303塞登斯宾纳新增章节:边界时钟永远有能力宣布源端口身份检查纠正措施迈克尔ESCAN00089686塞登斯宾纳新增章节:灵活的Pdelay配置迈克尔FEATC-248:FEAT-1998:硬件支持塞登斯宾纳EthTSyn 交换机的时间戳 (SysService_AsrTSynEth)迈克尔FEATC-383:FEAT-2279:时间塞登斯宾纳同步根据用于 EthTSyn 的 AR 4.3迈克尔修正了审查结果塞登斯宾纳迈克尔故事C-1213,故事128塞登斯宾纳迈克尔正式返工塞登斯宾纳迈克尔修正了审查结果塞登斯宾纳迈克尔STORYC-6413:[AVB] EthTSyn 的 802.1Qbv 扩展的实现塞登斯宾纳迈克尔添加了 STORYC-6413 的 EthIf 限制塞登斯宾纳© 2019 Vector Informatik 有限公司版本7.0.1基于模板版本5.7.1
Technical Reference MICROSAR EthTSyn © 2019 Vector Informatik GmbH Version 7.0.1 3 based on template version 5.7.1 Reference Documents No. Source Title Version [1] AUTOSAR AUTOSAR_SWS_TimeSyncOverEthernet.pdf V4.3.0 [2] AUTOSAR AUTOSAR_SWS_DefaultErrorTracer.pdf V4.3.0 [3] AUTOSAR AUTOSAR_SWS_DiagnosticEventManager.pdf V4.3.0 [4] AUTOSAR AUTOSAR_SWS_SynchronizedTimeBaseManager.pdf V4.3.0 [5] IEEE IEEE 802.1AS-2011: Timing and Synchronization for Time-Sensitive Applications in Bridged Local Networks 2011 [6] IEEE IEEE 1588-2008: IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems 2008 [7] Vector TechnicalReference_IpBase.pdf see delivery [8] Vector TechnicalReference_EthIf.pdf see delivery Scope of the Document This technical reference describes the general use of the EthTSyn basis software. The EthTSyn can only be used in conjunction with the StbM (see [4]), the EthIf (see [8]) and the Eth basis software module which is also part of the delivery. Caution We have configured the programs in accordance with your specifications in the questionnaire. Whereas the programs do support other configurations than the one specified in your questionnaire, Vector´s release of the programs delivered to your company is expressly restricted to the configuration you have specified in the questionnaire. 3 V4.3.0 V4.3.0 V4.3.0 V4.3.0 [5] IEEE 2011 [6] IEEE 2008 技术参考 MICROSAR EthTSyn参考文件不。来源标题版本[1] AUTOSARAUTOSAR_SWS_TimeSyncOverEthernet.pdf[2] AUTOSARAUTOSAR_SWS_DefaultErrorTracer.pdf[3] AUTOSARAUTOSAR_SWS_DiagnosticEventManager.pdf[4] AUTOSARAUTOSAR_SWS_SynchronizedTimeBaseManager.pdfIEEE 802.1AS-2011:时间的定时和同步桥接本地网络中的敏感应用程序IEEE 1588-2008:IEEE 精密时钟标准网络测量和同步协议控制系统[7]矢量技术参考_IpBase.pdf查看交货[8] 向量技术参考_EthIf.pdf查看交货文件范围本技术参考描述了 EthTSyn 基础软件的一般使用。 EthTSyn 只能与 StbM(参见[4])、EthIf(参见[8])和 Eth 基础软件模块(也是交付的一部分)结合使用。警告我们已根据您在调查问卷中的要求配置了程序。尽管这些程序确实支持您的调查问卷中指定的配置以外的其他配置,但 Vector 向您的公司发布的程序明确限于您在调查问卷中指定的配置。© 2019 Vector Informatik 有限公司版本7.0.1基于模板版本5.7.1
Technical Reference MICROSAR EthTSyn © 2019 Vector Informatik GmbH Version 7.0.1 4 based on template version 5.7.1 Contents 1 Component History ...................................................................................................... 7 2 Introduction................................................................................................................... 8 2.1 Architecture Overview ........................................................................................ 9 3 Functional Description ............................................................................................... 10 3.1 Features .......................................................................................................... 10 3.1.1 IEEE 802.1AS-2011 Conformance ................................................... 10 3.1.2 General Limitations .......................................................................... 10 3.1.3 IEEE 802.1AS-2011 Deviations ........................................................ 10 3.1.4 AUTOSAR 4.3.0 Deviations ............................................................. 11 3.1.5 Time-Aware-Bridge (Switch Management) ....................................... 11 3.1.5.1 Switch Timestamping ..................................................... 15 3.1.5.2 Acting as Bridge ............................................................. 16 3.1.5.2.1 Forwarding of Sync messages ................... 16 3.1.5.2.2 Forwarding of FollowUp messages ............ 16 3.1.5.2.3 Modification of the SourcePortIdentity for forwarded Sync/FollowUp ..................... 16 3.1.5.2.4 Pdelay ........................................................ 17 3.1.5.2.5 Boundary Clock ......................................... 17 3.1.5.3 Acting as Grand Master ................................................. 17 3.1.6 Clock Master Role ............................................................................ 17 3.1.7 Clock Slave Role .............................................................................. 17 3.1.7.1 Announce ...................................................................... 18 3.1.7.2 Source Port Identity Check ............................................ 18 3.1.8 Path Delay (Pdelay) Measurement ................................................... 18 3.1.8.1 Flexible Pdelay configuration ......................................... 19 3.1.9 AlwaysAsCapable ............................................................................ 20 3.1.10 Acting as Time-Master and Time-Slave in parallel ............................ 20 3.1.11 Time synchronization of ethernet switches ....................................... 20 3.1.11.1 Cascaded switches ........................................................ 21 3.1.11.2 Notification about changes in the switch synchronization state ............................................................................... 21 3.2 Interaction with EthIf and StbM BSW module ................................................... 22 3.3 Initialization ...................................................................................................... 25 3.4 States .............................................................................................................. 25 3.5 Main Functions ................................................................................................ 25 3.6 Error Handling .................................................................................................. 26 3.6.1 Development Error Reporting ........................................................... 26 4 1 ..................................................................................................... 7 2 ................................................................................................................... 8 2.1 ....................................................................................... 9 3 .............................................................................................. 10 3.1 .......................................................................................................... 10 3.1.1 .................................................. 10 3.1.2 ......................................................................... 10 3.1.3 ....................................................... 10 3.1.4 ............................................................ 11 3.1.5 ...................................... 11 3.1.5.1 .................................................... 15 3.1.5.2 ............................................................ 16 3.1.5.2.1 .................. 16 3.1.5.2.2 ........... 16 3.1.5.2.3 ....... 16 3.1.5.2.4 ....................................................... 17 3.1.5.2.5 ......................................... 17 3.1.5.3 ................................................ 17 3.1.6 ........................................................................... 17 3.1.7 ............................................................................. 17 3.1.7.1 ..................................................................... 18 3.1.7.2 ........................................... 18 3.1.8 .................................................. 18 3.1.8.1 ........................................ 19 3.1.9 ........................................................................... 20 3.1.10 ........................... 20 3.1.11 ...................................... 20 3.1.11.1 ....................................................... 21 3.1.11.2 21 3.2 .................................................. 22 3.3 ..................................................................................................... 25 3.4 ............................................................................................................. 25 3.5 ................................................................................................ 25 3.6 ................................................................................................. 26 3.6.1 .......................................................... 26 技术参考 MICROSAR EthTSyn内容组件历史介绍架构概述功能说明特征IEEE 802.1AS-2011 一致性一般限制IEEE 802.1AS-2011 偏差AUTOSAR 4.3.0 偏差时间感知桥(交换机管理)交换机时间戳充当桥梁同步消息的转发FollowUp消息转发修改SourcePortIdentity对于转发的同步/后续延迟时间边界时钟担任大宗师时钟主控角色时钟从角色宣布源端口身份检查路径延迟 (Pdelay) 测量灵活的Pdelay配置永远有能力并行充当时间主人和时间奴隶以太网交换机时间同步级联交换机关于交换机同步更改的通知状态与 EthIf 和 StbM BSW 模块交互初始化状态主要功能错误处理开发错误报告© 2019 Vector Informatik 有限公司版本7.0.1基于模板版本5.7.1
Technical Reference MICROSAR EthTSyn © 2019 Vector Informatik GmbH Version 7.0.1 5 based on template version 5.7.1 3.6.2 Runtime Error Reporting .................................................................. 27 3.6.3 Production Code Error Reporting ..................................................... 28 4 Integration ................................................................................................................... 29 4.1 Scope of Delivery ............................................................................................. 29 4.1.1 Static Files ....................................................................................... 29 4.1.2 Dynamic Files .................................................................................. 30 4.2 Critical Sections ............................................................................................... 30 5 API Description ........................................................................................................... 32 5.1 Type Definitions ............................................................................................... 32 5.2 Services provided by EthTSyn ......................................................................... 32 5.2.1 EthTSyn_GetVersionInfo .................................................................. 32 5.2.2 EthTSyn_Init .................................................................................... 33 5.2.3 EthTSyn_InitMemory ........................................................................ 33 5.2.4 EthTSyn_MainFunction .................................................................... 34 5.2.5 EthTSyn_SetTransmissionMode ...................................................... 34 5.3 Services used by EthTSyn ............................................................................... 35 5.4 Callback Functions ........................................................................................... 35 5.4.1 EthTSyn_RxIndication ...................................................................... 35 5.4.2 EthTSyn_TxConfirmation ................................................................. 36 5.4.3 EthTSyn_TrcvLinkStateChg ............................................................. 37 5.4.4 EthTSyn_SwitchMgmtInfoIndication ................................................. 37 5.4.5 EthTSyn_SwitchEgressTimeStampIndication ................................... 38 5.4.6 EthTSyn_SwitchIngressTimeStampIndication .................................. 38 5.5 Configurable Interfaces .................................................................................... 39 5.5.1 Notifications ..................................................................................... 39 5.5.1.1 SyncSentCbk ................................................................. 39 5.5.1.2 FollowUpSentCbk .......................................................... 40 5.5.1.3 SwitchSyncStateChangeCbk ......................................... 40 6 Configuration .............................................................................................................. 42 6.1 Configuration Variants ...................................................................................... 42 6.2 Configuration of switch time synchronization .................................................... 42 7 Glossary and Abbreviations ...................................................................................... 44 7.1 Glossary .......................................................................................................... 44 7.2 Abbreviations ................................................................................................... 44 8 Contact ........................................................................................................................ 45 5 3.6.2 ................................................................. 27 3.6.3 .................................................... 28 4 .................................................................................................................. 29 4.1 ............................................................................................ 29 4.1.1 ...................................................................................... 29 4.1.2 ................................................................................. 30 4.2 .............................................................................................. 30 5 .......................................................................................................... 32 5.1 .............................................................................................. 32 5.2 ........................................................................ 32 5.2.1 ................................................................. 32 5.2.2 ................................................................................... 33 5.2.3 ....................................................................... 33 5.2.4 ................................................................... 34 5.2.5 ..................................................... 34 5.3 .............................................................................. 35 5.4 .......................................................................................... 35 5.4.1 ..................................................................... 35 5.4.2 ................................................................ 36 5.4.3 ............................................................ 37 5.4.4 ................................................ 37 5.4.5 .................................. 38 5.4.6 ................................. 38 5.5 ................................................................................... 39 5.5.1 .................................................................................... 39 5.5.1.1 ................................................................ 39 5.5.1.2 ......................................................... 40 5.5.1.3 ........................................ 40 6 ............................................................................................................. 42 6.1 ..................................................................................... 42 6.2 ................................................... 42 7 ..................................................................................... 44 7.1 .......................................................................................................... 44 7.2 .................................................................................................. 44 8 ....................................................................................................................... 45 技术参考 MICROSAR EthTSyn运行时错误报告生产代码错误报告一体化供货范围静态文件动态文件关键部分接口说明类型定义EthTSyn 提供的服务EthTSyn_GetVersionInfoEthTSyn_InitEthTSyn_InitMemoryEthTSyn_MainFunctionEthTSyn_SetTransmissionModeEthTSyn 使用的服务回调函数EthTSyn_Rx指示EthTSyn_TxConfirmationEthTSyn_TrcvLinkStateChgEthTSyn_SwitchMgmtInfoInspiration 指示EthTSyn_SwitchEgressTimeStamp指示EthTSyn_SwitchIngressTimeStamp指示可配置的接口通知同步发送Cbk跟进已发送CbkSwitchSyncStateChangeCbk配置配置变体交换机时间同步配置术语表和缩略语词汇表缩写接触© 2019 Vector Informatik 有限公司版本7.0.1基于模板版本5.7.1
Technical Reference MICROSAR EthTSyn © 2019 Vector Informatik GmbH Version 7.0.1 6 based on template version 5.7.1 Illustrations Figure 2-1 AUTOSAR 4.3 Architecture Overview ......................................................... 9 Figure 2-2 Interface to adjacent modules of EthTSyn .................................................. 9 Figure 3-1 Bridge Overview ....................................................................................... 13 Figure 3-2 Sequence diagram of the switch management reception path .................. 14 Figure 3-3 Sequence diagram of the switch management transmission path ............. 15 Figure 3-4 Sequence diagram of path delay measurement ........................................ 19 Figure 3-5 Sequence diagram of EthTSyn message transmission ............................. 23 Figure 3-6 Sequence diagram of EthTSyn message reception .................................. 24 Figure 6-1 Configuration of switch time synchronization ............................................ 43 Figure 6-2 Configuration of rate regulator .................................................................. 43 Tables Table 1-1 Component history...................................................................................... 7 Table 3-1 Feature conformance to IEEE 802.1AS-2011 ........................................... 10 Table 3-2 General Limitations ................................................................................... 10 Table 3-3 Deviations to IEEE 802.1AS-2011: Timing and Synchronization for Time-Sensitive Applications in Bridged Local Networks ..................................... 11 Table 3-4 Deviations to AUTOSAR 4.3.0: Specification of Global Time Synchronization over Ethernet .................................................................. 11 Table 3-5 General Pdelay configuration options ....................................................... 19 Table 3-6 Pdelay initiator configuration options ........................................................ 20 Table 3-7 Reported switch sync states ..................................................................... 22 Table 3-8 List of processed state machines in EthTSyn_MainFunction() .................. 25 Table 3-9 Service IDs: Development error reporting ................................................. 26 Table 3-10 Development errors reported to DET ........................................................ 27 Table 3-11 Service IDs: Runtime error reporting ......................................................... 27 Table 3-12 Runtime errors reported to DET ................................................................ 28 Table 3-13 Errors reported to DEM ............................................................................. 28 Table 4-1 Static files ................................................................................................. 30 Table 4-2 Generated files ......................................................................................... 30 Table 5-1 Type definitions ......................................................................................... 32 Table 5-2 EthTSyn_GetVersionInfo .......................................................................... 32 Table 5-3 EthTSyn_Init ............................................................................................. 33 Table 5-4 EthTSyn_InitMemory ................................................................................ 33 Table 5-5 EthTSyn_MainFunction ............................................................................ 34 Table 5-6 EthTSyn_SetTransmissionMode ............................................................... 34 Table 5-7 Services used by the EthTSyn .................................................................. 35 Table 5-8 EthTSyn_RxIndication .............................................................................. 36 Table 5-9 EthTSyn_TxConfirmation .......................................................................... 37 Table 5-10 EthTSyn_TrcvLinkStateChg ...................................................................... 37 Table 5-11 EthTSyn_SwitchMgmtInfoIndication ......................................................... 38 Table 5-12 EthTSyn_SwitchEgressTimeStampIndication ........................................... 38 Table 5-13 EthTSyn_SwitchIngressTimeStampIndication ........................................... 39 Table 5-14 SyncSentCbk ............................................................................................ 40 Table 5-15 FollowUpSentCbk ..................................................................................... 40 Table 5-16 SwitchSyncStateChangeCbk .................................................................... 41 Table 7-1 Glossary ................................................................................................... 44 Table 7-2 Abbreviations ............................................................................................ 44 6 ................................................. 9 ................................................. 9 ................. 13 ............ 14 ............ 15 ............ 19 ............................ 23 ............................ 24 ................................. 43 ........................................... 43 ............................................ 7 .......................................... 10 .......................................... 10 11 .................... 11 ...................................................... 19 ...................................................... 20 ................. 22 ................. 25 ................. 26 ................................................ 27 ....................................................... 27 ........................................................ 28 ............................................................... 28 ............................................................................ 30 ........................................................................................ 30 ......................................................................... 32 ......................................................................... 32 ......................................................................... 33 ............................................................................ 33 .............................................................. 34 .............................................................. 34 .............................................................. 35 ................................................................. 36 ..................................................................... 37 ......................................................... 37 .......................................... 38 .......................................... 38 .......................................... 39 .......................................... 40 ................................................................... 40 ................................................................... 41 ................................................................... 44 ........................................................................................... 44 技术参考 MICROSAR EthTSyn插图AUTOSAR 4.3 架构概述图2-1与 EthTSyn 相邻模块的接口图2-2桥梁概述图3-1交换机管理接收路径时序图图3-2交换机管理传输路径时序图图3-3路径延迟测量时序图图3-4EthTSyn报文传输时序图图3-5EthTSyn报文接收时序图图3-6交换机时间同步配置图6-1速率调节器的配置图6-2表格表1-1组件历史功能符合 IEEE 802.1AS-2011表3-1一般限制表3-2表3-3与 IEEE 802.1AS-2011 的偏差:时间的定时和同步桥接本地网络中的敏感应用程序表3-4与 AUTOSAR 4.3.0 的偏差:全球时间规范通过以太网同步常规 Pdelay 配置选项表3-5Pdelay 启动器配置选项表3-6报告的交换机同步状态表3-7EthTSyn_MainFunction() 中已处理的状态机列表表3-8服务 ID:开发错误报告表3-9向 DET 报告开发错误表3-10服务 ID:运行时错误报告表3-11向 DET 报告运行时错误表3-12向 DEM 报告的错误表3-13静态文件表4-1生成的文件表4-2类型定义表5-1EthTSyn_GetVersionInfo表5-2EthTSyn_Init表5-3EthTSyn_InitMemory表5-4EthTSyn_MainFunction表5-5EthTSyn_SetTransmissionMode表5-6EthTSyn 使用的服务表5-7EthTSyn_Rx指示表5-8EthTSyn_TxConfirmation表5-9EthTSyn_TrcvLinkStateChg表5-10EthTSyn_SwitchMgmtInfoInspiration 指示表5-11EthTSyn_SwitchEgressTimeStamp指示表5-12EthTSyn_SwitchIngressTimeStamp指示表5-13同步发送Cbk表5-14跟进已发送Cbk表5-15SwitchSyncStateChangeCbk表5-16词汇表表7-1缩写表7-2© 2019 Vector Informatik 有限公司版本7.0.1基于模板版本5.7.1
Technical Reference MICROSAR EthTSyn © 2019 Vector Informatik GmbH Version 7.0.1 7 based on template version 5.7.1 1 Component History The component history gives an overview over the important milestones that are supported in the different versions of the component. Component Version New Features 1.00.xx Created Beta version 1.01.xx SW-Timestamp support 2.00.xx Time-Aware-Bridge support 2.01.xx Boundary Clock support 2.02.xx Flexible Pdelay configuration 3.00.xx Switch Timestamp support 4.00.xx AR 4.3 Support 5.00.xx Immediate Time Sync support 5.01.xx P3 release 6.00.xx Master-Slave conflict detection 6.01.xx Refactoring for SafeBSW 6.02.xx Support time base specific time difference calculation acc. ASR4.3.1 7.00.xx Switch time synchronization Table 1-1 Component history 7 1 技术参考 MICROSAR EthTSyn组件历史组件历史记录概述了不同版本的组件所支持的重要里程碑。组件版本新功能1.00.xx创建了 Beta 版本1.01.xxSW-时间戳支持2.00.xx时间感知桥支持2.01.xx边界时钟支持2.02.xx灵活的Pdelay配置3.00.xx切换时间戳支持4.00.xxAR 4.3 支持5.00.xx立即时间同步支持5.01.xxP3发布6.00.xx主从冲突检测6.01.xxSafeBSW 的重构6.02.xx支持时基特定时差计算。 ASR4.3.17.00.xx交换机时间同步表1-1组件历史© 2019 Vector Informatik 有限公司版本7.0.1基于模板版本5.7.1
Technical Reference MICROSAR EthTSyn © 2019 Vector Informatik GmbH Version 7.0.1 8 based on template version 5.7.1 2 Introduction This document describes the functionality, API and configuration of the AUTOSAR BSW module EthTSyn as specified in [1]. Supported AUTOSAR Release*: 4.3.0 Supported Configuration Variants: Pre-compile Vendor ID: EthTSyn_VENDOR_ID 30 decimal (= Vector-Informatik, according to HIS) Module ID: EthTSyn_MODULE_ID 164 decimal (according to ref. [1] ) * For the precise AUTOSAR Release 4.x please see the release specific documentation. The EthTSyn module provides the functionality of time synchronization defined by the gPTP (generalized Precision Time Protocol) IEEE 802.1AS-2011 (see [5]). The gPTP uses Ethernet communication for transmission of time stamped Ethernet frames to achieve time synchronization to a master clock. Caution When HW Timestamping is activated, the EthTSyn uses a hardware timer / counter for determination of frame ingress and egress timestamps. This hardware timer / counter module is provided as special PTP (see [6]) feature of some Ethernet controller devices. These additional Ethernet frame timing features are accessed by the EthTSyn over an API extension of the EthIf. The EthTSyn module offers the functionality to: > Provide global network time as master clock role > Provide global network time to the StbM for synchronization as slave clock role > Use of Hardware or Software for Timestamping 8 2 4.3.0 > > > 技术参考 MICROSAR EthTSyn介绍本文档描述了 [1] 中指定的 AUTOSAR BSW 模块 EthTSyn 的功能、API 和配置。支持的 AUTOSAR 版本*:支持的配置变体:预编译供应商 ID:EthTSyn_VENDOR_ID30 十进制(= Vector-Informatik,根据 HIS)模块ID:EthTSyn_MODULE_ID十进制 164(根据参考文献 [1])* 有关精确的 AUTOSAR 版本 4.x,请参阅该版本的特定文档。EthTSyn 模块提供 gPTP(通用精确时间协议)IEEE 802.1AS-2011 定义的时间同步功能(参见 [5])。 gPTP 使用以太网通信来传输带时间戳的以太网帧,以实现与主时钟的时间同步。警告当硬件时间戳被激活时,EthTSyn 使用硬件定时器/计数器来确定帧入口和出口时间戳。该硬件定时器/计数器模块作为某些以太网控制器设备的特殊 PTP(参见[6])功能提供。 EthTSyn 通过 EthIf 的 API 扩展来访问这些附加的以太网帧定时功能。EthTSyn 模块提供以下功能:提供全球网络时间作为主时钟角色作为从时钟角色,向 StbM 提供全局网络时间以进行同步使用硬件或软件进行时间戳记© 2019 Vector Informatik 有限公司版本7.0.1基于模板版本5.7.1