Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Need To Read DLMS Frame(Byte Stream) and Make a List of Objects With Values

Need to Read DLMS frame(Byte Stream) and Make a List of Objects With Values

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Tauheedul Maruf , 6 May, 2019
Forums
Gurux.DLMS

Hi,
I want to Parse this Byte array for DataNotification and Make a set of objects with their values and Im using wrapper protocol:

0x00, 0x01, 0x00, 0x02, 0x00, 0x10, 0x01, 0x7C, 0x0F, 0x80, 0x00, 0x00, 0x01, 0x0C, 0x07, 0xE3,
0x04, 0x02, 0x02, 0x0B, 0x29, 0x1A, 0x00, 0xFE, 0x98, 0x00, 0x02, 0x0F, 0x01, 0x0F, 0x02, 0x04,
0x12, 0x00, 0x28, 0x09, 0x06, 0x00, 0x07 ,0x19, 0x09, 0x00, 0xFF, 0x0F, 0x02 ,0x12, 0x00 ,0x00,
0x02, 0x04, 0x12, 0x00, 0x01, 0x09, 0x06 ,0x00, 0x00, 0x2A, 0x00, 0x00, 0xFF, 0x0F, 0x02 ,0x12,
0x00, 0x00, 0x02, 0x04, 0x12, 0x00, 0x01 ,0x09, 0x06, 0x00, 0x00, 0x60, 0x07, 0x00, 0xFF ,0x0F,
0x02, 0x12, 0x00, 0x00, 0x02, 0x04, 0x12 ,0x00, 0x01, 0x09, 0x06, 0x00, 0x00, 0x60, 0x0B ,0x06,
0xFF, 0x0F, 0x02, 0x12, 0x00, 0x00, 0x02 ,0x04, 0x12, 0x00, 0x01, 0x09, 0x06, 0x00, 0x00 ,0x60,
0x0B, 0x07, 0xFF, 0x0F, 0x02, 0x12, 0x00 ,0x00, 0x02, 0x04, 0x12, 0x00, 0x01, 0x09, 0x06 ,0x00,
0x00, 0x60, 0x0B, 0x09, 0xFF, 0x0F, 0x02 ,0x12, 0x00, 0x00, 0x02, 0x04, 0x12, 0x00, 0x01 ,0x09,
0x06, 0x00, 0x00, 0x60, 0x32, 0x05, 0x0B ,0x0F, 0x02, 0x12, 0x00, 0x00, 0x02, 0x04, 0x12 ,0x00,
0x01, 0x09, 0x06, 0x00, 0x00, 0x60, 0x32 ,0x05, 0x0C, 0x0F, 0x02, 0x12, 0x00, 0x00, 0x02 ,0x04,
0x12, 0x00, 0x01, 0x09, 0x06, 0x00, 0x00 ,0x60, 0x32, 0x05, 0x0D, 0x0F, 0x02, 0x12, 0x00 ,0x00,
0x02, 0x04, 0x12, 0x00, 0x01, 0x09, 0x06 ,0x00, 0x00, 0x60, 0x32, 0x05, 0x0E, 0x0F, 0x02 ,0x12,
0x00, 0x00, 0x02, 0x04, 0x12, 0x00, 0x01 ,0x09, 0x06, 0x00, 0x00, 0x60, 0x32, 0x05, 0x0F ,0x0F,
0x02, 0x12, 0x00, 0x00, 0x02, 0x04, 0x12 ,0x00, 0x01, 0x09, 0x06, 0x00, 0x00, 0x60, 0x32 ,0x05,
0x10, 0x0F, 0x02, 0x12, 0x00, 0x00, 0x02, 0x04, 0x12, 0x00, 0x01, 0x09, 0x06, 0x00, 0x00 ,0x60,
0x32, 0x05, 0x11, 0x0F, 0x02, 0x12, 0x00, 0x00, 0x02, 0x04, 0x12, 0x00, 0x01, 0x09, 0x06, 0x00,
0x00, 0x60, 0x32, 0x05, 0x12, 0x0F, 0x02, 0x12, 0x00, 0x00, 0x02, 0x04, 0x12, 0x00, 0x08, 0x09,
0x06, 0x00, 0x00, 0x01, 0x00, 0x00, 0xFF, 0x0F, 0x02, 0x12, 0x00, 0x00, 0x0A, 0x0F, 0x41, 0x50,
0x4C, 0x34, 0x34, 0x31, 0x38, 0x30, 0x30, 0x30, 0x31, 0x31, 0x30, 0x36, 0x30, 0x12, 0x00 ,0x8E,
0x06, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x05, 0x06, 0x00, 0x00, 0x00, 0x00, 0x06,
0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0F ,0x06, 0x00, 0x00 ,0x00, 0x03, 0x06, 0x00, 0x00,
0x00, 0x02, 0x06, 0x00, 0x00, 0x00 ,0x00, 0x19 ,0x07 ,0xD0 ,0x01 ,0x01 ,0x01, 0x00, 0x18, 0x30,
0xFF, 0xFE, 0x98, 0x00

I tried with GenerateDataNotificationMessages() Method in GXDLMSNotify class ...

Please Help Thanks

Profile picture for user Kurumi

Kurumi

7 years 1 month ago

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

Tauheedul Maruf

7 years 1 month ago

In reply to Hi, by Kurumi

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

Profile picture for user Kurumi

Kurumi

7 years 1 month ago

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

znasim

6 years 10 months ago

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?

Profile picture for user Kurumi

Kurumi

6 years 10 months ago

Hi znasim,

Hi znasim,

Please, start a new topic if you have a new question. I'll answer your question there.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin