Você está na página 1de 8

OTAP Modem A va a ser el local. conectado a tu PC, gracias al PDUGen y al hiperterminal, mande esos SMS especiales a tu modem remoto.

No debe tener ni Java ni nada parecido ejecutndose.

Tu modem remoto le vamos a llamar Modem B. Se supone que es remoto y ya tiene su java y se est ejecutando, pero que quieres actualizar su java y que lo haga todo solito. Estara bien que lo pudiramos conectar a otro puerto serie, sea de tu PC, sea del PC del vecino o de otro compaero, por si no funciona, ver las trazas del OTAP.

MODEM A. Ejecutar hiperterminal y comprobar que funciona y registra. Ejecutar PDUGen. 1. Poner Class 1/8 bits en DataCoding Sheme, para activar casilla de OTAP Settings

En las casillas de OTAP Install rellenar JAD File: http://www.blogelectronica.com/TEMP/HelloWorld.jad

Si trabajamos con MOVISTAR EN Bearer service: movistar.es

En NETWORK username: MOVISTAR En NETWORK password: MOVISTAR En NETWORK DNS: 80.58.0.33

La casilla SM Password. Debe ser igual al primer parametro del modem B del AT^SJOTAP? AT^SJOTAP="blogElectronica" OK at^sjotap? ^SJOTAP: "blogElectronica",,,,,,,,,,,,

OK Tambin Se pueden dejar en blanco, en los dos extremos

Comprobar con PREVIEW Y Generar PDU String.

Comprobar que aparecen 2 SMS.

NO. Poner modem A parametros SMS: AT+CSMP=17,0,0,244 MODEM A Modo PDU. AT+CMGF=0 APUNTAR NUMERO CARACTERES Enviar primer SMS modo PDU AT+CMGS=n0 CARACTERES <enter> Aparece el prompt > pegar SMS1 (RISTRA NUMEROS) acabar con CONTROL-Z

Esperar un rato a que salga bien el SMS.

at+cmgs=145 > 001100098176516494F400F500844F5441505F494D504E470A505744 3A626C6F67456C656374726F6E6963610A4150504449523A613A0A4A 414455524C3A687474703A2F2F7777772E626C6F67656C656374726F 6E6963612E636F6D2F54454D502F48656C6C6F576F726C642E6A6164 0A4245415245523A677072730A41504E4F524E554D3A6D6F76697374 61722E65730A +CMGS: 145

Repetir con segundo mensaje modo PDU: AT+CMGS=n CARACTERES SEGUNDO SMS Aparece el prompt > pegar SMS1 (RISTRA NUMEROS) acabar con CONTROL-Z

at+cmgs=106 > 001100098176516494F400F5005D4F5441505F494D504E470A505744 3A626C6F67456C656374726F6E6963610A4E4554555345523A4D4F56 49535441520A4E45545057443A4D4F5649535441520A444E533A3830 2E35382E302E33330A53544152543A696E7374616C6C0A +CMGS: 146

Esperar un rato a que salga bien el SMS.

Debera de ser suficiente. En el modem n. 2 se debe parar el Java, engancharse a GRPS, cargar los nuevos JAD y JAR y reiniciarse.

Si no, activar el LOG.modem B (no puede haber java) AT^SCFG="Trace/Syslog/OTAP","1" SYSLOG ENABLED

OTAP LOCAL (SIN SMS) Se hace con el comando AT^SJOTAP.

AT^SJOTAP="blogElectronica","http://www.blogelectronica.com/TEMP/H elloWorld.jad" ,"a:",,,"gprs","movistar.es","MOVISTAR","MOVISTAR","080.058.000.033" , OK AT^SJOTAP OK

^SYSSTART

