e2e protocol specification - autosar e2e protocol specification autosar fo r19-11 document title e2e

Download E2E Protocol Specification - AUTOSAR E2E Protocol Specification AUTOSAR FO R19-11 Document Title E2E

Post on 14-Aug-2020

16 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • E2E Protocol Specification AUTOSAR FO R19-11

    Document Title E2E Protocol Specification Document Owner AUTOSAR

    Document Responsibility AUTOSAR

    Document Identification No 849

    Document Status published

    Part of AUTOSAR Standard Foundation

    Part of Standard Release R19-11

    Document Change History Date Release Changed by Description

    2019-11-28 R19-11 AUTOSAR Release Management

    • Introduction of Constraints for Client-Server Communication. • Added E2E_PXXForward

    functionality to provide a mechanism for replicating received E2E Errors. • Incorporated new configuration

    options for switching between valid and invalid state of E2E-Statemachine. • Fixed interoperability issues between

    P01 and P11, P02 and P22. • Changed Document Status from

    Final to published.

    2019-03-29 1.5.1 AUTOSAR Release Management

    • clarification on choosing suitable maximum data lengths for E2E profiles.

    1 of 185 — AUTOSAR CONFIDENTIAL —

    Document ID 849: AUTOSAR_PRS_E2EProtocol

  • E2E Protocol Specification AUTOSAR FO R19-11

    2018-10-31 1.5.0 AUTOSAR Release Management

    • Migrated all functional specifications from Classic Platform’s SWS E2ELibrary into Foundation’s E2E Protocol Specification • Moved all figures and tables out of

    specifications and added references to them • Fixed duplicate/missing figures in

    profiles 2 (Calculate DeltaCounter), 5 (Read CRC), 6 (Read Counter) and 11 (Read DataIDNibble). • Added protocol examples for each

    profile

    2018-03-29 1.4.0 AUTOSAR Release Management

    • No content changes

    2017-12-08 1.3.0 AUTOSAR Release Management

    • No content changes

    2017-10-27 1.2.0 AUTOSAR Release Management

    • Initial Release

    2 of 185 — AUTOSAR CONFIDENTIAL —

    Document ID 849: AUTOSAR_PRS_E2EProtocol

  • E2E Protocol Specification AUTOSAR FO R19-11

    Disclaimer

    This work (specification and/or software implementation) 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 work.

    The material contained in this work is protected by copyright and other types of intel- lectual property rights. The commercial exploitation of the material contained in this work requires a license to such intellectual property rights.

    This work 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 work may be utilized or reproduced, in any form or by any means, without permission in writing from the publisher.

    The work has been developed for automotive applications only. It has neither been developed, nor tested for non-automotive applications.

    The word AUTOSAR and the AUTOSAR logo are registered trademarks.

    3 of 185 — AUTOSAR CONFIDENTIAL —

    Document ID 849: AUTOSAR_PRS_E2EProtocol

  • E2E Protocol Specification AUTOSAR FO R19-11

    Table of Contents

    1 Introduction and functional overview 8

    2 Acronyms and Abbreviations 10

    3 Related documentation 11

    3.1 Input documents & related standards and norms . . . . . . . . . . . . 11 3.2 Related specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

    4 Constraints and assumptions 11

    4.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.2 Applicability to car domains . . . . . . . . . . . . . . . . . . . . . . . . 12 4.3 Background information concerning functional safety . . . . . . . . . . 12

    4.3.1 Functional safety and communication . . . . . . . . . . . . . 12 4.3.2 Sources of faults in E2E communication . . . . . . . . . . . . 13

    4.3.2.1 Software faults . . . . . . . . . . . . . . . . . . . . . 13 4.3.2.2 Random hardware faults . . . . . . . . . . . . . . . . 13 4.3.2.3 External influences, environmental stress . . . . . . 13

    4.3.3 Communication faults . . . . . . . . . . . . . . . . . . . . . . 14 4.3.3.1 Repetition of information . . . . . . . . . . . . . . . . 14 4.3.3.2 Loss of information . . . . . . . . . . . . . . . . . . . 14 4.3.3.3 Delay of information . . . . . . . . . . . . . . . . . . 14 4.3.3.4 Insertion of information . . . . . . . . . . . . . . . . . 14 4.3.3.5 Masquerading . . . . . . . . . . . . . . . . . . . . . . 14 4.3.3.6 Incorrect addressing . . . . . . . . . . . . . . . . . . 14 4.3.3.7 Incorrect sequence of information . . . . . . . . . . . 14 4.3.3.8 Corruption of information . . . . . . . . . . . . . . . 15 4.3.3.9 Asymmetric information sent from a sender to multi-

    ple receivers . . . . . . . . . . . . . . . . . . . . . . 15 4.3.3.10 Information from a sender received by only a subset

    of the receivers . . . . . . . . . . . . . . . . . . . . . 15 4.3.3.11 Blocking access to a communication channel . . . . 15

    5 Requirements Tracing 16

    6 Functional specification 22

    6.1 Overview of communication protection . . . . . . . . . . . . . . . . . . 22 6.2 Overview of E2E Profiles . . . . . . . . . . . . . . . . . . . . . . . . . 22

    6.2.1 Error detection . . . . . . . . . . . . . . . . . . . . . . . . . . 23 6.3 Specification of E2E Profile 1 (Only for CP) . . . . . . . . . . . . . . . 24

    6.3.1 Data Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 6.3.2 Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 6.3.3 Data ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.3.4 CRC calculation . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.3.5 Timeout detection . . . . . . . . . . . . . . . . . . . . . . . . 28

    4 of 185 — AUTOSAR CONFIDENTIAL —

    Document ID 849: AUTOSAR_PRS_E2EProtocol

  • E2E Protocol Specification AUTOSAR FO R19-11

    6.3.6 E2E Profile 1 variants . . . . . . . . . . . . . . . . . . . . . . 29 6.3.7 E2E_P01Protect . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.3.8 Calculate CRC . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.3.9 E2E_P01Forward . . . . . . . . . . . . . . . . . . . . . . . . 33 6.3.10 E2E_P01Check . . . . . . . . . . . . . . . . . . . . . . . . . 36

    6.3.10.1 Profile 1 Check Status Enumeration . . . . . . . . . 42 6.3.11 E2E Profile 1 Protocol Examples . . . . . . . . . . . . . . . . 43

    6.3.11.1 DataIDMode set to E2E_P01_DATAID_ALT . . . . . 44 6.3.11.2 DataIDMode set to E2E_P01_DATAID_LOW . . . . . 44 6.3.11.3 DataIDMode set to E2E_P01_DATAID_NIBBLE . . . 45

    6.4 Specification of E2E Profile 2 (only for CP) . . . . . . . . . . . . . . . . 45 6.4.1 E2E_P02Protect . . . . . . . . . . . . . . . . . . . . . . . . . 48 6.4.2 E2E_P02Forward . . . . . . . . . . . . . . . . . . . . . . . . 50 6.4.3 E2E_P02Check . . . . . . . . . . . . . . . . . . . . . . . . . 51

    6.4.3.1 Profile 2 Check Status Enumeration . . . . . . . . . 60 6.4.4 E2E Profile 2 Protocol Examples . . . . . . . . . . . . . . . . 62

    6.5 Specification of E2E Profile 4 . . . . . . . . . . . . . . . . . . . . . . . 63 6.5.1 Data Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

    6.5.1.1 User data layout . . . . . . . . . . . . . . . . . . . . 64 6.5.1.2 Header layout . . . . . . . . . . . . . . . . . . . . . . 64

    6.5.2 Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 6.5.3 Data ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 6.5.4 Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 6.5.5 CRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 6.5.6 Timeout detection . . . . . . . . . . . . . . . . . . . . . . . . 66 6.5.7 E2E Profile 4 variants . . . . . . . . . . . . . . . . . . . . . . 67 6.5.8 E2E_P04Protect . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.5.9 E2E_P04Forward . . . . . . . . . . . . . . . . . . . . . . . . 72 6.5.10 E2E_P04Check . . . . . . . . . . . . . . . . . . . . . . . . . 75

    6.5.10.1 Profile 4 Check Status Enumeration . . . . . . . . . 80 6.5.11 E2E Profile 4 Protocol Examples . . . . . . . . . . . . . . . . 80

    6.6 Specification of E2E Profile 5 . . . . . . . . . . . . . . . . . . . . . . . 81 6.6.1 Data Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

    6.6.1.1 User data layout . . . . . . . . . . . . . . . . . . . . 82 6.6.1.2 Header layout . . . . . . . . . . . . . . . . . . . . . . 82

    6.6.2 Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.6.3 Data ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.6.4 Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 6.6.5 CRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 6.6.6 Timeout detection . . . . . . . . . . . . . . . . . . . . . . . . 84 6.6.7 E2E_P05Protect . . . . . . . . . . . . . . . . . . . . . . . . . 85 6.6.8 E2E_P05Forward . . . . . . . . . . . . . . . . . . . . . . . . 88 6.6.9 E2E_P05Check . . . . . . . . . . . . . . . . . . . . . . . . . 90

    6.6.9.1 Profile 5 Check Status Enumeration . . . . . . . . . 94 6.6.10 E2E Profile 5 Protocol Examples . . . . . . . . . . . . . . . . 95

    6.7 Specification of E2E Profile 6 . . . . . . . . . . . . . . . . . . . . . . . 96

    5 of 185 — AUTOSAR CONFIDENTIAL —

    Document ID 849: AUTOSAR_PRS_E2EProtocol

  • E2E Protocol Specification AUTOSAR FO R19-11

    6.7.1 Data Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 6.7.1.1 User data layout . . . . . . . . . . . . . . . . . . . . 97 6.7.1.2 Header layout . . . . . . . . . . . .

View more >