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. 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 7 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 7 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 7 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 7 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 7 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 8 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 8 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 8 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

  • 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