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
Server doesn't seem to respect client's minimumSamplingInterval
February 15, 2016
15:59, EET
Avatar
hbrackel
Member
Members
Forum Posts: 144
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: 1026
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: 1026
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:
7 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: 737

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6450

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

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

Administrators: admin: 1