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. Unable To Get Data Using ReadRowsByEntry()

Unable to get data using readRowsByEntry()

By kumarsoft.parveen , 6 March, 2025
Forums
Gurux DLMS for Android

Hi
I am downloading data using
readRowsByEntry(obj,(billingCount-1),2); function but i am geeting error like unable to read object

Please check the issue
I am doing following steps

1) Connect with meter
2) create a boject for profile generic
GXDLMSObject obj;
obj = GXDLMSClient.createObject(ObjectType.PROFILE_GENERIC);
obj.setLogicalName("1.0.98.1.0.255");
obj.setVersion(1);
obj.setDescription("Billing Data");

readRowsByEntry(obj,3,2);

public Object[] readRowsByEntry(GXDLMSObject pg, int index, int count) throws Exception {
byte[][] data = mClient.readRowsByEntry((GXDLMSProfileGeneric)pg, index, count);
GXReplyData reply = new GXReplyData();
readDataBlock(data, reply);
return (Object[]) mClient.updateValue(pg, 2, reply.getValue());
}

public final byte[][] readRowsByEntry(final GXDLMSProfileGeneric pg, final int index,
final int count) throws InvalidKeyException, NoSuchAlgorithmException,
NoSuchPaddingException, InvalidAlgorithmParameterException, IllegalBlockSizeException,
BadPaddingException, SignatureException {
return readRowsByEntry(pg, index, count, null);
}

And so on.
\
PLease tell why i am getting error

Profile picture for user Kurumi

Kurumi

1 year 3 months ago

Hi, All the meters don't…

Hi,

All the meters don't support readRowsByEntry to all objects. Try to read 1.0.98.1.0.255 with read by range -method.

https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin