Linux CAN bus: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{PageHeader|CAN bus}}
{{PageHeader|CAN bus}}
{{DocImage|category1=Yocto|category2=VAR-SOM-MX6}}[[Category:DART-6UL]] [[Category:VAR-SOM-MX7]] [[Category:DART-MX8M]] [[Category:DART-MX8M-MINI]]
{{DocImage|category1=Yocto|category2=VAR-SOM-MX6}}[[Category:DART-6UL]] [[Category:VAR-SOM-MX7]] [[Category:DART-MX8M]] [[Category:DART-MX8M-MINI]] [[Category:VAR-SOM-MX8X]] [[Category:VAR-SOM-MX8]]


Connect 2 boards with the appropriate cable.<br>
Connect 2 boards with the appropriate cable.<br>

Revision as of 15:53, 3 September 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