CAN (Controller Area Network)
CAN (Controller Area Network)
CAN is one of the most dominating bus protocols. This protocol has found wide
acceptance in automotive in-vehicle applications as well as many non-automotive
due to its low cost, high performance.
CAN communication:
Each node should wait for random amount of time to gain the access over bus.
CSMA/CD is avoiding collisions. Even though collisions occur do AMP
(Arbitration Message Priority) quickly for reducing that. AMP is a bit wise
mechanism.
The lowest binary value having highest priority in CAN. These priorities are
established by system designer, we can’t change these priorities.
Bus conflict also done by bit-wise mechanism.
CAN standardization:
CAN hardware implementations cover the lower two layers of the OSI reference
model while various software solutions (higher layer protocols) cover the layers three to
seven.
We have 4 layers in CAN,
1. Application layer
2. Object layer.
3. Transport layer.
4. Physical layer.
Object layer and transport layer functions are same as the data link layer in OSI
(Open system Interconnection) model. The data link layer is having LLC
(Logical Link Layer) and MAC (Medium Access Control). LLC is used to know
how the data should be transmitted. MAC defines to whom the data should be
give.
Application Layer:
Application layer is decides what we will actually transmit
Object Layer :
o Message Filtering
o Message and Status Handling
TransferLayer:
The Transfer Layer represents the kernel of the CAN protocol. It presents
messages received to the object layer and accepts messages to be transmitted from
the object layer. The transfer layer is responsible for bit timing and
synchronization, message framing, arbitration, acknowledgment, error detection
and signaling, and fault confinement. It performs:
o Fault Confinement
o Error Detection
o Message Validation
o Acknowledgment
o Arbitration
o Message Framing
o Transfer Rate and Timing
o Information Routing
Physical Layer
The physical layer defines how the signals are actually transmitted. Tasks include:
Messages:
Frame size is fixed.
Whenever we want to attach to CAN need not to do external that itself doing that.
Identifier can do message filtering.
CAN is a multi cast mechanism (one to many (or) many to one).
Advantages of CAN:
e.g.: Assume 1 is the root node and 2 is the life node. In this system
the node 2 give requests to to root node 1 for taking data from node 1 to node 2.
Overload frame: This frame is sent by the busy CAN node to request an extra
delay between the preceding and succeeding the data frame.
Over load conditions:
1. The internal conditions of a receiver, which requires a delay
of the next data frame or remote frame
2. Detection of a dominant bit during intermission.
Types of CAN:
Models of CAN:
An IFS means how much time to take data from one frame to another frame.
Applications:
Factory automation
Building automation
Non-industrial control
Non-industrial equipment
Maritime applications
Medical equipments
Environment research