-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seperate Data and Metadata endpoints #27
Comments
Interested to discuss this more. Should metadata be considered to be data, even if it is slow changing or never changing? If so, metadata values also have elementIDs where there is no differentiation on READ or SUBSCRIBE. |
Metadata is data. The issue is metadata does not need to be sent with every update because it does not change as frequently. Separating data and metadata into separate streams is a useful abstraction. The most important feature is there needs to be an indication that metadata has changed in the live data stream. OPC UA PubSub does this with the ConfigurationVersion. OPC UA Client-Server does this with the StructureChanged and SemanticsChanged bits on the StatusCode. |
There are many directions to go, so I will list one option to consider... Given a generic sensor with entityID of "sensor",
Or, are you saying the most important feature is in having a single aggregate checksum/status to know when something has changed, but then let the client determine the metadata they want to follow-up with specific READ commands? |
I understand the appeal of the "subscribe object" helper functions but the devil is always in the implementation details. In particular, metadata and data subscriptions are different. At a minimum, the update frequency for a metadata subscription would be much slower than a data subscription. The client needs to decide what it wants and how frequently it receives updates. Helper functions like "subscribe sensor" could force a server to design its address space in a way that assumes clients will blindly ask for everything even if they don't really need it. This would likely lead to models where the metadata is not part of an object but in a separate object like metadata.sensor which would not be ideal. The model I am suggesting is clients could promote any metadata value to data value if they choose but the default behaviour is metadata is kept separate from data (i.e. a separate topic for metadata) with some indicator in the data that a material change to the metadata occurred. |
Well, that certainly is another option to setup the interface:
and
Although, I would think this approach has a higher likelihood of your concern being realized?
|
Some postman demos using the OPC UA WebAPI: Read Value: Read Properties: The ReadProperties is an extension I added for discussion. It uses the AttributeId: 60 to request that Server return the values of all Properties of the specified Node as a dynamic Structure. Adding support for virtual Attributes that are only accessible via the JSON WebApi is one tool we have to extend the OPC UA Services to meet the requirements identified here. The idea that a Server can dynamically create a Structure is already part of the OPC UA specification but it is typically not used. |
WG Discussion on this topic:
I will propose an edit to the doc for discussion at the next meeting. |
Proposed resolution: e98eb01 |
Splitting out from #3
The text was updated successfully, but these errors were encountered: