Document Title Specification of Communication Stack Types
Total Page:16
File Type:pdf, Size:1020Kb
Specification of Communication Stack Types V4.2.0 R4.1 Rev 3 Document Title Specification of Communication Stack Types Document Owner AUTOSAR Document Responsibility AUTOSAR Document Identification No 050 Document Classification Standard Document Version 4.2.0 Document Status Final Part of Release 4.1 Revision 3 Document Change History Date Version Changed by Change Description 31.03.2014 4.2.0 AUTOSAR Added support for Pretended network Release data type Management 31.10.2013 4.1.0 AUTOSAR Removed the published information Release Editorial changes Management Removed chapter(s) on change documentation 01.03.2013 4.0.0 AUTOSAR Added support for Partial network data Administration type Revised Notification type and RetryInfo type Additional input (SWS_BSW_General) added for SWS_CommunicationStackTypes 28.10.2011 3.2.2 AUTOSAR ComStack Artifacts have been generated Administration from BSW Model Update of SWS document for new traceability mechanism 11.10.2010 3.1.0 AUTOSAR Add TPParameterType and Enumeration Administration value TP_NORETRY in RetryInfoType ComStack_Types.h divided into ComStack_Types.h and ComStack_Cfg.h PduIdType and PduLengthType defined in ComStack_Cfg.h file 1 of 28 Document ID 050: AUTOSAR_SWS_CommunicationStackTypes - AUTOSAR confidential - Specification of Communication Stack Types V4.2.0 R4.1 Rev 3 Document Change History 02.12.2009 3.0.0 AUTOSAR Typo errors are corrected throughout the Administration document General return codes for NotifResultType has been added to support Tp_ChangeParameterRequest TpDataStateType and RetryInfoType has been added to store the Tp buffer status information Common Published information has been updated Legal disclaimer revised 23.06.2008 2.2.1 AUTOSAR Legal disclaimer revised Administration 27.11.2007 2.2.0 AUTOSAR Chapter numbers in chapter 8.1 corrected Administration New data type NetworkHandleType created according item COMTYPE026 established Syntax correction in PduInfoType Document meta information extended Small layout adaptations made 24.01.2007 2.1.1 AUTOSAR “Advice for users” revised Administration “Revision Information” added Changed “sender” to “receiver” at NTFRSLT_E_WFT_OVRN 14.12.2006 2.1.0 AUTOSAR NTFRSLT_E_TIMEOUT_Bs changed Administration NTFRSLT_E_TIMEOUT_BS NTFRSLT_E_TIMEOUT_Cr changed to NTFRSLT_E_TIMEOUT_CR Definitions according to compiler abstraction added Legal disclaimer revised 21.03.2006 2.0.0 AUTOSAR Initial release (The V1.0.0 was only as Administration Pre-Release available within Release 1.0) 2 of 28 Document ID 050: AUTOSAR_SWS_CommunicationStackTypes - AUTOSAR confidential - Specification of Communication Stack Types V4.2.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 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 presence 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. 3 of 28 Document ID 050: AUTOSAR_SWS_CommunicationStackTypes - AUTOSAR confidential - Specification of Communication Stack Types V4.2.0 R4.1 Rev 3 Table of Contents 1 Introduction and functional overview ................................................................... 5 2 Acronyms and abbreviations ............................................................................... 6 3 Related documentation........................................................................................ 7 3.1 Input documents ........................................................................................... 7 3.2 Related standards and norms ...................................................................... 7 3.3 Related specification .................................................................................... 8 4 Constraints and assumptions .............................................................................. 9 4.1 Limitations .................................................................................................... 9 4.2 Applicability to car domains .......................................................................... 9 4.3 Applicability to safety related environments ................................................. 9 5 Software Architecture ........................................................................................ 10 5.1 Dependencies to other modules ................................................................. 10 5.2 File structure .............................................................................................. 10 6 Requirements traceability .................................................................................. 11 7 Functional specification ..................................................................................... 17 7.1 General issues ........................................................................................... 17 8 API specification ................................................................................................ 19 8.1 Type definitions .......................................................................................... 19 8.1.1 PduIdType .............................................................................................. 19 8.1.2 PduLengthType ...................................................................................... 20 8.1.3 PduInfoType ........................................................................................... 20 8.1.4 PNCHandleType ..................................................................................... 21 8.1.5 TPParameterType .................................................................................. 21 8.1.6 BufReq_ReturnType ............................................................................... 21 8.1.7 BusTrcvErrorType ................................................................................... 22 8.1.8 TpDataStateType .................................................................................... 23 8.1.9 RetryInfoType ......................................................................................... 23 8.1.10 NetworkHandleType ............................................................................... 23 8.1.11 IcomConfigIdType ................................................................................... 24 8.1.12 IcomSwitch_ErrorType ........................................................................... 24 8.2 Function definitions .................................................................................... 25 9 Sequence diagrams .......................................................................................... 26 10 Configuration specification ................................................................................ 27 10.1 Published parameters ................................................................................ 27 11 Not applicable requirements .............................................................................. 28 4 of 28 Document ID 050: AUTOSAR_SWS_CommunicationStackTypes - AUTOSAR confidential - Specification of Communication Stack Types V4.2.0 R4.1 Rev 3 1 Introduction and functional overview This document specifies the AUTOSAR communication stack type header file. It contains all types that are used across several modules of the communication stack of the basic software and all types of all basic software modules that are platform and compiler independent. It is strongly recommended that those communication stack type files are unique within the AUTOSAR community to guarantee unique types and to avoid type changes when changing from supplier A to B. 5 of 28 Document ID 050: AUTOSAR_SWS_CommunicationStackTypes - AUTOSAR confidential - Specification of Communication Stack Types V4.2.0 R4.1 Rev 3 2 Acronyms and abbreviations Acronyms and abbreviations that have a local scope are not contained in the AUTOSAR glossary. These must appear in a local glossary. Acronym: Description: API Application Programming Interface DCM Diagnostic Communication Manager I-PDU Interaction Layer PDU. In AUTOSAR the Interaction Layer is equivalent to the Communication Services Layer.