Sorry for my ignorance but I am new to Gurux. I am trying to read from meter using Gurux component over TCP. I have all required information to do so. I used Gurux Director to successfully read the data, but I have really hard time reproducing what Gurux Director does into Java code. I am trying to combine gurux.dlms.java with gurux.net.java but I cannot find the connection.
Can anyone could point me to the right direction?
Thanks for your reply Mikko. I managed to move forward with it but now I am stuck while adding meter serial number. I have this line of code "dlms.setServerAddress(GXDLMSClient.getServerAddress(32360809));" but this gives me an error "java.lang.StringIndexOutOfBoundsException: String index out of range: -5". Do you know what am I doing wrong?
Reading from meter using TCP
Hi,
You should try with gurux.dlms.client.example.java.
It's small example that reads all objects from the meter.
You can get that from github.
BR,
Mikko
Thanks for your reply Mikko.
Thanks for your reply Mikko. I managed to move forward with it but now I am stuck while adding meter serial number. I have this line of code "dlms.setServerAddress(GXDLMSClient.getServerAddress(32360809));" but this gives me an error "java.lang.StringIndexOutOfBoundsException: String index out of range: -5". Do you know what am I doing wrong?
Reading from meter using TCP
Hi,
I did try this and it worked. Do you know what JVM you are using?
BR,
Mikko
Hi Mikko,
Hi Mikko,
I am using below on OS X El Capitan:
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
GXDLMSClient.getServerAddress
Hi,
What version you are using from gurux.dlms.java?
Make sure that version is 1.4.11
BR,
Mikko
Mikko,
Mikko,
That was it! I had old version in my pom.xml file. Thank you so much!!!
GXDLMSClient.getServerAddress
Hi,
Good to hear that problem is solved.
We just updated new version 2.0.1. Start with that.
BR,
Mikko