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

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
Gurux DLMS/COSEM Protocol Component.

Image
By Dmitry , 8 November, 2024

Crash in oa_push() function

Forums
Gurux.DLMS

Hi, Mikko!

I found crash in oa_push() here:
#ifdef gxrealloc
//If compiler supports realloc.
arr->data = (gxObject**)gxrealloc(arr->data, arr->capacity * sizeof(gxObject*));
#else
.....

In my case gxrealloc() returns NULL and at the end of function:
arr->data[arr->size] = item;
crashes program.

I think if gxrealloc() returns NULL need return DLMS_ERROR_CODE_OUTOFMEMORY;

BR,
Dmitry

By Dmitry , 7 November, 2024

Wrong result on second call bb_compare()

Forums
Gurux.DLMS

Hi, Mikko!

I try compare two buffers twice.

unsigned char vnd[] = "VND";
gxData vndr; // here byteArr "VND"

unsigned char c = bb_compare(vndr.value.byteArr, vnd, 3); //OK, c==1
c = bb_compare(vndr.value.byteArr, vnd, 3); //Fail, c == 0

This is because if the buffers are equal, position of vndr.byteArr changes to length of comparing.

How to compare buffers multiple times?

Thanks!

By gserafio , 6 November, 2024

Communication using dlms and rtt

Forums
Gurux.DLMS

Hello Guys, sorry if i say a bullshit here, but im new to this area and im trying to communicate a MCU device STM32WLE5CC with a firmware that already recorded in board, this firmware uses DLMS and RTT for Real Time Transfer.
Im already receiving a message that RTT channels are up but i cant connect with the board.

Thinks that i already tried:

1 Communication using pylink-square, using methods of the library like, rtt_write, rtt_read, im sending a hex data because the documentation says that i have to send data in hex.

By liemoon , 1 November, 2024

Old data doesn't disappear on Second Request in DLMSDirector with .NET Gurux DLMServer

Forums
Gurux.DLMS

Hello,
I’m building a DLMServer in .NET and testing it with DLMSDirector. On the first read of a profile generic, two data entries appear as expected. However, on the second request, the old data doesn’t clear, resulting in four entries showing up in DLMSDirector. In the preread section of DLMServer, I’ve tried clearing the buffer before adding new data, but the issue persists. How can I ensure the old data is cleared properly before each new read request?

By sarayumarapana , 29 October, 2024

Profile Generic Capture Objects

Forums
Gurux.DLMS

Hi..

When i capture the objects from profile generic the values are coming like this "(<gurux_dlms.objects.GXDLMSClock.GXDLMSClock object at 0x000001B88C565670>, <gurux_dlms.objects.GXDLMSCaptureObject.GXDLMSCaptureObject object at 0x000001B88C585A30>), (<gurux_dlms.objects.GXDLMSRegister.GXDLMSRegister object at 0x000001B88C585A00>, etc" .Is this Obis code ? How to find which OBIS codes are them.

By Dmitry , 28 October, 2024

Compile errors in client.c

Forums
Gurux.DLMS

Hi, Mikko!

I commented out #define DLMS_IGNORE_MALLOC in gxignore.h and get errors in client.c file.

src/client.c:571: error: request for member ‘data’ in something not a structure or union
/src/gxserializer.c: In function ‘ser_set2’:
/src/client.c: In function ‘cl_parseApplicationAssociationResponse’:
/src/client.c:571:67: error: request for member ‘data’ in something not a structure or union
571 | (ret = bb_set(secret, settings->cipher.systemTitle.data, settings->cipher.systemTitle.size)) != 0 ||
|

By 酉詳 , 25 October, 2024

Using M2354 to impliment DLMS

Forums
Gurux.DLMS

Hi,I'm using the project "GuruxDLMS.c/Keil/NUCLEO-L433xx/GuruxDLMSSimpleServerExample2/MDK-ARM/GuruxDLMSSimpleServerExample2.uvprojx".
I've aready copied files from development src and include folder to dlms folder,but when I click build it shows error message
"Error: *** Project 'GuruxDLMSSimpleServerExample2', Target 'GuruxDLMSSimpleServerExample2', Device 'STMicroelectronics::STM32L433RCTxP' is not supported by Toolchain ! ***."
I'm wondering which part I need to change?

By cocoa , 25 October, 2024

PUSH (Listener and Responder)

Forums
Gurux.DLMS

Hello everyone, I'm new to this community and even more about the DLMS/Cosem protocol. I hope you will forgive my mistakes as a first-time student.

My interest is in managing PUSH messages and I would need your help to create a python script that listens to the arrival of a PUSH message sent from a remote device on an IP port.

Once I receive the message I would like to send an ACK to the device that transmitted and parse the message.

Could someone help me with this or direct me to simple examples in python to get familiar with PUSH messages?

By Arwa , 23 October, 2024

GURUX.python output file

Forums
Gurux.DLMS

Hello,

I have a problem regarding the output file in python, I added an output file (that was generated automatically the first time).

Now whenever I try to use it again, it still calls the getAssociationView() instead of reading from the output.xml that was created, and when I tried to print the error in the try block in the main.py file, this is what it showed

invalid literal for int() with base 10: 'A'

By gpatane , 23 October, 2024

Register values returned by the Cewe Prometer

Forums
Gurux.DLMS

Good morning,
I have a problem with the readings returned by the Cewe Prometer because I get values in scientific notation that are too large and above all not consecutive, some are positive and some are negative.
This morning I read the register 1.1.1.8.0.255 obtaining these values:
2.44254079929944E+86 at 07:02
3.72556784430944E+29 at 08:11
Does anyone know the reason and how to solve it?
Regards
Giacomo

Pagination

  • Previous page
  • 17
  • Next page
Gurux.DLMS
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • Rolling Slots
  • Vegazone-Australia
  • Mathewgon
  • MichaelCab
  • Travisrew
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin