But I have the problem:
When I use CANSEND in the first iteration, it has no problem. But, when it runs for the next iteration, CANSEND was not updating the data.
I have tried random CANSEND, But I still got the same result.
Could anyone help me to solve this problem?
Thank you for your help
Hi,
To understand the issue more, can you please use try below steps and give us output:
set up can again (there should not be bus errors in can statistics by reloading mttcan)
try sending one by one using cansend:
cansend can0 551#67.92
provide details of “ip -d -s link show can0”
cansend can0 6B1#61.5A.B2
provide details of “ip -d -s link show can0”
cansend can0 5D4#64.47.72.24.F1.52.8D.64
provide details of “ip -d -s link show can0”
Thanks for Replaying. I try sendding one by one using “cansend”, But i sill got the same result. my fersion jetpack 4.4.1. there is something wrong with my CAN-BUS setting:
sudo busybox devmem 0x0c303000 32 0x0000C400
sudo busybox devmem 0x0c303008 32 0x0000C458
sudo busybox devmem 0x0c303010 32 0x0000C400
sudo busybox devmem 0x0c303018 32 0x0000C458
sudo modprobe can
sudo modprobe can_raw
sudo modprobe can_dev
sudo modprobe mttcan
sudo ip link set can0 type can bitrate 500000 sjw 127 dbitrate 2000000 dsjw 15 berr-reporting on fd on
Hi,
I try sending "cansend can0 6B1#1abcdab " after sending messages. in the kernel log there are problems namely “mttcan_handle_bus_err: 52508 callbacks suppressed” and “mttcan c310000.mttcan can0: Acknowledgment Error Detected”. message error:
[ 915.892601] mttcan_handle_bus_err: 52508 callbacks suppressed
[ 915.892896] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 915.893048] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x77b
[ 915.893184] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 915.893354] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x77b
[ 915.893494] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 915.893626] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x77b
[ 915.893759] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 915.893888] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x76b
[ 915.894050] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 915.894180] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x77b
which transceiver are you using?
Can you check if transceiver supports FD mode?
Also, what errors are you getting without FD frame?
cansend can0 6B1#615AB2
Hi,
Sorry for late reply.
If the transceiver is not supporting FD mode, do not configure in CAN settings.
remove fd on and keep it normal.
ip link set can0 up can0 bitrate 1000000
and then try sending can messages.