' **********************************************************************
' * Script name:   Communication_TCP_PAD_Test                          *
' * Description:   The device generates the TCP PAD connection and     *
' *                sends messages throw the serial port to the TCP     *
' *                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",1730,3

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


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

