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. Unable To Read Load Profile: Insufficient Memory To Continue

Unable to read load profile: Insufficient memory to continue

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 rdk1 , 17 March, 2023
Forums
Gurux.DLMS

Hello,

Reading the load profile fails with 'Insufficient memory to continue the execution of the program' error.

Request:

7E A0 2D 02 23 03 FE 18 8A E6 E6 00 C0 01 C1 00 07 01 00 63 01 00 FF 02 01 02 02 04 06 00 00 00 0A 06 00 00 00 0E 12 00 01 12 00 00 BB 42 7E

Response:
7E A8 14 03 02 23 1E 94 AF E6 E7 00 C4 02 C1 00 00 00 00 53 8D 7E

<HDLC len="13" >
<TargetAddress Value="1" />
<SourceAddress Value="91" />
<FrameType Value="1E" />
<NextFrame Value="C402C100000000" />
</HDLC>

Meter: Meter&Control ST310

Stack:

at Gurux.DLMS.GXByteBuffer.GetUInt32(Int32 index) in C:\Users\roman\source\repos\AmDlmsReader3\Gurux.DLMS\GXByteBuffer.cs:line 619
at Gurux.DLMS.GXByteBuffer.GetUInt32() in C:\Users\roman\source\repos\AmDlmsReader3\Gurux.DLMS\GXByteBuffer.cs:line 410
at Gurux.DLMS.GXDLMS.HandleGetResponseNextDataBlock(GXDLMSSettings settings, GXReplyData reply, Int32 index, GXByteBuffer data) in C:\Users\roman\source\repos\AmDlmsReader3\Gurux.DLMS\GXDLMS.cs:line 4328
at Gurux.DLMS.GXDLMS.HandleGetResponse(GXDLMSSettings settings, GXReplyData reply, Int32 index) in C:\Users\roman\source\repos\AmDlmsReader3\Gurux.DLMS\GXDLMS.cs:line 4290
at Gurux.DLMS.GXDLMS.GetPdu(GXDLMSSettings settings, GXReplyData data) in C:\Users\roman\source\repos\AmDlmsReader3\Gurux.DLMS\GXDLMS.cs:line 4907
at Gurux.DLMS.GXDLMS.GetData(GXDLMSSettings settings, GXByteBuffer reply, GXReplyData data, GXReplyData notify) in C:\Users\roman\source\repos\AmDlmsReader3\Gurux.DLMS\GXDLMS.cs:line 5598

// index = 4
// Size = 7
public UInt32 GetUInt32(int index){

if (index + 4 > Size) {
throw new System.OutOfMemoryException();
}

return (UInt32)((Data[index] & 0xFF) << 24 | (Data[index + 1] & 0xFF) << 16 |
(Data[index + 2] & 0xFF) << 8 | (Data[index + 3] & 0xFF));
}

Can you give a clue to this problem?

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

Hi, Your meter is returning…

Hi,

Your meter is returning an invalid PDU and frame. I believe that the meter doesn't support profile generic reading by entry. Try to read by range using start and end time.

BR,
Mikko

rdk1

3 years 2 months ago

Hello, I also noticed that…

Hello,

I was able to read load profile by entry from another meter of the same model.

Another meter (same model) replies with data block, but this one expects another frame.

It seems to be somehow related to MaxInfoTX/MaxInfoRX. Another meter has both values higher than 40, this one does not allow to change them and always uses 10 and 44.

Is there a reason why MaxInfoTX and MaxInfoRX min value is limited to 32 in the library? Can it be/ will it work with a smaller value?

Profile picture for user Kurumi

Kurumi

3 years 2 months ago

In reply to Hello, I also noticed that… by rdk1

Hi, DLMS standard defines…

Hi,

DLMS standard defines that minimum size for MaxInfoTX and MaxInfoRX is 32 bytes.

BR,
Mikko

rdk1

3 years 2 months ago

Thanks for the help. There…

Thanks for the help. There was some glitch as meter was constantly using "10" instead of the actual value defined in HDLC framing settings. After rewriting it the issue was resolved.

  • 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