Skip to content

First steps - example file doesn't work - no attribute 'interface' #382

Answered by bggardner
spaceKelan asked this question in Q&A
Discussion options

You must be logged in to vote

a) The best way to recover from BUS_OFF is to restart the can0 interface, especially at this point in debugging. It should eventually recover automatically if there is non-error traffic on the bus when its internal error counters fall below thresholds.

b/c) The output of example_python_can.py doesn't seem right, probably due to the error frames on the bus. You shouldn't use the logic analyzer to look at CANH/CANL individually, but after a transceiver, like at the CAN_RXD signal on your CAN HAT schematic. There should always be another CAN node on the bus, as it will set the ACK bit when another node is transmitting a frame, preventing error frames. Note that a CAN node means a CAN control…

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@spaceKelan
Comment options

Comment options

You must be logged in to vote
1 reply
@spaceKelan
Comment options

Answer selected by spaceKelan
Comment options

You must be logged in to vote
1 reply
@spaceKelan
Comment options

Comment options

You must be logged in to vote
1 reply
@spaceKelan
Comment options

Comment options

You must be logged in to vote
1 reply
@spaceKelan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants