Specification of Communication Manager V1.0.1
Total Page:16
File Type:pdf, Size:1020Kb
Specification of Communication Manager V1.0.1 Document Title Specification of Communication Manager Document Owner AUTOSAR GbR Document Responsibility AUTOSAR GbR Document Version 1.0.1 Document Status Final Document Change History Date Version Changed by Change Description 27.06.2006 1.0.1 AUTOSAR Layout Adaptations Administration 08.05.2006 1.0.0 AUTOSAR Initial Release Administration 1 of 84 AUTOSAR_SWS_ComManager - AUTOSAR CONFIDENTIAL - Specification of Communication Manager V1.0.1 Disclaimer This specification as released by the AUTOSAR Development Partnership is intended for the purpose of information only. The use of material contained in this specification requires membership within the AUTOSAR Development Partnership or an agreement with the AUTOSAR Development Partnership. The AUTOSAR Development Partnership will not be liable for any use of this Specification. Following the completion of the development of the AUTOSAR Specifications commercial exploitation licenses will be made available to end users by way of written License Agreement only. No part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from the publisher. The word AUTOSAR and the AUTOSAR logo are registered trademarks. Copyright © 2004-2006 AUTOSAR Development Partnership. All rights reserved. Advice to users of AUTOSAR Specification Documents: AUTOSAR Specification Documents 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 Specification Documents for illustration purposes only, and they themselves are not part of the AUTOSAR Standard. Neither their presence in such Specification Documents, nor any later AUTOSAR compliance certification 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 84 AUTOSAR_SWS_ComManager - AUTOSAR CONFIDENTIAL - Specification of Communication Manager V1.0.1 Table of Contents 1 Introduction and functional overview ................................................................... 7 2 Acronyms and definitions .................................................................................... 8 3 Related documentation........................................................................................ 9 3.1 Input documents........................................................................................... 9 3.2 Related standards and norms .................................................................... 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 .............................................................................................. 13 5.1.1 Code file structure ............................................................................... 13 5.1.2 Header file structure............................................................................ 13 5.2 AUTOSAR Runtime Environment (RTE) .................................................... 13 5.3 ECU State Manager (EcuM)....................................................................... 14 5.4 NVRAM Manager ....................................................................................... 14 5.5 AUTOSAR COM......................................................................................... 14 5.6 AUTOSAR IPDUM ..................................................................................... 14 5.7 Diagnostic Communication Manager (DCM) .............................................. 14 5.8 LIN Interface............................................................................................... 14 5.9 CAN Interface............................................................................................. 14 5.10 Flexray Interface......................................................................................... 15 5.11 Network Management (NM) ....................................................................... 15 5.12 Bus Transceiver driver ............................................................................... 15 5.13 Diagnostic Event Manager (Dem) and Development Error Tracer (Det) .... 15 6 Requirements traceability .................................................................................. 16 7 Functional specification ..................................................................................... 19 7.1 State machine ............................................................................................ 19 7.1.1 No Communication State .................................................................... 22 7.1.2 Silent Communication State................................................................ 23 7.1.2.1 Network released state ................................................................ 24 7.1.2.2 Prepare bus sleep state ............................................................... 24 7.1.3 Full Communication State ................................................................... 24 7.1.3.1 Network Requested state............................................................. 24 7.1.3.2 Ready Sleep state........................................................................ 25 7.2 Extended functionality ................................................................................ 25 7.2.1 State duration extensions.................................................................... 25 7.2.2 Communication inhibition .................................................................... 26 7.2.2.1 Bus wake Up inhibition................................................................. 26 7.2.2.2 Limit to Silent Communication mode............................................ 27 7.2.2.3 Limit to No Communication mode ................................................ 28 7.3 Bus communication management .............................................................. 29 7.4 Network management dependencies......................................................... 29 7.5 Bus error management............................................................................... 30 3 of 84 AUTOSAR_SWS_ComManager - AUTOSAR CONFIDENTIAL - Specification of Communication Manager V1.0.1 7.5.1 CAN Bus Off handling ......................................................................... 30 7.5.2 Network Start Indication ...................................................................... 32 7.5.3 Transmission Failure Exception .......................................................... 32 7.5.4 Network Timeout Exception ................................................................ 32 7.6 Test support requirements ......................................................................... 32 7.6.1 Inhibited Full Communication Request Counter.................................. 32 7.7 Error classification...................................................................................... 33 7.8 Error detection............................................................................................ 35 7.9 Error notification ......................................................................................... 35 7.10 Non functional requirements ...................................................................... 35 8 API specification................................................................................................ 36 8.1 Imported types............................................................................................ 36 8.1.1 Standard types.................................................................................... 36 8.2 Type definitions .......................................................................................... 36 8.2.1 ComM_InitStatusType......................................................................... 36 8.2.2 ComM_InhibitionStatusType ............................................................... 37 8.2.3 ComM_ChannelHandleType............................................................... 37 8.2.4 ComM_UserHandleType..................................................................... 37 8.2.5 ComM_ModeType............................................................................... 37 8.2.6 ComM_ConfigType ............................................................................. 38 8.3 Provided function definitions ...................................................................... 38 8.3.1 ComM_Init........................................................................................... 38 8.3.2 ComM_DeInit ...................................................................................... 39 8.3.3 ComM_GetStatus................................................................................ 39 8.3.4 ComM_GetInhibitionStatus ................................................................. 40 8.3.5 ComM_RequestComMode.................................................................. 40 8.3.6