没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
SOME/IP Protocol Specification
AUTOSAR FO Release 1.0.0
Document Title SOME/IP Protocol Specification
Document Owner AUTOSAR
Document Responsibility AUTOSAR
Document Identification No 696
Document Classification Standard
Document Status Final
Part of AUTOSAR Standard Foundation
Part of Standard Release 1.0.0
Document Change History
Date Release Changed by
Description
2016-11-30 1.0.0
AUTOSAR
Release
Management
Initial Release
1 of 50
— AUTOSAR CONFIDENTIAL —
Document ID 696: AUTOSAR_PRS_SOMEIPProtocol
SOME/IP Protocol Specification
AUTOSAR FO Release 1.0.0
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 wr iting 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 specifications 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 specifications for illustration purposes
only, and they themselves are not part of the AUTOSAR Standard. Neither their pres-
ence in such specifications, 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.
2 of 50
— AUTOSAR CONFIDENTIAL —
Document ID 696: AUTOSAR_PRS_SOMEIPProtocol
SOME/IP Protocol Specification
AUTOSAR FO Release 1.0.0
Table of Contents
1 Introduction and overview 5
1.1 Protocol purpose and objectives . . . . . . . . . . . . . . . . . . . . . . 5
1.2 Applicability of the protocol . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2.1 Constraints and assumptions . . . . . . . . . . . . . . . . . . 5
1.2.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 Document Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Protocol Requirements 8
2.1 Requirements Traceability . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Acronyms and Abbreviations 13
4 Protocol specification 14
4.1 Specification of SOME/IP on wire-format (Ser ialization) . . . . . . . . . 14
4.1.1 Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1.1.1 Message ID [32 Bit] . . . . . . . . . . . . . . . . . . 15
4.1.1.2 Length [32 Bit] . . . . . . . . . . . . . . . . . . . . . 15
4.1.1.3 Request ID [32 Bit] . . . . . . . . . . . . . . . . . . . 16
4.1.1.4 Protocol Version [8 Bit] . . . . . . . . . . . . . . . . . 17
4.1.1.5 Interface Version [8 Bit] . . . . . . . . . . . . . . . . 17
4.1.1.6 Message Type [8 Bit] . . . . . . . . . . . . . . . . . . 17
4.1.1.7 Return Code [8 Bit] . . . . . . . . . . . . . . . . . . . 18
4.1.1.8 Payload [variable size] . . . . . . . . . . . . . . . . . 18
4.1.2 Event, Field and Eventgroup . . . . . . . . . . . . . . . . . . 19
4.1.3 Endianess . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.1.4 Serialization of Data Structures . . . . . . . . . . . . . . . . . 19
4.1.4.1 Basic Datatypes . . . . . . . . . . . . . . . . . . . . 20
4.1.4.2 Structured Datatypes (structs) . . . . . . . . . . . . . 21
4.1.4.3 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.1.4.4 Arrays (fixed length) . . . . . . . . . . . . . . . . . . 23
4.1.4.5 Dynamic Length Arrays . . . . . . . . . . . . . . . . 25
4.1.4.6 Enumeration . . . . . . . . . . . . . . . . . . . . . . 26
4.1.4.7 Bitfield . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.1.4.8 Union / Variant . . . . . . . . . . . . . . . . . . . . . 27
4.2 Specification of SOME/IP Protocol . . . . . . . . . . . . . . . . . . . . 28
4.2.1 Transport Protocol Bindings . . . . . . . . . . . . . . . . . . . 29
4.2.1.1 UDP Binding . . . . . . . . . . . . . . . . . . . . . . 29
4.2.1.2 TCP Binding . . . . . . . . . . . . . . . . . . . . . . 29
4.2.1.3 Multiple Service-Instances . . . . . . . . . . . . . . . 31
4.2.1.4 Transporting large SOME/IP messages of UDP
(SOME/IP-TP) . . . . . . . . . . . . . . . . . . . . . 32
4.2.2 Request/Response Communication . . . . . . . . . . . . . . 38
4.2.3 Fire&Forget Communication . . . . . . . . . . . . . . . . . . 39
3 of 50
— AUTOSAR CONFIDENTIAL —
Document ID 696: AUTOSAR_PRS_SOMEIPProtocol
SOME/IP Protocol Specification
AUTOSAR FO Release 1.0.0
4.2.4 Notification Events . . . . . . . . . . . . . . . . . . . . . . . . 40
4.2.4.1 Strategy for sending notifications . . . . . . . . . . . 41
4.2.5 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.2.6 Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.2.6.1 Return Code . . . . . . . . . . . . . . . . . . . . . . 42
4.2.6.2 Error Message . . . . . . . . . . . . . . . . . . . . . 43
4.2.6.3 Error Processing Overview . . . . . . . . . . . . . . 44
4.2.6.4 Communication Errors and Handling of Communica-
tion Errors . . . . . . . . . . . . . . . . . . . . . . . . 46
5 Configuration Parameters 47
6 Protocol usage and guidelines 48
6.1 Choosing the transport protocol . . . . . . . . . . . . . . . . . . . . . . 48
6.2 Transporting CAN and FlexRay Frames . . . . . . . . . . . . . . . . . . 48
6.3 Insert Padding for structs . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7 References 50
4 of 50
— AUTOSAR CONFIDENTIAL —
Document ID 696: AUTOSAR_PRS_SOMEIPProtocol
SOME/IP Protocol Specification
AUTOSAR FO Release 1.0.0
1 Introduction and overview
This protocol specification specifies the format, message sequences and seman-
tics of the AUTOSAR Protocol "Scalable service-Oriented MiddlewarE over IP
(SOME/IP)".
SOME/IP is an automotive/embedded communication protocol which supports remote
procedure calls, event notifications and the underlying serialization/wire format. The
only valid abbreviation is SOME/IP. Other abbreviations (e.g. Some/IP) are wrong and
shall not be used.
1.1 Protocol purpose and objectives
The basic motivation to specify "Yet another RPC-Mechanism" instead of using an
existing infrastructure/technology is the goal to have a technology that:
• Fulfills the hard requirements regarding resource consumption in an embedded
world
• Is compatible through as many use-cases and communication partners as possi-
ble
• compatible with AUTOSAR at least on the wire-format level; i.e. can commu-
nicate with PDUs AUTOSAR can receive and send without modification to the
AUTOSAR standard. The mappings within AUTOSAR shall be chosen according
to the SOME/IP specification.
• Provides the features required by automotive use-cases
• Is scalable from tiny to large platforms
1.2 Applicability of the protocol
SOME/IP shall be implemented on different operating system (i.e. AUTOSAR, GENIVI,
and OSEK) and even embedded devices without operating system. SOME/IP shall be
used for inter-ECU Client/Server Ser ialization. An implementation of SOME/IP allows
AUTOSAR to parse the RPC PDUs and transport the signals to the application.
1.2.1 Constraints and assumptions
This document specifies the SOME/IP protocol on network level. It was created during
elaboration of the AUTOSAR Foundation Standard 1.0.0 which took place in parallel
to the development of the AUTOSAR Classic Standard 4.3.0. It already reflects all
changes implied to SOME/IP by the work which was done for AUTOSAR Classic
5 of 50
— AUTOSAR CONFIDENTIAL —
Document ID 696: AUTOSAR_PRS_SOMEIPProtocol
剩余49页未读,继续阅读
资源评论
wang_yun_ke
- 粉丝: 4
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 散斑结构光测试图像-对应博客:https://mp.csdn.net/mp-blog/creation/editor/13817
- 20220823-1000-ts.dat
- Galaxy10CNN实现星系图像分类项目深度学习环境配置
- DVB-S2:GCS组帧数据.dat
- 基于强化学习Q-Learning方法实现机器人走迷宫源码.zip
- numpy+pandas_basics.ipynb
- 网络安全-Diffie Hellman密钥协商
- 双H桥电机驱动L298N芯片AD集成库ALTIUM库(原理图库+PCB封装库)文件.zip
- 计算机组成原理实验;16位运算器ALU CPU设计
- 毕设绝技 - 4天玩乐完成商城系统完整资料day04
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功