23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LIN-Bus 45-3<br />

System design<br />

tool<br />

Cluster design<br />

LIN description<br />

file (LDF)<br />

System<br />

generator<br />

Master<br />

Slave 1<br />

LIN<br />

LIN analyzer/<br />

emulator<br />

Node capability<br />

files (NCF)<br />

Slave 2<br />

Off-the-shelf<br />

slave node<br />

Cluster<br />

Debugging<br />

FIGURE 45.2<br />

Workflow with off-the-shelf slave nodes.<br />

45.3 Communication Concept<br />

LIN uses the master–slave principle for the medium access control feature. This principle allows master<br />

and slave nodes to be implemented with minimal hardware resources. The master node is usually implemented<br />

in a control unit or in a gateway that possesses the necessary resources.<br />

The specification also defines a master task and a slave task. The master task initiates every <strong>communication</strong>.<br />

A message will always consist of a header generated by the master task and a response from<br />

the slave task. As the master node should also be able to send messages to the slave nodes, along with<br />

the master task a slave task can also be integrated into the master node (see Figure 45.3) [Grz05]. This<br />

provides the possibility of integrating several slave tasks onto a hardware platform.<br />

The LIN <strong>communication</strong> scheme is based on the producer–consumer model. Therefore, the specification<br />

denotes the transmitter as the “publisher” of the message and the receiver(s) as “subscriber(s).” LIN,<br />

like CAN, uses identifiers to uniquely identify a message. As well as a point-to-point <strong>communication</strong><br />

scheme, multicast and broadcast <strong>communication</strong> schemes are also supported. Figure 45.4 shows the<br />

three possible <strong>communication</strong> relationships:<br />

a. A slave module responds to a master request<br />

b. The master sends a message to one or more slave nodes<br />

c. The master initiates the <strong>communication</strong> between two slave nodes<br />

45.4 Physical Layer<br />

It was a goal of the LIN design to achieve a simplistic wiring topology. The simple single-wire bus<br />

connects to each node in the cluster and switches from ground to battery-level voltage.<br />

The physical layer is based on the ISO 9141 standard [ISO9141]. It consists of the bidirectional singlewire<br />

bus line (LIN) that is connected via a pull-up resistor (R) and a diode to the internal supply voltage<br />

(V SUP ) via a transistor (component of the transceiver) to the ground (GND) (see Figure 45.5a). The diode<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!