Git Product home page Git Product logo

rynbrd / arduino-canbus-monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from latonita/arduino-canbus-monitor

0.0 1.0 0.0 77 KB

Can bus monitoring tool based on arduino and can bus shield. Implements CAN ASCII/SLCAN protocol compatible with Lawicel CAN232/CANUSB. Can be used for monitoring low speed CAN (interior can bus of most cars, less than 500kbps). For higher speeds serial port can become a bottleneck in case data density is high.

License: MIT License

C++ 85.82% C 14.18%

arduino-canbus-monitor's Introduction

Arduino CAN Bus Monitor

This is a fork of arduino-canbus-monitor meant to work with the Longan Labs / SSI CANBed v1.

The CANBed v1 is an Atmega32U4 based board with MCP2515 and MCP2551 CAN chips.

This Arduino sketch turns the CANBed v1 into a USB-to-CAN tranceiver using the slcan (CAN over serial) protocol.

See the upstream repo for full protocol details.

Using with Linux

Install can-utils

On Ubuntu and other Debian-based distros can-utils package is included into standard repositories:

sudo apt install can-utils

For other distros please follow respective instructions, start from here https://github.com/linux-can/can-utils

Create CAN Device

sudo slcand -o -c -s6 -S 115200 /dev/ttyAMC0
sudo ip link slcan0 up

Replace /dev/ttyAMC0 with the serial device of the CANBed. The 115200 is the default serial baudrate. Update this command if you've changed it in the sketch.

Run Your Scanner

You can use one of the tools included with can-utils:

candump slcan0

Or run your own which is compatible with Linux SocketCAN.

Disconnect CAN Device

sudo killall slcand

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.