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

  • 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
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin