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. Setting Load Profile Registers

Setting Load Profile registers

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 hhkx , 17 August, 2020
Forums
Gurux.Net

In addition to this subject here: https://www.gurux.fi/node/16545

, I need to set load profile registers. Which methods should I call after a success high authenticated connection?

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

Use capture objects to set values that you want to save.

BR,
Mikko

hhkx

5 years 11 months ago

Hi Mikko,

Hi Mikko,

Is there any sample code that I can set objects to a register?

Please help me.

For example,

obj.SetValues(5, new GXObisValueItemCollection { new GXObisValueItem { Value= 62800, UIValue = "1.0.0.0.0.255" } });

Does it work? How can I save this? What should I do?

Thanks in advance.

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

The load profile is not a register, it's a Profile Generic object. If you want to set capture objects to PG, download GXDLMSDirector, and set capture objects with it. Then you add capture objects to PG and write it as normal write. You can check the client example. I believe it will help you.

BR,
Mikko

hhkx

5 years 11 months ago

This doesn't save or write

This doesn't save or write anything.

GXDLMSObject obj = GXDLMSClient.CreateObject(ObjectType.ProfileGeneric);

obj.Version = 1;
obj.LogicalName = "1.0.99.2.0.255";
obj.SetValues(5, new GXObisValueItemCollection { new GXObisValueItem { Value= 62800, UIValue = "1.0.0.0.0.255" } });
client.Write(obj, 5);

profileGeneric doesn't have something like save or write method.

var profileGeneric = new GXDLMSProfileGeneric("1.0.99.1.0.255");

profileGeneric.CaptureObjects.Add(new GXKeyValuePair<GXDLMSObject, GXDLMSCaptureObject> { Key = obj, Value = new GXDLMSCaptureObject { AttributeIndex = 0, DataIndex = 2 } });

  • 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

  • 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
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • Thomasqto
  • Uka Ibe
  • CTKNhZElptjSlOrpkXl
  • YCbccqfLGRMnlCWoJhXP
  • Malcolmactig
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin