<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/</id><updated>2020-02-27T14:42:18.346000Z</updated><subtitle>Recent posts to Problem with OPC/UA on Raspberry Pi</subtitle><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#32f9" rel="alternate"/><published>2020-02-27T14:42:18.346000Z</published><updated>2020-02-27T14:42:18.346000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com6f2eb2ab509fe93d288c8ad1f5ee9d893b146d50</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hm..&lt;br/&gt;
could you confirm that the miniproject from&lt;/p&gt;
&lt;p&gt;"c:\Users\&amp;lt;windowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.9.X\Examples\OPCUA.project" &amp;lt;/windowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;works with your configuration and changed /etc/init.d/codesyscontrol (added the sleep 10 in that file in the &lt;strong&gt;do_start&lt;/strong&gt; section)&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#7cfd" rel="alternate"/><published>2020-02-27T14:42:16.895000Z</published><updated>2020-02-27T14:42:16.895000Z</updated><author><name>ctgarvey</name><uri>https://forge.codesys.com/u/ctgarvey/</uri></author><id>https://forge.codesys.comaf506366d3acccb925b71861f4bdec098010ac44</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Folks,&lt;br/&gt;
Ive tried all of these hacks pertaining to opcua, pi config files,  and restart codesys engine etc, and Im not having reliable repeatable success. Have there been any further developments or guidelines re getting OPCUA server to work on Raspberry pi 1.3.0.0 with CoDeSys v3.5.9.2 runtime ? We use unified-automation OPCUA SDK internally in the office for other stuff, and are familiar with opcua. But troubleshooting it on codesys pi is difficult. Im trying to thrash out a major use case  / proof of concept for abstract control system development for our biggest client, so any help much appreciated. I got it to work once, then couldnt repeat it. Is there anything obviously wrong with the symbol configuration below? Im getting the raspberry pi empty config on ua expert, but not any variables that are supposedly configured to be available via opcua.&lt;br/&gt;
thanks&lt;br/&gt;
Cormac&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: TheViewFromUAExpert.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2187"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: TheViewSymbolConfigurationt.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2186"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#0c85" rel="alternate"/><published>2020-02-27T14:42:16.397000Z</published><updated>2020-02-27T14:42:16.397000Z</updated><author><name>petergrote</name><uri>https://forge.codesys.com/u/petergrote/</uri></author><id>https://forge.codesys.com5d03e4a6808ba3e598dab6e1eedfb342f8a0f438</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;Sorry but the OPCUA project does not sole this issue, but by running from the Terminal window "sudo /etc/init.d/codesyscontrol restart" I am then able to browse the items from my OPC UA Client.&lt;/p&gt;
&lt;p&gt;I have attached my rc.local file so that you can look into this "Claudia suggestion"&lt;/p&gt;
&lt;p&gt;Look forward to receive your feedback.&lt;/p&gt;
&lt;p&gt;Have a great day&lt;/p&gt;
&lt;p&gt;BR Peter Grote&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi Peter,&lt;br/&gt;
but one question:&lt;br/&gt;
 Does this example here work:&lt;br/&gt;
