SlideShare una empresa de Scribd logo
1 de 30
Seminar on
CAN
Bus
Protocol
By Abhinaw Tiwari
CSE-12010330
Contents
 Introduction
 CAN Applications
 CAN Characteristics
 Message Types
 Arbitration
 CAN Data Protection
 Advantages
 Disadvantages
 Conclusion
- 2 -
- 3 -
Introduction
• Multi-master protocol
• Broadcasting
• Serial communication technology
• Priority-based bit-wise arbitration
- 4 -
Introduction
• Originally developed by Robert Bosch for
automobile in-vehicle network in the 1980s
• For reliable data exchange between ECUs
• Robust in noisy environments
• Cost effective
- 5 -
Introduction
• Compact and fast
• It is a message-based protocol.
• There are no defined addresses, just defined
messages.
Before CAN
After CAN
- 8 -
Real-world applications
- 9 -
Real-world applications
• Automotive
• Military vehicles
• Industrial machinery
• Medical systems
• Agricultural machinery
• Marine control and navigation
• Elevator control systems
- 10 -
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
- 11 -
CAN Characteristics
Bit Rate / Bus Length
1M bit/sec 40 meters (131 feet)
500K bit/sec 100 meters (328 feet)
250K bit/sec 200 meters (656 feet)
125K bit/sec 500 meters (1640 feet)
- 12 -
CAN Characteristics
Physical Medium
Single twisted pair wire terminated on each end
Node
A
Node
B
120 Ω 120 Ω
- 13 -
CAN Characteristics
Network Size
• The maximum number of nodes is not
specified.
• Networks are limited by electrical loading,
up to 64 nodes is normal
- 14 -
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
• Standard Data Frame
• Extended Data Frame
CAN Message Format
- 16 -
CAN Arbitration
• CSMA/CA
• All nodes must wait for an idle bus condition.
• If two nodes begin transmitting simultaneously,
they then participate in an arbitration process.
- 17 -
CAN Arbitration
• Wired-AND mechanism
• The node with the lower ID number wins the
arbitration and continues transmitting its
message.
• The loser of the arbitration backs off and re-tries.
- 18 -
CAN Arbitration
CSMA/CA & Wired-AND Logic
- 19 -
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
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
• Cyclic Redundancy Check
 Receiver Task
 Utilizes the arriving bit stream and generator
polynomial for the Cyclic Redundancy Check
defined in ISO 11898-1
 Detection of a CRC error results in error handling
- 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 -
- 24 -
CAN Data Protection
Error Tracking
- 25 -
CAN Advantages
• High performance under light loads
• Low cost
• Reliable
• Robust
- 26 -
CAN Disadvantages
• Unfair access: Node with high priority can hog
the network
• Starvation for some particular nodes
- 27 -
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.
- 28 -
References
1. https://elearning.vector.com
2. https://slideshare.net
- 29 -
CAN Bus Protocol
Q & A
- 30 -
CAN Bus Protocol
Thank you!

Más contenido relacionado

La actualidad más candente (20)

Can bus
Can busCan bus
Can bus
 
CAN Bus
CAN BusCAN Bus
CAN Bus
 
LIN protocol description
LIN protocol descriptionLIN protocol description
LIN protocol description
 
The Basics of Automotive Ethernet Webinar Slidedeck
The Basics of Automotive Ethernet Webinar SlidedeckThe Basics of Automotive Ethernet Webinar Slidedeck
The Basics of Automotive Ethernet Webinar Slidedeck
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)
 
Lin bus
Lin busLin bus
Lin bus
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
UART
UARTUART
UART
 
Can bus
Can busCan bus
Can bus
 
Controller area network
Controller area networkController area network
Controller area network
 
Local Interconnect Network
Local Interconnect NetworkLocal Interconnect Network
Local Interconnect Network
 
Control Area Network
Control Area NetworkControl Area Network
Control Area Network
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
Canbus
CanbusCanbus
Canbus
 
Can Protocol For Automobiles
Can Protocol For AutomobilesCan Protocol For Automobiles
Can Protocol For Automobiles
 
Migration from CAN 2.0 to CAN FD
Migration from CAN 2.0 to CAN FDMigration from CAN 2.0 to CAN FD
Migration from CAN 2.0 to CAN FD
 

Destacado

PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatJitender Singh Shekhawat
 
Automotive lighting - Led road lighting
Automotive lighting - Led road lightingAutomotive lighting - Led road lighting
Automotive lighting - Led road lightingCaner Göksel Sonuzun
 
DC GENERATOR CHARACTERISTICS
DC GENERATOR CHARACTERISTICSDC GENERATOR CHARACTERISTICS
DC GENERATOR CHARACTERISTICSRitabrata Roy
 
Ppt local tracking and gps
Ppt local tracking and gpsPpt local tracking and gps
Ppt local tracking and gpsmassab
 
Tower crane Basics
Tower crane BasicsTower crane Basics
Tower crane Basicsrama24x7
 
Electro magnetic interference and compatibility(ECM,ECI)
Electro magnetic interference and compatibility(ECM,ECI)Electro magnetic interference and compatibility(ECM,ECI)
Electro magnetic interference and compatibility(ECM,ECI)Palani murugan
 
Emi emc-pdf
Emi emc-pdfEmi emc-pdf
Emi emc-pdfnagastra
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationRashmi
 
cc tn aed aetc am&e p&p 2 tractors, farm equipments., ...
cc tn aed aetc am&e p&p 2 tractors, farm equipments., ...cc tn aed aetc am&e p&p 2 tractors, farm equipments., ...
cc tn aed aetc am&e p&p 2 tractors, farm equipments., ...Chidambaram Coomarasamy
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communicationasteriskbimal
 
Global Positioning System
Global Positioning System Global Positioning System
Global Positioning System Varun B P
 
