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. Changing Capture Period From Hourly To 15 Minutes

Changing capture period from hourly to 15 minutes

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 eluque , 25 August, 2020
Forums
Gurux.DLMS

Hi,
I am trying to read this profile generic 1.0.99.1.0.255 and trying to edit the capture period but I am not able to.

I instantiate the pg and afterwards set pg.CapturePeriod to 900.

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

Can you change the capture period? Is meter returning any error?

BR,
Mikko

eluque

5 years 9 months ago

It completely ignores it and

It completely ignores it and when I make the read it answers with hourly data as is the default

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

It might be that your meter is not supporting it. You need to verify it from the meter vendor.

BR,
Mikko

eluque

5 years 9 months ago

Hello miko, just making sure

Hello mikko, just making sure I'm not doing it wrong. I have tried different methods:

Example 1: Adding CapturePeriod to my previus code
GXDLMSProfileGeneric obis = new GXDLMSProfileGeneric(obiscode);
GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
obis.SortObject = clock;
obis.CapturePeriod = 900;

foreach (byte[] bit in cl.ReadRowsByRange(obis, start, end))
{
...
}

Returns the data in the period but not in 15 minutes intervals.

Example 2: Attemping to write CapturePeriod
GXDLMSProfileGeneric obis = new GXDLMSProfileGeneric(obiscode);
GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
obis.SortObject = clock;
obis.CapturePeriod = 900;

foreach (byte[] bit in cl.Write(obis,4))
{
...
}

Write returns "Meter returns Service unknown exception. Service not supported".
Then I make the ReadRowsByRange like example 1 and the result is the exact same.

Example 3: Reading the buffer with From and To
GXDLMSProfileGeneric obis = new GXDLMSProfileGeneric(obiscode);
GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
obis.SortObject = clock;
obis.From = start;
obis.To = end;
obis.CapturePeriod = 900;

foreach (byte[] bit in cl.Read(obis,2))
{
...
}

This returns the complete buffer.

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

If you set the CapturePeriod meter starts to save values using that capture period. When you read values using ReadRowsByRange you can give a start and end time, but you can't affect the capture period.

You need to save it like this:
obis.CapturePeriod = 900;
cl.Write(obis,4);

Error is returned because you don't have write access to the meter. You need to connect with High authentication to update the capture period.

Note! All meters don't allow changing the capture period.

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