"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.9.10\Examples\OPCUA.project"&lt;br/&gt;
If you try to browse the items with your OPCUA Client?&lt;br/&gt;
BR&lt;br/&gt;
Edwin&amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2076" rel="nofollow"&gt;rc.local.txt &lt;span&gt;&lt;span&gt;[508 Bytes]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#895b" rel="alternate"/><published>2020-02-27T14:42:15.887000Z</published><updated>2020-02-27T14:42:15.887000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comc90a6f7c6e379d92eb8a2089e0b7a782bf74ba37</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;but one question:&lt;/p&gt;
&lt;p&gt;Does this example here work:&lt;/p&gt;
&lt;p&gt;"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.9.10\Examples\OPCUA.project"&amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;If you try to browse the items with your OPCUA Client?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#e667" rel="alternate"/><published>2020-02-27T14:42:14.395000Z</published><updated>2020-02-27T14:42:14.395000Z</updated><author><name>petergrote</name><uri>https://forge.codesys.com/u/petergrote/</uri></author><id>https://forge.codesys.comf5ed6c8e10cbfec2836b4b4d4c2e32acbc73ed4b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Claudio&lt;br/&gt;
Thank you for your suggestion and I have now tryed this, but sorry for me no luck.&lt;/p&gt;
&lt;p&gt;Can you please look to my attached rc.local file and tell what I am doing wrong or need to change&lt;/p&gt;
&lt;p&gt;Great help from you and for your information, if I run the "sudo /etc/init.d/codesyscontrol restart" from the termonal Windows on PRi the OPC UA Works&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Peter Grote&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;claudio hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I added this 2 lines to  /etc/rc.local before "exit 0" (edit with sudo nano /etc/rc.local ) &lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr/&gt;
&lt;p&gt;Sleep 10&lt;br/&gt;
sudo /etc/init.d/codesyscontrol restart&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;I hope this is useful&lt;br/&gt;
Claudio&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2069" rel="nofollow"&gt;rc.local.txt &lt;span&gt;&lt;span&gt;[468 Bytes]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#e4c8" rel="alternate"/><published>2020-02-27T14:42:13.860000Z</published><updated>2020-02-27T14:42:13.860000Z</updated><author><name>claudio</name><uri>https://forge.codesys.com/u/claudio/</uri></author><id>https://forge.codesys.comc0d08b094ac1ce554ab08939de9c2eadc6be7adb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;petergrote hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi Edwin,&lt;br/&gt;
Can you also please help at the suggestion : What did you mean by "init Sleep with 20s" and how to implement that?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="i-added-this-2-lines-to-etcrclocal-before-exit-0-edit-with-sudo-nano-etcrclocal"&gt;I added this 2 lines to  /etc/rc.local before "exit 0" (edit with sudo nano /etc/rc.local )&lt;/h2&gt;
&lt;p&gt;Sleep 10&lt;br/&gt;
sudo /etc/init.d/codesyscontrol restart&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;I hope this is useful&lt;/p&gt;
&lt;p&gt;Claudio&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#2d4a" rel="alternate"/><published>2020-02-27T14:42:13.326000Z</published><updated>2020-02-27T14:42:13.326000Z</updated><author><name>petergrote</name><uri>https://forge.codesys.com/u/petergrote/</uri></author><id>https://forge.codesys.comdfd7871fbab2a22e6b471f9c1e82d5a2929825a5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;Can you also please help at the suggestion : What did you mean by "init Sleep with 20s" and how to implement that?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;OW_RPi hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi, &lt;br/&gt;
I recently tested the OPC UA server with my RPi and struggled with the same problems mentioned above ("Could not connect to server: BadCommunicationError") but finally found a workaround.&lt;br/&gt;
As Edwin explained, the OPC UA Server does not reasign/change the ip-address after the runtime start.&lt;br/&gt;
So I just restarted codesyscontrol:&lt;br/&gt;
sudo /etc/init.d/codesyscontrol stop&lt;br/&gt;
sudo /etc/init.d/codesyscontrol start&lt;br/&gt;
Afterwards I was able to connect uaExpert Client to RPi OPC UA Server.&lt;br/&gt;
@Edwin: What did you mean by "init Sleep with 20s" and how to implement that?&lt;br/&gt;
Best regards,&lt;br/&gt;
Oleg&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#3be3" rel="alternate"/><published>2020-02-27T14:42:11.813000Z</published><updated>2020-02-27T14:42:11.813000Z</updated><author><name>petergrote</name><uri>https://forge.codesys.com/u/petergrote/</uri></author><id>https://forge.codesys.com771f93c216e27a62f9fedcccdb8fdb53aa91ba20</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;br/&gt;
Thank you and I was able to edit and save the edits regarding to OPC UA.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Peter Grote&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi Peter,&lt;br/&gt;
You need to add this section to /etc/CODESYSControl.cfg&lt;br/&gt;
sudo nano /etc/CODESYSControl.cfg&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#6935" rel="alternate"/><published>2020-02-27T14:42:11.256000Z</published><updated>2020-02-27T14:42:11.256000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.come76023d1bbd50de4726c6fb761e49872e5703ab5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; OW_RPi&lt;/p&gt;
&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I recently tested the OPC UA server with my RPi and struggled with the same problems mentioned above ("Could not connect to server: BadCommunicationError") but finally found a workaround.&lt;/p&gt;
&lt;p&gt;As Edwin explained, the OPC UA Server does not reasign/change the ip-address after the runtime start.&lt;br/&gt;
So I just restarted codesyscontrol:&lt;/p&gt;
&lt;p&gt;sudo /etc/init.d/codesyscontrol stop&lt;br/&gt;
sudo /etc/init.d/codesyscontrol start&lt;/p&gt;
&lt;p&gt;Afterwards I was able to connect uaExpert Client to RPi OPC UA Server.&lt;/p&gt;
&lt;p&gt;@Edwin: What did you mean by "init Sleep with 20s" and how to implement that?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Oleg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with OPC/UA on Raspberry Pi</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de22ff8ca/?limit=25#d12b" rel="alternate"/><published>2020-02-27T14:42:10.741000Z</published><updated>2020-02-27T14:42:10.741000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com50a158d5159bd46fb290e16a35cb99825c64935d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Peter,&lt;br/&gt;
You need to add this section to /etc/CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;sudo nano /etc/CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>