Seminar On CAN Bus Protocol (2015) - PPT
Seminar On CAN Bus Protocol (2015) - PPT
Seminar On CAN Bus Protocol (2015) - PPT
CAN
Bus
Protocol
By Abhinaw Tiwari
CSE-12010330
Contents
Introduction
CAN Applications
CAN Characteristics
Message Types
Arbitration
CAN Data Protection
Advantages
Disadvantages
Conclusion
-2-
Introduction
• Multi-master protocol
• Broadcasting
-3-
Introduction
• Cost effective
-4-
Introduction
• It is a message-based protocol.
-5-
Before CAN
After CAN
Real-world applications
-8-
Real-world applications
• Automotive
• Military vehicles
• Industrial machinery
• Medical systems
• Agricultural machinery
• Marine control and navigation
• Elevator control systems
-9-
CAN Characteristics
• All messages are broadcast
• Any node is allowed to broadcast a
message
• Each message contains an ID that
identifies the source or content of a
message
• Each receiver decides to process or
ignore each message
- 10 -
CAN Characteristics
- 11 -
CAN Characteristics
Physical Medium
Node Node
A B
120 Ω 120 Ω
- 12 -
CAN Characteristics
Network Size
- 13 -
CAN Message Types
Four Message Types
• Data Frame
– Used to transmit data
• Remote Frame
– Used to request data transmission
• Error Frame
– Sent by a node that detects an error
• Overload Frame
– Sent by a node to request a delay in
transmission
- 14 -
CAN Message Format
• CSMA/CA
- 16 -
CAN Arbitration
• Wired-AND mechanism
- 17 -
CAN Arbitration
CSMA/CA & Wired-AND Logic
- 18 -
CAN Data Protection
CAN Data Protection-
Error Detection
• Bit Monitoring
Sender Task
Compares every bit placed on the CAN bus with the
actual bus level
Discrepancy indicates a bit monitoring error and
results in error handling
- 19 -
CAN Data Protection
CAN Data Protection-
Error Detection
• Stuff Check
Receiver Task
Compares arriving bit stream for a sequence of six
homogeneous bits.
Detection of a sixth homogeneous bit indicates bit
stuffing error and results in error handling
- 20 -
CAN Data Protection
CAN Data Protection-
Error Detection
• Form Check
Receiver Task
Comparison of the arriving bit stream with the
message format
Detection of a dominant delimiter bit (CRC delimiter,
ACK delimiter) or a dominant bit within EOF
indicates a format error and results in error handling
- 21 -
CAN Data Protection
CAN Data Protection-
Error Detection
- 22 -
CAN Data Protection
CAN Data Protection-
Error Detection
• ACK Check
Sender Task
Acknowledge error (ACK error) is detected if the
recessive level placed by the sender is not
overwritten
Detection of an ACK error results in error handling
- 23 -
CAN Data Protection
Error Tracking
- 24 -
CAN Advantages
- 25 -
CAN Disadvantages
- 26 -
Conclusion
- 27 -
References
1. https://elearning.vector.com
2. https://slideshare.net
- 28 -
CAN Bus Protocol
Q&A
- 29 -
CAN Bus Protocol
Thank you!
- 30 -