Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

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

Breadcrumb

  1. Home
  2. Forums
  3. Read Register Activation

Read Register Activation

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By agungpermana , 8 June, 2020
Forums
Gurux DLMS for Java

Hello everyone...
I hope you guys are still fine in the middle of this pandemic. Bless you.

I have a problem when trying to read register activation object.

this is the code that I have been written using gurux.dlms.java version 3.1.16.

void readRegisterActivation() {
GXDLMSRegisterActivation registerActivation = new GXDLMSRegisterActivation("0.0.14.0.1.255");
registerActivation.setVersion(0);
readRegisterActivation(registerActivation);
for (int pos : object.getAttributeIndexToRead(true)) {
try {
read(object, pos);
}catch (Exception ex) {
logger.log(Level.SEVERE, PrintUtil.FAIL_READING_INDEX_LOG,
new Object[]{pos, ex.toString()});
}
}
}

for index 1 (logical name) I think I get the wrong value cause I got "152.12.0.32.253.60" as the answer but I think it's supposed to be "0.0.14.0.1.255". For the rest index, its caught by "UNDEFINED_OBJECT". Even though I can read using GXDLMSDirector, its still error using gurux.DLMS.java.

Can I get an example for reading register activation object?.

Thanks,
Best regards,
Agung Permana

Profile picture for user Kurumi

Kurumi

6 years 3 months ago

Hi Agung ,

Hi Agung ,
You are reading object, but you are defined registerActivation.

Try with this:

GXDLMSRegisterActivation object = new GXDLMSRegisterActivation("0.0.14.0.1.255");
for (int pos : object.getAttributeIndexToRead(true)) {
try {
read(object, pos);
}catch (Exception ex) {
logger.log(Level.SEVERE, PrintUtil.FAIL_READING_INDEX_LOG,
new Object[]{pos, ex.toString()});
}
}

BR,
Mikko

agungpermana

6 years 3 months ago

hi, Mikko

hi, Mikko
thanks for your answer
sorry, I wrote the wrong code before, but I got the same result with your code.

Profile picture for user Kurumi

Kurumi

6 years 3 months ago

Hi,

Hi,

I believe that your client address, authentication level or password are not same as GXDLMSDirector. Check them. You can run java example using parameters. Try to read your data first with the client example.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
  • dw772
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin