CAN protocol - state error active

Hi,

I am running a set of commands to establish communication between CAN0 and CAN1.
These are the errors I am facing.
Kindly help

~ sudo modprobe can ~ sudo modprobe mttcan
~ sudo modprobe can_raw ~ sudo ip link set can0 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on
~ sudo ip link set up can0 ~ sudo ip -details -statistics link show can0

6: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 72 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can promiscuity 0
can <BERR-REPORTING,FD> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 500000 sample-point 0.875
tq 25 prop-seg 34 phase-seg1 35 phase-seg2 10 sjw 1
mttcan: tseg1 2…255 tseg2 0…127 sjw 1…127 brp 1…511 brp-inc 1
dbitrate 2000000 dsample-point 0.750
dtq 25 dprop-seg 7 dphase-seg1 7 dphase-seg2 5 dsjw 1
mttcan: dtseg1 1…31 dtseg2 0…15 dsjw 1…15 dbrp 1…15 dbrp-inc 1
clock 40000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0

Ran the above commands in another terminal for CAN1 - same issue faced.
$sudo ifconfig -a is detecting both can0 and can1

Next I tried,
~ cansend can0 123#abcdabcd ~ candump can1
The cursor just blinks!

On running the command ~$ sudo ip -details -statistics link show can0/1.
I still see ERROR ACTIVE.

Kindly help

Hi,

ERROR ACTIVE state is not an error and it means “Normal position”

So it looks like a connection problem with the setup.
Can you once cross-check your connection.
Also please make sure, your transceiver is interfaced properly without any loose connection.

Thanks & Regards,
Sandipan