How to use command to test can1 and can2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use command to test can1 and can2

537 Views
t2865k5
Contributor I

Dear NXP,

HW platform : imx8mplus 

SW version : 5.10.9-1.0.0

I connect can1 pin Hi to can2 pin Hi ,and can1 pin Low connect  can2 pin Low. I will use command as follows:

ifconfig can0 down
ip link set can0 type can loopback off
ip link set can0 type can bitrate 1000000 triple-sampling on

ifconfig can1 down
ip link set can1 type can loopback off
ip link set can1 type can bitrate 1000000 triple-sampling on

candump can1&

cansend can0 111#1122334455667788

Test result: 

write: Network is down
[1]+ Done(1) candump can1

 

Expect result:

111 [8] 11 22 33 44 55 66 77 88

 

Is there a mistake for running command ?

How to run command to test ?

 

 

t2865k5_0-1628136127237.png

t2865k5_1-1628136148728.png

 

 

0 Kudos
1 Reply

531 Views
igorpadykov
NXP Employee
NXP Employee

Hi Albert

 

flexcan usage can be found in AN13210   How to Use FlexCAN in Linux - i.MX 8MP EVK

 

Best regards
igor

0 Kudos