tcpOpen on mobile device to pmon connection refused

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
3 posts • Page 1 of 1
ja_ma_
Posts: 10
Joined: Thu Jun 09, 2022 3:56 pm

tcpOpen on mobile device to pmon connection refused

Post by ja_ma_ »

I need to get the state of a manager within the mobile ui using ctrl.

I am using pmon_query function to get all the states of the managers.
Since the "normal" pmon functions do not work with mobile/desktop ui https://www.winccoa.com/documentation/W ... tName.html.

The pmon_query function works locally and with the desktop ui.
But with the mobile ui (Android) i get the following error in the tcpOpen function which is called inside the pmon_query.

Code: Select all

Library: /data/user/0/com.siemens.winccoaui/cache/7818167_SC_GBS_Berlin/scripts/libs/pmon.ctl
    Line: 476, tcpOpen, connect failed. OS message: Connection refused
The tcpOpen function has the following parameter values:
host: "localhost"
port: 4999


Is this a known limitation or do i have a settings problem on my android device?

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: tcpOpen on mobile device to pmon connection refused

Post by leoknipp »

When the Mobile UI is used on a mobile device only a UI instance is running.
There is no other WinCC OA process running on this device. Therefore, it is not possible to use the pmon_query() command as there is no PMon running which will return information.

Even if a Desktop-UI is used normally there is no PMon used. A PMon is only running if it started explicitely.

Best Regards
Leopold Knipp
Senior Support Specialist

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: tcpOpen on mobile device to pmon connection refused

Post by gschijndel »

The best way to check the state of a manager is by using (internal) datapoints as not all manager do not have to run on a single server.
For example to check if a manager is connected the '_Connections' datapoint can be used. More specific information of that manager can usually be found in the datapoint of the manager itself.
In case the required information is not already provided by default, then a control script can be run on the server(s) to provide this. As you already noticed there are more tools available for this and they can be used to write the needed information to a datapoint element.

BTW: the pmon_query might also work from Android, but the fully qualified domain name (FQDN) of the host running the pmon needs to be specified.

Post Reply
3 posts • Page 1 of 1