![SK Pang Electronics RSP-PICAN FD User Manual Download Page 7](http://html1.mh-extra.com/html/sk-pang-electronics/rsp-pican-fd/rsp-pican-fd_user-manual_1286338007.webp)
PiCAN FD Rev B 1.1
SK Pang Electronics Ltd
©
2017
www.skpang.co.uk
7
1.9.
Installing CAN Utils
Install the CAN utils by:
apt-get install can-utils
1.10.
Bring Up the Interface
You can now bring the CAN interface up with CAN 2.0B at 500kbps:
sudo /sbin/ip link set can0 up type can bitrate 500000
or CAN FD at 500kpbs / 2Mbps.
sudo /sbin/ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on sample-
point .8 dsample-point .8
Connect the PiCAN2 to your CAN network via screw terminal or DB9.
To send a CAN 2.0 message use :
cansend can0 7DF#0201050000000000
This will send a CAN ID of 7DF. Data 02 01 05 – coolant temperature request.
To send a CAN FD message with BRS use :
cansend can0 7df##15555555555555555
To send a CAN FD message with no BRS use :
cansend can0 7df##05555555555555555
Connect the PiCAN to a CAN-bus network and monitor traffic by using command:
candump can0
You should see something like this: