© ISO 2016 Road vehicles — Local Interconnect Network (LIN) — Part 1 General information and use case definition Véhicules routiers — Réseau Internet local (LIN) — Partie 1 Information générale et déf[.]
Trang 1Road vehicles — Local Interc onnect
Part 1:
Vé icule s ro tiers — Résea Inte net local (LIN)—
Partie 1: Inormation g n rale et définition de s cas d’usage
Fir t edition
2 16-0 -1
Refer ence n mb r
ISO 179 7-1:2 16(E)
Trang 2COPYRIGHT PROTECTED DOCUMENT
© ISO 2016, P blshed in Sw itz rlan
A ll rig hts r eserved Unles otherw ise spe ified, nopar of this p blc tion ma y be r epr od c d or utilz d otherw ise in an form
or b an me ns, ele tr onic or me hanic l, inclu in p oto opying , or postin on the internet or an intranet , w ithout prior
written permis ion Permis ion c n be req esed from either ISO at the ad r es below or ISO’s member bod y in the c u try of
the r eq eser
ISO c pyrig ht ofic
C de Blan on et 8 • C 4 1
CH-1 14 Vernier, Geneva, Sw itzerlan
Trang 3F reword i v
Introduction v
1 Sc ope 1
2 Nor mati ve r eferenc es 1
3 Terms, definitio s and ab r eviated terms 1
3.1 Te msan definitions 1
3.2 A bbreviated te ms 2
4 Conventio s 3
5 Use case o er view and pr inciples 3
5.1 Basic principlesfor use casedefinition 3
5.2 Use case clus e s 3
6 LIN c ommunications system use case definitio 3
6.1 UC 1 LIN mas e task clus e 3
6.1.1 UC 1.1 Generate LIN frame heade 3
6.2 UC 2 LIN sla ve task clus e 4
6.2.1 UC 2.1 Br eak/sync byte field seq enc dete tor 4
6.2.2 UC 2.2 LIN fr ame pr oc s or 4
6.2.3 UC 2.3 Sla ve node config uration 4
6.2.4 UC 2.4 Sla ve e ror status r ep rting 5
6.2.5 UC 2.5 Diag nos ic sla ve node ca a i ties 5
6.3 UC 3 LIN commu ication protocol clus e 6
6.3.1 UC 3.1 Synchr onization 6
6.3.2 UC 3.2 Che ksum 6
6.3.3 UC 3.3 Sla ve bitr ate dete tion 6
6.4 UC 4 LIN physical la ye clus e 7
6.4.1 UC 4.1 Pe formanc in non-o eration sup ly v ltag e rang e 7
6.4.2 UC 4.2 L s of sup ly v ltag e 7
6.5 UC 5 LIN networ k manag ement 7
6.5.1 UC 5.1 LIN clus e networ k manag ement
7 Biblog raphy 8
Trang 4ISO (he Int ernational Org nization for Stan ardization) is a worldwidefede ation of national s an ards
b dies (ISO membe b dies) The work of pr p ring Int ernational Stan ards is normaly car ied out
through ISO t ech ical committ ees Each membe b dy int er st ed in a subje t for w hich a t ech ical
committ ee has be n es a lshed has the right t o be r pr sent ed on that committ ee Int ernational
org nizations, g ove nmental an non-g ove nmental, in laison with ISO, also take part in the work
ISO cola orat es closely with the Int ernational Ele trot ech ical C mmis ion (IEC) on al matt ers of
ele trot ech ical s an ardization
The proc d r s used t o develo this document an those int en ed for it furthe maint enanc ar
desc ibed in the ISO/IEC Dir ctives, Part 1 In p rticular the dife ent a pro al c it eria ne ded for the
dife ent ty es of ISO document should be not ed This document was draft ed in ac ordanc with the
edit orial rules of the ISO/IEC Dir ctives, Part 2 ( e www.iso.org dir ctives)
A tt ention is drawn t o the p s ibi ity that some of the element of this document ma be the subje t of
p t ent right ISO shal not be held r sponsible for identifying any or al such p t ent right Detais of
any p t ent right identified d ring the develo ment of the document wi be in the Introd ction an / r
on the ISO ls of p t ent de larations r c ived ( e www.iso.org p t ent )
Any trade name used in this document is information given for the convenienc of use s an does not
cons itut e an en orsement
For an ex lanation on the meaning of ISO spe ific t erms an ex r s ions r lated to conformity as es ment,
as wel as information a out ISO’s adhe enc to the Wor ld Trade Org nization (WTO) principles in the
Te h ical Bar ie s to Trade (TBT) se the folowing URL: www.iso.org/ iso/for word.html
The committ ee r sponsible for this document is ISO/TC 2 , R oad vehicles , Subcommitt ee SC 3 , Data
c ommu ic atio
A l s of al p rt in theISO 1 98 se iescan be foun on the ISO websit e
Trang 5ISO 1 9 7 (al p rt ) spe if ies the use cases, the commu ication prot ocol an the phy sical la e
r q ir ment of an in-vehicle communication network cal ed L cal Int er onne t Network (LIN)
The LIN prot ocol as pro osed is an aut omotive focused low spe d unive sal asynchronous r c ive
transmitt er (UAR T) b sed network Some of the key charact eris ics of the LIN prot ocol ar
signal-b sed communication, sched le ta le b sed frame trans e , mast er/sla e commu ication with e ror
det ection, node configuration an dia nos ic se vic transp rtation
The LIN prot ocol is for low-cos aut omotive control a plcations, for ex mple, do r mod le an air
con ition sy st ems It se ves as a communication infras ructur for low-spe d control a plcations in
vehicles b pro iding:
— signal-b sed communication t o ex chang e information between a plcations in dife ent nodes;
— bitrat e sup ort rom 1 k bit/s t o 2 k bit/s;
— det erminis ic sched le ta le-b sed frame commu ication;
— network manag ement that wakesup and put the LIN clust er int o sle p s at e in a controled man e ;
— s atus manag ement that pro ides e ror han l ng an e ror signal ng;
— transp rt la e that al ow s larg e amount of data t o be transp rt ed ( uch as dia nos ic se vic s);
— spe ification of how t o handle dia nos ic se vic s;
— ele trical phy sical la e spe ifications;
— node desc iption languag e desc ibing pro e ties of sla enodes;
— network desc iption f ile desc ibing beha iour of commu ication;
— a plcation pro ramme ’s int erfac
ISO 1 9 7 (al part ) is b sed on the o en sy st ems int er on e tion (OSI) Basic R efe enc Model as
spe if ied in ISO/IEC 749 -1 w hich s ructur s commu ication sy st ems int o seven la e s
The OSI model s ructur s data commu ication int o seven la e s caled (t op down) a plic atio la e
(la e 7), pr s entatio la e , s es s ion la e , tra s port la e , net work la e , data lnk la e an p ys ic al la e
(la e 1) A subset of these la e s is used in ISO 1 9 7 (al part )
ISO 1 9 7 (al part ) dis inguishes betwe n the se vic s pro ided b a la e t o the la e a o e it an
the prot ocol used b the la e t o sen a mes ag e betwe n thepe r entities of that la e The r ason for
this dis inction is t o make the se vic s, espe ialy the a pl cation la e se vic s an the transp rt la e
se vic s, r usa le also for othe ty es of networksthan LIN In this wa , the prot ocol is hid en from the
se vic use an it is p s ible t o chang e the prot ocol if spe ial sy st em r q ir ment deman it
ISO 1 9 7 (al p rt ) pro ides al document an r fe enc s r q ir d t o sup ort the implementation of
the r q ir ment r lat ed t o the folowing
— ISO 1 987-1: This p rt pro ides an o e view of the ISO 1 9 7 (al p rt ) an s ructur along with
the use case def initions an a common set of r sour es (definitions, r fe enc s) for use b al
subseq ent part
— ISO 1 9 7- 2: This p rt pe if ies the r q ir ment r lat ed t o the transp rt prot ocol an the network
la e r q ir ment t o transp rt he PDU of a mes ag e between LINnodes
— ISO 1 9 7-3: This part spe if ies the r q ir ment for implementations of the LIN prot ocol on the
lo ical level of a s raction Hardwar -r lat ed pro e ties ar hid en in the def ined cons raint
Trang 6— ISO 1 9 7-4: This p rt spe if ies the r q ir ment for implementations of active hardwar
comp nent w hich ar ne es ary t o int er on e t the prot ocol implementation
— ISO/TR 1 9 7-5: This p rt spe ifies the LIN a pl cation pro ramme s int erfac (API) an the
node conf iguration an identif ication se vic s The node conf iguration an identif ication se vic s
ar spe ified in the API an def ine how a sla e node is con gur d an how a sla e node uses the
identif ication se vic
— ISO 1 9 7-6: This part spe ifies t es s t o che k the conformanc of the LIN prot ocol implementation
ac ording t o ISO 1 9 7- 2 an ISO 1 9 7-3 Thiscomprises t es s for the data l n layer, the network
la e an the transp rt la e
— ISO 1 9 7-7 : This part spe ifies t es s t o che k the conformanc of the LIN ele trical phy sical la e
implementation (lo ical level of a s raction)ac ording t o ISO 1 98 -4
Trang 7Road vehicles — Local Interc onnect Networ k (LIN) —
Part 1:
This document gives an o e view of the s ructur an the p rtitioning of ISO 1 9 7 (al part ) In ad ition,
it outlnes the use case whe e the ISO 1 9 7 (al p rt ) wi be used The terminolo y defined in this
document is common for al LIN comm unication systems an is used throughout ISO 1 9 7 (al p rt )
This document has be n es a l shed in orde t o def ine the use cases for LIN
2 Normati ve r eferences
The folowing document ar r fe r d t o in the t ext in such a wa that some or al of their cont ent
cons itut es r q ir ment of this document F or dat ed r fe enc s, only the edition cit ed a ples F or
un at ed r fe enc s, the lat es edition of the r fe enc d document ( inclu ing any amen ment ) a ples
ISO 1 9 7-4, Ro d vehicles — L c al Inte c on ec t Net work (LIN) — Part 4: Elec tric al Ph s ic al L ye (EPL)
s pec ific atio 12 V/24 V
3 Terms, definitions and abbreviated terms
3.1 Ter ms and definitions
F or the purposes of this document, the folowing t ermsand definitions a ply
ISO an IEC maintain t erminolo ical data ases for use in s an ardization at the folowing ad r s es:
— IECEle tro edia: a aia le at ht p:/ www.ele tro edia.org
— ISO Onlne brow sing plat orm:a ai a le at ht p:/ www.iso.org o p
3.1.1
bre k field
entity that consis s of a dominant p rt, the br ak an a r c s ive p rt, the br ak del mit er
3.1.2
byte field
1 bit entity, w hich consis s of a dominant s art bit, 8 bit p y lo d (leas significant bit firs ) an a
r c s ive st op bit
3.1.3
checksum
frame ve if ication b t e
3.1.4
frame
entity that consis s of the heade an the PDU inclu ing pay lo d and a check s um (3.1.3)b t e at the en
Trang 8LIN master
uniq e node in a LIN network that ched les the frames (3.1.4) an conne t ed t o a b ck b ne network
3.1.6
LIN slave
node that se ves the communication r q es s of a LIN mas te (3.1.5)
3.1 7
master task
task in the LIN mas te (3.1.5)sen ing al heade son the bus ac ording t o schedule ta le (3.1.1 )
3.1.8
node addres for dia nostic
NAD
dia nos ic ad r s as igned t o each LIN sla e (3.1.6)node
3.1 9
protected identifier
8 bit entity containing the 6 bit frame identif ie (leas signif icant bit )t og ethe with two p rity bit
3.1.1
s hedule table
l s of frames (3.1.4) spe ifies the frames, their orde an time dis anc s t o each othe used for
commu ication on the LINbus
3.1.1
slave task
task in a LIN node r sponsible for l st ening t o al heade s on the bus an r acting ac ordingly, i.e eithe
publ sh a frame r sp nse or subsc ibe t o it (or ignor it)
3.1.12
sy c b te field
b t e with f ix ed v lue locat ed betwe n the br ak field (3.1.1) an the protec ted identifie (3.1 9)
3.2 A bbreviated terms
API a plcation pro ramme s int erfac
LDF LIN desc iption f ile
OSI o en sy st ems int er onne tion
PID prot ect ed identifie
UDS unif ied dia nos ic se vic s
Trang 94 Conventions
ISO 1 9 7 (al p rt ) is b sed on the conventions spe ified in the OSI S rvic C nventions ( e
ISO/IEC 1 7 1) as they a ply for phy sical la e , data l n la e , network an transp rt prot ocol an
dia nos ic se vic s
5 Use case ov rview and principles
5.1 Basic pr inciples for use case definition
Basic principles ha e be n es a lshed as a guidelne t o def ine the use cases:
— pointing out eatur s w hich sup ort usual o e ating modes of networked sy st ems in OEM’s prod ct ;
— pointing out featur s w hich sup ort futur ex e t ed pro e ties of networked sy st ems in OEM’ s
prod ct ;
— comp ring the contras betwe n normal o e ating fu ctionalties in the a senc of e rors and l
mp-home o e ation fu ctionalties in the pr senc of e rors
5.2 Use case cluster
This subclause definesuse case clust ers of the LIN communications sy st em
Ta le 1 pro ides an o e view of the main LIN use case clust ers A main LIN use case clust er ma ha e
one or mor use case def initions
Table 1 — LIN communicatio s sy stem main use case clust er
LIN master task T e p rpose of these use cases is the des ription of LIN specif ic frame
han ling in the LINmast er node b sed on s hed le ta les comprising frame
order an timing
LIN slave task T e p rpose of these use cases is the des ription of main tasks slave nodes
Besides the frame proces ing, other tasks are reporting of er or to the LIN
network, the reconf iguration of slave nodes an dia nostic capa ilities
LIN commu ication prot ocol T e p rpose of these use cases is the des ription of the protocol-driven
property rang of systems an ap lications when using LIN for their int ernal
commu ication
LIN p y sical layer T e p rpose of these use cases is the des ription of the electrical p ysical
layer properties when inter on ecting the lo ical lin s of the distribut ed LIN
E Us by electricalhardware components inside a vehicle
LIN network mana ement T e p rpose of these use cases is the des ription of the LINnetwork
mana ement
6 LIN c ommunications system use case definition
6.1 UC 1 LIN master task cluster
6.1.1 UC 1.1 Generate LIN frame he der
Ta le 2 spe if ies the use case of the g ene ation of the LIN frame heade
Trang 10Table 2 — Generate LIN frame he der
Go l R un the commu ication ac ording to the s hed le ta le
Use case in ut Sched le frame is d e for transportation
Use case outp t Generating cor ect he der
Brief des ription T e master task is responsible for g nerating cor ect he der , i.e deciding which frame
shal b sent an for maintaining the cor ect iming b tween frames
Clas if ication Man at ory
6.2 UC 2 LIN slave task cluster
6.2.1 UC 2.1 Br eak/sync byte field sequenc e detector
Ta le 3 spe if ies the use case of the br ak /sync b t e f ield seq enc det ect or
Table 3 — Bre k/sy c byte field seq ence detector
Use case name Bre k /sy c byt e f ield seq ence det ect or
Go l Monitoring for presence of bre k /sy c byte f ield
A ctor LIN slave task in a slave node
Use case in ut Operationalmode
Use case outp t Detecting the b gin ing of a new frame
Brief des ription T e detector is req ired to b sy chronized at the b gin ing of the protected identif ier of
a frame an b a le t o receive the protect ed identif ier f ield cor ectly
Clas if ication Man at ory
6.2.2 UC 2.2 LIN frame proc es or
Ta le 4 spe if ies the use case t o transmit an r c ive LIN frame r sponses
Table 4 — LIN frame proces or
Use case name LIN frame proces or
Go l Transmit ing the frame response when it is the p blisher an receiving the frame
response when it is the subs rib r
Use case in ut Be in ing of new frame
Use case outp t Transmitt ed data from an to the node
Brief des ription T e task evaluates the protected identif ier (slave node: protected identif ier is received,
mast er node: prot ect ed identif ier is taken from s hed le slot def inition), decides if the frame
is Rx, Tx or if the node is not ad res ed In case of Tx /Rx, the response data an checksum
is transmit ed/received In case of not ad res ed, the response is ignored
Clas if ication Man at ory
6.2.3 UC 2.3 Slave node c onfig uration
Ta le 5 spe if ies the use case t o pe form a slave node configuration