This is a cache of https://www.96boards.org/documentation/consumer/dragonboard/dragonboard845c/guides/can.md.html. It is a snapshot of the page at 2024-09-28T01:35:34.055+0000.
CAN Bus Guide for DragonBoard 845c - 96Boards

CAN

This guide will show how to control the CAN bus on the LS2 Header.

Connect CAN_L and CAN_H for loopback test.

  • CAN_H is Pin 2 and CAN_L in Pin 4 on the LS2 Header

Configure the CAN device:

ip link set can0 down
// Disable CAN
ip link set can0 up type can bitrate 800000
// Enable CAN;

Perform the data loopback test.

  • Receive data:
    candump can0
    interface = can0, family = 29, type = 3, proto = 1
    
  • Send Data:
    candump can0 interface = can0, family = 29, type = 3, proto = 1