OTAP Casero Js

9
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 ejecutándose. 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. Estaría bien que lo pudiéramos conectar a otro puerto serie, sea de tu PC, sea del PC del vecino o de otro compañero, 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

Transcript of OTAP Casero Js

Page 1: OTAP Casero Js

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 ejecutándose.

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. Estaría bien que lo pudiéramos conectar a otro puerto serie, sea de tu PC, sea del PC del vecino o de otro compañero, 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

Page 2: OTAP Casero Js

En las casillas de OTAP Install rellenar

JAD File: http://www.blogelectronica.com/TEMP/HelloWorld.jad

Si trabajamos con MOVISTAREN Bearer service: movistar.esEn NETWORK username: MOVISTAREn NETWORK password: MOVISTAREn NETWORK DNS: 80.58.0.33La casilla SM Password. Debe ser igual al primer parametro del modem B del AT^SJOTAP?AT^SJOTAP="blogElectronica"OKat^sjotap?^SJOTAP: "blogElectronica",,,,,,,,,,,,

OKTambién Se pueden dejar en blanco, en los dos extremos

Comprobar con PREVIEWY Generar PDU String.

Comprobar que aparecen 2 SMS.

NO. Poner modem A parametros SMS: AT+CSMP=17,0,0,244

Page 3: OTAP Casero Js

MODEM AModo PDU. AT+CMGF=0APUNTAR NUMERO CARACTERESEnviar primer SMS modo PDUAT+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 > 001100098176516494F400F500844F5441505F494D504E470A5057443A626C6F67456C656374726F6E6963610A4150504449523A613A0A4A414455524C3A687474703A2F2F7777772E626C6F67656C656374726F6E6963612E636F6D2F54454D502F48656C6C6F576F726C642E6A61640A4245415245523A677072730A41504E4F524E554D3A6D6F7669737461722E65730A+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> 001100098176516494F400F5005D4F5441505F494D504E470A5057443A626C6F67456C656374726F6E6963610A4E4554555345523A4D4F5649535441520A4E45545057443A4D4F5649535441520A444E533A38302E35382E302E33330A53544152543A696E7374616C6C0A+CMGS: 146

Esperar un rato a que salga bien el SMS.

Debería 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

Page 4: OTAP Casero Js

OTAP LOCAL (SIN SMS)

Se hace con el comando AT^SJOTAP.

AT^SJOTAP="blogElectronica","http://www.blogelectronica.com/TEMP/HelloWorld.jad"

,"a:",,,"gprs","movistar.es","MOVISTAR","MOVISTAR","080.058.000.033",

OK

AT^SJOTAP

OK

^SYSSTART

Page 5: OTAP Casero Js

[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"

Page 6: OTAP Casero Js

^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

Page 7: OTAP Casero Js

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.

Page 8: OTAP Casero Js

[OTAP] Reboot now.