SlideShare a Scribd company logo
1 of 28
1
Submitted by:-
Sonu kumar suman
Reg.no-U15EE029
Batch:-2015-19
2
LIN protocol description
The Need for LIN
3
(a) Multimedia applications, calling for protocols providing high
speed, high bandwidth, and even wireless interconnection,
like MOST, D2B, or Bluetooth;
(b) Emerging safety critical applications in chassis and power
train (x-by wire) calling for a fault tolerant, dependable
protocol,like TTP/C, byteflight, TT-CAN or others;
(c) Conventional body and power train applications, mainly using
CAN;
(d) Mechatronic type applications such as smart sensors and
actuator, or even complex ECUs with simple communications
needs, being addressed by low-end protocols like LIN, TTP/A,
J-1850, and quite a few other OEM or Tier-I in-house
protocols.
Typical LIN ApplicationsTypical LIN Applications
4
•Door/window/seat:
Mirror,Central ECU,
Mirror, Switch, Window
Lift,
Seat Control Switch,
Door Lock, etc.
Roof:
(high amount of wiring)
Rain Sensor, Light Sensor,
Light Control, Sun Roof
…
(Rain Sensor needs to be
interrogated every 10-20ms)
Seat:
many Seat Position Motors,
Occupancy Sensor,
Control Panel
Steering Wheel:
(very many controls are going to be
positioned on the steering wheel)
Cruise Control, Wiper,
Turning Light, …
Optional: Climate Control,
Radio, Telephone, etc.
Climate:
many Small Motors
Control Panel
7
LIN Concept
• Technical Solution
– Low cost single-wire implementation (enhanced ISO 9141)
– Speed up to 20Kbit/s (limited for EMI-reasons)
– Single Master / Multiple Slave Concept
→ No arbitration necessary
– Low cost silicon implementation based on common UART/SCI
interface hardware
→ Almost any Microcontroller has necessary hardware on chip
– Self synchronization without crystal or ceramics resonator in the
slave nodes
→ Significant cost reduction of hardware platform
– Guaranteed latency times for signal transmission
(Predictability)
Master / Slave Protocol
 Master
 has control over the whole Bus and Protocol
The master controls which message at what time is
to be transferred over the bus. It also does the error
handling.
To accomplish this the master
 sends Sync Break
 sends Sync Byte
 sends ID-Field
 monitors Data Bytes and Check Byte, and evaluates them on
consistance
 receives WakeUp Break from slave nodes when the bus is
inactive and they request some action.
 serves as a reference with it’s clock base (stable clock
necessary)
8
Master/Slave Protocol
 Slave
 Is one of 2-16 Members on the Bus and receives or
transmits Data when an appropriate ID is sent by the
master.
 Slave snoops for ID.
 According to ID, slave determines what to do.
 either receive data
 or transmit data
 or do nothing.
 When transmitting the slave
 sends 1, 2, 4, or 8 Data Bytes
 sends Check-Byte
 The node serving as a master can be slave, too!
9
Data Transmission
11
time
Master Task
time
Slave Task
next synch field
inter-frame
spacing
synch
field
2 byte 1 byte
response
spacing
identifier
field
block paritydata
master control unit
slave task
master task
slave control unit
slave task
slave control unit
slave task
polling
13 bit
Break
$55
Next 13 bit break
Message Frame
 Synch Byte:
 Specific Pattern for Determination of Time Base
(Determination of the time between two rising edges)
 A Synch Byte precedes any Message Frame
 ID-Field:
 Message Identifier: Incorporates Information about the sender,
the receiver(s), the purpose, and the Data field length.
Length 6 Bit.
4 classes of 1/2/4/8 Data Bytes. The length coding is in the
2 LSB of the ID-Field. Each class has 16 Identifiers. A total of 64
Message Identifiers are possible.
 2 Parity Bits protect this highly sensitive ID-Field.
12
Identifier
 The identifier field is sent by the master node to all LIN nodes
 This identifier normally contains one of 64 different values
