![](https://csdnimg.cn/release/download_crawler_static/21751799/bg5.jpg)
Specification of SOME/IP Transformer
AUTOSAR CP R20-11
Table of Contents
1 Introduction and functional overview 7
2 Acronyms and Abbreviations 8
3 Related documentation 9
3.1 Input documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 Related standards and norms . . . . . . . . . . . . . . . . . . . . . . . 10
3.3 Related specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Constraints and assumptions 11
4.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 Applicability to car domains . . . . . . . . . . . . . . . . . . . . . . . . 11
5 Dependencies to other modules 12
5.1 File structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1.1 Code file structure . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1.2 Header file structure . . . . . . . . . . . . . . . . . . . . . . . 12
6 Requirements Tracing 13
7 Functional specification 19
7.1 Definition of Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.2 Specification of the SOME/IP on-wire format . . . . . . . . . . . . . . . 23
7.2.1 Message Length Limitations . . . . . . . . . . . . . . . . . . 24
7.2.2 Endianess . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.2.3 Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.2.3.1 Message ID [32 bit] . . . . . . . . . . . . . . . . . . . 25
7.2.3.2 Length [32 bit] . . . . . . . . . . . . . . . . . . . . . . 26
7.2.3.3 Request ID [32 bit] . . . . . . . . . . . . . . . . . . . 26
7.2.3.4 Protocol Version [8 bit] . . . . . . . . . . . . . . . . . 27
7.2.3.5 Interface Version [8 bit] . . . . . . . . . . . . . . . . . 27
7.2.3.6 Message Type [8 bit] . . . . . . . . . . . . . . . . . . 27
7.2.3.7 Return Code [8 bit] . . . . . . . . . . . . . . . . . . . 28
7.2.3.8 Payload [variable size] . . . . . . . . . . . . . . . . . 29
7.2.4 Serialization of Parameters and Data Structures . . . . . . . 29
7.2.4.1 Basic Datatypes . . . . . . . . . . . . . . . . . . . . 30
7.2.4.2 Structured Datatypes (structs) . . . . . . . . . . . . . 31
7.2.4.3 Structured Datatypes and Arguments with Identifier
and optional Members . . . . . . . . . . . . . . . . . 33
7.2.4.4 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.2.4.5 Arrays (fixed length) . . . . . . . . . . . . . . . . . . 43
7.2.4.6 Optional Parameters / Optional Elements . . . . . . 46
7.2.4.7 Dynamic Length Arrays / Variable Size Arrays . . . . 46
7.2.4.8 Bitfield . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7.2.4.9 Union / Variant . . . . . . . . . . . . . . . . . . . . . 49
5 of 106 Document ID 660: AUTOSAR_SOMEIPTransformer
评论2
最新资源