Professional Documents
Culture Documents
(CAN)
Presented by
Krishna Raj S R
14182009
Systems Engineering
IIT BHU , Varanasi
on Computer Networks
Why CAN?
Need
History
Layered
Structure
Message Format
Arbitration Policy
Error Detection
Implementation
Scope of the Presentation
Before CAN
Conventional multi-wire looms
http://canbuskit.com/what.php
With CAN
Conventional multi-wire looms
vs.
http://canbuskit.com/what.php
Before CAN
6
With CAN
7
Serial
communications protocol
Efficiently supports distributed realtime
control
Very high level of security.
Message Oriented
What is CAN?
Properties of CAN
Transmission Characteristics
Up to 1 Mbit/sec.
Common baud rates: 1 MHz, 500 KHz and 125 KHz
All nodes same baud rate
Max length:120 to 15000 (rate dependent)
Mbit/s
40 m
500 kbit/s 110 m
250 kbit/s 240 m
125 kbit/s 500 m
10
esd electronics, Inc. 525 Bernardston Road Greenfield, MA
01301
90%
80%
70%
60%
50%
40%
30%
20%
10%
0%
Automotive
Markets
Medical / Industrial
11
History
CANBUS History
New
CANBUS Timeline
1983
1986
1987
1991
1992
1993
1995
Present
15
CAN bus
16
Basic Configuration
17
Layered Structure
Physical Layer
Bus Levels
Transfer Layer
IDE Identifier extension (distinguishes between CAN standard,11 bit identifier, and CAN
extended, 29 bit identifier.)
ACK Acknowledge
IFS Intermission Frame Space. Minimum number of bits separating consecutive messages.
Types
Data
Frame
Remote Frame
Error Frame
Overload Frame
The Remote Frame is just like the Data Frame, with two important differences:
It is explicitly marked as a Remote Frame (the RTR bit in the Arbitration Field is
recessive), and
there is no Data Field.
The intended purpose of the Remote Frame is to solicit the transmission of the
corresponding Data Frame
The Data Length Code must be set to the length of the expected response
message. Otherwise the arbitration will not work.
25
26
27
Bus Arbitration
Bus Arbitration
Arbitration needed when multiple nodes try to transmit at the same time
Only one transmitter is allowed to transmit at a time.
A node waits for bus to become idle
Nodes with more important messages continue transmitting
CAN bus
29
Bus Arbitration
Message
30
Error Detection
Error detection
If
Re-transmission
Error
Message level
Bit level
Error detection
Message Level
Bit level
Object layer
Implementation 1
Basic
CAN
Limited number of
receive buffers and
filters
Can get bogged down
quickly with multiple
consecutive
messages.
Implementation 2
Full
CAN
Implementation 3
FIFO
Implementation 4
Enhanced
Full Can
Over
Cygnal
Intel
Motorola
NEC
Phillips
Toshiba
Manufacturers
Manufacturer
http://www.can-cia.org/products/can/chips/
CAN
Information
http://www.canbus.us/
http://www.can-cia.org/can/
Useful Links