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. 32 Bit Indices Still Not Working

32 bit indices still not working

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.

By Jeroen88 , 22 June, 2021
Forums
General discussion

Hi Mikko,

I still can not read the association object of my Iskra meter with DLMS.c because it is > 64k. You introduced #if defined(GX_DLMS_BYTE_BUFFER_SIZE_32) at several locations, but there are still 16 bit indices left, causing the problem to read the association object.

Examples are:
https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

https://github.com/Gurux/GuruxDLMS.c/blob/1561c2e3cf5799d0952facf2ecdc8…

At least these are loctaions that I found, but there are possibly more places. Would you be so kind of reviewing the 16 to 32 bit indices? Thank you very much!

Best regards, Jeroen

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi Jeroen,

Hi Jeroen,

Can you read the meter with GXDLMSDirector and send the log file to me by email? We can check and verify this if we have the association view.

BR,
Mikko

Jeroen88

4 years 11 months ago

Hi Mikko,

Hi Mikko,

That is not possible, this meter uses IEC start protocol at 115200 baud, i.e. not supported by DLMS director. I read the meter with Iskra software and the association view is about 90 kB.

Best, Jeroen

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi,

Hi,

You can use 115200 with GXDLMSDirector. Select Interface to HDLCWithModeE and then select serial port. Then press the Advanced button and update the baud rate.

BR,
Mikko

Jeroen88

4 years 11 months ago

Hi Mikko, I am trying to read

Hi Mikko, I am trying to read the meter using DLMS director, but I can not get passed the SNRM request. This is the logging:

14:31:18 02:31:18.751 Info Opening
14:31:18 02:31:18.751 Info Serial Port Settings: Port Name: COM5 Baud Rate: 9600 Data Bits: 7 Parity: Even Stop Bits: One Flow Control: None Eop: None
14:31:18 02:31:18.767 Info Open
14:31:19 02:31:19.782 Sent 2F 3F 21 0D 0A
14:31:19 02:31:19.829 Received 2F 49 53 6B 39 5C 32 4D 54 38 38
14:31:19 02:31:19.845 Received 38 30 2D 31 30 30 36 0D
14:31:19 02:31:19.845 Sent 06 32 39 32 0D 0A
14:31:19 02:31:19.892 Received 73
14:31:21 02:31:21.860 Info Closing
14:31:21 02:31:21.985 Info Closed
14:31:21 02:31:21.985 Info Opening
14:31:21 02:31:21.985 Info Serial Port Settings: Port Name: COM5 Baud Rate: 115200 Data Bits: 8 Parity: None Stop Bits: One Flow Control: None Eop: None
14:31:21 02:31:21.985 Info Open
14:31:23 Send SNRM request.
TX: 7E A0 08 01 02 23 93 27 2B 7E
14:31:23 02:31:23.000 Sent 7E A0 08 01 02 23 93 27 2B 7E
14:31:28 Data send failed. Try to resend 1/3
14:31:28 02:31:28.015 Sent 7E A0 08 01 02 23 93 27 2B 7E
14:31:33 Data send failed. Try to resend 2/3
14:31:33 02:31:33.029 Sent 7E A0 08 01 02 23 93 27 2B 7E
14:31:38 Failed to receive reply from the device in given time.
14:31:38 Send Disconnect request.
TX: 7E A0 08 01 02 23 53 2B ED 7E
14:31:38 02:31:38.043 Sent 7E A0 08 01 02 23 53 2B ED 7E
14:31:43 Data send failed. Try to resend 1/3
14:31:43 02:31:43.058 Sent 7E A0 08 01 02 23 53 2B ED 7E
14:31:48 Data send failed. Try to resend 2/3
14:31:48 02:31:48.073 Sent 7E A0 08 01 02 23 53 2B ED 7E
14:31:53 Failed to receive reply from the device in given time.
14:31:53 02:31:53.087 Sent 01 42 30 03 0D 0A
14:31:58 02:31:58.101 Info Closing
14:31:58 02:31:58.211 Info Closed

