Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_TopicIcon
Server doesn't seem to respect client's minimumSamplingInterval
February 15, 2016
15:59, EET
Avatar
hbrackel
Member
Members
Forum Posts: 146
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Hi,

according to the specification, a server shall not send data changes with a higher update rate than requested by the client with the minimumSamplingInterval. The Server SDK doesn’t seem to respect this. Updates are sent always at the highest update rate.

Inside the my server, the variables are either updated by using the UaVariableOfSomeKind.setValue() method or by using notifyDataChange() on a monitoredItem. NotifyDataChange() should still engage the dataChangeFilter mechanism, I think.

Can the above behavior be corrected by overwriting the defaults using any of the available handlers?

PS: the publishingInterval of the subscription in the above scenarios is shorter than the requested samplingInterval

Thanks,
Hans-Uwe

February 16, 2016
7:38, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1044
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, this is a current limitation of the SDK: it does not support SamplingInterval longer than PublishingInterval for monitored items.

We will address this soon.

February 18, 2016
10:31, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1068
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Will do after 2.2.2 release is done. It seems implementing this may take some time/changes on how the data changes are notified to the Subscription from MonitoredDataItems.

Probably the easiest way to get this working until a fix is made is to limit the data values sent to .setValue or notifiyDataChange to the samplinginterval in the application specific code.

– Bjarne

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 94
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_Wanderlei
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1