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

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin