EECS 373 Controller Area Networks Samuel Haberl Russell Kuczwara Senyuan Zhong.

Slides:



Advertisements
Similar presentations
Contents Overview Data Information Frame Format Protocol
Advertisements

Introduction to CAN.
Course Introduction Purpose
Introduction to CANBUS
Jonathan Meed Alexander Basil. What is CAN (Controller Area Network) CAN is a multi-master serial bus Developed by Bosch for automotive applications in.
Control Area Network CAN Developed by Bosch in 1983 as an automotive protocol, it was adopted by the Society of Automotive Engineers (SAE) in As.
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Setha Pan-ngum. History of CAN [1] It was created in mid-1980s for automotive applications by Robert Bosch. Design goal was to make automobiles more reliable,
Slide 1 Industrial Automation - Customer View - Training PhW - CANopen_en 02/ 2002 CANopen QUIZ CANopen QUIZ.
Control Area Network (CAN) Bus. 2 Overview  CAN is an important embedded protocol  Primarily automotive, but used in many other places  CAN specifies:
Intro to Controller Area Networks (CAN) Part 2 of 2, E. Zivi, April 1, 2015 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a.
What is the CAN Bus ? A two wire electronic communication data bus between ‘processors’ – i.e. computer computer controllers Developed by Robert Bosch.
Chapter 6 Errors, Error Detection, and Error Control.
Control Area Network CAN Developed by Bosch in 1983 as an automotive protocol, it was adopted by the Society of Automotive Engineers (SAE) in As.
CSCI 4550/8556 Computer Networks Comer, Chapter 7: Packets, Frames, And Error Detection.
CS335 Networking & Network Administration Wednesday, April 7 PacketsPackets, Frames, and Error DetectionFramesError Detection.
Network Data Organizational Communications and Technologies Prithvi N. Rao Carnegie Mellon University Web:
Host Data Layer 7 Application Interacts with software requiring network communications; identifies partners, resources and synchronization Layer 6 Presentation.
Review on Networking Technologies Linda Wu (CMPT )
CS352- Link Layer Dept. of Computer Science Rutgers University.
CSS Lecture 2 Chapter 3 – Connecting Computer Components with Buses Bus Structures Synchronous, Asynchronous Typical Bus Signals Two level, Tri-state,
1 LAN Topologies, Access methods (Week 1, Wednesday 1/10/2007) © Abdou Illia, Spring 2007.
 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO  CiA  CANopen  DeviceNet  Applying.
Intro to Controller Area Networks (CAN) Part 1 of 2, E. Zivi, April 1, 2015 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a.
Haptic Belt team Informational Presentation.  I 2 C is a form of control bus (multi-master) which allows communication between multiple integrated circuits.
Chapter 10 Error Detection and Correction
SERIAL BUS COMMUNICATION PROTOCOLS
January 9, 2008BAE In-Vehicle Networking Lecture 2 CAN Physical Layers ISO 11898, ISO Part 2, J ,12,13 Physical Layers BAE
University of Tehran 1 Interface Design Vehicle Busses Omid Fatemi.
ECE 371 Controller Area Network (CAN) Overview. Controller Area Network The development of CAN began when more and more electronic devices were implemented.
CSC 311 IEEE STANDARD ETHERNET Common Bus topology Uses CSMA/CD Named after “ether”, the imaginary substance many once believed occupied all of space.
Tecnologie Informatiche ed Elettroniche per le Produzioni Animali (corso TIE) CORSO LAUREA MAGISTRALE IN SCIENZE E TECNOLOGIE DELLA PRODUZIONE ANIMALE.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
In-Vehicle Networking for Heavy Duty Systems Review of CAN / SAE J1939/ ISO BAE 5030 Fall 2001 Instructor: Marvin Stone BAE 5030 Fall 2001 Instructor:
Advanced Embedded Systems Design Lecture 13 RISC-CISC BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose This training course provides an introduction to Controller.
ECGR 6185 Advanced Embedded Systems Controller Area Network University Of North Carolina Charlotte Bipin Suryadevara.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 14 Local Area Networks: Ethernet.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
1 Data Link Layer Lecture 22 Imran Ahmed University of Management & Technology.
Data and Computer Communications
Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.
CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
1 Part III Packet Transmission Chapter 7 Packets, Frames, and Error Detection.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This training course provides an overview of Message Frames.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Chapter 1 - Local Area Network Technologies. How IP Datagrams are Encapsulated IP datagrams are found at the OSI Network layer IP datagrams are sent to.
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error Control.
Chapter 7 - Packets, Frames and Error Detection 1. Concepts of Packets 2. Motivation for Packet Switching 3. Framing 4. Frame Formats 5. Transmission Errors.
Section 3 - Slide 1/19 P&T - GPS - Formation PhW - CANopen_lev1_en - 01/2004 History CANopen and the ISO model Physical layer Link layer Application layer.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
1 Lecture Controller Area Networks Dr. Tony Grift
Controller Area Network (CAN) is a broadcast, differential serial bus standard, originally developed in the 1980s by Intel and Robert Bosch GmbH, for.
1 May-2014 Automotive Protocols & Standards. 2 CAN (Controller Area Network)  Overview Controller Area Network is a fast serial bus designed to provide.
An Introduction to CAN CAN Basics 2 Renesas Interactive
1 Copyright © 2014 Tata Consultancy Services Limited Controller Area Network (CAN) By Renukacharya A. Thakare.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Chapter Objectives After completing this chapter you will be able to: Describe in detail the following Local Area Network (LAN) technologies: Ethernet.
Controller Area Network
CAN ( Controller Area Network )
National Institute of Science & Technology TECHNICAL SEMINAR PRESENTATION Presented by TRUPTI RANJAN BEHERA Roll no: EI Under the Guidance of.
CAN Controller Area Network 29BIT ID
Controller Area Network (CAN Bus)
شبکه محلی کنترلر Controller Area Network (CAN)
Lecture 5- Data Link Layer
Controller Area Networks (CAN)
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Error Detection and Correction
Presentation transcript:

