Changes between Version 2 and Version 3 of Tutorials/k0SDR/Tutorial06


Ignore:
Timestamp:
Oct 10, 2014, 4:20:12 PM (10 years ago)
Author:
stojadin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/k0SDR/Tutorial06

    v2 v3  
    44
    55=== Description ===
    6 Blabla
     6In this tutorial we will describe how to create and transmit a wideband signal using [http://wiser.orbit-lab.org/wiki/wiser/mSoftware/aWiserd wiserd] on a USRP X310 radio device equipped node.
    77
    8 === Creating a signal ===
    9 blablabla
     8=== Transmitting a signal using wiserd ===
     9Wiserd producer module ''signal_from_file'' can be used for transmission of a custom signal. The signal needs to be saved in a binary file, containing 32bit float values of I and Q samples of the signal. To use wiserd on a USRP X310 equipped node (e.g. node3-1 on grid.orbit-lab.org), we can use the ''stojadin-wiserd-x310.ndz'' image, which has the latest version of wised preinstalled in the root directory. After running wiserd, we can use the following commands in order to set the required parameters (in this case we assume the central transmission frequency of 700 MHz, signal bandwidth of 200 MHz, transmitter gain of 20 dB and our signal is stored in the ''signal.bin'' file):
     10
    1011{{{
    11 matlab code
     12set uhd tx_freq 700e6
     13set uhd tx_rate 200e6
     14set uhd tx_gain 20
     15set tx wavefilename signal.bin
     16add tx signalfromfile
    1217}}}
    1318
    14 === Set up the node ===
    15 Kurac palac
     19To stop the transmission we use
     20
     21{{{
     22delete tx signalfromfile
     23}}}
     24
     25=== Creating the signal ===
     26The signal can be created in Matlab. To create a desired shape of signal in frequency domain, we suggest creating the shape and performing the ifft function on it to get the I and Q time samples. After we have the signal as a complex 32bit float array, we can save it to a file using the following function:
     27
     28{{{
     29function saveToWiserdFile( signal, filename )
     30    fid = fopen(filename,'w');
     31    fwrite(fid, [real(signal); imag(signal)], 'float32');
     32    fclose(fid);
     33end
     34}}}
     35
     36Note that the output power of USRP X310 is 100 mW. The signal I and Q time samples represent voltages, and use the impedance of 50 Ω to normalize the signal power. Any signal with power higher than 100 mW will not be transmitted properly.