S32Return=adl_adInstall(Cell_Handle);
switch(S32Return)
{
case OK:
_AT_RSP_TRUE_1("\r\n Installation OK...\r\n");
break;
case ADL_RET_ERR_BAD_STATE:
_AT_RSP_TRUE_1("\r\n Installation ADL_RET_ERR_BAD_STATE\r\n");
//if there is a not finalized cell
//or if a recompact/format process is already running
break;
case ADL_RET_ERR_UNKNOWN_HDL: //if the handle is unknown
_AT_RSP_TRUE_1("\r\n Installation ADL_RET_ERR_UNKNOWN_HDL\r\n");
break;
case ADL_RET_ERR_NOT_SUBSCRIBED: //if the service is not subscribed
_AT_RSP_TRUE_1("\r\n Installation ADL_RET_ERR_NOT_SUBSCRIBED\r\n");
break;
case ADL_AD_RET_ERR_NOT_AVAILABLE:
_AT_RSP_TRUE_1("\r\n Installation ADL_AD_RET_ERR_NOT_AVAILABLE\r\n");
break; //if A&D space is not available
}
_AT_RSP_TRUE_1("\r\n Installed NEW Application \r\n");
After this i receive installation OK but not the last line Installed New Application system restarts before that and the same old application flows.
Is Installation OK is enough to confirm that download is success or anything left out here to check download success.
You should check the file size to be sure that it is downloaded completely. I’ve got a numerous disconnections till the file is downloaded so it seems that you try to install partially downloaded file.
The return result of adInstall is not enough - it just means that it started installation sequence. You can check the flag on application startup which indicates if the new application is installed. Read more about adl_main arguments.
My ftp connection get connected and reading the file before Cell_Handle= adl_adSubscribe(1,ADL_AD_SIZE_UNDEF);
is done and trying to write adl_adwrite(Cell_Handle,len,buf) and the response is can’t write to cell so i missing writing to cell starting 5 to 6 transactions.
Now after adl_subscribe gives cell subscribe success then only i am connecting via FTP reading and writing to cell.
Now I got DOTA results 4 out of 4. And also startup init_type is giving ADL_INIT_DOWNLOAD_SUCCESS.
With Open cell I meant adSubscribe.
Well it is not necessary to start download procedure after the last step. This cell may stay prepared but not used…