MSCAN - Identifying Bus-Off

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

MSCAN - Identifying Bus-Off

1,660件の閲覧回数
pammu
Contributor I
I am faced with two problems:
1. After reaching the bus-off condition, is there any way to identify using the MSCAN controller that the controller has recovered back to normal condition from the Bus-Off state?
 
2. Is case of any errors, I want to clear the transmit buffers. How do I do it? Aborting the message is not yielding correct results.
 
ラベル(1)
0 件の賞賛
返信
1 返信

323件の閲覧回数
Alban
Senior Contributor II
Hello,
 
Answers, as usual, depends on which device you are using.
 
1- msCAN in BOSCH mode is different to ISO mode.
One is supposed to recover after 128x11 Recessive bits whilst the other one should NEVER recover without intervention.
By putting the controller in soft reset, the user has access to the Error Counters. If the counter is above 255, it is in BUS OFF.
The simpler is still to have a state machine and detect the Bus Off with the Error Interrupt.
 
2- The other possibility would be to put the module in Soft Reset but it can violate the conditions on the Bus. Once the value is in TX buffers, this is the only other solution to unschedule them, as far as I know. This is because this is not how the CAN specification is supposed to be interpreted.
 
Cheers,
Alban.
0 件の賞賛
返信