Hi,
i am using jetson TX2 i try to enable can communication i am getting the below error .
[ 981.507966] mttcan c310000.mttcan can0: entered error warning state
[ 981.514281] mttcan c310000.mttcan can0: entered error passive state
these are all the commands used to enable CAN
sudo modprobe can
sudo modprobe can-raw
sudo modprobe mttcan
sudo ip link set can0 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on
sudo ip link set up can0
sudo ip link set can1 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on
sudo ip link set up can1
Entering into Error Warning state and then into Error passive state can be found if the node’s internal error counters go beyond certain count.
Ideally this problem is occurred when
Either there is any type of electrical problem in the connection or
If there is really so many erroneous data.
If the failure is due to data error, you will need to check the BUS behavior and the data stream using analyzer.
But from a broader view, I can suggest double checking the connection at your setup.
Most of the time it happens that even though the wires are stuffed at the right places between transceiver and controller pins, still they might have loosely connected.
Hence it is advisable to solder the connection properly and check again.