Changes between Version 3 and Version 4 of Tutorials
- Timestamp:
- Sep 29, 2005, 9:25:57 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials
v3 v4 1 [wiki:WikiStart Orbit] > Tutorial-1: Hello World Example2 1 3 The "Hello World" Experiment is simple. The script for this experiment is shown below. 2 [wiki:WikiStart Orbit] > Tutorial 4 3 5 {{{ 4 = ORBIT Radio Grid Testbed Tutorial = 6 5 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 == 7 The 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. 12 8 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 } 9 To 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. 21 10 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] 29 16 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 application38 #39 whenAllInstalled() {|node|40 wait 3041 42 allNodes.startApplications43 wait 4044 45 Experiment.done46 }47 }}}48 49 Figure 1. Script for "Hello World" Experiment50 51 52 To understand the details of the script, go to [wiki:Tutorial/UnderstandingHelloWorld Understanding the Hello World Script]