Академический Документы
Профессиональный Документы
Культура Документы
Network
(CAN)
Contents
1
Objective......................................................................................................... 3
Introduction..................................................................................................... 3
Communication............................................................................................... 4
4.1
Communication protocol...........................................................................4
4.2
Message arbitration.................................................................................. 4
4.3
Message frames........................................................................................ 5
4.4
Error detection.......................................................................................... 5
Application Examples...................................................................................... 7
Conclusion....................................................................................................... 7
References....................................................................................................... 7
1 Objective
Objective of this section is to explain Controller Area Network (CAN)
fundamentals along with communication protocols, Message frames and its
characteristics.
2 Introduction
Control Area Network (CAN) is an International Standardization Organization
(ISO) defined serial communications bus originally developed for the automotive
industry to replace the complex wiring harness with a two-wire bus. The CAN bus
was originally developed by German equipment manufacture ROBERT BOSCH in
1995. In the beginning CAN mainly use by the automotive industry, but
nowadays it is used in a variety of applications, like industrial automation,
medical, transportation and so on.
CAN is multi master, message broadcast system that specifies a maximum
signalling rate of 1 megabit per second (bps). In a CAN network, many short
messages like temperature or RPM are broadcast to the entire network, which
provides for data consistency in every node of the system. CAN provide an
inexpensive durable network that helps multiple CAN devices communicate with
one another. CAN not only provides the physical media for the communication, it
also provides all other mechanisms necessary for addressing data packets
(messages), avoiding data collisions, detecting failures in the transmitted data,
automatic repetition of disturbed messages and ensuring data consistency over
all nodes in a network.
In this report CAN standard, fundamentals, operating principles, applications and
the benefit will be discussed in detailed. (1)(4)
4 Communication
4.1 Communication protocol
The CAN communication protocol is a carrier-sense, multiple-access protocol with
collision detection and arbitration on message priority (CSMA/CD+AMP). CSMA
means that each node on a bus must wait for a prescribed period of inactivity
before attempting to send a message. CD+AMP means that collisions are
resolved through a bit-wise arbitration, based on a pre-programmed priority of
each message in the identifier field of a message. The higher priority identifier
always wins bus access.(1)
SOF (Start Of frame) indicates the beginning of a message with a dominant (logic 0)
bit, and is used to
Identifier - The Standard CAN 11-bit identifier (29 bit identifier for extended CAN) indicate the
message priority. The lower the binary value, the higher its priority
RTR (Remote Transmission Request) serves to differentiate a remote frame from a
data frame. A dominant (logic 0) RTR bit indicates a data frame. A recessive (logic 1)
RTR bit indicates a remote frame.
IDE (Identifier Extension) allows differentiation between standard and extended frame
r0Reserved bit (for possible use by future standard amendment)
DLC (Data Length Code)The 4-bit data length code (DLC) contains the number of bytes of
data being transmitted.
Data contains 0 to 8 bytes of data.
CRC (cyclic redundancy check) The 16-bit (15 bits plus delimiter) contains the checksum for
error detection
ACKEvery node receiving an accurate message overwrites this recessive bit in the original
message with a dominate bit, indicating an error-free message has been sent. Should a
receiving node detect an error and leave this bit recessive, it discards the message and the
sending node repeats the message after rearbitration. In this way, each node acknowledges
(ACK) the integrity of its data. ACK is 2 bits, one is the acknowledgment bit and the second is
a delimiter.
More reliably, e.g., fewer plug-in connectors that might cause errors.
6
Disadvantage
7 Application Examples
Vehicles
Industrial Machineries
Railway systems
Building Automation
Marine
Medical
8 Conclusion
CAN is ideally suited in applications requiring a large number of short messages
with high reliability in rugged operating environments. Because CAN is message
based and not address based, it is especially well suited when data is needed by
more than one location and system-wide data consistency is mandatory.
Fault confinement is also a major benefit of CAN. Faulty nodes are automatically
dropped from the bus, which prevents any single node from bringing a network
down, and ensures that bandwidth is always available for critical message
transmission. This error containment also allows nodes to be added to a bus
while the system is in operation, otherwise known as hot-plugging.
The many features of the CAN transceivers make them ideally suited for the
many rugged applications to which the CAN protocol is being adapted. Among
the applications finding solutions with CAN are automobiles, trucks, motorcycles,
snowmobiles trains, buses, airplanes, agriculture, construction, mining, and
marine vehicles.
9 References
1. Anon, (2015). [online] Available at:
http://www.ti.com/lit/an/sloa101a/sloa101a.pdf [Accessed 6 Aug. 2015].
2. Ni.com, (2015). Controller Area Network (CAN) Overview - National
Instruments. [online] Available at: http://www.ni.com/white-paper/2732/en/
[Accessed 6 Aug. 2015].
3. Anon, (2015). [online] Available at: https://www.cs.standrews.ac.uk/files/2007-8-1%20Lecture3.pdf [Accessed 6 Aug. 201
4. Esd-electronics-usa.com, (2015). Controller Area Network (CAN) Introduction. [online] Available at: http://www.esd-electronics-