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

Selective Access

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 kevin jose minj , 28 December, 2022
Forums
General discussion

Is there any method to selective access for instantenous data through gurux python library?

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

What data do you want to access with selective access? Only a few meters are supporting selective access other than profile generic.

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

I want only profile generic

I want only profile generic data for now .Please share one example in python

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

I believe that you want to read the instantaneous profile. There is only one row.
For other profile generics, you can use readRowsByEntry or readRowsByRange methods.

http://gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric

You can find an example from here:
https://github.com/Gurux/Gurux.DLMS.Python/blob/121d9bfac3fc5fcb9a6949f…

BR,
Mikko

kevin jose minj

3 years 5 months ago

start = datetime.datetime.now

start = datetime.datetime.now()
end = start

Here I have to give start date and end date.Am I right?

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

Yes, you are right. You give start and end dates when you are reading with rows with readRowsByRange.

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

from command line arguments

from command line arguments it is possible? when I tried by calling the function it is throwing this error
Error! Failed to read last day: Access Error : Unknown error.

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

It's not possible to use the command line arguments. You can modify the client example for your needs.

I believe that the reason for your error is that the start and end times are the same.
Check the example link above. It sets the start time to midnight.

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

from datetime import datetime

from datetime import datetime
start = datetime(2022, 12 , 26)
end = datetime(2022, 12, 29)

This is the value I given but it is throwing error
"Read capture objects first."

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

You need to read capture objects before you can read the buffer like this.
self.read(it, 3)

http://gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric

BR,
Mikko

kevin jose minj

3 years 5 months ago

In reply to Hi, by Kurumi

In profile generic multiple

In profile generic multiple obis codes are there.Is there any way to execute a particular obis code in profile generic with selective access ? Example like this Data of billing period scheme with selective access.Now I am getting whole profile generic obis code at one stretch with selective access.

Profile picture for user Kurumi

Kurumi

3 years 5 months ago

Hi,

Hi,

You can give read columns as the last parameter for readRowsByRange, but all the meters aren't supporting it. You need to test this with all the meter models that you want to read and check if it's supported.

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