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?
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.
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.
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();
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
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
could you please elaborate
I will try that and I will give you the results.
BRs
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
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
the ideal story to read each
the ideal story to read each second, how am I supposed to keep it open?
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
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
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
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