Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Connecting Landis + Gyr E650 Meter Over IP Using DLMS (JAVA)

Connecting Landis + Gyr E650 meter over IP using DLMS (JAVA)

By Dexter, 5 November, 2024
Forums
Gurux DLMS for Java

Hi,
I am trying to connect a Landis + Gyr E650 meter over IP and using the "java -jar gurux.dlms.client.example.java".
I have tried the below command passing parameters (X.X.X.X & PPPPPP is a placeholder for the host_ip & password respectively)
-h X.X.X.X -p 4059 -c 1 -s 1 -a LOW -P PPPPPPP -i WRAPPER -o output.xml -t Verbose

-h X.X.X.X -p 4059 -c 1 -s 1 -a LOW -P PPPPPPP -i WRAPPER -g 0.0.1.0.0.255:2

But I don't get any response back from meter, in both cases.
Authentication: Low
ClientAddress: 0x1
ServerAddress: 0x1
Standard: DLMS
Data send failed. Try to resend 1/3

I have spent few days to understand the GURUX API but need assistance here.
Thank you very much in advance and best regards,

Dexter

Profile picture for user Kurumi

Kurumi

6 months 1 week ago

Hi, At first, try to connect…

Hi,

At first, try to connect without authentication. There are multiple versions from E650 and the settings are a little bit different.

E650 doesn't support WRAPPER and you need to use HDLC with TCP/IP connections.
E650 is also using Short Name referencing.

Try something like this:
-h X.X.X.X -p 4059 -r sn -t Verbose

After you can connect without authentication you can try with this:

-h X.X.X.X -p 4059 -r sn -c 32 -a Low -P PPPPPPP -t Verbose

BR,
Mikko

Dexter

6 months 1 week ago

Hi Mikko Thanks for the…

Hi Mikko

Thanks for the prompt reply, and the explanation is much appreciated.
-h X.X.X.X -p 4059 -r sn -t Verbose
The above command worked splendidly and I was able to get a response from the meter.

Authentication: None
ClientAddress: 0x10
ServerAddress: 0x1
Standard: DLMS
…
Proposed conformance:
[DELTA_VALUE_ENCODING, PARAMETERIZED_ACCESS, UN_CONFIRMED_WRITE, INFORMATION_REPORT, READ, MULTIPLE_REFERENCES, WRITE]
Negotiated conformance:
[PARAMETERIZED_ACCESS, MULTIPLE_REFERENCES, READ, WRITE]
MaxReceivePDUSize: 2400
..
-------- Reading GXDLMSRegister 2872 Ch. 1 Sum Li Active power+ (QI+QIV) Time integral 1 Rate 1 (0 is total)
..
Index: 3 Value: Scaler: 0.01 Unit: Active energy
..
Error! Index: 2 Access Error : Device reports Read-Write denied.
gurux.dlms.GXDLMSException: Access Error : Device reports Read-Write denied.

I'm guessing the Access Error would be expected here as we connected without authentication.

But while trying the next command I'm facing an authentication issue:
-h X.X.X.X -p 4059 -r sn -c 32 -a Low -P PPPPPPP -t Verbose

Authentication: Low
ClientAddress: 0x20
ServerAddress: 0x1
Standard: DLMS
…
Connection is permanently rejected
Authentication failure.
gurux.dlms.GXDLMSException: Connection is permanently rejected
Authentication failure.
at gurux.dlms.GXAPDU.parsePDU2(GXAPDU.java:1218)
at gurux.dlms.GXAPDU.parsePDU(GXAPDU.java:851)
at gurux.dlms.GXDLMSClient.parseAareResponse(GXDLMSClient.java:958)
at gurux.dlms.client.GXDLMSReader.initializeConnection(GXDLMSReader.java:598)
at gurux.dlms.client.GXDLMSReader.readAll(GXDLMSReader.java:1346)
at gurux.dlms.client.sampleclient.main(sampleclient.java:262)

I thought it could be the ClientAddress as it responded for 0x10 and didn’t for 0x20 so I tried with the below command as well
-h X.X.X.X -p 4059 -r sn -c 16 -a Low -P PPPPPPP -t Verbose
But faced the same issue again, any suggestions please.

Authentication: Low
ClientAddress: 0x10
ServerAddress: 0x1
Standard: DLMS
…
Connection is permanently rejected
Authentication failure.

Thank you very much in advance and best regards,

Dexter

Profile picture for user Kurumi

Kurumi

6 months 1 week ago

Hi, I believe that you have…

Hi,

I believe that you have an older E650 meter. Try with this:

-h X.X.X.X -p 4059 -r sn -c 17 -a Low -P PPPPPPP -t Verbose

Client address 16 is used when the client connects without authentication. That is the only client address that is defined on DLMS standard.

The read-write denied error occurs because this attribute has not been implemented.

Get the latest version from the client example. It now checks the access rights before reading and you don't see this error.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 05/15/2025 - 16:26
    gurux.dlms.c 9.0.2505.1501
  • Wed, 05/14/2025 - 08:30
    gurux.dlms.c 9.0.2505.1401
  • Tue, 05/13/2025 - 10:00
    Gurux.DLMS.Android 2.0.15
  • Fri, 05/09/2025 - 13:03
    Gurux.DLMS.Python 1.0.181
  • Wed, 05/07/2025 - 16:09
    Gurux.DLMS.Android 2.0.14

New forum topics

  • Long reading ends with "Invalid frame ..." error.
  • Push listener example how it works + tcp stream issue
  • Problem with reading energymeter Star DTS27 via GXDLMSDirector
  • Receiver Ready Test Failed
  • Combining several meters' profile generic data into one
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin