January 9, 2008BAE 5030-363 In-Vehicle Networking Lecture 1 Introduction to CAN (Controller Area Network) BAE 5030 – 363 Spring 2009 Instructors: Marvin.

Slides:



Advertisements
Similar presentations
Contents Overview Data Information Frame Format Protocol
Advertisements

Introduction to CAN.
Introduction to CANBUS
CCNA3: Switching Basics and Intermediate Routing v3.0 CISCO NETWORKING ACADEMY PROGRAM Switching Concepts Introduction to Ethernet/802.3 LANs Introduction.
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
1 ICS 156: Lecture 2 (part 2) Data link layer protocols Address resolution protocol Notes on lab 2.
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,
SAE J1939 / ISO Tractor ECU Lecture 7 Tractor ECU
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.
Channel Access Methods When several devices are connected to a single channel, there must be some rules to govern these devices as they access, transmit,
1 I.S Introduction to Telecommunication in Business Chapter 6 Network Hardware Components Dr. Jan Clark FALL, 2002.
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
1 Lecture 24: Interconnection Networks Topics: communication latency, centralized and decentralized switches (Sections 8.1 – 8.5)
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
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.
 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.
Computer Communication & Networks
EECS 373 Controller Area Networks Samuel Haberl Russell Kuczwara Senyuan Zhong.
Introduction to Media Access Control Protocols Yerang Hur and Jiaxiang Zhou System Design Research Lab. Dept. of Computer and Information Science.
1 Computer Networks Course: CIS 3003 Fundamental of Information Technology.
SERIAL BUS COMMUNICATION PROTOCOLS
IP Network Basics. For Internal Use Only ▲ Internal Use Only ▲ Course Objectives Grasp the basic knowledge of network Understand network evolution history.
Enhanced CSMA Additional improvement  Use CSMA access  Listen while transmitting  Stop immediately if collision sensed  Called collision detection.
Chapter Five Network Architecture. Chapter Objectives  Describe the basic and hybrid LAN technologies  Describe a variety of enterprise-wide and WAN.
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
Chapter 2 Network Design Essentials Instructor: Nhan Nguyen Phuong.
ECE 371 Controller Area Network (CAN) Overview. Controller Area Network The development of CAN began when more and more electronic devices were implemented.
جلسه دوازدهم شبکه های کامپیوتری به نــــــــــــام خدا.
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Fundamentals CE
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:
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
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.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 16.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose This training course provides an introduction to Controller.
Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
ECGR 6185 Advanced Embedded Systems Controller Area Network University Of North Carolina Charlotte Bipin Suryadevara.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
LAN Topologies and Standards Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
Access to Shared Media - Media Access Control protocols RD-CSY10171.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This training course provides an overview of Message Frames.
In-Vehicle Networking
Network Protocols n ISO OSI 7-layer model n TCP/IP suite l TCP/UDP l IP l Ethernet/Token Ring l ICMP.
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.
CAN Controller Area Network Wilmer Arellano, Summer 2007.
Design of Technical Condition Monitoring System of Vehicle Based on CAN Bus Authors : Ruili Zeng, Yunkui Xiao Department of Automobile Engineering Academy.
SAE J1939 / ISO Network Management
1 Lecture Controller Area Networks Dr. Tony Grift
IEEE 802.X Standards The Institute of Electrical and Electronics Engineers (IEEE) has developed a series of networking standards to ensure that networking.
ISO 11783/SAE J1939 Network Layer Lecture 6 Network Layer ISO Part 4, J BAE Spring 2009 Instructor: Marvin Stone Biosystems and.
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.
Simple LAN Topologies  Terminators stop signals after they have reached their destination  Signal bounce –Phenomenon in which signals travel endlessly.
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)
شبکه محلی کنترلر Controller Area Network (CAN)
Controller Area Networks (CAN)
7- chapter Seven Local Area Networks (LAN)
Presentation transcript:

January 9, 2008BAE In-Vehicle Networking Lecture 1 Introduction to CAN (Controller Area Network) BAE 5030 – 363 Spring 2009 Instructors: Marvin Stone Biosystems and Agricultural Engineering Oklahoma State University

January 9, 2008BAE Automotive Body Network

January 9, 2008BAE Hierarchical networks are here today VW Phaeton Electrical parts: 11,136 Communication: 61 ECUs in total External diagnosis: 31 ECUs via serial communication Optical bus for high bandwidth Infotainment-data sub-networks based on proprietary serial bus 35 ECUs connected by 3 CAN-busses sharing approximately 2500 signals in 250 CAN messages

CAN applications are broad January 9, 2008BAE ECUs 33 CAN nodes k CAN Networks Ntech RT500 Fertilizer Applicator

January 9, 2008BAE J1850 pier to pier prioritized messages Costs and Speeds for Automotive Networks Speed [bit/s] LIN master-slave single wire bus no quartz CAN-B event triggered fault tolerant dual wire 25.6M 20K 2M 1M 125K incremental cost per node [$] ISO CAN-C event triggered Quad wire Byteflight optical bus TTx (in definition) time triggered fault tol, dependable 2x2 wire D2B, MOST token ring optical bus

January 9, 2008BAE What is CAN? –CAN = Controller Area Network Serial data communications protocol for real-time application using a multiple access bus –Messages have assignable priority »most critical can dominate during heavy load –Messages are short (controlled length) »opportunities to insert a new message come often –CAN provides multiplexed serial communications –Reduction in wiring complexity –Better information sharing –All communications share the same communication path –Low probability of an undetected error 4.7 x x message error rate –For a message error rate of 25/sec: 1 undetected error per 10,000 hours operation

January 9, 2008BAE An overview of CAN based networking Elements of the CAN protocol –Message components Identifier / Data –Bus Access - Arbitration / Prioritization CSMA/CR (carrier sense multiple access / collision resolution –Bitwize priority access strategy –Non-destructive collisions –Error Detection / Error Confinement –Filtering –Other features In Frame Acknowledgement RTR

January 9, 2008BAE Capacity Comparison

January 9, 2008BAE Capacity and Performance (Based on 250 KBaud) Use of bus bandwidth by messages –100 messages per second (10 ms repetition) =5% Torque/Speed control on engine Hitch control –10 messages per second (100 ms repetition) =0.5% Throttle position GPS Lat/Lon data Implement application rate control (process data) –1 message per second (1s repetition) =0.05% Display updates System status

January 9, 2008BAE Message latency (Based on 250 KBaud) 134 bit message 4  s per bit = 536  s = 0.5 ms per message max Highest priority message –must wait no more than ~0.5 ms Low priority messages –must wait till higher priority messages clear –latency may be long at high bus loads

January 9, 2008BAE Harness Hell!

January 9, 2008BAE Conventional Wiring (No Bus) Serial Communication Links

January 9, 2008BAE A Simple CAN Application (Serial Bus)

January 9, 2008BAE Multiplexed communication

January 9, 2008BAE Typical ECU Components

January 9, 2008BAE ECU Connection to the bus ECU 1ECU 2 CAN_H CAN_L Terminator CAN_H CAN_L CAN_H

January 9, 2008BAE CAN - continued Developed by Bosch GmBh (See ) –About 1986, Version 2.0 in 1991 for auto apps. Version 1.2 (Equivalent to 2.0A) –11 bit ID (not interoperable with 29 bit 2.0b) Version 2.0 (2.0A + 2.0B) –2.0B - 11 and 29 bit ID »11 and 29 are compatible on same bus »11 bit only 2.0B is called 2.0B passive »29 bit (and 11bit) 2.0B called 2.0B active –CAN provides only Data Link functions Media access control Logical link control

January 9, 2008BAE Components of a “CAN Protocol” ISO 7498 – Open Systems Interconnection (OSI) To form a complete communications system you need more than CAN

January 9, 2008BAE Network Protocols based on CAN SAE J1939 Heavy Duty Diesel Systems –On-Highway Truck –Agricultural Equipment –Construction Equipment –Generator Sets ISO Ag and Forestry Equipment NMEA 2000/IEC Marine / GPS / Navigation CANopen Broad industrial applications - (CiA) EN DeviceNet Industrial automation – PLCs (Allen Bradley) CAN Kingdom Meta protocol - (Kvaser)

January 9, 2008BAE Physical Signaling Example (ISO 11878) CAN Arbitration Lower numbered identifiers assume higher priority

January 9, 2008BAE Consequences of identifier prioritization in CAN Unique Identifiers –Developer must assure all identifiers within a bus system are unique Resyncronization –CAN controllers assure message transmissions always start at the same time among controllers on the bus All messages queued are sent simultaneously –System appears to have one large queue where highest priority message is sent first

January 9, 2008BAE CAN Frame Components 11 bits or 29 bits IdentifierData 0 to 8 bytes (0 to 64 bits) CAN Frame (up to 134 bits) Serial bit streamStart

January 9, 2008BAE CAN Frame Format - CAN 2.0B 11 bits or 29 bits IdentifierData 0 to 8 bytes (0 to 64 bits) CAN Frame (up to 134 bits)

January 9, 2008BAE Acknowledgement In-Frame acknowledgement –Any receiver of a message that receives a message correctly asserts a dominant acknowledge bit within the frame of the message being sent. Transmitter can know message was received by some receiver –Further message confirmation must be built at a higher level in the protocol –Transmitter alone on a bus will go bus OFF Receiver with an error –Transmits an error frame immediately after the message causing a Frame Error for all receivers

January 9, 2008BAE Remote transmission request (RTR) Request message hardware feature –Allows setting a bit of an identifier to request a controller with a matching identifier to send the message –Can allow a response of a queued message without CPU interaction –Commonly not exploited in higher level standardized protocols

January 9, 2008BAE Error Detection 5 Error Types Detected –Bit Error (Sent bit doesn’t match monitored bit) –Stuff Error (more than 6 successive in one state) –CRC error –Form Error –Acknowledge Error Probability of an undetected error –4.7 x x message error rate for a message error rate of 25/sec, 1 undetected error per 10,000 hours operation

January 9, 2008BAE Message Filtering - Example MASK MATCH 1 = Care, 0= Don’t Care Accept if: (ID AND MASK) XOR MATCH = IDENTIFIER ID AND MASK = (ID AND MASK) XOR MATCH = Pattern must match

January 9, 2008BAE Bus Timing Bus bit rate is controlled by bit time –1 MBaud  1  s/bit –250 KBaud  4  s/bit Bit time is controlled by –Time Quanta (T Q ) –Bit segment settings (no. of T Q per bit) –Bit Time = TQ * (Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2)

January 9, 2008BAE Bit Timing Microchip CAN Seminar, 2006

January 9, 2008BAE Propagation segment Twice the sum of Driver, cable, and comparator delay (See Microchip AN754) Propagation delay of cable –Typically 60-70% of c for 120 Ohm cables –Example: Driver/Comparator delays – See datasheet –50 ns t prop = 2 ⋅ (t cmp + t bus + t drv )

January 9, 2008BAE Error handling Microchip CAN Seminar, 2006

January 9, 2008BAE Collaborative Error Frame Generation Error Frames are generated for any error detected by a CAN protocol controller CAN protocol controller responds with an error echo if another node generates an error frame Microchip CAN Seminar, 2006

January 9, 2008BAE CRC errors Microchip CAN Seminar, 2006

January 9, 2008BAE Acknowledge Errors Microchip CAN Seminar, 2006

January 9, 2008BAE Form Errors Microchip CAN Seminar, 2006

January 9, 2008BAE Stuff Errors Microchip CAN Seminar, 2006

January 9, 2008BAE Bit Errors Microchip CAN Seminar, 2006

January 9, 2008BAE System Fault Confinement Microchip CAN Seminar, 2006

January 9, 2008BAE System Fault Confinement Microchip CAN Seminar, 2006

January 9, 2008BAE System Fault Confinement Microchip CAN Seminar, 2006