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. How To Read An Obis Register ( .NET C#)

How to read an obis register ( .NET C#)

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 vmf214 , 11 November, 2016
Forums
Gurux.DLMS

I like to read obis code an EMH LZQJ-XC.

I used GXDMLSDirector, and it work well.

Now i'd like to read a register, so in C#, i connect to it, parse UA reply and make AARQ request (as the doc).
all seem work,
but now how to read an obis register? there is no example and the client object (GXDLMSClient) has no getObjects method??
can you give me a clue to do that?

Profile picture for user Kurumi

Kurumi

9 years 8 months ago

How to read an obis register

Hi,

Best way is if you can read association view. You can do this with GetObjectsRequest.
You can read more from here:

http://www.gurux.fi/Gurux.DLMS.Client
BR,

Mikko

vmf214

9 years 8 months ago

sorry, the client has

sorry, the client has getObjects method.... aware of the best 'i'm stupid' for me...
i'd like only read one or two register, i know their obis code, and i like to get i" 1.1.96.88.32.21.55" value scale without download a full association View.
Can you think it is possible?

Profile picture for user Kurumi

Kurumi

9 years 8 months ago

How to read an obis register

Hi,

You don't need to read association view. If you know Logical name or Short name you can create objects and read them right a way.

Something like this.
GXDLMSClock clock = new GXDLMSClock("0.0.1.0.0.255");
//Read object.

BR,
Mikko

vmf214

9 years 8 months ago

thanks but no read of the value [SOLVED]

ok i send for example an GXDLMS object to the read function and it update the scale and the unit for my object but it don't update the value after the read function:

code example:
GXDLMSRegister phaseFailureNotToBeUpdated = new GXDLMSRegister("1.0.0.3.4.255", 51632);
GXDLMSRegister phaseFailure = new GXDLMSRegister("1.0.0.3.4.255", 51632);
Client.Read(phaseFailure,3);
Result :
phaseFailure has update on scale and units but not on value.

this for all object (not yet test generics profile);

thank's in advance for your help again .

SOLVED
need to read Scale and units BEFORE the value itself....
Client.Read(phaseFailure,3);
Client.Read(phaseFailure,2);

Profile picture for user Kurumi

Kurumi

9 years 8 months ago

How to read an obis register

Hi,

Yes, you are right. I'm glad that you solve this. Note that you need to read scaler only once.
It's static.

BR,

Mikko

tim_kay

5 years 10 months ago

hello. i am trying to write a

hello. i am trying to write a code to connect and read data from a meter using tcp/ip in C#(VS2017). I get the sample codes from official site. I downloaded the nugets. However there are undefined variables, terms undefined in .dll's. Is there any simplest, shortest sample codes for it,please?

Profile picture for user Kurumi

Kurumi

5 years 10 months ago

In reply to hello. i am trying to write a by tim_kay

Hi Tim,

Hi Tim,

Please, create a new topic and I'll answer your question there.

BR,
Mikko

tim_kay

5 years 10 months ago

In reply to Hi Tim, by Kurumi

I did it. Sorry for

I did it. Sorry for inappropriate entry.

  • 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

  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • 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
More

Who's new

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