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
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
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
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