Question on parsing Data Key Frame DataSetMessage|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
Question on parsing Data Key Frame DataSetMessage
Avatar
Jothi Sankarraj
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
1
08/20/2019 - 10:06
sp_Permalink sp_Print

I'm in the process of decoding / parsing the Data Key Frame DataSetMessage and I have a few questions!

Q1. In the Figure 30 – Data Key Frame DataSetMessage Data, it says that the DataSetMessages Header consists just of the following elements:

  • DataSetFlags1
  • DataSetFlags2
  • SequenceNumber

But the page before this one Figure 29 – DataSetMessage Header Structure, there are more fields as below:

  1. DataSetFlags1
  2. DataSetFlags2
  3. MessageSequenceNumber
  4. Timestamp
  5. Picoseconds
  6. StatusCode
  7. MajorVersion
  8. MinorVersion

So my question now is if I'm parsing a Data Key Frame, then I have to stick to the contents of Figure 30? The Spec is a bit misleading with these repetitive Figures!

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/20/2019 - 16:21
sp_Permalink sp_Print

There is only one header with optional fields and bits to indicate which fields are present.

The different examples show different headers with different fields. Your code needs to interpret the DataSetFlags1 and DataSetFlags2 and extract the fields which are present.

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