' **********************************************************************
' * Script name:   Log to UDP                                          *
' * Description:   The device sends the messages saved in the buffer   *
' *                according with the values passed to the command     *
' *                at$msglogrd,x,y,z                                   *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          02/23/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$EVENT=7,1,12,1,1
AT$EVENT=7,3,40,7,3674318

AT$EVENT=8,1,12,1,1
AT$EVENT=8,3,40,8,3674318

AT$EVENT=9,1,12,1,1
AT$EVENT=9,3,40,9,3674318

AT$EVENT=10,1,12,1,1
AT$EVENT=10,3,40,10,3674318

AT$EVENT=11,1,12,1,1
AT$EVENT=11,3,40,11,3674318

AT$EVENT=12,1,12,1,1
AT$EVENT=12,3,40,12,3674318

AT$EVENT=13,1,12,1,1
AT$EVENT=13,3,40,13,3674318

AT$EVENT=14,1,12,1,1
AT$EVENT=14,3,40,14,3674318

AT$EVENT=15,1,12,1,1
AT$EVENT=15,3,40,15,3674318

AT$EVENT=16,1,12,1,1
AT$EVENT=16,3,40,16,3674318

AT$EVENT=17,1,12,1,1
AT$EVENT=17,3,40,17,3674318
AT$EVENT=17,3,60,17,3674318

AT$MSGLOGRD?

' send the comand at$msglogrd=0,20,0

at+cgatt=1

at$areg=2

at&w
