23.03.2017 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LIN-Bus 45-9<br />

45.5.8 Frame Types<br />

There are three different ways of transmitting frames on the LIN bus: unconditional, event-triggered,<br />

and sporadic frames. Diagnostic frames are also supported.<br />

45.5.8.1 Unconditional Frame<br />

Unconditional frame transfer signals may use the IDs 0x0–0x3B (0–59). Every frame can have only one<br />

transmitter (publisher) but one or several receivers (subscribers). The setup of the frame is described<br />

in the LIN description file. Unconditional frames can be transferred, as shown in the relationships of<br />

Figure 45.4.<br />

45.5.8.2 Event-Triggered Frame<br />

The unconditional frame can be considered as the normal LIN frame. LIN2.0 also defines a so-called<br />

event-triggered frame. Event-triggered frames improve the response time of the master–slave system by<br />

mapping unconditional frames with rare-event data of multiple slaves into one event-triggered frame.<br />

This reduces the cycle time of the time schedule table because the master does not have to poll the slave<br />

nodes individually. Several frame IDs can be defined as “event triggered” within the network. If the<br />

master requests such an “event-triggered” frame, all corresponding slaves will begin to transmit their<br />

data. However, corresponding slave nodes only provide their frame response when the values in their<br />

data fields have changed. But, multiple slaves can provide a frame response to a single event-triggered<br />

frame. To enable the master to recognize which slave node has responded, the first byte of the associated<br />

unconditional frames have to contain their frame ID.<br />

As more than one slave can answer, by updating data in the frame, it is possible that a collision can<br />

occur on the bus line. The master recognizes such a collision situation and resolves it by switching automatically<br />

to the so-called collision resolving schedule table. The table will, at a minimum, contain the<br />

associated unconditional frames and it will be a member of schedule table set.<br />

45.5.8.3 Sporadic Frame<br />

The sporadic frames were introduced in the LIN version 2.0 for better utilization of bandwidth. This<br />

method provides some dynamic behavior to the otherwise static LIN protocol. They are in principle<br />

placeholders in the time schedule table in which the master can send several different messages that<br />

carry signals that seldom change, for example, commands. The master sends the message only if a signal<br />

carried by this message is changed. Hence the time slot can remain empty. The assignment of the unconditional<br />

frames to the sporadic frame takes place in the LIN description file. Figure 45.8 shows a simple<br />

example. In slot three, the master can transfer either the unconditional frame “Master Command” or<br />

“Outdoor Temperature” or it can leave the slot empty.<br />

Slot 1 Slot 2 Slot 3 Slot 4<br />

Master<br />

command<br />

Window<br />

status<br />

Mirror<br />

status<br />

Empty<br />

slot<br />

Keyboard<br />

status<br />

Outdoor<br />

temperature<br />

FIGURE 45.8<br />

Principle of sporadic frames.<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!