Changes between Version 3 and Version 4 of Tutorials


Ignore:
Timestamp:
Sep 29, 2005, 9:25:57 PM (15 years ago)
Author:
max
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials

    v3 v4  
    1 [wiki:WikiStart Orbit] > Tutorial-1: Hello World Example
    21
    3 The "Hello World" Experiment is simple.  The script for this experiment is shown below.
     2[wiki:WikiStart Orbit] > Tutorial
    43
    5 {{{
     4= ORBIT Radio Grid Testbed Tutorial =
    65
    7 #
    8 # Define nodes used in experiment
    9 #
    10 defNodes('sender', [1,1]) {|node|
    11   node.image = nil  # assume the right image to be on disk
     6== Introduction ==
     7The first section of this tutorial briefly describes the '''ORBIT Radio Grid Testbed''', its system architecture and its hardware and software components.  The second section describes a simple "Hello World" experiment with one sender and one receiver.  The third and concluding section covers each of the steps that may be involved in the design, development, execution and interpretation of an '''ORBIT Radio Grid Testbed''' experiment.
    128
    13   node.prototype("test:proto:sender", {
    14     'destinationHost' => '192.168.1.2',
    15     'packetSize' => 1024,
    16     'rate' => 300,
    17     'protocol' => 'udp'   
    18   })
    19   node.net.w0.mode = "managed"
    20 }
     9To avoid duplicating information that is available elsewhere on this web site, links to other pages on this site will be used.  For example, an overview paper on the '''ORBIT Radio Grid Testbed''' is available in Adobe Acrobat here http://www.orbit-lab.org/download/publications/Orbit_Overview.pdf. The ORBIT Hardware components are described on this page http://www.orbit-lab.org/doc/design/hardware on this site, and the ORBIT Software Components are described here http://www.orbit-lab.org/doc/design/software.
    2110
    22 defNodes('receiver', [1,2]) {|node|
    23   node.image = nil  # assume the right image to be on disk
    24   node.prototype("test:proto:receiver" , {
    25     'protocol' => 'udp'
    26   })
    27   node.net.w0.mode = "master"
    28 }
     11 * [wiki:Tutorial/Testbed Brief tour of the Testbed]
     12 * [wiki:Tutorial/HelloWorld Hello World Example]
     13 * [wiki:Tutorial/UnderstandingHelloWorld  Understanding the helloworld script]
     14 * [wiki:Tutorial/Methodology Methodology]
     15 * [wiki:Tutorial/FirstTimeUser For First Time User]
    2916
    30 allNodes.net.w0 { |w|
    31   w.type = 'b'
    32   w.essid = "helloworld"
    33   w.ip = "%192.168.%x.%y"
    34 }
    35 
    36 #
    37 # Now, start the application
    38 #
    39 whenAllInstalled() {|node|
    40   wait 30
    41 
    42   allNodes.startApplications
    43   wait 40
    44 
    45   Experiment.done
    46 }
    47 }}}
    48 
    49 Figure 1.  Script for "Hello World" Experiment
    50 
    51 
    52 To understand the details of the script, go to [wiki:Tutorial/UnderstandingHelloWorld Understanding the Hello World Script]