<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry Pi 4 mod B icm codesys linking USB serial device (arduino) to com port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ff16e6c869/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ff16e6c869/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/ff16e6c869/</id><updated>2025-07-17T18:48:19.387000Z</updated><subtitle>Recent posts to Raspberry Pi 4 mod B icm codesys linking USB serial device (arduino) to com port</subtitle><entry><title>Raspberry Pi 4 mod B icm codesys linking USB serial device (arduino) to com port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ff16e6c869/?limit=25#6486" rel="alternate"/><published>2025-07-17T18:48:19.387000Z</published><updated>2025-07-17T18:48:19.387000Z</updated><author><name>gvdb</name><uri>https://forge.codesys.com/u/gvdb/</uri></author><id>https://forge.codesys.com86921a10bae41ff5c1f43f75b14c44324ed44c6b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Raspberry Pi 4&lt;br/&gt;
Codesys 3.5.20 sp3&lt;br/&gt;
Codesyscontrol 4.15.0.0 based on sdk 3.5.21.0&lt;/p&gt;
&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have found a lot of topics but none of them get me on the right path, therfore i started a new post.&lt;/p&gt;
&lt;p&gt;Usually i work with plc based systems and codesys but now im trying to create an project where i read out a serial data stream from an arduino connected by an USB port. in the future this need to be more arduino's but first trying to make it work with one&lt;/p&gt;
&lt;p&gt;I had my program working but i needed to update my raspberry pu to the letest version to get the mimo screen working.&lt;/p&gt;
&lt;p&gt;Now i tried several rules in the CODESYSControl.cfg and/or CODESYSControl_User.cfg files but i never get the com port opened.&lt;br/&gt;
At this moment i have an file CODESYSControl_User.cfg with entry:&lt;br/&gt;
&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
Linux.Devicefile.1=/dev/ttyUSB0&lt;/p&gt;
&lt;p&gt;I tested the connection with minicom and the data runs fluently.&lt;/p&gt;
&lt;p&gt;Can somebody help me with what could be wrong? the com port states ERROR_UNKNOWN 5004 when i tried to open.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>