Plugin for MCP2515 CAN-Bus module needed

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
gefahrensucher
Normal user
Posts: 4
Joined: 09 Mar 2020, 10:38
Location: Germany

Plugin for MCP2515 CAN-Bus module needed

#1 Post by gefahrensucher » 09 Mar 2020, 12:11

Hi Guys,
i'm lookng for a plugin for the MCP2515 CAN-Bus module.
The idea was to monitor and control my heating system.
My idea was to rercieve CAN-Bus messages via MCP2515 CAN-Bus module and forward via MQTT to Node-Red.
Than do somthing there an send it back.
Like a CAN-Bus MQTT Gateway.

My knowledge to develop ESP-Easy plugins is way to less.
So has someone tried it out or has some hits for a plugin.
I know there are a lot of code out here for MCP2515 CAN-Bus. But i need some info's where to put it in a plugin and also how to write a plugin.
Could also be that i have to build a new contoller. No idea.
Maybe some one need the same and we can share information.

thanks

TD-er
Core team member
Posts: 2320
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plugin for MCP2515 CAN-Bus module needed

#2 Post by TD-er » 10 Mar 2020, 02:06

Maybe it is not that much different from this plugin waiting to be merged: https://github.com/letscontrolit/ESPEasy/pull/2879
So you can have a look there and see what is similar and what not.
Then it is way more easier for someone to step in and help if it is clear what is needed and what not.

Just "CAN bus" is too generic.
That's like "RS485" or "Modbus".
That's just a protocol layer, and does not tell anything about what should be read from where and written to what registers or addresses.

gefahrensucher
Normal user
Posts: 4
Joined: 09 Mar 2020, 10:38
Location: Germany

Re: Plugin for MCP2515 CAN-Bus module needed

#3 Post by gefahrensucher » 13 Mar 2020, 18:30

Thank for reply
as far as i can see https://github.com/letscontrolit/ESPEasy/pull/2879 is dealing with serialport.
MCP2515 is a CAN-Bus contoller and can conected to an ESP8266 via SPI
https://circuitdigest.com/microcontroll ... th-arduino
The one and only thing i like to have is to read and send raw CAN-Messages from/to an MCP2515.
I have a test code for an ESP8266 really really basic. But i think it would be nice to have it in ESP Easy.

I found something like this https://github.com/oschreibke/OpenLCB/t ... CII_to_CAN

i've tried to transfer it to an ESP Easy Plugin. But my knowledge is way to less.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests