simple CAN-Transceiver with BCM sockets written in c99
sudo ifconfig DEVICE up
or
sudo ifconfig DEVICE down
when you're done.
sudo ip link set DEVICE type can bitrate 500000 sample_point 0.875
where DEVICE is your connected CAN interface e.g. can0