Find and share HowTos to various installations / configurations!
7 posts • Page 1 of 1
7 posts
• Page 1 of 1
NFedorenko
Posts:45
Joined: Wed Jun 15, 2016 5:41 pm
Can\'t establish connection between Web-client and para.
Postby NFedorenko »
Hello to all!
I've created a project with dp's, tables, ui forms...
Everything works properly, but when I start using Web-client, forms, animation and scripts are working nice,
but when I use functions like dpSet() I can see changes only in web-client, but not in para on server.
Re: Can\'t establish connection between Web-client and para.
Postby mkoller »
There is no need to configure anything. When you do a dpSet then the value is sent to the event manager which stores this value and passes it also to the database manager for last value storage.
The Event manager also distributes the changed value to all interested other managers. "Interested" means: they did a dpConnect()
for this specific DPE.
If you do a dpSet() which is not shown in Para, then the dpSet() did not work.
Check what happens. E.g.
- check the return value of dpSet(). If it is -1 then the message was not sent (e.g. wrong DP name)
- use a dpSetWait() and check with getLastError()/throwError() what error you got from Event manager.
- activate the -snd/-rcv debug flags in UI and/or event and check if the message is really sent/received.
Re: Can\'t establish connection between Web-client and para.
Postby NFedorenko »
Strange things...on local machine (on server) web-client and para works properly, dpSet() works, I can see all changes.
But when I do the same on another PC (not on server), script works on remote machine, I can see tha changes of dp on trend in web-browser on remote machine, BUT there is no changes in dp on server.
Maybe web-client use RAM on remore machine and don't send changes to server.
Re: Can\'t establish connection between Web-client and para.
Postby leoknipp »
Hello,
the UI client does not use any local RAM to store value changes which are send to the event manager.
Did you check if the messages are send by activating debug-levels?
Did you have a look at the logfiles to see if an error occured (using getLastError() and throwError() in the script calling dpSet())?
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Can\'t establish connection between Web-client and para.
Postby mkoller »
Check if your client can resolve the name "server" to the IP address "192.168.10.5".
The WebClient plugin receives the config file from the server and tries to resolve what's defined as data/event.
If that is wrong, it might end up connecting to a different server.
You can check the logfile in the cache directory on the client, e.g. ~/.wincc_oa-cache/projectName/log/PVSS_II.log
and look for the line with "Trying to connect to" ... to see to which server it connects