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
Node Subscription
August 17, 2016
2:34, EEST
Avatar
Tejeswar
New Member
Members
Forum Posts: 2
Member Since:
August 17, 2016
sp_UserOfflineSmall Offline

Hello Everyone,

I am subscribing to few Tags on a Kep server and few of the tags have status as bad, however I do not get subscription notification for all the nodes, not even for the first time. I only get subscription notification one time that too for one node whose status is bad. Can someone help me in understanding what might be causing this behavior.

August 17, 2016
10:16, EEST
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello Tejeswar,

If I understood correctly, your issue is that you are not receiving any subscription notifications for some nodes and for some nodes subscriptions work as expected. Is this correct?

As a first step, you should make sure that the server actually sends subscription notifications in the way that you expect. You can accomplish this by using a third party client application, such as Prosys OPC UA Client: https://prosysopc.com/products/opc-ua-client/

When you know that the server works as expected, you should take a look at how you create your subscriptions. In Prosys OPC UA Java SDK you can listen to data changes either at the MonitoredItem level

dataItem.setDataChangeListener(dataChangeListener);

or on the Subscription level

subscription.addNotificationListener(subscriptionListener);

Are you sure that there is a data change listener added to all of the MonitoredItems?

Let us know if this was helpful or if you have further questions.

August 17, 2016
22:24, EEST
Avatar
Tejeswar
New Member
Members
Forum Posts: 2
Member Since:
August 17, 2016
sp_UserOfflineSmall Offline

Hello Tahvanainen,

Thanks for the prompt response, the issue is resolved for the tags that didn’t have correct data type set, I was not receiving subscription messages. After changing the data type the subscription started to work.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
20 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

TimK: 41

Member Stats:

Guest Posters: 0

Members: 682

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