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. Sorting Method

Sorting Method

By kevin jose minj , 8 May, 2023
Forums
General discussion

I want to read blockload profile from meters. But, some meters sorting method is LIFO and some of them are FIFO. Is there any way to change the sortmethod while reading?

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, You can try to read the…

Hi,

You can try to read the meters using read by entry, but there is no option to give the sorting method while reading. You can save sorting method to the DB and check it there.

BR,
Mikko

kevin jose minj

3 years 2 months ago

By using readRowsByEntry we…

By using readRowsByEntry we need to pass start and end values.For block load I am giving 1 and 4.To return the whole values from meter which value I have to pass and how return default sort method from meter?

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, I'm sorry. I meant to…

Hi,

I'm sorry. I meant to read by range, not by entry. When you give start and end time the meter returs values between given times.

BR,
Mikko

kevin jose minj

3 years 2 months ago

I tried with read by range,…

I tried with read by range, which is returning values only for some meters .Some meters it is showing "Data send failed. Try to resend" message.But when I am reading through GXDLMSDirector it is fine. Please help me out what is this issue?

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, Check the client example…

Hi,

Check the client example from the GitHub. It does what you want to do.

BR,
Mikko

kevin jose minj

3 years 2 months ago

From client example only…

From client example only tried that its only causing issue with specific meter. Rest of the other meters are returning values fine.Is there any meter specific issue with this method?

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, Some meters can handle…

Hi,

Some meters can handle date-time only if it's in a specific format.

At first, try to set hours, minutes and seconds to zero. This will work with some meters. If it doesn't work, try to ignore deviation.

BR,
Mikko

kevin jose minj

3 years 2 months ago

I tried like this start …

I tried like this

start =datetime.now().replace(hour =9,microsecond=0,second=0,minute=15)
end = datetime.now().replace(hour =9,microsecond=0,second=0,minute=45)
self.getProfileGenerics(start,end,selectedProfileGeneric)

And assigned minute as zero

start =datetime.now().replace(hour =9,microsecond=0,second=0,minute=0)
end = datetime.now().replace(hour =9,microsecond=0,second=0,minute=0)
self.getProfileGenerics(start,end,selectedProfileGeneric)

Its not working and both showing same exception
Data send failed. Try to resend 1/2

If I pass date as string is there any possiblitiy to work?

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, No, you can't give the…

Hi,

No, you can't give the date time as a string. It looks like your start and end times are the same and that might cause problems with some meters.

Set the start time to midnight.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin