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. Download Connected Client

Download connected client

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 Varun Sharma , 11 June, 2020
Forums
General discussion

We are using dynamic sim.Created a tcp sever using gurux Gxnet.
Now i want yo download the connected clients.
Plz help with some code example.
Do i have to again open the connection for downloading?

Profile picture for user Kurumi

Kurumi

6 years ago

Hi Varun,

Hi Varun,

You need to check this:
http://www.gurux.fi/Gurux.DLMS.DynamicIP

BR,
Mikko

Varun Sharma

6 years ago

I have already read this page

I have already read this page.
http://www.gurux.fi/Gurux.DLMS.DynamicIP
This code downloads in connected client event.
But i want to download it in my own method.
Like i want to click on my connected client and then download whenever i want.

Profile picture for user Kurumi

Kurumi

6 years ago

Hi,

Hi,

The meter must start the connection with Dynamic IP addresses. If your idea is keep the connection up when meter makes the connection until you press the button you need to send keepalive, etc...

I don't know how well meters can handle this, because they are not designed to operate like this.

BR,
Mikko

Varun Sharma

6 years ago

I have downloaded using

I have downloaded using
GXNet cl = server.Attach(e.info)
but i cannot download it second time it gives the error "Unknown address".
why this client gets disconnected after one download??

Profile picture for user Kurumi

Kurumi

6 years ago

Hi,

Hi,

I don't have your source code, but I believe that you have close the session calling disconnect or release method. When you call them meter closes the connection.

BR,
Mikko

Varun Sharma

6 years ago

using (GXNet cl = server

using (GXNet cl = server.Attach(e.info))
{
GXPUSHReader reader = new GXPUSHReader(dlmsClient, cl, System.Diagnostics.TraceLevel.Info);

reader.SNRMRequest();
reader.AarqRequest();
string ic = reader.ReadObis(invoc_counter, 2).ToString();//reading invocation counter

}

This is the code, i m only reading innvocation counter.
When client get connected i can read it successfully for first time.
Second time it shows "unknown address"

Varun Sharma

5 years 12 months ago

Hello Kurumi

Hello Kurumi
Plz reply for my above problem,its urgent for me.
Meter goes disconnect after first download and it also not shows in disconnect event.

Profile picture for user Kurumi

Kurumi

5 years 12 months ago

Hi Varun,

Hi Varun,

The connection is released after this:

using (GXNet cl = server.Attach(e.info))
{
}

You need to make while loop to keep connection up. As I told before, I don't believe that this is the idea how meters are design and it might cause a problems.

using (GXNet cl = server.Attach(e.info))
{
while()
{
DO READS
};
}
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