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
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 technoshell , 15 November, 2025

Initiate Conformance

Forums
DLMSDirector

3 Phase meter Frames are as under
08:16:20 Send SNRM request.
TX: 7E A0 07 03 41 93 5A 64 7E
08:16:20
RX: 7E A0 20 41 03 73 3E 9D 81 80 14 05 02 03 40 06 02 03 40 07 04 00 00 00 01 08 04 00 00 00 01 B7 29 7E
08:16:20 Send AARQ request.
TX: 7E A0 57 03 41 10 DF 07 E6 E6 00 60 49 A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 41 42 43 44 45 46 47 48 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 4E 43 43 4D 53 45 4C 4C BE 17 04 15 21 13 20 00 00 00 00 F7 52 BF B3 AB 60 AE E5 78 1E 55 59 EF F5 4D B6 7E
08:16:21

By enemy235 , 13 November, 2025

Logical name, can be nullified/corrupted

Project
gurux.dlms.java
Status
Closed (works as designed)

I’ve encountered an issue where the meter can send an incorrect response to the request for first attribute and after that local LN is changed.

Current Behavior:
When parsing the response for the first attribute, the Logical Name of a local object is being updated based on the meter’s response. This can cause problems if the response is incorrect. I’ve observed cases where the LN becomes null or changes to a different one entirely. (I've seen a meter to respond with two PDUs in one TCP message, or meter closed the TCP connection before responding.)
Once this happens, further communication with that object is impossible. The only way to recover is to refresh the association or manually correct the Logical Name.

Example:
In one instance, the meter responded to the current security setup 0.0.43.0.0.255 with the real instance of currently connected security setup: 0.0.43.0.5.255. That changed the local object from 0.0.43.0.0.255 to 0.0.43.0.5.255.

Suggested Solution:
The Logical Name should never be modified based on responses from the meter.
A possible solution would be to maintain an internal copy of the LN that remains immutable and is used for all requests, while a secondary copy could reflect any changes reported by the meter.

Currently it should be handled by this method. But the check can be skipped, if the value is not a byte[]. If it is a null, it will return a null. This check needs some work and also the setLogicalName in each object can be adjusted, to not to change the LN. But the LN needs to be changed when loading the object from xml or i think when reading the associacion list, it uses this method also.

public static String toLogicalName(final Object value) {
if (value instanceof byte[]) {
byte[] buff = (byte[]) value;
if (buff.length == 0) {
buff = new byte[6];
}
if (buff.length == 6) {
return (buff[0] & 0xFF) + "." + (buff[1] & 0xFF) + "." + (buff[2] & 0xFF) + "." + (buff[3] & 0xFF) + "."
+ (buff[4] & 0xFF) + "." + (buff[5] & 0xFF);
}
throw new IllegalArgumentException("Invalid Logical name.");
}
return (String) value;
}

Priority
Normal
Category
Bug report
By enemy235 , 13 November, 2025

Incorrect Subject in GXDLMSSecuritySetup

Project
gurux.dlms.java
Status
Closed (fixed)

In method: updateSertificates in GXDLMSSecuritySetup, there is incorrectly setup subject parsing.

Line 1455 is incorrectly:
info.setSubject(getStringFromAsn1(info.getIssuerRaw()));

But it should be:
info.setSubject(getStringFromAsn1(info.getSubjectRaw()));

Priority
Normal
Category
Bug report
By Administrator , 13 November, 2025

Gurux.DLMS.Python 1.0.192

The following important issues are resolved in this version:

Fixed: The updateValue method now sets the attribute’s data type as intended.

By Administrator , 13 November, 2025

Fixed: The updateValue method now sets the attribute’s data type as intended.

Project
Gurux.DLMS.Python
Status
Closed (fixed)
Priority
Normal
Category
Feature request
By Administrator , 13 November, 2025

gurux.dlms.java 4.0.84

The following important issues are resolved in this version:

fix: server side inactivity timeout for WRAPPER.

By Administrator , 13 November, 2025

fix: server side inactivity timeout for WRAPPER.

Project
gurux.dlms.java
Status
Closed (fixed)
Priority
Normal
Category
Bug report
By andre538 , 13 November, 2025

how to get attribute 2 type for GXDLMSData object in python

Forums
Gurux.DLMS

Hello Mikko,

I have Data class object where attribute 2 is of Structure type, for example.

<Structure>
<UInt8 Value="255" />
<UInt8 Value="255" />
</Structure>

I need to write new value for this attribute.

This sample gives me python type error (something like 'type not set'):

By dademeso , 7 November, 2025

Guidance on using the source codes

Forums
Gurux.DLMS.AMI

Please, I need guidance on what part of the source code to implement. We have an ESP32 and a DLMS meter with RS485 interface. We just need to communicate with it. Our ESP32 already speaks to an MQTT gateway

Pagination

  • First page
  • Previous page
  • …
  • Page 18
  • Page 19
  • Page 20
  • Page 21
  • Page 22
  • Page 23
  • Page 24
  • Page 25
  • Page 26
  • …
  • Next page
  • Last page
  • 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

  • Possible memory leak in file dlms.c, getCompactArrayItem(), getCompactArrayItem2()
  • Official Gurux.DLMS.Client.Example.Net fails during High GMAC secure association (Invalid PDU), while Gurux Director connects successfully
  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin