没有合适的资源?快使用搜索试试~ 我知道了~
AUTOSAR_SWS_ServiceDiscovery.pdf
需积分: 50 20 下载量 131 浏览量
2020-04-23
20:06:28
上传
评论
收藏 1.48MB PDF 举报
温馨提示


试读
131页
Specification of Service Discovery Document Version 1.2.0
资源推荐
资源详情
资源评论







Specification of Service Discovery
V1.2.0
R4.1 Rev 3
1 of 131 Document ID 616: SWS_ServiceDiscovery
- AUTOSAR confidential -
Document Change History
Date
Version
Changed by
Change Description
31.03.2014
1.2.0
AUTOSAR
Release
Management
Editorial changes
More detailed endpoint handling
More detailed message building
31.10.2013
1.1.0
AUTOSAR
Release
Management
No major changes have been made
Editorial changes
Removed chapter(s) on change
documentation
26.02.2013
1.0.0
AUTOSAR
Administration
Initial Release
Document Title
Specification of Service
Discovery
Document Owner
AUTOSAR
Document Responsibility
AUTOSAR
Document Identification No
616
Document Classification
Standard
Document Version
1.2.0
Document Status
Final
Part of Release
4.1
Revision
3

Specification of Service Discovery
V1.2.0
R4.1 Rev 3
2 of 131 Document ID 616: SWS_ServiceDiscovery
- AUTOSAR confidential -
Disclaimer
This specification 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 specification.
The material contained in this specification is protected by copyright and other types
of Intellectual Property Rights. The commercial exploitation of the material contained
in this specification requires a license to such Intellectual Property Rights.
This specification 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 specification may be utilized or reproduced, in
any form or by any means, without permission in writing from the publisher.
The AUTOSAR specifications have been developed for automotive applications only.
They have neither been developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.
Advice for users
AUTOSAR Specification Documents may contain exemplary items (exemplary
reference models, "use cases", and/or references to exemplary technical solutions,
devices, processes or software).
Any such exemplary items are contained in the Specification Documents for
illustration purposes only, and they themselves are not part of the AUTOSAR
Standard. Neither their presence in such Specification Documents, nor any later
documentation of AUTOSAR conformance of products actually implementing such
exemplary items, imply that intellectual property rights covering such exemplary
items are licensed under the same rules as applicable to the AUTOSAR Standard.

Specification of Service Discovery
V1.2.0
R4.1 Rev 3
3 of 131 Document ID 616: SWS_ServiceDiscovery
- AUTOSAR confidential -
Table of Contents
1 Introduction and functional overview ................................................................... 6
2 Acronyms and abbreviations ............................................................................... 7
3 Related documentation........................................................................................ 8
3.1 Input documents ........................................................................................... 8
3.2 Related standards and norms ...................................................................... 8
4 Constraints and assumptions .............................................................................. 9
4.1 Limitations .................................................................................................... 9
4.2 Applicability to car domains .......................................................................... 9
5 Dependencies to other modules ........................................................................ 10
5.1 AUTOSAR BSW Scheduler ........................................................................ 10
5.2 AUTOSAR BSW Mode Manager ................................................................ 10
5.3 AUTOSAR Socked Adaptor ....................................................................... 10
5.4 AUTOSAR Development Error Tracer ........................................................ 10
5.5 AUTOSAR Diagnostic Event Manager ....................................................... 10
5.6 File structure .............................................................................................. 11
5.6.1 Code file structure ................................................................................. 11
5.6.2 Header file structure .............................................................................. 11
6 Requirements traceability .................................................................................. 12
7 Functional specification ..................................................................................... 15
7.1 Background & Rationale ............................................................................. 15
7.2 Requirements ............................................................................................. 17
7.2.1 General requirements ........................................................................... 17
7.2.2 Ethernet Communication ...................................................................... 19
7.2.3 State Handling ...................................................................................... 20
7.2.4 Interaction with Socket Adaptor ............................................................ 21
7.3 Message format.......................................................................................... 22
7.3.1 Request ID ............................................................................................ 23
7.3.2 Protocol Version field ............................................................................ 24
7.3.3 Interface Version field ........................................................................... 24
7.3.4 Message Type field ............................................................................... 24
7.3.5 Return Code field .................................................................................. 24
7.3.6 Flags field ............................................................................................. 25
7.3.7 Reserved field ....................................................................................... 26
7.3.8 Entries Array ......................................................................................... 26
7.3.9 Options Array ........................................................................................ 33
7.3.10 Entries referencing Options ............................................................... 41
7.4 Service Discovery Entry Types................................................................... 43
7.4.1 Entries for Services (common requirements) ........................................ 43
7.4.2 FindService entry .................................................................................. 45
7.4.3 OfferService entry ................................................................................. 46
7.4.4 Build OfferService entry ........................................................................ 47
7.4.5 StopOfferService entry .......................................................................... 48
7.4.6 Eventgroup Entries (Common requirements) ........................................ 49

