arduino-CAN icon indicating copy to clipboard operation
arduino-CAN copied to clipboard

Logic analyser

Open Juliandebruin opened this issue 2 years ago • 2 comments

When sending CAN messages with the libary. The logic analyser cannot analyse it it only finds CAN errors speeds are set correctly.

Juliandebruin avatar Dec 19 '22 18:12 Juliandebruin

There are many things that can be wrong here. Logic analyser sampling speed shall be at least 10x the CAN bus speed to get reliable results. When not sending any frame, the level shall be high.

Teddyz avatar Dec 19 '22 22:12 Teddyz

I've found that the MCP2515 baudrate is incorrect. CAN.begin(500E3) on MCP2515 sets the baudrate to 250k and my analyser can decode at this speed. CAN.begin(500E3) on ESP32 works as expected.

andyb749 avatar Dec 21 '23 17:12 andyb749