[OTAP] SM ID found [OTAP] NETUSER = MOVISTAR [OTAP] NETPWD = MOVISTAR [OTAP] DNS = 80.58.0.33 [OTAP] START = install [OTAP] Parameters set per AT command: [OTAP] SM Pwd: blogElectronica [OTAP] no sms PID check: 0 [OTAP] Parameters for current procedure: [OTAP] JAD File URL: http://www.blogelectronica.com/TEMP/HelloWorld.jad [OTAP] App Dir a: [OTAP] Http User: [OTAP] Http Pwd: [OTAP] Bearer: GPRS [OTAP] Apn Or Num: movistar.es [OTAP] Net User: MOVISTAR [OTAP] Net Pwd: MOVISTAR [OTAP] Dns: 80.58.0.33 [OTAP] Notify URL: [OTAP] no sms PID check: 0 [OTAP] Try to establish a GPRS connection ... [OTAP] GPRS connect [OTAP] Try to get http://www.blogelectronica.com/TEMP/HelloWorld.jad ... [OTAP] Connected. [OTAP] Transfer finished. [OTAP] Try to get http://www.blogElectronica.com/TEMP/HelloWorld.jar ... [OTAP] Connected. [OTAP] Transfer finished. [OTAP] JAM status: 900 Success. [OTAP] Reboot now. ^SYSSTART at^scfg? ^SCFG: "AutoExec","0","0","0","0","" ^SCFG: "AutoExec","0","1","0","0","","000:00:00","086:28:15" ^SCFG: "AutoExec","0","1","1","0","","000:00:00","086:28:15" ^SCFG: "AutoExec","0","1","2","0","","000:00:00","086:28 ^SCFG: "Call/ECC","255"

^SCFG: "GPRS/ATS0/withAttach","on" ^SCFG: "GPRS/AutoAttach","disabled" ^SCFG: "GPRS/PersistentContexts","0" ^SCFG: "GPRS/RingOnIncomingData","off" ^SCFG: "MEopMode/Airplane","off" ^SCFG: "MEopMode/Airplane/OnStart","off" ^SCFG: "MEShutdown/OnIgnition","off" ^SCFG: "PowerSaver/Mode9/Timeout","20" ^SCFG: "Radio/Band","3","15" ^SCFG: "Radio/CNS","0" ^SCFG: "Radio/FirstScan","0" ^SCFG: "Radio/OutputPowerReduction","3" ^SCFG: "Serial/USB/DDD","0","0","0409","0681","0034","Siemens AG Wireless Mod ^SCFG: "Serial/USB/DDD","0","0","0409","0681","0034","Siemens AG Wireless Mod ^SCFG: "Tcp/BufSize","5200" ^SCFG: "Tcp/IRT","3" ^SCFG: "Tcp/MR","10" ^SCFG: "Tcp/OT","6000" ^SCFG: "Tcp/SAck","1" ^SCFG: "Tcp/TTcp","0" ^SCFG: "Tcp/WithURCs","on" ^SCFG: "Trace/Syslog/OTAP","0" ^SCFG: "Userware/Autostart","0" ^SCFG: "Userware/Autostart/AppName","a:/HelloWorld.jar" ^SCFG: "Userware/Autostart/Delay","0" ^SCFG: "Userware/DebugInterface","0.0.0.0","0.0.0.0","0" ^SCFG: "Userware/Passwd" ^SCFG: "Userware/Mode","normal","","0" ^SCFG: "Userware/Stdout","ASC0" ^SCFG: "Userware/Watchdog","1" ^SCFG: "URC/CallStatus/CIEV","restricted" ^SCFG: "URC/CallStatus/SLCC","verbose" ^SCFG: "URC/Datamode/Ringline","off" ^SCFG: "URC/Ringline","local" ^SCFG: "URC/Ringline/ActiveTime","2" OK

LOG COMPLETO
^SYSSTART AT

