EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000200easycwmp[All Projects] Questionpublic2017-02-09 09:032017-02-15 10:23
Reporterharshshah 
Assigned Tomohamed.kallel 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformARMOSLinuxOS Version
Summary0000200: easycwmpd exits after firmware upgrade is downloaded and applied
DescriptionIn file src/cwmp.c -> function cwmp_download_launch() there is a line :

if (status[0] == '1') exit(EXIT_SUCCESS);

Because of this when I apply the firmware upgrade, easycwmpd exits giving message :
[1] + Done /usr/sbin/easycwmpd -f -b

Because of this the communication with ACS stops

Is this normal ? Will easycwmpd exit after successful firmware upgrade ?
Steps To Reproduce1) Start easycwmpd using :
   /usr/sbin/easycwmpd -f -b &

2) Apply firmware upgrade from ACS

3) Firmware upgrade is applied successfully, but easycwmpd exits.
Additional InformationI have modified the easycwmp.sh script to adjust with mechanism used for firmware upgrade. Instead of :
/sbin/sysupgrade $DOWNLOAD_FILE

I have written custom command.

I have verified that firmware upgrade is successful with this custom command using :
easycwmp download <url> "1 Firmware Upgrade Image" "0" <user_name> <password>
easycwmp apply download "1 Firmware Upgrade Image"
Tagsdownload, firmware
Attached Files

- Relationships

-  Notes
(0000657)
harshshah (reporter)
2017-02-10 08:04

Okay, so I just figured out that device has to reboot itself after firmware upgrade, and after reboot when the Inform is sent it has to have '7 TRANSFER COMPLETE' and 'M Download'.

So now the question is that how to store the state of easycwmp between reboots ?
(0000664)
harshshah (reporter)
2017-02-15 04:01

Resolved. No change in easycwmp source code required.

Issue was that /etc/ was not writable for /etc/easycwmp/.backup.xml file

- Issue History
Date Modified Username Field Change
2017-02-09 09:03 harshshah New Issue
2017-02-09 09:04 harshshah Tag Attached: firmware
2017-02-09 09:04 harshshah Tag Attached: download
2017-02-10 08:04 harshshah Note Added: 0000657
2017-02-15 04:01 harshshah Note Added: 0000664
2017-02-15 10:23 mohamed.kallel Status new => resolved
2017-02-15 10:23 mohamed.kallel Resolution open => no change required
2017-02-15 10:23 mohamed.kallel Assigned To => mohamed.kallel


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker