Linux CAN bus: Difference between revisions

From Variscite Wiki
(Enable note for old MX8M-MINI/-NANO revisions for Debian)
(Undo revision 22919 by (all relevant Debian releases should support Yocto transclusion))
Tag: Undo
Line 25: Line 25:
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS |
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS |
'''Note''': For DART-MX8M-PLUS SoMs, the reference interface is can2 instead of can0.
'''Note''': For DART-MX8M-PLUS SoMs, the reference interface is can2 instead of can0.
|}}<!--
|}}
Define and zero the OS version variable if needed to avoid an expression error.
 
-->{{#varexists:YOCTO_VERSION||{{#vardefine:YOCTO_VERSION|0}}}}<!--
{{#ifexpr: {{#var:YOCTO_VERSION}} > 3.0 |
-->{{#varexists:DEBIAN_VERSION||{{#vardefine:DEBIAN_VERSION|0}}}}<!--
-->{{#ifexpr: {{#var:YOCTO_VERSION}} > 3.0 or {{#var:DEBIAN_VERSION}} >= 11|
{{#switch: {{#var:HARDWARE_NAME}}
{{#switch: {{#var:HARDWARE_NAME}}
  | DART-MX8M-MINI
  | DART-MX8M-MINI

Revision as of 00:22, 8 May 2023

Warning: This page is designed to be used with a 'release' URL parameter.

This page is using the default release RELEASE_DUNFELL_V1.0_VAR-SOM-MX6.
To view this page for a specific Variscite SoM and software release, please follow these steps:

  1. Visit variwiki.com
  2. Select your SoM
  3. Select the software release
CAN bus

Connect two boards like the following:

Board A   Board B

 CAN_H --- CAN_H
 CAN_L --- CAN_L
  GND ----- GND

Set up the boards by running the following on each of them:

# ip link set can0 up type can bitrate 125000

Then:
On board A:

# candump can0

On board B:

# cansend can0 500#1E.10.10