Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
13 views38 pages

CAN Protocol Introduction

The document provides an introduction to the Controller Area Network (CAN) protocol, detailing its history, characteristics, and applications in automotive and industrial contexts. It highlights the development of CAN by Robert Bosch in the mid-1980s and its evolution into a standardized communication method for various electronic control units in vehicles. Additionally, it outlines the technical aspects of CAN, including its multi-master functionality, error detection mechanisms, and bus topology.

Uploaded by

devipriyapmenon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views38 pages

CAN Protocol Introduction

The document provides an introduction to the Controller Area Network (CAN) protocol, detailing its history, characteristics, and applications in automotive and industrial contexts. It highlights the development of CAN by Robert Bosch in the mid-1980s and its evolution into a standardized communication method for various electronic control units in vehicles. Additionally, it outlines the technical aspects of CAN, including its multi-master functionality, error detection mechanisms, and bus topology.

Uploaded by

devipriyapmenon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

www.kpit.

com

CAN PROTOCOL -
INTRODUCTION

AUTOMOTIVE COMMUNICATION
PROTOCOLS
Usage Guidelines

• Do not forward this document to any non- authorized mail ID.


• Contents of this material cannot be used in any other internal or external
document without explicit permission from Learning Organization at KPIT.

2 6/20/2018 © KPIT Technologies Limited


Copy Right Guidelines

• © 2014 KPIT Technologies Limited, Bangalore, India. All Rights Reserved.

• KPIT Technologies Limited believes the information in this document is


accurate as of its publication date; such information is subject to change
without notice. KPIT Technologies Limited acknowledges the proprietary
rights of other companies to the trademarks, product names and such other
intellectual property rights mentioned in this document. Except as expressly
permitted, neither this documentation nor any part of it may be reproduced,
stored in a retrieval system, or transmitted in any form or by any means,
electronic, mechanical, printing, photocopying, recording or otherwise,
without the prior permission of KPIT Technologies Limited and/ or any named
intellectual property rights holders under this document.

3 6/20/2018 © KPIT Technologies Limited


Session Objectives
• After undergoing this session the students will be able to
understand:
– Concepts of CAN protocol

© KPIT Technologies Limited


Foundation of CAN
• The foundations of the CAN concept were laid, at a given period, on the
basis of a state of the market and technology.

• For a long time, many companies developed their own solutions for In-
vehicle communication.

• Nearly all of these solutions are known as ‘proprietary’.

• Because of the different interests of each of the companies involved, this has
led to a significant fragmentation of the market.

5 6/20/2018 © KPIT Technologies Limited


History

• Controller Area Network (CAN) was initially created by German


automotive system supplier Robert Bosch in the mid-1980s for
automotive applications as a method for enabling robust serial
communication

• The goal was to make automobiles more reliable, safe and fuel-
efficient while decreasing wiring harness weight and complexity

6 6/20/2018 © KPIT Technologies Limited


History
• CAN was first developed by Robert Bosch GmbH, Germany in 1986 when they
were requested to develop a communication system between three ECUs
(electronic control units) in vehicles designed by Mercedes.

• They found that point to point communications was no longer suitable in this
situation. The need for a multi-master communication system became
imperative.

• The first CAN silicon was then fabricated in 1987 by Intel

7 6/20/2018 © KPIT Technologies Limited


History

• 1983 Start of the Bosch internal project to develop an in-vehicle network

• 1986 Official introduction of CAN protocol

• 1987 First CAN controller chips from Intel and Philips Semiconductors

• 1991 Bosch’s CAN specification published

8 6/20/2018 © KPIT Technologies Limited


History

• 1991 CAN Kingdom CAN-based higher-layer protocol introduced by Kvaser

• 1992 CAN in Automation (CiA) international users and manufacturers group


established

• 1992 CAN Application Layer (CAL) protocol published by CiA

• 1992 First cars from Mercedes-Benz used CAN network

9 6/20/2018 © KPIT Technologies Limited


History
• 1993 ISO 11898 standard published

• 1994 1st international CAN Conference (iCC) organized by CiA

• 1994 DeviceNet protocol introduction by Allen-Bradley

• 1995 ISO 11898 amendment (extended frame format) published.

• 1995 CANopen protocol published by CiA

• 2000 Development of the time-triggered communication protocol


