Having problem in connecting multiple GPRS(TCP/IP) meters.

18 posts / 0 new
Last post
Nitin Sethi
Nitin Sethi's picture
Having problem in connecting multiple GPRS(TCP/IP) meters.

Hi,

We are using TCP/IP protocol. And for single meter having dynamic ips with previous version of Gurux net api, I am able to read data asynchronously. But now for multiple meters i am able to capture multiple socket connections but not able to read data. So please tell me about that.

issue followed by this link: http://www.gurux.fi/node/5900

Thanks,

Regards,
Nitin Sethi

Kurumi
Kurumi's picture

Hi,

I have few questions.
1. What version you are using now (Gurux.Net.dll)?
2. What was your previous version?
3. Can you read single meter with new version?

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Nitin Sethi
Nitin Sethi's picture

Hi,

Please find the answers as per your questions:
1.) We don't know the exact version because we are using the development kit of gurux.net for java. But in those apis ListenerThread class was not available and because of this we were not getting List<Socket> connection But now we are getting multiple clients socket connections.
2.) And with new version we are not able to read even single meter but with earlier apis we are able to read.

Thanks,

Nitin Sethi
Nitin Sethi's picture

Hi Kurumi,

I have been waiting for you answers for previous posted question. Please let me know about it.

Thanks,

Kurumi
Kurumi's picture

Hi,

You can see version if you select pom.xml. You can get version from version tag.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

GABZZsoft

Could you kindly walk me through on how to read multiple GPRS meter with Dynamic IP addresses

Kurumi
Kurumi's picture

Hi,

If you have a new question, please, create a new topic. You should read this to get started.

https://www.gurux.fi/Gurux.DLMS.DynamicIP

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

GABZZsoft

The meter has been able to connect to the server, and i can read the meter from the OnClientConnect method but unable to read the meter from another method after connection has been established. Kindly help me on how to go about this?

Kurumi
Kurumi's picture

Hi,

You need to read all data before you release the connection. Is connection established correctly?

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

GABZZsoft

Connection has been established and am able to read all data usin the OnClientConnect listenner. My question is, what if i want to read multiple meters upon the occurrence of an event, say read clock upon a button click? how do i go about it?

Kurumi
Kurumi's picture

Hi,

Are the meters behind the DC or is each meter making own connection?

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

GABZZsoft

Each meter is making it's own connection. Not making using of a DC

Kurumi
Kurumi's picture

Hi,

When meter makes connection OnClientConnect method is called for each meter. So you start own client instance for each meter and read needed information. After you have read data, you release the connection.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

GABZZsoft

I want to keep the connection and be able to read either of the meters, using the ip address and port of the connected meter to read it upon clicking a button. I would keep the socket connection active

Kurumi
Kurumi's picture

Hi,

If you want to keep the connection up, you need to send keep-alive or meter will close the connection after inactivity timeout. In that case, don't call release or disconnect.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

GABZZsoft

Thanks you for you support. You don't seem to get my question.

GABZZsoft

say i want to control the relay of a connected meter, how do i do it upon making an event occur...

Kurumi
Kurumi's picture

Hi GABZZsoft,

Please, create new topic. Now I have mixed your and Nitin 's questions.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi