You are here: Home / RTLWS 1999-2017 / RTLWS Submitted Papers / 
2024-04-26 - 16:11

Dates and Events:

OSADL Articles:

2023-11-12 12:00

Open Source License Obligations Checklists even better now

Import the checklists to other tools, create context diffs and merged lists


2023-03-01 12:00

Embedded Linux distributions

Results of the online "wish list"


2022-01-13 12:00

Phase #3 of OSADL project on OPC UA PubSub over TSN successfully completed

Another important milestone on the way to interoperable Open Source real-time Ethernet has been reached


2021-02-09 12:00

Open Source OPC UA PubSub over TSN project phase #3 launched

Letter of Intent with call for participation is now available



Real Time Linux Workshops

1999 - 2000 - 2001 - 2002 - 2003 - 2004 - 2005 - 2006 - 2007 - 2008 - 2009 - 2010 - 2011 - 2012 - 2013 - 2014 - 2015

14th Real Time Linux Workshop, October 18 to 20, 2012 at the Department of Computer Science, University of North Carolina at Chapel Hill

Announcement - Call for papers (ASCII) - Hotels - Directions - Agenda - Paper Abstracts - Presentations - Registration - Abstract Submission - Sponsors - Gallery

SocketCAN and UART Drivers Based LIN-bus Support for Linux

Pavel Pisa, Czech Technical University in Prague
Rostislav Lisovy, Czech Technical University in Prague
Oliver Hartkopp, Volkswagen Group Research
Michal Sojka, Czech Technical University in Prague

The LIN-bus (Local Interconnect Network) is a vehicle bus standard or computer networking bus-system used within current automotive network architectures to control slave peripherals for which CAN bus is too expensive or complex. LIN has evolved from common asynchronous serial transmission protocol and UART hardware by standardization of a message frame format.

Presented slLIN protocol driver is implemented as a TTY line discipline. An extended version of UART hardware is usually found on automotive oriented MCUs. But striving on common Linux UART/serial line discipline API allows to deliver portable solution without a requirement to implement specialized driver for each architecture/serial interface hardware. slLIN implementation portability has been tested on PC serial port and MPC5200 hardware against third party standard LIN solution.

LIN frames and configuration is accessible as a SocketCAN network device to applications. LIN is usually used in combination with CAN which interconnect LIN master nodes and use of the CAN address networking family allows to combine slLIN with SocketCAN provided broadcast manager (BCM) and CAN gateway.

The article presents even construction of a simple logic level converter from serial port to the LIN bus and set of utilities for testing and configuration of LIN network. A LIN schedule table is implemented by CAN BCM setup for LIN interface. A response cache is implemented in the slLIN protocol driver to allow fast responses and is configured by CAN messages with dedicated CAN IDs above LIN address range.