Friday, July 31, 2009

Hello,
I have done a program to measure Temperature readings in Castalia

My project name is 'senseReading'

same thing in /src/Node/Application/
senseReading 1 folder created
copy paste all files from /src/Node/Application/templateApplication to /src/Node/Application/senseReading folder
replace " template " name by " senseReading " as we did that day...
and after that change to /Simulation directory
create one /Simulation/senseReading directory
copy paste 2 files from any of the folder (omnetpp.ini and run script[e.g. runSimpleAggreagation])

change in omnetpp.ini
change application name by "senseReading_applicationModule"
application ID by "senseReading"
then u can change some parameters if u want from Omnetpp.ini file...

after that MOST IMPORTANT THING:

1. Open /config/makemake.config file...
2. edit 38th line in that... ALL_WSN_INCLUDES =

-I$(SRCDIR)/Node/Application/senseReading

3. edit at the end of file..

cd $(SRCDIR)/Node/Application/senseReading && $(MAKEMAKE) $(OPTS) -n -r -I$(SRCDIR)/helpStructures -I$(SRCDIR)/Node/Application -I$(SRCDIR)/Node/Application/commonIncludeFiles -I$(SRCDIR)/Node/Sensor_Device_Manager -I$(SRCDIR)/Node/Resource_Manager -I$(SRCDIR)/Node/Communication/Network -I$(SRCDIR)/Node/Communication/Network/multipathRingsRouting

4. then close the file...

then do...

1] make clean
2] ./makemake
3] make

and run the program as...
go in /Simulation/senseReading program/
./runSenseReading

I m sending u a zip file which contains
i] /Simulation/senseReading FOLDER
ii] /src/Node/Application/senseReading FOLDER
iii] /config/makemake.config FILE

place those at correct place.. and try to simulate...

Enjoy..