Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

which protcol is best for master-master communication either CAN or ETHERNET?

Status
Not open for further replies.

Jinzpaul4u

Full Member level 4
Joined
Feb 1, 2012
Messages
231
Helped
59
Reputation
118
Reaction score
60
Trophy points
1,328
Location
India
Activity points
2,822
Hi there,

I've been working on cnc controller project and it's belongs to industrial applications. I'm using two controller for front and back end (two stm32f405 Ic's ) controls. which protcol is best for master-master communication either CAN or ETHERNET?

I just want to take care about following point....

1.noise free communication
2. error free,error detection and error diagnosis.
3.speed
4.reliable communication.
5. using for industrial purpose so it will work on very noisy environment.

I'm confused with to choose a good protocol for communication. Can anyone guide me for a better solution?


I would greatly appreciate the help.
 

If viability in a very noisy environment is a requirement, then CAN bus is probably the best option.

Although you would be sacrificing significant throughput/speed over Ethernet.

CAN bus was originally developed specifically for industrial noisy environments, originally for automobiles, although it is now used in many industrial and medical areas.


BigDog
 
Thanks for the feedback.

What is the advantage of CAN over Ethernet? Both are using for industrial application. How could you differentiate them.
 

hi if u dont mind plz tell me the procedure for starting of CAN protocol.
Im newer to this field now im trying to learn CAN bus.
 
Last edited by a moderator:

What is the advantage of CAN over Ethernet? Both are using for industrial application. How could you differentiate them.

Actually unlike CAN, Ethernet was not designed specifically for heavily EMI industrial environments and lacks many of the hardware features specifically designed for such environments.

Therefore, much of the error checking and secure data transmission features in Ethernet are handled at a higher level in software, the TCP/IP stack.

In contrast, CAN provides many of these features implemented at a hardware level.

Of course, an environment where significant EMI is an issue, the additional overhead of handling packet/frame errors at the firmware/software level can have a serious impact on the systems performance.

Fiber Optic interconnects are often used in such environments when implementing an Ethernet network, there are also proprietary Ethernet variants which have implemented many of the additional features CAN has to offer.

**broken link removed**

Another major difference between the two protocols, Ethernet designed around a Node Address scheme, while CAN is a Message ID scheme.

BigDog
 
hi jayamani

Actually some of the best general CAN resources are available on the Microchip website:

AN713 - Controller Area Network (CAN) Basics

AN228 - A CAN Physical Layer Discussion

Webinar - Introduction to Controller Area Network (CAN)


Other general CAN bus reference:

Official CAN in Automationsite

CANbus


STM32 specific information:

KEIL STM32 CAN Example

AN3154 - CAN protocol used in the STM32™ bootloader

courtesy: bigdogguru

This might be helpful

http://www.grifo.com/PRESS/DOC/Temic/CAN_TUT.PDF
http://www.google.co.in/url?sa=t&rc...sg=AFQjCNEV-lvX2TVzJznzOefxGW0moFFiLA&cad=rja
**broken link removed**
http://ww1.microchip.com/downloads/en/DeviceDoc/21883A.pdf
 
hi if u dont mind plz tell me the procedure for starting of CAN protocol.
Im newer to this field now im trying to learn CAN bus.

We would be glad to help in your studies of CAN bus.

Although your request is actually a bit off topic for this thread.


I would suggest reviewing Jinzpaul4u previous thread:

https://www.edaboard.com/threads/269152/#post1153473

Use the search facilities of the forum for previous posts,

Or start a new thread specific to your inquiry.


BigDog
 

actually in all industrial setup,i think RS485 based modbus or profibus protocols are used
because it is less affected by rfi, emi noises.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top