OTAP help | Telit Cinterion IoT Developer Community
October 26, 2015 - 11:34am, 10396 views
Hi all,
I am trying update my midlet from our webserver using EHS6 GPRS Terminal. We get an error message [OTAP] ERROR: Server not found. This method works on our old TC65 Terminal but not on this.Using hyper terminal I do the following:
AT^SJOTAP=,http://dev.gasdata.net/****/RS232Demo.jad,a:,,,gprs,general.t-mobile.uk,...
AT^SJOTAP
AT^SCFG="Trace/Syslog/OTAP","1"
Response back:
OTAP.OUT STARTED
[OTAP] ERROR: Server not found.
[OTAP] Transfer finished.
[OTAP] DONE with status: JAD Server Not Found
[OTAP] operation failed
[OTAP] Reboot now.
Any help would be appreciated. Thanks.
Are you sure the server is accassible throuht the used APN?
I have tried 'everywhere' apn still the same result. What I have noticed now is that I get the midlet connect to our webserver and then quit outof it back to the terminal I then try the AT^SJOTAP command to download the midlet I get the following message:
[OTAP] PS Detach
[OTAP] Starting installation
[OTAP] Try to get http://dev.gasdata.net/****/RS232Demo.jad ...
[OTAP] Transfer finished.
[OTAP] Update of existing midlet
[OTAP] JAR file download
[OTAP] Try to get http://dev.gasdata.net/****/RS232Demo.jar ...
[OTAP] Transfer finished.
[OTAP] Installation completed with result: 907 Invalid JAR
[OTAP] No NotifyURL set. Not posting result.
[OTAP] DONE with status: Invalid JAR Type
[OTAP] operation failed
[OTAP] Reboot now.status
what does the "907 Invalid jar" mean?
Thanks in advance.
Hello,
Please make sure that 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.
Please also write me the ATI1 reply.
Regards,
Bartłomiej
Hi,
We are using shared webhosting server I doubt we could modify the HTTPD.conf file but I will try adding a .htaccess file and let you know of the results.
The ATI1 results:
ati1
Cinterion
EHS6
REVISION 02.000
A-REVISION 00.000.03
Bartłomiej,
Thank you very much for your help. Adding a .htaccess file worked :)
Only one thing I dont understand is I thought by doing the AT^SJOTAP it should connect to the GPRS network by itself but it does not, Olny way I could achieve update is to let my Midlet connect to the web seperatly then do a AT^SJOTAP which works then otherwise I get my original problem 'Jad server not found'. I guess I still could achieve my update by doing seprate GPRS connection.
Hello,
Great, one problem solved.
I have found the information that this connection problem was already diagnosed and fixed. It should be released with next firmware releases.
The workaround is to preconfigure the apn connection in AT^SJNET command on each application start.
Your firmware is quite old. There are updates available for revision 2 or it is possible to upgrade to revision 3 but the current versions do not yet contain the fix described above.
Regards,
Bartłomiej
I am having the same issue. By issuing the AT^SJNET I can properly download the jad, jar files.
Can please send the firmware update with the fix? my ATI commands returns:
Cinterion
BGS5
REVISION 01.100
Hello,
Please check the ATI1 command for the detailed version. The latest official firmware version for BGS5 was issued in January 2015 (REVISION 01.100 A-REVISION 00.000.10).
Regards,
Bartłomiej
That is the version I have and I have the same issue. If I run the SJNET command before the OTAP then everything works fine. If the module is running with out having run the SJNET command then the OTAP fails to connect to the web to download the update.
ati1
Cinterion
BGS5
REVISION 01.100
A-REVISION 00.000.10
Hello,
There is already a newer firmware version so you can try. I'll send you.
Regards,
Bartłomiej
Pages