CAN Communication

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CAN Communication

857件の閲覧回数
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

 

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

675件の閲覧回数
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 ..