Any ideas why it is not working? I have two suggestions: is it possible that the baud rate change over is not correct? I recall that from my earlier experiments it should be 19200 and Gurux switches to 115200. The other suggestion is that something is wrong in the properties I set in DLMS director, because the SNRM does not match a SNRM that is working (i.e. 7E A0 08 02 23 03 93 3E 74 7E)

Your help is very much appreciated!

Best, Jeroen

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi Jeroen,

Hi Jeroen,

Try to change the client address to 1. Now it's zero.
Set maximum baud rate to 19200. GXDLMSDirector is using the highest baud-rate that meter can use.

BR,
Mikko

Jeroen88

4 years 11 months ago

Hi Mikko,

Hi Mikko,
The client addres is 0x91 and the server address was 0x00 indeed. I set the server address to 0x01, both the logical and the physical (so the server not the client as you suggested). This also does not lead to a connection:

10:33:38 10:33:38.196 Info Opening
10:33:38 10:33:38.321 Info Serial Port Settings: Port Name: COM5 Baud Rate: 9600 Data Bits: 7 Parity: Even Stop Bits: One Flow Control: None Eop: None
10:33:38 10:33:38.352 Info Open
10:33:39 10:33:39.367 Sent 2F 3F 21 0D 0A
10:33:39 10:33:39.461 Received 2F 49 53 6B 39 5C 32 4D 54 38 38 30 2D 31 30 30 36 0D 0A
10:33:39 10:33:39.492 Sent 06 32 39 32 0D 0A
10:33:41 10:33:41.507 Info Closing
10:33:41 10:33:41.617 Info Closed
10:33:41 10:33:41.617 Info Opening
10:33:41 10:33:41.617 Info Serial Port Settings: Port Name: COM5 Baud Rate: 115200 Data Bits: 8 Parity: None Stop Bits: One Flow Control: None Eop: None
10:33:41 10:33:41.617 Info Open
10:33:42 Send SNRM request.
TX: 7E A0 09 02 03 02 23 93 29 65 7E
10:33:42 10:33:42.632 Sent 7E A0 09 02 03 02 23 93 29 65 7E
10:33:47 Data send failed. Try to resend 1/3
10:33:47 10:33:47.647 Sent 7E A0 09 02 03 02 23 93 29 65 7E
10:33:52 Data send failed. Try to resend 2/3
10:33:52 10:33:52.661 Sent 7E A0 09 02 03 02 23 93 29 65 7E
10:33:57 Failed to receive reply from the device in given time.
10:33:57 Send Disconnect request.
TX: 7E A0 09 02 03 02 23 53 25 A3 7E
10:33:57 10:33:57.676 Sent 7E A0 09 02 03 02 23 53 25 A3 7E
10:34:02 Data send failed. Try to resend 1/3
10:34:02 10:34:02.690 Sent 7E A0 09 02 03 02 23 53 25 A3 7E
10:34:07 Data send failed. Try to resend 2/3
10:34:07 10:34:07.705 Sent 7E A0 09 02 03 02 23 53 25 A3 7E
10:34:12 Failed to receive reply from the device in given time.
10:34:12 10:34:12.719 Sent 01 42 30 03 0D 0A
10:34:17 10:34:17.729 Info Closing
10:34:17 10:34:17.853 Info Closed

Any suggestions?

Best, Jeroen

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi Jeroen,

Hi Jeroen,

Try to set the client address to 64, logical address to 1, and physical address to 11.

BR,
Mikko

Jeroen88

4 years 11 months ago

The same result, I tried both

The same result, I tried both all decimal (64, 1 and 11) and all hexadecimal (0x64, 0x01 and 0x11), but no luck...

Profile picture for user Kurumi

Kurumi

4 years 11 months ago

Hi,

Hi,

Try to set logical address to 1 and physical address to 0x4A (74). Your client or server address is different than what the meter expects. Those values might be differents in different countries. After values are correct you can read the meter.

BR,
Mikko

  • 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