Request: OTAP information | Telit Cinterion IoT Developer Community
February 21, 2017 - 1:32pm, 2174 views
I've developed an app and I would like to use OTAP to update on future versions since the devices are on field and will be dificult to access.
The java module is executing its midlet 24/7.
Is there any simplified tutorial to do so? I've tried to read the manual but it wasn't clear on how to do things. For what i understood, i need to:
- Store both jar and jad in a server.
- AT^SJOTAP to settle the password
That is all. I didn't understand If i need to send an SMS using a cellphone to the number in the modem GSM, if i need to use another BGS5T to do the process...It is all very unclear to me.
This is widely described in the Java User's Guide. There's no separate tutorial for that.
Generally you need to put the jar and jad files on some http server and provide the correct MIME settings:
For jad files, the MIME type should be set to text/vnd.sun.j2me.app-descriptor. For jar files, the MIME type should be set to application/java-archive jar.
Then you should be able to download and install the application. For the first tests you can use only AT^SJOTAP command or you can even use AT^SJAM command to install the app from server. You should activate the OTAP tracer before each update to be able to trace the procedure with AT^SCFG=Trace/Syslog/OTAP,1 - the interface is then dedicated to the tracer until the module reboots.
If you are able to do OTAP with AT command you can try with SMS. You must remember that the parameters that were set with AT command cannot be overwritten by SMS parameters. SMS messages need to be sent in PDU format and have the special format. you can use some online converter to prepare the SMS. You can try these links:
Then you can use another module to send it. Some networks may not support the OTAP SMS and that is why there is <Ignore_Sms_PID> parameter in the AT^SJOTAP command.
Do I need to change the description on .jad file with the URL of my server or do I leave it as it is like "RS232.jar"?
The "MIDlet-Jar-URL" parameter in the jad file has to point to the jar. file on the server. As I remembet it does not need to be the absolute path. The jad. is downloaded first from the location specified by the OTAP parameters and then the path to the jar. file is taken from the jad. file.