1 Copyright © 2014 Tata Consultancy Services Limited Controller Area Network (CAN) By Renukacharya A. Thakare.

Slides:



Advertisements
Similar presentations
Contents Overview Data Information Frame Format Protocol
Advertisements

Introduction to CAN.
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,
The ALOHA Protocol “Free for all”: whenever station has a frame to send, it does so. –Station listens for maximum RTT for an ACK. –If no ACK after a specified.
Ethernet – CSMA/CD Review
William Stallings Data and Computer Communications 7th Edition
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:
1 Fall 2005 Hardware Addressing and Frame Identification Qutaibah Malluhi CSE Department Qatar University.
1 Version 3.0 Module 6 Ethernet Fundamentals. 2 Version 3.0 Why is Ethernet so Successful? In 1973, it could carry data at 3 Mbps Now, it can carry data.
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
Copyright © 2003, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Chapter 6 Multiple Radio Access.
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
Dave Mills CANbus: A brief introduction Incorporating: The Fujitsu status Dave Mills Queen Mary, University of London.
CAN PROTOCOL Characterization Presentation
Review on Networking Technologies Linda Wu (CMPT )
 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO  CiA  CANopen  DeviceNet  Applying.
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
The University of New Hampshire InterOperability Laboratory Serial ATA (SATA) Protocol Chapter 10 – Transport Layer.
Chapter 4.  Understand network connectivity.  Peer-to-Peer network & Client-Server network  Understand network topology  Star, Bus & Ring topology.
Chapter Five Network Architecture. Chapter Objectives  Describe the basic and hybrid LAN technologies  Describe a variety of enterprise-wide and WAN.
Review: Medium Access Control Sublayer –What is the problem to be addressed in this sublayer? –Protocols that allow collision Pure ALOHA Slotted ALOHA.
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.
9/11/2015 5:55 AM1 Ethernet and CSMA/CD CSE 6590 Fall 2010.
Ethernet. Ethernet Goals Simplicity Low Cost Compatibility Address flexibility Fairness –All nodes have equal access to the network High speed Stability.
Ethernet Two nodes transmit at the same time
1 LAN Technologies and Network Topology. 2 Direct Point-to-Point Communication.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
Ch. 16 High-Speed LANs The Emergence of High- Speed LANs Trends –Computing power of PCs has continued to grow. –MIS organizations recognize the.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
LECTURE9 NET301. DYNAMIC MAC PROTOCOL: CONTENTION PROTOCOL Carrier Sense Multiple Access (CSMA): A protocol in which a node verifies the absence of other.
Chapter 2 – X.25, Frame Relay & ATM. Switched Network Stations are not connected together necessarily by a single link Stations are typically far apart.
Network Technologies Chapter 2. Approaches to Network Communication Connection-Oriented –Circuit-switched –A dedicated connection (circuit) is formed.
ECGR 6185 Advanced Embedded Systems Controller Area Network University Of North Carolina Charlotte Bipin Suryadevara.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
CSCI 465 D ata Communications and Networks Lecture 19 Martin van Bommel CSCI 465 Data Communications & Networks 1.
CSC 311 Chapter Eight FLOW CONTROL TECHNIQUES. CSC 311 Chapter Eight How do we manage the large amount of data on the network? How do we react to a damaged.
CCNA 3 Week 4 Switching Concepts. Copyright © 2005 University of Bolton Introduction Lan design has moved away from using shared media, hubs and repeaters.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This training course provides an overview of Message Frames.
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.
LOCAL AREA NETWORKS. CSMA/CD Carrier Sense Multiple Access with Collision Detection The CSMA method does not specify the procedure following a collision.
By: M.Nadeem Akhtar1 Data Communication Ch 10. By: M.Nadeem Akhtar2 Networks?  LAN  MAN  WAN.
17 - Winter 2005 ECE ECE 766 Computer Interfacing and Protocols 1 Local Area Networks Need for high performance communications for physically close devices.
Medium Access Control Sub Layer
Multiple Access.
Enterprise network 8.1:Introduction 8.2:LANs 8.3:Ethernet / IEEE :Token ring 8.5:Bridges.
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
LOCAL AREA NETWORKS. CSMA/CA In a wired network, the received signal has almost the same energy as the sent signal because either the length of the cable.
5: DataLink Layer 5a-1 Multiple Access protocol. 5: DataLink Layer 5a-2 Multiple Access Links and Protocols Three types of “links”: r point-to-point (single.
Controller Area Network (CAN) is a broadcast, differential serial bus standard, originally developed in the 1980s by Intel and Robert Bosch GmbH, for.
IEEE 802.X Standards The Institute of Electrical and Electronics Engineers (IEEE) has developed a series of networking standards to ensure that networking.
LECTURE9 NET301 11/5/2015Lect 9 NET DYNAMIC MAC PROTOCOL: CONTENTION PROTOCOL Carrier Sense Multiple Access (CSMA): A protocol in which a node verifies.
EE 122: Lecture 6 Ion Stoica September 13, 2001 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
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 Ethernet CSE 3213 Fall February Introduction Rapid changes in technology designs Broader use of LANs New schemes for high-speed LANs High-speed.
Chapter Objectives After completing this chapter you will be able to: Describe in detail the following Local Area Network (LAN) technologies: Ethernet.
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
National Institute of Science & Technology TECHNICAL SEMINAR PRESENTATION Presented by TRUPTI RANJAN BEHERA Roll no: EI Under the Guidance of.
Example DLL Protocols 1. High-Level Data Link Control (HDLC).
Lab 7 – CSMA/CD (Data Link Layer Layer)
CS 457 – Lecture 6 Ethernet Spring 2012.
Asynchronous Serial Communications
Data Communication Networks
Controller Area Networks (CAN)
Dr. John P. Abraham Professor UTPA
Presentation transcript:

1 Copyright © 2014 Tata Consultancy Services Limited Controller Area Network (CAN) By Renukacharya A. Thakare

2 CAN is used in a wide area of applications Automotive Medical Factory automation Railway Maritime Machine control Building automation Application

3 Brakes Dashboard Power windows Central locking Engine Airbag Mirrors Gearbox Lights Air conditioning Car Body components Typically low-speed CAN Bus Power Train components Typically high-speed CAN Bus Application

4 Copyright © 2014 Tata Consultancy Services Limited What is CAN?  Acronym for Controller Area Network, is a serial communication protocol.  CAN is a multi-master bus with an open, linear structure with one logic bus line and nodes. The number of nodes is not limited by the protocol.  In the CAN protocol, the bus nodes do not have a specific address. Instead, the address information is contained in the identifiers of the transmitted messages, indicating the message content and the priority of the message.  The number of nodes may be changed dynamically without disturbing the communication of the other nodes.  Multicasting and Broadcasting is supported by CAN.

5 Prior to the development of CAN, communication between the growing number of electronic control systems within a vehicle was primarily managed by point-to-point wiring. How It all Began

6 This is accomplished by adding some CAN specific hardware to each control unit that provides the protocol for transmitting and receiving information via the CAN bus. Now that we can see the clear advantage of CAN technology over previous ways of control unit communication within a vehicle, let’s consider some CAN basics. How It all Began

7 CAN Features  Low cost Protocol devices are low cost Good price to performance ratio Low cost twisted pair cables  Reliable Sophisticated error detection and error handling High immunity against EMI Automatic retransmission of erroneous messages Recovery of temporary errors Automatic switch off of defective nodes Guaranteed data consistency  Real-Time High baud rate Short message length Low latency Multi master Arbitration  Flexible No. of nodes not limited by protocol (only by physical layer) Changes possible without disturbing communication  Fast 8 byte limit on messages Bus access prioritised 1Mbps baud rate

8 Copyright © 2014 Tata Consultancy Services Limited 1.CAN specification divided into two layers: Data link layer Physical layer 2.Physical layer performs functions of physical signaling, encoding, bit timing and bit synchronization. 3.Data link layer (DLL) performs bus arbitration, message framing, data security, message validation, error detection. CAN – How it operates ?

9 Copyright © 2014 Tata Consultancy Services Limited CAN

10 Copyright © 2014 Tata Consultancy Services Limited  The message is transmitted in logical bit values. CAN does not specify the physical layer medium.  These bits can be “recessive” or “dominant”.  During simultaneous transmission of “recessive” and “dominant” bits, the resulting bus value will be “dominant”.  When a CAN message is not active, bus is IDLE (recessive bits on bus).  Message is encoded in NRZ (non return to zero format). CAN - Physical Layer

11 Copyright © 2014 Tata Consultancy Services Limited Data link layer – Bus Arbitration 1.There are two bus states, called "dominant" and "recessive". 2.The bus logic uses a "Wired-AND" mechanism, that is, "dominant bits“ (equivalent to the logic level "Zero") overwrite the "recessive" bits (equivalent to the logic level "One" ). 3.The CAN protocol handles bus accesses according to the concept called “Carrier Sense Multiple Access with Arbitration on Message Priority”. 4.If two or more bus nodes start their transmission at the same time after having found the bus to be idle, collision of the messages is avoided by bit wise arbitration. Each node sends the bits of its message identifier and monitors the bus level. 5.This arbitration concept avoids collisions of messages and the most important message(lower binary value) is always sent first without time loss.So, this is also called as Non-Destructive arbitration using CSMA/CD protocol.

12 Data link layer – Bus Arbitration  Nodes who are lost in the arbitration process automatically try to repeat their transmission once the bus returns to idle state.

13 Copyright © 2014 Tata Consultancy Services Limited Message transfer – 4 types Data frame : carries data from transmitter to receiver Remote frame : A station acting as a receiver for certain data can initiate the transmission of the respective by its source node by sending a remote frame Error frame : sent by any unit/node upon detecting an error Overload frame: by receiver for internal condition of receiver which requires a delay of new frame

14 Copyright © 2014 Tata Consultancy Services Limited  A Data Frame is generated on an autonomous basis by a CAN node(whenever a node wishes to transmit data). Here, we see an example of a Standard CAN Data Frame. The frame begins with a dominant Start Of Frame bit for hard synchronization of all nodes. Data link layer – Data Frame

15 Data link layer – Remote Frame The remote frame is same as the Data frame with the following differences: 1.The RTR bit is transmitted as dominant bit in data frame, whereas in remote frame it is transmitted as recessive bit. 2.Remote frame doesn't contain data field.

16 An Error Frame is generated by any node that detects a bus error (with the exception of an Acknowledge Error). The Error Frame consists of two fields, an Error Flag field followed by an Error Delimiter field. The Error Delimiter consists of eight recessive bits and allows the bus nodes to restart bus communications after an error. There are, however, two forms of Error Flag fields. The form of the Error Flag field depends on the error status of the node that transmits the error frame. Data link layer – Error Frame

17 Data link layer – Overload Frame  An Overload Frame has the same format as an active Error Frame, such as that generated by an error active node. An Overload Frame, however, can only be generated during the Inter frame Space.  The Overload Frame consists of two fields, an Overload Flag followed by an Overload Delimiter. The Overload Flag consists of six dominant bits followed by Overload Flags generated by other nodes, like an active error flag, with a maximum of twelve dominant bits. The Overload Delimiter consists of eight recessive bits.  An Overload Frame can be generated by a node if, due to internal conditions, the node is not yet able to start reception of the next message. A node may generate a maximum of two sequential Overload Frames to delay the start of the next message.

18 Copyright © 2014 Tata Consultancy Services Limited Data link layer – Error Detection The CAN protocol provides sophisticated error detection mechanisms. The following errors can be detected: 1.Cyclic Redundancy Check, or CRC Errors 2.Acknowledge Errors 3.Form Errors 4.Bit Errors 5.Stuff Errors.

19  Detected errors are made public to all other nodes via Error Frames.  The transmission of erroneous message is aborted and the frame is repeated ASAP.  Each CAN node is in one of three error states "error active", "error passive" or "bus off" according to the value of their internal error counters.  The error-active state is the usual state after reset. The bus node can then receive and transmit messages and transmit active Error Frames (made of dominant bits) without any restrictions. During CAN communication, the error counters are updated according to quite complex rules. For each error on reception or transmission, the error counters are incremented by a certain value. For each successful transaction, the error counters are decremented by a certain value. The error active state is valid as long as both error counters are smaller than or equal to 127. Data link layer – Error Handling

20 Copyright © 2014 Tata Consultancy Services Limited If either the receive or the transmit error counter has reached the value of128, the node switches to the error-passive state. In the error-passive state,messages can still be received and transmitted, although, after transmission of a message the node must suspend transmission. It must wait 8 bit times longer than error-active nodes before it may transmit another message. In terms of error signaling, only passive Error Frames (made of recessive bits) may be transmitted by an error-passive node. If both error counters go below 128 again due to successful bus communication, the node switches back to the error-active state. One feature of the CAN protocol is that faulty nodes withdraw from the bus automatically. The bus-off state is entered if the transmit error counter exceeds the value of 255. All bus activities are stopped which makes it temporarily impossible for the station to participate in the bus communication. During this state, messages can be neither received nor transmitted. To return to the error active state and to reset the error counter values, the CAN node has to be reinitialized. Data link layer – Error Handling

21 Copyright © 2014 Tata Consultancy Services Limited Thank You