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

  • 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

  • Dawley07
  • nostra
  • cuiVEAwINCoyynjjn
  • qlMlMNfbqjNumKgGFIo
  • randx-super.ru
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin