Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

Interfacing (DSI, CSI, I2C, etc.) • Can Bus message id issue with Rpi 5

$
0
0
I have been working on with a pcb for car use. Project on Github: https://github.com/valtsu23/Automotive_hat

Hardware and software:
Raspberry Pi 5 4Gb, with Raspberry OS Lite (Bookworm and Trixie tested with the same result)
Python code: https://github.com/valtsu23/Automotive_ ... Can_Bus.py
Can Bus communication uses MCP2515 controller and MCP2562 transceiver.

I'm testing the can bus with Adafruit Feather M4 CAN with simple code where Rpi sends a message with ID 0x500 and some data, Feather receives the message and sends the same message back with ID 0x600. Bus speed is 500kbps.

Problem is that Rpi receives a message with ID 0x604. Data is always right, but the ID is wrong.

If Feather sends a message with ID 0x500, then Rpi receives message ID 0x504.
If Feather sends a message with ID 0x400, then Rpi receives message ID 0x404.
If Feather sends a message with ID 0x604, then Rpi receives correct ID.

I have tried two pcb:s with same result and two Feathers with same result.

I also have tried with Raspberry Pi 4 with Raspberry Pi OS (Bookworm) and it doesn't suffer from this issue. ID is always correct.

Statistics: Posted by valtsu23 — Tue Oct 28, 2025 1:54 am



Viewing all articles
Browse latest Browse all 8015

Trending Articles