hi,
When we test the can of xavier ,we find we can not detect the signal from xavier directly with oscilloscope.
We can see the information of can by ifconfig .And we have configured the pinmux.
devmem2 0x0243d040 word 0x00000400
devmem2 0x0243d020 word 0x00000458
devmem2 0x0243d058 word 0x00000400
devmem2 0x0243d010 word 0x00000400
devmem2 0x0243d050 word 0x00000400
devmem2 0x0c302048 word 0x00000400
devmem2 0x0c302050 word 0x00000450
devmem2 0x0c302028 word 0x00000400
devmem2 0x0c302038 word 0x00000400
#can
devmem2 0x0c303000 word 0x0000c400
devmem2 0x0c303008 word 0x0000c458
devmem2 0x0c303010 word 0x0000c400
devmem2 0x0c303018 word 0x0000c458
but we still can not see the signal of can0dout or can1dout with oscilloscope.
hi shgarg,
When we send the message to xavier,use the command “candump can0”,we can see the message,the receive function is ok for xavier.
But when we use the xavier to send the message use the command “cansend can1 5A1#1122334455667788” ,we can not receive the message,and we can not see the signal with the oscilloscope.
Are you getting any errors/logs while sending?
Can you share output of following after you send the message:
ip -d -s link show can1
ip -d -s link show can0
It will provide more details.
CAN state went to ERROR-WARNING and thus BUS-OFF. Therefore, it dropped message in xavier instead of sending.
I can see RX packets in CAN0 but there are errors too in RX side.
There are two CAN controllers on Xavier, I have tried communicating between these two using external transceivers, communication was successful (both TX and RX).
Which device have you connected on the other end? Can you share your setup, I will debug it at my place.
We use Usbcan transceiver to communication with xavier .We can receive message but can not send message .
Do you know what lead to ERROR-WARNING and BUS-OFF? Maybe it is hardware problem? We use latest 32.2 with rt patch.
Well, I have not tried Usbcan. I will give it a try.
I observed BUS-OFF when there is a transceiver issue(hardware problem) or when CAN bus is not properly in sync.It is not the problem with xavier, maybe some SW configurations are mismatched to keep BUS in sync with xavier. I will look into it soon, please let me know if you find any other results.
Hi shgarg,
Thank you !
We do not find other results now ,if we find other issues I will inform you.
And what SW configurations should we check first? We will test another external transceivers tomorrow.
Hi shgarg,
We find the problem why xavier can not send message.It seems because we use thr RT patch for kernel.
If we do not use RT patch for kernel ,CAN module can work normally.But when we use the RT patch for the kernel CAN module can not send message.
Can you test the can module with kernel using RT patch?