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. Image Transfer Not Working - DLMS C, IGNORE_MALLOC

Image Transfer not working - DLMS C, IGNORE_MALLOC

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 Vasanth , 21 September, 2020
Forums
Gurux.DLMS

Hello Mikko,

We are using Gurux DLMS C library with IGNORE_MALLOC in our Three phase meter. Currently we trying to do Image Transfer using Gurux Director. But meter replied with error ( Device reports read / write failed).

Issue area:

in invoke_ImageTransfer function, imageActivateInfo.size value is 0.
if ((ret = arr_getByIndex(&target->imageActivateInfo, target->imageActivateInfo.size, (void**)&item, sizeof(gxImageActivateInfo))) != 0)
{
return ret;
}

Trace Details:

09:29:46 Reading object 0.0.44.0.0.255, interface ImageTransfer
TX: 7E A0 19 03 61 7E 61 16 E6 E6 00 C0 01 C1 00 12 00 00 2C 00 00 FF 05 00 73 FC 7E
09:29:47
RX: 7E A0 12 61 03 16 2A DF E6 E7 00 C4 01 C1 00 03 01 B3 FA 7E
09:29:47 Reading object 0.0.44.0.0.255, interface ImageTransfer
TX: 7E A0 19 03 61 90 11 18 E6 E6 00 C0 01 C1 00 12 00 00 2C 00 00 FF 02 00 7B B1 7E
09:29:47
RX: 7E A0 15 61 03 38 77 40 E6 E7 00 C4 01 C1 00 06 00 00 00 32 EC 0A 7E
09:29:47 Updating image project...
TX: 7E A0 28 03 61 B2 48 4A E6 E6 00 C3 01 C1 00 12 00 00 2C 00 00 FF 01 01 02 02 09 06 73 64 66 73 64 66 06 00 02 91 9A E1 57 7E
09:29:47
RX: 7E A0 11 61 03 5A 8F 72 E6 E7 00 C7 01 C1 03 00 94 9E 7E

Could you please help us to resolve this issue.

Regards,
Vasanth
CMS Computers Ltd.

Profile picture for user Kurumi

Kurumi

5 years 8 months ago

Hi,

Hi,

Image transfer initialize failed for some reason. Make sure that there is enough flash available for the image. Check also your image_identifier. Is that what your meter expects.

BR,
Mikko

Vasanth

5 years 8 months ago

Hi Mikko,

Hi Mikko,

Thankyou for your reply.

We have enough free flash memory. 100+ KB free flash still available. We using 256KB Flash micro controller. Around 120KB only still utilized.

In invoke_ImageTransfer function , imageActivateInfo.size value is always 0.
Please check the attached image. Here it returns with error.

Can you please guide as to resolve this issue.

Regards,
Vasanth

Image
Profile picture for user Kurumi

Kurumi

5 years 8 months ago

Hi,

Hi,

I'm sorry for the slow reply. Our clients and the new version from Blue Book have kept us busy last weeks.

You need to allocate memory for image activate info. That is causing the problem.
We are releasing a new version from ANSI C in the end of next week where the server example is improved and there is an example of how to do it.

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