Changes between Version 33 and Version 34 of Tutorials/k0SDR/Tutorial00


Ignore:
Timestamp:
Oct 27, 2015, 4:16:28 PM (8 years ago)
Author:
nilanjan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/k0SDR/Tutorial00

    v33 v34  
    5050{{{
    5151root@node1-1:~/uhd/host/build/examples# uhd_find_devices
    52 linux; GNU C++ version 4.6.1; Boost_104601; UHD_003.004.003-0-unknown
     52linux; GNU C++ version 4.8.4; Boost_105500; UHD_003.009.001-0-unknown
    5353
    5454--------------------------------------------------
     
    5959    addr: 192.168.10.2
    6060    name:
    61     serial: 1232
     61    serial: F297B6
    6262}}}
    6363
     
    6565{{{
    6666root@node1-1:~/uhd/host/build/examples# uhd_usrp_probe
    67 linux; GNU C++ version 4.6.1; Boost_104601; UHD_003.004.003-0-unknown
     67linux; GNU C++ version 4.8.4; Boost_105500; UHD_003.009.001-0-unknown
    6868
    6969-- Opening a USRP2/N-Series device...
     
    7575|     _____________________________________________________
    7676|    /
    77 |   |       Mboard: USRP2-REV4
    78 |   |   hardware: 1024
    79 |   |   mac-addr: 00:50:c2:85:34:d0
     77|   |       Mboard: N210r4
     78|   |   hardware: 2577
     79|   |   mac-addr: 00:80:2f:0a:cc:db
    8080|   |   ip-addr: 192.168.10.2
     81|   |   subnet: 255.255.255.255
     82|   |   gateway: 255.255.255.255
    8183|   |   gpsdo: none
    82 |   |   serial: 1232
     84|   |   serial: F297B6
     85|   |   FW Version: 12.4
     86|   |   FPGA Version: 11.1
    8387|   |
    8488|   |   Time sources: none, external, _external_, mimo
     
    8892|   |    /
    8993|   |   |       RX DSP: 0
    90 |   |   |   Freq range: -50.000 to 50.000 Mhz
     94|   |   |   Freq range: -50.000 to 50.000 MHz
    9195|   |     _____________________________________________________
    9296|   |    /
    9397|   |   |       RX DSP: 1
    94 |   |   |   Freq range: -50.000 to 50.000 Mhz
     98|   |   |   Freq range: -50.000 to 50.000 MHz
    9599|   |     _____________________________________________________
    96100|   |    /
    97101|   |   |       RX Dboard: A
    98 |   |   |   ID: XCVR2450 (0x0061)
     102|   |   |   ID: SBX (0x0054)
     103|   |   |   Serial: E5R1CSBXS
    99104|   |   |     _____________________________________________________
    100105|   |   |    /
    101 |   |   |   |       RX Subdev: 0
    102 |   |   |   |   Name: XCVR2450 (0x0061)
    103 |   |   |   |   Antennas: J1, J2
    104 |   |   |   |   Sensors: lo_locked, rssi
    105 |   |   |   |   Freq range: 2400.000 to 6000.000 Mhz
    106 |   |   |   |   Gain range LNA: 0.0 to 30.5 step 15.0 dB
    107 |   |   |   |   Gain range VGA: 0.0 to 62.0 step 2.0 dB
     106|   |   |   |       RX Frontend: 0
     107|   |   |   |   Name: SBXv3 RX
     108|   |   |   |   Antennas: TX/RX, RX2, CAL
     109|   |   |   |   Sensors: lo_locked
     110|   |   |   |   Freq range: 400.000 to 4400.000 MHz
     111|   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
     112|   |   |   |   Bandwidth range: 40000000.0 to 40000000.0 step 0.0 Hz
    108113|   |   |   |   Connection Type: IQ
    109114|   |   |   |   Uses LO offset: No
     
    111116|   |   |    /
    112117|   |   |   |       RX Codec: A
    113 |   |   |   |   Name: ltc2284
    114 |   |   |   |   Gain Elements: None
     118|   |   |   |   Name: ads62p44
     119|   |   |   |   Gain range digital: 0.0 to 6.0 step 0.5 dB
     120|   |   |   |   Gain range fine: 0.0 to 0.5 step 0.1 dB
    115121|   |     _____________________________________________________
    116122|   |    /
    117123|   |   |       TX DSP: 0
    118 |   |   |   Freq range: -250.000 to 250.000 Mhz
     124|   |   |   Freq range: -50.000 to 50.000 MHz
    119125|   |     _____________________________________________________
    120126|   |    /
    121127|   |   |       TX Dboard: A
    122 |   |   |   ID: XCVR2450 (0x0060)
     128|   |   |   ID: SBX (0x0055)
     129|   |   |   Serial: E5R1CSBXS
    123130|   |   |     _____________________________________________________
    124131|   |   |    /
    125 |   |   |   |       TX Subdev: 0
    126 |   |   |   |   Name: XCVR2450 (0x0060)
    127 |   |   |   |   Antennas: J1, J2
     132|   |   |   |       TX Frontend: 0
     133|   |   |   |   Name: SBXv3 TX
     134|   |   |   |   Antennas: TX/RX, CAL
    128135|   |   |   |   Sensors: lo_locked
    129 |   |   |   |   Freq range: 2400.000 to 6000.000 Mhz
    130 |   |   |   |   Gain range VGA: 0.0 to 30.0 step 0.5 dB
    131 |   |   |   |   Gain range BB: 0.0 to 5.0 step 1.5 dB
     136|   |   |   |   Freq range: 400.000 to 4400.000 MHz
     137|   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
     138|   |   |   |   Bandwidth range: 40000000.0 to 40000000.0 step 0.0 Hz
    132139|   |   |   |   Connection Type: QI
    133140|   |   |   |   Uses LO offset: No
     
    141148 If the commands ''uhd_find_devices'' & ''uhd_usrp_probe '' return No UHD Devices Found, please refer to the troubleshooting section.
    142149
    143  * On node1-1 use the waveform generator to continuously transmit a single frequency sine wave with a frequency of 100k Hz sampled at a rate of 8 MSamples / second and modulated upto 5000MHz
    144 {{{
    145 root@node1-1:~/uhd/host/build/examples# ./tx_waveforms --wave-freq 100e3 --wave-type SINE --freq 5000e6 --rate 8e6 --gain 20 --ampl 0.9
    146 
    147 linux; GNU C++ version 4.6.1; Boost_104601; UHD_003.004.003-0-unknown
     150 * On node1-1 use the waveform generator to continuously transmit a single frequency sine wave with a frequency of 1MHz sampled at a rate of 5 MSamples / second and modulated to 1800MHz
     151{{{
     152root@node1-1:~/uhd/host/build/examples# ./tx_waveforms --wave-freq 1e6 --wave-type SINE --freq 1800e6 --rate 5e6 --gain 10 --ampl 0.2
     153linux; GNU C++ version 4.8.4; Boost_105500; UHD_003.009.001-0-unknown
    148154
    149155
     
    154160Using Device: Single USRP:
    155161  Device: USRP2 / N-Series Device
    156   Mboard 0: USRP2-REV4
     162  Mboard 0: N210r4
    157163  RX Channel: 0
    158164    RX DSP: 0
    159165    RX Dboard: A
    160     RX Subdev: XCVR2450 (0x0061)
     166    RX Subdev: SBXv3 RX
    161167  TX Channel: 0
    162168    TX DSP: 0
    163169    TX Dboard: A
    164     TX Subdev: XCVR2450 (0x0060)
    165 
    166 Setting TX Rate: 8.000000 Msps...
    167 
    168 UHD Warning:
    169     The hardware does not support the requested TX sample rate:
    170     Target sample rate: 8.000000 MSps
    171     Actual sample rate: 7.692308 MSps
    172 Actual TX Rate: 7.692308 Msps...
    173 
    174 Setting TX Freq: 5000.000000 MHz...
    175 Actual TX Freq: 5000.000000 MHz...
    176 
    177 Setting TX Gain: 20.000000 dB...
    178 Actual TX Gain: 20.000000 dB...
     170    TX Subdev: SBXv3 TX
     171
     172Setting TX Rate: 5.000000 Msps...
     173Actual TX Rate: 5.000000 Msps...
     174
     175Setting TX Freq: 1800.000000 MHz...
     176Actual TX Freq: 1800.000000 MHz...
     177
     178Setting TX Gain: 10.000000 dB...
     179Actual TX Gain: 10.000000 dB...
    179180
    180181Setting device timestamp to 0...
     
    183184}}}
    184185
    185  * Now set up the USRP2 on node1-2 to sniff the spectrum at 5000MHz using the rx_ascii_art_dft tool
    186 {{{
    187 root@node1-2:~/uhd/host/build/examples# ./rx_ascii_art_dft --freq 5000e6 --gain 20 --rate 8e6 --frame-rate 10 --ref-lvl -50 --dyn-rng 70
    188 }}}
    189 
    190  * The output should display a frequency spectrum in the terminal using the ascii art! This plot is showing the a peak at 5000 MHz. Note that this peak is composed of the carrier which is centered at 5000 MHz and the tx waveform at 5000 MHz + 100 kHz.
    191 {{{
    192 -50                                                            |
    193                                                                |
    194                                                              ! |
    195                                                              |||
    196 -60                                                          |||
    197                                                              |||
    198                                                              |||
    199                                                              |||
    200 -70                                                          |||
    201                                                              |||
    202                                                              ||||
    203                                                              ||||
    204 -80                                                        !|||||!!.
    205                                                            |||||||||
    206                                                            |||||||||
    207                                                         .  ||||||||| .|
    208                                                        !|  ||||||||| ||
    209 -90                                             .     !|||.|||||||||.||!       :
    210                                          :.    !|   :|||||||||||||||||||:.    .|   ::|
    211                                  . .:.|  ||!!  ||||.||||||||||||||||||||||| .:||  !|||
    212                                 || ||||  ||||: |||||||||||||||||||||||||||||||||: ||||. :    !|
    213 -100                   .: .     ||.||||! ||||||||||||||||||||||||||||||||||||||||.|||||.|:  .||   ! .
    214                 ..     || ||||:!|||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||| :||.||
    215                 ||     || |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||:||||||   !
    216          . .    || .|:|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |.| !||.! |
    217 -110   !.|:|.   ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||:|||.|||||||.:
    218        |||||||  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    219        |||||||:|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    220       ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    221 -120  ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    222  dBfs          4997MHz       4998MHz       4999MHz        5000MHz       5001MHz       5002MHz       5003MHz         O
     186 * Now set up the USRP2 on node1-2 to sniff the spectrum at 1800MHz using the rx_ascii_art_dft tool
     187{{{
     188root@node1-2:~/uhd/host/build/examples# ./rx_ascii_art_dft --freq 1800e6 --gain 10 --rate 5e6 --frame-rate 10 --ref-lvl -30 --dyn-rng 70
     189}}}
     190
     191 * The output should display a frequency spectrum in the terminal using the ascii art! This plot is showing a peak at 1800MHz. Note that this peak is composed of the carrier which is centered at 1800 MHz and the sine waveform at 1800 MHz + 1MHz.
     192{{{
     193                                                                                                                                       :
     194                                                                                                                                       |
     195                                                                                                                                      :|
     196-40                                                                                                                                   ||
     197                                                                                                                                      ||
     198                                                                                                                                      ||
     199                                                                                                                                      ||
     200                                                                                                                                      ||
     201                                                                                                  |                                   ||!
     202-60                                                          !|                                   |                                   |||
     203                                                             ||                                   |                                   |||
     204                                                             ||                                   |                                   |||
     205                                                             ||                                   |!                                  |||
     206                                                             ||                                   ||                                 !|||:
     207                                                             ||                                   ||                                .|||||
     208                                                             ||!                                  ||                                ||||||
     209-80                                                          |||                                 !||                                ||||||
     210                                                             |||                                 |||                                ||||||!
     211                                                             |||                                 |||       .                        |||||||
     212                                                             |||                   .   !|     :  |||:  :   |          .|          !!||||||||
     213                        .   !    :   .          .            |||    |              |. .||| :  | ||||| :|!!.|.       . ||.  |.  !  |||||||||||           .!
     214           ||!!|:     : |   |   :|:  |     : .  |   : !|!   :|||    || . :|!   :.|!||:||||.| !| |||||.|||||||  .  ::| |||  ||::|!!|||||||||||!.  : :|   ||:|     .  | .!      :! .||   . .
     215-100   .!| ||||||| : !|!|!. |   ||||:||  . |!| .|.:.|.|||  !||||  : ||.|:||| |!|||||||||||||:|| ||||||||||||| !|| |||.|||:||||||||||||||||||||| ||||| |!|||||  ! | :|:||| :!||||||||:  | |:
     216 dBfs                1798MHz           1798.5MHz          1799MHz          1799.5MHz           1800MHz          1800.5MHz          1801MHz          1801.5MHz           1802MHz
    223217}}}
    224218
    225219* Now going back to node1-1, turn off the waveform generator so nothing is transmitted. That is do a ''ctrl-c'' in the node1-1 terminal. The frequency spectrum display on node1-2 should display the noise floor
    226220{{{
    227 -50
     221
     222
     223
     224-40
     225
     226
    228227
    229228
     
    231230-60
    232231
    233 
    234 
    235 -70
    236 
    237 
    238 
    239 -80
    240 
    241 
    242 
    243 
    244 -90
    245 
    246                                                                !
    247                                           :.   :   :  |    ||  |  | !    !
    248 -100                          .    |. .  .||!  |  ||! |!:. || :|  | | .:||  !              .
    249                          !    |: |!|| |  ||||! |  |||.||||:||:|| || |:||||::|.| ! !.!     .|.
    250              .       :| ||: ::||.||||:|:!||||| |!!||||||||||||||!||:|||||||||||:|:||| :.:.|||||!:             |
    251              |   :|:.||:||| ||||||||||||||||||:|||||||||||||||||||||||||||||||||||||| ||||||||||| ::    . : . |
    252 -110        !|:| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||.|||||||||||.||!  :|.| | |.
    253        !| |!|||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||| |!||| |.
    254        || ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||| ||
    255        ||:|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||!|||||.||
    256 -120  :|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    257  dBfs          4997MHz       4998MHz       4999MHz        5000MHz       5001MHz       5002MHz       5003MHz         O
    258 }}}
    259 
    260  * Now generate a waveform at 1 MHz with a carrier centered at 5000 MHz.
    261 
    262 {{{
    263 root@node1-1:~/uhd/host/build/examples# ./tx_waveforms --wave-freq 1e6 --wave-type SINE --freq 5000e6 --rate 8e6 --ampl 0.5
    264 }}}
    265 
    266  * Two distinguishable peaks should be present in the frequency spectrum of the receiving node. The peak at 5001 MHz corresponds to the 1 MHz sine wave generate and the smaller peak at 5000 MHz corresponds to carrier signal. This can be a very rough estimate of the carrier signal strength of about 75 dBm.
    267 {{{
    268                                                                                  :.
    269                                                                                  ||
    270 -60                                                                              ||
    271                                                                                  ||
    272                                                                                  ||
    273                                                                                  ||
    274                                                                                  ||
    275                                                                   :              ||
    276                                                                   |              ||
    277 -80                                                               |              ||
    278                                                                   |              ||
    279                                                                   |             .||
    280                                                                   |             |||
    281                                                                   |:         .. ||||
    282                                                   : ..           .||        .|||||||!
    283 -100                             . :           . !| ||       :.::|||   : .. ||||||||||   !
    284                           :      |!|:     .  | |!||||| |:|  :||||||| | | ||:||||||||||   |.! ||
    285                        !. |    :!||||| ..||  |:|||||||!|||. ||||||||.|!|!||||||||||||||:||||.||:  |  !.   .. ::
    286               !     .  ||:| !: |||||||.||||! |||||||||||||| ||||||||||||||||||||||||||||||||||||! |.||| |.|| ||  !.!.       !
    287       |: |    |!!| .|:!|||| ||:|||||||||||||!|||||||||||||| |||||||||||||||||||||||||||||||||||||.|||||||||| ||:!||||.|    .|
    288       ||||!   ||||.||||||||:||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||||||.|||||||||||.: ||
    289       ||||| !||||||||||||||||||||||||||||||||||||||||||||||.||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||:||
    290 -120  ||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    291  dBfs           4997MHz        4998MHz         4999MHz        5000MHz        5001MHz         5002MHz        5003MHz
     232                                                                                                 
     233                                                                                                 
     234                                                                                                 
     235                                                                                                  .
     236                                                                                                  |
     237-80                                                                                               |
     238                                                                                                 ||
     239                                                                                            :   .||:
     240                             :                                            .      |!        || ..||||.  .   ..
     241                             ||.    . |      ..      | ..                .|.    .||      . ||!|||||||  || |||!..       . .    :|:|  ! !   .!      ..:  !|| |:    :|:     . :
     242        |!          ..       ||| |.:| |.   . ||   .!!| ||   .! .|      : |||    ||||.||::| ||||||||||:.|| |||||| |  !|:|.|: |:||||  | |:  ||      ||| !|||!|| |! |||.    | |:      !  .
     243-100   :||!.|:   .||||  .. !:||| ||||!||.! | ||  !|||||||   |||||| .  || ||| !  |||||||||| |||||||||||||||||||||||  ||||||| ||||||!|| ||::||!.!  .||| ||||||| || |||||   ||||   . || ||. !! !:
     244 dBfs                1798MHz           1798.5MHz          1799MHz          1799.5MHz           1800MHz          1800.5MHz          1801MHz          1801.5MHz           1802MHz
     245}}}
     246
     247 * Now generate a 500 kHz ramp (ie. sawtooth) waveform with the carrier centered at 1800 MHz.
     248
     249{{{
     250root@node1-1:~/uhd/host/build/examples# ./tx_waveforms --wave-freq 500e3 --wave-type RAMP --freq 1800e6 --rate 5e6 --gain 5 --ampl 0.1
     251}}}
     252
     253 * Multiple peaks separated by 500 kHz should be present in the frequency spectrum of the receiving node. The peaks correspond to the spectral characteristics of the saw tooth waveform.
     254{{{
     255
     256
     257
     258-40
     259
     260
     261                                                                                                                    :
     262                                                                                                                    |!
     263                                                                                                                    ||
     264-60                                        .                 :|                                   :                 ||
     265                                           |                 ||                                   |                 ||                 |                                    .
     266                                           |!                ||                                   |                 ||                :|                                   ||
     267                         .                 ||                ||                                   |                 ||                ||                 |!                ||
     268      .                  |                 ||                |||               :!                 |                 ||                ||                 ||                ||
     269      ||                 ||               !||                |||               |||               .||                ||                ||                .||                ||
     270      ||                :||               |||               .|||               |||               |||               !||                ||!               |||                ||:               :
     271-80   ||               .|||              .|||!              ||||.             :|||!              |||:              ||||              :|||               |||:              !|||               |
     272      ||.              |||||             |||||             .|||||             |||||!            ||||||            !||||!            .|||||:            |||||..            ||||               |
     273      |||             !||||||. ..      . ||||||.       : .:||||||.:        : !||||||:.        !|||||||.   .      ||||||||   !    :::|||||||.       .  !|||||||:         !|||||!.             |
     274      |||:           !||||||||!||     ||!||||||| : .:..| ||||||||||.   : :!|||||||||||    .:::|||||||||!! ||!|!!|||||||||.:||  :||||||||||||.:.|. .| :|||||||||!!|.|  !|||||||||!           !|
     275      ||||.!:   ..|:.||||||||||||.!|!:||||||||||||||||||||||||||||||!.!|||||||||||||||.:::|||||||||||||||.|||||||||||||||||||!!||||||||||||||||||!||:|||||||||||||||.:|||||||||||!|.      :!||
     276      |||||||:||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||:!: |.||||
     277-100  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||:||||||
     278 dBfs                1798MHz           1798.5MHz          1799MHz          1799.5MHz           1800MHz          1800.5MHz          1801MHz          1801.5MHz           1802MHz
    292279}}}
    293280
     
    303290  From node1-1 transmit a waveform with the following attributes
    304291{{{
    305 root@node1-1:~/uhd/host/build/examples# ./tx_waveforms --wave-freq 1e6 --wave-type SINE --freq 5000e6 --rate 8e6 --ampl 0.5
     292root@node1-1:~/uhd/host/build/examples# ./tx_waveforms --wave-freq 1e6 --wave-type SINE --freq 1800e6 --rate 5e6 --ampl 0.5
    306293}}}
    307294
    308295 * On node1-2, use the rx_sample_to_file utility to dump the received samples into a file.
    309296{{{
    310 root@node1-2:~/uhd/host/build/examples# ./rx_samples_to_file --freq 5000e6 --rate 8e6 --type float
     297root@node1-2:~/uhd/host/build/examples# ./rx_samples_to_file --freq 1800e6 --rate 5e6 --type float
    311298}}}
    312299
     
    315302{{{
    316303root@node1-2:~/uhd/host/build/examples# octave
    317 GNU Octave, version 3.2.4
    318 Copyright (C) 2009 John W. Eaton and others.
     304GNU Octave, version 3.8.1
     305Copyright (C) 2014 John W. Eaton and others.
    319306This is free software; see the source code for copying conditions.
    320307There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
    321 FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
    322 
    323 Octave was configured for "i686-pc-linux-gnu".
     308FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.
     309
     310Octave was configured for "x86_64-pc-linux-gnu".
    324311
    325312Additional information about Octave is available at http://www.octave.org.
    326313
    327314Please contribute if you find this software useful.
    328 For more information, visit http://www.octave.org/help-wanted.html
    329 
    330 Report bugs to <bug@octave.org> (but first, please read
    331 http://www.octave.org/bugs.html to learn how to write a helpful report).
    332 
    333 For information about changes from previous versions, type `news'.
     315For more information, visit http://www.octave.org/get-involved.html
     316
     317Read http://www.octave.org/bugs.html to learn how to submit bug reports.
     318For information about changes from previous versions, type 'news'.
    334319
    335320octave:1>