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 1 month 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 1 month 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 1 month 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 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 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 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 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 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 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

  • 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