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.

45-8 Industrial Communication Systems<br />

The two parity bits for the ID are calculated using the following equations:<br />

P0 = ID0 ⊕ ID1⊕ ID2 ⊕ ID4<br />

(45.2)<br />

P1 = ID1⊕ ID3 ⊕ ID4 ⊕ ID5 (45.3)<br />

45.5.4 Data Field<br />

The data field is the first part of the response. The response can also be generated in the master by the<br />

slave task and can consist of one to eight data bytes. As described above, the ID determines the number<br />

of bytes unless another length is indicated. The signals are transmitted in the data bytes, starting with<br />

the least significant bit (LSB). A data byte consists of a start bit, eight data bits, and a stop bit. A parity<br />

bit is not transferred.<br />

45.5.5 Checksum<br />

There is a distinction in LIN between a so-called classic checksum and an enhanced checksum. The<br />

LIN protocol version 1.3 uses the classic checksum. LIN version 2.x uses the enhanced checksum and<br />

includes the PID. The enhanced checksum is only used for the IDs 0x0–0x3B (0–59).<br />

45.5.6 Frame Length<br />

The minimum and the maximum header and frame length are specified in the LIN specification. The<br />

maximum values are 140% of the minimal times. An under run of the minimum times is not possible<br />

because they exactly correspond to at least the necessary bit times. Table 45.3 summarizes these<br />

parameters.<br />

45.5.7 time-Triggered Data Transmission<br />

Modern automotive networking solutions favor the time-triggered model for message scheduling so<br />

that the overall timing of messages in the system can be deterministic. In a time-triggered network,<br />

messages are transmitted against a predefined message schedule table and there is a notion of a global<br />

clock to ensure proper time synchronization. The FlexRay network is an example of such an automotive<br />

time-triggered network. Since LIN is a subnetwork that can be used in conjunction with larger networks<br />

in a system, LIN supports time-triggered operations.<br />

LIN controls the time-triggered transmission by using schedule tables, which are implemented in<br />

the master. Thus, the system can be deterministic, that is, the time when a message is transmitted can<br />

be exactly predicted and guarantees the periodicity of signals. The schedule tables define a time slot for<br />

every scheduled frame, as are described in the LDF by the system designer.<br />

Table 45.3 Nominal and Maximum<br />

Transmission Time of Headers and Frames<br />

Name<br />

T Header_Nominal<br />

T Response_Nominal<br />

T Frame_Nominal<br />

T Header_Maximum<br />

T Response_Maximum<br />

T Frame_Maximum<br />

34 T Bit<br />

10*(N Data + 1) T Bit<br />

T Header_Nominal + T Response_Nominal<br />

1.4*T Header_Nominal<br />

1.4*T Response_Nominal<br />

T Header_Maximum + T Response_Maximum<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!