From Physical Layer Security
Revision as of 16:32, 27 October 2017 by Zallmann (talk | contribs)

Jump to: navigation, search

To setup the Testbed, one can simply follow the instructions below. For a successfull measurement one should follow the instruction precisely.

Required Material for our Testbed

  • HOST PC with Ubuntu installed
  • 1x Raspberry Pi
  • 2x USB - Extension Cable
  • 1x Powerbank (optional)
  • 1x Power Supply
  • 2x CC2531 Sticks (TI)
  • 1x SD Card (16GB or more recommend)
  • 1x WLAN Stick (in this case TL-WN722N)(if connection via wlan to the network is required, cable would work as well)
  • Flash Device for example CC-Debugger

Prepare the Host

To prpeare the Host please follow the next instructions. Please enter the commandline by opening terminal or pressing CTRL+ALT+T. After that enter the following line to prepare your host system.

Please execute line by line (The console lines are in a box)


sudo apt-get install autoconf autogen
sudo apt-get install gpp
sudo apt-get install g++ 
sudo apt-get install libtool
sudo add-apt-repository ppa:chris-lea/libsodium

next things have to be done by root

sudo su
echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list
apt-get update && sudo apt-get install libsodium-dev

from here no root shell required zmq

wget https://github.com/zeromq/zeromq4-1/releases/download/v4.1.4/zeromq-4.1.4.tar.gz
tar -xvzf zeromq-4.1.4.tar.gz
cd zeromq-4.1.4
make -j 4
make check
sudo make install
sudo ldconfig

python packages

sudo apt-get install python-zmq python-dev python-qt4 libzmq3-dev python-numpy

Plot Function: Download our plot.pyc script. This is availabe here in a couple of days.

Prepare the CC2531 Stick

Before we continue with the Raspberry we have to configure the CC2531 Stick. The required firmware can be downloaded (soon) here. To install this firmware to the Stick we use the CC Debugger, which is able to communicate via the proprietary TI Connection, which is installed on the Stick. In our testenvironment we install SmartRF Programmer on a Windows PC. The required Tool can be found here : Smart RF Programmer by TI.

Set up a Raspberry

Download an install the latest version of RASPBIAN and install it to the SD Card. Several installation guides can be found on the internet. (For example this one[1])
  1. Tutorial of howtoforge.com