117 | | === Configure the access point (on the mobile node) === |
118 | | |
119 | | Before running the experiment, we will use the shell script option in the RSpec to install hostapd. |
120 | | Go to the Raw RSpec view and add the following in the node part of the ap (first line is already there): |
121 | | |
122 | | {{{ |
123 | | <sliver_type name="raw-pc"/> |
124 | | <services> |
125 | | <execute shell="sh" command="sudo apt-get update ; sudo apt-get install hostapd ; "/> |
126 | | </services> |
127 | | }}} |
128 | | |
129 | | === Configuration of Access Point (on your mobile node) === |
130 | | |
131 | | SSH to your mobile node (from jFed). Become root: |
| 117 | === Configuration of Access Point === |
| 118 | |
| 119 | SSH to your AP node (double click it in jFed). Become root: |
192 | | Configure the iPerf client: |
193 | | {{{ |
194 | | $ iperf -u -c 192.168.X.1 -b 40M -i 1 -t 6000 |
195 | | }}} |
196 | | |
197 | | If the iperf reports an actual 40Mbit/sec throughput, you probably lost the connection. |
198 | | By tweaking the transmit power (values of 0 to 20dBm) of the access point, you should be able to see a difference in throughput of the iPerf stream: |
199 | | {{{ |
200 | | $ iwconfig wlan0 txpower <0-20> |
201 | | }}} |
202 | | |
203 | | For this tutorial, leave the txpower to 20 for the first experiment runs. If the effect of moving the mobile node is too limited, you can try lowering the txpower. |
| 180 | Configure the iPerf client (on the robot): |
| 181 | {{{ |
| 182 | $ iperf -u -c 192.168.X.1 -b 30M -i 1 -t 6000 |
| 183 | }}} |
| 184 | |
| 185 | By tweaking the transmit power (values of 0 to 15dBm) of the access point, you should be able to see a difference in throughput of the iPerf stream: |
| 186 | {{{ |
| 187 | $ iwconfig wlan0 txpower <0-15> |
| 188 | }}} |
| 189 | |
| 190 | For this tutorial, leave the txpower set to default (15 or 20dBm) for the first experiment runs. If the effect of moving the mobile node is too limited, you can try lowering the txpower. |