Published: 30.10.2018
Copyright by Joy-IT
8
CAN Module
After the restart has been completed, you can now start the CAN interface:
The system should now be ready. You can now start a first send attempt with the following command:
Instead of attempting to send, you can also start receiving:
For example, in order to gain initial experience with the module, two Raspberry Pis and two CAN modules
can be used to initiate communication between the two devices.
In this case, make sure that you also connect the CAN high pins of both modules as well as both CAN low
pins.
sudo ip link set can0 up type can bitrate 500000
cansend can0 127#DEADBEEF
candump can0