' **********************************************************************
' * Script name:   SMS enabled                                         *
' * Description:   Enable or disable the sms functionality, using the  *
' *                command AT$SMSDAEN                                  *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          03/08/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+CNMI=2,2
at$smsda=1,"17863423659"

at$SMSDAEN=0

AT$event=10,1,0,0,0
AT$EVENT=10,3,45,10,3674318
AT$EVENT=10,3,60,10,3674318

at+cgatt=1
at$areg=2
AT+CNMI=2,2
at&w

at$msgsnd=1,"This is the test to SMS using gsm"

' use the command at$SMSDAEN=0  to enabled or disabled the sms messages