and includes 2 parity bits in the 8 bit data
 The identifier is normally associated with a collection of
signals that are subsequently transmitted on the LIN bus
 In a specific case this can initiate SLEEP mode in the LIN slave
nodes – in this case no further data is transmitted on the LIN
bus
13
synch break
≥ 13 bit
synch field identifier
message header
LIN Message Frame
14
0 to 8 data fields checksum
message response
synch break
≥ 13 bit
synch field identifier
message header
byte field
SCI / UART format
start stop
0 1 2 3 4 5 6 7
LSB
LIN Communication - Data
from Slave to Master
15
data byte data byte checksum
synch fieldidentifier synch break
Slave Node
Slave Task Trans
Slave Task Rec
Master Node
LIN Master Task
Slave Task Trans
Slave Task Rec
quartz
• Single-master / multi-slave protocol
• Time triggered, no arbitration
• Identifier denotes message content, not physical address
• Multicast messages
• Baud rate synchronization through protocol
• Power saving sleep mode
LIN Communication - Data
from Master to Slave(s)
16
Master Node
LIN Master Task
Slave Task Trans
Slave Task Rec
quartz
Slave Node A
Slave Task Trans
Slave Task Rec
Slave Node B
Slave Task Trans
Slave Task Rec
LIN Communication - Data
from Slave to Slave
17
Slave Node A
Slave Task Trans
Slave Task Rec
Slave Node B
Slave Task Trans
Slave Task Rec
Master Node
LIN Master Task
Slave Task Trans
Slave Task Rec
quartz
LIN Message Frame
18
0 to 8 data fields checksum
message response
synch break
≥ 13 bit
synch field identifier
message header
Synchronisation
frame
Synchronisation field
Identifier byte
Message
Frame Synchronisation (1)
19
Initial conditions: +/- 4% baud rate accuracy relative the
transmitting source
A standard transmission of data will require matched send and
receiver baud rates
Stop bit
Start-Bit
Standard UART byte
A normal UART with <4% baud rate error
will read back the data correctly
Frame Synchronisation (2)
20
Initial conditions: +/- 15% baud rate accuracy relative the the LIN
master transmitting the synchronisation frame
A synch break must be at least 13 bit periods in duration to allow for
this initial variation in oscillator accuracy within the LIN slave
Start-Bit
Normal UART message
Master sends a break (13 bits period duration or more)
A slow LIN slave may see fewer bit periods
1 2 11
1 10 13
Bit-Synchronization
 A start bit transition to a low logic level (dominant) indicates
a start of a byte, least significiant first and completing with a
logic high level (resessive) bit to indicate the STOP bit
21
Stop-BitStart-Bit
Data is sampled in the middle of the bit field:
Sample Clock
Bit Sampling
22
Bit-Synchronisation
23
Stop-BitStart-Bit
Sample Clock
After recognition of a Low level in the start bit, the data is sampled at a rate
16 times the bit rate expected. The middle 3 samples must all agree for an
error free reception of the data.
A stop bit is expected after 1 start bit and 8 data bits in a typical message
Taking account of Ground-Shift
24
The detection point for data transitions can be affected by voltage references. Ground shift
can change this reference by a significant amount, affecting the bit timing of the data
Data timing
Sensevoltage
Available bit sampling zone can reduce worst case bit width to around 40us at 20k baud
This affects the overall baud rate tolerance required for safe LIN communications
25
LIN Physical Interface
VBAT
8...18V
GND
recessive
logic ‘1’
dominant
logic ‘0’
60%
40%
Bus Voltage
Time
UART
Rx
Tx
Electronic Control Unit
master: 1kΩ
slave: 30kΩ
Bus
controlled slope
~2V/µs
Example capacitances
master: 2.2nF
slave: 220pF
Note:
The LIN specification refers to the ECU connector voltages !
signal latencies
 generation latency
