Can\'t establish connection between Web-client and para.

Find and share HowTos to various installations / configurations!
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.

Post by 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.

I'm using dpSet like this:

Code: Select all

dpSet("System1:tst1.name", "myownname" )
So how can I configure server or client to see changes, that I do in web-client?

I'm using one PC as server and another PC as web-client.
3.14 P005 and IE10.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Can\'t establish connection between Web-client and para.

Post by 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.

NFedorenko
Posts:45
Joined: Wed Jun 15, 2016 5:41 pm

Re: Can\'t establish connection between Web-client and para.

Post by 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.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Can\'t establish connection between Web-client and para.

Post by 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

NFedorenko
Posts:45
Joined: Wed Jun 15, 2016 5:41 pm

Re: Can\'t establish connection between Web-client and para.

Post by NFedorenko »

Solved.


Thanks for the answer, but there was another trouble.

I've edited config file:

Before:

Code: Select all

[general]
data = "server"
event = "server"
Now:

Code: Select all

[general]
data = "192.168.10.5"
event = "192.168.10.5"

I don't know why does it work,
but IPv4 works and server name don't.

Is that normal?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Can\'t establish connection between Web-client and para.

Post by 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

NFedorenko
Posts:45
Joined: Wed Jun 15, 2016 5:41 pm

Re: Can\'t establish connection between Web-client and para.

Post by NFedorenko »

That's exactly what I've done.

Thank you for the solution!

7 posts • Page 1 of 1