for CAN (TTCAN)

10 6/20/2018 © KPIT Technologies Limited


Concept of CAN
• CAN was designed to operate in environments subject to a high level of
pollution, primarily due to electromagnetic disturbance

• CAN achieves transmission reliability by an efficient error detection


mechanism

• CAN has multi-master functionality to increase the possibility of providing


fast recovery from errors after their detection

• Bitwise arbitration principle provides a ‘non-destructive’ arbitration method,


when several stations attempt to send a message simultaneously

11 6/20/2018 © KPIT Technologies Limited


Introduction
• Controller Area Network (CAN) is a serial network

• A network among sensors, microcontrollers and actuators

• Now popular in industrial automation and agricultural


applications

• Two-wire system, well suited for high speed applications using


short messages

• Offers communication rate up to 1 Mbits/sec allowing real-


time control

12 6/20/2018 © KPIT Technologies Limited


Introduction
• CAN is also used in many other industrial automation and control
applications

• Has an OSI session layer known as Time Triggered CAN (TTCAN)

• Has a sub-bus known as the Local Interconnect Network (LIN)

• CAN is documented in ISO 11898 (for applications up to 1Mbps) and ISO


11519 (for applications up to 125 Kbps)

13 6/20/2018 © KPIT Technologies Limited


Main Characteristics of CAN

• Bus topology
• Bus speed
• Identification of the contents of the message
• Priority of messages
• Multi master
• Bus access control : Non destructive bit wise arbitration.
• Small messages (max 8 data bytes) protected by checks.

14 6/20/2018 © KPIT Technologies Limited


Industrial Applications of CAN
• CAN controllers and interface chips are available as low-cost, off-the-
shelf components

• They operate at high, real-time speeds, and in harsh environments

• All these properties have led to CAN also being used in a wide range of
applications other than the car industry

15 6/20/2018 © KPIT Technologies Limited


Industrial Applications of CAN
The benefits of reduced cost and improved reliability that the car industry gains
by using CAN are now available to manufacturers of a wide range of products.
For Example :

• Marine control and navigation systems

• Elevator control systems

• Agricultural machinery

• Production line control systems

• Machine tools

16 6/20/2018 © KPIT Technologies Limited


ISO Standardization
• At present (2007), the principal standards relate to motor vehicle
applications and are known by the following references

• ISO 11898-x – road vehicles – interchange of digital information. This is the


cornerstone of the CAN standard, consisting of five documents:
– ISO 11898-1 (data link layer and physical signaling);
– ISO 11898-2 (high-speed medium access unit);
– ISO 11898-3 (low-speed fault-tolerant medium-dependent interface);
– ISO 11898-4 (time-triggered CAN);
– ISO 11898-5 relates to high-speed CAN and low-power applications.

17 6/20/2018 © KPIT Technologies Limited


ISO Standardization

18 6/20/2018 © KPIT Technologies Limited


ISO-OSI Reference Model
• Most network applications follow a layered approach to system
implementation

• This systematic approach enables interoperability between products from


different manufacturers

• A standard was created by the International Standards Organization (ISO) as


a template to follow for this layered approach. It is called the ISO Open
Systems Interconnection (OSI) Reference Model

19 6/20/2018 © KPIT Technologies Limited


ISO-OSI Reference Model

20 6/20/2018 © KPIT Technologies Limited


21 6/20/2018 © KPIT Technologies Limited
Data Link Layer
• The data link layer is subdivided into two sublayers MAC and LLC

• The MAC sublayer is the core of the CAN protocol. Its function is to present
messages received to the LLC sublayer, and to accept messages for
transmission from the LLC sublayer

• The MAC sublayer is responsible for the following operations:


– Message framing
– Arbitration
– Acknowledgement
– Error detection and
– Error signaling

22 6/20/2018 © KPIT Technologies Limited


Data Link Layer
• LLC (logical link control) sublayer

• The LLC sublayer is concerned with the following:


– Message filtering,
– Overload notification,
– The error recovery procedure.

23 6/20/2018 © KPIT Technologies Limited


24 6/20/2018 © KPIT Technologies Limited
25 6/20/2018 © KPIT Technologies Limited
Physical Layer
• The physical layer – layer 1 – comprises three sublayers:
– PLS (physical signalling)
– PMA (physical medium attachment)
– MDI (medium-dependent interface)

• The physical layer specifies the way in which the signal is transmitted

• It ensures the physical transfer of bits between the different nodes

26 6/20/2018 © KPIT Technologies Limited


Physical Layer
• Physical layer is mainly responsible for the following operations:
– Bit representation (coding, timing, etc.)
– Bit synchronization
– Definition of the electrical and optical levels of the signals
– Definition of the transmission medium

27 6/20/2018 © KPIT Technologies Limited


CAN Interface and Network

28 6/20/2018 © KPIT Technologies Limited


CAN Bus-General

• The nodes taking part in communication using CAN are usually arranged in
bus topology

• All stations independently generate messages concerning their respective


tasks at random (event-triggered) instants

• The transmission requests contend with each other for access to the bus,
leading to latencies which are variable rather than constant

29 6/20/2018 © KPIT Technologies Limited


CAN Bus-General
• The nodes use different principles of arbitration

• CSMA/CD
– Carrier Sensor Multiple Access/Collision Detect (CSMA/CD)

– When several stations try to access the bus simultaneously when it is at


rest, a contention message is detected

– The transmission is then halted and all the stations withdraw from the
network

– After a certain period, different for each station, each station again tries
to access the network

30 6/20/2018 © KPIT Technologies Limited


CAN Bus-General
– These data transfer cancellations during contention theoretically also
decrease the carrying capacity of the network.

– The network may even be totally blocked at peak traffic times, which is
unacceptable when the network is to be used for what are known as
‘real-time’ applications.

• CSMA/CA
– Carrier Sensor Multiple Access/Collision Avoidance (CSMA/CA).

– The device operates with a contention procedure not at the time of the
attempt to access the bus, but at the level of the bit itself (bitwise
contention – conflict management within the duration of the bit).

31 6/20/2018 © KPIT Technologies Limited


CAN Bus-General

– This principle has been adopted in the CAN (controller area network)
protocol

– In this case, bus access conflicts can be avoided by assigning a level of


priority to each message carried.

– In the case of contention, the message having the highest priority will
always gain access to the bus.

– Clearly, the latency of the messages will then depend markedly on the
priority levels chosen and assigned to each of them.

32 6/20/2018 © KPIT Technologies Limited


Bitwise Contention
• During the arbitration phase, in order to have higher priority bits in the
network erasing those of lower priority, the physical signal on the bus must
be:

– Either dominant,0 for example, the presence of power, current, light or


electromagnetic radiation,

– Or recessive,1 for example, an absence of power.

• By definition, when a dominant bit and a recessive bit are transmitted


simultaneously on the bus, the resulting state on the bus must be the
dominant state.

33 6/20/2018 © KPIT Technologies Limited


Latency

• Latency is generally defined as the time between the instant indicating the
request for transmission and the actual start of the action generated by this.

• The latency of a message can be defined as the time elapsing between the
instant indicating a request for transmission and the actual start of the
transmission.

34 6/20/2018 © KPIT Technologies Limited


Error Processing and Management
• In conventional methods of non-detection of errors is the return of a
‘positive’ acknowledgement from the receiving station to the transmitting
station, when a message is received correctly.

• In the CAN concept, the idea of a local address completely disappears, and
the identifier ‘labeling’ the message is transmitted to all the participants and
received everywhere in the network.

35 6/20/2018 © KPIT Technologies Limited


Error Management

36 6/20/2018 © KPIT Technologies Limited


Important Terms
• Sending node (station)
– The node (station) generating a message is called the ‘sender’ of this
message
– In terms of CAN, a station is called the ‘sender’ until the bus is idle or
until the unit has lost the arbitration.

• Receiving node (station)


– The node (station) receiving a message is called the ‘receiver’ of this
message
– In terms of CAN, a node (station) is called the ‘receiver’ of a message if it
is not the ‘sender’ of a message and if the bus is not free.

37 6/20/2018 © KPIT Technologies Limited


Values of the Bus

• The bus can have one of the two complementary logical values defined not
as ‘0’ and ‘1’ as usual, but as what are called ‘dominant’ and ‘recessive’
values.

• In case of a simultaneous transmission of a dominant bit and a recessive bit,


the resulting value of the bus will be ‘dominant’.

38 6/20/2018 © KPIT Technologies Limited

You might also like