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. Reading Compact Frames

Reading Compact Frames

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 bleg , 9 April, 2019
Forums
General discussion

Hello Gurux experts.
Reading multiple Dlms objects in one request via CompactFrame (CF) is very convenient thing.
But how to properly read CF from Gurux Java?
I know the CF strucutre in terms of DLMS objects.
How do i parse the octet string that comes in?
Is there a standartized way in gurux library?
Thank you.

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

Java is causing problems with compact data because there are no unsigned numbers in Java. You can read data easily, but writing is causing some extra work.

When you read data from the meter, do you have the description (template_description) in part of your data or just data (compact_buffer)?

BR,

Mikko

bleg

7 years 2 months ago

Hello, Mikko.

Hello, Mikko.
Sure, I have template description in form of ordered OBIS codes.

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

But is the header part coming in part of the data? Can you post received data so I can check it?
If it's coming, it's easy. Otherwise, you need to add it manually.

BR,

Mikko

bleg

7 years 2 months ago

Template ID comes as first

Template ID comes as first byte in buffer (e.g. 0x11) for CF17

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

So there is no header part in the data. You need to parse it by your self.
Idea from template ID saves data, but because there is no header part this can't be done automatically.

Here is example from template ID: 21
15 00 02 FF FF FF FF FF FF FF FF FF FF FF FF 00 00 46 1E FF FF FF FF

BR,

Mikko

bleg

7 years 2 months ago

Yes, there’s no header

Yes, there’s no header (except for template ID)
But i have the CF structure description in companion docs.
Is there a way to add this metadata manually to Gurux CF object, so that data get’s parsed on-the-fly by Gurux internals?

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi,

Hi,

We'll modify Compact data so you can set template_description by hand and there will be method what you can call. We'll do this on next week.

BR,
Mikko

bleg

7 years 2 months ago

Wow, that is very responsive.

Wow, that is very responsive.
Thank you so much, i’ll be waiting.

Profile picture for user Kurumi

Kurumi

7 years 1 month ago

Hi,

Hi,
This functionality is added on version 2.2.25.
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