EECS 373 Controller Area Networks Samuel Haberl Russell Kuczwara Senyuan Zhong

Presentation Outline  CAN history and basics  CAN standard message frame & arbitration  Error checking & noise protection  CAN implementation  Application strengths

CAN History  Developed by Bosch in 1983  Presented at SAE Conference in Detroit in 1986  Designed for automotive uses  Allows multiple controllers and sensors to communicate  2008: all US vehicles required to implement CAN for OBD  Multiple CAN implementations and variations

Where is CAN Used?  Automotive industry  Electronic control units (ECUs)  Sensors and switches  Multimedia systems  Factory automation  Low-cost machinery and electronics  Michigan Hybrid Racing Electric Drive System Photo credit: Sam Haberl

CAN Basics  Multi-master, broadcast serial bus  Real Time Arbitration  Robust error-checking and noise protection  No extra wires for clock or arbitration  Cheap tm

Masters and Targets  Each node can be a master and a target  Arbitration field indicates message type  Nodes listen to messages that they care about  Addresses composed of dominant and recessive bits  0 – Dominant, 1 – Recessive  Lowest address (0x000) is most dominant

Standard Message Frame  Start of frame  Arbitration (identifier)  Control (data length, reserved bits)  Data field  CRC (cyclical redundancy check)  ACK (acknowledgement field)  End of frame  Intermission (time between frames) Image from 11 or 29 Bit

Arbitration 11 or 29 Bit

Error Checking  Form Errors  Proper message formatting is enforced  Bit Errors  Transmitter detects wrong bit while transmitting.  CRC Checksum Errors  Checksum calculated, compared to transmitted checksum  Acknowledgement Errors  ACK field must be set dominant by a receiving node  Bit stuffing Errors  Any time there are 5 of the same bits, one opposite bit sent  Error triggered by 6 identical bits

Error Handling  Any node on the bus can raise an “Error frame.”  Holds bus dominant for 6 bits  Other nodes realize this is wrong, raise their error frames  Node that was transmitting re-sends message  Each node keeps individual error count  Node goes into “passive” mode at 127 errors  Node removes itself from bus after 255 errors Image from frame.php?navanchor=

Timing  No bus clock signal, each node has its own clock  Each bit is divided into four sections  Synchronization, Propagation, Phase 1, Phase 2  Bit sampled between phase 1 and 2  Receiving nodes synchronize by adjusting phases

CAN Implementations Variants  CAN architecture can be implemented in many different approaches  Standards for single-wire, twisted pair, four-wire  Twisted-pair CAN is most commonly used  Twisted pair uses CAN_H and CAN_L signals  No additional wires needed  Signal generated by transceiver, not by processor content/themes/networkcablinglosangeles/images/unshielded_cable.jpg

Electrical Noise  Lots of Noise in Automotive Application  Only getting worse with more automation for luxury

Differential Signals  Two-Wire differential signal  Value represented by difference between wires, not the absolute value of one wire  Difference creates immunity to noise 10? 00

From Master to Bus (2-Wire Implementation)  Processor uses logic-level signal  Signals sent over 2-wire bus  Use transceiver as bridge

Full Message Example  Sends the message with identifier  Sends One Byte with value “1”  15 bit CRC field  Bit Stuffing is handled by can transceivers and is not visible

A CAN Bus For Everyone  Allows multiple bitrates and buses  Bitrates affect robustness and bus length  1 Mbit/s – High-priority  i.e. Airbags  10 kbit/s – Low-priority  i.e. Audio System changes (volume, audio source)

Multiple CAN Bus Example

Application Strengths  Arbitration with no delay or extra wires  High-priority devices don’t wait  No extra weight or cost from wires  Robust error correction  Faulty nodes remove themselves from bus  Minimizes need for software correction  Noise immunity from twisted pair CAN  Inexpensive  56 2,500 qty for SN65HVD1040DR CAN Transceiver (DigiKey)

References  Robert Bosch GmbH   KVaser CAN Solutions   Dearborn Group Technologies   Softing CAN Bus Products  bus/index.php?navanchor= bus/index.php?navanchor=  Vector CANtech  GsAIw&et_rp=1 GsAIw&et_rp=1

Questions?