Table of Contents

Installing Raspian and enabling CAN bus

micro SD card setup

Basic Raspian setup

CAN setup for StratoPi CAN

dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
dtoverlay=spi-bcm2835-overlay
auto can0
iface can0 inet manual
pre-up /sbin/ip link set can0 type can bitrate 125000
up /sbin/ifconfig can0 up
down /sbin/ifconfig can0 down

Non-root access to serial ports

sudo usermod -a -G dialout $USER

sudo usermod -a -G tty $USER