Specifications

AVIDdirector-M2M Technical Reference Guide
February 5, 2009 ©AVIDwireless 2004-2009 All Rights Reserved Page 28 of 55
M2Mapp.ini
This file is used to over-ride the parameters set in the M2Mapp.ini.default
# Config File: M2MApp.ini Updated: 10/22/2008 9:59:12PM
# M2MApp M2MApp Ver:2.0.0(Build:2008102101)[57.10.19.7.10.50.15.39.12]
#
# User specific loading of files
SYSTEM.DEVICE_UUID=
SYSTEM.DEBUG=1 ß- Use this to set a different debug level
DEMO_M2MLET.LOAD=true
M2MIODEVICE.LOADALL=true
# M2MIODEVICE.POLLTIME=20000
#
GPS.LOAD=false ß- You would set this = true to turn on GPS
GPS.POLLTIME=28800000
GPS.FASTPOLL_TIME=60000
GPS.TRIGGER_FASTPOLL_SPEED=10
GPS.TRIGGER_FASTPOLL_METERS=1000
#
SMARTSEN.LOAD=false ß- You would set this = true if you want to connect to
AVIDSmartSensors
#
MT_GPRS.LOAD=true
MT_GPRS.CARRIER=Crossbridge ß- Specifies Crossbridge as our wireless carrier
MT_GPRS.SERVER_M2MXML_UDP_PORT=4321
ish.ini
This file is used to set user environment parameters such as Class Paths and Alias
# Set the Java classpath of the jar files to load
# /root/app.jar is an example of placing user specific jar files in the Classpath
# It is recommended to add jar files to the CLASSPATH and NOT in the command line with the
-classpath option
setenv CLASSPATH $CLASSPATH:/root/app.jar
# set any user aliases here
alias myapp java -w com.user.myapp
startup.ini
This is where you would put user application specific processes etc that need to happen at startup time. This is
the first file that is executed on startup. In the example below you could start up the XPORT Ethernet session at
start up by un-commenting the pppclient line.
When you start the m2mapp, there is the -c filename option to specify the configuration file to use (defaults to
M2Mapp.ini, that uses M2Mapp.ini.default), and m2mapp - C config=nnnn allows manual override of a config file
entry. There can be multiple -C config=nnn -C config2=mmm -C config3=xxx entered on the same line.
# User applications started here
#echo "Starting XPORT Ethernet"
#pppclient -s serial1 -m xport -t -f -o -l
echo "Starting AVIDirector-M2M Application Framework (M2MApp) in the background."
m2mapp -c M2MApp.ini