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. Not Enough Memory When Reading Data Which Does't Fit Into The Max PDU Size.

Not Enough Memory when reading data which does't fit into the max PDU size.

By dsoler , 26 September, 2023
Forums
Gurux.Net

Hi there!

I´m getting an Not enought memory exception when reading a profile generic using the DLMS c# example app.
As soon as I was able to analize, it is because the meter negotiated pdu size is 512 but the raw data into the reply frame is 577 lenght.

Where could I increase the reply buffer size?

I saw another threads where you indicate it should be increased on the communication.c file... but that file is not into the c# app example.

Please find the comm logs:

TX: 10:08:44 AM 0001001200010047E6450C3033373231343830303539366036A1090607608574050801018A0207808B0760857405080201AC0A80083132333435363738BE10040E01000000065F1F0400201E5DFFFF
RX: 10:08:49 AM 000100010012003AE7450C3033373231343830303539366129A109060760857405080101A203020100A305A103020100BE10040E0800065F1F0400001A1D02000007

TX: 10:08:51 AM 000100120001004FE6450C303337323134383030353936C001C100070100630100FF0201010204020412000809060000010000FF0F02120000090C07E70919FF000000FF800000090C07E7091AFF000000FF8000000100
RX: 10:08:53 AM 000100010012013BE7450C303337323134383030353936C402C10000000001008201F401610206090C07E70919FF000000FF800000050000000005000000000500000000050000000005000000000206090C07E70919FF000F00FF800000050000000005000000000500000000050000000005000000000206090C07E70919FF001E00FF800000050000000005000000000500000000050000000005000000000206090C07E70919FF002D00FF800000050000000005000000000500000000050000000005000000000206090C07E70919FF010000FF800000050000000005000000000500000000050000000005000000000206090C07E70919FF010F00FF800000050000000005000000000500000000050000000005000000000206090C07E70919FF011E00FF800000050000000005000000000500000000050000000005000000
Not enough memory expection.

Thanks in advance,
regards,

Profile picture for user Kurumi

Kurumi

2 years 8 months ago

Hi, The problem is that the…

Hi,

The problem is that the WRAPPER frame tells that the data size is 315 bytes and that is true, but the block size is 500 bytes and this is wrong. There are only 288 bytes.

You need to contact the meter vendor and ask if there is a firmware update available.
There is nothing you can do about this.

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin