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 5 months 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 5 months ago

Thanks,

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

keenangeorge

9 years 5 months ago

Please send me your output.

Please send me your output.

BR
Keenan

Shehryar

9 years 5 months 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 5 months 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 5 months 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

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
  • dw772
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin