' **********************************************************************
' * Script name:   IO Pull up                                          *
' * Description:   The device sends the UDP messages when inginiton is *
' *                on and when ignition is off                         *
' *                It is include ignition dbounce                      *
' *                The device will send the message when the state of  *
' *                ignition is x seconds (defined with at$igndbnc) in  *
' *                on/off                                              *
' * Responsible:   Martin Comastri                                     *
' * Date:          05/20/2008                                          *
' * Notes:                                                             *
' * 02/22/2011     Include general configuration                       *
' **********************************************************************

' --------------------------------------------------------------------
' General configuration
' --------------------------------------------------------------------
AT&F
AT+GSN
AT$PKG?
AT$MDMID?
at$Areg=0
at+cgdcont=1,"IP","internet3.voicestream.com"
at$areg=2
at$friend=1,1,"209.42.60.137"
at$udpapi=,1720

AT$IOPULUP=1
AT$EVENT=10,0,0,0,0
AT$EVENT=10,3,40,10,14286799
AT$EVENT=11,0,0,1,1
AT$EVENT=11,3,40,11,14286799


at&w