CAN Communication Protocol, working ,types and applications (original) (raw)

What is CAN Communication Protocol ? The word CAN stand for controller area network. It is advanced form of networking method that provides the communication path between various electronic devices such as the communication path between engine management system, gear control, light control, air bags, air conditioning, central locking and an automobile embedded system. The idea about CAN was introduced in first time of world history by Robert Bosch GmbH in 1983 for making the automobile industry system more reliable, fuel efficient and safe. With the passage of time the more developments in electronics and semiconductor devices are taking place, they have totally changed the mechanical structure of automobile devices.

These devices have more functioning capability but with these devices more communication signals are introduced in automobile industry and the control of these singles have become more difficult task for automobile or electronic engineers during designing of any vehicle system. So, the idea about controller area network (CAN) has solved all problems of electronic or automobile engineer which they face during designing of any vehicle control system. This control area network provides the mechanism which is interconnected with software and hardware components and by using this mechanism different electronic module can communicate with each other through central common cable. A very simple system with CAN mechanism is shown in figure 1CAN Communication protocol

Figure 1 A Simple system with CAN Mechanism

How CAN Communication Protocol works?

Every CAN mechanism consists of a CAN device. This CAN device sends data across CAN network in the form of packets and these packets are called CAN frame. Every CAN frame consists of arbitration ID, a data field, a remote frame, an over load frame and an error frame.

Types of CAN Communication Protocol

There are four main types of CAN with respect to speed, wire and software,

  1. High Speed CAN
  2. Low Speed /Fault Tolerant CAN
  3. Single Wire CAN
  4. Software Selectable CAN

High Speed CAN: It is type of CAN which has transmission rate up to 1 M bits.

Low Speed/Fault Tolerant CAN: It is the type of CAN which has transmission rate up to125 K bauds. It is basically the small satellite which triggered the communication system during any fault and is mostly used in automotive industry.

Software Selectable CAN: It is the type of CAN which has 1 and 2 ports. Each port could be used for high speed, low speed or single wire CAN

Single Wire CAN: It the is type of CAN which have only single wire and this wire goes from CAN device to CAN network. It has transmission rate up to 83.3 K bauds. This wire also gives high voltage pulse to wakeup up the sleeping device

Working Example of CAN: CAN network have been widely used in different domestic and industrial applications but one of its major application is mostly involved in vehicles to communicate different devices with each other. There is another application that can be made any one with help of different microcontrollers. Suppose we make a simple CAN network for basis applications with help of three microcontrollers to detect the password and switching on the bulbs or opening the lock door. Microcontrollers are connected with each other with help of two wires and these wires are called CAN bus. The block diagram of this simple CAN network is shown in figure 2CAN Communication protocol example

Figure 1 The Block Diagram of simple CAN Network

According to the block diagram, first one microcontroller is interfaced with keypad, second one is interfaced with LCD display, third one is interfaced with buzzer and operating relay. This operating relay switched on or off the connected lamp. Similarly, for switching on or off the output load when the user will type the password from keypad then first one microcontroller will act as a transmitter and second one will act as a receiver. During this situation both microcontroller communicates with each other bit by bit and second microcontroller displays this password or message on LCD display. When the whole password or message is transmitted then second microcontroller verify this message, is it correct or wrong. If it is wrong, then second microcontroller sends the signal to third microcontroller to turn on the buzzer. Similarly, if it is correct then it sends signal to third microcontroller to turn on the connected load or lamp.

CAN Protocols layers

If we talk about standardized method of CAN networking protocols then CAN protocols are divided into three layers,

(1) Object Layer:

In this layer sending or receiving messages are filtered and then these messages are executed with respect to time.

(2) Transfer layer:

In this protocol layer flowing actions are executed

(3) Physical Layer

Physical layer is basically link layer protocol in which electrical aspects such as current, voltage and number of conductors are specified. Similarly, in this layer mechanical aspects such as number of pins, their colure, labels and type of connectors are also specified.

Different CAN Applications

In the begging CAN network system was introduced only for the purposes of automotive use but with the passage of time its applications are increased day by day.