adafruit / adafruit/Adafruit_CircuitPython_MCP2515
Unexpected Data Output from MCP2515 on Raspberry Pi 4 with Bookworm Lite (64-bit)
- Dominant language
- Python
- Stars
- 29
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
**Issue Description:**
I'm encountering an issue while executing the simple test code from the documentation. The output I'm receiving is not what I expected.
**Setup:**
Hardware: Raspberry Pi 4 with Bookworm Lite (64-bit)
Connection: MCP2515 connected via a logic level converter (also tested without the converter, same result)
Expected Output:
```
Data: "adafruit"
Message ID: 0x1234ABCD
Actual Output:
```
actual output
```
Send success: True
1 message available
Message from 0x121f1f4d
message data: bytearray(b'\xa3\xf5\xc7\x9e?\xef\xf9L')
Send success: True
1 message available
Message from 0x1205624d
message data: bytearray(b'\xd4v\xf7\\?\xe6\xb5L')
```
(repeats several times with the same unexpected data)
Additionally, when I connect another CAN device to the MCP2515 (without loopback mode), I encounter the same result as described in this GitHub issue: [Issue #770](https://github.com/adafruit/Adafruit_Blinka/issues/770).
Has anyone else faced a similar issue or have any insights on what might be going wrong? Any help would be greatly appreciated. Thanks in advance!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the documented simple test on a Raspberry Pi 4 running Bookworm Lite 64-bit with the MCP2515, comparing the expected and reported CAN output. Review the related Adafruit Blinka issue #770 and the loopback and external-device cases. Done would be a reproducible diagnosis with a documented correction or confirmed limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100