For Raspberry Pi3:

Download the official ISO from www.raspberrypi.org 2016-03-18 Raspbian Jessie

Edit /boot/config.txt modify the following row

dtoverlay=mcp2515-can0-overlay,oscillator=16000000,interrupt=22
dtoverlay=mcp2515-can1-overlay,oscillator=16000000,interrupt=25

After that

sudo reboot

Or download our ready to use ISO derived from 2016-03-18 Raspbian Jessie, kernel upgrade not required… Download all the 4 files and use 7zip to extract the image file.

Part 1
Part 2
Part 3
Part 4

Normal login:

user: pi
password: raspberry

Run: sudo raspi-config to expand the filesystem.

For Raspberry Pi2 and older versions:

The last ready to use ISO Canberry_ISO_Kernel_4.1.7+ derived from Raspbian Jessie 2015-09-24 (Kernel 4.1.7+ )

Download both the two 7zip files, in order to extract the single ISO:

Part 1
Part 2

Normal login:

user: pi
password: raspberry

Run: sudo raspi-config to expand the filesystem.

OLD ISO

The ready to use ISO is cross compiled by “Alain Weisz (weisz.alain@weisz-technologie.com): including eGALAX Touch screen support”. It is derived from Raspbian (kernel 3.18.7-v7) and works on Raspberry Pi B+ 2.

Download Alain’s ISO:

Part 1
Part 2
Part 3
Part 4

You can use HDDRawCopy1.10 to write the ISO.

Normal login:

user: pi
password: raspberry

Root login:

user: root
password: raspberryroot

The ready to use ISO is derived from Raspbian 2014-09-09. This ISO is tested on Raspberry Pi B Rev 1, B Rev2 and B+.

If you have canbus hang use the modules in the following link to Ilya website:

http://ifinterface.com/page/page3.php?langid=1

It’s possible download the modules for
Raspbian 3.18.7+
Raspbian 3.12.35+

For skilled linux users it’s possible to read this guide ( http://skpang.co.uk/blog/archives/1165 ) to prepare the ISO by yourself.

Download my Raspbian:

Part 1
Part 2
Part 3
Part 4
Part 5
Part 6
Part 7

 

 

To use canberry with LabView to receceive data from any can device, it is possible copy the server program canberry_server in a directory in you raspberry.

IMPORTANT!!

When you transfer via ftp the canberry_server file on raspberry check that the ftp transfer is set in binary mode.
After the finish to transfer the file on raspberry run the command:
pi@raspberrypi ~/yourdir$ chmod a+x canberry_server

The program has been tested with kernel 4.1.7+, it is possible to download the the iso to kernel_4.1.7+.

Edit can-start.h with the command:

pi@raspberrypi ~$ nano can-start.sh

#!/bin/sh
#Can
ip link set can0 up type can bitrate 1000000

Set the can bitrate in the relevant line of the file can-start.sh
Run the script can-start.sh with command:
pi@raspberrypi ~ $ sudo sh can-start.sh

Check the option of the server program canberry_server running the following command:

pi@raspberrypi ~ $ ./canberry_server

CANBERRY IS PRESENT!!

Usage: canberry_server [options] <CAN interface>+ (use CTRL-C to terminate canberry_server)
Options: -m <mask> (ID filter mask. Default 0x00000000) *
-v <value> (ID filter value. Default 0x00000000) *
-i <0|1> (invert the specified ID filter) *
-e <emask> (mask for error frames)
-p <port> (listen on port <port>. Default: 28700)

* The CAN ID filter matches, when …<received_can_id> & mask == value & mask
When using more than one CAN interface the options
m/v/i/e have comma separated values e.g. ‘-m 0,7FF,0’
Use interface name ‘any’ to receive from all CAN interfaces.
The basic command line to run the server is:

pi@raspberrypi ~ $ ./canberry_server can0

CANBERRY IS PRESENT!!

The default listen port is 28700

It is possible to download the demo program for LabView at this link Canberry_Server.vi

Vi_canserver

Vi_canserver_schematic