How to OPC UA server send reversehello message to OPC UA Client?|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
How to OPC UA server send reversehello message to OPC UA Client?
Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
1
05/15/2024 - 04:04
sp_Permalink sp_Print

Hi,

I have developed OPC UA SERVER application using CSharp(C#) language.

The requirement is OPC UA Server shall support reverse connection. Sever send a request to client.

My questions is -- 

When no TCP communication channel is currently opened with OPC UA client, then OPC UA server shall periodically send a ReverseHello message to OPC UA client. How to handle this one?

I have configured below details in configuration file for reverse connect.

<ServerConfiguration>

<ReverseConnect>
<Clients>
<ReverseConnectClient>
<EndpointUrl>opc.tcp://localhost:65300</EndpointUrl>
<MaxSessionCount>2</MaxSessionCount>
<Enabled>true</Enabled>
</ReverseConnectClient>
</Clients>
<ConnectInterval>15000</ConnectInterval>
<ConnectTimeout>30000</ConnectTimeout>
<RejectTimeout>60000</RejectTimeout>
</ReverseConnect>
</ServerConfiguration>

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/15/2024 - 19:19
sp_Permalink sp_Print

The server cannot send a reverse hello without a socket.

If a socket breaks creates a new socket and sends a reverse hello.

Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
3
05/15/2024 - 21:51
sp_Permalink sp_Print sp_EditHistory

what is the meaning of reverse hello? Is there any message is sending from server to client?

Can OPC UA server periodically send a ReverseHello message to OPC UA client?

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
05/16/2024 - 23:18
sp_Permalink sp_Print

The ReverseHello is a message a Server sends to a Client to tell it that the socket will accept Hello requests.

The ReverseHello is sent once each time a Server connects to a Client.

Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
5
05/16/2024 - 23:22
sp_Permalink sp_Print

How to configure,   server periodically send a ReverseHello message to OPC UA client?

I have used below config

<ServerConfiguration>

<ReverseConnect>
<Clients>
<ReverseConnectClient>
<EndpointUrl>opc.tcp://localhost:65300</EndpointUrl>
<MaxSessionCount>2</MaxSessionCount>
<Enabled>true</Enabled>
</ReverseConnectClient>
</Clients>
<ConnectInterval>15000</ConnectInterval>
<ConnectTimeout>30000</ConnectTimeout>
<RejectTimeout>60000</RejectTimeout>
</ReverseConnect>
</ServerConfiguration>

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
6
05/20/2024 - 07:58
sp_Permalink sp_Print

Should cause the server to maintain 2 open sockets with the client and if the client goes down the server will retry on a 15s cycle.

Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
7
05/20/2024 - 21:58
sp_Permalink sp_Print

you mean to say, OPC UA Sever will use ConnectInterval parameter for sending reverse hello message periodically to OPC UA Client right?

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
8
05/21/2024 - 09:25
sp_Permalink sp_Print

That is what should happen when the client is down. When the client is running it creates 2 sockets.

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