Local Interconnect Network

Local Interconnect Network

The LIN-Bus (Local Interconnect Network) is a computer networking bus-system used within current automotive network architectures.The LIN specification is enforced by the LIN-consortium, with the first exploited version being 1.1, released in 1999. Since then the specification has evolved to version 2.1 to meet current networking needs.

The LIN bus is a small and slow network system that is used as a cheap sub-network of a CAN bus to integrate intelligent sensor devices or actuators in today’s cars.Recently LIN may be used also over the vehicle's battery power-line with a special DC-LIN transceiver.

Network topology

LIN is a broadcast serial network comprising one master and many (up to 16) slaves. No collision detection exists, therefore all messages are initiated by the master with at most one slave replying for a given message identifier.

The master is typically a moderately powerful microcontroller, whereas the slaves can be less powerful, cheaper microcontrollers or dedicated ASICs.

Current uses of LIN combine several such networks — usually with 16 nodes — all linked to a CAN upper layer network via their respective masters.

LIN hardware

The LIN specification was designed to allow very cheap hardware-nodes being used within a network. It is "Low cost single-wire implementation based on enhanced ISO 9141." [ [http://www.warwickcontrol.com/support/faqlin.php Warwick Control Technologies - Support ] ] In today’s car networking topologies, either microcontrollers with UART capability or dedicated LIN hardware are used.The microcontroller generates all needed LIN data (protocol ...) (partly) by Software and is connected to the LIN network via a LIN transceiver (simply speaking a level shifter with some add-ons). Working as a LIN node is only part of the possible functionality.The LIN hardware may include this transceiver and works as a pure LIN node without added functionality.

As LIN Slave nodes should be as cheap as possible, they may generate their internal clock by a RC oscillator combination instead of a crystal oscillator (quartz or a ceramic).To ensure the baudrate-stability within one LIN frame, the SYNC field within the header is used.

LIN protocol

The LIN-Master uses one or more predefined scheduling tables to start the sending and receiving to the LIN bus. These scheduling tables contains at least the relative timing, where the message sending is initiated.One LIN Frame consists of the two parts header and response. The header is always sent by the LIN Master, while the response is sent by only one dedicated LIN-Slave.

Transmitted data within the LIN is transmitted serially as eight bit data bytes with one start & stop-bit and no parity. Bit rates vary within the range of 1 kbaud to 20 kbaud.Data on the bus is divided into recessive (logical HIGH) and dominant (logical LOW).The time normal is considered by the LIN Masters stable clock source, the smallest entity is one Bit Time (52 µsec @ 19.2 kbaud).

Two bus states — Sleep-mode and active — are used within the LIN protocol. While data is on the bus, all LIN-nodes are requested to be in active state. After a specified timeout, the nodes enter Sleep mode and will be released back to active state by a WAKEUP frame.This frame may be sent by any node requesting activity on the bus, either the LIN Master following its internal schedule, or one of the attached LIN Slaves being activated by its internal software application.After all nodes are awakened, the Master continues to schedule the next Identifier.

Header

The header consists of three parts:

"BREAK:"The BREAK field is used to activate all attached LIN slaves to listen to the following parts of the header. It consists of one start bit and several dominant bits. The length is at least 11 bit times; standard use as of today are 13 bit times, and therefore differs from the basic data format. This is used to ensure that listening LIN nodes with a main-clock differing from the set bus baud rate in specified ranges will detect the BREAK as the frame starting the communication and not as a standard data byte with all values zero (hexadecimal 0x00).

"SYNC"The SYNC is a standard data format byte with a value of hexadecimal 0x55. LIN slaves running on RC-combinations will use the distance between a fixed amount of rising and falling edges to measure the current bit time on the bus (the master's time normal) and to recalculate the internal baud rate.

"IDENTIFIER"The IDENTIFIER defines one action to be fulfilled by one or several of the attached LIN slave nodes. The network designer has to ensure the fault-free functionality in the design phase (one slave is allowed to send data to the bus in one frame time).

If the identifier causes one "physical" LIN slave to send the response, the identifier may be called a Rx-identifier.If the "master's slave task" sends data to the bus, it may be called Tx-identifier.

Response

The response is sent by one of the attached LIN slave tasks and is divided into data and checksum.

"DATA"The responding slave may send zero to eight data bytes to the bus. The amount of data is fixed by the application designer and mirrors data relevant for the application which the LIN slave runs in.

"CHECKSUM"There are two checksum-models available within LIN - The first is the checksum including the data bytes only (specification up to Version 1.3), the second one includes the identifier in addition (Version 2.0+).The used checksum model is pre-defined by the application designer.

LIN API

The LIN API (Application Programmers Interface) provides a given set of function calls (base is the programming-language C) which have to be implemented within each LIN software driver.Using this pre-defined set of driver routines, all LIN functions may be accessed.

The usage of API-compliant functions eases the implementation of standard software drivers. Also the testing is sped up.

References

[http://www.sorion-group.com/lin_bus.htm LIN]

[http://www.lin-subbus.de/index.php?pid=5&lang=en&sid=123cbd7dcf0765e0b7640934b33984f2 LIN concept]

External links

* [http://www.lin-subbus.org LIN-consortium website]
* [http://e2r.secs.oakland.edu] Oakland University Embedded Engineering Research Laboratory "Please Request Persmission to Enter Website"
* [http://www.atmel.com/dyn/resources/prod_documents/doc1637.pdf] AVR308: Software LIN Slave


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Local Interconnect Network — LIN Logo Das Local Interconnect Network (LIN) ist die Spezifikation für ein serielles Kommunikationssystem, auch LIN Bus genannt. LIN wurde speziell für die kostengünstige Kommunikation von intelligenten Sensoren und Aktoren in Kraftfahrzeugen… …   Deutsch Wikipedia

  • Local Interconnect Network — Bus LIN Le bus LIN (Local Interconnect Network) est un bus système série utilisé dans les véhicules automobiles récents. Les spécifications du bus LIN sont établies par le consortium LIN. La première version a été réalisée en 1999. Les… …   Wikipédia en Français

  • Local interconnect network — Bus LIN Le bus LIN (Local Interconnect Network) est un bus système série utilisé dans les véhicules automobiles récents. Les spécifications du bus LIN sont établies par le consortium LIN. La première version a été réalisée en 1999. Les… …   Wikipédia en Français

  • Local Interconnect Network — El Bus Local Interconnect Network, generalmente abreviado Bus LIN es un sistema usado en las actuales redes de transmisión de datos de automoción. La especificación cumple el consorcio LIN, en su primera versión 1.1, lanzada en 1999. La… …   Wikipedia Español

  • Network switch — A network switch or switching hub is a computer networking device that connects network segments. The term commonly refers to a multi port network bridge that processes and routes data at the data link layer (layer 2) of the OSI model. Switches… …   Wikipedia

  • Network address translation — NAT redirects here. For other uses, see Nat (disambiguation). In computer networking, network address translation (NAT) is the process of modifying IP address information in IP packet headers while in transit across a traffic routing device. The… …   Wikipedia

  • Network Interface Card — 100 MBit/s PCI Ethernet Netzwerkkarte mit RJ45 Buchse Eine Netzwerkkarte (auch NIC für engl. Network Interface Card) ist eine elektronische Schaltung zur Verbindung eines Computers mit einem lokalen Netzwerk zum Austausch von Daten. Ihre primäre… …   Deutsch Wikipedia

  • Network segment — A network segment is a portion of a computer network. The nature and extent of a segment depends on the nature of the network and the device or devices used to interconnect end stations.[1] Contents 1 Ethernet 2 Token ring 3 Token bus …   Wikipedia

  • Network Termination Broad band Access — Das DSL Modem, im Fachjargon „NTBBA“ (Network Termination Broad Band Access, deutsch: Netzabschluss für Breitbandzugang), ist ein Gerät zur Übertragung von Daten über eine DSL Leitung. Das Wort Modem steht begrifflich für die Signalwandlung… …   Deutsch Wikipedia

  • Network Termination Broadband Access — Das DSL Modem, im Fachjargon „NTBBA“ (Network Termination Broad Band Access, deutsch: Netzabschluss für Breitbandzugang), ist ein Gerät zur Übertragung von Daten über eine DSL Leitung. Das Wort Modem steht begrifflich für die Signalwandlung… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”