R38.2 can dev not set up status

hi::

now set the can0 up,but failed,

agi@ubuntu:~/caneth$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
link/can
3: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
link/can
4: can2: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
link/can
5: can3: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
link/can

agi@ubuntu:~/caneth$ candump can0
read: Network is down
agi@ubuntu:~/caneth$ sudo ip link set can0 up
RTNETLINK answers: Invalid argument
agi@ubuntu:~/caneth$

Hi mingming,

Are you using the devkit or custom board for Thor?

You didn’t specify the CAN configurations before set can0 up.
Please refer to the commands I shared in Jetson Thor CAN bitrate issue - #3 by KevinFFF to verify.

hi:KevinFFF

can0 -can3 is it a physical interface?

Yes, you can also refer to the pinmux spreadsheet for the exact pins used for each interfaces.

thansks!

command ok

rmmod mttcan
modprobe mttcan
ip link set down can0
ip link set can0 up type can bitrate 1000000 dbitrate 8000000 berr-reporting on fd on loopback on
candump -x any &
cansend can0 123#abcdabcd

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