Ensuring Message Prioritization on CAN Bus with AVR128DA48 and Zephyr OS for Industrial Monitoring
I’m trying to implement message prioritization on the CAN Bus for my Smart Industrial Monitoring System. High-priority messages (emergency alerts) should be transmitted before regular sensor data. I’m using the AVR128DA48 with Zephyr OS. This is how I’ve set up the message:
Both messages are being transmitted, but I’m noticing that the regular messages are sometimes sent before the emergency ones. What am I missing in terms of message prioritization on the CAN Bus, and how can I ensure that high-priority messages are always transmitted first?
2 Replies
it would help it you understood how CAN arbitration works
@Dtynin CAN Bus prioritization is based on the identifier of the message. The lower the identifier value, the higher the priority. If your high-priority messages are not being sent first, check your identifier values if they are correct, your message transmission queue and hardware/software configuration