How to inject a Bus-Off state in CAN

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

How to inject a Bus-Off state in CAN

ソリューションへジャンプ
23,532件の閲覧回数
Eth
Contributor I

How can we inject a Bus-Off state for a S32G node in CAN communication, without using an additional hardware or physical intervention?

Thanks in advance

0 件の賞賛
返信
1 解決策
23,505件の閲覧回数
andrei_skok
NXP Employee
NXP Employee

Bus Off occurs when the transmit error count raises above 255. Whenever a node fails to transmit a frame, it increases the error counter and when the counter increases beyond 255, the node gets in bus-off state and can not further participate on the bus.

Some situations which lead to Bus Off situation–

CAN_H / CAN_L line interrupted CAN_H shorted with CAN_L Incorrect Baud Rates at receiving and transmitting nodes.

An interesting article on Bus-Off - [LINK]

The article lists several bus failure modes which can be also be used to inject bus off.

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
23,506件の閲覧回数
andrei_skok
NXP Employee
NXP Employee

Bus Off occurs when the transmit error count raises above 255. Whenever a node fails to transmit a frame, it increases the error counter and when the counter increases beyond 255, the node gets in bus-off state and can not further participate on the bus.

Some situations which lead to Bus Off situation–

CAN_H / CAN_L line interrupted CAN_H shorted with CAN_L Incorrect Baud Rates at receiving and transmitting nodes.

An interesting article on Bus-Off - [LINK]

The article lists several bus failure modes which can be also be used to inject bus off.

 

0 件の賞賛
返信
23,454件の閲覧回数
Eth
Contributor I

Thank you for the answer.

Would it be possible to produce Bus-Off state with the help of a debugger? e.g. would it be possible to set an incorrect Baud rate via a debugger? (I looked at the manual, but could not locate the address to manipulate an incorrect baud rate.)

0 件の賞賛
返信
23,437件の閲覧回数
andrei_skok
NXP Employee
NXP Employee

You can set the baudrates from config tool like EB tresos, S32 CT, etc.

Different baudrates would result in error in frame transmission and would increase the error count. And when the counter increases over 255, the controller will go in Bus off state.

0 件の賞賛
返信