How to verify the CAN0 and CAN1 of orin

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK

Target Operating System
Linux

Hardware Platform
DRIVE AGX Orin Developer Kit (not sure its number)

SDK Manager Version
1.9.10816

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager

use CAN0 and CAN1 of orin, try to use can-utils to verify the can port, the command is as follows :
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

use another terminla , enter the send command
sudo cansend can0 30B#1122334455667788

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

Please see if CAN Driver documentation helps.

hi vickNv,

thanks for your reply.
I have go through that docs you offered, and I check my configuration.

  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

use another terminal , enter the send command
sudo cansend can0 30B#1122334455667788

  1. I use the olliscope ,try to view the volatage changing when to use the cansend command , but there is no change.

  2. I also tried connect can0 and can1, can0 receive, can1 transmit , also nothing received.

  3. and I tried vcan0 , and it can works normally

so I wonder if I miss to configure something , please give more support, thanks

It seems the picture can’t be seen. I copy the text as below(I type the command "lsmod ")

ubuntu@tegra-ubuntu:~$ lsmod | grep can
vcan 20480 0
can_raw 28672 1
can 28672 1 can_raw
mttcan 65536 0
can_dev 32768 1 mttcan

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Dear @h-huangzhiyi,
Could you share your connection details. I would like to reproduce this on my end.

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