We know that in embedded sector mostly used protocol is Can and modbus so In this article we will see Basic difference between can bus vs modbus protocol | communication.
Table of Contents
Basic CAN bus communication protocol
- ●CAN stands for controller area network.
- ●It was developed by BOSCH in1986.
- ●It does not require a host (master device) to communicate.
- ●It is a broadcast type of bus.
- ●It is a message based protocol.
- ●It has a serial half-duplex asynchronous communication.
- ●It is widely used in cars for communication between devices like airbag,headlight sensor,seatbelt sensor etc.
- ●Device are controlled based on priority (device address)

Basic of MODBUS communication :
- ●Oldest and popular automation protocol in process automation SCADA (supervisory control and data acquisition).
- ●Modbus was published by Modicon in 1979.
- ●It requires a host.
- ●It is not a broadcast type of bus.
- ●It has both half-duplex and full-duplex.
- ●It is use in ethernet ,RS-232,RS-485,RS-422.
- ●It is used in IOT ,PC,human machine interface
Some important point about MODBUS protocol
●Oldest and popular automation protocol in process automation SCADA (supervisory control and data acquisition).
●Modbus was published by Modicon in 1979.
●It requires a host.
●It is not a broadcast type of bus.
●It has both half-duplex and full-duplex.
●It is open standard and most of the devices are compatible,many companies use this protocol for communication.
●In the modbus network there exist a master and upto 247 slaves.
● Modbus master is the device which requests and writes information.
●Modbus slave is the device connected to the bus having a master to supply information.
●Each slave is assigned a unique address from 1 to 247.

●Start byte shows the start of the frame.
●Slave id is the unique id given to slave devices.
●Function code is the bits which tell operations to be performed by a master device like read,write etc.it is user defined.
●Data is user defined.
●CRC is a cyclic redundancy check for error while data transmission.
●Stop byte shows the end of the frame.
Summary:
In this article we saw some basic concept about modbus and CAN protocol so about this article you have any question then free to ask me.
Credit : Rohan Raj