the time between an event input (e.g. a button pressed) and the signal
being placed in a buffer, ready for transmission
 consumption latency
the time from when a signal has been received from the network into a
buffer until it has been read into the subscribing application and some
action has taken place (e.g. a motor starts moving).
 maximum age
This is the maximum allowed time between a user action in the
publishing node until the subscribing node is actually carrying out an
action.
27
Message latency
28
new value
available for
read call
completion
of frame
trans-
mission
start of
frame trans-
mission
new value
available for
trans-
mission
notional
generation
generation
latency
(signal)
notional
consump-
tion
timeconsumption
latency
(signal)
message
length
(frame)
scheduling
latency
(frame)
notification
latency
(frame)
LIN availability time (signal)
maximum age (signal)
Message latency across a
network
29
notional
generatio
n
new value
available
for trans-
mission
new value
available
for read
call
start of
frame
trans-
mission
completio
n of
frame
trans-
mission
generation
latency
(signal)
timeconsumption
latency
(signal)
message
length
(frame)
scheduling
latency
(frame)
notification
latency
(frame)
LIN availability time (signal)
maximum age (signal)
new
value
available
for trans-
mission
new value
available
for read
call
start of
frame
trans-
mission
completio
n of
frame
trans-
mission
message
length
(frame)
scheduling
latency
(frame)
notification
latency
(frame)
Gateway
latency
(signal)
CAN availability time (signal)
notional
consump-
tion
Variables Scheduling
30
Sub Schedule Table
Main
Schedule Table
Sub Schedule Table
Sub
Schedule Table
Alternate
Schedule Table
Msg A Msg EMsg AMsg DMsg AMsg CMsg B Msg B Msg F
Decision
Msg EMsg AMsg G Msg F
31
32

More Related Content

What's hot

Controller area network
Controller area networkController area network
Controller area networksanaz nouri
 
Controller area network (CAN bus) ppt
Controller area network (CAN bus) pptController area network (CAN bus) ppt
Controller area network (CAN bus) pptRaziuddin Khazi
 
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan KController Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan KHariharan Krishnan
 
Controller area network -ppt
Controller area network -pptController area network -ppt
Controller area network -pptvelichetiphani
 
Local Interconnect Network
Local Interconnect NetworkLocal Interconnect Network
Local Interconnect NetworkJabez Winston
 
Automotive bus technologies
Automotive bus technologiesAutomotive bus technologies
Automotive bus technologiesRadwa Tarek
 
The flex ray protocol
The flex ray protocolThe flex ray protocol
The flex ray protocolWissam Kafa
 
Can Transport Protocol : UDS
Can Transport Protocol : UDS Can Transport Protocol : UDS
Can Transport Protocol : UDS Kapil Thakar
 
AUTOSAR 403 CAN Stack
AUTOSAR 403 CAN StackAUTOSAR 403 CAN Stack
AUTOSAR 403 CAN StackRania Nabil
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)nassim unused
 
In‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look ForwardIn‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look ForwardRealTime-at-Work (RTaW)
 

What's hot (20)

Controller area network
Controller area networkController area network
Controller area network
 
Controller area network (CAN bus) ppt
Controller area network (CAN bus) pptController area network (CAN bus) ppt
Controller area network (CAN bus) ppt
 
Control Area Network
Control Area NetworkControl Area Network
Control Area Network
 
UDS PPT
UDS PPTUDS PPT
UDS PPT
 
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan KController Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
 
Controller area network -ppt
Controller area network -pptController area network -ppt
Controller area network -ppt
 
Local Interconnect Network
Local Interconnect NetworkLocal Interconnect Network
Local Interconnect Network
 
Automotive bus technologies
Automotive bus technologiesAutomotive bus technologies
Automotive bus technologies
 
CAN- controlled area network
CAN- controlled area networkCAN- controlled area network
CAN- controlled area network
 
Can bus
Can busCan bus
Can bus
 
The flex ray protocol
The flex ray protocolThe flex ray protocol
The flex ray protocol
 
