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. Reading Data Through OBIS Code

Reading data through OBIS code

By Simon@12 , 22 March, 2023
Forums
Gurux.DLMS

I am using Gurux.DLMS.Python/GXDLMSReader.py code from Github I have all the information related to device setting and security and all. But how I use it to read data like voltage, clock etc.. from meter through optical serial port. Little Help here.

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, You can read all the…

Hi,

You can read all the command line parameters if you go Gurux.DLMS.Client.Example.python folder and run python main.py

Command line parameters vary between meter and authentication level.

I believe that you should download GXDLMSDirector and play with it to get understanding from DLMS.

You can see correct comman line parameters after you have established the connection for the meter with GXDLMSDirecor and select device.

BR,
Mikko

Simon@12

3 years 2 months ago

In reply to Hi, You can read all the… by Kurumi

Thanks for Replying By the…

Thanks for Replying
By the way I am using GXDLMSDirector, but my main issue is here that I want to build an simple gui with python to read some data and profile generics like ip,lp,etc...
and I want to know in which script inside Gurux.DLMS.Client.Example.python Folder I change my device settings, Security settings and other related settings.It will be great help if you can explain it clearly.

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

In reply to Thanks for Replying By the… by Simon@12

Hi, Check the settings.py…

Hi,

Check the settings.py. All the command line setting are updated there. Settings depends from the meter model and manufacturer so you need to handle all the cases in the settings.py file.

BR,
Mikko

Simon@12

3 years 2 months ago

In reply to Hi, Check the settings.py… by Kurumi

Can you share a code example…

Can you share a code example that how I apply these settings on Settings.py script and read a simple data like Clock (OBIS Code: 0.0.1.0.0.255)

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

In reply to Can you share a code example… by Simon@12

Hi, When you select meter in…

Hi,

When you select meter in GXDLMSDirector you can see the command line parameters. Then add -g "0.0.1.0.0.255:2"

That will read the clock object.

Note! application will read the association view first. You can save it using -o output.xml

After that, it's not read anymore.

BR,
Mikko

Simon@12

3 years 2 months ago

In reply to Hi, When you select meter in… by Kurumi

I am asking about how to…

I want to know about how to apply Device settings and secured connection settings (like Interface-HDLC,Password, client address,media, Security -AuthenticationEncrytion, Block Cipher Key, Authentication key, Invocation counter,Frame counter LN ..etc...)on Settings.py
And then after that running main.py to get data from meter.
Please explain it more clearly
Thanks

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

In reply to I am asking about how to… by Simon@12

Hi, You define the DLMS…

Hi,

You define the DLMS client and then set wanted parameters like this:

client = GXDLMSSecureClient(True)

client.interfaceType = InterfaceType.HDLC
client.password = "Used password."
...

Those parameters are used when communication is started with the meter. I have to warn that DLMS is not an easy protocol.

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin