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
How does the MonitoredDataItem react to communication breaks?
June 22, 2016
12:28, EEST
Avatar
Gerd
Member
Members
Forum Posts: 3
Member Since:
June 22, 2016
sp_UserOfflineSmall Offline

Dear people,
after reading the JavaDoc and the book “OPC Unified Architecture”, I got the impression, that the value in MonitoredDataItem will just freeze after loosing the connection.
Then on reconnect it will resume with whatever the server has in the queue.
Is this correct?

BR,
Gerd

June 22, 2016
15:47, EEST
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello,

This is indeed pretty much what happens in the communication error scenario. The size of the server RetransmissionQueue and the size of queues for individual monitored items will determine whether data gets lost during the communication break. Pictures in pages 159 and 161 in the mentioned OPC Unified Architecture book contain an overview of the subscription architecture.

June 27, 2016
10:26, EEST
Avatar
Gerd
Member
Members
Forum Posts: 3
Member Since:
June 22, 2016
sp_UserOfflineSmall Offline

Thank you, Heikki.

So I have to combine the MonitoredDataItem with the ServerStatusListener to get the current state of the Item displayed as BAD if there is a communication break, right?
This leads up to the next question: If the connection is reestablished, can I rely on the server to send an update to the item even if there was no change in the data?

June 27, 2016
17:57, EEST
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

Yes, you are correct, you have to combine MonitoredDataItem with the ServerStatusListener.

When the connection is re-established, you cannot rely on the server to send updates but you may use the Subscription.readAll method to refresh the current values of the items in a subscription.

June 28, 2016
13:18, EEST
Avatar
Gerd
Member
Members
Forum Posts: 3
Member Since:
June 22, 2016
sp_UserOfflineSmall Offline

Thank you very much, Heikki.
I will try that out.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
21 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: 730

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus

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

Administrators: admin: 1