' **********************************************************************
' * Script name:   AT$GPSCMD command                                   *
' * Description:   Use the command at$GPSCMD to disable ans enable the *
' *                gps, the unit will send the messages when lost and  *
' *                de valid gps position                               *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          03/01/2011                                          *
' **********************************************************************
' --------------------------------------------------------------------
' General configuration
' --------------------------------------------------------------------
AT&F
AT+GSN
AT$PKG?
AT$MDMID?
at+cgatt=0
at+cgdcont=1,"IP","internet3.voicestream.com"
at$friend=1,1,"209.42.60.137"
at$udpapi=,1720

AT$GPSRST=1,0

at$event=12,0,27,0,0
at$event=12,3,40,12,3674318
at$event=12,3,60,12,3674318

at$event=13,0,27,1,1
at$event=13,3,40,13,3674318
at$event=13,3,60,13,3674318


'Used the command at$GPSCMD=0 to disable the GPS
'Used the command at$GPSCMD=1 to reset the GPS Cold start
'Used the command at$GPSCMD=2 to reset the GPS hot start
'Used the command at$GPSCMD=3 to stop the current GPS fix

at+cgatt=1

at$areg=2

at&w
