CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Feb 26, 2020 5:26 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: CANbus Buffer Issue
PostPosted: Mon Sep 24, 2018 7:44 pm 
Frequent User
Frequent User

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 126
Hello All,
This is all using CoDeSys 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.


Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00

Who is online

Users browsing this forum: e.kislov and 8 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited