Changes between Version 10 and Version 11 of Tutorials/k0SDR/Tutorial04a


Ignore:
Timestamp:
Dec 19, 2012, 4:19:40 PM (12 years ago)
Author:
nilanjan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/k0SDR/Tutorial04a

    v10 v11  
    99 3. spectrum: application on node to set up & collect data from USRP2 and send to OML server / local file for recording in database file.
    1010 4. spectrum_console: application on console to configure & initiate spectrum sense application on node.
    11  5. Orbit's Arbitrary Waveform Injection System: used to inject noise or simple signal into RF environment. More information of this generator can be found [http://www.orbit-lab.org/wiki/Documentation/ArbInterference here].
     11 5. Orbit's Arbitrary Waveform Injection System: used to inject noise or simple signal into RF environment. [http://www.orbit-lab.org/wiki/Documentation/ArbInterference More information of this generator can be found here.]
    1212
    1313== Set up ==
     
    4949}}}
    5050
    51 == Spectrum sensing the noise floor ==
     51== Spectrum sensing with multiple nodes at different frequencies ==
    5252
    5353 * To view the available parameters for the console application
     
    5858 * The first run will demonstrate how to use the sensing application on multiple nodes centered at different frequencies. In this case we will not inject noise into the environment. Check the following page to view nodes corresponding to [http://www.orbit-lab.org/wiki/Documentation/USRP2_hw_map usrp n210].[[BR]]
    5959 In this case we'll be sensing on node3-3, node8-8, node13-13 on the frequencies 5.0 GHz, 5.1 GHz, 5.2 GHz respectively.[[BR]]
    60  Sampling rate option (''--rate 16e6'') yields a bandwidth of 8MHz.[[BR]]
     60 Sampling rate option (''--rate 8e6'') yields a bandwidth of 4MHz.[[BR]]
    6161 The fft size (''--num-bins 1024'') corresponds to a 1024 point fft.[[BR]]
    6262 The time option (''--time 5'') runs the application for 5 seconds.
    6363 Since the ''--oml file'' option is used the collected data will be store on the node locally.[[BR]]
    6464{{{
    65 nilanjan@console.grid:~/UHD/SPECTRUM/w$ ./spectrum_console --rate 16e6 --num-bins 1024 --time 5 --oml file --node node3-3,node8-8,node13-13 --freq 5.0e9,5.1e9,5.2e9
     65nilanjan@console.grid:~/UHD/SPECTRUM/w$ ./spectrum_console --rate 8e6 --num-bins 1024 --time 5 --oml file --node node3-3,node8-8,node13-13 --freq 5.0e9,5.1e9,5.2e9
    6666}}}
    6767
    68  * The recorded spectrum data is stored in a file under the root directory on each of the nodes. Copy that data file from the node to the console and check the contents. The following will copy the data collect from node3-3.
     68 * The recorded spectrum data is stored in a file under the root directory on each of the nodes. Copy that data file from the node to the console and check the contents. Each node will have its own file: /root/spectrum_measurement_nodex-y. [[BR]]
     69 The following will copy the data collect from node3-3 to the console.
    6970{{{
    70 nilanjan@console.grid:~/UHD/SPECTRUM/w$ scp root@node3-3:/root/spectrum_measurement_node3-3 .
     71nilanjan@console.grid:~/UHD/SPECTRUM/w$ scp root@node8-8:/root/spectrum_measurement_node8-8 .
    7172}}}
    7273
    7374 * The contents of the file is very long and is in a database format. The full contents of an example run can be view [http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/Tutorials/FFTSpectrum/spectrum_measurement_node8-8 here].
    7475
    75  * Plot of the noise floor across multiple node.
     76 * Plot of the noise floor at 5.0GHz, 5.1GHZ and 5.2 GHz is shown below.
     77  || [[Image(noise_floor.png, width=500px)]] ||
     78
     79== Frequency detection with multiple nodes.
     80
     81 * This will demonstrate using the waveform generator to create a signal at 5.002 GHz and using the USRPs to detect & record the signal. From the grid console enter the following to configure & run the waveform generator at 5.002 GHz with a -1 dBm power level.
     82{{{
     83nilanjan@console.grid:~/UHD/SPECTRUM/w$ wget -qO- http://instrument1.orbit-lab.org:5012/interference/stop
     84OK
     85nilanjan@console.grid:~/UHD/SPECTRUM/w$ wget -qO- http://instrument1.orbit-lab.org:5012/interference/set?frequency=5.002\&power=-1
     86OK
     87nilanjan@console.grid:~/UHD/SPECTRUM/w$ wget -qO- http://instrument1.orbit-lab.org:5012/interference/start
     88OK
     89}}}
     90
     91 * Now use the node3-3, node8-8 and nod13-13 to record data at frequency 5.0 GHz with a sampling rate of 16e6.
     92{{{
     93nilanjan@console.grid:~/UHD/SPECTRUM/w$ ./spectrum_console --rate 16e6 --num-bins 1024 --time 5 --oml file --node node3-3,node8-8,node13-13 --freq 5.0e9
     94}}}
     95
     96 * Each node will have it owns data file as before. At zip file with this data can be downloaded here.
     97
     98 * The extracted data and plot of the signal detection is shown below.
     99  || [[Image(f5.002.png, width=500px)]] ||