After reading this tutorial, you will learn how to compile Opal, how to upload program to Twonet testbed, how to configure Twonet testbed through the web interface and how to run experiments on Twonet testbed as well as how to collect data via serial log on Twonet testbed.
The goal is to make it simple and fast to run experiment on Twonet testbed.
The twonet image file is almost 4GB. It may take some time to download. When downloaded, you need to unzip it and place the unzipped file on the desktop.Download twonet virtual image
Download and install VMWare Player.Download VMWare Player
Start Twonet image by running twonet.vmx file until the system boot up. Then log in twonet. The password is twonet. Congratulations, you are now in the Desktop.
We provide one sample code for instant twonet testbed experiment. This sample code combines packet sending, receiving and logging together. To compile the code, open the terminal and go to the sample code directory:
. Then get root permission
. Compile the code
Then it will generate a build directory. Go to the build directory you will fine a main.exe file under the inside opal directory.
We will upload main.exe file to Twonet testbed web interface.
We will describe how to use Twonet web interface here in detail.
After you successfully log into the Twonet,
Now, the task will run as scheduled.
- Click on "Binary Image"
- Then "Upload Image"
- Type image name "twonet-test01"
- Browse the image file "dualband-example/build/opal/main.exe"
- Write some description on the image "learn how to upload image"
- Click on "Upload file"
- Click on "Configuration"
- Type configuration name "twonet-config01"
- Write some description "learn hwo to configure the image"
- Select image "twonet-test01"
- Assign motes for the selected image, here we select all 100 Opal nodes
- Submit configuration
- Click on "Tasks"
- Then "New Task"
- Type a name fro the task "twonet-task01"
- Write some description for the task "learn how to assign time slot for the task"
- Select the time slot, minimum is 5 minutes, maximum is 24 hours. Here we select 5 minutes.
- Click on "Submit"
When the task is finished, the result zip file will be generated as a download link, click on the link and save to your computer. There is a sample result zip file on the Desktop, it was generated using the sample code we provided. You will see 100 files when unzipped. Each one stores the serial output information from the Opal platform. You can write your own script to process these files. For example, to compare the network performance under different radios.