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. Getting Part of SL7000 Generic Data With Python

Getting part of SL7000 generic data with 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 yuce , 7 November, 2019
Forums
Gurux.DLMS

Hi,
I'm trying to read a range of generic profile with the Python library. How should i query the last x days or last x entries? Is this a meter based problem or am I doing something i shouldn't?

Itron SL7000 SL761
Code snippet;
obj = client.objects.findByLN(ObjectType.NONE, "0.0.99.1.0.255")
val = reader.read(obj, 3)

today = datetime.datetime.today()
today = datetime.datetime(today.year, today.month, today.day) # midnight of date 00:00:00
yesterday = today - datetime.timedelta(days=1)
dayBefore = today - datetime.timedelta(days=2)

val = client.readRowsByRange(obj, dayBefore, yesterday) #returns nothing
val = client.readRowsByEntry(obj, 1,10) #returns nothing
#val = reader.read(obj, 2) # returns 13564 rows. Takes too long

Thanks in advance.
Best wishes.

Profile picture for user Kurumi

Kurumi

6 years 8 months ago

Hi,

Hi,

SL7000 is causing some problems. All the meters or profile generic objects don't support readRowsByEntry.

Can you use GXDLMSDirector to read your meter? We have used it a lot with SL 7000.
Try also read a longer time by readRowsByRange. Is there data on that time?

BR,

Mikko

yuce

6 years 8 months ago

Thanks for the prompt reply.

Thanks for the prompt reply.
I can read the same period with the GXDLMSDirector. Although it shows a "Access Error: Device reports scope of access violated" warning for the right cell of entries, it gets 96 entries. I have attached a screenshot of GXDLMSDirector. It shows the cell with the access error.

Program reaches
return self.read(pg, 2) line in "GXDLMSClient.py/ def readRowsByRange(self, pg, start, end, columns=None):" function but returns without printing any RX TX traffic or errors/warnings.

I have tried to change and mix the start and end dates but result doesn't change.

Best wishes.
Yuce

Image
Profile picture for user Kurumi

Kurumi

6 years 8 months ago

Hi,

Hi,

Can you send the GXDLMSDirector trace to me by email? You can find my email info here:
https://www.gurux.fi/AboutUs

Send also python trace. You can get it with -t Verbose parameter.

BR,

Mikko

Profile picture for user Kurumi

Kurumi

6 years 8 months ago

Hi,

Hi,

I didn't remember, but this is the data that SL7000 is sending. It's an older device and not support DLMS very well. You need "Logical Devices SK761" -document to find out what meter is returning.
You need to ask it from the meter vendor.

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

  • hirenec11mic
  • Yeyen
  • Virtual
  • joesa4
  • SgwTHoQsOQXBixXP
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin