Update MIDlet by itself on BGS5 | Telit Cinterion IoT Developer Community
August 10, 2016 - 12:35pm, 2801 views
is there a way I can update an installed and running midlet by itself using a newer version, that is on the flash filesystem?
Our installed and running Midlet takes care about transffering the newer version to the flash filesystem. Now we want that the MIDlet by itself installs the new version of it. We tried to use
but this results in
+CME ERROR: operation not allowed
because the MIDlet is running. To stop the MIDlet before installation is not possible, because then we can not install it afterwards because MIDlet is terminated already. The MIDlet runs in autostart but we have no physical access to the device and OTAP is not possible.
Howere this scenario works with OTAP and updating a running MIDlet.
So is there a way we can solve this scenario similar to OTAP but with a new midlet version that is already on the flash file system?
hmm... You're close to solution ;)
Just use OTAP command :) something like:
Notice that you have enter PIN to execute an OTAP commands.
thank you for this solution! This worked for me.
However in AT-Manual for BGS5 it sais for AT^SJOTAP
So I hope this functionality with using SJOTAP for local files wont be removed in the future.
This parameter is not supported and is only present for compatibility reasons. You can leave it empty or put anything there.
In the old modules (TC65i, AC65i, EGS5, ...) the applications were not installed in the hidden flash area like it is now, but just copied to the public flash and run from there. And with this parameter you were able to put the application to some dedicated folder instead of just top level a:/.
Now when the application is installed you can delete if form the public flash and it will still be installed and running.