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 Profile On Gurux Python.

Reading Profile on gurux 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 Aman Srivastava , 22 April, 2022
Forums
Gurux.DLMS

Hi,

Meter name :- Genus meter
Encryption Key + Authentication key :- 16 bit

Its a follow up on https://www.gurux.fi/comment/20393#comment-20393

I am Using Gurux_python code.
I am working on Genus meter and trying to read through optical port.
By simple command python3 main.py -S port No. (inside : Gurux.DLMS.Client.Example.python)
This command return me some value of meter details.

/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python$ python3 main.py -S Port No.

-------- Reading 15 0.0.40.0.1.255 Ch. 0 Association #1
Index: 1 Value: 0.0.40.0.1.255
Index: 2 Value: 0.0.40.0.1.255 Ch. 0 Association #1, 0.0.96.1.0.255 Ch. 0 Device ID 1, manufacturing number, 0.0.42.0.0.255 Ch. 0 COSEM Logical device name, 0.0.1.0.0.255 Ch. 0 Clock object #1, 0.0.41.0.0.255 Ch. 0 SAP Assignment, 0.0.40.0.0.255 Ch. 0 Current association
Index: 3 Value: 16, 1
Index: 4 Value: 2 16 756 5 8 1 1
Index: 5 Value: Conformance.GET 512 512 6 0
Index: 6 Value: 2 16 756 5 8 2 0
Attribute7 is not readable.
Index: 8 Value: 2
-------- Reading 1 0.0.96.1.0.255 Ch. 0 Device ID 1, manufacturing number
Index: 1 Value: 0.0.96.1.0.255
Index: 2 Value: GXXXXAAX7
-------- Reading 1 0.0.42.0.0.255 Ch. 0 COSEM Logical device name
Index: 1 Value: 0.0.42.0.0.255
Index: 2 Value:
-------- Reading 8 0.0.1.0.0.255 Ch. 0 Clock object #1
Index: 1 Value: 0.0.1.0.0.255
Index: 2 Value: 04/21/22 02:01:55
Index: 3 Value: 480
Index: 4 Value: 0
Attribute5 is not readable.
Attribute6 is not readable.
Attribute7 is not readable.
Attribute8 is not readable.
Index: 9 Value: 1
-------- Reading 17 0.0.41.0.0.255 Ch. 0 SAP Assignment
Index: 1 Value: 0.0.41.0.0.255
Index: 2 Value: (1, 'GXXXXXXXXXXXO')
-------- Reading 15 0.0.40.0.0.255 Ch. 0 Current association
Index: 1 Value: 0.0.40.0.0.255
Index: 2 Value: 0.0.40.0.1.255 Ch. 0 Association #1, 0.0.96.1.0.255 Ch. 0 Device ID 1, manufacturing number, 0.0.42.0.0.255 Ch. 0 COSEM Logical device name, 0.0.1.0.0.255 Ch. 0 Clock object #1, 0.0.41.0.0.255 Ch. 0 SAP Assignment, 0.0.40.0.0.255 Ch. 0 Current association
Index: 3 Value: 16, 1
Index: 4 Value: 2 16 756 5 8 1 1
Index: 5 Value: Conformance.GET 512 512 6 0
Index: 6 Value: 2 16 756 5 8 2 0
Attribute7 is not readable.
Index: 8 Value: 2
DisconnectRequest
Ended. Press any key to continue.

1.But when i tried to read instantaneous or load Profile by providing -g OBIS Code, I am getting a error :-
File "main.py", line 106, in main
raise Exception("Unknown logical name:" + k)
Exception: Unknown logical name:1.0.12.44.0.255
So for confirmation of suitable obis code i also run this on meter tool and that tool are giving me response but same obis code is not working in GURUX code.

2. When i tried with 32 client address and provide Password and Authentication is Low

~/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python$ python3 main.py -S Port No.-c 32 -s 1 -a Low -P Password

ClientAddress: 0x20
ServerAddress: 0x1
Standard: Standard.DLMS
DisconnectRequest
Connection is permanently rejected
The application context name is not supported.
Ended. Press any key to continue.

3. When i tried with 32 client address and provide Password and Authentication is High

~/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python$ python3 main.py -S Port No. -c 32 -s 1 -a High -P Password

ClientAddress: 0x20
ServerAddress: 0x1
Standard: Standard.DLMS
DisconnectRequest
Connection is permanently rejected
The application context name is not supported.
Ended. Press any key to continue.

So need your help In how can i read profile data in guruX python code.

Profile picture for user Kurumi

Kurumi

4 years 3 months ago

Hi,

Hi,

I have already replied for your question here:
http://www.gurux.fi/node/19843

Please, don't create multiple topics from the same question.

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

  • 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
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • HilipLot
  • NithnCXPiBJHVG…
  • utkarsh9460
  • cWYHszETmudslY…
  • Aij
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin