Changes between Version 2 and Version 3 of Tutorials/k0SDR/Tutorial06
- Timestamp:
- Oct 10, 2014, 4:20:12 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/k0SDR/Tutorial06
v2 v3 4 4 5 5 === Description === 6 Blabla 6 In 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. 7 7 8 === Creating a signal === 9 blablabla 8 === Transmitting a signal using wiserd === 9 Wiserd 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 10 11 {{{ 11 matlab code 12 set uhd tx_freq 700e6 13 set uhd tx_rate 200e6 14 set uhd tx_gain 20 15 set tx wavefilename signal.bin 16 add tx signalfromfile 12 17 }}} 13 18 14 === Set up the node === 15 Kurac palac 19 To stop the transmission we use 20 21 {{{ 22 delete tx signalfromfile 23 }}} 24 25 === Creating the signal === 26 The 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 {{{ 29 function saveToWiserdFile( signal, filename ) 30 fid = fopen(filename,'w'); 31 fwrite(fid, [real(signal); imag(signal)], 'float32'); 32 fclose(fid); 33 end 34 }}} 35 36 Note 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.