Tuesday 13 August 2019

Script AT para Calamp LMU's Trackers

Programar los Calamp parece no ser tan sencillo ya que aparte de la administración remota existen temas legales sobre los derechos de quien o cuando se compraron esos equipos, es segun la manera del fabricante de 'proteger' a sus clientes, este Script a la vieja escuela, construido con comandos AT permite su programacion y un tipo de reporte uniforme a cualquier plataforma


Sin usar software especial sino que desde cualquier terminal basta para poder programarlo












0.-AT$APP GPRS CONTEXT 0 "tu_apn"    //APN
1.- AT$APP PPP USER "apn_username"                        
2.- AT$APP PPP PASSWORD "apn_pswd"                
3.- AT$APP INBOUND 1.1.1.1:port     // Destination Port and IP                 
4.- AT$APP PARAM 262,0,30                    //Time Distance Profile 0 (Time=30 secs)
5.- AT$APP PARAM 263,0,800                    //Time Distance Profile 0  (Distance=800m )
6.- AT$APP PARAM 264,0,60                    //Time Distance Profile 0  (Heading=60є)
7.- AT$APP PARAM 265,1,900                    //Timer 1 = 15 min for reports when unit off
8.- AT$APP PARAM 512,0,3,0,0,0,7,0,0,0      // Start  time-distance profile 0 on reset  OR power up
9.- AT$APP PARAM 512,1,16,0,0,0,6,0,0,0     // When Ignition off stop actual profile running
10.-AT$APP PARAM 512,2,16,0,0,0,13,1,0,0   // When Ignition off start timer 1 ()
11.-AT$APP PARAM 512,3,18,1,0,0,1,10,0,0    // When timer ran out send report (EVcode 10) Unit off reports
12.-AT$APP PARAM 512,4,17,0,0,0,1,11,0,0     // When Time-Distance updates send report (EVcode 11) Unit on reports
13.-AT$APP PARAM 512,5,16,0,0,0,1,12,0,0     // Send EVcode 12 when Ignition Off
14.- AT$APP PARAM 512,6,15,0,0,0,1,13,0,0      // Send EVcode 13 when Ignition On
Codigos de Evento
10 Reporta en apagado, periodo definido en linea 711 Reporta en encendido, periodo definido por linea 4
12 Ignition Off
13 Ignition On

No comments:

Post a Comment