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. Reading Profile Generic

Reading profile generic

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 hanumaan , 5 July, 2018
Forums
Gurux DLMS for Android

Hi ...
I am.. try to reading profile generic data, below is the code snippet i have tried..

GXDLMSProfileGeneric gp = new GXDLMSProfileGeneric("1.0.94.91.0.255");
GXReplyData reply_data = new GXReplyData();

byte[][] temp = mClient.read(gp, 3);
for (byte[] it : temp) {
readDataBlock(temp, reply_data);
}
if (gp.getDataType(3) == DataType.NONE) {
gp.setDataType(3, reply_data.getValueType());
}
mClient.updateValue(gp, 3, reply_data.getValue());
byte[][] temp1 = mClient.read(gp, 2);
for (byte[] it : temp1) {
readDataBlock(temp1, reply_data);
}
if (gp.getDataType(2) == DataType.NONE) {
gp.setDataType(2, reply_data.getValueType());
}
mClient.updateValue(gp, 2, reply_data.getValue());

GXDLMSProfileGeneric gpScalar = new GXDLMSProfileGeneric("1.0.94.91.3.255");
byte[][] temp2 = mClient.read(gpScalar, 3);

for (byte[] it : temp2) {
readDataBlock(temp2, reply_data);
}
if (gpScalar.getDataType(3) == DataType.NONE) {
gpScalar.setDataType(3, reply_data.getValueType());
}
mClient.updateValue(gpScalar, 3, reply_data.getValue());

byte[][] temp4 = mClient.read(gpScalar, 2);
for (byte[] it : temp4) {
readDataBlock(temp4, reply_data);
}
if (gpScalar.getDataType(2) == DataType.NONE) {
gpScalar.setDataType(2, reply_data.getValueType());
}
mClient.updateValue(gpScalar, 2, reply_data.getValue());

first question Is this the write way to get profile generic data and its scalar values? or there is better way or readymade methods to read package recieved from the meter.

Profile picture for user Kurumi

Kurumi

7 years 11 months ago

Reading profile generic

Hi,

It's always better to read scalers and units before and save them an example to the file.
In that way, you don't need to read them from the meter every time again and again.

BR,

Mikko

Bhavjinder Singh

7 years 10 months ago

Read meter on bluetooth

Hi...
Meter is giving data over bluetooth, how can i use gurux library

Profile picture for user Kurumi

Kurumi

7 years 10 months ago

Read meter on bluetooth

Hi Bhavjinder,

Please, create a new topic if you have a new question.
Yes, you can use bluetooth with Gurux lib.
You need to handle data reading and writing from bluetooth.

BR,
Mikko

Deepanshu

7 years 3 months ago

Reading profile generic

Hi Mikko,

While trying to fetch Profile Generic by using Gurux DLMS Android I am getting following error:
Read Capture Objects first. (Snap of error is attached)

Please let me know how to get around this error. Please provide the code changes required if any and where that needs to be done.

Thanks

Image
Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Reading profile generic

Hi,

I believe that meter returns empty collection for capture objects. Can you read this meter with GXDLMSDirector?

BR,
Mikko

Deepanshu

7 years 3 months ago

Reading profile generic

Hi Mikko,

I am able to read all data of profile generic using DLMS Director. Please suggest how to do the same using app.

Thanks,
Deepanshu

  • 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