User Tools

Site Tools


Quick Start Guide

This guide is written for usage with the T410 ThinkPad in the ComNets Institute with the user AA4R.

Programming the devices

This is only needed, if the devices are not programmed, yet.

You need at least three devices. One as the sink node (in the example this is the devboard256Flash node with the MAC Address 2FE7), one as the controller node (this is the AutoRWireless node with the MAC Address 3011) and one as the pulse sensor (devboard256Flash node with the MAC Address 2FF8). The corresponding directories for compiling and programming the nodes are ~/omnet/cometos_v6/plattform/medicBorderRPL, ~/omnet/cometos_v6/plattform/medicController and ~/omnet/cometos_v6/plattform/medicSensor.

Use a terminal to navigate to each of the directories and call the following commands:

make board=AutoRWireless clean
make board=AutoRWireless
make board=AutoRWireless PROGRAMMER=dragon_jtag flash

For the devboard256Flash nodes use devboard256Flash instead of AutoRWireless. If you use a different programmer to write the program to the nodes, please change the dragon_jtag accordingly to your needs.

Border Router

If all the devices are already programmed, we first start the Border Router with the Script in the home directory. This script needs three Parameters. The first one describes the IPv6 Prefix, which is 64:29:30:31:: in our case. The next two describe the port for the connection. In our case it is s /dev/ttyUSBx, where s stands for serial port and the x needs and the ttyUSBx needs to be replaced with the actual ttyUSB number the data sink is connected to.

If only one device is connected to the Laptop you should simply open the terminal and type:

./ 64:29:30:31:: s /dev/ttyUSB0

For more information about the Border Router see Using the Border Router

Starting the Server

Navigate in the Terminal to the tpmsd directory and start the script This script copies all the libraries to the glassfish installation, starts the server and deploys the war files. Afterwards it will start the handler deamon.

You can stop the script by cntrl+c. This will also stop the server.

Establish Connection with the Sensor Network

In a browser open the URL http://localhost:8080/ECP/webresources/connector/execute?command=receive&endpoint=64:29:30:31:0:0:0:3011&port=22222&protocol=aa4r. This registers the Node with the IP Address 64:29:30:31:0:0:0:3011 to the server. If your controller node has a different IP Address please change it accordingly. The server will now start sending SYN Packages to the given IP Address.

Do not shorten the IP Address like 64:29:30:31::3011, the server is unable to handle would still be able to contact the node, but would not accept answers.

Watching the graphs

Log in to the Webinterface of the server under https://localhost:8181/WebInterface/ with the username aa4r and the password aa4r. If you select Patient B, you should be able to see the results of the Pulse Sensor.


Sensor Network

Open a terminal and navigate to the directory ~/omnet/cometos_v6/plattform/pyBaseStationMedical. With the command python -i 20000 medicNodes.xml you get into a python console, where you can communicate with the sensor nodes. Debuggin output of the nodes is printed on the screen.

By typing checkPing(1) every node of the sensor network will be pinged once (that is the one in the brackets). This is not an IP Ping, but independent of the 6LowPAN and the RPL Protocol. If a node does not respond, you should try to restart it. The nodes are mentioned in the medicNodes.xml file. If your nodes are different to the ones named there, please change the file or create another one.

Often it is enough to restart the controller node and the sink node (in that order) to get the network running.


You can see the status of the ECP, which is handling the connection to the controller node under the URL http://localhost:8080/ECP/#/debug/show. Under http://localhost:8080/ECP/#/monitor/show you can see how many packages have arrived and what the average latency is.

projects/aa4rdemonstrator/quickstart.txt · Last modified: 2015/07/23 15:31 by ti5mr