<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CoDeSys loses connection with runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/689d34606e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/689d34606e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/689d34606e/</id><updated>2020-02-27T15:31:30.396000Z</updated><subtitle>Recent posts to CoDeSys loses connection with runtime</subtitle><entry><title>CoDeSys loses connection with runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/689d34606e/?limit=25#1d93" rel="alternate"/><published>2020-02-27T15:31:30.396000Z</published><updated>2020-02-27T15:31:30.396000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com78c3ef5612ca5fa2d5eec935b613a14318d91a03</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Viacheslav Mezentsev&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.owen.ru/forum/showthread.php?t=20145&amp;amp;p=242060&amp;amp;viewfull=1#post242060" rel="nofollow"&gt;Undocumented solution&lt;/a&gt; (rus).&lt;/p&gt;
&lt;p&gt;There I show a trick which will help to solve this problem, but the runtime developers should not relax and must correct the connection loss bug. I need this not for raspberry pi. This is just an example which works not only for raspberry but for other linux platforms too.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys loses connection with runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/689d34606e/?limit=25#061b" rel="alternate"/><published>2020-02-27T15:31:28.431000Z</published><updated>2020-02-27T15:31:28.431000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comb552bdd501df6fcad4b5894e049ee49638685973</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Viacheslav Mezentsev&lt;/p&gt;
&lt;p&gt;A temporary solution to the problem. You need to create a global Boolean flag. Use it to free the file handle manually without leaving debugging (assign a hotkey, for example). When the handle is released, you can exit debugging.&lt;/p&gt;
&lt;p&gt;This means that the runtime cannot properly close the handle of such file.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys loses connection with runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/689d34606e/?limit=25#6828" rel="alternate"/><published>2020-02-27T15:31:27.730000Z</published><updated>2020-02-27T15:31:27.730000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com1d1d0741499564dda3d7466316c31e48bfc9134b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Viacheslav Mezentsev&lt;/p&gt;
&lt;p&gt;Video: &lt;a class="" href="https://youtu.be/bGNL8n5qV64" rel="nofollow"&gt;https://youtu.be/bGNL8n5qV64&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys loses connection with runtime</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/689d34606e/?limit=25#cc16" rel="alternate"/><published>2020-02-27T15:31:27.021000Z</published><updated>2020-02-27T15:31:27.021000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com3a6e35ceb91ff55ce6cbbdc8299265bbf65107a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Viacheslav Mezentsev&lt;/p&gt;
&lt;p&gt;RaspberryPi B, CoDeSys 3.5.10.x&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://forum.codesys.com/viewtopic.php?p=17514&amp;amp;p=17514&amp;amp;lan=en" rel="nofollow"&gt;Example project&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can try keyboard for example (you need to change path, see: &lt;strong&gt;ls /dev/input/by-path&lt;/strong&gt; on your device): &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;fileName&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="s1"&gt;'/dev/input/by-path/platform-3f980000.usb-usb-0:1.3:1.0-event-kbd'&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Steps to reproduce the problem:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Login and download the project.&lt;/li&gt;
&lt;li&gt;Run project.&lt;/li&gt;
&lt;li&gt;Logout.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Build/Clean&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Login ... CoDeSys loses connection with runtime.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Worked with all events and not only with SysFileAsync library (CAA File with the same result).&lt;/p&gt;
&lt;p&gt;So the question: Why CoDeSys 3.5.10.x loses connection in this case?&lt;/p&gt;
&lt;p&gt;How to restore connection:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;codesyscontrol&lt;/span&gt; &lt;span class="n"&gt;stop&lt;/span&gt;
&lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="n"&gt;rm&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;R&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;PlcLogic&lt;/span&gt;
&lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;codesyscontrol&lt;/span&gt; &lt;span class="k"&gt;start&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry></feed>