problem in CAN communication

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

cangen can0 -g 4 -I 42A -L 1 -D i -v -v

candump -l any

i am using this transceiver
SN65HVD230

please do help

thanks & Regards
aravindan

Hi Aravindan,

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.

Thanks & Regards,
Sandipan

Hi,
i am getting the below error.

[ 244.825269] mttcan c310000.mttcan can0: Bitrate set
[ 253.594911] mttcan_controller_config: ctrlmode 30
[ 253.600063] mttcan c310000.mttcan can0: Bitrate set
[ 260.575369] mttcan c320000.mttcan can1: Bitrate set
[ 269.256797] mttcan_controller_config: ctrlmode 30
[ 269.261598] mttcan c320000.mttcan can1: Bitrate set
[ 318.437335] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 318.443884] mttcan c310000.mttcan can0: IR 0x8010000 PSR 0x71b
[ 318.449774] mttcan c310000.mttcan can0: entered error warning state
[ 318.456074] mttcan c310000.mttcan can0: entered error passive state
[ 318.462347] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 318.468968] mttcan c310000.mttcan can0: IR 0x9800000 PSR 0x76b
[ 318.474853] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 318.481451] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x77b
[ 318.487384] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 318.493949] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x77b
[ 318.499939] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 318.506515] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x77b
[ 323.444724] mttcan_handle_bus_err: 38304 callbacks suppressed

we are using two transeciver (SN65HVD230). CAN0 is transmitter and CAN1 is receiver.

please do help

thanks&regards
aravindan k

Aravindan, did you solved it? If yes, how?

Thanks!
Mauricio