Embedded and systems
Local Interconnect Network (LIN)
LIN is a low-cost single-wire bus that lets a control unit connect simple sensors and actuators such as window lifters, mirrors or fans. One master sets the schedule, the slaves respond.
Also known as: LIN bus, ISO 17987
How LIN works
LIN follows the master-slave principle, called commander and responder in newer terminology. The master works through a fixed schedule table and sends a header for each message. The responsible slave answers with the data. Collisions therefore cannot happen.
At up to 20 kbit/s, LIN is much slower than CAN, but it needs only one signal wire and simple, cheap electronics. A LIN network is often a sub-bus that a CAN control unit operates as master.
LIN in testing
- Simulating the master to test a single sensor or actuator as a slave
- Recreating missing slaves with residual bus simulation to test a master control unit
- Checking fault cases: missing responses, wrong checksums, interference on the line
The communication is described in an LDF (LIN description file), from which tests and simulations can largely be derived automatically.