Transclusion: Debian: CAN Bus: CAN Iface

From Compulab Mediawiki
Revision as of 08:35, 21 April 2020 by imported>Ilya (Created page with "===== CAN interface configuration ===== It is recommended configure the CAN interface, with the {{filename|iproute2}} utilities. * To make sure the right {{filename|ip}} util...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
CAN interface configuration

It is recommended configure the CAN interface, with the iproute2 utilities.

  • To make sure the right ip utility is used, run:
root@cl-rootfs:~# ip -V
ip utility, iproute2-ss151103
  • Configure the CAN interface bit-rate to 125 Kbits/sec (values of up to 1Mbit/sec are supported):
root@cl-rootfs:~# ip link set can0 type can bitrate 125000
  • Enable the CAN interface:
root@cl-rootfs:~# ip link set can0 up