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. Unable To Read Attributes In Gurux DLMS Android

Unable to read attributes in Gurux DLMS android

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 Binu S Pillai , 1 November, 2017
Forums
Gurux DLMS for Java

I am developing an android application using your gurux dlms android. I am getting a null values in the attributes due to no attribute count. Please tell me how to get the attribute values in gurux dlms android.
Here's the below code which i was using showObject method. Please help me with this :

StringBuilder sb = new StringBuilder();
String newline = System.getProperty("line.separator");
sb.append(target.getLogicalName());
if (target.getShortName() != 0)
{
sb.append(" (");
sb.append(String.valueOf(target.getShortName()));
sb.append(")");
}
sb.append(newline);
sb.append(target.getDescription());
sb.append(newline);
sb.append("------------------------------------------------------------------");
sb.append(newline);
for (int pos = 0; pos != target.getAttributeCount(); ++pos) {
sb.append(String.valueOf(target.getValues()[pos]));

sb.append(newline);

sb.append("------------------------------------------------------------------");
sb.append(newline);
}

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

Unable to read attributes in Gurux DLMS android

Hi,

What is target type? Are you creating it by yourself or reading from the meter?

BR,

Mikko

Binu S Pillai

8 years 7 months ago

In reply to Unable to read attributes in Gurux DLMS android by Kurumi

Unable to read attributes in Gurux DLMS android

Hello,
Thanks for the reply. Yes i am reading from the meter which is three phase from another end. Target Type is three phase meter

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

Unable to read attributes in Gurux DLMS android

Hi,

Sorry, I explained it badly. What is COSEM type of "target" parameter in your example?
Is it clock, register, data, etc?

if (target.getShortName() != 0)

BR,
Mikko

Binu S Pillai

8 years 7 months ago

In reply to Unable to read attributes in Gurux DLMS android by Kurumi

Unable to read attributes in Gurux DLMS android

Hi,
I am getting the attributes values now by selecting one obis parameter from list then by clicking read button.
Previously i think that attribute values will come by clicking refresh button.
Later i got to know that attribute values will come by clicking read button on selected obis value from list
Thanks for the help.

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

Unable to read attributes in Gurux DLMS android

Hi,

Can you tell OBIS code of selected object?

BR,

Mikko

Binu S Pillai

8 years 7 months ago

In reply to Unable to read attributes in Gurux DLMS android by Kurumi

Unable to read attributes in Gurux DLMS android

Hai,
Sorry for the late reply, I am reading obis code called 0.0.0.1.0.255. I am having a small doubt regarding profile generic reading also. When i need to read the profile generic values in the Gurux DLMS Director i am getting another list of obis codes. While coming to the android i am not getting those types of values when i clicked the profile generic obis code. Please help me with this. This is my profile generic obis code 1.0.99.1.0.255. Please tell me how to get the values for profile generic.

  • 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