' **********************************************************************
' * Script name:   GPS Antenna Status                                  *
' * Description:   The device sends the messages whent the status of   *
' *                the GPS antenna change                              *
' * Responsible:   Camilo Moreno                                       *
' * Date:          05/21/2008                                          *
' **********************************************************************
' --------------------------------------------------------------------
' 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$STOATEV=4,AT$MSGSND=0,"GPS Antenna unknown"
AT$STOATEV=5,AT$MSGSND=0,"GPS antenna good"
AT$STOATEV=6,AT$MSGSND=0,"GPS antenna open"
AT$STOATEV=7,AT$MSGSND=0,"GPS antenna short"

AT$EVENT=30,0,71,0,0
AT$EVENT=30,3,44,4,0

AT$EVENT=31,0,71,1,1
AT$EVENT=31,3,44,5,0

AT$EVENT=32,0,71,2,2
AT$EVENT=32,3,44,6,0

AT$EVENT=33,0,71,3,3
AT$EVENT=33,3,44,7,0


at+cgatt=0
at$areg=2

at&w

