11:50, EEST
August 19, 2020
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
14:11, EEST
Moderators
February 11, 2020
14:46, EEST
August 19, 2020
10:26, EEST
Moderators
February 11, 2020
10:44, EEST
August 19, 2020
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.
13:33, EEST
Moderators
February 11, 2020
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.
14:21, EEST
August 19, 2020
15:25, EEST
Moderators
February 11, 2020
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.
15:43, EEST
August 19, 2020
12:48, EEST
Moderators
February 11, 2020
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.
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, biancacraft16Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1