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 Parse DLMS Data (raw Byte Array)

Need to parse DLMS data (raw byte array)

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 diptesh , 4 March, 2015

Dear All,

I am having a requirement in my .net application, where I am already getting the dlms command (ECS70 Clock) in raw byte format. Now I want to parse that command to get objects and data.
Could anyone please let me know whether this is possible using Gurux Library where I can pass my raw byte DLMS command to some parsing function and it gives me back parsed data.

Also is the parsing that Gurux library is doing, always expects HDLC Frame only ?
As the data I am receiving in my application is not containing HDLC start/end packets, so will I be able to parse it using the library.

Thanks & Regards,
Diptesh Patel

Profile picture for user Kurumi

Kurumi

11 years 3 months ago

Need to parse DLMS data (raw byte array)

Hi,

Can you post your raw data here so I can verify it and answer for your question?

BR,

Mikko

diptesh

11 years 3 months ago

In reply to Need to parse DLMS data (raw byte array) by Kurumi

Need to parse DLMS data (raw byte array)

Dear Mikko,

Please find the raw data below. I have added comments to identify the sequence.

unsigned char ecs70[]={
0xd9, // Tag for Access Request
0x20, // APDU config
0x00,0x00,0x00, // Invoke ID
0x00, // Length = 0 (There is no value so length field is zero )
0x05, // Number of Entries
0x02, // Set Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x09, // attribute identifier (Clock base)
0x03, // Action Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x05, // attribute identifier (Preset_Adjust_Time)
0x03, // Action Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x04, // attribute (Adjust_to_preset_time)
0x01, // Get Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x02, // attribute
0x01, // Get Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x04, // attribute (Adjust_to_preset_time) // After this all bytes are for Value
0x05,0x16,0x05,0x02,0x02,0x03,0x09,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0x40,0x09,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x09,0x0c,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x16,0x00};

Waiting for your reply.

Thanks & Regards,
Diptesh Patel

Profile picture for user Kurumi

Kurumi

11 years 3 months ago

Need to parse DLMS data (raw byte array)

Hi,

Your data seems interesting.
Can you send whole DLMS frame so we can check it.
Please, do not comment it.

What meter you are using (manufacturer and model)?

BR,

Mikko

Muhammad Awais

5 years 7 months ago

I need to parse the below

I need to parse the below data
OBIS CODE: .\OBIS\test\99.98.12.xml
3:51:54 PM CB_S: 7EA01A028905FE6846E6E600C001C30007010063620CFF02003D097E

3:51:55 PM 0.797 CB_R: 7EA22D0502891E3A1AE6E700C402C30000000001008202140182001102820006090C07E40A1A010A1439FFFF4C0004084012000012000112000012000002820006090C07E40A1A010A172BFFFF4C0004080012000012000112000012000002820006090C07E40A1A010A172CFFFF4C0004084012000012000212000012000002820006090C07E40A1A010A172EFFFF4C0004080012000012000212000012000002820006090C07E40A1A010A1731FFFF4C0004084012000012000312000012000002820006090C07E40A1A010A1732FFFF4C0004080012000012000312000012000002820006090C07E40A1C030B2623FFFF4C0004084012000012000412000012000002820006090C07E40A1C030B2800FFFF4C0004080012000012000412000012000002820006090C07E40A1C030B2800FFFF4C0004084012000012000512000012000002820006090C07E40A1C030B2802FFFF4C0004080012000012000512000012000002820006090C07E40A1C030B3211FFFF4C0004084012000012000612000012000002820006090C07E40A1C030B392BFFFF4C0004080012000012000612000012000002820006090C07E40A1C030B392DFFFF4C0004084012000012000712000012000002820006090C07E40A1C030B3933FFFF4C0004080012000012000712000012000002820006090C07E40A1D04102308FFFF4C0004084012000012000812000012000002820006090C07E40A1D0410230FFFFF4C000408001200001200081200001200007ECC7E

<GetResponse>
<GetResponsewithDataBlock>
<InvokeIdAndPriority Value="C3" />
<Result>
<LastBlock Value="00" />
<BlockNumber Value="00000001" />
<Result>
<RawData Value="0182001102820006090C07E40A1A010A1439FFFF4C0004084012000012000112000012000002820006090C07E40A1A010A172BFFFF4C0004080012000012000112000012000002820006090C07E40A1A010A172CFFFF4C0004084012000012000212000012000002820006090C07E40A1A010A172EFFFF4C0004080012000012000212000012000002820006090C07E40A1A010A1731FFFF4C0004084012000012000312000012000002820006090C07E40A1A010A1732FFFF4C0004080012000012000312000012000002820006090C07E40A1C030B2623FFFF4C0004084012000012000412000012000002820006090C07E40A1C030B2800FFFF4C0004080012000012000412000012000002820006090C07E40A1C030B2800FFFF4C0004084012000012000512000012000002820006090C07E40A1C030B2802FFFF4C0004080012000012000512000012000002820006090C07E40A1C030B3211FFFF4C0004084012000012000612000012000002820006090C07E40A1C030B392BFFFF4C0004080012000012000612000012000002820006090C07E40A1C030B392DFFFF4C0004084012000012000712000012000002820006090C07E40A1C030B3933FFFF4C0004080012000012000712000012000002820006090C07E40A1D04102308FFFF4C0004084012000012000812000012000002820006090C07E40A1D0410230FFFFF4C00040800120000120008120000120000" />
</Result>
</Result>
</GetResponsewithDataBlock>
</GetResponse>

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Dear Muhammad,

Dear Muhammad,

Please, create a new topic if you have a new question.
I'll answer your question when you have created a new topic.

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