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.

Controller Area Network 31-3<br />

TABLE 31.1 Practical CAN Bus<br />

Length for ISO 11898 Compliant<br />

Transceivers and Standard Bus<br />

Line Cables<br />

Bit Rate<br />

Bus Length (m)<br />

1.Mbps 30<br />

800.kbps 50<br />

500.kbps 100<br />

250.kbps 250<br />

125.kbps 500<br />

62,5.kbps 1000<br />

20.kbps 2500<br />

10.kbps 5000<br />

Source: CiA, CAN physical layer, CiA<br />

(CAN in Automation), Nuremberg,<br />

Germany, 2001.<br />

• SAE J2411 Single Wire—An unshielded single wire is defined as<br />

the bus medium and the <strong>communication</strong> takes place with a nominal<br />

data rate of 33.3.kbps. The standard defines up to 32 nodes per<br />

network. The main application area of this standard is in comfort<br />

electronics networks in vehicles.<br />

• ISO 11992 Point-to-Point—This standard defines a point-to-point<br />

connection for use mainly in vehicles with trailers. The nominal<br />

data rate is 125.kbps with a maximum bus line length of 40.m.<br />

The most popular CAN physical layer protocol, available in most<br />

of the CAN transceivers, is the one defined in the ISO 11898-2 standard.<br />

The maximum achievable bus line length in a CAN network,<br />

represented in Table 31.1, depends on<br />

• The loop delays of the connected bus nodes and the delay of the<br />

bus lines<br />

• The differences of the relative oscillator tolerance between nodes<br />

• The signal amplitude drop due to the series resistance of the bus<br />

cable and the input resistance of bus nodes<br />

The CAN physical layer provides a two-state medium, where the bus can be either dominant or<br />

recessive. Whenever two nodes simultaneously transmit bits of opposite value, then all nodes should<br />

read dominant. Usually the dominant state is associated with the binary value 0 and recessive with the<br />

binary value 1.<br />

The physical layer has a number of built-in fault-tolerant features. CAN provides resilience against a<br />

variety of physical faults such as one open wire, the short-circuit of the two signal wires, or even one of<br />

the signal wires shorted to ground or power. Notice that not all CAN controllers are able to implement<br />

these features, by switching from differential signaling to single-line signaling, at higher bus speeds. The<br />

CAN differential electrical signaling mode is very resistant to electromagnetic interference (EMI) since<br />

interference will tend to affect each side of a differential signal almost equally. However, the differential<br />

electrical signaling does not fully prevent EMI to affect the signal on the bus in such a way that one or<br />

more nodes on the bus will simultaneously read a different bit value from that which was transmitted.<br />

A node detecting the error (possibly the transmitter) will invalidate the message by transmitting an<br />

error frame. The number and the nature of EMI-induced transmission faults and the ability of the physical<br />

layer to prevent them depends on several factors such as the cable type and length, the number of<br />

nodes, the transceiver type, and the EMI shielding.<br />

31.2.2 Data Link Layer<br />

The data link layer of CAN includes the services and protocols required to assure a correct transfer<br />

of information from one node to another.<br />

There are four types of message on CAN: data frames, error frames, remote frames, and overload<br />

frames. The latter two types of messages are rarely used in real application and, thus, will not be<br />

described further.<br />

The CAN protocol supports two message frame formats, the only essential difference being in<br />

the length of the identifier. The CAN base frame format supports a length of 11 bits for the identifier<br />

(formerly known as CAN 2.0 A), and the CAN extended frame format supports a length of 29 bits for the<br />

identifier (formerly known as CAN 2.0 B).<br />

Data on the bus are sent in data frames which consist of up to 8 bytes of data plus a header and a<br />

footer. The frame is structured as a number of fields, as depicted in Figure 31.1.<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!