![SK Pang Electronics RSP-PICANGPS Скачать руководство пользователя страница 9](http://html1.mh-extra.com/html/sk-pang-electronics/rsp-picangps/rsp-picangps_user-manual_1286341009.webp)
PiCAN 2 GPS Rev B V1.1
SK Pang Electronics Ltd
Ó
2020
www.skpang.co.uk
9
1.11.
Bring Up the CAN Interface
You can now bring the CAN interfaces up:
sudo /sbin/ip link set can0 up type can bitrate 500000
Download and copy the CAN test programs to the Pi.
sudo apt-get install can-utils
Connect the PiCAN2 to your CAN network via screw terminal.
To send a CAN message on can0 (CAN B J4) use :
cansend can0 7DF#0201050000000000
This will send a CAN ID of 7DF. Data 02 01 05 – coolant temperature request.
To send a CAN message on can1 (CAN A J3) use :
cansend can1 7DF#0201050000000000
Connect the PiCAN to a CAN-bus network and monitor traffic by using command:
candump can0
You should see something like this: