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. Node
  3. Updating Register Values

Updating register values

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 ac123 , 2 July, 2020
Forums
Gurux.DLMS

Hi,

I am using Android with a Landis E650 type of meter.

I am trying to update a register object and I have ran into some issues.

The way I do it is I first get the association view, get all the objects and then I call for example:

S -> client.read(register, 3); //To get scaler and unit

R <- 7ea01581037288a4e6e7000c010002020fff161e3ff27e

After I receive the data I try to update my object but fail, like this

client.updateValue(register, 3, reply.getData());

reply is GXReplyData type

The issue is in the GXDLMSRegister file on this line:
Object[] arr = (Object[]) e.getValue();

The problem is that e.getValue(); is a byte array and in the process of updating I don't see where the data is processed and changed to an Object array.

Am I updating the object in a wrong way? Is there any documentation on it because I wasn't able to find it.

BR,
Alex

ac123

6 years 2 months ago

Hi,

Hi,

After looking through your code I found the function getValue which after using it, it works.
I apologize I might have been a bit impatient with my post, however I still wonder if there is any documentation covering this sort of stuff because I wasn't able to find it.

BR,
Alex

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi Alex,

Hi Alex,

Start reading this:
https://www.gurux.fi/Gurux.DLMS

We have made only very basic docs and if you have any problems or questions ask them in the Forum.
People have so different problems that it's not possible to cover them in the documentation.

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

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