Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview
200x
Growth expectations:
3 10 LIN nodes per vehicle 1.2 billion LIN nodes per year world-wide
Current specification
LIN Specification Package V1.2 (Nov 17, 2000)
Overview
Sub-bus as an extension to CAN to provide connection to local network clusters Low-cost single-wire implementation
(less expensive than CAN but not as reliable as CAN)
Overview
7 6 5 4 3 2 1
Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer
7 Application Layer 6 Presentation Layer 5 4 3 2 1 Session Layer Transport Layer Network Layer Data Link Layer Physical Layer
Conversion of data formats Task synchronization, buffers, connection setup and monitoring, access rights control Address conversion, routing, segmentation Setup of logical connection, transport protocol Transmission security, frame setup, error management Electrical / mechanical characteristics: Transmission medium, wiring, connectors, encoding, signals
Physical Layer
Overview
Frames (1)
Frames (2)
Frame Format
Header
Response
0
Start Bit
8 Data Bits
1
Stop Bit
Overview
Synch Break
Synch
ID
Synchronization field
Synch Break
Synch
ID
contains the information for clock synchronization consists of the pattern 0x55
Synch Break
Synch
ID
Identifier bits
Response
Response
Overview
LIN bus
only the master control unit contains a master task slave tasks are contained in all control units
Master Task In-frame Space Checksum Field 1 byte Data Field 2, 4 or 8 bytes Inter-frame space / break
Slave Task
Master Task
has the control over the whole bus communication serves as the reference for synchronization sets the schedule sends the header of each message monitors the data bytes and the checksum byte receives the wake-up signal from a slave node when the bus is in Sleep Mode
Slave Task
waits for the Synch Break Field synchronizes on the Synch Field depending on ID sent by the Master Task, sends response (publisher), receives response (subscriber), or does none of both sends wake-up signal when bus is in Sleep Mode and it needs to transmit data
Overview
Command Frames
Extended Frames
Extended Frames
allow the embedding of user-defined message formats and future LIN formats into the LIN protocol without violating the current LIN specification 2 types of extended frames:
User-defined extended frame (ID-Field = 0xFE) Frame reserved for future LIN extension (ID-Field = 0xBF)
Overview
Sleep mode can be terminated by the slave task of any node by sending a Wake-Up Signal:
TWUSIG
Bus Sleep
Training: Local Interconnect Network (LIN)
TUDEL
Wake-up delimiter
Wake-up procedure
Wake-up procedure
Sleep Mode slave task sends wake-up signal Waiting for frame from master task master task sends first frame time-out TTOBRK slave task repeats wake-up signal max. 2 times
Bus Awake
Overview
Error types
Bit Error
Bit Error
Error description
The bit on the bus is different from the one that was transmitted.
Method of detection
Sending unit monitors the bus while transmitting.
Fault confinement
This error is detected by: - the master task in the master node, - the slave task in the slave node while reading back their own transmissions.
Checksum Error
Checksum Error
Error description
The checksum calculated over all received data bytes does not match the received checksum byte.
Method of detection
The sum of the inverted modulo-256 sum over all received data bytes and the checksum byte does not result in 0xFF.
Fault confinement
This error is detected by: - the slave task in the master node when reading data from the bus, - the slave task in the slave node while reading data from the bus.
Identifier-Parity Error
Identifier-Parity Error
Error description
The parity identifier bits do not match the calculated values.
Method of detection
Calculation of parity bits from received identifier and comparation to received parity bits.
Fault confinement
This error is detected by: - the master task in the master node while reading back its own transmission, - the slave task in the slave node while reading from the bus.
Slave-Not-Responding Error
Slave-Not-Responding Error
Error description
The transmission of a LIN frame is not fully completed within the time frame specified in the schedule.
Method of detection
This error is detected while reading from the bus when a slave task expects data to be transmitted.
Fault confinement
This error is detected by: - the slave task in the master node when expecting or reading data from the bus, - the slave task in the slave node while reading from the bus only when this slave expects a message from another slave.
Inconsistent-Synch-Field Error
Inconsistent-Synch-Field Error
Error description
Synch field is different from the pattern 0x55.
Method of detection
Slave task detects the edges of the Synch Field outside the given tolerance.
Fault confinement
This error can only be detected by the slave task in the slave node.
Error causes
Error causes
Local disturbance of ground potential Local disturbance of supply voltage Global electric disturbance of the bus signal Unsynchronized time base
Overview
Warning
e.g. OSEK COM yes max. 1000m 2 (or 1) ISO 11898 / 11519