Gemalto is now part of the Thales Group, find out more.

You are here

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