' **********************************************************************
' * Script name:   Communication_UDP_PAD_Test                          *
' * Description:   The device generates the UDP PAD connection and     *
' *                sends messages throw the serial port to the UDP     *
' *                server                                              *
' * 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"
at$udpapi=,1721

' --------------------------------------------------------------------
' UDP PAD configuration
' --------------------------------------------------------------------
AT$PADBLK=512
AT$PADBS=08
AT$PADFWD=0d
AT$PADTO=50
AT$PADCMD=001b
AT$PADDST="209.42.60.137",1720
AT$PADSRC=1720
AT$ACTIVE=1
AT$HOSTIF=1

at+cgatt=1
AT$AREG=2
AT&W

