DSBOARD-ORNXS CANBus Interface Tutorial v1.11 - Forecr.io

DSBOARD-ORNXS CANBus Interface Tutorial v1.11

Jetson Orin Nano | Jetson Orin NX

25 April 2024


1- The pinout of CAN Bus connector
2- Examples of can-utils tools

Hardware: DSBOARD-ORNXS v1.11

OS: JetPack-5.1.3

In this blog post, we will test the CANBus interface of DSBOARD-ORNXS v1.11.

The Pinout of CAN Bus Connector

Top-Side CAN Bus Connector Location
CAN Bus Connector

First, let's look over the CAN Bus connector. On the connector, the pinout is ordered as CAN Low (Negative), CAN High (Positive) and Ground (GND).

Examples of can-utils Tools 

To test CAN Bus functionality, we used a DSBOX-TX2NX as a test equipment (It has 120Ω termination resistor included). (If you use a USB-CAN adapter, connect that adapter to the USB port of the host PC and install its driver software if necessary.) To the other side of the connector, connect your device’s CAN pins.

On host side, be sure that you are using same bitrate with your device. 

On next step, activate CAN drivers and activate CAN interface on DSBOARD-ORNXS with the following commands below:

sudo busybox devmem 0x0c303018 w 0x458
sudo busybox devmem 0x0c303010 w 0x400
sudo modprobe can
sudo modprobe can_raw
sudo modprobe mttcan
sudo ip link set can0 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on

Now, you can use can-utils tools to communicate.

Use cangen to write random data:

cangen can0 -v

Use cansend to write data:

cansend can0 123#1122334455667788

Use candump to listen bus:

candump can0

Thank you for reading our blog post.