Home icon indicating copy to clipboard operation
Home copied to clipboard

Create a CanController for the Mcp2515 and the SPI

Open rikkreeftenberg opened this issue 1 year ago • 1 comments

Description

With a CanController in the Mcp2515 Iot.Device.Mcp25xxx library you can use the Mcp2515 for CAN communication over the SPI for any microcontroller. Also those that don't (yet) implement the CAN protocol natively.

How to solve the problem

I want to add a CanColtroller to the Iot.Device.Mcp25xxx library so you can use a CAN interface without having to know anything about the Mcp2515 registers and internals. You can just read and write CAN messages.

Describe alternatives you've considered

The other way is to use "nanoFramework.Device.Can" and connect a CAN tranceiver. But this is dependant on the microcontroller. For the Esp32 this is not (yet) possible. I discussed this with Frank Robijn. He wants to implement the native CAN functionality for the Esp32 but this can take a while.

Aditional context

No response

rikkreeftenberg avatar Feb 08 '25 16:02 rikkreeftenberg

related to https://github.com/nanoframework/nanoFramework.Device.Can/pull/127

networkfusion avatar Mar 07 '25 20:03 networkfusion