FlexRay
FlexRayFlexRay
FlexRay
 
Embedded Systems in Automotive
Embedded Systems in Automotive Embedded Systems in Automotive
Embedded Systems in Automotive
 
Can Protocol For Automobiles
Can Protocol For AutomobilesCan Protocol For Automobiles
Can Protocol For Automobiles
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
 
Can Transport Protocol : UDS
Can Transport Protocol : UDS Can Transport Protocol : UDS
Can Transport Protocol : UDS
 
AUTOSAR 403 CAN Stack
AUTOSAR 403 CAN StackAUTOSAR 403 CAN Stack
AUTOSAR 403 CAN Stack
 
What is AUTOSAR Communiation Stack
What is AUTOSAR Communiation StackWhat is AUTOSAR Communiation Stack
What is AUTOSAR Communiation Stack
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)
 
In‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look ForwardIn‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look Forward
 

Similar to LIN protocol description

Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication InterfaceSandesh Agrawal
 
AN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGAN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGTotal Project Solutions
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhVijayKaran7
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart socSatyam Sharma
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptxusamamaqsod1
 
WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars Salah Amean
 
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols
5-LEC- 5.pptxTransport Layer. Transport Layer ProtocolsZahouAmel1
 
Micro c lab8(serial communication)
Micro c lab8(serial communication)Micro c lab8(serial communication)
Micro c lab8(serial communication)Mashood
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)Kruti Niranjan
 

Similar to LIN protocol description (20)

Real time-embedded-system-lec-06
Real time-embedded-system-lec-06Real time-embedded-system-lec-06
Real time-embedded-system-lec-06
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication Interface
 
UNIT 2b.pptx
UNIT 2b.pptxUNIT 2b.pptx
UNIT 2b.pptx
 
AN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGAN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACING
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshh
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart soc
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx
 
Tutorial
TutorialTutorial
Tutorial
 
Osi model
Osi modelOsi model
Osi model
 
WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
 
UART
UARTUART
UART
 
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
 
USART
USARTUSART
USART
 
4 ql uart_psb_ds_revc
4 ql uart_psb_ds_revc4 ql uart_psb_ds_revc
4 ql uart_psb_ds_revc
 
Micro c lab8(serial communication)
Micro c lab8(serial communication)Micro c lab8(serial communication)
Micro c lab8(serial communication)
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
 
Canbus
CanbusCanbus
Canbus
 
Can overview
Can overviewCan overview
Can overview
 
transport layer
transport layertransport layer
transport layer
 

Recently uploaded

ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 

Recently uploaded (20)

ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 

LIN protocol description

  • 1. 1 Submitted by:- Sonu kumar suman Reg.no-U15EE029 Batch:-2015-19
  • 3. The Need for LIN 3 (a) Multimedia applications, calling for protocols providing high speed, high bandwidth, and even wireless interconnection, like MOST, D2B, or Bluetooth; (b) Emerging safety critical applications in chassis and power train (x-by wire) calling for a fault tolerant, dependable protocol,like TTP/C, byteflight, TT-CAN or others; (c) Conventional body and power train applications, mainly using CAN; (d) Mechatronic type applications such as smart sensors and actuator, or even complex ECUs with simple communications needs, being addressed by low-end protocols like LIN, TTP/A, J-1850, and quite a few other OEM or Tier-I in-house protocols.
  • 4. Typical LIN ApplicationsTypical LIN Applications 4 •Door/window/seat: Mirror,Central ECU, Mirror, Switch, Window Lift, Seat Control Switch, Door Lock, etc. Roof: (high amount of wiring) Rain Sensor, Light Sensor, Light Control, Sun Roof … (Rain Sensor needs to be interrogated every 10-20ms) Seat: many Seat Position Motors, Occupancy Sensor, Control Panel Steering Wheel: (very many controls are going to be positioned on the steering wheel) Cruise Control, Wiper, Turning Light, … Optional: Climate Control, Radio, Telephone, etc. Climate: many Small Motors Control Panel
  • 5. 7 LIN Concept • Technical Solution – Low cost single-wire implementation (enhanced ISO 9141) – Speed up to 20Kbit/s (limited for EMI-reasons) – Single Master / Multiple Slave Concept → No arbitration necessary – Low cost silicon implementation based on common UART/SCI interface hardware → Almost any Microcontroller has necessary hardware on chip – Self synchronization without crystal or ceramics resonator in the slave nodes → Significant cost reduction of hardware platform – Guaranteed latency times for signal transmission (Predictability)
  • 6. Master / Slave Protocol  Master  has control over the whole Bus and Protocol The master controls which message at what time is to be transferred over the bus. It also does the error handling. To accomplish this the master  sends Sync Break  sends Sync Byte  sends ID-Field  monitors Data Bytes and Check Byte, and evaluates them on consistance  receives WakeUp Break from slave nodes when the bus is inactive and they request some action.  serves as a reference with it’s clock base (stable clock necessary) 8
  • 7. Master/Slave Protocol  Slave  Is one of 2-16 Members on the Bus and receives or transmits Data when an appropriate ID is sent by the master.  Slave snoops for ID.  According to ID, slave determines what to do.  either receive data  or transmit data  or do nothing.  When transmitting the slave  sends 1, 2, 4, or 8 Data Bytes  sends Check-Byte  The node serving as a master can be slave, too! 9
  • 8. Data Transmission 11 time Master Task time Slave Task next synch field inter-frame spacing synch field 2 byte 1 byte response spacing identifier field block paritydata master control unit slave task master task slave control unit slave task slave control unit slave task polling 13 bit Break $55 Next 13 bit break
  • 9. Message Frame  Synch Byte:  Specific Pattern for Determination of Time Base (Determination of the time between two rising edges)  A Synch Byte precedes any Message Frame  ID-Field:  Message Identifier: Incorporates Information about the sender, the receiver(s), the purpose, and the Data field length. Length 6 Bit. 4 classes of 1/2/4/8 Data Bytes. The length coding is in the 2 LSB of the ID-Field. Each class has 16 Identifiers. A total of 64 Message Identifiers are possible.  2 Parity Bits protect this highly sensitive ID-Field. 12
  • 10. Identifier  The identifier field is sent by the master node to all LIN nodes  This identifier normally contains one of 64 different values and includes 2 parity bits in the 8 bit data  The identifier is normally associated with a collection of signals that are subsequently transmitted on the LIN bus  In a specific case this can initiate SLEEP mode in the LIN slave nodes – in this case no further data is transmitted on the LIN bus 13 synch break ≥ 13 bit synch field identifier message header
  • 11. LIN Message Frame 14 0 to 8 data fields checksum message response synch break ≥ 13 bit synch field identifier message header byte field SCI / UART format start stop 0 1 2 3 4 5 6 7 LSB
  • 12. LIN Communication - Data from Slave to Master 15 data byte data byte checksum synch fieldidentifier synch break Slave Node Slave Task Trans Slave Task Rec Master Node LIN Master Task Slave Task Trans Slave Task Rec quartz • Single-master / multi-slave protocol • Time triggered, no arbitration • Identifier denotes message content, not physical address • Multicast messages • Baud rate synchronization through protocol • Power saving sleep mode
  • 13. LIN Communication - Data from Master to Slave(s) 16 Master Node LIN Master Task Slave Task Trans Slave Task Rec quartz Slave Node A Slave Task Trans Slave Task Rec Slave Node B Slave Task Trans Slave Task Rec
  • 14. LIN Communication - Data from Slave to Slave 17 Slave Node A Slave Task Trans Slave Task Rec Slave Node B Slave Task Trans Slave Task Rec Master Node LIN Master Task Slave Task Trans Slave Task Rec quartz
  • 15. LIN Message Frame 18 0 to 8 data fields checksum message response synch break ≥ 13 bit synch field identifier message header Synchronisation frame Synchronisation field Identifier byte Message
  • 16. Frame Synchronisation (1) 19 Initial conditions: +/- 4% baud rate accuracy relative the transmitting source A standard transmission of data will require matched send and receiver baud rates Stop bit Start-Bit Standard UART byte A normal UART with <4% baud rate error will read back the data correctly
  • 17. Frame Synchronisation (2) 20 Initial conditions: +/- 15% baud rate accuracy relative the the LIN master transmitting the synchronisation frame A synch break must be at least 13 bit periods in duration to allow for this initial variation in oscillator accuracy within the LIN slave Start-Bit Normal UART message Master sends a break (13 bits period duration or more) A slow LIN slave may see fewer bit periods 1 2 11 1 10 13
  • 18. Bit-Synchronization  A start bit transition to a low logic level (dominant) indicates a start of a byte, least significiant first and completing with a logic high level (resessive) bit to indicate the STOP bit 21 Stop-BitStart-Bit Data is sampled in the middle of the bit field: Sample Clock
  • 20. Bit-Synchronisation 23 Stop-BitStart-Bit Sample Clock After recognition of a Low level in the start bit, the data is sampled at a rate 16 times the bit rate expected. The middle 3 samples must all agree for an error free reception of the data. A stop bit is expected after 1 start bit and 8 data bits in a typical message
  • 21. Taking account of Ground-Shift 24 The detection point for data transitions can be affected by voltage references. Ground shift can change this reference by a significant amount, affecting the bit timing of the data Data timing Sensevoltage Available bit sampling zone can reduce worst case bit width to around 40us at 20k baud This affects the overall baud rate tolerance required for safe LIN communications
  • 22. 25 LIN Physical Interface VBAT 8...18V GND recessive logic ‘1’ dominant logic ‘0’ 60% 40% Bus Voltage Time UART Rx Tx Electronic Control Unit master: 1kΩ slave: 30kΩ Bus controlled slope ~2V/µs Example capacitances master: 2.2nF slave: 220pF Note: The LIN specification refers to the ECU connector voltages !
  • 23. signal latencies  generation latency the time between an event input (e.g. a button pressed) and the signal being placed in a buffer, ready for transmission  consumption latency the time from when a signal has been received from the network into a buffer until it has been read into the subscribing application and some action has taken place (e.g. a motor starts moving).  maximum age This is the maximum allowed time between a user action in the publishing node until the subscribing node is actually carrying out an action. 27
  • 24. Message latency 28 new value available for read call completion of frame trans- mission start of frame trans- mission new value available for trans- mission notional generation generation latency (signal) notional consump- tion timeconsumption latency (signal) message length (frame) scheduling latency (frame) notification latency (frame) LIN availability time (signal) maximum age (signal)
  • 25. Message latency across a network 29 notional generatio n new value available for trans- mission new value available for read call start of frame trans- mission completio n of frame trans- mission generation latency (signal) timeconsumption latency (signal) message length (frame) scheduling latency (frame) notification latency (frame) LIN availability time (signal) maximum age (signal) new value available for trans- mission new value available for read call start of frame trans- mission completio n of frame trans- mission message length (frame) scheduling latency (frame) notification latency (frame) Gateway latency (signal) CAN availability time (signal) notional consump- tion
  • 26. Variables Scheduling 30 Sub Schedule Table Main Schedule Table Sub Schedule Table Sub Schedule Table Alternate Schedule Table Msg A Msg EMsg AMsg DMsg AMsg CMsg B Msg B Msg F Decision Msg EMsg AMsg G Msg F
  • 27. 31
  • 28. 32

Editor's Notes

  1. enhanced ISO 9141 means basically: sender Level Low / High: 20% / 80% UBAT receiver Low /High: 40% / 60% UBAT Slew rate 1-2 V/µs
  2. Bei mehreren Netzwerken addieren sich die Latenzzeiten.