<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Serial port stops working randomly in the middle of a program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b5a3ee3a64/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b5a3ee3a64/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/b5a3ee3a64/</id><updated>2020-02-27T17:09:05.271000Z</updated><subtitle>Recent posts to Serial port stops working randomly in the middle of a program</subtitle><entry><title>Serial port stops working randomly in the middle of a program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b5a3ee3a64/?limit=25#6d04" rel="alternate"/><published>2020-02-27T17:09:05.271000Z</published><updated>2020-02-27T17:09:05.271000Z</updated><author><name>rotemse</name><uri>https://forge.codesys.com/u/rotemse/</uri></author><id>https://forge.codesys.com73deb791c9300639a51b4cd53b30a0e84969ff79</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have RPI 4, with the lastest Codesys version (3.5.15 patch 3)&lt;br/&gt;
I have Beckhoff slaves with ethercat running at 4ms cycle time.&lt;br/&gt;
the main program I set to 12ms cycle time.&lt;br/&gt;
Visu is 100ms.&lt;br/&gt;
I use USB/Serial with the CH340 driver.&lt;br/&gt;
I also downloaded the serial demo program from the Codesys website.&lt;/p&gt;
&lt;p&gt;Everything seems to work, but at some point, I get no reply from the serial port. I send the data, but no reply.&lt;br/&gt;
I tried to close the serial port and reopen it, same problem. BUT when I reset the RPI (Cold reset from the Codesys development software) everything works again!&lt;/p&gt;
&lt;p&gt;What could be the problem?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>