' **********************************************************************
' * Script name:   Communication SMS                                   *
' * Description:   The device sends the sms messages to all smsda      *
' *                with input 1                                        *
' *                To the first smsda with inside geofence 3           *
' *                To the second smsda with inside geofence 1          *
' *                To the third smsda with outside geofence 1          *
' *                To the forth smsda with inside geofence 2           *
' *                To the fift smsda with outside geofence 2           *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          02/25/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", 1735,3
at$udpapi=,1720

AT$SMSDA=1,"15006597253"
AT$SMSDA=2,"17863423659"
AT$SMSDA=3,"15006597253"
AT$SMSDA=4,"17863423659"
AT$SMSDA=5,"15006597253"

at+cnmi=2,2

' --------------------------------------------------------------------
' Send sms messaje to the smsda wint input to group, and geofence 1, 2 and 3
' --------------------------------------------------------------------
at$event=10,1,0,0,0
at$event=10,3,45,10,3674318
at$event=10,3,60,10,3674318

at$event=11,1,23,1,1
at$event=11,3,54,11,3674318
at$event=11,3,60,11,3674318

at$event=12,1,21,1,1
at$event=12,3,55,12,3674318
at$event=12,3,60,12,3674318

at$event=13,1,21,0,0
at$event=13,3,56,13,3674318
at$event=13,3,60,13,3674318

at$event=14,1,22,1,1
at$event=14,3,57,14,3674318
at$event=14,3,60,14,3674318

at$event=15,1,22,0,0
at$event=15,3,58,15,3674318
at$event=15,3,60,15,3674318



at+cgatt=1
at$areg=2
at&w
