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
Subscription to nodes in OPC UA
May 21, 2013
5:00, EEST
Avatar
cto
Member
Members
Forum Posts: 15
Member Since:
March 22, 2013
sp_UserOfflineSmall Offline

Hi ,

I am using OPC UA java client evaluation version . It is very powerful. I have used the subscription facilities to subscribe to certain nodes and fetch data at regular intervals. I am developing an application. I start the subscription. The node got subscribed. Now I logged out from the application. Then again I want to connect to the OPC UA server and know what items are already subscribed using the java client sdk?Is it possible?Is there any API. Can I get a sample java code snippet?

Thanks in advance.

May 21, 2013
7:28, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I am not quite sure what you are looking for.

The Subscriptions are available from the UaClient and the subscription has a list of Items, which define what the subscription contains.

Or what did you mean with logging out of the application?

May 24, 2013
10:54, EEST
Avatar
cto
Member
Members
Forum Posts: 15
Member Since:
March 22, 2013
sp_UserOfflineSmall Offline

Jouni Aro said

I am not quite sure what you are looking for.

The Subscriptions are available from the UaClient and the subscription has a list of Items, which define what the subscription contains.

Or what did you mean with logging out of the application?

Sorry I just confused you.
When I subscribe to a node using Prosys OPC UA java client , then if I notice the console , I observe that subscribed node’s data are coming. Is there a thread running at the back end? How is this continuous data coming? I just wanted to know if I can get any identifier / id of this service running at the back end? Can you clarify the back end service! Is this any worker thread? Any job?

Thanks in advance.

May 24, 2013
12:25, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, the UaClient has a PublishTask, which is run inside a worker thread. It is dispatching PublishRequests to the server and also handling of the PublishResponses that have been received. The PublishResponses come in asynchronously and are just put in a queue, which is cleared by the PublishTask.

Which kind of ID are you looking for?

May 28, 2013
9:01, EEST
Avatar
cto
Member
Members
Forum Posts: 15
Member Since:
March 22, 2013
sp_UserOfflineSmall Offline

Jouni Aro said

Yes, the UaClient has a PublishTask, which is run inside a worker thread. It is dispatching PublishRequests to the server and also handling of the PublishResponses that have been received. The PublishResponses come in asynchronously and are just put in a queue, which is cleared by the PublishTask.

Which kind of ID are you looking for?

Thanks. Just wanted to know that suppose my ua client object subscribe to a node for any data item listener / event listener. Then does the client sends request every time to get a response or it is like one time subscription ? The client just subscribes to the node and the server asynchronously sends response.

Thanks in advance.

May 28, 2013
11:28, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes that’s the case. In OPC UA, the client frequently “polls” the server, which is sampling the data and keeps a notification queue from which it sends new notification messages as responses to client polls.

So in practice, you just subscribe to data in the client and you get all the changes from the server in order. The properties of the Subscription and MonitoredItems define the exact details of sampling rates and publishing intervals that define how often the notifications are transferred and how many samples they may contain each.

The various parameters are explained in the blog post

February 21, 2014
5:12, EET
Avatar
cto
Member
Members
Forum Posts: 15
Member Since:
March 22, 2013
sp_UserOfflineSmall Offline

Jouni Aro said

Yes that’s the case. In OPC UA, the client frequently “polls” the server, which is sampling the data and keeps a notification queue from which it sends new notification messages as responses to client polls.

So in practice, you just subscribe to data in the client and you get all the changes from the server in order. The properties of the Subscription and MonitoredItems define the exact details of sampling rates and publishing intervals that define how often the notifications are transferred and how many samples they may contain each.

The various parameters are explained in the blog post

Hi,

Could you please let me know how can the queue size be maintained from the opc ua client side and get bulk data from the queue at regular intervals . Also where is the queue is being maintained , is it at the client side or server side ? Using queues , can the performance of data fetching from OPC UA server be controlled. ?

February 21, 2014
9:22, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

In the client, you can define Subscription.PublishingInterval, which defines how often the server “sends” new notification messages. You cannot configure the notification message queue from the client and in practice, the queue is only used for sent packages to be able to resend in case of communication problems.

If the monitored items may change faster than the PublishingInterval, you can define a smaller SamplingInterval and a QueueSize for the item. This is a bit different, but enables fast sampling, even though the samples would not be transferred to the client so fast.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
33 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: 680

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6260

Newest Members:

sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule

Moderators: Jouni Aro: 1009, 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