1、BRITISH STANDARD BS ISO 17356-5:2006 Road vehicles Open interface for embedded automotive applications Part 5: OSEK/VDX Network Management (NM)ICS 43.040.15 BS ISO 17356-5:2006 This British Standard was published under the authority of the Standards Policy and Strategy Committee on 3 February 2006 B
2、SI 3 February 2006 ISBN 0 580 47778 9 National foreword This British Standard reproduces verbatim ISO 17356-5:2006 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 re
3、sponsibility to: A list of organizations represented on this committee can be obtained on request to its secretary. Cross-references The British Standards which implement international publications referred to in this document may be found in the BSI Catalogue under the section entitled “Internation
4、al Standards Correspondence Index”, or by using the “Search” facility of the BSI Electronic Catalogue 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
5、Standard does not of itself confer immunity from legal obligations. aid enquirers to understand 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 Europe
6、an developments and promulgate them in the UK. Summary of pages This document comprises a front cover, an inside front cover, the ISO title page, pages ii to vi, pages 1 to 117 and a back cover. The BSI copyright notice displayed in this document indicates when the document was last issued. Amendmen
7、ts issued since publication Amd. No. Date Comments Reference number ISO 17356-5:2006(E)INTERNATIONAL STANDARD ISO 17356-5 First edition 2006-02-01 Road vehicles Open interface for embedded automotive applications Part 5: OSEK/VDX Network Management (NM) Vhicules routiers Interface ouverte pour appli
8、cations automobiles embarques Partie 5: Gestion du rseau OSEK/VDX (NM) BS ISO 17356-5:2006 ii iii Contents Page Foreword iv 0 Introduction . v 0.1 General. v 0.2 System status v 0.3 Remarks by the authors. v 0.4 Summary. vi 1 Scope . 1 1.1 Embedding of the Network Management (NM) 1 1.2 Adaptation to
9、 bus protocol specific requirements . 1 1.3 Adaptation to node resources. 1 1.4 Adaptation to hardware-specific requirements . 1 1.5 Station management (system-specific algorithms) 2 1.6 Philosophy of node monitoring. 2 2 Direct Network Management . 3 2.1 Concept 3 2.2 Algorithms and behaviour . 11
10、3 Indirect Network Management. 54 3.1 General. 54 3.2 Concept 54 3.3 Algorithms and behaviour . 60 4 System generation and API . 75 4.1 Overview 75 4.2 Conventions for service description 77 4.3 General data types 79 4.4 Common services. 79 4.5 Services for direct NM 89 4.6 Services for indirect NM.
11、 92 5 Impacts upon OS, COM and the data link layer. 93 5.1 Error codes 93 5.2 Common impacts 93 5.3 Impacts from direct NM 97 5.4 Impacts from indirect NM. 98 Annex A (informative) Implementation proposal (direct NM) 101 Index 117 BS ISO 17356-5:2006iv Foreword ISO (the International Organization fo
12、r 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 interested in a subject for which a technical committee has been established has the
13、 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 Electrotechnical Commission (IEC) on all matters of electrotechnical standardization. Internati
14、onal 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 the technical committees are circulated to the member bodies for voting. Publication
15、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 rights. ISO shall not be held responsible for identifying any or all such patent rights.
16、ISO 17356-5 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 interface for embedded automotive applications: Part 1: General structure and terms,
17、 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 6: OSEK/VDX Implementation Language (OIL) BS ISO 17356-5:2006 v 0 Introduction 0.1 Ge
18、neral There is an increasing tendency for electronic control units (ECUs) made by different manufacturers to be networked within vehicles by serial data communication links. Therefore, standardization of basic and non-competitive infrastructure in ECUs aims at avoiding the design of unnecessary vari
19、ants and saving development time. In the scope of OSEK/VDX cooperation, the Network Management system (NM) provides standardized features which ensure the functionality of inter-networking by standardized interfaces. The essential task of NM is to ensure the safety and the reliability of a communica
20、tion network for ECUs. In a vehicle, a networked ECU is expected to provide certain features: each node accessible for authorized entities; maximum tolerance with regard to temporary failures; and support of network-related diagnostic features. At a basic configuration stage, NM implementations comp
21、lying with OSEK specifications are implemented in all networked nodes. This implies a solution for NM which can be implemented throughout the broad range of available hardware offered in todays ECUs. Therefore, the status of the network is recorded and evaluated uniformly at all ECUs at intervals. T
22、hus, each node features a determined behaviour as regards the network and the application concerned. NM offers two alternative mechanisms for network monitoring: indirect monitoring by monitored application messages; and direct monitoring by dedicated NM communication using token principle. However,
23、 the use of these mechanisms is up to the system responsible. Processing of information collected by these mechanisms is in accordance with requirements as regards to the entire networked system. 0.2 System status In view of the application, NM comprises two standardized interfaces: Software: Applic
24、ation program NM Network behaviour: Station Communication medium The resulting entire system is open. Thus, it can adapt to new requirements within the restrictions defined by the system design. 0.3 Remarks by the authors This part of ISO 17356 describes the concept and the API of a Network Manageme
25、nt, which can be used for ECUs in vehicles. It is not a product description which relates to a specific implementation. General conventions, explanations of terms and abbreviations have been compiled in ISO 17356-1. BS ISO 17356-5:2006vi 0.4 Summary In order to achieve the essential task of a networ
26、k monitoring, i.e. ensure safety and reliability of a communication network for ECUs, NM describes node-related (local) and network-related (global) management methods. The global NM component is optional. However, it requires a minimum local component to be operational. Therefore, the following ser
27、vices are provided: initialization of ECU resources, e.g. network interface; start-up of network; providing network configuration; management of different mechanisms for node monitoring; detecting, processing and signalling of operating states for network and node; reading and setting of network- an
28、d node-specific parameters; coordination of global operation modes (e.g. network wide sleep mode); and support of diagnosis. There are two main parts within the document: Direct Network Management described in Clause 2 and Indirect Network Management described in Clause 3. Both clauses describe the
29、concepts, algorithms and behaviour. Subclause 2.1, Concept, describes the fundamental aspects of the configuration management, the operating states and operating state management. Subclause 3.3, Algorithms and behaviour, describes the protocol used for communication between nodes. Clause 4 describes
30、 the API (Application Programming Interface) comprising the pure specification of the services offered for both direct and indirect NM. Input and output data, the functional description, particularities, etc. are described for each service. Furthermore, System generation services are described withi
31、n this clause. Clause 5 describes the impacts on the infrastructure of ISO 17356 and gives a brief description of all requirements for COM, OS and the data link layer for both direct and indirect NM. BS ISO 17356-5:2006 1Road vehicles Open interface for embedded automotive applications Part 5: OSEK/
32、VDX Network Management (NM) 1 Scope 1.1 Embedding of the Network Management (NM) NM defines a set of services for node monitoring. Figure 1 shows how the NM is embedded into a system and that the NM shall be adapted to specific requirements of the bus system used or to the resources of the nodes. NM
33、 consists of the following: interface to interact with the Application Programming Interface(API); algorithm for node monitoring; internal interfaces (NM COM, etc.); algorithm for transition into sleep mode; and NM protocol data unit (NMPDU). 1.2 Adaptation to bus protocol specific requirements Adap
34、tation to bus protocol specific requirements consists of the following: CAN, VAN, J1850, K-BUS, D2B, etc.; error handling, e.g. bus-off handling in a CAN, transmission line error handling; and interpretation of the status information, e.g. overrun or error active/passive in a CAN. 1.3 Adaptation to
35、node resources Adaptation to node resources consists of the following: scaling of the NM as a requirement of the node; and application-specific usage of the NM services. 1.4 Adaptation to hardware-specific requirements This consists of adaptation to a protocol circuit and a physical layer circuit, e
36、.g. switching the bus hardware to one of the possible physically power save modes. BS ISO 17356-5:20062 1.5 Station management (system-specific algorithms) There are a variety of additional tasks involved in coordinating a network. These are not described in ISO 17356, since they are system-dependen
37、t. Hence, these tasks are done by the application, e.g. by a module called station management. 1.6 Philosophy of node monitoring Node monitoring is used to inform the application about the nodes on the network. Thus, the application can check with the appropriate service if all stations required for
38、 operation are present on the network. Key 1 API 2 several buses connected to one Controller 3 interface to DLL, COM-specific, protocol-specific 4 interface to COM Interaction Layer 5 station management (outside the scope of ISO 17356) 6 algorithms 7 protocol-specific management algorithms Figure 1
39、Responsibility of interface and algorithms BS ISO 17356-5:2006 3 2 Direct Network Management 2.1 Concept 2.1.1 Node monitoring 2.1.1.1 General NM supports the direct node monitoring by dedicated NM communication. A node is a logical whole to which a communication access is possible. A microprocessor
40、 with two communication modules connected to two different communication media (e.g. low speed CAN and a high-speed CAN) represents two nodes from the NM point of view. The rate of the NM communication is controlled across the network (minimization of bus load and consumption of resources) and the m
41、essages are synchronized (avoiding negative effects on application data by message bursts). Every node is actively monitored by every other node in the network. For this purpose, the monitored node sends an NM message according to a dedicated and uniform algorithm. Direct node monitoring requires a
42、network-wide synchronization of NM messages. For this purpose, a logical ring is used. 2.1.1.2 Logical ring 2.1.1.2.1 General In a logical ring, the communication sequence is defined independently from the network structure. Therefore, each node is assigned a logical successor. The logically first n
43、ode is the successor of the logically last node in the ring. Thus, the decentralized control of the overall amount of NM messages is ensured and the bus load due to these messages is determined. The communication sequence of the logical ring synchronizes NM communication. Any node shall be able to s
44、end NM messages to all other nodes and receive messages from them. Key 1 node 2 Electronic Communication Unit (ECU) 3 communication media 1 4 communication media 2 Figure 2 Infrastructure of the NM (logical ring), example with two buses BS ISO 17356-5:20064 2.1.1.2.2 Principle The direct NM transmit
45、s and receives two types of messages to build the logical ring. An alive message introduces a new transmitter to the logical ring. A ring message is responsible for the synchronized running of the logical ring. It will be passed from one node to another (successor) node. Receive alive message: Inter
46、pretation as transmitter-related registration to the logical ring. Receive ring message: Interpretation as transmitter-specific alive signal and synchronization to initiate transmission of own NM message according to the logical ring algorithm. Time-out on ring message: Interpretation as transmitter
47、-specific breakdown. 2.1.1.2.3 State of a node A monitoring node is able to distinguish two states of a monitored node: node present specific NM message received (alive or ring); node absent specific NM message not received during time-out. A monitoring node is able to distinguish two states of itse
48、lf: present or not mute specific NM message transmitted (alive or ring); absent or mute specific NM message not transmitted during time-out. 2.1.2 Addressing 2.1.2.1 Status The status of nodes and of the network shall be acquired and evaluated uniformly at intervals. For this purpose, all nodes shal
49、l communicate via their NM. The NM communication is independent of the underlying bus protocol. Each node can communicate unidirectionally and address-related with any other node of the network. Therefore, individual and group addressing of nodes is required. 2.1.2.2 Node addressing 2.1.2.2.1 General Address-related communication takes into account receiver and emitter. Each node has