Electromagnetic Interference and Electromagnetic Compatibility (EMI/EMC
Electromagnetic Interference and Electromagnetic Compatibility (EMI/EMCElectromagnetic Interference and Electromagnetic Compatibility (EMI/EMC
Electromagnetic Interference and Electromagnetic Compatibility (EMI/EMCAishwary Singh
 

Destacado (20)

PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
 
DC GENERATOR
DC GENERATORDC GENERATOR
DC GENERATOR
 
Automotive lighting - Led road lighting
Automotive lighting - Led road lightingAutomotive lighting - Led road lighting
Automotive lighting - Led road lighting
 
DC GENERATOR CHARACTERISTICS
DC GENERATOR CHARACTERISTICSDC GENERATOR CHARACTERISTICS
DC GENERATOR CHARACTERISTICS
 
Cranes ppt
Cranes pptCranes ppt
Cranes ppt
 
Embedded Systems in Automotive
Embedded Systems in Automotive Embedded Systems in Automotive
Embedded Systems in Automotive
 
Ppt local tracking and gps
Ppt local tracking and gpsPpt local tracking and gps
Ppt local tracking and gps
 
Tower crane Basics
Tower crane BasicsTower crane Basics
Tower crane Basics
 
Plc & scada report 6
Plc & scada report 6Plc & scada report 6
Plc & scada report 6
 
Electro magnetic interference and compatibility(ECM,ECI)
Electro magnetic interference and compatibility(ECM,ECI)Electro magnetic interference and compatibility(ECM,ECI)
Electro magnetic interference and compatibility(ECM,ECI)
 
Emi emc-pdf
Emi emc-pdfEmi emc-pdf
Emi emc-pdf
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
cc tn aed aetc am&e p&p 2 tractors, farm equipments., ...
cc tn aed aetc am&e p&p 2 tractors, farm equipments., ...cc tn aed aetc am&e p&p 2 tractors, farm equipments., ...
cc tn aed aetc am&e p&p 2 tractors, farm equipments., ...
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
 
GPS ppt.
GPS ppt. GPS ppt.
GPS ppt.
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
 
DCS Or PLC
DCS Or PLCDCS Or PLC
DCS Or PLC
 
Distributed Control System
Distributed Control SystemDistributed Control System
Distributed Control System
 
Global Positioning System
Global Positioning System Global Positioning System
Global Positioning System
 
Electromagnetic Interference and Electromagnetic Compatibility (EMI/EMC
Electromagnetic Interference and Electromagnetic Compatibility (EMI/EMCElectromagnetic Interference and Electromagnetic Compatibility (EMI/EMC
Electromagnetic Interference and Electromagnetic Compatibility (EMI/EMC
 

Similar a CAN (Controller Area Network) Bus Protocol

Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3Ankur Rastogi
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3Ankur Rastogi
 
CONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptxCONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptxVairaPrakash2
 
Introduction to the CAN-HG augmentation of CAN for security and performance
Introduction to the CAN-HG augmentation of CAN for security and performanceIntroduction to the CAN-HG augmentation of CAN for security and performance
Introduction to the CAN-HG augmentation of CAN for security and performanceKenTindell
 
Controller area network
Controller area networkController area network
Controller area networksanaz nouri
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocolsNitesh Singh
 
Controller Area Network (CAN) Training
Controller Area Network (CAN) TrainingController Area Network (CAN) Training
Controller Area Network (CAN) TrainingBryan Len
 
Mac adhoc (1)
Mac adhoc (1)Mac adhoc (1)
Mac adhoc (1)hinalala
 
mac-adhoc.ppt
mac-adhoc.pptmac-adhoc.ppt
mac-adhoc.pptsyam babu
 
ASRG SOS 2022 Encrypted messaging on CAN bus
ASRG SOS 2022 Encrypted messaging on CAN busASRG SOS 2022 Encrypted messaging on CAN bus
ASRG SOS 2022 Encrypted messaging on CAN busKenTindell
 

Similar a CAN (Controller Area Network) Bus Protocol (20)

Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
 
Ca npp t
Ca npp tCa npp t
Ca npp t
 
CAN.ppt
CAN.pptCAN.ppt
CAN.ppt
 
can bus theory solution
can bus theory solutioncan bus theory solution
can bus theory solution
 
CONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptxCONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptx
 
Lasseq f can
Lasseq f canLasseq f can
Lasseq f can
 
Introduction to the CAN-HG augmentation of CAN for security and performance
Introduction to the CAN-HG augmentation of CAN for security and performanceIntroduction to the CAN-HG augmentation of CAN for security and performance
Introduction to the CAN-HG augmentation of CAN for security and performance
 
Canbus
CanbusCanbus
Canbus
 
Controller area network
Controller area networkController area network
Controller area network
 
mac-adhoc.ppt
mac-adhoc.pptmac-adhoc.ppt
mac-adhoc.ppt
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocols
 
Controller Area Network (CAN) Training
Controller Area Network (CAN) TrainingController Area Network (CAN) Training
Controller Area Network (CAN) Training
 
CAN_tcs_ppt
CAN_tcs_pptCAN_tcs_ppt
CAN_tcs_ppt
 
Mac adhoc (1)
Mac adhoc (1)Mac adhoc (1)
Mac adhoc (1)
 
Mac adhoc
Mac adhocMac adhoc
Mac adhoc
 
15 can.ppt
15 can.ppt15 can.ppt
15 can.ppt
 
11.chapters
11.chapters11.chapters
11.chapters
 
mac-adhoc.ppt
mac-adhoc.pptmac-adhoc.ppt
mac-adhoc.ppt
 
ASRG SOS 2022 Encrypted messaging on CAN bus
ASRG SOS 2022 Encrypted messaging on CAN busASRG SOS 2022 Encrypted messaging on CAN bus
ASRG SOS 2022 Encrypted messaging on CAN bus
 

Último

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 

Último (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

CAN (Controller Area Network) Bus Protocol

  • 2. Contents  Introduction  CAN Applications  CAN Characteristics  Message Types  Arbitration  CAN Data Protection  Advantages  Disadvantages  Conclusion - 2 -
  • 3. - 3 - Introduction • Multi-master protocol • Broadcasting • Serial communication technology • Priority-based bit-wise arbitration
  • 4. - 4 - Introduction • Originally developed by Robert Bosch for automobile in-vehicle network in the 1980s • For reliable data exchange between ECUs • Robust in noisy environments • Cost effective
  • 5. - 5 - Introduction • Compact and fast • It is a message-based protocol. • There are no defined addresses, just defined messages.
  • 8. - 8 - Real-world applications
  • 9. - 9 - Real-world applications • Automotive • Military vehicles • Industrial machinery • Medical systems • Agricultural machinery • Marine control and navigation • Elevator control systems
  • 10. - 10 - 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
  • 11. - 11 - CAN Characteristics Bit Rate / Bus Length 1M bit/sec 40 meters (131 feet) 500K bit/sec 100 meters (328 feet) 250K bit/sec 200 meters (656 feet) 125K bit/sec 500 meters (1640 feet)
  • 12. - 12 - CAN Characteristics Physical Medium Single twisted pair wire terminated on each end Node A Node B 120 Ω 120 Ω
  • 13. - 13 - CAN Characteristics Network Size • The maximum number of nodes is not specified. • Networks are limited by electrical loading, up to 64 nodes is normal
  • 14. - 14 - 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
  • 15. • Standard Data Frame • Extended Data Frame CAN Message Format
  • 16. - 16 - CAN Arbitration • CSMA/CA • All nodes must wait for an idle bus condition. • If two nodes begin transmitting simultaneously, they then participate in an arbitration process.
  • 17. - 17 - CAN Arbitration • Wired-AND mechanism • The node with the lower ID number wins the arbitration and continues transmitting its message. • The loser of the arbitration backs off and re-tries.
  • 18. - 18 - CAN Arbitration CSMA/CA & Wired-AND Logic
  • 19. - 19 - 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
  • 20. 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 -
  • 21. 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 -
  • 22. CAN Data Protection CAN Data Protection- Error Detection • Cyclic Redundancy Check  Receiver Task  Utilizes the arriving bit stream and generator polynomial for the Cyclic Redundancy Check defined in ISO 11898-1  Detection of a CRC error results in error handling - 22 -
  • 23. 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 -
  • 24. - 24 - CAN Data Protection Error Tracking
  • 25. - 25 - CAN Advantages • High performance under light loads • Low cost • Reliable • Robust
  • 26. - 26 - CAN Disadvantages • Unfair access: Node with high priority can hog the network • Starvation for some particular nodes
  • 27. - 27 - 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.
  • 28. - 28 - References 1. https://elearning.vector.com 2. https://slideshare.net
  • 29. - 29 - CAN Bus Protocol Q & A
  • 30. - 30 - CAN Bus Protocol Thank you!

Notas del editor

  1. There are no bus masters or slave devices in CAN. Devices do not have addresses either. Any node on the bus is allowed to broadcast a message at any time. Each message has an identifier that indentifies the message content. All receivers receive all of the messages and selectively process the messages with content that applies to that receiver. If two devices attempt to transmit simultaneously they automatically participate in an arbitration sequence. The message with the lower numbered identifier wins the arbitration and is allowed to continue transmitting. The node transmitting the message that lost arbitration must stop transmitting and retry at the next bus idle time.
  2. A CAN network consists of a number of CAN nodes which are linked via the physical transmission medium, twisted pair wire. At the ends of the CAN network are bus termination resistors. These resistors prevent signal reflections that would harm the signal integrity.
  3. The CAN specification does not state a maximum number of nodes. The maximum number of nodes is dependant on the drive strength of the weakest transceiver and the electrical loads of each of the nodes on the network. Networks containing up to 64 nodes are common.
  4. CAN has several error detection mechanisms that contribute to the robustness of CAN. The sender and all receivers of the message participate in error detection. The sender monitors each bit it transmits to ensure that the correct level appears on the bus. The sender checks that ACK bit to make sure that at least one receiver has correctly received the message Each CAN message is checked for validity by all CAN receivers. The receivers check for delimiters appearing at the correct times The receivers calculate the CRC value and compare their calculated value to the transmitted value. The receivers check that no more than 5 successive bits of the same level are sent