madgoks
I am running openPLC and ScadaBR in separate VMs and I am able to run and observe the data using an AdvancedHMI interface.
 
However when I flash a new program on the PLC, I keep getting a 'Connection refused' error on the HMI of the ScadaBR. If i repeat the flashing 3 or 4 times it starts working. But whether it works after 2 or 3 times is unpredictable.
 
I suspect that connection on port 502 is being refused since the older TCP connection has not been brought down and new requests cannot be serviced till the old TCP connection is closed. If I run a netstat on the openPLC machine I see the remote connection when SCADABR is displaying data but no connection when the SCADA is not connecting. Looking at /var/log logs doesn't give me any additional information
 
How can I diagnose what's going on? Is it that I need to stop the openPLC before I upload the program? Is there something I am doing wrong?
 
Are there some resources that I can read and use to resolve the problem?
Reply 0 0
thiagoralves
Upgrade to OpenPLC v3
Reply 0 0
madgoks
Thanks a lot for the quick revert . Sure I will try that too but I am using it as part of a open source hacking demo and I need to use v2 with a libmodbus version with a kniwn weakness.
 
Is there a way to diagnose and get v2 working?
Reply 0 0
fg71
Could you not download the latest version and before you install change libmodbus to the version you like to use.
It maybe would work
Reply 0 0
madgoks
thanks. will do that. but i was also trying to understand what's causing the problem.. any pointers would help...
Reply 0 0
fg71
If I'm correct ScadaLTS is fork of ScadaBR, so any issues you have could be that ScadaBR have issues.
In other words you like to use ScadaBR that use Java 8, that is no supported anymore. Not only that ScadaBR have not been updated for 4 years.
On other hand ScadaLTS is still active and have remove many issues and use Java 11 that are still supported.
 
I'm not a user of ScadaBR but I do have got ScadaLTS to work in Windows docker.
 
You could test other client if you could connect to server, or use the client to connect to other server. This way you could rule out if its a client issue or server.
Reply 0 0
thiagoralves
I haven’t touched v2 code for the last 7 years. This project is very old and is not maintained anymore. I’m surprised it even runs on modern systems. There are a lot of things that could be wrong on that, including incompatibility with modern OSes.
Reply 0 0
madgoks
Thanks for the revert. I am running it on a ubuntu 16.04 VM. While I am trying to get v3 working I see the error message as Connection refused and I suspect its got to do with TCP Alive setting @ScadaBRand the TCP connection not being brought down when a new program is uploaded to the PLC. Will revert if I make some headway ... or with the eventual solution too
Reply 1 0
Reply