Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Server: force a client to refresh subscription with monitoredItems
August 19, 2020
11:50, EEST
Avatar
Yamikaze
Member
Members
Forum Posts: 5
Member Since:
August 19, 2020
sp_UserOfflineSmall Offline

Hi all,

I’m using the 3.2.0-690 version of prosys SDK for my OPC server.
With UaExpert I subscribe some node in the Data Access View. But when my server rebuilt this nodes (keeping the same NodeId), the subscribed nodes in UaExpert don’t take in account any value modification. But when I reconnect UaExpert, these nodes seem like refresh in client side and their value are well updated in Data Access View without the need to remove / put them from this view.

I would like to know if it’s possible to request a client to refresh its subscriptions without the need to reconnect the client.

Regards

August 19, 2020
14:11, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

What do you mean with your Server rebuilding nodes? Are you removing them and then adding them back later?

August 19, 2020
14:46, EEST
Avatar
Yamikaze
Member
Members
Forum Posts: 5
Member Since:
August 19, 2020
sp_UserOfflineSmall Offline

Yes I remove them and then adding them in the instant

August 20, 2020
10:26, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Could you tell why you need to remove Nodes and add them back?

August 20, 2020
10:44, EEST
Avatar
Yamikaze
Member
Members
Forum Posts: 5
Member Since:
August 19, 2020
sp_UserOfflineSmall Offline

My server communicates with equipments. When I lost communication with theses equipments I must rebrowse their nodes and so delete and recreate them. But this is not my problem. I know that UaExpert can recreate the link between the nodes in Data Access View and the node of the server. It did it at the connection. But I prefer not to have to disconnect the client so it have to reconnect because all client don’t reconnect automatically. That is why I would to know if there is a possibility to send information to the client from my server so the client can, I don’t know how, update the node in the Data Access View. The rebrowse of the Ua tree does not work.

August 20, 2020
13:33, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

When you lose connection to your equipment, you should set Attributes of Nodes representing the equipment to null value with StatusCode Bad_OutOfService, which implies to Clients that the Server has temporarily lost connection with its source of data. When you reconnect to the equipment, you should read current Values of Attributes from it and set those Values to Nodes representing the equipment. This is more efficient unless you must delete the Nodes for some reason.

At the moment deleting monitored Nodes is not working as specifed and the Server will continue sending keep-alive messages to Clients monitoring them even though it should send a Bad_NodeIdUnknown StatusCode when a monitored Node is deleted. Adding the deleted Node back to the Server’s AddressSpace isn’t working correctly with monitored Nodes either and the Client won’t receive DataChange Notifications until it recreates the MonitoredItem to monitor the Node. This will be fixed in a later release of the Prosys OPC UA SDK for Java.

August 20, 2020
14:21, EEST
Avatar
Yamikaze
Member
Members
Forum Posts: 5
Member Since:
August 19, 2020
sp_UserOfflineSmall Offline

The problem is the quipement may not have the same datas than previously, I can’t keep the nodes in my server.
So there is no possiblities to ask the client to recreate the monitoredItem like it does at the connection ?

August 20, 2020
15:25, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Do the equipment have some unique identifiers that don’t change between connecting and disconnecting to them? If they do, you could add an Object to the Server’s AddressSpace that Clients can read to find current status for each equipment. When Clients detect a change from connected to disconnected or from disconnected to connected, they could act appropriately, such as deleting and recreating MonitoredItems.

August 20, 2020
15:43, EEST
Avatar
Yamikaze
Member
Members
Forum Posts: 5
Member Since:
August 19, 2020
sp_UserOfflineSmall Offline

I don’t have control over the client. I can just make some modifications on the Server side. Is there a way to ask via the Session or the Channel class ?

August 21, 2020
12:48, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Your use-case is quite uncommon and unfortunately it isn’t properly supported by the Prosys OPC UA SDK for Java at the moment. If you could keep the Nodes in the Server’s AddressSpace and just set their StatusCodes to Bad_OutOfService during loss of connection, then there would be no problemon the Client side.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1