JAVA aplication autostart issue | Telit Cinterion IoT Developer Community
August 2, 2016 - 10:41am, 2931 views
I am having a critical issue, some modules that were working properly with the autostart enabled don't start the java application. obviously in the java code I dont disable this feature.
My question is, Is there any situation that the module can disable the autostart? for example too many restart situations.
Are there any way to activate the autostart remotely? maybe with a special sms.
Thanks in advance
For autostart of applications the global autostart must be enabled (AT^SCFG command) and some additional parameters (at least the first one) should be added to the jad file of each application that should be started automatically:
Oracle-MIDlet-Autostart: [0-5], autostart order. 0 means no autostart. For MIDlets with the same level the order is not defined. It is recommended to set 2-5 for customer applications to ensure that JRC MIDlet will be started first.
- Oracle-MIDlet-Restart: [true|false], if true the MIDlet is automatically restarted if it terminates non gracefully, e.g. by an uncaught exception.
- Oracle-MIDlet-Restart-Count: [number], number of allowed MIDlets restarts before the whole module is rebooted
I don't expect that you have disabled the global autostart. And the other parameters are configured in the jad file so if you have not updated the application the parameters should not be changed. Maybe the application has crashed.
You can update the application remotely with OTAP if you have used it before on the module.
Yes, the module updated to a new software version using AT^SJOTAP command using the java application.
As the java application is not running now, can i update the software using OTAP by SMS?
So maybe the autostart parameters were not added to the new jad file and the application did not start after the update. It should be possible to do an update by SMS now.
The new jad file has the same name, so the autostart should work.
I am doing some tests at the office with SMS OTAP process, it works but the module do the update with the last APN and the last HTTP URL known. It does not update the new parameters.
I am sending in PDU **** two messages:
The new jad file must contain Oracle-MIDlet-Autostart parameter. Otherwise the autostart won't work.
I can see that you are using the password and it is different in both messages (but this is probably not the real password so it is not the case here).
If you have previously configured some parameters with AT^SJOTAP command these parameters can not be overwritten by SMS.
While updating modules in the field you can also define NOTIFYURL parameter in SMS or MIDlet-Install-Notify in jad file to get notifications.