CAN Communication

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAN Communication

856 Views
Dora
Contributor I

Hello,

 

My project is using CAN protocol to communicate master and salve. There is no problem when there connect 1 master and 1 salve for sending and receiving. But, if I connect  2 or 3 salve send data same time, it will hang one of the salve. Is it because of microcontroller or CAN protocol?

 

Thanks in advance

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

674 Views
GottiLuca
Contributor IV

 

Dear Dora ,

 

I don't know exactly what type of test you're doing.

What I can say you for sure is that if you try to send from two different CAN nodes ( master or slave is not a problem on CAN which is multimaster by definition .. ) the very same CAN Identifier at the same time you'll get a CAN error that , potentially , freeze the bus completely . This is because during CAN ID transmission there must be an ID with a higher priority ( lower ID ) that wins the arbitration  phase , otherwise the two nodes ( sending the same ID ) will try to send again and again that message without winning arbitration

 

To avoid that you have to assign at least a differente ID for each node in transmission ..