 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO 11898  CiA  CANopen  DeviceNet  Applying.

Slides:



Advertisements
Similar presentations
Contents Overview Data Information Frame Format Protocol
Advertisements

Introduction to CAN.
Course Introduction Purpose
Introduction to CANBUS
CAN © CiA Node 2 Node 3 Node 4 Node n Node 1 Ld Ld = Drop Length Lt Lt = Trunk Length ISO Topology.
Jonathan Meed Alexander Basil. What is CAN (Controller Area Network) CAN is a multi-master serial bus Developed by Bosch for automotive applications in.
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,
Overview  CANopen is a CAN-based higher layer protocol. It was developed as a standardized embedded network with highly flexible configuration capabilities.
Guide to TCP/IP, Third Edition
Slide 1 Industrial Automation - Customer View - Training PhW - CANopen_en 02/ 2002 CANopen QUIZ CANopen QUIZ.
8-Reliability and Channel Coding Dr. John P. Abraham Professor UTPA.
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.
D Channel Data Link Protocol Link access procedure on the D channel - LAPD.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
Host Data Layer 7 Application Interacts with software requiring network communications; identifies partners, resources and synchronization Layer 6 Presentation.
Dave Mills CANbus: A brief introduction Incorporating: The Fujitsu status Dave Mills Queen Mary, University of London.
CAN PROTOCOL Characterization Presentation
Module 6 Chapter 5. Ethernet Ethernet is now the dominant LAN technology in the world. Ethernet is not one technology but a family of LAN technologies.
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.
EECS 373 Controller Area Networks Samuel Haberl Russell Kuczwara Senyuan Zhong.
1 Computer Networks Course: CIS 3003 Fundamental of Information Technology.
SERIAL BUS COMMUNICATION PROTOCOLS
Caleb Walter. iPhone style charger Malware channel Exploit Vehicle CAN network Create Covert Channel at Public Charging Stations Custom Arduino CAN EVSE.
January 9, 2008BAE In-Vehicle Networking Lecture 1 Introduction to CAN (Controller Area Network) BAE 5030 – 363 Spring 2009 Instructors: Marvin.
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.
Controller Area Network Wilmer Arellano, Summer 2007
ECE 371 Controller Area Network (CAN) Overview. Controller Area Network The development of CAN began when more and more electronic devices were implemented.
Tecnologie Informatiche ed Elettroniche per le Produzioni Animali (corso TIE) CORSO LAUREA MAGISTRALE IN SCIENZE E TECNOLOGIE DELLA PRODUZIONE ANIMALE.
Presentation on Osi & TCP/IP MODEL
Protocol Layering Chapter 10. Looked at: Architectural foundations of internetworking Architectural foundations of internetworking Forwarding of datagrams.
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:
Jiří Novák, CTU FEE in Prague, Dept. of Measurement Industrial Distributed Systems Technology overview Technology overview Important features Important.
Advanced Embedded Systems Design Lecture 13 RISC-CISC BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose This training course provides an introduction to Controller.
Internetworking An internetwork is typically comprised of many physical networks over which data travels There are many different types of physical networks:
ECGR 6185 Advanced Embedded Systems Controller Area Network University Of North Carolina Charlotte Bipin Suryadevara.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Ethernet Fundamentals. The success of Ethernet is due to the following factors: Simplicity and ease of maintenance Ability to incorporate new technologies.
Module 8: Ethernet Switching
Ethernet Term Paper Introduced by: Almarshood, Yosef Bahaitham, Ahmed Alrashudi, Ahmed.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This training course provides an overview of Message Frames.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Ethernet Network Fundamentals – Chapter 9.
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.
Lecture (Mar 23, 2000) H/W Assignment 3 posted on Web –Due Tuesday March 28, 2000 Review of Data packets LANS WANS.
CAN Controller Area Network Wilmer Arellano, Summer 2007.
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.
Protocol Layering Chapter 11.
THE NETWORKS Theo Chakkapark. Open System Interconnection  The tower of power!  The source of this power comes from the model’s flexibility.
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.
CIm -IE775 computer Integrated manufacturing Industrial & Manufacturing Enterprise Department The Wichita State University
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
CAN CANopen.
Controller Area Network (CAN Bus)
Layered Architectures
Проширења CAN Flexible Datarates
شبکه محلی کنترلر Controller Area Network (CAN)
Controller Area Networks (CAN)
Data Link Layer. Position of the data-link layer.
Presentation transcript:

 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO  CiA  CANopen  DeviceNet  Applying CAN

 CAN = controller area network  ECU = electronically controlled unit  Dominant = 0  Recessive = 1

 CAN implements a vehicle bus to which all CAN devices are connected  Allows all devices to communicate with one another

 Cars, trucks, buses, off-road vehicles  Maritime electronics  Aircraft/aerospace electronics  Medical equipment and devices  Coffee machines  Elevators

 Developed in Germany in the 1980's by engineers working at Robert Bosch  More functionality while reducing the weight and complexity of the wiring between controllers.  Multi-processor system which has better performance, increased reliability and is more maintainable  No communication protocols at the time met the speed and reliability requirements so Bosch developed CAN specification 2.0

 Physical and data link layer are implemented in the CAN controllers  Standard CAN bypasses layers 3-6  (1) Physical layer = actual hardware  (2) Data link layer = connects data to the protocol  (7) Application layer = interacts with OS of CAN device

 Since CAN is so widely used CAN chips are cheap  Reliability and error resistance of CAN calculated in mathematical model shown to have only 1 undetected error in 1000 years  Has world wide acceptance  Higher layer protocols defined for data intensive applications

 Data frame – sends data  Remote frame – requests data  Error frame – reports an error  Overload frame – reports a node is overloaded

 SOF – 1 dominant bit  Arbitration Field – message ID + RTR

 Control Field -Length of the data field to follow -For remote frame DLC is ignored, data field is always zero

 CRC Field – CRC segment + delimiter bit  ACK Field – acknowledgement bit + delimiter bit

 SOF – 1 bit  Arbitration field – 12 or 32 bits  Control field – 6 bits  Data field – up to 8 bytes  CRC field – 16 bits  ACK field – 2 bits  EOF -7 bits  IFS – 3 bits

 Off-road vehicles require more messages  11 bit message ID -> 29 bit  Use IDE to determine format: › 0 = 11 bit › 1 = 29 bit  Extended frame has trade-offs: › Bus latency time is longer › More bandwidth required › Error detection performance decreased

 Error occurs: bit stuffing, CRC incorrect, etc.  Error flag set followed by recessive delimiter and interframe

 Errors are caught quickly and have short recovery times: Error Frame LengthBaud RateTotal error recovery time (error frame + interframe) 14 bits1 Mbit/sec uSec 14 bits500 kBit/sec uSec 14 bits250 kBit/sec uSec 20 bits1 Mbit/sec uSec 20 bits500 kBit/sec uSec 20 bits250 kBit/sec uSec

 Overload flag – 6 dominant bits so all nodes detect overload, messaging ceased

 Producer/consumer  All messages are acknowledged for consistency (error if inconsistent or unacknowledged)  Nodes can accept or decline message filitering

 CAN uses message ID of the node to prevent collisions – high priority first  Uses bitwise arbitration as follows: › Node sends SOF with dominant level  Non-sending nodes begin listening › Node sends next bit and compares output signal with actual bus level  If sent recessive, detects dominant, then begins listening, else sends next bit › Transmits the rest of the message if it transmits all arbitration bits

 Node A = (high priority)  Node B =  B send a recessive, detects dominant, then listens 1 st arbitration bit2 nd arbitration bit3rd arbitration bit Node A100 Node B11listen Bus level100

 Errors detected by: › Bit monitoring › Checksum Check › Variable bit stuffing with a stuff width of 5 › Frame check › Acknowledge Check  Defective frames are aborted and retransmitted

 Malfunctions that would disrupt the system: › Transmitting Error from malfunctioning node › Receiving Error from malfunctioning node  CAN determines permanent vs. temporary malfunctions › Transmit error counter › Receive error counter

 Based on the counters, a node is in one of the following states: › Error Active  Transmit and receive counters <128 › Error Passive  Transmit or receive counters >127 › Bus-Off  Transmit error counter >255

 ISO is the most common standard for the physical layer  Nodes connected by 2 wires: CAN_H and CAN_L  Bus level determined by: › Vdiff = Vcan_h – Vcan_l › 2V for recessive, 0V for dominant  Bus terminated by 120 Ω resistors to suppress electrical reflections on the bus  Electromagnetic interferences are minimized with the differential voltage between CAN_H and CAN_L  At a maximum baud rate of 1 Mbit/sec a bus can be up to 40m long › At <10 kbit/sec can have up to 5000 m bus

 “Road vehicles – Controller area network (CAN)” 1993  Contains: › Data link layer and physical signaling › High speed medium access unit › Low speed fault tolerant medium dependant interface › Time triggered communication

 Users + manufacturers develop and support CAN  Based on participation and initiative  Represented at ISO and IEC committees

 Higher layer protocol adds: › Network management › Device monitoring › Communication between nodes  Requires CANopen nodes to have: › Communication unit › State machine › Object dictionary

 Application layer protocol adds 4 required objects: › Identity object › Connection object › Message router object › DeviceNet object

 Hewlett-Packard  Lockheed Martin  Boeing  NASA  GE Medical  Siemens Medical  John Deere

 Vehicle Spy (Vspy)  NETCAR-Analyzer  Volcano Network Architect (VNA)  Ability to: › Read bus signals › Transmit messages › Log data › Write to ECU memory

 ECU  TCU  CCU  SSM15  SSM25  CMU

 LIN-Bus (Local Interconnect Network)  Ethernet  RS232  Universal serial bus

 CAN specification 2.0 CAN specification 2.0 › A = standard format › B = extended format  ISO › Specific requirements on the sub layers of the data link layer and physical layer  CANopen specification CANopen specification  Book: A comprehensible guide to CAN  Book: Embedded networking with CAN and CANopen

 [1]Wilfried Voss. (2005). A Comprehensible Guide to Controller Area Network. Greenfield: Copperhill Technologies Corporation.  [2]Pazul Keith. (2002). Controller Area Network (CAN) Basics. In Microchip.  [3]CiA. (2001). Can physical layer. Retrieved 1 24, 2012, from cia.de/index.php?id=systemdesign-can-physicallayerhttp:// cia.de/index.php?id=systemdesign-can-physicallayer  [4]International Standard ISO First edition Road vehicles - Controller area network (CAN).  [5]Robert Bosch. (1991). CAN Specification. Robert Bosch GmbH.  [6]National Instruments. (2012). Controller Area Network (CAN) Overview. Retrieved 2 2, 2012, from  [7]Vehicle Spy. ( ). Vehicle Spy Professional. Retrieved 2 4, 2012 from  [8]CANopen. CANopen USA. Retrieved 2 4, 2012 from  [9]Real Time Automation. DeviceNet Introduction. Retrieved 2 4, 2012 from