TTDD source code in ns2
Source code is available here. After downloading the .tgz file, put it in a directory, e.g.,your home directory, then
tar xvfz ttdd-source-ns-allinone-2.1b8a.tgz
cd ttdd
./install
to compile the code.
Please read ~your-home/ttdd/ns-2.1b8a/padd/README for more information. Some sample TTDD scripts are in ~your-home/ttdd/ns-2.1b8a/scripts. To reduce compatibility problems, Redhat 7.2 is recommended. If you have any questions or suggestions about the code, please send an email to me. .
GRAB and PEAS source code in Parsec
GRAB and PEAS can work together to form a robust, long-lived sensor network. They are integrated into one simulator. You need parsec compiler to compile the code. You also need to set the following (assuming Borne shell) to compile and run the executable.ulimit unlimited
PCC_PP_OPTIONS="-D__builtin_va_list=void* -D__STRICT_ANSI__ -E -U__GNUC__ -I."
export PCC_PP_OPTIONS
After uncompressing the file,
make
should generate the executable. Parsec compiler may not work well on latest Redhat releases. 7.2 is recommended. I strongly recommend you read the code first to understand the meanings of input parameters.
As a quick start, you can try death ratio 0, wake up rate 0.0, width 100, height 100, probe range 3, sensor number 800, alpha 2, err rate 0, report interval 5, stimulus position (10,10), source (90,90), simulation time 400
