Changes between Version 2 and Version 3 of CostTerraSummerSchoolDemo
- Timestamp:
- 08/06/12 13:31:15 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CostTerraSummerSchoolDemo
v2 v3 1 = COST-Terra Summer SchoolDemo =1 = ALOE OFDM Transmitter Demo = 2 2 3 We describe in this page how to download the OFDM transmitter demo we presented at COST-Terra Summer School 2012. 3 We describe in this page how to download the OFDM transmitter demo we presented at COST-Terra Summer School 2012. 4 4 5 5 Main Features: 6 6 7 * Bandwidth 2-20 MHz 7 8 * FFT size 128-2048 points 8 9 * Turbo-encoding 9 10 * Cyclic-Prefix 10 * Run-time reconfiguration 11 * Run-time reconfiguration 11 12 * E2E Latency: '''4 ms''' (constant and non-random) 12 * Distributed processing (tested with 2 processors and GigaEthernet) 13 * Distributed processing (tested with 2 processors and GigaEthernet) 13 14 * GUI: signal visualization, execution time monitoring, etc. 14 15 15 16 == Download and install == 17 1) Prerequisites: 16 18 17 1) Prerequisites: 18 * Linux operating (tested on Ubuntu)19 * Only the 'readline' and 'termcap' libraries are required to install ALOE. Ask your OS vendor how to install these libraries. 20 If you want to use the USRP, make sure you have the UHD drivers is installed before installing ALOE. 19 * Linux operating (tested on Ubuntu) 20 * Only the 'readline' and 'termcap' libraries are required to install ALOE. Ask your OS vendor how to install these libraries. 21 22 If you want to use the USRP, make sure you have the UHD drivers is installed before installing ALOE. 21 23 22 24 2) Download the latest ALOE unstable version from http://flexnets.upc.edu/downloads/aloe-ctss-demo-1.5.0.tar.gz … … 25 27 26 28 4) Configure, compile and install 29 27 30 {{{ 28 31 ./configure … … 30 33 sudo make install 31 34 }}} 35 5) Add the following lines to /etc/sysctl.conf file 32 36 33 5) Add the following lines to /etc/sysctl.conf file34 37 {{{ 35 38 kernel.msgmnb=1048576 … … 37 40 kernel.msgmni=128 38 41 }}} 42 and run 39 43 40 and run41 44 {{{ 42 45 sudo sysctl -p 43 46 }}} 47 6) Run the MAC-TEST to obtain your processor performance: 44 48 45 6) Run the MAC-TEST to obtain your processor performance:46 49 {{{ 47 50 sudo runcf -t NOFCORES 1000000 48 51 }}} 49 52 replacing NOFCORES with the number of cores in your processor. You should see something like this: 53 50 54 {{{ 51 55 child 2: 1344192127:118 -> 1344192127:1561 diff: 0:1443 693 MMACS … … 55 59 parent: 1344192126:183204->1344192127:3329 diff: 0:820125 56 60 }}} 57 58 Now set the ''mops'' field in /usr/local/etc/platform.conf option to the MMACS obtained in the test. 61 Now set the ''mops'' field in /usr/local/etc/platform.conf option to the MMACS obtained in the test. 59 62 60 63 == Running the Demo application == 64 1) Run core framework. Requires root privileges to set real-time scheduler 61 65 62 1) Run core framework. Requires root privileges to set real-time scheduler63 66 {{{ 64 67 sudo runcf 65 }}} 68 }}} 69 2) In the CMDMAN prompt, run 66 70 67 2) In the CMDMAN prompt, run68 71 {{{ 69 72 load ofdm128 … … 71 74 run ofdm128 72 75 }}} 76 to load, initialize and run the OFDM-128 application. Now you can check the waveform is running with the command 73 77 74 to load, initialize and run the OFDM-128 application. Now you can check the waveform is running with the command75 78 {{{ 76 79 execinfo ofdm128 77 80 }}} 81 3) The OFDM bandwidth can be modified at run-time with: 78 82 79 3) The OFDM bandwidth can be modified at run-time with:80 83 {{{ 81 84 statset ofdm128 source fftsize 256 82 85 statset ofdm128 source fftsize 512 83 86 }}} 84 85 Which set the fft size to 256 and 512 tones respectively (4 and 8 MHz bandwidth). By default, the framework will use one processor only from your computer. If you have a multi-core processor, edit the 'nof_cores' option in /usr/local/etc/platform.conf file. In our tests, the OFDM application runs perfectly in a 2.5 GHz Intel processor using one core only. The 512 mode produces frequent real-time faults (printed stdout). This mode works correctly in a dual-processor environment. 87 Which set the fft size to 256 and 512 tones respectively (4 and 8 MHz bandwidth). By default, the framework will use one processor only from your computer. If you have a multi-core processor, edit the 'nof_cores' option in /usr/local/etc/platform.conf file. In our tests, the OFDM application runs perfectly in a 2.5 GHz Intel processor using one core only. The 512 mode produces frequent real-time faults (printed stdout). This mode works correctly in a dual-processor environment. 86 88 87 89 == USRP == 90 If the UHD driver is installed before running ALOE's configure script, the option dac=uhd in /usr/local/etc/platform.conf file allows ALOE to send samples to the USRP. Just edit the platform.conf file and run the OFDM-128 waveform from the ALOE command man. 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. 88 91 89 If the UHD driver is installed before running ALOE's configure script, the option dac=uhd in /usr/local/etc/platform.conf file allows ALOE to send samples to the USRP. Just edit the platform.conf file and run the OFDM-128 waveform from the ALOE command man. 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. 90 91 You may experience with different sampling frequencies and time-slots editing the file /usr/local/etc/usrp.conf. By setting different sampling frequencies 92 You may experience with different sampling frequencies and time-slots editing the file /usr/local/etc/usrp.conf. By setting different sampling frequencies 92 93 93 94 == Distributed Processing == 94 95 95 1) Download and install ALOE in two computers 96 96 97 2) Setup your network, making sure you have full TCP and UDP connectivity between both computers. 97 2) Setup your network, making sure you have full TCP and UDP connectivity between both computers. 98 98 99 99 3) Edit file /usr/local/etc/xitf1.conf and replace 192.168.1.1 by the ip address of your MASTER node. 100 100 101 4) 102 103 101 4)