GithubHelp home page GithubHelp logo

lz129 / node-red-contrib-can Goto Github PK

View Code? Open in Web Editor NEW

This project forked from technocreatives/node-red-contrib-can

0.0 0.0 0.0 1.02 MB

A Node-Red node for communicating with a Control Area Network towards for example a car.

License: Other

JavaScript 75.49% HTML 24.51%

node-red-contrib-can's Introduction

node-red-contrib-can

Node-RED node based on socketcan for reading a KCD file and handeling CAN-messages sent and received for this.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install node-red-contrib-can

Usage

You will need to have can-utils installed on your machine. Since this package is only available for unix systems you will need a unix machine to run this. sudo apt-get install can-utils should work in ubuntu.

The node can be 'enabled' or 'disabled' by sending a 'msg.can' message of 'enable' or 'disable'. This makes it easy to to halt or start can messages while the flow is running or based of external logic.

The node can also be configured to send a CAN message any time there is an update to the node, or only on change.

Tips

Since this only works with kayak (kcd) files I would recommend having a look at canmatrix which is a python tool to convert between different standards.

Acknowledgements

Thanks to sebi2k1 for his excellent NodeJs wrapper around socketcan. ebroecker for his canmatrix convertion tool.

node-red-contrib-can's People

Contributors

magnussp avatar rawa avatar bnystrom avatar fry avatar giuseppetur avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.