ISO 17987-2:2016
(Main)Road vehicles — Local Interconnect Network (LIN) — Part 2: Transport protocol and network layer services
Road vehicles — Local Interconnect Network (LIN) — Part 2: Transport protocol and network layer services
ISO 17987-2:2016 specifies a transport protocol and network layer services tailored to meet the requirements of LIN‑based vehicle network systems on local interconnect networks. The protocol specifies an unconfirmed communication. The LIN protocol supports the standardized service primitive interface as specified in ISO 14229‑2. ISO 17987-2:2016 provides the transport protocol and network layer services to support different application layer implementations like - normal communication messages, and - diagnostic communication messages. The transport layer defines transportation of data that is contained in one or more frames. The transport layer messages are transported by diagnostic frames. A standardized API is specified for the transport layer. Use of the transport layer is targeting systems where diagnostics are performed on the backbone bus (e.g. CAN) and where the system builder wants to use the same diagnostic capabilities on the LIN sub-bus clusters. The messages are in fact identical to the ISO 15765‑2 and the PDUs carrying the messages are very similar. The goals of the transport layer are - low load on LIN master node, - to provide full (or a subset thereof) diagnostics directly on the LIN slave nodes, and - targeting clusters built with powerful LIN nodes (not the mainstream low cost).
Véhicules routiers — Réseau Internet local (LIN) — Partie 2: Protocole de transport et couches de services réseau
General Information
Relations
Standards Content (Sample)
DRAFT INTERNATIONAL STANDARD
ISO/DIS 17987-2.2
ISO/TC 22/SC 31 Secretariat: DIN
Voting begins on: Voting terminates on:
2015-10-05 2015-12-05
Road vehicles — Local Interconnect Network (LIN) —
Part 2:
Transport protocol and network layer services
Véhicules routiers — Réseau Internet local (LIN) —
Partie 2: Protocole de transport et couches de services réseau
ICS: 35.240.60; 43.040.15
THIS DOCUMENT IS A DRAFT CIRCULATED
FOR COMMENT AND APPROVAL. IT IS
THEREFORE SUBJECT TO CHANGE AND MAY
NOT BE REFERRED TO AS AN INTERNATIONAL
STANDARD UNTIL PUBLISHED AS SUCH.
IN ADDITION TO THEIR EVALUATION AS
BEING ACCEPTABLE FOR INDUSTRIAL,
TECHNOLOGICAL, COMMERCIAL AND
USER PURPOSES, DRAFT INTERNATIONAL
STANDARDS MAY ON OCCASION HAVE TO
BE CONSIDERED IN THE LIGHT OF THEIR
POTENTIAL TO BECOME STANDARDS TO
WHICH REFERENCE MAY BE MADE IN
Reference number
NATIONAL REGULATIONS.
ISO/DIS 17987-2.2:2015(E)
RECIPIENTS OF THIS DRAFT ARE INVITED
TO SUBMIT, WITH THEIR COMMENTS,
NOTIFICATION OF ANY RELEVANT PATENT
RIGHTS OF WHICH THEY ARE AWARE AND TO
©
PROVIDE SUPPORTING DOCUMENTATION. ISO 2015
ISO/DIS 17987-2.2:2015(E)
© ISO 2015, Published in Switzerland
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form
or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior
written permission. Permission can be requested from either ISO at the address below or ISO’s member body in the country of
the requester.
ISO copyright office
Ch. de Blandonnet 8 • CP 401
CH-1214 Vernier, Geneva, Switzerland
Tel. +41 22 749 01 11
Fax +41 22 749 09 47
copyright@iso.org
www.iso.org
ii © ISO 2015 – All rights reserved
ISO/DIS 17987-2.2
Contents Page
1 Scope . 1
2 Normative references . 2
3 Terms, definitions, symbols and abbreviated terms . 2
3.1 Terms and definitions . 2
3.2 Symbols . 3
3.3 Abbreviated terms . 3
4 Conventions . 4
5 Network management . 4
6 Network layer overview . 8
6.1 General . 8
6.2 Format description of network layer services . 8
6.3 Internal operation of network layer . 9
6.4 Service data unit specification . 9
6.5 Services provided by network layer to higher layers . 12
7 Transport layer protocol . 14
7.1 Protocol functions . 14
7.2 Single frame transmission. 14
7.3 Multiple frame transmission . 14
7.4 Transport layer protocol data units . 16
7.5 Protocol control information specification . 17
7.6 Network layer timing . 20
8 Data link layer usage . 28
8.1 Data link layer service parameters . 28
8.2 Data link layer interface services . 28
8.3 Mapping of the N_PDU fields . 29
8.4 Transport layer PDU structure and communication . 29
9 Diagnostic communication requirements . 32
9.1 Definition of diagnostic classes . 32
9.2 Diagnostic messages . 33
9.3 Using the transport layer . 33
9.4 Slave node diagnostic timing requirements . 34
9.5 Response Pending . 36
9.6 Transport protocol handling in LIN master . 37
9.7 Transmission handler requirements . 43
9.8 Diagnostic service prioritization . 48
10 LIN node capability language (NCL) . 50
10.1 General . 50
10.2 Plug and play workflow concept . 50
11 Node capability file (NCF) . 52
11.1 Overview of NCF syntax . 52
11.2 Global structure definition. 52
11.3 Node definition . 53
11.4 NCF example . 58
12 LIN description file (LDF) . 59
12.1 General . 59
12.2 Overview of LDF syntax . 59
12.3 LDF definition . 59
ISO/DIS 17987-2.2
12.4 LDF example . 74
iv © ISO 2015 – All rights reserved
ISO/DIS 17987-2.2
Foreword
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 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 Electrotechnical 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 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
rights. ISO shall not be held responsible for identifying any or all such patent rights.
ISO 17987-2 was prepared by Technical Committee ISO/TC 22, Road vehicles, Subcommittee SC 31,
Electrical and electronic equipment.
ISO 17987 consists of the following parts, under the general title Road vehicles — Local Interconnect Network
(LIN):
Part 1: General information and use case definition
Part 2: Transport protocol and network layer services
Part 3: Protocol specification
Part 4: Electrical Physical Layer (EPL) specification (12 V/24 V)
Part 5: Application Programmers Interface (API)
Part 6: Protocol conformance test specification
Part 7: Electrical Physical Layer (EPL) conformance test specification
ISO/DIS 17987-2.2
Introduction
This document set specifies the use cases, the communication protocol and physical layer requirements of an
in-vehicle communication network called "Local Interconnect Network (LIN)".
The LIN protocol as proposed is an automotive focused low speed UART-based network (Universal
Asynchronous Receiver Transmitter). Some of the key characteristics of the LIN protocol are signal based
communication, schedule table based frame transfer, master/slave communication with error detection, node
configuration and diagnostic service transportation.
The LIN protocol is for low cost automotive control applications, for example door module and air condition
systems. It serves as a communication infrastructure for low-speed control applications in vehicles by
providing:
Signal based communication to exchange information between applications in different nodes;
Bitrate support from 1 kbit/s to 20 kbit/s;
Deterministic schedule table based frame communication;
Network management that wakes up and puts the LIN cluster into sleep mode in a controlled manner;
Status management that provides error handling and error signalling;
Transport layer that allows large amount of data to be transported (such as diagnostic services);
Specification of how to handle diagnostic services;
Electrical physical layer specifications;
Node description language describing properties of slave nodes;
Network description file describing behaviour of communication;
Application programmer's interface;
ISO 17987 is based on the Open Systems Interconnection (OSI) Basic Reference Model as specified in
ISO/IEC 7498-1 which structures communication systems into seven layers.
The OSI model structures data communication into seven layers called (top down) application layer (layer 7),
presentation layer, session layer, transport layer, network layer, data link layer and physical layer (layer 1). A
subset of these layers is used in ISO 17987.
ISO 17987 distinguishes between the services provided by a layer to the layer above it and the protocol used
by the layer to send a message between the peer entities of that layer. The reason for this distinction is to
make the services, especially the application layer services and the transport layer services, reusable also for
other types of networks than LIN. In this way the protocol is hidden from the service user and it is possible to
change the protocol if special system requirements demand it.
vi © ISO 2015 – All rights reserved
ISO/DIS 17987-2.2
This document set provides all documents and references required to support the implementation of the
requirements related to.
Part 1: General information and use case definitions
This part provides an overview of the document set and structure along with the use case definitions and
a common set of resources (definitions, references) for use by all subsequent parts.
Part 2:
This part specifies the requirements related to the transport protocol and the network layer requirements
to transport the PDU of a message between LIN nodes.
Part 3:
This part specifies the requirements for implementations of the LIN protocol on the logical level of
abstraction. Hardware related properties are hidden in the defined constraints.
Part 4:
This part specifies the requirements for implementations of active hardware components which are
necessary to interconnect the protocol implementation.
Part 5 (published as a non-normative technical report):
This part specifies the LIN API (Application Programmers Interface) and the node co
...
INTERNATIONAL ISO
STANDARD 17987-2
First edition
2016-08-15
Road vehicles — Local Interconnect
Network (LIN) —
Part 2:
Transport protocol and network layer
services
Véhicules routiers — Réseau Internet local (LIN) —
Partie 2: Protocole de transport et couches de services réseau
Reference number
©
ISO 2016
© ISO 2016, Published in Switzerland
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form
or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior
written permission. Permission can be requested from either ISO at the address below or ISO’s member body in the country of
the requester.
ISO copyright office
Ch. de Blandonnet 8 • CP 401
CH-1214 Vernier, Geneva, Switzerland
Tel. +41 22 749 01 11
Fax +41 22 749 09 47
copyright@iso.org
www.iso.org
ii © ISO 2016 – All rights reserved
Contents Page
Foreword .vi
Introduction .vii
1 Scope . 1
2 Normative references . 2
3 Terms, definitions, symbols and abbreviated terms . 2
3.1 Terms and definitions . 2
3.2 Symbols . 4
3.3 Abbreviated terms . 4
4 Conventions . 5
5 Network management . 5
5.1 Network management general information . 5
5.2 LIN node communication state diagram . 5
5.3 Wake up . 6
5.3.1 Wake up general information . 6
5.3.2 Master generated wake up . 6
5.3.3 Slave generated wake up . 6
5.4 Go-to-sleep . 8
6 Network layer overview . 8
6.1 General . 8
6.2 Format description of network layer services . 9
6.3 Internal operation of network layer . 9
6.4 Service data unit specification .10
6.4.1 N_AI, address information .10
6.4.2 .11
6.4.3 .11
6.4.4 .11
6.5 Services provided by network layer to higher layers .12
6.5.1 Specification of network layer service primitives .12
6.5.2 N_USData.request .13
6.5.3 N_USData.confirm .13
6.5.4 N_USData_FF.indication .13
6.5.5 N_USData.indication .13
7 Transport layer protocol .14
7.1 Protocol functions .14
7.2 Single frame transmission .14
7.3 Multiple frame transmission .14
7.4 Transport layer protocol data units .16
7.4.1 Protocol data unit types . .16
7.4.2 SF N_PDU .16
7.4.3 FF N_PDU .16
7.4.4 CF N_PDU .16
7.4.5 Protocol data unit field description .16
7.5 Protocol control information specification .17
7.5.1 N_PCI .17
7.5.2 SingleFrame N_PCI parameter definition .18
7.5.3 FirstFrame N_PCI parameter definition .19
7.5.4 ConsecutiveFrame N_PCI parameter definition .19
7.6 Network layer timing .20
7.6.1 Timing constraints .20
7.6.2 Network layer timeouts .25
7.6.3 Network layer error handling .25
7.6.4 Unexpected arrival of N_PDU .26
8 Data link layer usage .27
8.1 Data link layer service parameters .28
8.2 Data link layer interface services .28
8.2.1 L_Data.request .28
8.2.2 L_Data.confirm .28
8.2.3 L_Data.indication .28
8.3 Mapping of the N_PDU fields .28
8.4 Transport layer PDU structure and communication .29
8.4.1 PDU structure .29
8.4.2 Communication .31
9 Diagnostic communication requirements .31
9.1 Definition of diagnostic classes .31
9.1.1 General.31
9.1.2 Diagnostic class I . . .31
9.1.3 Diagnostic class II .31
9.1.4 Diagnostic class III .31
9.1.5 Summary of slave node diagnostic classes .32
9.2 Diagnostic messages .32
9.3 Using the transport layer .32
9.4 Slave node diagnostic timing requirements .34
9.5 Response pending .36
9.6 Transport protocol handling in LIN master .36
9.6.1 General.36
9.6.2 Diagnostic master request schedule
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.