Skip to content

USB-CAN(SocketCAN) sketch for Arduino CAN-BUS shield

Notifications You must be signed in to change notification settings

RIT-EVT/slcanuino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

#Slcanuino

NOTE: This project is a fork of kahiroka's Slcanuino program.

This Arduino program enables an Arduino with a CAN shield to operate as a serial can device. The script implements the LAWICEL ASCII protocol for converting serial communication to CAN. To see the original, see section 2 of the CAN232 datasheet.

This project as mentioned is forked. The code was modified to make sure of a CAN library made by Sandeep Mistry. This allows the script to be easier to install and run, and also supports multiple Arduino compatible platforms.

Supported hardware

  • Arduino compatible platform
  • MCP2515 Arduino CAN shield

How to use

Program the Arduino with the contained script and use along side existing Slcan supported tools. For example, the tool python-can has many resources for working with serial CAN devices.

Deps

  1. Sandeep Mistry's arduino-CAN library which can be installed via the built in Arduino Library Manager tool

To find Sandeep's CAN library, open the Arduino Library Manager, search for "MCP2515", and scroll down and look for Sandeep's name.

Example usage with Python-CAN

python -m can.viewer -c /dev/tty.usbmodem143301@115200 -i slcan

Where /dev/tty.usbmodem143301 is replaced with the path to the serial device.

For more information, see Python-CAN's documentation on working with Slcan.

About

USB-CAN(SocketCAN) sketch for Arduino CAN-BUS shield

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%