<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberrypi Serial Port Connection Error</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1792d4798c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1792d4798c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/1792d4798c/</id><updated>2020-02-27T17:19:40.684000Z</updated><subtitle>Recent posts to Raspberrypi Serial Port Connection Error</subtitle><entry><title>Raspberrypi Serial Port Connection Error</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1792d4798c/?limit=25#2034" rel="alternate"/><published>2020-02-27T17:19:40.684000Z</published><updated>2020-02-27T17:19:40.684000Z</updated><author><name>Poncik</name><uri>https://forge.codesys.com/u/poncik/</uri></author><id>https://forge.codesys.com1d74aea9de9d5c170fe95bbd6b2ce90929fa6e63</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;br/&gt;
I think I solved problem. I think there is an error in the code that I wrote. When ı tried with yours code, serial port opened without any error. If the problem persists I will bother you again.&lt;br/&gt;
Thank you so much&lt;br/&gt;
Best Regards.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberrypi Serial Port Connection Error</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1792d4798c/?limit=25#ac0b" rel="alternate"/><published>2020-02-27T17:19:37.954000Z</published><updated>2020-02-27T17:19:37.954000Z</updated><author><name>Poncik</name><uri>https://forge.codesys.com/u/poncik/</uri></author><id>https://forge.codesys.comee068ac6ae2b1221c076392b567fa7d9b47e2693</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;br/&gt;
Thank you for fast response.&lt;/p&gt;
&lt;p&gt;In the morning, ı read your answer. I changed udiport value to 4 for using usb-DekTec_Digital_Video_BV device. After that port opened and ı sent some data to device.  After a few attempts the device again generate error . I thought problem was from device. Changing the device did not solve the problem. The same error still occurs. Codesys can not open serial port.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 7.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3288"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 6.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3287"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 5.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3286"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 4.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3285"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberrypi Serial Port Connection Error</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1792d4798c/?limit=25#3281" rel="alternate"/><published>2020-02-27T17:19:36.977000Z</published><updated>2020-02-27T17:19:36.977000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comb1ca790b713fbcff894518db0b0beea2df12bd82</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
which value has 'udiPort' in your application?&lt;/p&gt;
&lt;p&gt;Should be 3 for using the usb-Prolific_Technology' interface&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberrypi Serial Port Connection Error</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/1792d4798c/?limit=25#1de3" rel="alternate"/><published>2020-02-27T17:19:34.240000Z</published><updated>2020-02-27T17:19:34.240000Z</updated><author><name>Poncik</name><uri>https://forge.codesys.com/u/poncik/</uri></author><id>https://forge.codesys.comae559cf14c834fc6b7226c157f6f8a8c00e858b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear all,&lt;/p&gt;
&lt;p&gt;I have read all the topics related to serial communication on the forum. But ı cannot open serial port to communicate with my device. &lt;/p&gt;
&lt;p&gt;1)I have modified the CODESYSConfig.cfg like this:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysEthernet]&lt;/span&gt;&lt;br/&gt;
 Linux.ProtocolFilter=3&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[CmpSchedule]&lt;/span&gt;&lt;br/&gt;
 ProcessorLoad.Enable=1&lt;br/&gt;
 ProcessorLoad.Maximum=95&lt;br/&gt;
 ProcessorLoad.Interval=5000&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
 Linux.Devicefile=/dev/serial&lt;/p&gt;
&lt;p&gt;2) Add Symbolic Link to /pi folder&lt;/p&gt;
&lt;p&gt;#!/bin/sh&lt;br/&gt;
# Script to start our application&lt;br/&gt;
sudo ln -s /dev/serial/by-id/usb-Prolific_Technology_Inc.&lt;em&gt;USB-Serial_Controller-if00-port0 /dev/serial2&lt;br/&gt;
sudo ln -s /dev/serial/by-id/usb-DekTec_Digital_Video_BV_DTM-3237&lt;/em&gt;-&lt;em&gt;OEM_DVB-S_DVB-S2_receiver-if00 /dev/serial3&lt;br/&gt;
sudo ln -s /dev/serial/by-id/usb-Silicon_Labs_CP2103_USB_to_UART_Bridge_Controller_PDBBRK006518-if00-port0 /dev/serial4&lt;br/&gt;
sudo ln -s /dev/serial/by-id/usb-u-blox_AG&lt;/em&gt;-_www.u-blox.com_u-blox_GNSS_receiver-if00 /dev/serial5&lt;br/&gt;
sudo ln -s /dev/serial/by-id/usb-Silicon_Labs_CP2103_USB_to_UART_Bridge_Controller_0047-if00-port0 /dev/serial6&lt;/p&gt;
&lt;p&gt;I can not open serial port with this code. it's generate error. How can i solve this problem?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 3.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3283"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 2.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3282"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 1.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3281"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>