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. Profile Generic - ReadByRange Python

Profile Generic - ReadByRange Python

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 jonasfoyth , 15 September, 2020
Forums
Gurux.DLMS

Hi Mikko,

I'm trying to read Profile Generic parameters by range, but it's not working. I'm able to read by entry without problem (using latest python lib version).

loadProfile = self.reader.client.settings.objects.findByLN(ObjectType.PROFILE_GENERIC,'1.0.99.1.0.255' )
lpcaptureObjects = self.reader.read(loadProfile, 3)
lpcapturePeriod = self.reader.read(loadProfile, 4)
#lpsortMethod = self.reader.read(loadProfile, 5)
#lpsortObject = self.reader.read(loadProfile, 6)
startDate = datetime.fromtimestamp(date)
fromDate = GXDateTime(startDate)
#fromDate.skip = DateTimeSkips.STATUS
endDate = datetime.fromtimestamp(date + 300)
toDate = GXDateTime(endDate)
#toDate.skip = DateTimeSkips.STATUS
self.rows = self.reader.readRowsByRange(loadProfile, fromDate, toDate)

If i read lpsortObject the program execute the line "return self.read(pg, 2)" in GDLMSClient, but i don't want this...I can comment the line or not read the parameter, same result for both.

Logs:

TX: 00 01 00 15 00 01 00 0D C0 01 C1 00 07 01 00 63 01 00 FF 03 00
RX: 00 01 00 01 00 15 01 80
RX: C4 01 C1 00 01 15 02 04 12 00 08 09 06 00 00 01 00 00 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 0F 0B FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 0A 01 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 01 08 00 FF 0F 02 12 00
00 02 04 12 00 03 09 06 01 00 05 08 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 08 08 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 02 08 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 07 08 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 06 08 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 20 07 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 34 07 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 48 07 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 1F 07 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 33 07 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 47 07 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 51 07 01 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 51 07 0C FF 0F 02 12 00 00
02 04 12 00 03 09 06 01 00 51 07 02 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 51 07 04 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 51 07 0F FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 51 07 1A FF 0F 02 12 00 00
TX: 00 01 00 15 00 01 00 0D C0 01 C1 00 07 01 00 63 01 00 FF 04 00
RX: 00 01 00 01 00 15 00 09
RX: C4 01 C1 00 06 00 00 00 05
TX: 00 01 00 15 00 01 00 40 C0 01 C1 00 07 01 00 63 01 00 FF 02 01 01 02 04 02 04 12 00 08 09 06 00 00 01 00 00 FF 0F 02 12 00 00 09 0C 07 E4 09 0F 02 07 1E 00 00 FA D8 00 09 0C 07 E4 09 0F 02 07 23 00 00 FA D8 00 01 00
RX: 00 01 00 01 00 15 00 06
RX: C4 01 C1 00 01 00

Profile picture for user Kurumi

Kurumi

6 years ago

Hi,

Hi,

Make sure that you have the latest version. return self.read(pg, 2) is not used anymore.
Run this:
pip install --upgrade gurux-dlms

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • abuw.01
  • Anaglyfos Trading CC
  • cyby
  • Metin Onan
  • ssv007
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin