1、BRITISH STANDARDBS ISO 17356-2:2005Road vehicles Open interface for embedded automotive applications Part 2: OSEK/VDX specifications for binding OS, COM and NMICS 43.040.15g49g50g3g38g50g51g60g44g49g42g3g58g44g55g43g50g56g55g3g37g54g44g3g51g40g53g48g44g54g54g44g50g49g3g40g59g38g40g51g55g3g36g54g3g51
2、g40g53g48g44g55g55g40g39g3g37g60g3g38g50g51g60g53g44g42g43g55g3g47g36g58BS ISO 17356-2:2005This British Standard was published under the authority of the Standards Policy and Strategy Committee on 26 August 2005 BSI 26 August 2005ISBN 0 580 46477 6National forewordThis British Standard reproduces ve
3、rbatim ISO 17356-2:2005 and implements it as the UK national standard.The UK participation in its preparation was entrusted to Technical Committee AUE/16, Electrical and electronic equipment, which has the responsibility to: A list of organizations represented on this committee can be obtained on re
4、quest to its secretary.Cross-referencesThe British Standards which implement international publications referred to in this document may be found in the BSI Catalogue under the section entitled “International Standards Correspondence Index”, or by using the “Search” facility of the BSI Electronic Ca
5、talogue or of British Standards Online.This publication does not purport to include all the necessary provisions of a contract. Users are responsible for its correct application. Compliance with a British Standard does not of itself confer immunity from legal obligations. aid enquirers to understand
6、 the text; present to the responsible international/European committee any enquiries on the interpretation, or proposals for change, and keep UK interests informed; monitor related international and European developments and promulgate them in the UK.Summary of pagesThis document comprises a front c
7、over, an inside front cover, the ISO title page, The BSI copyright notice displayed in this document indicates when the document was last issued.Amendments issued since publicationAmd. No. Date Commentspages ii and iii, a blank page, pages 1 to 3 and a back cover.Reference numberISO 17356-2:2005(E)I
8、NTERNATIONAL STANDARD ISO17356-2First edition2005-05-01Road vehicles Open interface for embedded automotive applications Part 2: OSEK/VDX specifications for binding OS, COM and NM Vhicules routiers Interface ouverte pour applications automobiles embarques Partie 2: Spcifications OSEK/VDX des liens O
9、S, COM et NM BS ISO 17356-2:2005ii iiiForeword ISO (the International Organization for Standardization) is a worldwide federation of national standards bodies (ISO member bodies). The work of preparing International Standards is normally carried out through ISO technical committees. Each member body
10、 interested in a subject for which a technical committee has been established has the right to be represented on that committee. International organizations, governmental and non-governmental, in liaison with ISO, also take part in the work. ISO collaborates closely with the International Electrotec
11、hnical Commission (IEC) on all matters of electrotechnical standardization. International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of technical committees is to prepare International Standards. Draft International Standards adopted by
12、the technical committees are circulated to the member bodies for voting. Publication as an International Standard requires approval by at least 75 % of the member bodies casting a vote. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent righ
13、ts. ISO shall not be held responsible for identifying any or all such patent rights. ISO 17356-2 was prepared by Technical Committee ISO/TC 22, Road vehicles, Subcommittee SC 3, Electrical and electronic equipment. ISO 17356 consists of the following parts, under the general title Road vehicles Open
14、 interface for embedded automotive applications: Part 1: General structure and terms, definitions and abbreviated terms Part 2: OSEK/VDX specifications for binding OS, COM and NM Part 3: OSEK/VDX operating system (OS) Part 4: OSEK/VDX Communication (COM) Part 5: OSEK/VDX network management (NM) Part
15、 6: OSEK/VDX implementation language (OIL) BS ISO 17356-2:2005blank1Road vehicles Open interface for embedded automotive applications Part 2: OSEK/VDX specifications for binding OS, COM and NM 1 Scope This part of ISO 17356 gives the OSEK/VDX specifications for binding the OS (operating system), COM
16、 (communications) and NM (network management) of the open interface for embedded automotive applications. Its purpose is to prevent divergences from those ISO 17356 specifications given in ISO 17356-3, ISO 17356-4 and ISO 17356-5 by making it possible to refer to a single document. It specifies the
17、variables (error codes, status types, etc.) programmable by the user to ensure that implementation of OS, COM and NM are coherent between each other. 2 Normative references The following referenced documents are indispensable for the application of this document. For dated references, only the editi
18、on cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. ISO 17356-1, Road vehicles Open interface for embedded automotive applications Part 1: General structure and terms, definitions and abbreviated terms ISO 17356-3, Road vehicles
19、 Open interface for embedded automotive applications Part 3: OSEK/VDX operating system (OS)1) ISO 17356-4, Road vehicles Open interface for embedded automotive applications Part 4: OSEK/VDX Communication (COM)1)ISO 17356-5, Road vehicles Open interface for embedded automotive applications Part 5: OS
20、EK/VDX network management (NM)1)3 Terms and definitions For the purposes of this document, the terms and definitions given in ISO 17356-1 and the following apply. 3.1 binding act of ensuring the coherence of implementations between the OS, COM and NM using specifications NOTE These are referred to a
21、s binding specifications. 1) To be published. BS ISO 17356-2:20052 4 Binding specifications 4.1 Definition of error codes The various parts of ISO 17356 specify return codes of system functions to indicate different conditions which can arise during performing the system function. These return codes
22、 of type StatusType are defined as define-variables in the respective documentation. These return codes cannot be seen locally (e.g. they are used as input parameter to ShutdownOS); therefore unique values must be defined across the different specifications. To accommodate this, ranges of error code
23、 values shall be defined which are assigned to the different parts of the specification. Each range consists of 32 values. Within each range, the first 16 values are consecutively defined as standard return values. Starting with the second half of the range, the second 16 values may be defined conse
24、cutively to inform about detection of implementation specific additional errors (stack overflow, corruption of internal lists, etc.). Within the first range, the value “0” (E_OK) has a special meaning, indicating the successful completion of a system function without any specific return indication.
25、The ranges shall be assigned as follows: 0 E_OK 1 to 31 ISO 17356-3 OS error codes 32 to 63 ISO 17356-4 COM error codes64 to 95 ISO 17356-5 NM error codes 96 to 255 RESERVED 4.2 Definition of StatusType The data type StatusType is used within all parts of ISO 17356. In order to be able to combine di
26、fferent parts of ISO 17356 from different suppliers e.g. ISO 17356-4 COM from Supplier A and ISO 17356-5 NM from Supplier B the definition of this type shall be handled with care to avoid conflicts. Conflicts can arise if the definitions are different between the different parts of ISO 17356. Moreov
27、er, even if the definitions are the same, the compiler will create an error if the same type is defined more than once in one translation unit. The definition of StatusType and of the constant E_OK shall be as follows in all parts of ISO 17356: #ifndef STATUSTYPEDEFINED #define STATUSTYPEDEFINED typ
28、edef unsigned char StatusType; #define E_OK 0 #endif These definitions shall be in the header files supplied provided by the suppliers of the respective parts. BS ISO 17356-2:20053NOTE If StatusType is not set to “unsigned char”, there is no guarantee that implementations of OS, COM and NM (see ISO
29、17356-3, ISO 17356-4, ISO 17356-5), used with software made by car manufacturers without verification of good fit between different sources, will be coherent between themselves. 4.3 Support of internal communication The definition of messages for internal, external and internalexternal communication
30、 shall be consistent and guaranteed. To cope with the situation where both kernels, i.e. COM and OS, are linked within a system, the following rules have been set up to clarify which kernel is to handle internal communication. If both COM and OS kernels are present, but one of CCCA or CCCB only is t
31、o be supported (no application message uses external communication) then the ISO 17356-3 OS kernel shall provide the functionality to handle internal messages, i.e. those using internal communication. CCCA and CCCB are defined in ISO 17356-4. If both COM and OS kernels are present but one of CCC0 on
32、wards is to be supported to handle external communication in addition to internal communication, then the ISO 17356-4 COM kernel shall provide the functionality to handle internal messages, i.e. those using internal communication. CCC0 is defined in ISO 17356-4. NOTE CCC stands for communication con
33、formance classes. Thusly it is guaranteed that definitions of data types used within internal and external message handling are consistent within a system. To internally assure that the stated rules are followed, a #define symbol LOCALMESSAGESONLY is defined. Internal communication within ISO 17356-
34、3 OS shall be implemented if this define-variable is set. The #define symbol LOCALMESSAGESONLY shall be defined by the tool which generates a system out of an OIL file (see ISO 17356-6). BS ISO 17356-2:2005BS ISO 17356-2:2005BSI389 Chiswick High RoadLondonW4 4ALBSI British Standards InstitutionBSI i
35、s the independent national body responsible for preparing British Standards. It presents the UK view on standards in Europe and at the international level. It is incorporated by Royal Charter.RevisionsBritish Standards are updated by amendment or revision. Users of British Standards should make sure
36、 that they possess the latest amendments or editions.It is the constant aim of BSI to improve the quality of our products and services. We would be grateful if anyone finding an inaccuracy or ambiguity while using this British Standard would inform the Secretary of the technical committee responsibl
37、e, the identity of which can be found on the inside front cover. Tel: +44 (0)20 8996 9000. Fax: +44 (0)20 8996 7400.BSI offers members an individual updating service called PLUS which ensures that subscribers automatically receive the latest editions of standards.Buying standardsOrders for all BSI,
38、international and foreign standards publications should be addressed to Customer Services. Tel: +44 (0)20 8996 9001. Fax: +44 (0)20 8996 7001. Email: ordersbsi-. Standards are also available from the BSI website at http:/www.bsi-.In response to orders for international standards, it is BSI policy to
39、 supply the BSI implementation of those that have been published as British Standards, unless otherwise requested.Information on standardsBSI provides a wide range of information on national, European and international standards through its Library and its Technical Help to Exporters Service. Variou
40、s BSI electronic information services are also available which give details on all its products and services. Contact the Information Centre. Tel: +44 (0)20 8996 7111. Fax: +44 (0)20 8996 7048. Email: infobsi-.Subscribing members of BSI are kept up to date with standards developments and receive sub
41、stantial discounts on the purchase price of standards. For details of these and other benefits contact Membership Administration. Tel: +44 (0)20 8996 7002. Fax: +44 (0)20 8996 7001. Email: membershipbsi-.Information regarding online access to British Standards via British Standards Online can be fou
42、nd at http:/www.bsi- information about BSI is available on the BSI website at http:/www.bsi-.CopyrightCopyright subsists in all BSI publications. BSI also holds the copyright, in the UK, of the publications of the international standardization bodies. Except as permitted under the Copyright, Designs
43、 and Patents Act 1988 no extract may be reproduced, stored in a retrieval system or transmitted in any form or by any means electronic, photocopying, recording or otherwise without prior written permission from BSI.This does not preclude the free use, in the course of implementing the standard, of n
44、ecessary details such as symbols, and size, type or grade designations. If these details are to be used for any other purpose than implementation then the prior written permission of BSI must be obtained.Details and advice can be obtained from the Copyright & Licensing Manager. Tel: +44 (0)20 8996 7070. Fax: +44 (0)20 8996 7553. Email: copyrightbsi-.
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1