[sudo] password for orin:
orin@tegra-ubuntu:~$ sudo modprobe can-raw
orin@tegra-ubuntu:~$ sudo modprobe mttcan
orin@tegra-ubuntu:~$ sudo ip link set can0 down
orin@tegra-ubuntu:~$ sudo ip link set can0 up type can bitrate 500000 loopback on
orin@tegra-ubuntu:~$ sudo ip link set can0 up
orin@tegra-ubuntu:~$ candump can0 &
[1] 3885
orin@tegra-ubuntu:~$ cansend can0 123#abcdabcd
orin@tegra-ubuntu:~$ can0 123 [4] AB CD AB CD
can0 123 [4] AB CD AB CD
can this be validated for verifying CAN interface
" Short the Tx and Rx pins of the Jetson carrier board’s CAN0." this is not done externally
For the loopback test from SW, you don’t need to connect any cable externally since it is internal loopback test.
You just need to specify “loopback on” when you are configuring CAN interface.
It seems your loopback test working before.
I don’t know why it would not work now.
There’s only one CAN interface by default on Orin Nano.
Maybe you would need the module like MCP2515 to get another CAN interface through SPI interface.
You may need to port MCP2515 driver and also verify SPI loopback test first.
I would suggest just using 2 devkits for the CAN verification.
what are the steps to be followed
can you guide me ?
either i need to validate those two pins as gpio pins
otherwise i need to validate those pins as CAN but otherthan loopback
can we short those 2 pins TX and RX and check loopback sameway as uart “but im not sure , since communication is through same line and uart has 2 line communication”