Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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