Hi Everyone,
I am struggling to make a remote connection over a cellular network between my laptop and a Raspberry Pi 3 PLC target.
I am using m2m (machine to machine) SIM cards, and connect to a private cellular network.
For example, my laptop has IP address 10.11.12.13, and my Raspberry Pi 3 has IP address 10.11.12.113 (these IP addresses are examples).
Windows firewall on laptop has been temporarily disabled.
I can ping the remote IP address (10.11.12.113).
I did a 'sudo netstat -ltunap' to show the list of TCP and UDP ports associated with the Pi, and tried configuring the IP address and port numbers listed here, in the Communication settings of the PLC device. I tried each and every IP address and port number combination listed with the netstat command. To no avail.
Does anyone know how to make a remote connection over different subnets / different networks using Codesys IDE and a PLC device?
Kind Regards
Kyran McGlasson
SAGE Automation
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After looking at one of the port numbers the codesyscontrol process on the Pi was listening to, port 1217, looked similar to the port configured on the gateway.
So I created a new gateway (Gateway-2) and set the IP address 10.11.12.113 (of the Pi) with port 1217.
Then I selected Gateway-2 from the gateway drop down list.
Then I clicked the "Scan Network ..." button (top left in the window) and lo and behold it detected the remote PLC device.
So I hope this helps others wondering how to do it.
Regards,
Kyran McGlasson
SAGE Automation
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Everyone,
I am struggling to make a remote connection over a cellular network between my laptop and a Raspberry Pi 3 PLC target.
I am using m2m (machine to machine) SIM cards, and connect to a private cellular network.
For example, my laptop has IP address 10.11.12.13, and my Raspberry Pi 3 has IP address 10.11.12.113 (these IP addresses are examples).
Windows firewall on laptop has been temporarily disabled.
I can ping the remote IP address (10.11.12.113).
I did a 'sudo netstat -ltunap' to show the list of TCP and UDP ports associated with the Pi, and tried configuring the IP address and port numbers listed here, in the Communication settings of the PLC device. I tried each and every IP address and port number combination listed with the netstat command. To no avail.
Does anyone know how to make a remote connection over different subnets / different networks using Codesys IDE and a PLC device?
Kind Regards
Kyran McGlasson
SAGE Automation
I think I found the answer to my question.
After looking at one of the port numbers the codesyscontrol process on the Pi was listening to, port 1217, looked similar to the port configured on the gateway.
So I created a new gateway (Gateway-2) and set the IP address 10.11.12.113 (of the Pi) with port 1217.
Then I selected Gateway-2 from the gateway drop down list.
Then I clicked the "Scan Network ..." button (top left in the window) and lo and behold it detected the remote PLC device.
So I hope this helps others wondering how to do it.
Regards,
Kyran McGlasson
SAGE Automation