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. Problem Reading a Single Parameter After Successful AARE

Problem Reading a Single parameter after successful AARE

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 Shehryar , 17 April, 2017
Forums
Gurux.DLMS

Hi Team Gurux,

I'm trying to read "Total Active Energy" by using this code:

GXDLMSObject obj = new GXDLMSObject();
obj.LogicalName = "1.0.1.8.0.255";
Object x = Read(obj, 2);

What my code is sending:
00 01 00 11 00 01 00 0D C0 01 C1 00 00 01 00 01 08 00 FF 02 00

What I need to send:
00 01 00 11 00 01 00 0D C0 01 81 00 03 01 00 01 08 00 FF 02 00

How can I set Priority and classID.
Why I'm not able to read "Total Active Energy" ?

Thanks,
Shehryar khan,

keenangeorge

9 years 1 month ago

Hi Shehryan

Hi Shehryan

I am no expert however can you try the below

GXDLMSRegister obj = new GXDLMSRegister("1.0.1.8.0.255");
Read(obj, 2);

Regards
Keenan George

Shehryar

9 years 1 month ago

Thanks,

problem solved.
Now I'm getting right response in bytes, how can I convert these bytes data into values ?

keenangeorge

9 years 1 month ago

Please send me your output.

Please send me your output.

BR
Keenan

Shehryar

9 years 1 month ago

Value of 1.0.1.8.0.255

00 01 00 01 00 11 00 09 C4 01 81 00 06 00 90 10 4C

keenangeorge

9 years 1 month ago

Hi

Hi

if c# please try this to write to screen.

Object Total_Active_Import = Read(obj, 2);
Console.WriteLine("ImportActiveAggregate: " + Total_Active_Import);

BR

Profile picture for user Kurumi

Kurumi

9 years 1 month ago

Reading Register

Hi,

Keenangeorge is right. You are reading register and do like he suggest.
You can also get read value like this:

GXDLMSRegister obj = new GXDLMSRegister("1.0.1.8.0.255");
Read(obj, 2);
Console.WriteLine("ImportActiveAggregate: " + obj.Value);

Value is updated because you are reading attribute 2. That is register value.
If you read attribute 3 (scaler and unit) first value is multiply by scaler.

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