Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Reading a Specific OBIS Code

Reading a specific OBIS code

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 xloving, 22 March, 2021
Forums
Gurux.DLMS

Hi,

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

The obis code is present in the device and I see the read value when the whole data is read in python. Have tried few hacks but it didn't yield any fruit

Profile Generic 1.0.94.91.0.255Columns:
0.0.1.0.0.255 Clock | 1.0.12.7.0.255 Voltage | 1.0.11.7.0.255 Phase Current | 1.0.91.7.0.255 Neutral Current | 1.0.13.7.0.255 Signed Power Factor | 1.0.14.7.0.255 Frequency-Hz | 1.0.9.7.0.255 Apparent Power-VA | 1.0.1.7.0.255 Active Power-W | 1.0.1.8.0.255 Cum. Energy-Wh(Imp) | 1.0.9.8.0.255 Cum. Energy-VAh(Imp) | 1.0.1.6.0.255 MD-W(Imp) | 1.0.1.6.0.255 MD-W(Imp) | 1.0.9.6.0.255 MD-VA(Imp) | 1.0.9.6.0.255 MD-VA(Imp) | 0.0.94.91.14.255 Cum. Power On Duration | 0.0.94.91.0.255 Cumulative Tamper Count | 0.0.0.1.0.255 Cum. Billing Count | 0.0.96.2.0.255 Cum. Programming Count | 1.0.128.7.87.255 | 1.0.128.7.46.255 | 1.0.128.7.51.255 | 1.0.128.7.50.255 | 1.0.128.7.88.255 | 1.0.128.8.75.255 | 1.0.128.8.76.255 | 1.0.128.8.27.255 | 1.0.128.8.26.255 | 1.0.128.8.77.255 | 0.128.162.2.128.255 | 0.128.162.4.128.255

Entries: 0/1
-------- Reading 7 1.0.94.91.0.255 Instantaneous Profile
Entries: 1/1
03/22/21 17:58:57 |
236.74 |
0.62 |
0.62 |
-0.77 |
49.800000000000004 |
140.0 |
110.0 |
75200.0 |
92400.0 |
75 |
03/20/21 09:30 |
91 |
03/08/21 15:00 |
73748 |
1 |
3 |
0 |
01 00 00 |
00 00 00 |
00 00 00 |
00 00 00 |
00 00 00 |
18259 |
0 |
0 |
0 |
0 |
752251 |
924092 |

Sharing a screen shot for its presence in DLMSDirector as well.

Image
Profile picture for user Kurumi

Kurumi

5 years 2 months ago

Hi,

Hi,

You can read it using client example if you give -o parameter to save the association view and -g to identify the logical name.

Something like this:
-o output.xml -g 0.128.162.2.128.255:2

Or you can do it in the code like this:
obj = GXDLMSRegister("0.128.162.2.128.255")
self.read(obj, 2)

BR,
Mikko

xloving

5 years ago

Hi Mikko,

Hi Mikko,

Really sorry for the log pause in between.
I have tried using the -g option but the result is

python main.py -S /dev/ttyUSB0 -d India -a Low -P <password> -c 32 -g "0.128.162.2.128.255:2"
gurux_dlms version: 1.0.104
gurux_net version: 1.0.17
gurux_serial version: 1.0.15
Authentication: Authentication.LOW
ClientAddress: 0x20
ServerAddress: 0x1
Standard: Standard.INDIA
Traceback (most recent call last):
File "main.py", line 102, in main
raise Exception("Unknown logical name:" + k)
Exception: Unknown logical name:0.128.162.2.128.255
Ended. Press any key to continue.

Is there a place where these codes are stored as reference ?
I see gurux_dlms/India.txt having set of codes but editing it didnt change anything

Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

0.128.162.2.128.255 is not in the association view.
It might be that you can read only reading profile generic 1.0.94.91.0.255 and it's not planned to read 0.128.162.2.128.255 directly.

BR,
Mikko

Aman Srivastava

4 years 1 month ago

I am getting same issue with

I am getting same issue with the gurux_python code.
I am using GS5500677 Genus meter and tring 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. 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.

Can you please reply soon so that I can start my work, It will be great help for me.

Aman Srivastava

4 years 1 month ago

Please anyone help me out.

Please anyone help me out.

Image
Profile picture for user Kurumi

Kurumi

4 years 1 month ago

In reply to Please anyone help me out. by Aman Srivastava

Hi Aman,

Hi Aman,

Please, create a new topic if you have a new question. I'll answer your question after that.
https://www.gurux.fi/ForumRules

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