Fetching the events from an OPC UA Server|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Fetching the events from an OPC UA Server
Avatar
CHIRANTAN JOSHI
Member
Members
Forum Posts: 7
Member Since:
03/19/2024
sp_UserOfflineSmall Offline
1
07/01/2024 - 06:34
sp_Permalink sp_Print

Hi Team,

 

Our OPC UA client uses OPCUA legacy Java stack. The client retrieves the information model from the OPC UA server and then browses over it for listing the events to render on the UI. The following steps are being taken for this browsing process. 
1. Check the selected node, if it subscribes to events add it to the list of events else find its children.
2. Iterate over the children. If the child is subtype of Identifiers.GeneratesEvent recursively call this function.
3. else go to the list of parents and find parents which are subtype of Identifiers.HasSubtype.
4. Iterate over these parents and recursively call this function.

 

While doing this below events are missed/filtered out and hence not rendered on the UI
1. SystemEventType
2. EventQueueOverflowEventType
3. TransitionEventType
4. SampleEventType
5. TraceEventType

 

Please assist to efficiently browse the information model so that all events can be listed and rendered for further mapping and deployment.

 

Thanks,

Chirantan

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
07/02/2024 - 16:07
sp_Permalink sp_Print

The GeneratesEvent reference will not always be present.

Many events are only produced by the Server Object.

The events propagate up the HasNotifier references to the Server Object. If you want all events produced by a server you only subscribe to the Server Object. You subscribe to Objects lower in the HasNotifier hierarchy only when you want to restrict the events reported.

So it is not clear why you need any recursive operations.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 46
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1395
Posts: 4715