Dtynin
Dtynin
DIIDevHeads IoT Integration Server
Created by Dtynin on 9/27/2024 in #edge-networking
Debugging Intermittent CAN Bus Communication Failures on AVR128DA48
Hey guys, During integration testing, I’ve noticed intermittent failures in CAN Bus communication between nodes. Some messages are dropped, and errors are logged on the AVR128DA48. I’ve already checked for electrical noise and verified the hardware setup. I also added the following debug code to catch errors:
if (can_receive(can_dev, &rx_frame, K_MSEC(100)) == -EIO) {
printk("CAN receive error\n");
}
if (can_receive(can_dev, &rx_frame, K_MSEC(100)) == -EIO) {
printk("CAN receive error\n");
}
Despite this, the communication still fails occasionally. What further steps can I take to debug and ensure reliable communication on the CAN Bus network, especially with intermittent errors?
3 replies