' **********************************************************************
' * Script name:   Reset the unit                                      *
' * Description:   The unit will reset when the input 1 is connected   *
' *                to ground, In addition sent the UDP messages when   *
' *                the unit power on                                   *
' * 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$stoatev=1,AT$RESET

AT$event=10,1,0,0,0
AT$event=10,3,40,10,3674318
AT$event=10,3,60,10,3674318
AT$event=10,3,44,1,0

AT$event=11,0,8,1,1
AT$event=11,3,40,11,3674318
AT$event=11,3,60,11,3674318

at+cgatt=1
at$areg=2

at&w


