Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:eval:user-guides:ad-fmcomms2-ebz:software:datafiles [17 Dec 2013 17:07] – add disclaimer Robin Getzresources:eval:user-guides:ad-fmcomms2-ebz:software:datafiles [27 Jan 2021 22:20] (current) – use wp> interwiki links Robin Getz
Line 1: Line 1:
-====== Introduction ======+====== AD-FMCOMMS2/3/4 Datafiles ======
  
 <WRAP round important 65%> <WRAP round important 65%>
Line 14: Line 14:
   * DSP System Toolbox Version 8.5                                                             * DSP System Toolbox Version 8.5                                                          
 </WRAP> </WRAP>
 +
 +===== Data transfer =====
 +
 +Once files have been created by MATLAB/Simulink, they can be [[/resources/tools-software/linux-software/zynq_images#accessing_files|transferred to the target]].
 +
  
 ===== QPSK ===== ===== QPSK =====
Line 38: Line 43:
  
 === Data === === Data ===
 +<WRAP round info 65%>
 +Once the transmitted signals are in workspace, we use the following two lines to write them to a text file:
 +
 +<code matlab>
 +newdata = [I1 Q1 I2 Q2];
 +
 +dlmwrite('qpsk.txt',newdata,','); 
 +</code>
 +
 +You open this text file and manually add the word "TEXT" at the very beginning, and then save the file.
 +                                                        
 +</WRAP>
 +
 +
 <WRAP round download 80%> <WRAP round download 80%>
 You can download the generated data from below: You can download the generated data from below:
Line 58: Line 77:
 === Model === === Model ===
  
-The figure below shows a QPSK transmission model with the pulse shaping filters. Since pulse shaping filters are often distributed as a matched pair between transmitter and receiver, we use the filter shape of ‘Square root’(([[http://en.wikipedia.org/wiki/Root-raised-cosine_filter|Root-raised-cosine filter]])).+The figure below shows a QPSK transmission model with the pulse shaping filters. Since pulse shaping filters are often distributed as a matched pair between transmitter and receiver, we use the filter shape of ‘Square root’(([[wp>Root-raised-cosine_filter|Root-raised-cosine filter]])).
  
 {{QPSKwithfilter.png?900|Subsystem diagram}}   {{QPSKwithfilter.png?900|Subsystem diagram}}  
Line 87: Line 106:
 <WRAP round download 80%> <WRAP round download 80%>
 You can download the generated data from below: You can download the generated data from below:
-  * {{qpskwithfilt_30.72mdata.zip}}+  * {{qpskwithfilt_txt.zip}}
 The data rate is 30.72 MSPS.   The data rate is 30.72 MSPS.  
  
Line 95: Line 114:
 ==== Data Verification ==== ==== Data Verification ====
  
-Since there is no match filter on AD9361 receive path, the data obtained from AD9361 receiver side does not show the constellation of QPSK clearly. Therefore, by looking at the ADI IIO Oscilloscope(([[/resources/tools-software/linux-software/iio_oscilloscope|ADI IIO Oscilloscope]])).it is difficult to see whether the received data is valid or not, as shown in the figure below. +Before you look at the IIO Oscilloscope (([[/resources/tools-software/linux-software/iio_oscilloscope|ADI IIO Oscilloscope]])), make sure the sampling rate of ADC and DAC is set at 30.72 MSPS, as shown in the figure below. Otherwise, it may incur some problems. In this panel, there are quite a few other parameters you can tune (DCXO, RF Bandwidth, LO Frequency), in order to get the optimal transmission and reception performance for your system.
  
-{{qpsk_osc.png?600}}+{{iiosetting_new.png?500}} 
 + 
 +<WRAP round info 80%> 
 +The DCXO setting can be different from board to board. You are suggested to find a proper setting using signal generator and spectrum analyzer in the lab.                                                                     
 +</WRAP> 
 + 
 +Since there is no match filter on AD9361 receive path, the data obtained from AD9361 receiver side does not show the constellation of QPSK clearly. Therefore, by simply looking at the ADI IIO Oscilloscope, it is difficult to see whether the received data is valid or not, as shown in the figure below.  
 + 
 +{{qpsk_osc_new.png?500}}
  
 However, with the ''save data'' function of the IIO application, we can now save the received data in MATLAB compatible format (.mat file), let the data pass through a match filter in Simulink, and then verify whether the received data is a QPSK or not. The ''save data'' function can be accessed via "File"-"Save As", as shown in the figure below. There are several data formats available. Since we want the data to be used in MATLAB, we will pick up the .mat format.   However, with the ''save data'' function of the IIO application, we can now save the received data in MATLAB compatible format (.mat file), let the data pass through a match filter in Simulink, and then verify whether the received data is a QPSK or not. The ''save data'' function can be accessed via "File"-"Save As", as shown in the figure below. There are several data formats available. Since we want the data to be used in MATLAB, we will pick up the .mat format.  
  
-{{savedata.png?600}}+{{savedata.png?450}}
  
-Before you save the data, make sure the sampling rate of ADC and DAC is set at 30.72 MSPS, as shown in the figure below. Otherwise, it may incur some problems. In this panel, there are quite a few other parameters you can tune, in order to get the optimal transmission and reception performance for your system. 
  
-{{iiosetting.png?600}} 
  
 Given the received data, we can now proceed to the Simulink receiver model to verify the data. After you launch MATLAB and the receiver model ''qpsk_receiver.slx'', the next step is to load the .mat file in workspace, because the ''Signal From Workspace'' blocks use the data as input. Given the received data, we can now proceed to the Simulink receiver model to verify the data. After you launch MATLAB and the receiver model ''qpsk_receiver.slx'', the next step is to load the .mat file in workspace, because the ''Signal From Workspace'' blocks use the data as input.
-In this model, the data rate is the same as the generated data rate (30.72 MSPS), and the receive filter is the match of the transmit filter. When looking at the IIO scope, we found the received signal from the AD9361 shows a 45 degree rotation compared to the transmitted signal, so a ''Phase/Frequency Offset'' block is employed here to compensate for the phase offset. According to the constellation plot, it is very clear that the received data is a QPSK, so the AD9361 Tx/Rx chain gets verified.+In this model, the data rate is the same as the generated data rate (30.72 MSPS), and the receive filter is the match of the transmit filter. When looking at the IIO scope, we found the constellation of the received signal from the AD9361 shows a rotation compared to the transmitted signal, so a ''Phase/Frequency Offset'' block is employed here to compensate for the phase offset. The value of the phase offset is calculated in Simulink Callbacks. According to the constellation plot below, it is very clear that the received data is a QPSK, so the AD9361 Tx/Rx chain gets verified.
  
-{{qpsk_waveform_verify.png?700}}+{{qpsk_waveform_verify_new.png?450}}
  
  
 <WRAP round download 80%> <WRAP round download 80%>
 You can download the saved mat data file from below: You can download the saved mat data file from below:
-  * {{qpsk_3072.zip}}  +  * {{qpskwithfilt_mat.zip}}  
  
 You can download the receiver model from below: You can download the receiver model from below:
-  * {{qpsk_receiver.zip}}  +  * {{qpsk_receiver_new.zip}} 
 + 
 +Make sure you load the mat data file in the workspace first. Otherwise, the model will not run.   
 The data rate is defined in the parameter ''Fs'' and the phase offset is defined in the parameter ''PhaseOffset''. The data rate is defined in the parameter ''Fs'' and the phase offset is defined in the parameter ''PhaseOffset''.
 </WRAP> </WRAP>
Line 180: Line 208:
 ===== MSK ===== ===== MSK =====
  
-MSK stands for minimum shift keying. It is one type of the continuous phase modulation (CPM) schemes (([[http://en.wikipedia.org/wiki/Minimum-shift_keying|Minimum-shift keying]])). In this section, we use "MSK Modulator Baseband" block to modulate the input random binary bits. In other words, the input is either 0 or 1.+MSK stands for minimum shift keying. It is one type of the continuous phase modulation (CPM) schemes (([[wp>Minimum-shift_keying|Minimum-shift keying]])). In this section, we use "MSK Modulator Baseband" block to modulate the input random binary bits. In other words, the input is either 0 or 1.
 ==== Model ==== ==== Model ====
  
Line 238: Line 266:
 The figure below shows a LTE example according to the specifications developed by the Third Generation Partnership Project (3GPP). It highlights only the downlink physical channel (PDSCH) processing.  In order to obtain the transmitted data, we add a “Signal to Workspace” block on the transmitter side (circled in red). By double clicking the "Model Parameters" block, we can change the model settings such as channel bandwidth, antenna configuration and etc. The figure below shows a LTE example according to the specifications developed by the Third Generation Partnership Project (3GPP). It highlights only the downlink physical channel (PDSCH) processing.  In order to obtain the transmitted data, we add a “Signal to Workspace” block on the transmitter side (circled in red). By double clicking the "Model Parameters" block, we can change the model settings such as channel bandwidth, antenna configuration and etc.
  
-Since LTE is a sophisticated standard, you are encouraged to read the Help Document of this example and its related references to get more information (([[http://www.mathworks.com/help/comm/examples/lte-phy-downlink-with-spatial-multiplexing.html|LTE PHY Downlink with Spatial Multiplexing]])).+Since LTE is a sophisticated standard, you are encouraged to read the Help Document of this example and its related references to get more information (([[mw>help/comm/examples/lte-phy-downlink-with-spatial-multiplexing.html|LTE PHY Downlink with Spatial Multiplexing]])).
  
 {{LTE.png?900|Subsystem diagram}} {{LTE.png?900|Subsystem diagram}}
resources/eval/user-guides/ad-fmcomms2-ebz/software/datafiles.1387296423.txt.gz · Last modified: 17 Dec 2013 17:07 by Robin Getz