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?
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.
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.
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??
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.
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"
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
Hi Varun,
Hi Varun,
You need to check this:
http://www.gurux.fi/Gurux.DLMS.DynamicIP
BR,
Mikko
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.
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
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??
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
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"
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.
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