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

5 years 10 months 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

  • 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

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • 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
More

Who's new

  • nostra
  • cuiVEAwINCoyynjjn
  • qlMlMNfbqjNumKgGFIo
  • randx-super.ru
  • Arturolooth
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin