You can use GXDLMSClient.Parse method to get values out from this. Something like this:
GXReplyData reply = new GXReplyData();
GXReplyData notify = new GXReplyData();
GXDLMSClient cl = new GXDLMSClient(true, 2, 16);
Client.GetData("data", reply, notify))
GXDLMSTranslator t = new GXDLMSTranslator(TranslatorOutputType.SimpleXml);
t.DataToXml(notify.Data, out xml);
Console.WriteLine(xml);
Hi Mikko,
Sorry, I cannot explain properly earlier. Actually my question is :
1) I have a Byte array which contains Data Notification that means it contains set of object but in "byte array" form.
2) Now i need to parse this Data Notification data stream and make a List of Objects.
Is there any way(Method or something like this) to Parse those object using Gurux Library from the ByteStream(Above) and make a list of objects in return so that the objects values can be fetch from the returned object list?
And I Also tried to Do with this method :
Hi,
Hi,
You can use GXDLMSClient.Parse method to get values out from this. Something like this:
GXReplyData reply = new GXReplyData();
GXReplyData notify = new GXReplyData();
GXDLMSClient cl = new GXDLMSClient(true, 2, 16);
Client.GetData("data", reply, notify))
GXDLMSTranslator t = new GXDLMSTranslator(TranslatorOutputType.SimpleXml);
t.DataToXml(notify.Data, out xml);
Console.WriteLine(xml);
BR,
Mikko
Hi Mikko,
Hi Mikko,
Sorry, I cannot explain properly earlier. Actually my question is :
1) I have a Byte array which contains Data Notification that means it contains set of object but in "byte array" form.
2) Now i need to parse this Data Notification data stream and make a List of Objects.
Is there any way(Method or something like this) to Parse those object using Gurux Library from the ByteStream(Above) and make a list of objects in return so that the objects values can be fetch from the returned object list?
And I Also tried to Do with this method :
client.ParseObjects(GXByteBuffer data, bool onlyKnownObjects);
But for this data Notification frame that i given i have got "Invalid response." from ParseLNObjects() methods.
Please Let me know
Thank You
Hi,
Hi,
Your explanation was good. Give received bytearray to GetData as a "Data" parameter.
Client.GetData("data", reply, notify))
After that received data is storer to notify variable. You can access it by notify.Value.
GXByteBuffer bb = new GXByteBuffer();
//Append received bytes to bb.
bb.Set();
Client.GetData(bb, reply, notify))
Console.WriteLn(notify.Value);
BR,
Mikko
Hi Mikko
Hi Mikko
I have read green book and iso/iec 13239 but i can not understand some dlms frame like AARQ s details what should i do?
Hi znasim,
Hi znasim,
Please, start a new topic if you have a new question. I'll answer your question there.
BR,
Mikko