ISO 17987-3:2016
(Main)Road vehicles — Local Interconnect Network (LIN) — Part 3: Protocol specification
Road vehicles — Local Interconnect Network (LIN) — Part 3: Protocol specification
ISO 17987-3:2016 specifies the LIN protocol including the signal management, frame transfer, schedule table handling, task behaviour and status management and LIN master and slave node. It contains also OSI layer 5 properties according to ISO 14229‑7 UDSonLIN-based node configuration and identification services (SID: B016 to B816) belonging to the core protocol specification. A node (normally a master node) that is connected to more than one LIN network is handled by higher layers (i.e. the application) not within the scope of ISO 17987-3:2016.
Véhicules routiers — Réseau Internet local (LIN) — Partie 3: Spécification du protocole
General Information
Relations
Standards Content (Sample)
DRAFT INTERNATIONAL STANDARD
ISO/DIS 17987-3.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 3:
Protocol specification
Véhicules routiers — Réseau Internet local (LIN) —
Partie 3: Spécification du protocole
ICS: 01.040.43; 43.020
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-3.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-3.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/FDIS 17987-3:2015(E)
Contents Page
Foreword . iv
Introduction . v
1 Scope . 1
2 Normative references . 1
3 Terms, definitions, symbols and abbreviated terms . 1
3.1 Terms and definitions . 1
3.2 Symbols . 4
3.3 Abbreviated terms . 4
4 Node concept . 5
4.1 Concept of operation . 5
5 Protocol requirements . 7
5.1 Signal . 7
5.2 Frame . 9
5.3 Schedule tables . 20
5.4 Task behaviour model . 21
5.5 Status management . 24
6 Node configuration and identification . 25
6.1 General . 25
6.2 LIN product identification . 26
6.3 Slave node model . 27
Annex A (normative) Definition of properties, frame identifiers and various examples . 36
A.1 Definition of numerical properties . 36
A.2 Definition of valid frame identifiers . 36
A.3 Example of checksum calculation . 38
A.4 Example of sequence diagrams . 39
Annex B (informative) LIN history and version compatibility . 40
B.1 LIN history and background . 40
B.2 LIN version compatibility . 40
B.3 Changes between LIN versions . 41
Annex C (informative) LIN auto addressing methods . 44
C.1 Auto addressing method and method IDs . 44
C.2 Auto addressing method ID. 44
Bibliography . 46
ISO/FDIS 17987-3:2015(E)
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-3 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
iv © ISO 2015 – All rights reserved
ISO/FDIS 17987-3:2015(E)
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 communication.
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;
Bit rate 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 transmitted (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.
ISO/FDIS 17987-3:2015(E)
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 configuration and
identification services. The node configuration and identification services are specified in the API and
define how a slave node is configured and how a slave node uses the identification service.
Part 6:
This part specifies tests to check the conformance of the LIN protocol implementation according to
ISO 17987-2 and ISO 17987-3. This comprises tests for the data link layer, the network layer and the
transport layer.
Part 7:
This part specifies tests to check the conformance of the LIN electrical physical layer implementation
(logical level of abstraction) according to ISO 17987-4.
vi © ISO 2015 – All rights reserved
FINAL DRAFT INTERNATIONAL STANDARD ISO/FDIS 17987-3:2015(E)
1 Road vehicles — Local Interconnect Network (LIN) — Part 3:
2 Protocol specification
3 1 Scope
4 This part of ISO 17987 specifies the LIN protocol including the signal management, frame transfer, schedule
5 table handling, task behaviour and status management and LIN master and slave node. It contains also OSI
6 layer 5 properties according to ISO 14229-7 UDSonLIN based node configuration and identification services
7 (SID: B0 to B8 ) belonging to the core protocol specification.
16 16
8 A node (normally a master node) that is connected to more than one LIN network is handled by higher layers
9 (e.g. the application) not in the scope of this document.
10 2 Normative references
11 The following referenced documents are indispensable for the application of this document. For dated
12 references, only the edition cited applies. For undated references, the latest edition of the referenced
13 document (including any amendments) applies.
14 ISO 17987 (Part 2, 4, 6 and 7), Road vehicles – Local Interconnect Network (LIN)
15 3 Terms, definitions, symbols and abbreviated terms
16 3.1 Terms and definitions
17 For the purposes of this document, the following terms and definitions and those given in ISO 17987-1:2015
18 apply.
19 3.1.1
20 big-endian
21 method of storage of multi-byte numbers with the most significant bytes at the lowest memory addresses
22 broadcast NAD
23 a broadcast NAD is addressing every slave node on LIN
24 3.1.2
25 bus interface
26 the hardware (transceiver, UAR
...
INTERNATIONAL ISO
STANDARD 17987-3
First edition
2016-08-15
Road vehicles — Local Interconnect
Network (LIN) —
Part 3:
Protocol specification
Véhicules routiers — Réseau Internet local (LIN) —
Partie 3: Spécification du protocole
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 .v
Introduction .vi
1 Scope . 1
2 Normative references . 1
3 Terms, definitions, symbols and abbreviated terms . 1
3.1 Terms and definitions . 1
3.2 Symbols . 4
3.3 Abbreviated terms . 4
4 Node concept . 5
4.1 General . 5
4.2 Concept of operation . 6
4.2.1 Master and slave . . 6
4.2.2 Frames . 6
4.2.3 Data transport . 7
5 Protocol requirements . 7
5.1 Signal . 7
5.1.1 Management . 7
5.1.2 Types . 7
5.1.3 Consistency . 7
5.1.4 Packing . 7
5.1.5 Reception and transmission . 8
5.2 Frame . 9
5.2.1 Transfer . 9
5.2.2 Structure . 9
5.2.3 Frame length . . .13
5.2.4 Frame types .14
5.3 Schedule tables .19
5.3.1 General.19
5.3.2 Time definitions .19
5.3.3 Frame slot .19
5.3.4 Schedule table handling .20
5.4 Task behaviour model .20
5.4.1 General.20
5.4.2 Master task state machine .20
5.4.3 Slave task state machine .21
5.5 Status management .23
5.5.1 General.23
5.5.2 Concept .23
5.5.3 Event-triggered frames .23
5.5.4 Reporting to the cluster .23
5.5.5 Reporting within own node.24
6 Node configuration and identification .24
6.1 General .24
6.2 LIN product identification .25
6.2.1 Supplier ID, function ID and variant ID .25
6.2.2 Serial number .25
6.2.3 Wildcards .25
6.3 Slave node model .25
6.3.1 Memory model . .25
6.3.2 Slave node configuration variants .26
6.3.3 Initial node address .27
6.3.4 PDU structure .27
6.3.5 Node configuration handling.29
6.3.6 Node configuration services .29
Annex A (normative) Definition of properties, frame identifiers and various examples .35
Annex B (informative) LIN history and version compatibility .39
Annex C (informative) LIN auto addressing methods .43
Bibliography .44
iv © ISO 2016 – All rights reserved
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.
The procedures used to develop this document and those intended for its further maintenance are
described in the ISO/IEC Directives, Part 1. In particular the different approval criteria needed for the
different types of ISO documents should be noted. This document was drafted in accordance with the
editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives).
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. Details of
any patent rights identified during the development of the document will be in the Introduction and/or
on the ISO list of patent declarations received (see www.iso.org/patents).
Any trade name used in this document is information given for the convenience of users and does not
constitute an endorsement.
For an explanation on the meaning of ISO specific terms and expressions related to conformity assessment,
as well as information about ISO’s adherence to the World Trade Organization (WTO) principles in the
Technical Barriers to Trade (TBT) see the following URL: www.iso.org/iso/foreword.html.
The committee responsible for this document is ISO/TC 22, Road vehicles, Subcommittee SC 31, Data
communication.
A list of all parts in the ISO 17987 series can be found on the ISO website.
Introduction
ISO 17987 (all parts) 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, maste
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.