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
Need clarification on DataChange Notification behavior
May 6, 2019
12:20, EEST
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 16
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

Hi Experts,

While testing the behavior of dataChange notifications by using prosys simulation server and prosys opc ua client I have noticed that if I set the publishing interval of subscription settings to 1000 ms and sampling interval of monitoredDataItem to 20000ms and queue size to 1 with discard oldest to true, I’m getting messages/notifications on each second which basically seems like it is not honoring the sampling interval at all .

As per my understanding from documentation(correct me if I’m wrong) sampling interval specifies the polling interval on which server samples the data from source and pushes it to queue and finally on publish interval flushes the queue and deliver the notifications to the client. Now as per the above scenario , since the polling or sampling interval in 20000 server should poll on that interval and because of which we should not get any updates or notifications during the time gap of the sampling and publish interval.

Kindly help me clear the above doubt.
Thanks in advance.Smile

Dipankar.

May 6, 2019
14:27, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Your observation is correct. To put it shortly we don’t yet support that scenario very well in our SDK. The plan is to eventually support that, but it requires some internal changes to do actual sampling that way. I can go into more SDK details if needed, but basically in the typical scenario we (only) simulate sampling whenever new values are detected on the UaNodes, which is the case with SimulationServer.

Do you have a use-case, in which it would be useful and simply using a larger publishinginterval wouldn’t work?

P.S.
It is doable, see the MyBigNodeManager SDK sample, assuming you manually limit MonitoredDataItems by your code to only get updates on the sampling rate. However it is a bit more lower-level API to work with.

May 6, 2019
15:26, EEST
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 16
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

Thanks Bjarne for the response. It was very helpful. Smile
Currently we don’t have such scenario. Came to this scenario while testing our prosys opc ua compliant product for different possibilities.

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: 729

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala

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

Administrators: admin: 1