Professional Documents
Culture Documents
Control Area Network (CAN) Bus
Control Area Network (CAN) Bus
Control Area Network (CAN) Bus
CANBUS History
2
CANBUS Timeline
3
The Development of CAN
The development of CAN began when more and more electronic
devices were implemented into modern motor vehicles.
4
Before CAN
5
With CAN
6
CAN Bus Characterstics
7
Bus Characteristics – Wired AND
Only if all nodes transmit recessive bits If any one node transmits a dominant bit
(ones), the Bus is in the recessive state. (zero), the bus is in the dominant state.
T is Transmitter, R is receiver. Note nodes can therefore check the line while
transmitting. This is important particularly during arbitration.
8
Message Oriented Transmission Protocol
Each node – receiver & transmitter
A sender of information transmits to all devices on the bus
All nodes read message, then decide if it is relevant to them
All nodes verify reception was error-free
All nodes acknowledge reception
9
The CAN Standard
The CAN standard defines four message types
Data Frame – the predominantly used message type
Remote Frame
Error Frame
Overload Frame
The messages uses a clever scheme of bit-wise arbitration to
control access to the bus, and each message is tagged with a
priority.
The CAN standard also defines an elaborate scheme for error
handling and confinement.
CAN may implemented using different physical layers, and
there are also a number of different connector types in use.
10
Basic message frame format
Length
Field name (bits) Purpose
Data field 0-8 bytes Data to be transmitted (length dictated by DLC field)
CRC 15 Cyclic redundancy check
CRC delimiter 1 Must be recessive (1)
12
Differences
both are serial communication...
but the difference is
1. I2c is synchronous and CAN is asynshronous.
2. i2c needs slave address and CAN does not need slave address protocol.
3. i2c is Node oriented and CAN is message oriented.
4. i2c has SDA and SCL, CAN is differential bus..
5. i2c operates in 3 speeds 100kbps, 400kbps and 3.4mbps where as CAN operates
at 250kbps upto 1mbps.
13