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. Reducing Readings Time Problem

Reducing readings time problem

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 mohammed2773 , 22 November, 2021
Forums
General discussion

Hi Mikko,

I am using Gurux open-source python for reading measurements from Smart Meter through Rasperry bi, however, I receive data every one minute, this is due to the process of handshaking.
Is there any possible way to reduce the time of receiving data?

Regards

nezar.karem

4 years 6 months ago

Dear Director,

Dear Director,

I am handing over this current deployment to this team.

basically, I have connected a KSA meter using DLMS to a RPi using rs485, it is reading very well, but, it reads every one complete minute, is there a way to reduce the time to seconds.

I really appreciate you support.

BRs,
Nezar

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

You can save the association view to the file. I believe that is the reason why establishing the connection is taking so long time.

BR,
Mikko

nezar.karem

4 years 6 months ago

In reply to Hi, by Kurumi

could you please elaborate

I will try that and I will give you the results.

BRs

nezar.karem

4 years 6 months ago

Dear Mikko

Dear Mikko

Thank you,

I am now able to read and push to my platform every 5 seconds.

I really appreciate your support.

BRs
Nezar

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

If you need to read data more often you can keep the connection up between the reads.

If you keep the connection up, you can read data every second. Meter will close the connection at some point, but it's OK. When the meter closes the connection you need only restart the connection.

BR,
Mikko

nezar.karem

4 years 6 months ago

In reply to Hi, by Kurumi

the ideal story to read each

the ideal story to read each second, how am I supposed to keep it open?

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

The client application must be up all the time. It will call InitializeConnection when the application is started or you don't receive a reply from the meter. Pseudocode is something like this:

InitializeConnection();
while(1)
{
//Read data from the meter.
sleep(1000);
}
Disconnect();

BR,

Mikko

nezar.karem

4 years 6 months ago

In reply to Hi, by Kurumi

What I am doing basically in

What I am doing basically in my code:
while true:
call gurux(main.py) out >> data in file
read data from file
push data to my platform

I will try to keep the client open as per your advice.

appreciated.

BRs
Nezar

Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi Nezar,

Hi Nezar,

This is the common way to do it and it's fast to implement if you don't need to read data continuously.

BR,
Mikko

nezar.karem

4 years 6 months ago

In reply to Hi Nezar, by Kurumi

very soon I will consider

very soon I will consider reading the data continuously, if there is documentation it would be helpful.

appreciated,
BRs,
Nezar

  • 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