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

Please send me your output.

Please send me your output.

BR
Keenan

Shehryar

9 years 3 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 3 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 3 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

  • 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

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • 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
More

Who's new

  • OlegVoiva
  • Martaepili
  • Vegazone-Alini
  • Curtistig
  • hollycx60
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin