没有合适的资源?快使用搜索试试~ 我知道了~
首页AUTOSAR_TR_SomeIpExample.pdf
AUTOSAR_TR_SomeIpExample.pdf
5星 · 超过95%的资源 需积分: 49 41 下载量 66 浏览量
更新于2023-03-03
评论
收藏 1.77MB PDF 举报
Example for a Serialization Protocol (SOME/IP) Document Version 1.1.0
资源详情
资源评论
资源推荐
Example for a Serialization Protocol (SOME/IP)
V1.1.0
R4.1 Rev 3
Document Title
Example for a Serialization
Protocol (SOME/IP)
Document Owner AUTOSAR
Document Responsibility AUTOSAR
Document Identification No 637
Document Classification Auxiliary
Document Version 1.1.0
Document Status Final
Part of Release 4.1
Revision 3
Document Change History
Date Version Changed by Description
31.03.2014 1.1.0
AUTOSAR
Release
Management
• Added support for bitfields
• Client ID is configurable
• Defined applicability of
SOME/IP-SD Options for entry
types
06.03.2013 1.0.0
AUTOSAR
Administration
Initial Release
1 of 97
— AUTOSAR CONFIDENTIAL —
Document ID 637: AUTOSAR_TR_SomeIpExample
Example for a Serialization Protocol (SOME/IP)
V1.1.0
R4.1 Rev 3
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 refer-
ence 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. Nei-
ther their presence in such Specification Documents, nor any later documentation of
AUTOSAR conformance of products actually implementing such exemplary items, im-
ply that intellectual property rights covering such exemplary items are licensed under
the same rules as applicable to the AUTOSAR Standard.
2 of 97
— AUTOSAR CONFIDENTIAL —
Document ID 637: AUTOSAR_TR_SomeIpExample
Example for a Serialization Protocol (SOME/IP)
V1.1.0
R4.1 Rev 3
Table of Contents
1 Introduction and functional overview 6
2 Acronyms and Abbreviations 8
3 Related documentation 10
3.1 Input documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2 Related standards and norms . . . . . . . . . . . . . . . . . . . . . . . . 11
3.3 Related specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Constraints and assumptions 12
4.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 Applicability to car domains . . . . . . . . . . . . . . . . . . . . . . . . . 12
5 Dependencies to other modules 13
5.1 File structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.1.1 Code file structure . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.1.2 Header file structure . . . . . . . . . . . . . . . . . . . . . . . . . 13
6 Functional specification 14
6.1 Definition of Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.2 Specification of the SOME/IP on-wire format . . . . . . . . . . . . . . . 15
6.2.1 Transport Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.2.1.1 Message Length Limitations . . . . . . . . . . . . . . . 15
6.2.2 Endianess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.2.3 Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.2.3.1 IP-Address / port numbers . . . . . . . . . . . . . . . . 17
6.2.3.2 Message ID [32 Bit] . . . . . . . . . . . . . . . . . . . . 17
6.2.3.3 Length [32 Bit] . . . . . . . . . . . . . . . . . . . . . . . 18
6.2.3.4 Request ID [32 Bit] . . . . . . . . . . . . . . . . . . . . 19
6.2.3.5 Protocol Version [8 Bit] . . . . . . . . . . . . . . . . . . 20
6.2.3.6 Interface Version [8 Bit] . . . . . . . . . . . . . . . . . . 20
6.2.3.7 Message Type [8 Bit] . . . . . . . . . . . . . . . . . . . 20
6.2.3.8 Return Code [8 Bit] . . . . . . . . . . . . . . . . . . . . 21
6.2.3.9 Payload [variable size] . . . . . . . . . . . . . . . . . . . 21
6.2.4 Serialization of Parameters and Data Structures . . . . . . . . . 22
6.2.4.1 Basic Datatypes . . . . . . . . . . . . . . . . . . . . . . 22
6.2.4.2 Structured Datatypes (structs) . . . . . . . . . . . . . . 23
6.2.4.3 Strings (fixed length) . . . . . . . . . . . . . . . . . . . 24
6.2.4.4 Strings (dynamic length) . . . . . . . . . . . . . . . . . 25
6.2.4.5 Arrays (fixed length) . . . . . . . . . . . . . . . . . . . . 26
6.2.4.6 Optional Parameters / Optional Elements . . . . . . . . 27
6.2.4.7 Dynamic Length Arrays . . . . . . . . . . . . . . . . . . 27
6.2.4.8 Enumeration . . . . . . . . . . . . . . . . . . . . . . . . 29
6.2.4.9 Bitfield . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3 of 97
— AUTOSAR CONFIDENTIAL —
Document ID 637: AUTOSAR_TR_SomeIpExample
Example for a Serialization Protocol (SOME/IP)
V1.1.0
R4.1 Rev 3
6.2.4.10 Union / Variant . . . . . . . . . . . . . . . . . . . . . . . 29
6.2.4.11 Example Map / Dictionary . . . . . . . . . . . . . . . . . 31
6.3 RPC Protocol specification . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.3.1 Transport Protocol Bindings . . . . . . . . . . . . . . . . . . . . . 31
6.3.1.1 UDP Binding . . . . . . . . . . . . . . . . . . . . . . . . 32
6.3.1.2 TCP Binding . . . . . . . . . . . . . . . . . . . . . . . . 32
6.3.1.3 Multiple Service-Instances . . . . . . . . . . . . . . . . 35
6.3.2 Request/Response Communication . . . . . . . . . . . . . . . . 35
6.3.2.1 AUTOSAR Specific . . . . . . . . . . . . . . . . . . . . 36
6.3.3 Fire&Forget Communication . . . . . . . . . . . . . . . . . . . . 36
6.3.3.1 AUTOSAR Specific . . . . . . . . . . . . . . . . . . . . 36
6.3.4 Notification Events . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.3.4.1 Strategy for sending notifications . . . . . . . . . . . . . 37
6.3.4.2 Publish/Subscribe Handling . . . . . . . . . . . . . . . . 37
6.3.4.3 AUTOSAR Specific . . . . . . . . . . . . . . . . . . . . 37
6.3.5 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.3.6 Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.3.6.1 Transporting Application Error Codes and Exceptions . 38
6.3.6.2 Return Code . . . . . . . . . . . . . . . . . . . . . . . . 38
6.3.6.3 Error Message Format . . . . . . . . . . . . . . . . . . 40
6.3.6.4 Communication Errors and Handling of Communication
Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.4 Guidelines on SOME/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.4.1 Choosing the transport protocol . . . . . . . . . . . . . . . . . . . 42
6.4.2 Implementing Advanced Features in AUTOSAR Applications . . 43
6.4.3 Serialization of Data Structures Containing Pointers . . . . . . . 43
6.4.3.1 Array of data structures with implicit ID . . . . . . . . . 43
6.4.3.2 Array of data structures with explicit ID . . . . . . . . . 43
6.5 Compatibility rules for Interface Design (informational) . . . . . . . . . . 44
6.6 Transporting CAN and FlexRay Frames . . . . . . . . . . . . . . . . . . 45
6.6.1 AUTOSAR specific . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.7 SOME/IP Service Discovery (SOME/IP-SD) . . . . . . . . . . . . . . . . 47
6.7.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.7.1.1 Terms and Definitions . . . . . . . . . . . . . . . . . . . 47
6.7.2 SOME/IP-SD ECU-internal Interface . . . . . . . . . . . . . . . . 47
6.7.3 SOME/IP-SD Message Format . . . . . . . . . . . . . . . . . . . 48
6.7.3.1 General Requirements . . . . . . . . . . . . . . . . . . 48
6.7.3.2 SOME/IP-SD Header . . . . . . . . . . . . . . . . . . . 50
6.7.3.3 Entry Format . . . . . . . . . . . . . . . . . . . . . . . . 51
6.7.3.4 Options Format . . . . . . . . . . . . . . . . . . . . . . 53
6.7.3.5 Referencing Options from Entries . . . . . . . . . . . . 63
6.7.3.6 Example . . . . . . . . . . . . . . . . . . . . . . . . . . 64
6.7.4 Service Discovery Messages . . . . . . . . . . . . . . . . . . . . 65
6.7.4.1 Service Entries . . . . . . . . . . . . . . . . . . . . . . . 66
6.7.4.2 Eventgroup Entry . . . . . . . . . . . . . . . . . . . . . 68
6.7.5 Service Discovery Communication Behavior . . . . . . . . . . . . 70
4 of 97
— AUTOSAR CONFIDENTIAL —
Document ID 637: AUTOSAR_TR_SomeIpExample
Example for a Serialization Protocol (SOME/IP)
V1.1.0
R4.1 Rev 3
6.7.5.1 Startup Behavior . . . . . . . . . . . . . . . . . . . . . . 70
6.7.5.2 Server Answer Behavior . . . . . . . . . . . . . . . . . 72
6.7.5.3 Shutdown Behavior . . . . . . . . . . . . . . . . . . . . 73
6.7.5.4 State Machines . . . . . . . . . . . . . . . . . . . . . . 73
6.7.6 Announcing non-SOME/IP protocols with SOME/IP-SD . . . . . 75
6.7.7 Publish/Subscribe with SOME/IP and SOME/IP-SD . . . . . . . 78
6.7.8 Endpoint Handling for Services and Events . . . . . . . . . . . . 87
6.7.8.1 Service Endpoints . . . . . . . . . . . . . . . . . . . . . 87
6.7.8.2 Eventgroup Endpoints . . . . . . . . . . . . . . . . . . . 88
6.7.8.3 Example . . . . . . . . . . . . . . . . . . . . . . . . . . 89
6.7.9 Mandatory Feature Set and Basic Behavior . . . . . . . . . . . . 90
6.7.10 SOME/IP-SD Mechanisms and Errors . . . . . . . . . . . . . . . 94
6.8 Migration and Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . 95
6.8.1 Supporting multiple versions of the same service. . . . . . . . . 95
6.9 Reserved and special identifiers for SOME/IP and SOME/IP-SD. . . . . 95
5 of 97
— AUTOSAR CONFIDENTIAL —
Document ID 637: AUTOSAR_TR_SomeIpExample
剩余96页未读,继续阅读
newstoy
- 粉丝: 3
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 27页智慧街道信息化建设综合解决方案.pptx
- 计算机二级Ms-Office选择题汇总.doc
- 单链表的插入和删除实验报告 (2).docx
- 单链表的插入和删除实验报告.pdf
- 物联网智能终端项目设备管理方案.pdf
- 如何打造品牌的模式.doc
- 样式控制与页面布局.pdf
- 武汉理工Java实验报告(二).docx
- 2021线上新品消费趋势报告.pdf
- 第3章 Matlab中的矩阵及其运算.docx
- 基于Web的人力资源管理系统的必要性和可行性.doc
- 基于一阶倒立摆的matlab仿真实验.doc
- 速运公司物流管理模式研究教材
- 大数据与管理.pptx
- 单片机课程设计之步进电机.doc
- 大数据与数据挖掘.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5