Professional Documents
Culture Documents
NI Tutorial 14311 en
NI Tutorial 14311 en
Overview
In this whitepaper we explain how to use LabVIEW and the USRP platform to build a phase coherent MIMO testbed that scales from 2x2 to 8x8 antenna configurations and can be used for testing a wide range of MIMO and multi-user communications research.
Table of Contents
1. Introduction to 8x8 MIMO 2. Overview of USRP Hardware 3. Scalable 8x8 MIMO Hardware System Architecture 4. MIMO System Software Architecture 5. System Assessment 6. Conclusion 7. References
Figure 1. NI USRP-2920 Device As one of most affordable and easiest to use off-the-shelf software defined radio systems, the Universal Software Radio Peripheral (USRP) (Fig. 1) is well suited for higher order MIMO applications. In this whitepaper we explain how to use LabVIEW (Fig. 2) and the USRP platform to build a phase coherent MIMO testbed that scales from 2x2 to 8x8 antenna configurations and can be used for testing a wide range of MIMO and multi-user communications research.
1/5
www.ni.com
Rx Signal Path
On the receiver side (Fig. 3, bottom) incoming analog RF signals enter through either RX 1 or RX 2 connector, selected by a programmable switch passing through an adjustable (0-30dB) gain stage to the mixer for direct-conversion from the LO RF frequency to baseband IQ components. A 2-channel, 100MS/s, 14-bit ADC filters and samples the baseband I and Q analog signals. The digitized I and Q data flow through parallel onboard signal processing (OSP) processes that applies DC offset correction, digital down conversion using a CORDIC to correct minor frequency offsets to achieve the desired RF center frequency, filtering and decimating the 100M S/sec input signal to the user-specified IQ Rate. The downconverted samples are then passed to the host computer at a baseband IQ Rate of up to 25 MS/s in 16-bit mode and 50MS/s in 8-bit mode over the standard GbE connection to the host computer for processing.
Tx Signal Path
For transmission (Fig. 3, top), the host computer synthesizes baseband IQ signals and passes the resulting I and Q signal samples to the USRP at up to 25 MS/s in 16-bit mode and 50 MS/s in 8-bit mode over the GbE link. The USRP hardware OSP interpolates and up-converts the synthesized signals to 400MS/s using a digital up conversion process, applies the CORDIC for minor frequency offset corrections based on the requested RF center frequency and then converts the signal to analog with a dual-channel, 16-bit DAC. The resulting analog signal is then filtered and modulated at the specified RF frequency using a direct conversion architecture to mix the LO with the analog baseband IQ signal. An adjustable (0-30dB) gain stage amplifies the signal for transmission through the external TX 1 port.
2/5
www.ni.com
Oscillator) based Thunderbolt GPS Disciplined clock from Trimble which supplies a 10-MHz Ref Clock output and digital PPS output.[4] The OCXO provides a very accurate frequency source that operates without a GPS antenna installed. Adding a GPS antenna further improves synchronization through GPS disciplining and can provide a global concept of time.
Figure 5. 8x8 MIMO system block diagram The power level of both the 10 MHz and PPS reference signals is an important consideration as clock signals are divided among radios. In this application, common coaxial BNC T connections divide the signals twice enabling synchronization of the first 4 USRP devices. The Tunderbolt provides a 10MHz reference of approximately 7dBm and a 2.4V digital PPS signals. Dividing the signal twice (i.e. fanning it out to 4 devices) results in 1dBm and 0.6V references which is near the recommended Ref In and PPS input levels for the USRP (0dBm and 3.3V LVTTL compatible). Amplification of the 10MHz and PPS signals to their recommended power levels is advised if the reference signals are divided further to ensure proper synchronization. The 8x8 MIMO parts list (Table 1) includes the components used to build the 8x8 MIMO testbed. All components are standard off-the-shelf parts.
Qty 16 16 8 2 9 4 4
Part SMA connected magnetic mount antenna NI USRP-2920 kit USRP MIMO Synchronization and Data Cable Trimble Thunderbolt (Ref + PPS) Cat 5 Ethernet Cables 0.3m BNC to BNC cable 3 way female BNC T
Qty 8 16 1 1 1 1
Part 3 way male-female-female BNC T BNC male to SMA male cable 10 port Gigabit Ethernet Switch Desktop PC (Dell with Intel Xenon) PCIe Gigabit Ethernet Card (Intel chipset) Monitor, keyboard, mouse
Equation 1. Maximum theoretical single channel IQ Rate over 1 GbE Text Box: Figure 5. 8 channel synchronized Rx block diagram (Part I)In the testbed, the entire Tx and Rx system shares a single 1 GbE connection back to the host computer connected together with a standard unmanaged 1 GbE switch. The maximum IQ rate is roughly divided by the number of USRP devices sharing the same Ethernet link with some additional overhead for managing multiple devices simultaneously. For 8x8 MIMO, the maximum theoretical IQ rate divides the 25MS/s IQ rate by 8 (Equation 2), allowing approximately 3MS/s for 3MHz of baseband bandwidth for each transmitter and receiver. The maximum theoretical rate can be increased by introducing additional dedicated 1 GbE controllers in the same host computer; however, other bottlenecks in memory and processor may limit performance.
Equation 2. Maximum theoretical 8 antenna IQ Rate over shared 1 GbE connection In the current testbed implementation, an IQ rate of 1MS/s for each of 8 spatially diverse antennas.
3/5
www.ni.com
Figure 6. 8 channel synchronized Rx LabVIEW block diagram (Part I) Using the Rx side of the MIMO system as an example, the configuration and synchronization process is completed in 6 steps: 1. Open the Rx Session by specifying the IP address of each USRP in a comma separated list. 2. Set the Start Trigger Time (in seconds and fractional seconds) indicating when all USRP devices should begin fetching data. 3. Set the parameters shared by all eight devices. 4. Specify which devices will use the externally supplied reference or MIMO cable. 5. Set the time base to 0 (only on USRP devices with an external PPS connection on the next rising edge of the PPS clock signal.) Note: The channel list specifies which devices to set. 6. Fetch the data using a single driver call, returned as a 2D array of complex samples where each row contains the complex IQ waveform from a single antenna. Once a session is initiated, the system begins fetching time synchronized continuous samples from all USRP devices and passing them back to LabVIEW through the NI-USRP Fetch command as a 2-dimensional array where each row is a separate channel. The number of samples acquired each Fetch operation is specified using the number of samples input. In this example (Fig. 6) we index each row and plot the I and Q signals from each channel on its own graph. 8x8 MIMO Host-Based Communications
Figure 6. 8 channel synchronized Rx LabVIEW block diagram (Part II) Professor Robert Heath and graduate student Jackson Massey from the Wireless Networking and Communications Group (WNCG) at the University of Texas at Austin built upon the hardware and driver software framework to create a LabVIEW based MIMO-ODFM link using QPSK symbols (Fig. 2). Their scalable code allows MIMO configurations from 2x2 to 8x8 by simply enabling and disabling USRP devices. Random data bits are mapped to QPSK symbols, which are then mapped to 128 OFDM subcarriers (where some channels are null and others used for training) across a 62.5-kHz bandwidth. The cyclic prefix is inserted and a preamble is created for each set of 20 OFDM symbols. The resulting IQ waveforms are divided into parallel streams and then upsampled by a factor of 16. The resulting output is a 2D array of IQ samples at 1MS/s with unique symbols being transmitted by each of the eight USRP devices using the NI-USRP Write function. On the receive side, data from the NI USRP driver is acquired at 1MS/s and analyzed to detect the OFDM frame position. Once the frame is extracted, the LabVIEW based software estimates the frequency offset and applies a correction. The signal is then divided into blocks equal to the FFT size plus a cyclic prefix and then an FFT is applied to each block. Null tones are removed and the channel training information is used to estimate and correct for multipath interference. Pilot tones are used to estimate and correct for gain and phase shift of each subcarrier. The resulting QPSK constellations are then plotted for each of the eight channels. LabVIEW allows a mixture of models of computation to rapidly prototype the OFDM system. Many aspects of the OFDM link were implemented in custom .m-file scripts. The .m-file scripts from a simulation environment were integrated directly into LabVIEW using the MathScript RT node (Fig. 7) for real-time execution with only minor modifications.
5. System Assessment
There are several factors to consider as you design your own MIMO testbed with USRP which include real-time execution, phase alignment vs. phase coherence, and achieving full data rate with your Ethernet card.
The system and NI-USRP driver is capable of streaming more than 2MS/s of complex baseband IQ signals to and from all eight transmitters and eight receivers for real-time processing. However,
4/5
www.ni.com
The system and NI-USRP driver is capable of streaming more than 2MS/s of complex baseband IQ signals to and from all eight transmitters and eight receivers for real-time processing. However, due to the processing overhead, the transmission rate was reduced to 1 OFDM frame every 200ms in order to keep real-time in Windows. The approximate data rate of the OFDM example code is calculated as follows:
Equation 4: OFDM testbed data rate The resulting data rate is 122.8Kb/s on a 62.5Khz bandwidth channel. The configuration achieves a respectable 1.9648 bits/second/Hz data rate. Note that this implementation has not been optimized for performance, and was a direct implementation of previously simulation-only algorithms. Further optimization would likely result in significant performance improvements.
6. Conclusion
As the study of MIMO communications expands, the NI USRP hardware and LabVIEW software provide an ideal platform for rapidly prototyping and validating new algorithms. Together they provide the flexibility and functionality needed to build a simple 2x2 MIMO system that scales to an advanced 8x8 MIMO OFDM testbed. Using off the shelf NI USRP SDR hardware allows researchers to be rapidly build a testbed, evaluate algorithms, and share reproducible research results. Development in LabVIEW enables the integration of existing IP such as m-file scripts and the use of a wide range of SDR hardware platforms from host-based USRP prototyping to PXI based instrumentation quality MIMO as requirements expand. To get started with this application you can learn more about the USRP software defined radio at ni.com/usrp.
7. References
[1] A. Paulraj, A.J., An overview of MIMO communications - a key to gigabit wireless, Proceedings of the IEEEE, vol. 92, no. 2, pp. 198-218, Feb 2004. [2] 3GPP TR 36.913 V9.0.0 (2009-12), Requirements for Further Advancements of E-UTRA (LTE-Advanced). [3] Trimble Thunderbolt web site: http://www.trimble.com/timing/thunderbolt-e.aspx [4] J. W. Massey, J. Starr, Seogoo Lee, Dongwook Lee, A. Gerstlauer, and R. W. Heath Jr. Implementation of a real-time wireless interference alignment network. To appear in the Proc. of the Asilomar Conference on Signals, Systems and Computers, 2012. (6x6 MIMO Code available on the USRP Code Sharing Community)
5/5
www.ni.com