Avatar

Please consider registering
guest

sp_LogInOut Log In sp_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 RSS sp_TopicIcon
OPC binary type dictionaries
May 12, 2016
18:10, EEST
Avatar
gjevremovic
Member
Members
Forum Posts: 49
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Hi,

I am searching for example(s) how to read ExtensionObject but not in the case when the structured DataTypes are well known to the client, i.e. client can decode the binaries. I found this case in example https://www.prosysopc.com/blog/using-complex-datatypes/ but I am afraid it is not useful for my client which doesn’t know anything about server side data types.
Do you have example how to read custom data type by using encoding information available at the OPC UA server address space? For example in uaservercpp there is a type Vector (X, Y, Z). Are there some helper classes in Prosys SDK which can make easier r/w to such node?
I spotted in docs some classes like DataTypeDescriptionType but don’t have idea how to begin?

Best regards,
jev

PS

13
attribute: Value
Node: ns=2;s=Demo.Static.Scalar.Vector.Value | Status: GOOD (0x00000000) “” | Value: (Vector)org.opcfoundation.ua.builtintypes.ExtensionObject@bbd6329f | ServerTimestamp: 2016 May 12 (CEST) 17:08:59.062 | SourceTimestamp: 2016 May 11 (CEST) 12:25:02.657

May 12, 2016
18:45, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Support for DataTypeDictionary, which contains the decoding information for custom types is planned only for the next SDK release. But we will keep you updated, when a beta implementation would be available.

So far, the SDK can only decode types that are modelled via code generation (preferably).

December 20, 2016
17:57, EET
Avatar
reinhard
Member
Members
Forum Posts: 12
Member Since:
December 6, 2016
sp_UserOfflineSmall Offline

What ist the status for this feature? Is it already implemented? For which version will it be available?

December 21, 2016
12:54, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hopefully in 2.3 we can offer some support for it, however I cannot guarantee that at the moment.

(If you wonder, Jouni’s earlier answer meant 2.3, which is still in development)

December 21, 2016
14:18, EET
Avatar
reinhard
Member
Members
Forum Posts: 12
Member Since:
December 6, 2016
sp_UserOfflineSmall Offline

Thank you for this information.
Is there any release timetable, or when do you roughly think the 2.3 release will be available?

December 21, 2016
15:13, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

A rough estimate for 2.3 is start of February 2017, however, it’s too early to promise anything right now.

I suppose I should note that this feature is not on very high priority as the specification 1.04 (which is draft / not yet released) will contain a new way (most likely new attribute) to describe custom structure meta directly via addressspace/ua types, which will effectively replace the datadictionary system.

Also our understanding is that most of the customers can use codegen for custom structures.

August 18, 2017
12:10, EEST
Avatar
pierre
Member
Members
Forum Posts: 4
Member Since:
August 18, 2017
sp_UserOfflineSmall Offline

Hi all,

Is there any update regarding this? Although codegen is a very nice feature, it is not very convenient when exploring unkown server (which is one of the cool features of OPC UA)
I tried your stack with some custom very simple Structure (of DataType) that I modeled in UaExpert. Then I tried to read it and fill some Variable with my DataType but I always get some encoding error, even with codegen. I believe that the ‘
‘ character is somehow responsible here.

Best,

August 22, 2017
11:02, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Currently what I mentioned with 2.3 in above posts was changed to be 3.0. An issue regarding handing diagnostics came up with the compliance testing and the result became 2.3.

There were some bugs regarding loading the typedictionarys from the Nodeset XMLs, they are fixed by the stack that comes with SDK 2.3.2 (https://downloads.prosysopc.com/opcua/release_notes2.3.2-781.html).

I hope we can make a public beta of 3.0 soon and release it before the end of 2017.
Currently in the development tree (for 3.0) we have a TypeDictionary class that takes a UaClient and can decode given ExtensionObjects to DynamicStructures, which does act like a map. However it is something you have to specifically create and call at the moment.

– Bjarne

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1