Specification of Service Discovery
V1.2.0
R4.1 Rev 3
4 of 131 Document ID 616: SWS_ServiceDiscovery
- AUTOSAR confidential -
7.5 Sending and Receiving of Messages ......................................................... 52
7.5.1 Sequence for message transmission .................................................... 52
7.5.2 Sequence for message reception ......................................................... 53
7.5.3 Receiving Entries .................................................................................. 54
7.6 Timings and repetitions for Server Service and Event Handlers ................ 56
7.6.1 Initial Wait Phase for Server Services ................................................... 57
7.6.2 Repetition Phase for Server Services ................................................... 58
7.6.3 Main Phase for Server Services ............................................................ 61
7.6.4 Fan out control ...................................................................................... 63
7.7 Timings and repetitions for Client Service and Consumed Eventgroups .... 64
7.7.1 Down Phase for Client Services ............................................................ 65
7.7.2 Initial Wait Phase for Client Services .................................................... 66
7.7.3 Repetition Phase for Client Services ..................................................... 68
7.7.4 Main Phase for Client Services ............................................................. 69
7.8 Error classification ...................................................................................... 72
7.9 Error detection ............................................................................................ 73
7.10 Error notification ......................................................................................... 73
7.11 Debugging .................................................................................................. 73
8 API specification ................................................................................................ 75
8.1.1 Imported Types ..................................................................................... 75
8.2 Type definitions .......................................................................................... 75
8.2.1 Sd_ServerServiceSetStateType ........................................................... 75
8.2.2 Sd_ClientServiceSetStateType ............................................................. 75
8.2.3 Sd_ConsumedEventGroupSetStateType ............................................. 76
8.2.4 Sd_ClientServiceCurrentStateType ...................................................... 76
8.2.5 Sd_ConsumedEventGroupCurrentStateType ....................................... 76
8.2.6 Sd_EventHandlerCurrentStateType ...................................................... 76
8.3 Function definitions .................................................................................... 76
8.3.1 Sd_Init ................................................................................................... 77
8.3.2 Sd_GetVersionInfo ................................................................................ 78
8.3.3 Sd_ServerServiceSetState ................................................................... 78
8.3.4 Sd_ClientServiceSetState ..................................................................... 79
8.3.5 Sd_ConsumedEventGroupSetState ..................................................... 80
8.3.6 Sd_LocalIpAddrAssignmentChg ........................................................... 81
8.4 Call-back notifications ................................................................................ 82
8.4.1 Sd_RxIndication .................................................................................... 82
8.5 Scheduled functions ................................................................................... 83
8.5.1 Sd_MainFunction .................................................................................. 83
8.6 Expected Interfaces .................................................................................... 83
8.6.1 Mandatory Interfaces ............................................................................ 84
8.6.2 Optional Interfaces ................................................................................ 84
9 Sequence diagrams .......................................................................................... 86
9.1 CLIENT / SERVER: Sd_RxIndication ......................................................... 86
9.2 SERVER: Response Behavior ................................................................... 87
9.3 CLIENT: Response Behavior ..................................................................... 88
9.4 SERVER: buildOfferServiceEntry ............................................................... 91
9.5 CLIENT: buildSubscribeEventgroupEntry .................................................. 92
9.6 SERVER: buildSubscribeEventgroupAckEntry .......................................... 93
9.7 CLIENT/SERVER: TransmitSdMessage .................................................... 94

Specification of Service Discovery
V1.2.0
R4.1 Rev 3
5 of 131 Document ID 616: SWS_ServiceDiscovery
- AUTOSAR confidential -
9.8 SERVER: AddClientToFanOut ................................................................... 95
9.9 SERVER: Start ........................................................................................... 98
9.10 CLIENT: Start ........................................................................................... 101
10 Containers and configuration parameters .................................................... 104
10.1 Variants .................................................................................................... 104
10.1.1 VARIANT-PRE-COMPILE (Pre-compile Configuration)................... 104
10.1.2 VARIANT-LINK-TIME (Link-time Configuration) .............................. 104
10.1.3 VARIANT-POST-BUILD (Post-build Configuration) ......................... 104
10.1.4 Sd .................................................................................................... 105
10.1.5 SdGeneral ....................................................................................... 106
10.1.6 SdConfig .......................................................................................... 107
10.1.7 SdInstance ....................................................................................... 107
10.1.8 SdClientTimer .................................................................................. 108
10.1.9 SdServerTimer ................................................................................ 110
10.1.10 SdInstanceTxPdu ............................................................................ 113
10.1.11 SdInstanceMulticastRxPdu .............................................................. 114
10.1.12 SdInstanceUnicastRxPdu ................................................................ 114
10.1.13 SdServerService .............................................................................. 115
10.1.14 SdClientService ............................................................................... 117
10.1.15 SdClientCapabilityRecord ................................................................ 120
10.1.16 SdConsumedEventGroup ................................................................ 121
10.1.17 SdConsumedMethods ..................................................................... 124
10.1.18 SdEventHandler .............................................................................. 125
10.1.19 SdEventHandlerMulticast ................................................................ 128
10.1.20 SdEventHandlerTcp......................................................................... 128
10.1.21 SdEventHandlerUdp ........................................................................ 129
10.1.22 SdProvidedMethods ........................................................................ 130
10.1.23 SdServerCapabilityRecord .............................................................. 130
10.2 Published Information ............................................................................... 131
剩余130页未读,继续阅读
资源评论


newstoy
- 粉丝: 3
- 资源: 6
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- Kylin-Server-V10-SP3-General-Release-2212-X86-64.7z.006
- 龙芯LoongArch架构寄存器名称及所有指令名称
- NMOS充电泵分立电路SABER仿真
- yolov5l_10per_ssod_defect_exp1.yaml
- termux-app_v0.118.0+github-debug_armeabi-v7a.apk
- 01-硬件设计-VPX高速连接器介绍_水果里面有苹果的博客-CSDN博客 (2023_12_7 19_14_47).html
- 河南省2019网络搭建与应用赛项赛题环境
- 电磁阀恒流驱动SABER仿真
- 河南省2019网络搭建与应用赛项赛题技能要求
- 4.1 不定积分的概念与性质.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
