List of serial protocol decoders included with PicoScope 7, with LIN highlighted

PicoScope 7 decoders - LIN

LIN bus serial protocol decoding - introduction

The growing number of convenience and comfort features in vehicles, coupled with the desire to eliminate point-to-point wiring harnesses associated with non-critical features such as wipers, mirrors, climate control and rain sensors, led to the demand for lower-cost alternatives to CAN for sensor and actuator applications. LIN (Local Interconnect Network) was developed to provide a common sensor/actuator bus standard. Initially introduced in 2000 as an inexpensive serial communication bus, the latest version (2.2A) is now standardized as ISO 17987. LIN uses a simple and low-cost single wire physical layer implementation based on ISO 9141 (as used by the K-line onboard diagnostic standard). This single-wire implementation does make LIN more susceptible to EMC than two-wire buses, which in turn limits the data rate to 20 kb/s and the recommended number of nodes to 16.

Block diagram of a LIN bus master-slave configuration

Master-slave LIN cluster

Although LIN is a clock-scheduled TDMA bus, the only node required to possess an accurate clock is the LIN Master node, which coordinates all communication on the bus. LIN Slave nodes are only permitted to communicate when they are polled by the Master. To minimize cost, every node implements communication control in software, known as a Slave Task, along with a Master Task that is used to coordinate cluster communication in the Master node. Communication is through the repeated execution by the LIN Master of a predetermined LIN Schedule, which contains a list of Frame Slots to be transmitted ensuring deterministic communication. Each Frame Slot consists of a Header sent by the LIN Master inviting a specific LIN Slave to send its data as a Response.

Although the LIN schedule makes the communication cycle rigid, the standard accommodates flexibility by allowing five different frame types: unconditional, event-triggered, sporadic, diagnostic and user-defined. The last two types are application-specific and the first three are used for regular communication, with unconditional frames being the normal method of communication. To minimize energy consumption, LIN offers capabilities to send Slave nodes into a sleep mode and wake them up as required. LIN has rapidly become a very successful standard for simple low-cost data communications within non-critical body and convenience/comfort applications and is now very widely deployed in production vehicles.

Timing diagram template of a LIN bus frame slot

LIN frame slot

For more information on PicoScope's serial decoding capabilities, see Serial bus decoding and protocol analysis - overview.