Introduction on how to use the w-iLab.t testbed and it's resoucres.
Follow these steps to activate your nodes using jFed:
[
]
[
]
[![image][2]]
When all nodes turn green, your experiment is succesfully activated.
[![image][3]]
SSH to your AP node (double click it in jFed). Become root:
~~~~ sourceCode $ sudo su
~~~~
Create a config file for the hostapd program:
~~~~ sourceCode $ nano /root/hostapd.conf
~~~~
Add the following content to the config file:
~~~~ sourceCode interface=wlan0 driver=nl80211 country_code=BE ssid=demoX hw_mode=Z channel=Y
~~~~
Replace X with a random number. Replace Y with your channel(1-11 for g, 36/40/44 for a) and Z with the WiFi mode (a or g). Start hostapd. The above config will setup an AP on wlan0 using 802.11a or g, channel Y, with SSID demoX:
~~~~ sourceCode $ hostapd /root/hostapd.conf
~~~~
Open a second ssh terminal and give an IP address to the wlan0 interface so we can test the connection to the clients (in the next steps). Be sure to replace X with your number:
~~~~ sourceCode $ sudo su; ifconfig wlan0 192.168.X.1/24
~~~~
Running the ifconfig command should show a wlan0 and mon.wlan0 interface:
[![image][4]]
Become root:
~~~~ sourceCode $ sudo su
~~~~
Put the wireless interface into managed mode and specify the SSID so it knows to which AP it should connect
~~~~ sourceCode $ iwconfig wlan0 mode managed $ iwconfig wlan0 essid demoX
~~~~
Specify an IP address and bring up the interface:
~~~~ sourceCode $ ifconfig wlan0 192.168.X.10/24 up
~~~~
Running iwconfig should show that wlan0 is connected to an access point with your ESSID:
Check if you can ping the AP:
~~~~ sourceCode $ ping 192.168.X.1
~~~~
Start an iPerf server instance (UDP in this case) on the AP:
~~~~ sourceCode $ iperf -s -u -i 1
~~~~
Configure the iPerf client (on the robot):
~~~~ sourceCode $ iperf -u -c 192.168.X.1 -b 30M -i 1 -t 6000 &
~~~~
On the server, you should see some output like below:
By tweaking the transmit power (values of 0 to 17dBm) of the access point, you should be able to see a difference in throughput of the iPerf stream (open up a new SSH session to your AP to play with the TX power):
~~~~ sourceCode $ iwconfig wlan0 txpower <0-17> ~~~~
For this tutorial, leave the txpower set to default (17 or 20dBm) for the first experiment runs. If the effect of moving the mobile node is too limited, you can try lowering the txpower. Note that each antenna at the w-iLab.t is equipped with a 10dB attenuator (so 20dB attenuation per link).
[
]:http://doc.ilabt.iminds.be/ilabt-documentation/ _static/wilab/jfedwilab/jfedproxy.png 1: http://doc.ilabt.iminds.be/ilabt-documentation/_static/wilab/jfedwilab/jfedrobot.png [
]: http://doc.ilabt.iminds.be/ilabt-documentation/_static/wilab/jfedwilab/jfedrobot.png [2]: http://doc.ilabt.iminds.be/ilabt-documentation/_static/wilab/jfedwilab/jfedrun.png [![image][2]]: http://doc.ilabt.iminds.be/ilabt-documentation/_static/wilab/jfedwilab/jfedrun.png [3]: http://doc.ilabt.iminds.be/ilabt-documentation/_static/wilab/jfedwilab/jfedok.png [![image][3]]: http://doc.ilabt.iminds.be/ilabt-documentation/_static/wilab/jfedwilab/jfedok.png [4]: http://doc.ilabt.iminds.be/ilabt-documentation/_static/wilab/jfedwilab/ifconfigap.png [![image][4]]: http://doc.ilabt.iminds.be/ilabt-documentation/_static/wilab/jfedwilab/ifconfigap.png