How do I detect there is no CAN bus connected?

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

How do I detect there is no CAN bus connected?

2,162件の閲覧回数
lpcware
NXP Employee
NXP Employee

If there is no CAN bus then each attempt to transmit a frame will fail and the transmit error counter will increase. The error counter can be read before and after transmission. In addition CAN controllers typically provide a range of error flags in a register which gives a reason for the transmission failure which can usually be connected to an error interrupt. Note that in this situation the error counter will stop before reading 256 and therefore the bus off state will not be entered.

"FAQ contribution from Embedded Systems Academy, experts in CAN bus. For more information visit www.esacademy.com"

ラベル(1)
  • CAN

タグ(1)
0 件の賞賛
返信
0 返答(返信)