Subscriber receives more than once the published message|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
Subscriber receives more than once the published message
Avatar
Aydin Homay
Member
Members
Forum Posts: 22
Member Since:
04/22/2021
sp_UserOfflineSmall Offline
1
07/14/2021 - 05:33
sp_Permalink sp_Print

Hi,

I have a Publisher that publishes one dataset and a Subscriber that subscribes to that dataset. The problem is the Publisher publishes the data once but the Subscriber receives the same data 3 times and keeps receiving it until the next publish interval. I am not understanding why this is happing. Hope you can help me. Following you will see the Publisher and Subscriber setups.

Thank you. 

---- Publisher

<?xml version="1.0" encoding="utf-8"?>
<PubSubConfigurationDataType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<PublishedDataSets>
<PublishedDataSetDataType>
<Name>DSS</Name>
<DataSetFolder />
<DataSetMetaData>
<Namespaces />
<StructureDataTypes />
<EnumDataTypes />
<SimpleDataTypes />
<Name>DSS</Name>
<Description i:nil="true" />
<Fields>
<FieldMetaData>
<Name>DSS:FDS_SVC:CON_FDS_SVC</Name>
<Description>
<Locale i:nil="true" />
<Text>FDS SVC Client Connection</Text>
</Description>
<FieldFlags>0</FieldFlags>
<BuiltInType>6</BuiltInType>
<DataType>
<Identifier>i=6</Identifier>
</DataType>
<ValueRank>-1</ValueRank>
<ArrayDimensions />
<MaxStringLength>0</MaxStringLength>
<DataSetFieldId>
<String>1bc6c8dd-724d-4f39-884c-630175bf37df</String>
</DataSetFieldId>
<Properties>
<KeyValuePair>
<Key>
<NamespaceIndex>0</NamespaceIndex>
<Name>Unit</Name>
</Key>
<Value>
<Value>
<String xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd" />
</Value>
</Value>
</KeyValuePair>
<KeyValuePair>
<Key>
<NamespaceIndex>0</NamespaceIndex>
<Name>Alarm</Name>
</Key>
<Value>
<Value>
<String xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">HH</String>
</Value>
</Value>
</KeyValuePair>
</Properties>
</FieldMetaData>
</Fields>
<DataSetClassId>
<String>00000000-0000-0000-0000-000000000000</String>
</DataSetClassId>
<ConfigurationVersion>
<MajorVersion>1</MajorVersion>
<MinorVersion>1</MinorVersion>
</ConfigurationVersion>
</DataSetMetaData>
<ExtensionFields />
<DataSetSource>
<TypeId>
<Identifier>i=15953</Identifier>
</TypeId>
<Body>
<PublishedDataItemsDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<PublishedData>
<PublishedVariableDataType>
<PublishedVariable>
<Identifier>ns=2;s=DSS:FDS_SVC:CON_FDS_SVC</Identifier>
</PublishedVariable>
<AttributeId>13</AttributeId>
<SamplingIntervalHint>0</SamplingIntervalHint>
<DeadbandType>0</DeadbandType>
<DeadbandValue>0</DeadbandValue>
<SubstituteValue>
<Value>
<Null />
</Value>
</SubstituteValue>
<MetaDataProperties />
</PublishedVariableDataType>
</PublishedData>
</PublishedDataItemsDataType>
</Body>
</DataSetSource>
</PublishedDataSetDataType>
</PublishedDataSets>
<Connections>
<PubSubConnectionDataType>
<Name>UADPPublisherConnection</Name>
<Enabled>true</Enabled>
<PublisherId>
<Value>
<UInt16 xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">100</UInt16>
</Value>
</PublisherId>
<TransportProfileUri>https://opcfoundation.org/UA-Pr.....ri&gt;
<Address>
<TypeId>
<Identifier>i=21176</Identifier>
</TypeId>
<Body>
<NetworkAddressUrlDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<NetworkInterface />
<Url>opc.udp://239.0.0.1:4840</Url>
</NetworkAddressUrlDataType>
</Body>
</Address>
<ConnectionProperties />
<TransportSettings i:nil="true" />
<WriterGroups>
<WriterGroupDataType>
<Name>DSS WriterGroup</Name>
<Enabled>true</Enabled>
<SecurityMode>Invalid_0</SecurityMode>
<SecurityGroupId i:nil="true" />
<SecurityKeyServices />
<MaxNetworkMessageSize>1500</MaxNetworkMessageSize>
<GroupProperties />
<WriterGroupId>1</WriterGroupId>
<PublishingInterval>5000</PublishingInterval>
<KeepAliveTime>5000</KeepAliveTime>
<Priority>0</Priority>
<LocaleIds />
<HeaderLayoutUri>UADP-Cyclic-Fixed</HeaderLayoutUri>
<TransportSettings>
<TypeId>
<Identifier>i=21179</Identifier>
</TypeId>
<Body>
<DatagramWriterGroupTransportDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<MessageRepeatCount>0</MessageRepeatCount>
<MessageRepeatDelay>0</MessageRepeatDelay>
</DatagramWriterGroupTransportDataType>
</Body>
</TransportSettings>
<MessageSettings>
<TypeId>
<Identifier>i=16014</Identifier>
</TypeId>
<Body>
<UadpWriterGroupMessageDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<GroupVersion>0</GroupVersion>
<DataSetOrdering>AscendingWriterId_1</DataSetOrdering>
<NetworkMessageContentMask>63</NetworkMessageContentMask>
<SamplingOffset>0</SamplingOffset>
<PublishingOffset />
</UadpWriterGroupMessageDataType>
</Body>
</MessageSettings>
<DataSetWriters>
<DataSetWriterDataType>
<Name>DSS Writer</Name>
<Enabled>true</Enabled>
<DataSetWriterId>1</DataSetWriterId>
<DataSetFieldContentMask>2</DataSetFieldContentMask>
<KeyFrameCount>1</KeyFrameCount>
<DataSetName>DSS</DataSetName>
<DataSetWriterProperties />
<TransportSettings i:nil="true" />
<MessageSettings>
<TypeId>
<Identifier>i=16015</Identifier>
</TypeId>
<Body>
<UadpDataSetWriterMessageDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<DataSetMessageContentMask>36</DataSetMessageContentMask>
<ConfiguredSize>32</ConfiguredSize>
<NetworkMessageNumber>1</NetworkMessageNumber>
<DataSetOffset>15</DataSetOffset>
</UadpDataSetWriterMessageDataType>
</Body>
</MessageSettings>
</DataSetWriterDataType>
</DataSetWriters>
</WriterGroupDataType>
</WriterGroups>
<ReaderGroups />
</PubSubConnectionDataType>
</Connections>
<Enabled>true</Enabled>
</PubSubConfigurationDataType>

---- Subscriber 

<?xml version="1.0" encoding="utf-8"?>
<PubSubConfigurationDataType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<PublishedDataSets />
<Connections>
<PubSubConnectionDataType>
<Name>UADPSubscriberConnection</Name>
<Enabled>true</Enabled>
<PublisherId>
<Value>
<UInt16 xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">100</UInt16>
</Value>
</PublisherId>
<TransportProfileUri>https://opcfoundation.org/UA-Pr.....ri&gt;
<Address>
<TypeId>
<Identifier>i=21176</Identifier>
</TypeId>
<Body>
<NetworkAddressUrlDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<NetworkInterface />
<Url>opc.udp://239.0.0.1:4840</Url>
</NetworkAddressUrlDataType>
</Body>
</Address>
<ConnectionProperties />
<TransportSettings i:nil="true" />
<WriterGroups />
<ReaderGroups>
<ReaderGroupDataType>
<Name>DSS ReaderGroup</Name>
<Enabled>true</Enabled>
<SecurityMode>Invalid_0</SecurityMode>
<SecurityGroupId i:nil="true" />
<SecurityKeyServices />
<MaxNetworkMessageSize>1500</MaxNetworkMessageSize>
<GroupProperties />
<TransportSettings>
<TypeId>
<Identifier>i=15995</Identifier>
</TypeId>
<Body>
<ReaderGroupTransportDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd" />
</Body>
</TransportSettings>
<MessageSettings>
<TypeId>
<Identifier>i=15996</Identifier>
</TypeId>
<Body>
<ReaderGroupMessageDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd" />
</Body>
</MessageSettings>
<DataSetReaders>
<DataSetReaderDataType>
<Name>DSS Reader</Name>
<Enabled>true</Enabled>
<PublisherId>
<Value>
<UInt16 xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">100</UInt16>
</Value>
</PublisherId>
<WriterGroupId>1</WriterGroupId>
<DataSetWriterId>0</DataSetWriterId>
<DataSetMetaData>
<Namespaces />
<StructureDataTypes />
<EnumDataTypes />
<SimpleDataTypes />
<Name>DSS</Name>
<Description i:nil="true" />
<Fields>
<FieldMetaData>
<Name>DSS:FDS_SVC:CON_FDS_SVC</Name>
<Description>
<Locale i:nil="true" />
<Text>FDS SVC Client Connection</Text>
</Description>
<FieldFlags>0</FieldFlags>
<BuiltInType>6</BuiltInType>
<DataType>
<Identifier>i=6</Identifier>
</DataType>
<ValueRank>-1</ValueRank>
<ArrayDimensions />
<MaxStringLength>0</MaxStringLength>
<DataSetFieldId>
<String>ff94b33f-3ec3-4b97-b77a-0b07fe43db77</String>
</DataSetFieldId>
<Properties>
<KeyValuePair>
<Key>
<NamespaceIndex>0</NamespaceIndex>
<Name>Unit</Name>
</Key>
<Value>
<Value>
<String xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd" />
</Value>
</Value>
</KeyValuePair>
<KeyValuePair>
<Key>
<NamespaceIndex>0</NamespaceIndex>
<Name>Alarm</Name>
</Key>
<Value>
<Value>
<String xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">HH</String>
</Value>
</Value>
</KeyValuePair>
</Properties>
</FieldMetaData>
</Fields>
<DataSetClassId>
<String>00000000-0000-0000-0000-000000000000</String>
</DataSetClassId>
<ConfigurationVersion>
<MajorVersion>1</MajorVersion>
<MinorVersion>1</MinorVersion>
</ConfigurationVersion>
</DataSetMetaData>
<DataSetFieldContentMask>2</DataSetFieldContentMask>
<MessageReceiveTimeout>0</MessageReceiveTimeout>
<KeyFrameCount>1</KeyFrameCount>
<HeaderLayoutUri i:nil="true" />
<SecurityMode>Invalid_0</SecurityMode>
<SecurityGroupId i:nil="true" />
<SecurityKeyServices />
<DataSetReaderProperties />
<TransportSettings i:nil="true" />
<MessageSettings>
<TypeId>
<Identifier>i=16016</Identifier>
</TypeId>
<Body>
<UadpDataSetReaderMessageDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<GroupVersion>0</GroupVersion>
<NetworkMessageNumber>0</NetworkMessageNumber>
<DataSetOffset>15</DataSetOffset>
<DataSetClassId>
<String>00000000-0000-0000-0000-000000000000</String>
</DataSetClassId>
<NetworkMessageContentMask>63</NetworkMessageContentMask>
<DataSetMessageContentMask>36</DataSetMessageContentMask>
<PublishingInterval>0</PublishingInterval>
<ReceiveOffset>0</ReceiveOffset>
<ProcessingOffset>0</ProcessingOffset>
</UadpDataSetReaderMessageDataType>
</Body>
</MessageSettings>
<SubscribedDataSet>
<TypeId>
<Identifier>i=16011</Identifier>
</TypeId>
<Body>
<TargetVariablesDataType xmlns="https://opcfoundation.org/UA/2008/02/Types.xsd">
<TargetVariables>
<FieldTargetDataType>
<DataSetFieldId>
<String>ff94b33f-3ec3-4b97-b77a-0b07fe43db77</String>
</DataSetFieldId>
<TargetNodeId>
<Identifier>ns=2;s=DSS:FDS_SVC:CON_FDS_SVC</Identifier>
</TargetNodeId>
<AttributeId>13</AttributeId>
<OverrideValueHandling>OverrideValue_2</OverrideValueHandling>
<OverrideValue>
<Value>
<Int32>0</Int32>
</Value>
</OverrideValue>
</FieldTargetDataType>
</TargetVariables>
</TargetVariablesDataType>
</Body>
</SubscribedDataSet>
</DataSetReaderDataType>
</DataSetReaders>
</ReaderGroupDataType>
</ReaderGroups>
</PubSubConnectionDataType>
</Connections>
<Enabled>true</Enabled>
</PubSubConfigurationDataType>

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
07/14/2021 - 07:05
sp_Permalink sp_Print

If this is an issue with the NETStandard codebase then please post question to GitHub:

https://github.com/OPCFoundati.....ETStandard

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