Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
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

2 months 2 weeks 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

2 months 2 weeks 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

2 months 2 weeks 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

2 months 2 weeks 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.

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Fri, 06/02/2023 - 14:13
GXDLMSDirector 9.0.2306.0201
Fri, 06/02/2023 - 13:51
Gurux.DLMS.Net 9.0.2306.0201
Fri, 06/02/2023 - 10:33
Gurux.DLMS.AMI4 4.0.2306.0201
Thu, 06/01/2023 - 16:39
Gurux.DLMS.AMI4 4.0.2306.0101
Thu, 06/01/2023 - 15:25
gurux.dlms.cpp 20230601.1

Open bugs

gurux.dlms.c
4
gurux.dlms.cpp
3
gurux.dlms.delphi
1

New forum topics

  • Optical port
  • Unable to connect - Unhandled exception.
  • Reading objects in US Association
  • Error when trying to read meter with GXDLMSDirector.
  • Meter without user
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin