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 Thu Sep 19, 2019 6:13 pm

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 
Offline
Frequent User
Frequent User

Joined: Tue Dec 03, 2013 11:52 pm
Posts: 120
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


Top
   
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: No registered users and 5 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