Ejemplo de SCRIPT en UDP/BINARIO basado en reporte por Tiempo:
AT+CGDCONT=1,"IP","xxxxxxxxxxxxxxxxxxxxxx"
AT$FRIEND=1,1,"XXX.XXX.XXX.XXX"
AT$UDPAPI=,XXXXX
AT$MDMID="XXXXXXXXX"
'Reporte por tiempo cada 300 segundos
AT$EVTIM1=300
AT$EVENT=9,1,12,1,1
AT$EVENT=9,3,40,9,655359
'Reporte por entrada 1 (Ej. botón de pánico)
AT$EVENT=10,0,0,0,0
AT$EVENT=10,3,40,10,655359
'Ignición ON
AT$EVENT=11,0,7,1,1
AT$EVENT=11,3,40,11,655359
'Ignición OFF
AT$EVENT=12,0,7,0,0
AT$EVENT=12,3,40,12,655359
AT$AREG=2
AT&W
AT$RESET
PARAM2 -> 655359 -> 10011111111111111111
Bit 0
1
send all numeric data in binary format
Bit 1
1
add PARM1 value (4 bytes binary or 11 bytes ASCII)
Bit 2
1
add $MDMID value (22 bytes ASCII)
Bit 3
1
add GPIO data and direction (2 bytes binary or 6 bytes ASCII)
Bit 4
1
add ADC-1 value (2 bytes binary or 5 bytes ASCII)
Bit 5
1
add ADC-2 value (2 bytes binary or 5 bytes ASCII)
Bit 6
1
Store data when out of coverage
Bit 7
1
add Input Event code (1 bytes binary or 3 bytes ASCII)
Bit 8
1
add GPS data (3- bytes of Date information in binary)
Bit 9
1
add GPS data (1- bytes of Status information in binary)
Bit 10
1
add GPS data (4- bytes of Latitude information in binary)
Bit 11
1
add GPS data (4- bytes of Longitude information in binary)
Bit 12
1
add GPS data (2- bytes of Velocity information in binary)
Bit 13
1
add GPS data (2- bytes of Heading information in binary)
Bit 14
1
add GPS data (3- bytes of Time information in binary)
Bit 15
1
add GPS data (3- bytes of Altitude information in binary)
Bit 16
1
add GPS data (1- bytes of Number of Satellites in View information in binary)
Bit 19
1
Send Last Valid GPS data if current data is invalid
//Configuracion de apn
// Configuración IP del server
//Configuración Puerto de server
//Configuración de ID de la unidad
//configuración de TIMER1