Can't use OTAP | Thales IoT Developer Community
November 23, 2014 - 11:10am, 5304 views
Hi all,
When trying to update a midlet using OTAP I'm getting OK to the AT command, but the midlet is not updating.
Here is the AT command:
AT^SJOTAP=,http://212.199.160.162/EmbeddedApplication/2.17.901/3gApplication.jad,,,...,,,,
The response is OK
Here is all the midlets on the module:
AT^sjam=4 ^SJAM: "a:/3gApplication.jad","3gApplication MIDlet Suite","MIDlet Suite Vendor","1.0.0",1,263628,0
^SJAM: "a:/JRC-1.50.9.jad","Java Remote Control MIDlet Suite","Cinterion","1.50.9",1,669007,0
OK
Thanks in advance
Shaul
Also tried the following AT command which resulted OK as well:
AT^SJOTAP=,http://212.199.160.162/EmbeddedApplication/2.17.901/3gApplication.jad,,,...,,,,,"","" OK
After you run at^sjotap imidetly enter this command:
AT^SCFG="Trace/Syslog/OTAP","1"
This will return you some more informations about what happens.
Hello Shaul,
The command you are entering is only for configuration of OTAP parameters.
For immediate execution of OTAP you should use command AT^SJOTAP without any parameters.
But previously it would be good to configure some more parameters - at lead for the connection: APN with user and password. Please check the details in the AT commands specification.
Before you start OTAP please activate the OTAP tracer on some other interface as Jure suggests. After you enter this command the interface will be blocked for OTAP tracer until the module restarts.
This will help you to diagnose any problems.
During OTAP the jad file is downloaded first and the jar file address is taken from the jad file.
Best regards,
Bartłomiej
For others with the same problem, this is the answer I got from the support team that fixed the problem:
Check if server has right MIME settings (content-type):
* for JAD files it should be "Content-Type: text/vnd.sun.j2me.app-descriptor"
* for JAR files it should be "Content-Type: application/java-archive"
You can do this by editing HTTPD.conf file or adding/editing .htaccess file in case of Apache server.
Without this settings OTAP procedure will not work for sure.
Shaul
This link may be helpful in that:
Creating MIME Types for a Web site or directory
https://technet.microsoft.com/en-us/library/cc758256(WS.10).aspx