Linux CAN bus: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
On board #1:<br> | On board #1:<br> | ||
<pre> | <pre> | ||
$ | $ candump can0 | ||
</pre> | </pre> | ||
Revision as of 15:34, 6 August 2019
CAN bus
Connect 2 boards with the appropriate cable.
Set up the boards by running the following on each of them:
$ ip link set can0 up type can bitrate 125000
Then:
On board #1:
$ candump can0
On board #2:
$ cansend can0 500#1E.10.10