
CAN TERMINATION JUMPER POSITION
The MCP2515 is fully supported by the SocketCAN framework on Raspbian and other
Raspberry Pi Linux distributions.
You can install the “can-utils” package to test CAN:
$
sudo apt-get update
$
sudo apt-get install can-utils
Then setup the CAN interface at the appropriate speed, for example at 500 kbps:
$ sudo ip link set can0 up type can bitrate 500000
You can now check that the CAN interface is up, and send or receive data:
$
sudo ifconfig
can0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
$
cansend can0 456#43414e2054452364
$
candump can0
21
Strato Pi CAN User Guide