Linbus 150328104121 Conversion Gate01
Linbus 150328104121 Conversion Gate01
Main Features:
Single master with multiple slaves concept.
Self Synchronization.
Single wire.
Low baud rate.
Low speed application (Less than 20kps).
Max 40 m wire length
The LIN is a SCI/UART-based serial
LIN characteristics :
o The LIN protocol is byte oriented.
o data is sent one byte at a time.
o One byte field contains a start bit (dominant), 8 data bits and a stop bit
(recessive).
o The data bits are sent LSB first.
o In automotive application, the LIN bus is connected between
• smart sensor
• actuators
• Electronic Control Unit (ECU)
LIN characteristics :
VCT
o In November 2002, LIN 1.3 was
released.
o The latest version LIN 2.0 released
in 2003.
Concept of Operation
o The LIN bus is a single master device and multi slave devices.
o The master device contains both a master task and a slave task.
o Each slave device contains only a slave task.
o Communication over the LIN bus is controlled by master task.
LIN Message Frame
o The basic unit of transfer on the LIN bus is the frame.
o Divided into a header and a response.
message header message response
Message
LIN Message Frame
Slave Task:
o According to ID, slave determines: message response
Frame Structure
tHeader_Nom = (N + N + N
Sync_Field Sync_Byte ) • t = 34 • t
PID_Byte Bit Bit
tFrame_Nom =t +t
Header_Nom Response_Nom
LIN Bus Timing
o The master task (in the master node) transmits frame headers
based on a schedule table.
o The schedule table specifies the identifiers for each header and
the interval between the start of a frame and the start of the
following frame.
o The master application may use different schedule tables and
select among them.
Schedule Table
master: 1k
slave: 30k
Rx Bus
UART
Tx
Example capacitances
master: 2.2nF
Physical properties
o On the bus:
• Logical low level (0) is dominant
• Logical high level (1) is recessive.
o Voltage supply (Vsup) for an ECU should be between 7 V and
18 V. Bus Voltage
VBAT
8...18V
recessive
logic ‘1’
60%
controlled slope
~2V/µs
40%
dominant
logic ‘0’
GND
Time
LIN Error Handling
o Each LIN Slave monitors its operating state and creates a status
report.
o The status report is sent periodically to the LIN Master (LIN 2.0).
o Monitoring by error detection mechanisms
• Parity check
• Checksum
o LIN messages detected as corrupt are rejected
o Error handling is not part of the LIN specification and must be
defined separately
LIN Power Management (V2.0)
o It contains "wake up" and "go-to sleep".
o All the slave nodes in an active LIN cluster can be changed
into sleep mode by:
Sending a diagnostic master request frame with the first
data byte equal to zero.
This special use of a diagnostic frame is called a go-to-
sleep-command.
o Slave nodes can automatically enter a sleep mode if the LIN
bus is inactive for more than 4 seconds.
LIN Power Management (V2.0)
o Any node in a sleeping LIN cluster can send a request for wake
up cluster.
o wakeup request is issued by forcing the bus dominant for 250 μs
to 5 ms.
o Every slave node can detect the wake-up request (a dominant
pulse longer than 150 ms) and be ready to listen to bus
commands within 100 ms, measured from the ending edge of
the dominant pulse.
LIN Power Management (V2.0)
o The master node can wake up .
o When the slave nodes are ready, start sending frame headers to
find out the cause of the wake up.
o If the master does not issue headers within 150 ms after
receiving the first wakeup request, then the slave requesting
wakeup may try issuing a second wakeup request (and waiting
for another 150 ms).
LIN Power Management (V2.0)
o If the master still does not respond, the slave issue the wakeup
request and wait 150 ms a third time.
o If there is still no response, the slave must wait for 1.5 seconds
before issuing a fourth wakeup request.
LIN Workflow
LIN Workflow
ECU Tools
(LIN relevant
functions only)
Operating System
Network Configuration
Communication Manager LIN Config. Language
Generator (LCFG)
Bus Analyzer
Hardware Bus Transceiver
(LINSpector)
Level
LIN Physical Layer Spec. LIN Physical Layer Spec.
Vehicle Network
LIN Workflow
o The LIN bus connects a single master device (node) and one or
more slave devices (nodes) together in a LIN cluster.
o The behavior of each node is described by its own node
capability file(NCF).
o The node capability files are inputs to a system-defining tool
o It generates a LIN description file (LDF) that describes the
behavior of the entire cluster.
o The LDF is parsed by a system generator to automatically
generate the specified behavior in the desired nodes.
LIN Workflow
o A node interfaces to the physical
bus wire using a frame
transceiver.
o The frames are not accessed
directly by the application.
o A signal based interaction layer is
added in between.
o A diagnostic interface exist
between the application and the
frame handler, as depicted below.
References
www.vector.com
ESC automotive sessions
http://www.ixxat.com/introduction_lin_en.html
http://www.kvaser.com/zh/about-can/related-protocols-and-standards/46.html
http://www.eeherald.com/section/design-guide/esmod10.html