Changes between Version 4 and Version 5 of ALOEOFDMDemo
- Timestamp:
- 08/06/12 18:22:33 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ALOEOFDMDemo
v4 v5 11 11 * Run-time reconfiguration 12 12 * '''E2E Latency: 4 ms''' (constant and non-random) 13 * Distributed processing (tested with 2 processors and Giga Ethernet)13 * Distributed processing (tested with 2 processors and Gigabit Ethernet) 14 14 * GUI: signal visualization, execution time monitoring, etc. 15 16 This version is unstable. Therefore, please don't hesitate to send your questions or comments to our [http://groups.google.com/group/flexnets Maillist]. 15 17 16 18 == Download and install == … … 50 52 sudo runcf -t NOFCORES 1000000 51 53 }}} 52 replacing NOFCORES with the number of cores in your processor . For example, in a quad-core you would type:54 replacing NOFCORES with the number of cores in your processor (the second parameter tells the MAC-TEST to run one million MAC operations). For example, in a quad-core, type 53 55 {{{ 54 56 sudo runcf -t 4 1000000 55 57 }}} 56 58 57 And you will see something like this:59 and you get: 58 60 59 61 {{{ … … 93 95 94 96 == USRP == 95 If the [http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki/ UHD] driver is installed before running ALOE's configure script, the option 97 If the [http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki/ UHD] driver is installed before running ALOE's configure script, the OFDM waveform will send the samples to the USRP. In the configuration file '''/usr/local/etc/platform.conf''' (need root privileges) you'll see something like this: 98 96 99 {{{ 97 dac=uhd 100 ## DAC SELECT. Use dac_tx/dac_rx modules to send/recv samples to dac's. 101 # Available dacs: 102 # x5-400: use the pci-e x5-400 daughterboard from innovation logic 103 # soundcard: use jack libraries to access soundcard's dac 104 # udh: use Universal Hardware Driver to access USRP 105 # none: disable dac 106 107 dac { 108 name=none 109 dac_drives_clock=no 110 #Select dac configuration file. Read dac's documentation. 111 cfg_dac=usrp.conf 112 } 113 98 114 }}} 99 in '''/usr/local/etc/platform.conf''' file allows ALOE to send samples to the USRP. 115 Just change the field '''name=none''' by 116 {{{ 117 name=uhd 118 }}} 100 119 101 Now run the OFDM-128 waveform as described in the previous section. The device sampling frequency is automatically configured by ALOE. Since not all devices can work with the same sampling frequencies, the execution period (time-slot) can differ slightly from one set-up to another. 120 Now you need to choose the transmit center frequency, which depends on your device. Edit the file '''/usr/local/etc/usrp.conf''' and look for the section 121 {{{ 122 tx { 123 samp_freq=1777778 124 freq=2400000000 125 gain=30.0 126 bw=0.0 127 blocksize=960 128 } 129 }}} 130 Only the '''freq''' and '''gain''' options needs to be configured. The rest of the parameters define the initial working mode. The OFDM application, however, modifies the sampling frequency and blocksize at runtime, depending on the transmission mode. 131 132 Now run again the core framework (''sudo runcf'' command) and from the command prompt, load, init and run the OFDM application as described in the previous section. 102 133 103 You may experience with different sampling frequencies and time-slots editing the file /usr/local/etc/usrp.conf. By setting different sampling frequencies 134 Try again to change the fftsize and you should observe in an spectrum analyser that the transmitter is using more or less bandwidth. 104 135 105 136 == Distributed Processing == 137 138 In a distributed environment, one of the processors acts as the MASTER. The MASTER node runs the so called Manager Daemons. The aloe-ctss package already provides the configuration for running the demo with two computers connected by an Ethernet. 139 106 140 1) Download and install ALOE in two computers 107 141 108 142 2) Setup your network, making sure you have full TCP and UDP connectivity between both computers. 109 143 110 3) Edit file /usr/local/etc/xitf1.conf and replace 192.168.1.1 by the ip address of your MASTER node.144 3) In the SLAVE node, edit file /usr/local/etc/xitf1.conf and replace 192.168.1.1 by the ip address of your MASTER node. 111 145 112 4) 146 4) In the MASTER node, run the core framework 147 {{{ 148 sudo runcf 149 }}} 150 151 5) In the SLAVE node, run the core framework indicating that the configuration file is platform1.conf: 152 {{{ 153 sudo runcf -c hw_api/lnx/cfg/platform1.conf 154 }}} 155 156 6) In the MASTER node, you should see messages indicating that the new processor has been detected. 157 158 7) In the MASTER node, enter the load/init/run command sequence to begin start the waveform. Use 159 {{{ 160 execinfo ofdm128 161 }}} 162 command to check whether the waveform modules have been mapped to the two processors or not. If the waveform only uses one processor, try loading the '''ofdm512''' application (which requires more computing resources).