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

5 years 11 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

5 years 11 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

  • 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