Local Interconnect Network Training. Local Interconnect Network Training. Overview



Similar documents
LIN (Local Interconnect Network):

In-Vehicle Networking

Introduction to. LIN (Local Interconnect Network)

Introduction to RACE FUELS Hans-Christian von der Wense Munich, Germany

LOW COST AUTOMOTIVE NETWORKS. Local Interconnect Network (LIN)

LIN (Local Interconnected Network)

LIN. Specification Package. Revision 2.0. This specification is provided on an "AS IS" basis only and cannot be the basis for any claims.

In-Vehicular Communication Networking Protocol

CAN Specification 2.0, Part B page 1 PART B. CAN in Automation, Am Weichselgarten 26, D Erlangen

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev

LOCAL INTERCONNECT NETWORK (LIN)

Introduction to LIN. Webinar

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Distributed Real-Time Systems (TI-DRTS) Track 2. CAN-BUS Introduction. Version Ref. VECTOR application note & Motorola note

Comparison of FlexRay and CAN-bus for Real-Time Communication

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

DeviceNet Communication Manual

Process Control and Automation using Modbus Protocol

Protocols for Wired and Wireless Networks in Vehicle Systems

Dolphin In-Circuit programming Updating Firmware in the field

Understanding SAE J1939. by Simma Software, Inc.

Software User Guide UG-461

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Tutorial.

Serial Communications

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

Vorlesung Kommunikationsnetze Fieldbus Systems

Tutorial Introduction

Based on Computer Networking, 4 th Edition by Kurose and Ross

Serial Communications

RPDO 1 TPDO 1 TPDO 5 TPDO 6 TPDO 7 TPDO 8

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

RS-485 Protocol Manual

Data Link Layer Overview

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

SMS based remote control system

How To Understand The Layered Architecture Of A Network

Standardized software components will help in mastering the. software should be developed for FlexRay were presented at

Ring Local Area Network. Ring LANs

Road Vehicles - Diagnostic Systems

UART-based LIN-bus Support for Linux with SocketCAN Interface

CMA5000 SPECIFICATIONS Gigabit Ethernet Module

Bluetooth in Automotive Applications Lars-Berno Fredriksson, KVASER AB

OSI Layers in Automotive Networks

Automotive Communication Network Trends

COMMUNICATION NETWORKS WITH LAYERED ARCHITECTURES. Gene Robinson E.A.Robinsson Consulting

Vehicle data acquisition using CAN By Henning Olsson, OptimumG

SIM CARD PROTOCOLS. This paper attempts in broad strokes to outline the construction of these protocols and how they are used.

SafeSPI - Serial Peripheral Interface for Automotive Safety

Technical Support Bulletin Nr.18 Modbus Tips

Introduction to Routing and Packet Forwarding. Routing Protocols and Concepts Chapter 1

Real-time Ethernet with TwinCAT network variables

Unit of Learning # 2 The Physical Layer. Sergio Guíñez Molinos sguinez@utalca.cl

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Chapter 4. Medium Access Control. IN2P3 Octobre 2002 Jean-Pierre Thomesse

2.1 CAN Bit Structure The Nominal Bit Rate of the network is uniform throughout the network and is given by:

Development of Scalable CAN Protocol

Implementing MOD bus and CAN bus Protocol Conversion Interface

A Security Evaluation and Internal Penetration Testing Of the CAN-bus

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

Consult protocol, Nissan Technical egroup, Issue 6

The OSI Model and the TCP/IP Protocol Suite PROTOCOL LAYERS. Hierarchy. Services THE OSI MODEL

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Industrial Networks & Databases

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 5, September

Supporting ZDOs with the XBee API

USER GUIDE EDBG. Description

Safety and Security Features in AUTOSAR

Positioning Controllers. Communication Guide. Document ID: rel4054

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

Brunata Optuna W (171)

TD-03011E. Identifier Usage in CANopen Networks

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

Setting up a Local Interconnect Network (LIN) using dspace MicroAutoBox 1401/1501 Simulink Blocks

Fast Ethernet and Gigabit Ethernet. Computer Networks: Fast and Gigabit Ethernet

ISO11783 a Standardized Tractor Implement Interface

027,21$1'&21752/5,1* 237,&$/

DS1621 Digital Thermometer and Thermostat

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

DS1621 Digital Thermometer and Thermostat

FlexRay A Communications Network for Automotive Control Systems

LOCAL INTERCONNECT NETWORK (LIN)

DS2401 Silicon Serial Number

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

CAM-VGA100 User Manual

Quectel Cellular Engine

Communication Systems Internetworking (Bridges & Co)

Virtual KNX/EIB devices in IP networks

LOCAL INTERCONNECT NETWORK (LIN)

Universal Flash Storage: Mobilize Your Data

Fast Ethernet and Gigabit Ethernet. Networks: Fast Ethernet 1

EBERSPÄCHER ELECTRONICS automotive bus systems. solutions for network analysis

Embedded Systems Design Course Applying the mbed microcontroller

Industrial Networks & Databases

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

PMC-XM-DIFF & EADIN/MODBUS Virtex Design

CSE331: Introduction to Networks and Security. Lecture 6 Fall 2006

Serial Communications / Protocol in AirTest Products

Transcription:

Overview Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

History and expectation Local Interconnect Network Training Time 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) LIN Consortium initiated (5 car manufacturers, 1 semiconductor supplier, 1 tool provider) http://www.lin-subbus.org 2000 1998 1999 First specification draft released

Typical example for LIN in automobiles (1)

Typical example for LIN in automobiles (2)

Comparison of automotive bus systems

Overview Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

Technical features (1) 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) Low-cost silicon implementation based on common UART/SCI interface hardware (almost any microcontroller has necessary hardware on chip) Single-master / Multiple-slave concept (no arbitration is necessary)

Technical features (2) Self-synchronization without quartz or ceramics resonators in the slave node (significant cost reduction of hardware platform) Data rates of up to 20 kbit/sec (limited by the EMI of single-wire transmission) Recommended Bit Rates: Slow : 2.400 bit/sec Medium: 9.600 bit/sec Fast : 19.200 bit/sec Guaranteed latency times for signal transmission Hot plug-in / plug-out

Overview Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

The ISO/OSI reference model (1) Local Interconnect Network Training 7 6 5 4 3 2 1 Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer All People Seem To Need Data Processing

The ISO/OSI reference model (2) Local Interconnect Network Training 7 6 5 4 3 2 1 Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Applications, operating system 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

The ISO/OSI reference model and LIN Local Interconnect Network Training 2 Data Link Layer 1 LLC- Logical Link Control is concerning with Message Filtering and Recovery Management MAC - Medium Access Control is supervised by a management entity called Fault Confinement Physical Layer Acceptance Filtering, Recovery Management, Time Base Synchronization, Message Validation Data Encapsulation / Decapsulation, Error Detection, Error Signaling, Serialization / Deserialization Bit Timing, Bit synchronization, Line Driver / Receiver

Overview Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

Frames (1) 01110001010100 11110101010101 01010101000111 Frame: Envelope for transmission data 3 different frame types : Message Frame: used for transmission of regular data Command Frame: used for software updates, network configuration and diagnostic purposes Extended Frame: allows the embedding of user-defined message formats and future LIN formats into the current LIN protocol without violating the LIN specification

Frames (2) 01110001010100 11110101010101 01010101000111 Frame Format Header Response Byte Field Format: transmission with LSB first 0 8 Data Bits 1 Start Bit Stop Bit

Overview Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

Message Frames: Header (1) Local Interconnect Network Training Synchronization Break field Synch Break Synch ID identifies the start of a message frame consists of 2 parts: dominant bus level with a minimum duration of T SYNBRK (13 bits) recessive bus level with a minimum duration of T SYNDEL (1bit)

Message Frames: Header (2) Local Interconnect Network Training Synchronization field Synch Break Synch ID contains the information for clock synchronization consists of the pattern 0x55

Message Frames: Header (3) Local Interconnect Network Training Identifier field (1) Synch Break Synch ID contains the identifier, length and parity of the frame 0 ID0 ID1 ID2 ID3 ID4 ID5 P0 P1 1 Identifier bits Length control ID parity bits

Message Frames: Header (4) Local Interconnect Network Training Identifier field (2) ID0 - ID5 64 (2 6 ) identifiers divided into 4 subsets of 16 identifiers with 2, 4 or 8 data bytes P0 - P1 are the parity check bits of identifier

Message Frames: Response Local Interconnect Network Training Response Response contains the data field and the checksum data field consists of 2, 4 or 8 bytes checksum field (1 byte) contains the inverted modulo-256 sum across all data bytes calculated using add with carry

Overview Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

LIN communication concept: Master task vs. Slave tasks Master task vs. Slave tasks master control unit master task slave control unit slave control unit slave task slave task slave task LIN bus only the master control unit contains a master task slave tasks are contained in all control units

LIN communication concept: Frame timing Synch Break 13 bit (min) Synch Field 1 byte Identifier Field 1 byte next Synch Break Master Task In-frame Space Data Field 2, 4 or 8 bytes Checksum Field 1 byte Inter-frame space / break t Slave Task t

LIN communication concept: Master 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

LIN communication concept: Slave Task 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 Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

Command Frames Command Frames (1) are regular 8-byte Message Frames are used to broadcast general command requests for service purposes from the master to all bus participants 2 types of Command Frames: Master request frame (ID-Field = 0x3C): to send commands and data from the master to the slave node Slave response frame (ID-Field = 0x7D): to trigger one slave node to send data to the master node

Command Frames / Sleep Mode Command Command Frames (2) type of command is specified in the first data byte of a command frame values of 0x00 to 0x7F for command type are reserved Example: Sleep Mode Command (command type 0x00): Master Request Frame which is used to broadcast the request for transition to sleep mode to all bus nodes

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) the identifier can be followed by an arbitrary number of LIN bytes fields

Overview Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

Transition to and from Sleep Mode Local Interconnect Network Training Transition to and from Sleep Mode Slave nodes go to Sleep Mode after: reception of a Sleep Mode Command from the master node or a time-out (T TIME_OUT = 25000 T BIT ) in the case that the sleep command message was corrupted Sleep mode can be terminated by the slave task of any node by sending a Wake-Up Signal: T WUSIG Bus Sleep T UDEL 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 T TOBRK slave task repeats wake-up signal max. 2 times no response to 3 wake-up signals Bus Awake Transmission of wake-up signals suspended for T T3BRK

Overview Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

Error types Possible error types Bit Error Checksum Error Identifier-Parity Error Slave-Not-Responding Error Inconsistent-Synch Field Error

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 Local Interconnect Network Training 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 Local Interconnect Network Training 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 Local Interconnect Network Training History and introduction Technical features The ISO/OSI reference model and LIN Frames Message Frames Communication concept of LIN Command Frames and Extended Frames Sleep mode and wake-up signal Error and exception handling CAN vs. LIN

Warning LIN low-cost CAN!!!

CAN vs. LIN (1) Data rate max. 1 MBaud max. 20 kbaud Master/Slave multi-master master/slave Data security CRC code simple checksum Acknowledgement yes no Node number up to 100 up to 16

CAN vs. LIN (2) Latency time not guaranteed deterministic Frame scheduling no yes Tx on event yes no Error correction retransmission none Error prevention bus-off mechanism none

CAN vs. LIN (3) Upper SW layers e.g. OSEK COM LIN API Protocol in HW yes no Bus length max. 1000m max. 40m Number of wires 2 (or 1) 1 ISO standard ISO 11898 / 11519 no