MIDlet hangs | Telit Cinterion IoT Developer Community
September 21, 2018 - 12:13pm, 1958 views
Hello,
I had made OTAP update on some Java MIDlet. And now the MIDlet hangs on start when it's issueing AT commands. Module restarts after few minutes by HW watchodg. But same thing happens on next start of MIDlet.
SYSTEM.OUT STARTED
Thu Jan 01 00:00:51 GMT+00:00 2004 DEBUG: debug start
AT response AT+cmgf = 1
OK
AT response AT+CNMI=2,1
OK
AT response AT+CMEE=2
OK
Affter that it hangs...
Next command to issue would be ATCommand.send("AT+CMGD=1,4");
It helped once that I unpluged module power supply and after few secconds I pluged it back.But it doesn't help most of the *****. What could be the reason that module hangs like this?
Autostart of MIDlets is set to 45 secconds.
AT^SCFG output:
at^scfg?
^SCFG: "Call/ECC","0"
^SCFG: "Gpio/mode/ASC1","std"
^SCFG: "Gpio/mode/DAI","gpio"
^SCFG: "Gpio/mode/DCD0","std"
^SCFG: "Gpio/mode/DSR0","std"
^SCFG: "Gpio/mode/DTR0","std"
^SCFG: "Gpio/mode/FSR","gpio"
^SCFG: "Gpio/mode/PULSE","gpio"
^SCFG: "Gpio/mode/PWM","gpio"
^SCFG: "Gpio/mode/RING0","std"
^SCFG: "Gpio/mode/SPI","rsv"
^SCFG: "Gpio/mode/SYNC","std"
^SCFG: "GPRS/AutoAttach","enabled"
^SCFG: "Ident/Manufacturer","Cinterion"
^SCFG: "Ident/Product","BGS5"
^SCFG: "MEopMode/SoR","on"
^SCFG: "MEShutdown/Fso","0"
^SCFG: "Radio/OutputPowerReduction","4"
^SCFG: "Serial/Interface/Allocation","1","1"
^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0059","Cinterion Wireless Modules","Cinterion BGx USB Com Port",""
^SCFG: "Tcp/IRT","3"
^SCFG: "Tcp/MR","10"
^SCFG: "Tcp/OT","6000"
^SCFG: "Tcp/WithURCs","on"
^SCFG: "Trace/Syslog/Otap","0"
^SCFG: "Userware/Autostart","1"
^SCFG: "Userware/Autostart/Delay","450"
^SCFG: "Userware/Passwd",
^SCFG: "Userware/Stdout","asc1",,,,"off"
^SCFG: "Userware/Watchdog","1"
^SCFG: "Radio/Band","15"
OK
This is really troublesome, because we have in total more then 500 BGS5T modules outside. And we regulary make OTAP updates, so it's really important that we find the reason why MIDlet hangs.
Hello,
I don't think that this could have something to do with OTAP. You should check what changes were made to the application. Was the firmware updated too? What's the version (ATI1 command reply)?
45 seconds is quite a big delay - there should not be any problems here. And how about the autostart parameters, especially Oracle-MIDlet-Autostart in the jad file? Oracle-MIDlet-Autostart should be greater than 1 to let JRC be started as first.
Have you tried it manually?
Best regards,
Bartłomiej
Hello,
MIDlet also sometimes hangs if it's not run after OPA update.
Oracle-MIDlet-Autostart = 2.
Best regards,
Jure
So this is also correct. I think that you should analyze the changes in the application. Is there any other thread running besides the one sending AT commnads? Was +PBREADY URC received before you try to delete short messages? Does it always happen after OTAP and later only sometimes? Or maybe it happens always after the first installation regardless if it was dome by OTAP or not?
Regards,
Bartłomiej