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. Svr_handleSetRequest2 Not Working Correctly

svr_handleSetRequest2 not working correctly

By Pablob , 22 October, 2025
Forums
Gurux DLMS for ANSI C

Hi,

I’ve been working with the GURUX library for ANSI C and ran into an issue.

When I try to set the value of an object class_id = 1 and an attribute of type OCTET_STRING, I’ve noticed the following:

If I read the object first and then set it, inside svr_postWrite(dlmsSettings* settings, gxValueEventCollection* args) I get args->size == 1.

If I don’t read first and I write directly, then in the same function args->size == 0, which means no post-processing happens after the write.

After stepping through the library, I found that in svr_handleSetRequest2 the list.size is never set to 1. As a test, I have asigned list.size = 1 at the beginning of this function:

#ifdef DLMS_IGNORE_MALLOC
list = settings->transaction.targets;
e = &list.data[0];
ve_clear(e);
list.size = 1;

With this change, svr_postWrite now receives one event and I’m able to perform post-processing after a write.

Is this the expected behavior, or is there a better/proper fix for this scenario?

Thanks,
Pablo

Profile picture for user Kurumi

Kurumi

1 year 1 month ago

Hi Pablo, I believe that you…

Hi Pablo,

I believe that you are right. This problem occurs if you establish the connection and write without reading anything from the meter. The read resets this error.

This needs testing, and this will be released in the next week after the tests are over.

BR,
Mikko

Pablob

1 year 1 month ago

Hello Kurumi, Thank you for…

Hello Kurumi,

Thank you for your response.
I’ll be looking forward to the next releases.

Thanks!

Pablo

Profile picture for user Kurumi

Kurumi

1 year ago

Hi Pablo, This is fixed to…

Hi Pablo,

This is fixed to version 9.0.2510.2901.
Thank you for pointing this out.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101

New forum topics

  • Pusat Alat Sex Dewasa Jakarta 0821 2021 8043 | Toko Jual Alat Bantu Pria dan Wanita
  • Layanan BCA KCP Intercon Megah Tlpn|0823-7117~1709
  • Layanan BCA KCP BG Junction Tlpn|0823-7117~1709
  • Layanan BCA KCP Cipto Mangunkusumo Tlpn|0823-7117~1709
  • Layanan BCA KCP Pandaan Tlpn|0823-7117~1709
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin