View Issue Details

IDProjectCategoryView StatusLast Update
000703810000-014: PubSubSpecpublic2023-02-26 21:42
ReporterMartin Regen Assigned ToMatthias Damm  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Target Version1.05.00Fixed in Version1.05.01 RC1 
Summary0007038: PubSub JSON encoding for DataSetMessage needs reversible encoding for DataValue
Description

The current encoding scheme only allows for reversible encoding of a Variant:

If the DataSetFieldContentMask results in a RawData representation, the field value is a Variant encoded using the non-reversible OPC UA JSON Data Encoding defined in OPC 10000-6.
If the DataSetFieldContentMask results in a DataValue representation, the field value is a DataValue encoded using the non-reversible OPC UA JSON Data Encoding defined in OPC 10000-6.
If the DataSetFieldContentMask results in a Variant representation, the field value is encoded as a Variant encoded using the reversible OPC UA JSON Data Encoding defined in OPC 10000-6.

However we found several use cases where encoding of the DataValue was preferable as reversible encoding:

  • e.g. a case when event messages did not contain the localization field of the event message
  • when further processing at the subscriber requires knowledge of the type, because the metadata support is not implemented

Discuss if an additional DataSetFieldContentMask flag could be used to flag reversible encoding for a DataValue

TagsNo tags attached.
Commit Version
Fix Due Date

Relationships

has duplicate 0007424 closedMatthias Damm PubSub JSON encoding for DataSetMessage needs reversible encoding for DataValue 
related to 0007328 closedMatthias Damm JSON Data Set MessageHeader needs a DataSetWriterName Field 

Activities

Matthias Damm

2021-10-08 09:23

developer   ~0015132

Added in OPC 10000-14 - UA Specification Part 14 - PubSub 1.05.1 Draft38.docx

6.3.2.3.1 DataSetMessageContentMask
Table 95 – JsonDataSetMessageContentMask values

Added:
ReversibleFieldEncoding
7
If this flag is set, the DataSetMessage fields are encoded in the reversible JSON encoding and in the non-reversible JSON encoding otherwise.

Jim Luth

2021-10-26 16:16

administrator   ~0015221

Agreed to changes in telecon.

Issue History

Date Modified Username Field Change
2021-06-22 07:35 Martin Regen New Issue
2021-09-14 17:12 Jim Luth Assigned To => Matthias Damm
2021-09-14 17:12 Jim Luth Status new => assigned
2021-09-27 15:17 Martin Regen Relationship added related to 0007328
2021-10-08 09:23 Matthias Damm Status assigned => resolved
2021-10-08 09:23 Matthias Damm Resolution open => fixed
2021-10-08 09:23 Matthias Damm Note Added: 0015132
2021-10-26 16:16 Jim Luth Status resolved => closed
2021-10-26 16:16 Jim Luth Fixed in Version => 1.05.01 RC1
2021-10-26 16:16 Jim Luth Note Added: 0015221
2021-11-22 15:19 Randy Armstrong Issue cloned: 0007424
2023-02-26 21:42 Matthias Damm Relationship added has duplicate 0007424