' **********************************************************************
' * Script name:   Currente cosumption                                 *
' * Description:   the unit send the message every seconds defined in  *
' *                timer 1                                             *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          03/15/2011                                          *
' **********************************************************************
' --------------------------------------------------------------------
' General configuration
' --------------------------------------------------------------------
at&f
at+cgsn
at$pkg
at+cgmr
at+cgatt=0
'at+cgdcont=1,"IP","internet3.voicestream.com"
at+cgdcont=1,"IP","proxy"
at$UDpAPI=,1720
at$Friend=1,1,"209.42.60.137"

'Use the command at$gpscmd=0 for turn off the GPS
'Use the command at+ccgatt=0 for disconnect the GPRS connection
'Use the command at$areg=0 for No connection to GSM
'Use the command at+cfun=0 for turn off the modem
'Use the command at%sleep=4 for turn deep sleep
'use the command at$gpscmd?;+cfun?;%sleep?;$netiP?;$evtim1? to see current values

at$evtim1=0

at$event=10,1,12,1,1
at$event=10,3,40,10,3674318
at$event=10,3,60,10,3674318


at+cgatt=1

at$areg=2

at&w

