PRoPHET

From N4C

Jump to: navigation, search

Contents

PRoPHET DTN

PRoPHET Source Files

In order to get the latest and stable version of the PRoPHET code download it from the code subeversion repository.
Link to the repository: http://grasic.net/prophet

How to install PRoPHET on Linux

First we install subversion:
sudo apt-get install subversion

We move ourself to dtn folder and download latest prophet code:
cd n4c/dtn/
svn checkout http://grasic.net/prophet

We download all the needed qt libs: sudo apt-get install libqt4-dev (it should request to install all other required packages as well)
sudo apt-get install build-essential

Then edit/configure the prophet.pro file:
gedit prophet.pro

You can set/clear 4 flags here: Enable/disable GUI (enable)
Enable/disable PDAGUI (disable,use this only for N810)
Enable/disable DTN_INTERFACE (disable, you will not be running DTN2 beside prophet)
Enable/disable DFTP_INTERFACE (enable, used for transferring files)

Complie prophet using commands:
qmake prophet.pro
make

Run prophet using the command: ./prophet

How to configure prophet.ini file

Before starting prophet you need to set up the prophet.ini file (most important lines to set):
NODEID=XXX (usually we use the last .xxx number of ip)
NODENAME=yournodename.dtn.n4c.eu (name of the machine, we have our own list of machines and ip numbers at LTU, if you are planning to join the test with own machine let me know and I will assigned name and ip for the machine)
NODEIP=192.168.2.XXX
NODEBROADCAST=....
DFTPPATH=/home/user/n4c/apps/dftp/
STORAGEPATH=/home/user/n4c/dtn/prophet/storage/
MSGPATH=/home/user/n4c/dtn/prophet/list/
LOGPATH=/home/user/n4c/logs/prophet/

Configuring network interfaces

If you are planning to work with the mesh network with the dynamic routing you can set up machines wireless interface to ad-hoc mode (with fixed BSSIDs and fixed channels) set up a static ip addresses (like: 192.168.2.80, 192.168.2.81, 192.168.2.82, 192.168.2.83)


Installing on N900

1.Step
Fetch the code from the subversion repository:
http://grasic.net/prophet
2.Crosscompile code with Nokia QT Creator (use Maemo target)
You can also download prophetN900-v47.deb package from here:
http://dtn.n4c.eu/prophetN900-v47.deb
3.Copy .deb package to N900 (you can use Mass Storage Mode USB connection, file is accessible in the /home/user/MyDocs folder on N900
4.Locate copied file
5.Istall package using following command:
dpkg -i prophetN900-v47.deb
6.Executable is installed in the following folder:
/usr/local/bin
7.Add prophet.ini configuration file in the same folder

Personal tools