<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry PI4 Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/</id><updated>2024-07-18T20:09:03.265000Z</updated><subtitle>Recent posts to Raspberry PI4 Serial Port</subtitle><entry><title>Raspberry PI4 Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/?limit=25#b625/8c16" rel="alternate"/><published>2024-07-18T20:09:03.265000Z</published><updated>2024-07-18T20:09:03.265000Z</updated><author><name>nltheves</name><uri>https://forge.codesys.com/u/nltheves/</uri></author><id>https://forge.codesys.comf28fcea58fe5bbf0a6b51d5dcbad8a82c3f03faf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ricardo.&lt;/p&gt;
&lt;p&gt;I was having the same problem with Codesys and a Raspberry Pi 2W while using the GPIO uart.&lt;br/&gt;
Your post helped me a lot. Thanks!&lt;/p&gt;
&lt;p&gt;But could not understand why MODBUS parity bit makes Codesys MODBUS COM driver stopping to work after first request transmission.&lt;/p&gt;
&lt;p&gt;Did you see this &lt;a class="user-mention" href="/u/eschwellinger/"&gt;@eschwellinger&lt;/a&gt; ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Nelson&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI4 Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/?limit=25#b625" rel="alternate"/><published>2024-03-19T23:10:11.168000Z</published><updated>2024-03-19T23:10:11.168000Z</updated><author><name>thewizard8</name><uri>https://forge.codesys.com/u/thewizard8/</uri></author><id>https://forge.codesys.com30b60584f9eeace624b8fe9707a173dbc25a5a79</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I finally figured out how to solve it.&lt;br/&gt;
The only away that I got it to work was to define parity to None on modbus configuration, and now works like &lt;br/&gt;
a charm. &lt;br/&gt;
Just for the record I'm using the GPIO port pins (8,10) and a RS485 to ttl shield that you can find online.&lt;br/&gt;
Thanks all for the support!&lt;/p&gt;
&lt;p&gt;Regards &lt;br/&gt;
Ricardo&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI4 Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/?limit=25#b08d" rel="alternate"/><published>2024-03-19T22:24:21.098000Z</published><updated>2024-03-19T22:24:21.098000Z</updated><author><name>thewizard8</name><uri>https://forge.codesys.com/u/thewizard8/</uri></author><id>https://forge.codesys.com7aee85c6887dafb4b590bb5f926f949949d567f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi thanks once again,&lt;/p&gt;
&lt;p&gt;Yes it supports because using python scripting I'm able to send data from the rasberry&lt;br/&gt;
raspberry and receive it on my pc and vice versa (Image attached).&lt;br/&gt;
But when using the CoDeSyS I just got red flags.&lt;br/&gt;
Any light on this problem?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI4 Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/?limit=25#a200" rel="alternate"/><published>2024-03-19T17:49:59.232000Z</published><updated>2024-03-19T17:49:59.232000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.come3de376bf64ff52c26a07b7b79d67a030000ef5a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;no config file is ok,&lt;br/&gt;
the feedback is: your hardware must support this send/receive switching&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI4 Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/?limit=25#fd16/4c9e" rel="alternate"/><published>2024-03-19T08:35:16.205000Z</published><updated>2024-03-19T08:35:16.205000Z</updated><author><name>thewizard8</name><uri>https://forge.codesys.com/u/thewizard8/</uri></author><id>https://forge.codesys.comc32bb7bb1aeee866bd7252c84dd7d0c457d0b264</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi eschwellinger,&lt;/p&gt;
&lt;p&gt;Thanks for replying, but I'm not shure if I got it right.&lt;/p&gt;
&lt;p&gt;Do you mean that I have bad configuration on my CODESYS config file? Or in my project?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI4 Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/?limit=25#fd16" rel="alternate"/><published>2024-03-18T18:55:36.602000Z</published><updated>2024-03-18T18:55:36.602000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.coma1b40085450276c09448d6db548fcc2dfb69717c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;no parameter seems ok but&lt;br/&gt;
RS485 does only work with CODESYS if the send/receive is determined by hardware as I remember correct&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry PI4 Serial Port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/d96ed21d40/?limit=25#f1eb" rel="alternate"/><published>2024-03-18T08:56:47.002000Z</published><updated>2024-03-18T08:56:47.002000Z</updated><author><name>thewizard8</name><uri>https://forge.codesys.com/u/thewizard8/</uri></author><id>https://forge.codesys.com4138e1ea8a4906e1b2b501b1b9decdedb845b608</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Dear All,&lt;/p&gt;
&lt;p&gt;I'm using my raspberry PI4 as a CoDeSyS PLC (Build from scratch with custom electronics).&lt;br/&gt;
I was able to implement all fieldbuses with the exception of Modbus Serial.&lt;br/&gt;
I'm using the internal Port (GPIO) and I configured it in /etc/Codesyscontrol_user.cfg the following away:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
Linux.Devicefile.1=/dev/ttyUSB0&lt;br/&gt;
Linux.Devicefile.2=/dev/ttyS0&lt;/p&gt;
&lt;p&gt;I'm using COM2 on Master configuration.&lt;br/&gt;
I'm using a interface board from TTL/RS485 (bidirectional board), and it's works perfectly with other devices but not in CoDeSyS.&lt;/p&gt;
&lt;p&gt;I'm able to send data with python script and read it on my pc using putty, but when I use a modbus slave simulator to interface with codesys I always get red icons on master and slave. (Please find image attached).&lt;/p&gt;
&lt;p&gt;I'm pretty shure that this might be a bad parameter on my CoDeSyS runtime configurstion file. &lt;/p&gt;
&lt;p&gt;Can someone help me? I'm stuck and this is for my master degree certification.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>