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
Moderator
Members

Moderators
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
Moderator
Members

Moderators
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: 518

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 684

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1