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

  • 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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin