1 year ago

#271279

test-img

Taio pepe

CAN bus doesnt recover after reset

I'm running my script on Nvidia Xavier

#!/bin/bash

sudo /sbin/ip link set can0 down
sudo busybox devmem 0x0c303000 32 0x0000C400
sudo busybox devmem 0x0c303008 32 0x0000C458
sudo busybox devmem 0x0c303010 32 0x0000C400
sudo busybox devmem 0x0c303018 32 0x0000C458
sudo modprobe can
sudo modprobe can_raw
sudo modprobe mttcan
sudo /sbin/ip link set can0 type can restart-ms 100
#sudo ifconfig can0 txqueuelen 1000
sudo ip link set can0 type can bitrate 1000000
sudo /sbin/ip link set can0 up

then, sending a simple message like this:

cansend can0 123#234567876543456

this is how the message is sent since there is no ACK

Then, to reset it I send:

sudo /sbin/ip link set can0 down
sudo /sbin/ip link set can0 up

and from now on nothing will work again until I hard reset the system... any idea how to solve it?

linux

ubuntu

can-bus

recover

tegra

0 Answers

Your Answer

Accepted video resources