OPC UA Parsing DataSetMessage With FieldEncoding|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
OPC UA Parsing DataSetMessage With FieldEncoding
Avatar
Jothi Sankarraj
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
1
09/11/2019 - 01:59
sp_Permalink sp_Print

From the OPC UA PubSub Spec Part 14, version 1.04 on page 70, Table 81 - DataSetMessage Header Structure, I see that against the DataSetFlags1, the bit range 1-2 specifies the FieldEncoding which could have one of the following values:

  1. Variant
  2. RawData
  3. DataValue
  4. Reserved

And then there is this Bit 5 and Bit 6 which contains the ConfigurationVersionMajorEnabled and ConfigurationVersionMinorEnabled flags. Now my question is, shouldn't the spec specify that this flag should be enabled for FieldEncoding type "RawData" as I would expect to have a DataSetMetaData with the specific Major and Minor version before I parse the DataSetMessage message.

So what happens if the FieldEncoding is of type RawData and these 2 flags (ConfigurationVersionMajorEnabled and ConfigurationVersionMinorEnabled) are set as false? How can I refer to the DataSetMetaData with a specific version so that I can use it to parse the RawData?

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/12/2019 - 01:32
sp_Permalink sp_Print sp_EditHistory

If the ConfigurationVersion is not enabled the the Subscribers have to assume that whatever version they have is the correct version and report any decoding errors that assumption is wrong. This configuration would only be used if the publisher knows that the configuration is not going to change.

Note that PubSub gives publishers the ability to optimize the bytes on the wire but this flexibility means users can completely mess up a system. Users that want a robust system will choose to put more bytes on the wire.

Avatar
Jothi Sankarraj
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
3
09/12/2019 - 03:35
sp_Permalink sp_Print

Why not just keep it simple and have the config version published all the time when the FieldEncoding is of type RawData?

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
09/12/2019 - 06:31
sp_Permalink sp_Print

There applications that have preset configurations and the size of the message matters a lot.

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