Author Topic: RS-485 with Modbus vs CAN Bus  (Read 3947 times)

0 Members and 1 Guest are viewing this topic.

Offline Red_MicroTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: ca
RS-485 with Modbus vs CAN Bus
« on: March 04, 2021, 04:54:53 pm »
At a high level I know some of the advantages/disadvantages and differences of both RS485-Modbus and CAN Bus. In this post I just would like to read opinions based on people's experiences. Under which conditions or application you would choose a protocol over the other?
 

Offline H.O

  • Frequent Contributor
  • **
  • Posts: 851
  • Country: se
Re: RS-485 with Modbus vs CAN Bus
« Reply #1 on: March 04, 2021, 05:20:48 pm »
Having used MODBUS RTU a bit but never CAN I won't call myself an expert but I know that CAN is a multimaster protocol and MODBUS RTU (or ASCII for that matter) is not which means MODBUS would be out if the application wasn't suitable for the master-slave type aproach that MODBUS uses.
 
The following users thanked this post: Red_Micro

Offline max_torque

  • Super Contributor
  • ***
  • Posts: 1325
  • Country: gb
    • bitdynamics
Re: RS-485 with Modbus vs CAN Bus
« Reply #2 on: March 05, 2021, 07:05:14 pm »
The significant diffence is that CAN includes message collision avoidance and prioritisation/arbitration at a HARDWARE level.  RS-485 does neither, so it is up to a Master device to schedule the bus timing and loading, whereas with CAN no master is required, and each device on the bus is able to simply transmit it's message at any time (although it is up to the bus architect to ensure that there is sufficient spare capacity on the bus, using suitable message prriorities to ensure that all devices get their fair share)
 
The following users thanked this post: Red_Micro

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: RS-485 with Modbus vs CAN Bus
« Reply #3 on: March 07, 2021, 10:18:47 pm »
Single master, use Modbus. Any µC with a UART can do it.

Multiple masters/asynchronous alarms, use CAN. You'd probably want to use a CAN chip.
 
The following users thanked this post: Red_Micro


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf