tillsc / can2mqtt Goto Github PK
View Code? Open in Web Editor NEWGeneric DBC based CAN 2 MQTT brigde
Generic DBC based CAN 2 MQTT brigde
I had to change two lines to get it to work again with the latest builds
and add encoding to the open (otherwise you get an "I/O operation on closed file")
line 66: with open (file, 'r', encoding='utf-8') as fin:
Hi - thank you this is a great project. I was looking for something that could publish decoded CAN/CAN-FD messages to MQTT broker as my end goal is to send it out to a webpage.
But my issue is that we're using CAN-FD bus and messages v/s std CAN. The config file supports bus bitrate but not ddrate - I was planning to fork and add that unless you plan to do it. Also another good option would be to support message filters because not all messages in the DBC as well as over the bus may be of interest. Hence was also planning to implement a config param to allow the user to define filters for specific messages/mask based on what is supported by socketcan.
Thank you again for a great project!
Hi there, this script works great, thank you for creating it.
I'm encountering an issue when it runs for a while but I'm having difficulty finding the cause or coming up with a fix. The MQTT broker & CAN connections do not present issues with any of the other connections to them.
Is it straightforward to detect if the script stops working and if it does to restart it? I'm a bit new at this so don't know a sensible way to do this.
Sometimes the script stops with a traceback as shown below, and other times there is no traceback but it stops bridging the messages to MQTT.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.