<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CANbus Buffer Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a616930823/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a616930823/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a616930823/</id><updated>2020-06-17T16:06:36.950000Z</updated><subtitle>Recent posts to CANbus Buffer Issue</subtitle><entry><title>CANbus Buffer Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a616930823/?limit=25#bb2e" rel="alternate"/><published>2020-06-17T16:06:36.950000Z</published><updated>2020-06-17T16:06:36.950000Z</updated><author><name>Comingback4u</name><uri>https://forge.codesys.com/u/comingback4u/</uri></author><id>https://forge.codesys.comdb1eba360e6975f71edd21e2dea1e46fb6eb5fc0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In J1939 I have always gone with option 2. The issue with option 1 was that a watchdog is usually X time after a connection has already stopped. This leads to that X time of values that still will get passed after the connection is re-established. So if you shut things down due to a watchdog timeout, they could turn back on for a split second after connection is established again.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANbus Buffer Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a616930823/?limit=25#9a69" rel="alternate"/><published>2020-06-12T07:48:40.925000Z</published><updated>2020-06-12T07:48:40.925000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.com82fb2a5bfb3a4e4fa355f24644cda0812a53f5f0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Are you using CANopen? Are sure that you can't configure the device to at least discard some of the messages in case a network failure.&lt;br/&gt;
Is it possible to send a reset command to the device which clears the buffer?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANbus Buffer Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a616930823/?limit=25#06ae" rel="alternate"/><published>2020-06-11T07:05:18.724000Z</published><updated>2020-06-11T07:05:18.724000Z</updated><author><name>leonardrenner</name><uri>https://forge.codesys.com/u/leonardrenner/</uri></author><id>https://forge.codesys.com6cb53496588a1d76916ebc6b26441934157edf7a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello All,&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;I have two ideas for trying to solve this but am hoping there is a better fix:&lt;br/&gt;
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.&lt;br/&gt;
2. Wait to read messages after x Seconds of the network being reconnected before accepting them.&lt;/p&gt;
&lt;p&gt;I am leaning more towards option 1 but any other ideas would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>