OPC UA Pub Sub - Understanding Meta 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
OPC UA Pub Sub - Understanding Meta Message
Avatar
Jothi Sankarraj
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
1
07/30/2019 - 02:00
sp_Permalink sp_Print

I'm trying to implement a client for reading / decoding / parse "OPC UA Pub Sub" messages that I get from a server. I managed to parse the header section as laid out in Part 14 of the Spec. But I'm kind of stuck after that. 

Here is the parsed message so far!

version [bit 0-3] = 1
publisherIdEnabled [bit 4] = true
groupHeaderEnabled [bit 5] = false
payloadHeaderEnabled [bit 6] = false
extendedFlags1Enabled [bit 7] = true
extendedFlags1 =
publisherIdType [bit 0-2] = String
dataSetClassIDEnabled [bit 3] = false
securityEnabled [bit 4] = false
timeStampEnabled [bit 5] = false
picoSecondsEnabled [bit 6] = false
extendedFlags2Enabled [bit 7] = true

extendedFlags2 =
isChunkMessage [bit 0] = false
promotedFieldsEnabled [bit 1] = false
networkMessageType [bit 2-4] = DiscoveryResponseType

publisherId = Test_Published_Id_81234_DE_1
dataSetClassId = None

So from my understanding, to parse the bytes after the header, I need to check for the NetworkMessageType which in my case is the DiscoveryResponseType. So that would mean that I should assume that the next set of bytes should represent the Discovery Response Header. Is this correct? I should be looking at parsing this information:

7.2.2.4.2.2 Discovery Response Header Table 87 from the Spec?

Is my understanding correct?

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