Lo5tNet - 2018-09-24

Hello All,
This is all using CoDeSys 3.5.5.4. I have two devices on a CANbus network that work fine when connected. If I disconnect one of those devices, the disconnected device starts putting all Tx messages into a buffer that sends when the device is connected back up to the network. This is causing issues since any event that happened when the device was disconnected, those events all the sudden happens when the device gets reconnected.

I have two ideas for trying to solve this but am hoping there is a better fix:
1. Include a bit in the message that shows the network status is good. This would be based off the watchdog status of the CANbus.
2. Wait to read messages after x Seconds of the network being reconnected before accepting them.

I am leaning more towards option 1 but any other ideas would be greatly appreciated.

Thanks