Dtynin
DIIDevHeads IoT Integration Server
•Created by Dtynin on 9/27/2024 in #firmware-and-baremetal
Synchronizing Sensor Data Over CAN Bus with AVR128DA48 and Zephyr
I’ve integrated temperature, vibration, and pressure sensors with the AVR128DA48, and have set up CAN Bus communication running Zephyr. Each sensor is connected to a separate CAN node, and data is being collected. However, I’m having trouble synchronizing the sensor readings. Sometimes, readings from different sensors are out of sync or arrive too late on the CAN network. This is the current code snippet I'm using for CAN data transmission:
What should I do to ensure sensor data is transmitted synchronously over the CAN Bus, ensuring that all sensor readings arrive at the same time for proper analysis? Any tips?
1 replies