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;
}
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.
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.
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
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
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