OK AT^SCFG? ^SCFG: "AutoExec","0","0","0","0","" ^SCFG: "AutoExec","0","1","0","0","","000:00:00","086:28:15" ^SCFG: "AutoExec","0","1","1","0","","000:00:00","086:28:15" ^SCFG: "AutoExec","0","1","2","0","","000:00:00","086:28:15" ^SCFG: "Call/ECC","255" ^SCFG: "GPRS/ATS0/withAttach","on" ^SCFG: "GPRS/AutoAttach","disabled" ^SCFG: "GPRS/PersistentContexts","0" ^SCFG: "GPRS/RingOnIncomingData","off" ^SCFG: "MEopMode/Airplane","off" ^SCFG: "MEopMode/Airplane/OnStart","off" ^SCFG: "MEShutdown/OnIgnition ^SCFG: "PowerSaver/Mode9/Timeout","20" ^SCFG: "Radio/Band","3","15" ^SCFG: "Radio/CNS","0" ^SCFG: "Radio/FirstScan","0" ^SCFG: "Radio/OutputPowerReduction","3" ^SCFG: "Serial/USB/DDD","0","0","0409","0681","0034","Siemens AG Wireless Module s","TC65","" ^SCFG: "Tcp/BufSize","5200" ^SCFG: "Tcp/IRT","3" ^SCFG: "Tcp/MR","10" ^SCFG: "Tcp/OT","6000" ^SCFG: "Tcp/SAck","1" ^SCFG: "Tcp/TTcp","0" ^SCFG: "Tcp/WithURCs","on" ^SCFG: "Trace/Syslog/OTAP","0" ^SCFG: "Userware/Autostart","0" ^SCFG: "Userware/Autostart/AppName","" ^SCFG: "Userware/Autostart/Delay","0" ^SCFG: "Userware/DebugInterface","0.0.0.0","0.0.0.0","0" ^SCFG: "Userware/Passwd" ^SCFG: "Userware/Mode","normal","","0" ^SCFG: "Userware/Stdout","ASC1" ^SCFG: "Userware/Watchdog","0" ^SCFG: "URC/CallStatus/CIEV","restricted" ^SCFG: "URC/CallStatus/SLCC","verbose" ^SCFG: "URC/Datamode/Ringline","off" ^SCFG: "URC/Ringline","local" ^SCFG: "URC/Ringline/ActiveTime","2" OK AT^SCFG="Trace/Syslog/OTAP","1" SYSLOG ENABLED [OTAP] Short message: OTAP_IMPNG APPDIR:a: JADURL:http://www.matrix.es/temp/MT XTunnel.jad BEARER:gprs APNORNUM:movistar.es NETUSER:MOVISTAR NETPWD:MOVISTAR [OTAP] SM ID found [OTAP] FILEURL = http://www.matrix.es/temp/MTXTunnel.jad [OTAP] APPDIR = a: [OTAP] BEARER = GPRS [OTAP] APNORNUM = movistar.es [OTAP] NETUSER = MOVISTAR [OTAP] NETPWD = MOVISTAR [OTAP] Short message: OTAP_IMPNG PWD: DNS:80.58.0.33 START:install [OTAP] SM ID found [OTAP] DNS = 80.58.0.33 [OTAP] START = install [OTAP] Parameters set per AT command: [OTAP] no sms PID check: 0 [OTAP] Parameters for current procedure: [OTAP] JAD File URL: http://www.matrix.es/temp/MTXTunnel.jad [OTAP] App Dir a: [OTAP] Http User: ***** [OTAP] Http Pwd: ***** [OTAP] Bearer: GPRS [OTAP] Apn Or Num: movistar.es [OTAP] Net User: MOVISTAR [OTAP] Net Pwd: MOVISTAR [OTAP] Dns: 80.58.0.33 [OTAP] Notify URL: [OTAP] no sms PID check: 0 [OTAP] Try to establish a GPRS connection ... [OTAP] GPRS connection established. [OTAP] Try to get http://www.matrix.es/temp/MTXTunnel.jad ... [OTAP] Connected. [OTAP] Transfer finished. [OTAP] Try to get http://www.matrix.es/temp/MTXTunnel.jar ... [OTAP] Connected. [OTAP] Transfer finished. [OTAP] JAM status: 900 Success. [OTAP] Reboot now.