Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
PubSub: Only a Single DataSet per PubSubUdpUadpConnectionNetworkMessage
June 18, 2026
15:32, EEST
Avatar
hbrackel
Member
Members
Forum Posts: 158
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Good day,

I have configured 2 DataSetWriters in a single WriterGroup (using the same publishingInterval). The UadpNetworkMessageContentMask does NOT contain the DataSetClassId (i.e. it is null). The DataSets only comprise 2 and 3 double values, respectively, which should fit well into the maxMessageSize of 4096 bytes.

What could be the reason for sending multiple networkmessages with one dataSet each instead of one networkMessage containing the dataSets from both dataSetWriters?

Some shortened log messages below. My expectation would be that a single networkmessage would transport both dataSets (dataSetWriterIds=[1,2]). Could this be related to the issue of the dataSet seqNos counting across all dataSetMessages? (see previous forum entry)

INFO XXXXXService – PubSubUdpUadpConnectionNetworkMessageReceivedEvent: seqNo=346, publisherId=String:yyyy::1/1, writerGroupId=1, dataSetClassId=null, dataSetWriterIds=[2], dataSetMessageCount=1
INFO XXXXXService – PubSubUdpUadpConnectionNetworkMessageReceivedEvent: seqNo=347, publisherId=String:yyyy::1/1, writerGroupId=1, dataSetClassId=null, dataSetWriterIds=[1], dataSetMessageCount=1
June 23, 2026
12:04, EEST
Avatar
Lusetti
Moderator
Members

Moderators
Forum Posts: 8
Member Since:
May 5, 2020
sp_UserOfflineSmall Offline

Hello,

I checked the code and it seems like the current implementation never bundles values from different WriterGroups into the same NetworkMessage while the documentation states otherwise. I cannot however currently tell why this is, it’s possible that this is a bug that hasn’t been tested. Regardless, either the docs or the implementation needs to be adjusted.

Thanks for the report, I’ll create an issue on this.

July 6, 2026
16:21, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1114
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Well … so far basically there has been no demand to do it differently. Do you have a use-case where it would be of use?

Currently the logic is shared with MQTT-UADP. In MQTT it is likely that each Writer has a different Topic. It is not possible to publish to multiple topics in a single MQTT network message. Thus, at the moment the WriterGroup simply does loop all Writers and each Writer will produce the NetworkMessages related to it. The only scenario where multiple DataSetMessages would exist in a single NetworkMessage at the moment are for Event-DataSets.

P.S.
It is not related to the sequence number issue.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 37
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 149
rocket science: 128
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 912
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1599
Posts: 6757
Newest Members:
stefankaleski, TomodachiLifeROM, CarbixTools, DrMatthiasArnold, hbf, AlbertPycle, issacwilloughby, Knut, morrisvqd188879, heathdallachy85
Moderators: Jouni Aro: 1059, Pyry: 1, Petri: 1, Bjarne Boström: 1106, Jimmy Ni: 26, Matti Siponen: 372, Lusetti: 1
Administrators: admin: 1