' **********************************************************************
' * Script name:   Communication_Test                                  *
' * Description:   The device sends the UDP messages to the server     *
' *                and shows the changes of the status on the GSM and  *
' *                GPRS network                                        *
' * Responsible:   Ramiro Sanchez                                      *
' * 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", 1720
at$udpapi=,1720

' --------------------------------------------------------------------
' Setup GSM, GPRS for automatic notification on network changes
' --------------------------------------------------------------------
at+creg=2
at+cgreg=2
at%cgreg=2
at$netip?

' --------------------------------------------------------------------
' Send UDP messajes to the server with input one
' --------------------------------------------------------------------
at$event=10,0,0,0,0
at$event=10,3,40,10,3674318
at$event=10,3,60,10,3674318

' --------------------------------------------------------------------
'send UDP messajes to all server defined every x seconds defined with AT$EVTIM1
' --------------------------------------------------------------------
AT$Evtim1=0
at$event=12,1,12,1,1
at$event=12,3,42,12,3674318
at$event=12,3,60,12,3674318

at+cgatt=1

at$areg=2

at&w

