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

By Harshi_554 , 23 July, 2025

Testing Periodic Push from Meter to Client using Gurux DLMS C Server Example

Forums
Gurux DLMS for ANSI C

I am using GuruxDLMSServerExample as a example for meter. I want to test push object sending from meter to client periodically. How do I test it? Which C function is used for the creation of push object list and sending the push object? Is this push operation is supported in DLMS C library?

By andale8592 , 16 July, 2025

svr_postWrite: args->size Always Zero

Forums
Gurux DLMS for ANSI C

Hi,

I'm currently developing using the example provided here:
https://github.com/Gurux/GuruxDLMS.c/tree/master/GuruxDLMSSimpleServerE…

I've noticed that in the svr_postWrite function, the args->size parameter is always zero. As a result, the loop inside that function never executes.

By Harshi_554 , 3 July, 2025

DLMS Data gateway communication with meters

Forums
Gurux DLMS for ANSI C

Hiii

As per the dlms datagateway source , the gateway will communicate with the smart meter using serial port (HDLC) communication. Is it possible to communicate with the smart meters using TCP/IP (Wrapper) communication using ethernet?

Pagination

  • Previous page
  • 3
  • 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