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

  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101

New forum topics

  • Landis E650 meter reading over DLMS
  • class_id = 40, version = 2, pushsetup Unparsed data frame
  • GXObisValueItem entries without MaskSize appear to be interpreted as bit flags
  • CheckedListBox incorrectly selects GXObisValueItem Value=0 for non-zero values
  • UIValueType=TextBox is rendered as CheckedListBox when Values are defined
More

Who's new

  • Sayang
  • q80435762@gmail.com
  • ONCAK
  • Berhasil
  • ratirvivege1979
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin