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. Gurux DLMS For ANSI C

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.

Description

Questions and comments about<br />
Gurux <b>DLMS/COSEM for ANSI C</b> Protocol Component.

By dlmsDeveloper , 15 November, 2025

gurux.c testing with gxdlmsdirector ctt test

Forums
Gurux DLMS for ANSI C

Hi,

I use Gurux.c library and when i tested it with gxdlmsdirector ctt test
The Communication is ok between this two (Device and Software)
But when software was sent only this :

7e a0 2f 00 02 0e d3 03 10 5e 66 e6 e6 00 c8 1e
30 00 00 00 0c 63 a9 c6 fe 56 8e 96 a8 9f fe ed
1b c9 a9 a3 15 20 64 85 be 96 2f 07 00 c8 b8 6e
7e

By Pablob , 22 October, 2025

svr_handleSetRequest2 not working correctly

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.

By jack 001 , 21 October, 2025

Profile Generic Read by Range returned an error despite data exist on Itron SL7000

Forums
Gurux DLMS for ANSI C

Hi Mikko, good day.

I have with me an Itron SL7000 meter. Using correct parameters I can connect to it and read some data using Gurux DLMS Director. I managed to read the daily load profile by range. Then i try to read using ESP32. I can connect to it using ESP32, but when i try to read load profile by range, the code throws some errors. Here's the code that i use:

By srikanthj , 20 October, 2025

invocation counter issue

Forums
Gurux DLMS for ANSI C

Hello,

I have two variants of energy meters. I have taken the GuruxDLMSDataCollector example for dlms client integration in my MCU. One of the meter is working fine reading obis profiles without "update Invocation counter". But another meter needs Invocation counter this i verified with Gurux director so it needs "Invocation counter". So can you provide a piece of code for my micro controller for to read "Update Invocation counter".
It's urgent if possible can you provide me ASAP.

Regards,
Srikanth Jogi.

By Pablob , 17 October, 2025

Defining a Structure on server

Forums
Gurux DLMS for ANSI C

Hello.

Im triying to create a COSEM object class_id = 1 (DLMS_OBJECT_TYPE_DATA) of type structure. This structure will contain 4 different values. First 2 of them will be uint32 and last 2 will be int32.

The way i'm creating this object is the following:

gxData myMEASURES;
static dlmsVARIANT vUA, vIA, vPA, vQA;
uint32_t g_rmsUA, g_rmsIA;
int32_t g_rmsPA, g_rmsQA;
#define MAX_MEASURES 4
static dlmsVARIANT arrElements[MAX_MEASURES];
static variantArray arrBuf;

By Jay zhai , 14 October, 2025

DLMS Porting zephyr RTOS Sample Tutorial

Forums
Gurux DLMS for ANSI C

Hello, I'm very sorry to disturb you. I'm currently encountering a lot of problems when porting zephyr using your C source code. I would like to ask if your company has sample documents for porting zephyr projects that you can refer to me.Thank you very much

By srikanthj , 7 October, 2025

Facing issue while reading Loadprofile and billing profiles

Forums
Gurux DLMS for ANSI C

Hii,

I integrated dlms-client to one of micro controller using the reference of "GuruxDLMSDataCollector" and i am able to read Name plate and instantaneous profiles. But i tried to read billing and daily Load profiles but not able to reading . what i observed is the TX packet is not generating correct packet. But other two Profile generic data types Name plate and Instantaneous i got the correct data from meter.
So could you please help to overcome to read this daily load and billing profile.

Thanks & Regards
srikanth Jogi

By andale8592 , 24 September, 2025

GX_ENUM(x):possible wrong assignement

Forums
Gurux DLMS for ANSI C

Hi,
i notice that: #define GX_ENUM(X) GX_UNION(&X, cVal, DLMS_DATA_TYPE_ENUM), in https://github.com/Gurux/GuruxDLMS.c/blob/master/development/include/va…
I think that should be: #define GX_ENUM(X) GX_UNION(&X, bVal, DLMS_DATA_TYPE_ENUM), (like in https://github.com/Gurux/GuruxDLMS.c/blob/master/development/src/varian…).

By Pablob , 24 September, 2025

DLMS IGNORE MALLOC

Forums
Gurux DLMS for ANSI C

Hello,

I’ve successfully developed a DLMS host in C using the Gurux ANSI C library. It runs on a microcontroller with limited resources.

In the provided examples, the library uses dynamic memory (malloc()/free()). As you probably know, is not ideal on a microcontroller because memory fragmentation can happen.

To make the host more robust, I uncommented #DLMS_IGNORE_MALLOC in gxignore.h.
My problem is that I still need several functions declared in client.h, and those prototypes are only available when DLMS_IGNORE_MALLOC is not defined.

By Rajan , 11 September, 2025

DLMS conformance test using this C library

Forums
Gurux DLMS for ANSI C

Hi,

Is this C library DLMS certified?
I understand that the user implementation based on this library can have issues due to verity of reasons, but this query is specifically for the library part.

Pagination

  • Previous page
  • 2
  • Next page
Gurux DLMS for ANSI C
  • 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