Skip to main content
Home
for DLMS smart meters

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

By latonita, 8 September, 2025

Notification from meter. xDLMS APDU

Forums
Gurux DLMS for ANSI C

Hi, i'm using Gurux DLMS C.
I'm receiving APDU from the meter in binary format like below. I believe its simple APDU.
Please help me understand how to parse it with gurux C library.
Thank you.

# this is sent every middle of a minute
########################################
0F # data notification
00 00 00 03 # invoke id
00 # and priority

02 02 # structure [2]
16 # enum
01 # value
01 # array
16 # 22 elements ?

By rakeshpatil1983, 5 September, 2025

Need help implementing DLMS-HDLC translator for optical/RS232 meter and bare DLMS HES packets

Forums
Gurux DLMS for ANSI C

Hello Gurux Community,

I have a meter that uses HDLC over DLMS/COSEM via optical or RS232 interface, working well with Gurux tools.

My backend HES sends and receives bare DLMS packets without HDLC framing or addressing. For example, a raw DLMS packet from HES looks like this:

By george@n, 5 September, 2025

Code to change the key in C

Forums
Gurux DLMS for ANSI C

How to prepare data to change the key after encryption. Found the C++ example in GlobalKeyTransfer(). Not sure how to convert it to C.
The expected DLMS translator output:

<MethodInvocationParameters>
<Array Qty="01" >
<Structure Qty="02" >
<Enum Value="02" />
<OctetString Value="24 bytes key" />
</Structure>
</Array>
</MethodInvocationParameters>

Thank you.

By george@n, 31 August, 2025

How to prepare Profile General for writing?

Forums
Gurux DLMS for ANSI C

Using the API's provided, how to prepare the Profile General to look like in your example below? What need to be done before calling cl_write() to prepare array and structures.

https://www.gurux.fi/sites/default/files/issues/Profile%20Generic%20att…

By Harshi_554, 22 August, 2025

manually activating Push message send

Forums
Gurux DLMS for ANSI C

Hi,

I am testing push message send using dlms C server example. I have configured the destination address and push object list. On the receiving side , python push listener client is used. How to manually activate the push message send from server side? Which function to be called to activate the push message send between the devices?

By Harshi_554, 8 August, 2025

Compiling GuruxDLMSDataCollector with wirepas

Forums
Gurux DLMS for ANSI C

How to compile GuruxDLMSDataCollector with wirepas ? Im getting compilation error when I tried make command inside wirepas folder.

By Pablob, 31 July, 2025

ReadWriteDenied on STRING Object

Forums
Gurux DLMS for ANSI C

Hello,

I have a DLMS server running on a 32-bit MCU and a DLMS host also running on a 32-bit MCU, communicating via PLC. Both work correctly: I have created several objects on the server and can successfully connect, get the association view, perform read/write operations, and close the connection properly.

Pagination

  • Previous page
  • 2
  • Next page
Gurux DLMS for ANSI C
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201
  • Mon, 12/01/2025 - 13:55
    Gurux.DLMS.Python 1.0.193
  • Thu, 11/13/2025 - 15:23
    Gurux.DLMS.Python 1.0.192
  • Thu, 11/13/2025 - 14:55
    gurux.dlms.java 4.0.84
  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901

New forum topics

  • Incomplete Firmware Upgrade Process
  • SNRM byte mening
  • P384 Client Certificate incorrect issuer CN
  • Confirmed push service support
  • DLMS Stack hang during Firmware Upgrade
More

Who's new

  • tlavuvu
  • radu
  • amelara
  • stasxol
  • Shaheer Tariq
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin