<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to RPI Serial port connects with no errors but not data being transmitted or received </title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/712c1f1558/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/712c1f1558/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/712c1f1558/</id><updated>2024-09-30T15:37:19.728000Z</updated><subtitle>Recent posts to RPI Serial port connects with no errors but not data being transmitted or received </subtitle><entry><title>RPI Serial port connects with no errors but not data being transmitted or received </title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/712c1f1558/?limit=25#2bd5" rel="alternate"/><published>2024-09-30T15:37:19.728000Z</published><updated>2024-09-30T15:37:19.728000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.com15c3c368fe4509c87068a18e4c8ac13a5974c89f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any solution because we have the same problem with other hardware?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI Serial port connects with no errors but not data being transmitted or received </title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/712c1f1558/?limit=25#c412/36c6" rel="alternate"/><published>2022-02-14T02:54:04.349000Z</published><updated>2022-02-14T02:54:04.349000Z</updated><author><name>matthew</name><uri>https://forge.codesys.com/u/matthew/</uri></author><id>https://forge.codesys.com834b3c4b09f090bb133a16c0b03e57e9ab22ceff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think it might be a bug. If I change back to windows runtime and use my USB to RS485 the project and code works and everything is good. If I try the same USB adapter on the RPI ( now ttyUSB0 and I use ttyUSB in the config ) I get the exact same behavior as the hardware RS485. Both show as green and the same orange and red triangle. I have now tried different version of RaspbianOS ( buster and bullseye and my own custom RT patched versions ) none of these work and have the exact same issue. Would this indicate and runtime issue on the RPI? The USB to RS485 adapter works fine on the pi using CuteCom also. What else can I try to figure out where the issue is? &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI Serial port connects with no errors but not data being transmitted or received </title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/712c1f1558/?limit=25#c412/098c" rel="alternate"/><published>2022-02-13T05:18:05.564000Z</published><updated>2022-02-13T05:18:05.564000Z</updated><author><name>matthew</name><uri>https://forge.codesys.com/u/matthew/</uri></author><id>https://forge.codesys.come40bb1c377dfed6ab226706bd45c2777106485c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Eschwellinger,&lt;/p&gt;
&lt;p&gt;Just done some research on the Chipsee HMI panel and it states it is done automatically via hardware and no no need for software. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;The RS485 circuit controls the Input and Output direction automatically, there’s no need to control it from within the software.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Is there anything else I can try or test within CodeSys? &lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Matthew&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI Serial port connects with no errors but not data being transmitted or received </title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/712c1f1558/?limit=25#c412" rel="alternate"/><published>2022-02-12T09:09:14.823000Z</published><updated>2022-02-12T09:09:14.823000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.coma7a9bc2ef6c6bf962ab6116a5791007e463311ed</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Not sure, but the only reason could be - CODESYS does only support RS-485 adapters which are suporting to determine send/receive direction in hardware. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RPI Serial port connects with no errors but not data being transmitted or received </title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/712c1f1558/?limit=25#a10c" rel="alternate"/><published>2022-02-11T06:03:20.637000Z</published><updated>2022-02-11T06:03:20.637000Z</updated><author><name>matthew</name><uri>https://forge.codesys.com/u/matthew/</uri></author><id>https://forge.codesys.comdd0554823b5b492d1cd65bb36680ac41c70d4a80</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I'm have a few issues with CodeSys and serial ports not working correctly. I have 3x serial ports 1x RS232 and 2x RS485. The ports work fine out of CodeSys and using CuteCom serial tool. I can send raw Modbus RTU frames and receive them fine with CuteCom. &lt;/p&gt;
&lt;p&gt;In my /etc/CODESYSControl_Users.cfg I have  ( also tried in /etc/CODESYSControl.cfg )  &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysCom]&lt;/span&gt;
&lt;span class="na"&gt;Linux.Devicefile.1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/dev/ttyAMA2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;ttyAMA2 Is my first RS485 port and is linked to COM1 in CodeSys. This is all working correctly as the Modbus_Com and the Modbus_Master_Com_Port indicate green when online. The Modbus_Slave_Com_Port shows an orange triangle next to it ( checking that status it's not an Error and indicates UNDEFINED ) now when I try to send a trigger to turn on an coil this triangle goes red (This is an Error and indicate RESPONSE TIMEOUT) &lt;/p&gt;
&lt;p&gt;I have a port sniffer(analyzer) on the RS485 lines checking for data and nothing comes through at all from CodeSys and if I open CuteCom and open the port and send the data the analyzer picks it all up and can read all the bytes in HEX and decodes the Modbus frame. I have made sure I close the port again after using CuteCom. I have tried uninstalling the runtime and reinstall again. I tried the Pixtend Serial test program where you can send raw data via SysCom and that also does not work. Connects fine with no errors, but just no data.&lt;/p&gt;
&lt;p&gt;The hardware I'm using is a CHIPSEE RPI HMI with CM4 compute module. I'm using CodeSys v17.2 and Runtime 4.2.0.0. The OS is bullseye and I know there is a few issues with latest version and runtime shutting down. Could there also be other underlying issues? I think it's an issue with CodeSys accessing the serial ports rather than OS issue or hardware. &lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Matthew&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>