OTAP fails with PLS62-W terminal | Telit Cinterion IoT Developer Community
May 22, 2023 - 11:27am, 47 views
Hi,guys,
I've been stuck with this OTAP problems for days now...
I got a bunch of PLS62-W brand new units. I did some local install tests and everything was OK. Then, I set out to enable OTAP (SMS) using my long tested procedures and infrastructure, but it fails everytime.
I've double checked everything, used two different SIM's, compared with an ELS61 (which works!).
Using OTAP trace I noticed that at "PS detach success" message in the log, the orange led starts blinking quickly, which is supposed to indicate the unit is detached from the network. The blinking continues for 10+ seconds, while the procedure is supposed to download the JAD and JAR files, but of course it fails with "JAD Server Not Found". This is the OTAP trace log:
AT^SCFG="Trace/Syslog/OTAP","1"
OTAP.OUT STARTED
[OTAP] ====================================================================
[OTAP] Parameters set for AT procedure:
[OTAP] JAD File URL: https://****.jad
[OTAP] Hide HTTP Authentication Params: off
[OTAP] Bearer: GPRS0
[OTAP] Apn : ****
[OTAP] SMS Pwd: ******
[OTAP] Ignore SMS PID Check: on
[OTAP] ====================================================================
[OTAP] Parameters set for current procedure:
[OTAP] JAD File URL: https://****.jad
[OTAP] Hide HTTP Authentication Params: off
[OTAP] Bearer: GPRS0
[OTAP] Apn : ****
[OTAP] SMS Pwd: ******
[OTAP] Ignore SMS PID Check: on
[OTAP] ====================================================================
[OTAP] Starting OTAP download operation
[OTAP] Stopping all midlets
[OTAP] Midlets stopped
[OTAP] PS detach success
[OTAP] Starting installation
[OTAP] Try to get https://****.jad ...
[OTAP] Starting installation
[OTAP] ERROR: Server not found.
[OTAP] Transfer finished.
[OTAP] DONE with status: JAD Server Not Found
[OTAP] Operation failed
[OTAP] Reboot now
This is so strange. Why would the modem detach from network before going into download mode?
Might it be a firmware issue? This is from ATI:
ati1
Cinterion
PLS62-W
REVISION 02.010
A-REVISION 01.000.05
Any hint is very welcome!
Jure
Hello,
Have you tried to diagnose this with AT commands on another interface to check the module registration state with AT+CREG?, AT+CEREG?, AT+CGREG?, AT^SMONI, AT+CEER, etc.?
Please also check AT+CGDCONT? output and register URCs with AT+CREG=2, AT+CEREG=?, AT+CGREG=2.
Are the antennas connected correctly, does the data connection work before the OTAP is started?
BR,
Bartłomiej
Hello,
If I install the application locally, network connection is established and everthing works...
I've had SOME development on the case... I was testing OTAP with manual trigger via AT^SJOTAP command through a terminal without success. Than I checked CGDCONT output, there where 3 profiles defined, I cleared profiles 2 and 3. Now, OTAP still fails, but the trace output is even more confusing:
Like, at first it fails, goes quickly to reboot, but at the same time, it retries the download with success, but the reboot get in the way before completing... This log was output in 10s, no delays inbetween...
Confused,
Jure
Hello,
I've never seen such a sequence. But I looked into AT spec and there is 1 parameter that may be important here as they are specific for PLS62 module. <Context_ID> specifies the contest ID to be used for the operation and the default is 1.
How about the debug commands during the OTAP procedure?
Please also add this before - AT+CGEREP=2 - maybe you will see some URCs related to Packet Domain.
BR,
Bartłomiej
Hello,
I've tried with AT+CGEREP=2 in a separate terminal, and I get
at the time OTAP trace says PS detach success... I also tested different contextid and context reuse combo's:
They all fail just the same.
I've just put an ELS61T side by side with the PLS62T-W. Tried the whole deploy process with ELS61T, worked first time. Then swapped the SIM card in the PLS62T, failed.
Both terminals have the same SJOTAP config (context reuse and contextid are omitted in PLS62T).
Where do I go from here? Can it be a bad batch of terminals? I'v tried 4 of the same batch so far.
Regards,
Jure
Hello,
I tested with the same FW version and it worked. I was only able to get the same result as you when I set for the OTAP the CID which was configured with AT+CGDCONT with different APN than the one set for OTAP.
Example:
ati1
Cinterion
PLS62-W
REVISION 02.010
A-REVISION 01.000.05
OK
at^sjotap
OK
+CGEV: NW DETACH
+CREG: 0
+CEREG: 0
+CREG: 1,"00C7","0066F320",7
+CEREG: 1,"00C7","0066F320",7
+CGEV: ME PDN ACT 1
[OTAP] ====================================================================
[OTAP] Parameters set for current procedure:
[OTAP] JAD File URL: http://***.***.***.***:7500/otap/HelloWorld.jad
[OTAP] Hide HTTP Authentication Params: off
[OTAP] Http User:
[OTAP] Http Pwd:
[OTAP] Bearer: GPRS0
[OTAP] Apn : internet
[OTAP] SMS Pwd: ******
[OTAP] Ignore SMS PID Check: off
[OTAP] ====================================================================
[OTAP] Starting OTAP download operation
[OTAP] Stopping all midlets
[OTAP] Midlets stopped
[OTAP] PS detach success
[OTAP] Starting installation
[OTAP] Try to get http://***.***.***.***:7500/otap/HelloWorld.jad ...
[OTAP] Starting installation
[OTAP] Transfer finished.
[OTAP] Update of existing midlet
[OTAP] JAR file download
[OTAP] Try to get http://***.***.***.***:7500/otap/HelloWorld.jar ...
[OTAP] Transfer finished.
[OTAP] Installation completed with result: 900 Success
[OTAP] No NotifyURL set. Not posting result.
[OTAP] DONE with status: No Error
[OTAP] Operation OK
[OTAP] Reboot now
Do you use domain address or IP? Are these devices LAN terminals or standard ones without LAN interface?
BR,
Bartłomiej