Multiples clients OPCUA on differents vendor server, all gives a shutdown state when I restart one|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Multiples clients OPCUA on differents vendor server, all gives a shutdown state when I restart one
Avatar
Simon
Member
Members
Forum Posts: 5
Member Since:
08/31/2016
sp_UserOfflineSmall Offline
1
01/16/2019 - 12:47
sp_Permalink sp_Print sp_EditHistory

Hi,

I am currently testing our application which is an OPC client containing and running 2 different OPC UA application instances with each of them running their own session. One session is connected to a local OPC UA server (vendor A) and the other session is connected to a remote OPC UA server (with a different vendor B). What I have notice is when I restart the local server, the server state node, which I read regularly from servers, both gives a Shutdown state (even the one from the remote PC with different vendor). I don't understand this behavior. But when I restart the remote OPC UA server (vendor B), only the session associated to it will return a shutdown, leaving the other running as it is the case and as the expected behavior.

Am I missing a configuration that suppose to make every instance or every session unique, because I use the same configuration XML to create my 2 instances? Why this behavior (multiple shutdown states on other unrelated session) when I restart the local server where my client application is?

thank you.

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
01/16/2019 - 17:14
sp_Permalink sp_Print

Are you saying the the change in state of local server affects the state of the remote server?

If so you likely have a client side bug in the callback where the state change is being incorrectly handled.

If your client is .NET you can see this kind of weird behavior you have multiple event callbacks registered when you only expect one.

Using the debugger should allow you to confirm.

Avatar
Simon
Member
Members
Forum Posts: 5
Member Since:
08/31/2016
sp_UserOfflineSmall Offline
3
01/17/2019 - 06:49
sp_Permalink sp_Print sp_EditHistory

You were right with the bug from my client configuration. I used to point on the same EndpointUrl (local) when connecting to each server. Bad file config reading (hardcoded hostname issue) from my part.

Thank you very much for your time

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 31
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855