<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?</title><link href="https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/</id><updated>2022-02-15T01:57:32.409000Z</updated><subtitle>Recent posts to Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?</subtitle><entry><title>Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?</title><link href="https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/?limit=25#b0c6" rel="alternate"/><published>2022-02-15T01:57:32.409000Z</published><updated>2022-02-15T01:57:32.409000Z</updated><author><name>trent</name><uri>https://forge.codesys.com/u/trent/</uri></author><id>https://forge.codesys.com2c5675b031a6a5a8da6436b36de20acb59d1c3c3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi &lt;a class="user-mention" href="/u/eschwellinger/"&gt;@eschwellinger&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks very much for your responses - I ended up changing the IP address to localhost and that has fixed the issue for me :)&lt;/p&gt;
&lt;p&gt;regards,&lt;br/&gt;
Trent&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?</title><link href="https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/?limit=25#4fbb" rel="alternate"/><published>2022-02-09T13:17:20.614000Z</published><updated>2022-02-09T13:17:20.614000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com2afee0191e0776bbf1f2fc561680f018910d6503</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;a ok sorry did not see the answer bevor my post, if it stay green then the problem is:&lt;/p&gt;
&lt;p&gt;"I would imagine that he might have a problem with the UDP broadcast"&lt;br/&gt;
Then you could connect the PLC with the IP address in the Edge Gateway here:&lt;br/&gt;
picture follows&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?</title><link href="https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/?limit=25#e223" rel="alternate"/><published>2022-02-09T13:15:27.438000Z</published><updated>2022-02-09T13:15:27.438000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com92467c4d887674dc9190c8743a1d0780631ce94d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Trent,&lt;br/&gt;
this should work,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Does a websocket connection work for you via the 4G modem? &lt;br/&gt;
I have found the following project with which you can test it in the console: &lt;a href="https://github.com/vi/websocat" rel="nofollow"&gt;https://github.com/vi/websocat&lt;/a&gt;&lt;br/&gt;
Alternatively, if you have RaspberryPI OS with graphilcal interface on the PI, you could with achromium/browser go to You Automation Server URL. &lt;br/&gt;
If you see there the status of Edges + PLCs then also the Edge should be able to connect.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you uses the PI as edge gateway and PLC, will the 4G modem show both the edge gateway and the PLC as disconnected or only the PLC? &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;If it was just the PLC, I would imagine that he might have a problem with the UDP broadcast. &lt;/li&gt;
&lt;li&gt;Then you could connect the PLC with the IP address, locally this should be possible even with "localhost".&lt;br/&gt;
-&amp;gt; as an option Increase the log level of the Edge should also provide more information.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;How to do this:&lt;br/&gt;
in /etc/Gateway.cfg&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[CmpLog]&lt;/span&gt;
&lt;span class="na"&gt;**CmpEdgeGateway.Filter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0xFFFFFFFF**&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/tmp/codesysedge.log&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Filter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x0000000F&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Enable&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.MaxEntries&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;100000&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.MaxFileSize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;5000000&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.MaxFiles&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Backend.0.ClassId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x00000104 ;writes logger messages in a file&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x314 ;Set the timestamp to RTC&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If you need more information - just use -&amp;gt; my question technical request/bugreport - we could investigate this on the system if needed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?</title><link href="https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/?limit=25#a295" rel="alternate"/><published>2022-02-09T10:50:23.733000Z</published><updated>2022-02-09T10:50:23.733000Z</updated><author><name>trent</name><uri>https://forge.codesys.com/u/trent/</uri></author><id>https://forge.codesys.come036603ba741815b72ec8683514bbffdf9241190</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your reply,&lt;/p&gt;
&lt;p&gt;Yes the Gateway status icon always appears to stay green, regardless of whether the ethernet cable is connected or not, I guess that suggests the edge gateway on the Pi is using the wwan0 interface....&lt;/p&gt;
&lt;p&gt;But, when I look in "list view", the status icon of the device changes to a red exclamation mark within a circle when i disconnect ethernet cable and I can no longer connect to the device via Codesys IDE.&lt;/p&gt;
&lt;p&gt;This icon changes back to the debug icon when i reconnect the ethernet cable....&lt;/p&gt;
&lt;p&gt;Is it possible I need to force the CodesysControl application to use the wwan0 port as well?&lt;/p&gt;
&lt;p&gt;cheers,&lt;br/&gt;
Trent&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?</title><link href="https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/?limit=25#a5b2" rel="alternate"/><published>2022-02-09T05:43:57.495000Z</published><updated>2022-02-09T05:43:57.495000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.coma6b7022e7daaff4f452b0238a40160af47813936</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sjhould work, does the Gateway stay green if you disconnect the ethernet cable in the CAS?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?</title><link href="https://forge.codesys.com/forge/talk/automation_server/thread/0213592831/?limit=25#5860" rel="alternate"/><published>2022-02-08T10:40:24.815000Z</published><updated>2022-02-08T10:40:24.815000Z</updated><author><name>trent</name><uri>https://forge.codesys.com/u/trent/</uri></author><id>https://forge.codesys.comd56181cc29999ad851c8486bdfb8c6c10aa2c067</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I have a raspberry-pi with an ethernet network interface (eth0) and a 4g modem interface (wwan0)&lt;/p&gt;
&lt;p&gt;When I have an ethernet cable connected to eth0, I am able to connect to the codesys soft PLC running on the pi via the Codesys automation server.&lt;/p&gt;
&lt;p&gt;But, when I disconnect the ethernet cable,CAS reports my Pi is no longer connected to the Automation server. (But the pi still has internet access via the wwan0 interface, i can ping external IP's and hit web pages from the terminal...)&lt;/p&gt;
&lt;p&gt;I was wondering, is there a way to force the Linux Edge gateway running on the pi to use a specific network interface? (wwan0 in this case)&lt;/p&gt;
&lt;p&gt;I should also mention that the IP address associated with wwan0 is a dynamic "10.116.xx.xx" address which is not publicly accessible/ routable through the internet. &lt;/p&gt;
&lt;p&gt;Ideally I'd like to be able to install the device somewhere with just a 4G connection.&lt;br/&gt;
The device would maintain a connection with CAS, so I can remotely access the device to modify code/ troubleshoot using Codesys IDE.&lt;br/&gt;
Just wondering if anyone has implemented something similar? Or am I crazy and need to think of another way :)&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br/&gt;
Trent&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>