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. How To Read Buffer From Profile Generic (1.0.99.1.0.255)

How to read buffer from Profile Generic (1.0.99.1.0.255)

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 Samuseva Alena , 11 August, 2022
Forums
Gurux DLMS for Java

Good afternoon.
The task is that I need to read the values ​​for 1 day.

I am reading the ProfileGeneric and capture objects, and reading the information from the buffer.
Here is my code :

GXDLMSProfileGeneric profileGeneric = new GXDLMSProfileGeneric("1.0.99.1.0.255");
reader.read(profileGeneric, 3);
reader.readRowsByRange(profileGeneric, startDate, Util.getCurrentDate1());
reader.read(profileGeneric, 2);
But there are too many objects in the buffer around 4500.

When using GuruxDLMSDirector on this device, I get only 24 lines of readings for each hour.

What could be my mistake? Is it possible to read the information line by line. And can I have an example of how to correctly read from the buffer.

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

Remove this line. It will read the whole buffer.
reader.read(profileGeneric, 2);

readRowsByRange will read the values from the given range.

BR,
Mikko

Samuseva Alena

3 years 10 months ago

Good morning.

Good morning.
If I remove a line reader.read(profileGeneric, 2) then I don't have any objects in the buffer at all.

Might not work correctly
public Object[] readRowsByRange(final GXDLMSProfileGeneric pg, final GXDateTime start,
final GXDateTime end) throws Exception {
GXReplyData reply = new GXReplyData();
byte[][] data = dlms.readRowsByRange(pg, start, end);
readDataBlock(data, reply);
return (Object[]) dlms.updateValue(pg, 2, reply.getValue());
}

How else can you count values ​​from a given date range.

Help me please.

Profile picture for user Kurumi

Kurumi

3 years 10 months ago

Hi,

Hi,

Check your start and end dates. Set minutes and seconds to zero. Some meters can't handle if they are different than zero. You can try to set the start time to midnight and the end time to 6:00 am.

BR,
Mikko

Samuseva Alena

3 years 10 months ago

Hi,

Hi,
Thanks for the help, figured it out

  • 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