03/19/2024
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
05/30/2017
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.
03/19/2024
Hi Randy,
Thanks for your reply. We need few more input to understand the issue with our client.
We noticed that when we drag and drop “Server” node in event view of UAExpert or Prosys Browser, it creates subscription on the server. This is not the case for our client.
On click event to the “Server” node on our client, it makes Browse and Read request to the server and pull the children and when we map it with client item, it displays the events of certain type only and certain other types of events are missed which we discussed above.
Is the subscription call required here to get all types of events?
Thanks,
Chirantan
1 Guest(s)