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. How To Read Single OBIS Command and Get Result Using Android Library

How to read single OBIS command and get result using android library

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 Virabhadrappa , 13 July, 2021
Forums
Gurux DLMS for Android

Hi sir,
We are using android library. How we can communicate meter using single OBIS command?. Is there any code or reference? Please help.
Ex: logical name: 0.0.1.0.0.255
output data: 13/07/2021 16:24:10

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi,

Hi,

You need to establish the connection to the meter before you can read anything, so you can't do this with a single command.

You can skip reading the association view and read clock object like this:

//Open the connection...
GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
read(clock, 2);

//Close the connection...

BR,
Mikko

Virabhadrappa

4 years 11 months ago

Hi sir,

Hi sir,
Thank you for your reply. We are doing open and close connection correctly. But this

GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
read(clock); // Here accepting only one parameter not 2 param's.

Unable receive data if we pass only one parameter( i.e clock object). Is there any other code or any
modification is required?
Please help me.

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi,

Hi,

Check this:
https://github.com/Gurux/Gurux.DLMS.Android/blob/036e1a1de18f45e312e40e…

BR,
Mikko

Virabhadrappa

4 years 11 months ago

Hi sir,

Hi sir,
Open and close connection working fine. We checked this code

GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
readObject(clock,2);

Getting message "Failed to receive reply from the device in given time".
Is there any other way or any modification is required?
Please help me.

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi,

Hi,

Do you call initializeConnection method? Opening the connection is not that you just open the serial port connectio.

https://github.com/Gurux/Gurux.DLMS.Android/blob/036e1a1de18f45e312e40e…

BR,
Mikko

dhanush

4 years 11 months ago

Virabhadrappa which meter

Virabhadrappa which meter your using and can you tell me Meter Details

Virabhadrappa

4 years 11 months ago

HI sir,

HI sir,
We are using Larsen & Turbo DLMS 3-phase meter. Also tell me how to get result using
1) Data object ( i.e Exp: 0.0.42.0.0.255),
2) Register object ( i.e Exp: 1.0.32.7.0.255 (Voltage))
3) ProfileGenerica object ( i.e Exp: 1.0.99.1.0.255 (Load profile..1))
Any code how to get data. Please help me.

dhanush

4 years 11 months ago

Virabhadrappa can you me your

Virabhadrappa can you me your email because i am also working on same LNT 3 phase android

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

In reply to HI sir, by Virabhadrappa

Hi,

Hi,

Check the android example. It will read the association view and read all the objects from the meter.

BR,
Mikko

Virabhadrappa

4 years 11 months ago

Hi sir,

Hi sir,
We don't want all the objects come from the meter only few i.e 7 to 8 object values. That's it. How can we get the values only manually given objects. Is there any specific way?
Please help me.

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi,

Hi,

You need to add those objects like this:
GXDLMSData data = new GXDLMSData("Logical name");
readObject(data,2);

Find refresh and add objects that you want to read to there.
https://github.com/Gurux/Gurux.DLMS.Android/blob/036e1a1de18f45e312e40e…

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