How to develop "Can" functionality on the development board?

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
[√] DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
[√] Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
[√] DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
[√] other

Host Machine Version
[√] native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hi,
How to develop “CAN” functionality on the development board? I find some CAN interface , but i don’t know how to use and verify these interfaces.


Dear @zhaohm8,
Note only CAN0/CAN1 are supported.
Please see How to Test CAN | NVIDIA Docs if it helps.

Hi @SivaRamaKrishnaNV ,

  1. I have already enable the driver ,see as below:
    image
  2. I tried to use internal loop back ,which similar to the guide,it is as below,but there is nothing received in the dump terminal.
    sudo ip link set can0 down
    sudo ip link set can0 type can bitrate 500000 loopback on
    sudo ip link set can0 up
    sudo candump can0
  3. I use another terminal , enter the send command
    sudo cansend can0 220#50

if ok, the first terminal will receive data(I think), howerver, the first teminal is waiting.

Dear @zhaohm8,
Did you setup loopback cable following Setting Up CAN Loopback | NVIDIA Docs?

Note that there is doc issue at Test Classic (Non-FD) CAN | NVIDIA Docs.

Please use can1 instead of can0 with candump command.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.