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. I Am Getting This Error While Reading Billing Profile For Selective Read

i am getting this error while reading Billing profile for selective read

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 erdeepakcs , 20 June, 2017
Forums
Gurux.DLMS

Hi Sir,

Request: 20-06-2017 PM 04:01:13.83564 (+6.3064 seconds)

7E A0 2C 03 41 54 AF 99 E6 E6 00 C0 01 C1 00 07
01 00 62 01 00 FF 02 01 02 02 04 06 00 00 00 01
06 00 00 00 01 12 00 01 12 00 00 36 D2 7E

Answer: 20-06-2017 PM 04:01:13.88664 (+0.0510 seconds)

7E A0 07 41 03 1F 26 EC 7E

i am sending this command to reading billing profile for selective read by Entry. please can you explain why this error is coming.

Profile picture for user Kurumi

Kurumi

8 years 11 months ago

Billing profile

Hi,

Message is correct:
http://www.gurux.fi/GuruxDLMSTranslator?pdu=C001C100070100620100FF02010…

You was not saying what meter you try to read. All meters don't implement read by entry(index and count). Try with read by range(between start and end date).

BR,

Mikko

Binu S Pillai

8 years 7 months ago

How to get PROFILE GENERIC values in android DLMS

Hi,

I am reading the data from meter using optical probe. How can i read the Profile Generic values for selective read like in gurux director in android. When i read the profile generic values(Obis codes of profile generic: 1.0.98.1.0.255) in the gurux director with read all option it was returning a list. Like wise how can i read profile generic obis codes in android. Please help me with this.

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

How to get PROFILE GENERIC values in android DLMS

Hi,

You have to modify source code. Our example reads all data at the moment and there are no start and end time on UI.
You can modify read method and check is object profile generic.

/**
* Reads profile generic using start and end time.
*
* @param item
* @param attributeIndex
* @return
* @throws Exception
*/
public void readRowsByRange(final GXDLMSProfileGeneric pg,
final Date start, final Date end) throws Exception {
GXReplyData reply = new GXReplyData();
byte[][] data = mClient.readRowsByRange(pg, start, end);
readDataBlock(data, reply);
mClient.updateValue(pg, 2, reply.getValue());
}

public void read(GXDLMSObject obj) throws Exception {
if (obj instanceof GXDLMSProfileGeneric)
{
readRowsByRange((GXDLMSProfileGeneric)obj, start time, end time) ;
}
else{
for (int it : ((IGXDLMSBase) obj).getAttributeIndexToRead()) {
readObject(obj, it);
}
}
}

Binu S Pillai

8 years 7 months ago

In reply to How to get PROFILE GENERIC values in android DLMS by Kurumi

How to get PROFILE GENERIC values in android DLMS

I got it, Will you send me some example code with profile generic data reading.

Binu S Pillai

8 years 7 months ago

In reply to How to get PROFILE GENERIC values in android DLMS by Binu S Pillai

How to get PROFILE GENERIC values in android DLMS

Hai,

I tried your code thank you for saving me, Sorry to disturbing you again and again I want to read ALL the profile generic values insted of from date, to date how can i do that

Thank you,

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

How to get PROFILE GENERIC values in android DLMS

Hi.
Read buffer using read-method. That reads all data from the DB.
Like this:
//Read capture objects.
Read(pg, 3);
//Read ALL data.
Read(pg, 2);

BR,
Mikko

Binu S Pillai

8 years 7 months ago

In reply to How to get PROFILE GENERIC values in android DLMS by Kurumi

How to get PROFILE GENERIC values in android DLMS

Hai,

I had wrote the code like this but it wasn't returning any values for profile generic can you tell me why.
Please correct me if i am wrong

public void read(GXDLMSObject obj) throws Exception {
GXReplyData reply_data = new GXReplyData();
if(obj instanceof GXDLMSProfileGeneric){
byte[][]temp;
CurrentProfileGeneric = (GXDLMSProfileGeneric) obj ;
temp = mClient.read(CurrentProfileGeneric,2);
readDataBlock(temp,reply_data);
}else {
for (int it : ((IGXDLMSBase) obj).getAttributeIndexToRead()) {
readObject(obj, it);
}
}
}

Profile picture for user Kurumi

Kurumi

8 years 7 months ago

How to get PROFILE GENERIC values in android DLMS

Hi,

Read captured columns first. Something like:

readObject(pg, 3);
temp = mClient.read(CurrentProfileGeneric,2);
readDataBlock(temp,reply_data);

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