Need to SET structure as Value in GXDLMSData Class

2 posts / 0 new
Last post
Tauheedul Maruf
Need to SET structure as Value in GXDLMSData Class

In GXDLMSData class Definition
1. logical_name | (static) octet-string
2. value | CHOICE {
-- simple data types
null-data [0], boolean [3], bit-string [4] and so on ...
-- complex data types
array [1],
structure [2],
compact-array [19]
}
So here we can set simple data types but we cannot set complex data types.
We need to SET complex data types (array or structure) in Data Class.

How can we do it?
Please suggest.
Thanks

Kurumi
Kurumi's picture

Hi,

You can use GXDLMSTranslator.XmlToValue for that. Give XML as a parameter. You can get XML if you read value first from the meter and change it to the XML using GuruxDLMSTranslator.

If you are using ANSI C or ANSI C++ you can build the structure by hand.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi