PubSub - Metadata handling|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
PubSub - Metadata handling
Avatar
Deepali Ahirrao
Member
Members
Forum Posts: 25
Member Since:
08/16/2019
sp_UserOfflineSmall Offline
1
01/19/2022 - 23:15
sp_Permalink sp_Print

Hi Team,

Consider scenario where a Subscriber is using MQTT-JSON profile and expect the DataSetMetadata messages to be received via MetadataQueue.
The metadata is required to be set in the DataSetReader for it to decode the DataSet messages from a DataSetWriter.

If I am creating a PubSubConfiguration, unless I have metadata, I cannot set it in DataSetReader and hence cannot complete creation of PubSubConfiguration. But unless I complete PubSubConfiguration, I cannot start receiving the metadata messages on the MetadataQueue.

Does the specification expect that the Subscriber knows Metadata before hand, and then use it to create DataSetReader? Then what is the use of having MetadataQueue? How do we handle this scenario?

Thanks,

Deepali

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
01/20/2022 - 20:56
sp_Permalink sp_Print

The WG is developing a standard MQTT topic tree which would allow a Subscriber to discover metadata by using MQTT wildcards.

This would eliminate the 'chicken and egg' problem which currently exists.

Avatar
Deepali Ahirrao
Member
Members
Forum Posts: 25
Member Since:
08/16/2019
sp_UserOfflineSmall Offline
3
01/25/2022 - 05:49
sp_Permalink sp_Print

Okay .. will the connection to MQTT metadata topic be independent of the rest of the PubSubConfiguration .. so that metadata can be received before creating PubSubConfiguration?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
01/25/2022 - 05:57
sp_Permalink sp_Print

The metadata topics will have different information at different levels.

At the datasetwriter level there will be a topic that only reports the datasetmetadata so changes to the data in the messages can be detected.

At the writergroup level there will the complete configuration for the the writergroup and any contained dataset writers.

You should be able to construct a PubSubConfiguration from the pieces of configuration that are made available.

You do not need to know the topics in advance if you use MQTT wildcard subscriptions.

i.e. /+/+/+/metadata

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