logo资料库

AUTOSAR_SWS_TimeSyncOverEthernet_merged_public.pdf

第1页 / 共87页
第2页 / 共87页
第3页 / 共87页
第4页 / 共87页
第5页 / 共87页
第6页 / 共87页
第7页 / 共87页
第8页 / 共87页
资料共87页,剩余部分请下载后查看
SpecificationofTimeSynchronizationoverEthernetAUTOSARCPR21-11DocumentTitleSpecificationofTimeSynchronizationoverEthernetDocumentOwnerAUTOSARDocumentResponsibilityAUTOSARDocumentIdentificationNo676DocumentStatuspublishedPartofAUTOSARStandardClassicPlatformPartofStandardReleaseR21-11DocumentChangeHistoryDateReleaseChangedbyDescription2021-11-25R21-11AUTOSARReleaseManagement•OriginTimeStampcalculationcorrected•Syncreceptiondelaycorrected•SequenceCounterspecified•RemovedDe-Initandre-Initrequirments•NewparameterforhandlingofSequenceCounterjumpsintroduced•MigrationtoLatexBaseddocument2020-11-30R20-11AUTOSARReleaseManagement•ClarificationofFollow_UpinformationTLVmessage•ClarificationofSafetyvalidationserviceinterface•SequenceCounterspecified•ImprovementthestructureoftheErrorclassification•ClarificationofEthTSynPortConfig1of87DocumentID676:AUTOSAR_SWS_TimeSyncOverEthernetAUTOSARAUTOSAR676R21-112021-11-25R21-11AUTOSAR2020-11-30R20-11AUTOSAR1of87以太网Autosar CP R21-11时间同步规范时间规范文件标题以太网同步文件拥有人文件责任文件识别编号文件状态已出版AUTOSAR标准的一部分经典平台标准发布的一部分文件更改历史资料描述日期发行版被改变了*原点时间戳计算修正*同步接收延迟修正*指定序列计数器发行版*删除De-Init和re-Init请求管理层*引入处理序列计数器跳转的新参数*迁移到基于Latex的文档*澄清Follow_Up信息TLV消息*澄清安全验证服务界面发行版*指定序列计数器管理层*改进错误分类的结构*澄清EthTSynPortConfig文档ID676:AUTOSAR_SWS_TimeSyncOverEthernet
SpecificationofTimeSynchronizationoverEthernetAUTOSARCPR21-112019-11-28R19-11AUTOSARReleaseManagement•TimeValidation(draft)•Clarificationregardingcyclicoperationentryaftertimebasestartup•ClarificationregardingtransmissionandreceptionofUserBytes•ClarifiedSGWvaluehandlingformissingSub-TLVs•ChangedDocumentStatusfromFinaltopublished2018-10-314.4.0AUTOSARReleaseManagement•ModificationstoenhanceprecisionofGlobalTimeSynchronization•SplitintoFOProtocolSpecandCPSWS2017-12-084.3.1AUTOSARReleaseManagement•ClarificationofhandlingofunexpectedSub-TLVs•Clarificationforconfigurationparameter•ClarificationofhandlingFUPmessages2016-11-304.3.0AUTOSARReleaseManagement•Residenttimecompensationforswitchesadded•AUTOSARspecificTLVadded•InterfacetoStbMandEthIfreworked(incl.supportforimmediateTimesyncmessagetransmission)•Variousenhancementsandcorrections(e.g.postbuildconfiguration)2015-07-314.2.2AUTOSARReleaseManagement•TSyn_SetTransmissionModechangedtoreturn"void"•CallofStbM_UpEthSetGlobalTime()added-sequencediagramscorrected•’const’addedtoinputargumentspassedbypointer2014-10-314.2.1AUTOSARReleaseManagement•Initialrelease2of87DocumentID676:AUTOSAR_SWS_TimeSyncOverEthernet2019-11-28R19-11AUTOSAR2018-10-314.4.0AUTOSAR2017-12-084.3.1AUTOSAR2016-11-304.3.0AUTOSAR2015-07-314.2.2AUTOSAR2014-10-314.2.1AUTOSAR2of87时间同步的规范以太网汽车CPR21-11*时间验证(草案)*关于时基启动后循环操作条目的澄清*关于用户字节的发送和接收的澄清发行版管理层*澄清缺失子TLVs的SGW值处理*将文档状态从最终更改为已发布*修改以提高全球时间同步的精度发行版*分为FO协议规范和CP SWS管理层*澄清处理意外的TLVs*配置参数的澄清发行版管理层*澄清处理FUP讯息*增加开关的驻留时间补偿*新增AUTOSAR专用TLV•接口到StbM和EthIf返工(包括。 支持即时Timesync消息传输)发行版管理层*各种增强和更正(例如postbuild配置)*TSyn_SetTransmissionMode更改为返回"void"*调用StbM_UpEthSetGlobalTime()添加序列图。发行版管理层*'const'添加到通过指针传递的输入参数中发行版*初始版本管理层文档ID676:AUTOSAR_SWS_TimeSyncOverEthernet
SpecificationofTimeSynchronizationoverEthernetAUTOSARCPR21-11DisclaimerThiswork(specificationand/orsoftwareimplementation)andthematerialcontainedinit,asreleasedbyAUTOSAR,isforthepurposeofinformationonly.AUTOSARandthecompaniesthathavecontributedtoitshallnotbeliableforanyuseofthework.Thematerialcontainedinthisworkisprotectedbycopyrightandothertypesofintel-lectualpropertyrights.Thecommercialexploitationofthematerialcontainedinthisworkrequiresalicensetosuchintellectualpropertyrights.Thisworkmaybeutilizedorreproducedwithoutanymodification,inanyformorbyanymeans,forinformationalpurposesonly.Foranyotherpurpose,nopartoftheworkmaybeutilizedorreproduced,inanyformorbyanymeans,withoutpermissioninwritingfromthepublisher.Theworkhasbeendevelopedforautomotiveapplicationsonly.Ithasneitherbeendeveloped,nortestedfornon-automotiveapplications.ThewordAUTOSARandtheAUTOSARlogoareregisteredtrademarks.3of87DocumentID676:AUTOSAR_SWS_TimeSyncOverEthernet3of87以太网Autosar CP R21-11时间同步规范免责声明AUTOSAR发布的本作品(规范和/或软件实现)及其中包含的材料仅用于信息目的。 AUTOSAR和为其做出贡献的公司不对作品的任何使用负责。本作品中包含的材料受版权和其他类型的知识产权保护。 本作品中所含材料的商业利用需要获得此类知识产权的许可。本作品可以不作任何修改、以任何形式或方式使用或复制,只供参考之用。 为任何其他目的,未经出版商书面许可,不得以任何形式或方式使用或复制作品的任何部分。这项工作是为汽车应用开发的。 它既没有被开发,也没有被测试用于非汽车应用。AUTOSAR和AUTOSAR标志是注册商标。文档ID676:AUTOSAR_SWS_TimeSyncOverEthernet
SpecificationofTimeSynchronizationoverEthernetAUTOSARCPR21-11TableofContents1Introductionandfunctionaloverview72Acronyms,AbbreviationsandDefinitions73Relateddocumentation83.1Inputdocuments..............................83.2Relatedspecification............................94Constraintsandassumptions94.1Limitations..................................94.2Accuracy...................................104.3Applicabilitytocardomains........................105Dependenciestoothermodules105.1Filestructure................................125.1.1Codefilestructure........................126RequirementsTracing127Functionalspecification157.1Overview...................................157.1.1General..............................157.1.2VLANSupport..........................157.2Initialization.................................167.3HandlingofdifferentVirtualLocalTimesources.............167.4DebounceTime...............................177.5PdelayProtocolforLatencyCalculation.................177.5.1PdelayMessageTransmission.................177.5.2PdelayMessageReception...................197.6MessageFormat..............................207.6.1SyncandFollow_Upacc.toIEEE802.1AS..........207.6.2SyncandFollow_Upacc.toAUTOSAR............207.6.2.1Follow_UpMessageHeader[AUTOSAR]......207.6.2.2AUTOSARTLVSub-TLV’s...............207.7ActingasTimeMaster...........................227.7.1Messageprocessing.......................227.7.1.1RuntimeErrordetection................247.7.1.2FrameDebouncing...................247.7.1.3ImmediateTimeSynchronization...........247.7.2LinkStateandTransmissionMode...............257.7.3MessageFieldCalculationandAssembling..........257.7.3.1SGWCalculation....................257.7.3.2OFSCalculation....................267.7.3.3CRCCalculation....................267.7.3.4SequenceCounter(sequenceId)Calculation....264of87DocumentID676:AUTOSAR_SWS_TimeSyncOverEthernet1727383.1..............................83.2............................9494.1..................................94.2...................................104.3........................105105.1................................125.1.1........................126127157.1...................................157.1.1..............................157.1.2..........................157.2.................................167.3.............167.4...............................177.5.................177.5.1.................177.5.2...................197.6..............................207.6.1..........207.6.2............207.6.2.1......207.6.2.2...............207.7...........................227.7.1.......................227.7.1.1................247.7.1.2...................247.7.1.3...........247.7.2...............257.7.3..........257.7.3.1....................257.7.3.2....................267.7.3.3....................267.7.3.4....264of87时间同步的规范以太网汽车CPR21-11目录介绍和功能概述缩略语、缩写和定义相关文件输入文件相关规格约束和假设限制准确度适用于汽车领域与其他模块的依赖关系文件结构代码文件结构需求跟踪功能规格概览一般事务VLAN支持初始化处理不同的虚拟本地时间源去抖时间用于延迟计算的Pdelay协议Pdelay消息传输Pdelay消息接收消息格式同步和Follow_Up acc。 到IEEE802.1AS同步和Follow_Up acc。 到AUTOSARFollow_Up消息头[AUTOSAR]AUTOSAR TLV子TLV的担任时间大师消息处理运行时错误检测帧去抖即时时间同步链路状态和传输模式消息字段计算和组装SGW计算OFS计算CRC计算序列计数器(sequenceId)计算文档ID676:AUTOSAR_SWS_TimeSyncOverEthernet
SpecificationofTimeSynchronizationoverEthernetAUTOSARCPR21-117.7.3.5MessageAssembling..................267.8ActingasTimeSlave............................277.8.1Messageprocessing.......................277.8.1.1RuntimeErrordetection................307.8.2MessageFieldValidationandDisassembling.........307.8.2.1SGWCalculation....................307.8.2.2OFSCalculation....................307.8.2.3CRCValidation.....................307.8.2.4SequenceCounter(sequenceId)Validation.....317.8.2.5MessageDisassembling................317.9TimeRecording...............................317.9.1TimeValidation..........................317.9.1.1RecordingofPdelayMeasurement..........337.10ErrorClassification.............................357.10.1DevelopmentErrors.......................357.10.2RuntimeErrors..........................357.10.3TransientFaults.........................367.10.4ProductionErrors........................367.10.5ExtendedProductionErrors...................368APIspecification368.1API......................................368.1.1Importedtypes..........................368.1.2Typedefinitions.........................378.1.2.1EthTSyn_ConfigType..................378.1.2.2EthTSyn_TransmissionModeType...........378.1.3Functiondefinitions.......................388.1.3.1EthTSyn_Init......................388.1.3.2EthTSyn_GetVersionInfo................388.1.3.3EthTSyn_SetTransmissionMode...........388.1.3.4EthTSyn_SetProtocolParam..............398.1.3.5EthTSyn_GetProtocolParam..............408.1.4Call-backnotifications......................418.1.4.1EthTSyn_RxIndication.................418.1.4.2EthTSyn_TxConfirmation...............428.1.4.3EthTSyn_TrcvLinkStateChg..............428.1.5Scheduledfunctions.......................438.1.5.1EthTSyn_MainFunction................438.1.6ExpectedInterfaces.......................448.1.6.1MandatoryInterfaces..................448.1.6.2OptionalInterfaces...................449Sequencediagrams469.1EthIf_EnableEgressTimeStamp......................469.2TimeSynchronizationSequence.....................479.3PdelayMeasurementSequence......................489.4EthTSynEgressTimestamping......................495of87DocumentID676:AUTOSAR_SWS_TimeSyncOverEthernet7.7.3.5..................267.8............................277.8.1.......................277.8.1.1................307.8.2.........307.8.2.1....................307.8.2.2....................307.8.2.3.....................307.8.2.4.....317.8.2.5................317.9...............................317.9.1..........................317.9.1.1..........337.10.............................357.10.1.......................357.10.2..........................357.10.3.........................367.10.4........................367.10.5...................368368.1API......................................368.1.1..........................368.1.2.........................378.1.2.1..................378.1.2.2...........378.1.3.......................388.1.3.1......................388.1.3.2................388.1.3.3...........388.1.3.4..............398.1.3.5..............408.1.4......................418.1.4.1.................418.1.4.2...............428.1.4.3..............428.1.5.......................438.1.5.1................438.1.6.......................448.1.6.1..................448.1.6.2...................449469.1......................469.2.....................479.3......................489.4......................495of87以太网Autosar CP R21-11时间同步规范信息组装充当时间奴隶消息处理运行时错误检测消息字段验证和反汇编SGW计算OFS计算CRC验证序列计数器(sequenceId)验证消息反汇编时间记录时间验证Pdelay测量的记录错误分类开发错误运行时错误瞬态故障生产错误扩展生产错误API规范导入类型类型定义EthTSyn_ConfigTypeEthTSyn_TransmissionModeType函数定义伊辛尼特EthTSyn_GetVersionInfoEthtsyn_settransmission模式EthTSyn_SetProtocolParamEthTSyn_GetProtocolParam回电通知EthTSyn_RxIndicationEthtsyn_tx确认EthTSyn_TrcvLinkStateChg预定功能EthTSyn_MainFunction预期的接口强制性接口可选接口序列图EthIf_EnableEgressTimeStamp时间同步序列Pdelay测量序列EthTSyn出口时间戳文档ID676:AUTOSAR_SWS_TimeSyncOverEthernet
SpecificationofTimeSynchronizationoverEthernetAUTOSARCPR21-119.5EthTSynIngressTimestamping......................509.6TimemeasurementwithSwitches.....................529.6.1TimeAwareBridgewithGTMasManagementCPU-Tx..529.6.2TimeAwareBridgewithoutGTMasManagementCPU-Tx.539.6.3TimeAwareBridgewithoutGTMasManagementCPU-Rx5410Configurationspecification5410.1Howtoreadthischapter..........................5510.2Containersandconfigurationparameters.................5510.2.1EthTSyn.............................5510.2.2EthTSynGeneral.........................5510.2.3EthTSynGlobalTimeDomain..................6110.2.4EthTSynGlobalTimeFollowUpDataIDList............6410.2.5EthTSynGlobalTimeFollowUpDataIDListElement.......6510.2.6EthTSynPortConfig.......................6610.2.7EthTSynPortRole........................6910.2.8EthTSynPdelayConfig......................7010.2.9EthTSynGlobalTimeMaster...................7310.2.10EthTSynCrcTimeFlagsTxSecured...............7810.2.11EthTSynGlobalTimeSlave....................8110.2.12EthTSynCrcFlagsRxValidated.................8410.3Constraints.................................8710.4PublishedInformation...........................876of87DocumentID676:AUTOSAR_SWS_TimeSyncOverEthernet9.5......................509.6.....................529.6.1..529.6.2539.6.3545410.1..........................5510.2.................5510.2.1.............................5510.2.2.........................5510.2.3..................6110.2.4............6410.2.5.......6510.2.6.......................6610.2.7........................6910.2.8......................7010.2.9...................7310.2.10...............7810.2.11....................8110.2.12.................8410.3.................................8710.4...........................876of87以太网Autosar CP R21-11时间同步规范EthTSyn入口时间戳使用开关测量时间时间感知桥与GTM作为管理CPU Tx时间感知桥没有GTM作为管理CPU Tx.没有GTM作为管理CPU Rx的时间感知桥10配置规范如何阅读本章容器和配置参数伊森,伊森[医]普通的EthTSynGlobalTimeDomainEthtsynglobaltimefollowupdataid列表EthTSynGlobalTimeFollowUpDataIDListelement(英语:EthTSynGlobalTimeFollowUpDataIDListelementN.出口,出口N.出口,出口EthTSynPdelayConfigEthTSynGlobalTimeMaster[医]安全的[医]全球时间[医]经价约束条件已公布的资料文档ID676:AUTOSAR_SWS_TimeSyncOverEthernet
SpecificationofTimeSynchronizationoverEthernetAUTOSARCPR21-111IntroductionandfunctionaloverviewTheEthTSynmodulehandlestheTimeSynchronizationProtocolonEthernetasspec-ifiedin[1,PRS-TimeSyncProtocol].Inadditiontowhatisspecifiedin[1,PRSTimeSynchronizationProtocol]theEthTSynmodulesupportsthefollowingfeatures:•DebouncingofTimesyncPDUstoavoidthataPDUwithhigherpriorityblocksthosewithlowerpriority•"Immediate"transmissionofTimeSynchronizationmessagesforfast(re-)syn-chronizationofaTimeMasterandaTimeSlaveTheEthTSynistightlycoupledtotheSynchronizedTime-BaseManager(StbM;referto[2,SWS-SynchronizedTimeBaseManager]),whichisresponsibleforinterpolating(alocalinstanceof)aSynchronizedTimeBasebetweenthereceptionof2consecutiveSyncmessagesforthatTimeBase.TheStbMalsoprovidestheserviceinterfaceforTimeSynchronizationtotheapplication.Figure1showstheTimeSynchronizationrelatedmodulesintheAUTOSARLayeredArchitecture.Figure1.1:TimesyncmodulesintheAUTOSARLayeredArchitecture2Acronyms,AbbreviationsandDefinitionsThissectionlistsmodulelocalAbbreviationsandDefinitions.ForacompletesetofSynchronizedTimeBaserelatedtermsrefertothecorrespondingchapterin[3,SWS-BSWGeneral].7of87DocumentID676:AUTOSAR_SWS_TimeSyncOverEthernet127of87以太网Autosar CP R21-11时间同步规范介绍和功能概述EthTSyn模块按照[1,PRS-TimeSyncProtocol]中的规定处理以太网上的时间同步协议。除了[1,PRS时间同步协议]中指定的内容外,EthTSyn模块还支持以下功能:*时间同步Pdu的去抖,以避免具有较高优先级的PDU阻止那些具有较低优先级的PDU*"立即"传输时间同步消息,以便快速(重新)同步时间主站和时间从站EthTSyn与同步时基管理器(Stbm;参考[2,SWS-SynchronizedTimeBaseManager])紧密耦合,该管理器负责在该时基的2个连续同步消息的接收之间内插(本地实例)同步时基。 StbM还为应用程序提供时间同步的服务接口。 图1显示了AUTOSAR分层架构中的时间同步相关模块。图1.1:AUTOSAR分层架构中的Timesync模块缩略语、缩写和定义本节列出模块本地缩写和定义。 对于一组完整的同步时基相关术语,请参阅[3,SWSBSWGeneral]中的相应章节。文档ID676:AUTOSAR_SWS_TimeSyncOverEthernet
SpecificationofTimeSynchronizationoverEthernetAUTOSARCPR21-11Abbreviation/Acronym:Description(G)TD(Global)TimeDomain(G)TM(Global)TimeMasterTSynAbusspecificTimeSynchronizationmoduleAVBAudioVideoBridgingBMCABestMasterClockAlgorithmCIDCompanyID(IEEE)CRCCyclicRedundancyChecksumDebounceTimeMinimumgapbetweensending(Event)messages.DEMDiagnosticEventManagerDETDefaultErrorTracerETHEthernetEthTSynTimeSynchronizationProvidermoduleforEthernetFollow_UpTimetransportmessage(Follow-Up)GM(C)GrandMaster(Clock)OFSOffsetsynchronizationPdelayPropagation/pathdelayasgiveninIEEE802.1ASPdelay_ReqPropagation/pathdelayrequestmessagePdelay_RespPropagation/pathdelayresponsemessagePdelay_Resp_Follow_UpPropagation/pathdelayFollow-UpmessagePDUProtocolDataUnitPTPPrecisionTimeProtocolStbMSynchronizedTime-BaseManagerTimesyncTimeSynchronizationSyncTimesynchronizationmessage(Sync)TGTimeGatewayTLVType,Length,Valuefield(acc.toIEEE802.1AS)TSTimeSlaveTSDTimeSub-domainVLANVirtualLocalAreaNetwork3Relateddocumentation3.1Inputdocuments[1]TimeSynchronizationProtocolSpecificationAUTOSAR_PRS_TimeSyncProtocol[2]SpecificationofSynchronizedTime-BaseManagerAUTOSAR_SWS_SynchronizedTimeBaseManager[3]GeneralSpecificationofBasicSoftwareModulesAUTOSAR_SWS_BSWGeneral8of87DocumentID676:AUTOSAR_SWS_TimeSyncOverEthernet(G)TD(G)TMAVBBMCACIDCRCDEMDETETHGM(C)OFSPDUPTPTGTLVTSTSDVLAN38of87以太网Autosar CP R21-11时间同步规范资料描述缩写/Acronym:(全局)时域(全球)时间大师<巴士>津一种总线专用时间同步模块音频视频桥接最佳主时钟算法公司ID(IEEE)循环冗余校验和去抖时间发送(事件)消息之间的最小间隙。诊断事件管理器默认错误跟踪器以太网伊森,伊森以太网的时间同步提供模块后续行动时间传输信息(后续)大师(时钟)偏移同步[医]PdelayIeee802.1AS中给出的传播/路径延迟Pdelay_Req传播/路径延迟请求消息Pdelay_Resp传播/路径延迟响应消息Pdelay_Resp_Follow_Up传播/路径延迟后续消息协议数据单元精密时间协议StbM同步时基管理器时间同步时间同步同步时间同步消息(Sync)时间网关类型,长度,值字段(acc。 至IEEE802.1AS)时间奴隶时间子域虚拟局域网相关文件3.1输入文件[1]时间同步协议规范AUTOSAR_PRS_TimeSyncProtocol[2]同步时基管理器规范AUTOSAR_SWS_SynchronizedTimeBasemanager[3]基本软件模块的一般规范AUTOSAR_SWS_BSWGeneral文档ID676:AUTOSAR_SWS_TimeSyncOverEthernet
分享到:
收藏