Getting part of SL7000 generic data with Python

4 posts / 0 new
Last post
yuce
Getting part of SL7000 generic data with Python

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.

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

yuce

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: 
Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi