Skip to content

Create a CanController for the Mcp2515 and the SPI #1600

Open
nanoframework/nanoFramework.IoT.Device
#1292
@rikkreeftenberg

Description

@rikkreeftenberg

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions