OTAP inside midlet | Thales IoT Developer Community
February 17, 2015 - 11:31am, 3067 views
Hi,
is it posible to have AT^SJOTAP inside midlet? I can sucessfuly use AT^SJOTAP when issuing AT commands trough terminal, but when I issue them trough java midlet I get JAR server not found.
As I see my parameters are same in both cases:
TERMINAL
[OTAP] Parameters for current procedure:
[OTAP] JAD File URL: http://www.iku.si/gsm-modul/wp-content/uploads/gemalto/TestniProjekt.jar
[OTAP] Http User:
[OTAP] Http Pwd:
[OTAP] Bearer: GPRS
[OTAP] Apn Or Num: iku.simobil.si
[OTAP] Net User: simobil
[OTAP] Net Pwd: internet
[OTAP] Dns: 0.0.0.0
[OTAP] Notify URL:
[OTAP] no sms PID check: off
[OTAP] hide HTTTP authentication params: off
MIDLET:
[OTAP] Parameters for current procedure:
[OTAP] JAD File URL: http://www.iku.si/gsm-modul/wp-content/uploads/gemalto/TestniProjekt.jar
[OTAP] Http User:
[OTAP] Http Pwd:
[OTAP] Bearer: GPRS
[OTAP] Apn Or Num: iku.simobil.si
[OTAP] Net User: simobil
[OTAP] Net Pwd: internet
[OTAP] Dns: 0.0.0.0
[OTAP] Notify URL:
[OTAP] no sms PID check: off
[OTAP] hide HTTTP authentication params: off
and response...
[OTAP] Starting OTAP download operation
[OTAP] Stopping all midlets
[OTAP] midlets stopped
[OTAP] PS Detach
[OTAP] Starting installation
[OTAP] JAR file download
[OTAP] Try to get http://www.iku.si/gsm-modul/wp-content/uploads/gemalto/TestniProjekt.jar ...
[OTAP] ERROR: Server not found.
[OTAP] Transfer finished.
[OTAP] Installation completed with result: 907 Invalid JAR
[OTAP] No NotifyURL set. Not posting result.
[OTAP] DONE with status: JAR Server Not Found
[OTAP] operation failed
[OTAP] Reboot now.
I also noticed error when running debuger, but this probably normal since that command closes all runing midlet:
aV: ctx c5 in unexpected state on termination
at aU.a(), bci=23
at ef.a(), bci=620
at com.cinterion.jrc.JRC_Context.a(), bci=86
at dS.a(), bci=130
at nZ.a(), bci=7
at com.cinterion.jrc.JRC_Context.a(), bci=74
at bh.run(), bci=42
Uncaught exception: aV: ctx c5 in unexpected state on termination
at aU.a(), bci=23
at ef.a(), bci=620
at com.cinterion.jrc.JRC_Context.a(), bci=86
at dS.a(), bci=130
at nZ.a(), bci=7
at com.cinterion.jrc.JRC_Context.a(), bci=74
at bh.run(), bci=42
MIDlet:com.cinterion.jrc.JRC_Midlet terminated
MIDlet:testniprojekt.IMletTest terminated
Best regards
Jure
Hello Jure,
You are probably right about the debugger.
SJOTAP command issued from MIDlet and terminal should work the same.
Are you sure that the configuration you pasted for terminal is the same as you have used?
I can see the problem in JAD File URL which should point to jad file while in both your configuration it points to jar file.
The jad file should contain the link to jar file.
Best regards,
Bartłomiej
Bouth configurations where the same. But I only uploaded jar file to the server and it worked with AT commands. I will try to also upload JAD file.
Thank you.
Best regards
Jure
It was stupid mistake, I had missing : in midlet Appl_Dir. Now it works even without using jad file.
Best regards
Jure
Hi,
Good news that it's working!
Regards,
Bartłomiej