06/29/2023
OfflineHi,
Can @Randy or someone help to explain to me about the UA ServerState specification? I cannot find out a clear answer concerning the UA Server's behaviour when it's not in Running state. It feels like an undefined behaviour from UA Specification: UA Part 5: Information Model - 12.6 ServerState
The default behaviour from OPC Foundation's .NET standard stack is that, the server rejects any service request with ServiceResult: BadServerHalted. It results:
- The client cannot establish a session with the server.
- The already established session fails.
- The ServerState cannot be read by the Client, nor be sent from the server to the client.
Is this expected behaviour across all vendors? Or is it vendor specific how the server should behave in non-Running states?
I am aware of that the server's behaviour can be overided. So why the standard stack choose to reject any service request?
Thanks in advance,
Siyuan
05/30/2017
OfflineThe definition of Bad_ServerHalted from Part 4
| Bad_ServerHalted | The Server has stopped and cannot process any requests. |
Based on this definition you can go through the states and decide which ones mean it cannot process requests:
FAILED, SHUTDOWN and maybe UNKNOWN,
If the Server is in states other than these and Bad_ServerHalted is returned then it is bug in the .NET code.
Moderators-Implementation
03/27/2014
OfflineBut what's the purpose of the ServerState variable, if the client cannot even read the value in these cases?
My interpretation has been that these are just information for the client application that the server is not able to provide actual data. But, nobody really uses these, anyway, and as can be seen with the .NET stack it's not even possible, if it cannot ever provide all of the defined values.
1 Guest(s)


Log In

Usage Policy