1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00
sdrangel/plugins/samplesink/limesdroutput
2017-05-08 11:02:31 +02:00
..
CMakeLists.txt LimeSDR output: compilation succesful 2017-04-22 11:33:41 +02:00
limesdroutput.cpp LimeSDR: do not perform calibration in some cases 2017-05-08 11:02:31 +02:00
limesdroutput.h LimeSDR: suspend/resume all buddies threads before/after open/close 2017-04-23 04:01:00 +02:00
limesdroutputgui.cpp LimeSDR output: implemented antenna select 2017-05-07 03:05:29 +02:00
limesdroutputgui.h LimeSDR output: implemented antenna select 2017-05-07 03:05:29 +02:00
limesdroutputgui.ui LimeSDR output: implemented antenna select 2017-05-07 03:05:29 +02:00
limesdroutputplugin.cpp LimeSDR output: register as sink and not source 2017-04-22 11:52:02 +02:00
limesdroutputplugin.h LimeSDR output (1) 2017-04-22 06:40:12 +02:00
limesdroutputsettings.cpp LimeSDR output: set default gain to 4 db 2017-05-08 04:35:49 +02:00
limesdroutputsettings.h LimeSDR output: implemented antenna select 2017-05-07 03:05:29 +02:00
limesdroutputthread.cpp LimeSDR output: fixed send stream timeout (set to 1s) 2017-05-08 04:35:29 +02:00
limesdroutputthread.h LimeSDR output: regulate Tx output 2017-04-24 03:12:02 +02:00
readme.md LimeSDR output: documentation 2017-04-24 17:51:07 +02:00

LimeSDR output plugin

Introduction

This output sample sink plugin sends its samples to a LimeSDR device. LimeSDR support in SDRangel is for Linux only.

LimeSDR is a 2x2 MIMO device so it has two transmitting channels that can run concurrently. To activate the second channel when the first is already active just open a new sink tab in the main window (Devices -> Add sink device) and select the same LimeSDR device.

Build

The plugin will be built only if LimeSuite is installed in your system. To build and install LimeSuite from source do:

  • sudo apt-get install libsqlite3-dev
  • git clone https://github.com/myriadrf/LimeSuite.git
  • cd LimeSuite
  • mkdir builddir
  • cd builddir
  • cmake -DCMAKE_INSTALL_PREFIX=/opt/install/LimeSuite
  • make -j8
  • make install

Then add the following defines on cmake command line:

-DLIMESUITE_INCLUDE_DIR=/opt/install/LimeSuite/include -DLIMESUITE_LIBRARY=/opt/install/LimeSuite/lib/libLimeSuite.so

Installation from binary packages

Packages are provided in the releases section for AMD64 architecture only in the form of .deb files. Support for LimeSDR has to be installed as a prerequisite to installing SDRangel from the .deb package.

The following packages are provided with SDRangel binary distribution:

  • liblimesuite17.02-1_17.02.1-1_amd64.deb
  • liblimesuite-dev_17.02.1-1_amd64.deb
  • limesuite-udev_17.02.1-1_amd64.deb (if you want the udev rules)

Alternatively you can install a full LimeSuite from PPA following these instructions.

Interface

LimeSDR output plugin GUI

1: Start/Stop

Device start / stop button.

  • Blue triangle icon: device is ready and can be started
  • Red square icon: device is running and can be stopped
  • Magenta (or pink) square icon: an error occured. In the case the device was accidentally disconnected you may click on the icon to stop, plug back in, check the source on the sampling devices control panel and start again.

2: Baseband sample rate

This is the baseband sample rate in kS/s before interpolation (4) to produce the final stream that is sent to the LimeSDR device. Thus this is the device sample rate (6) divided by the interpolation factor (4).

3: Frequency

This is the center frequency of transmission in kHz.

4: Channel number

LimeSDR is a 2x2 MIMO device so it has two transmitting channels. This shows the corresponding Tx channel index (0 or 1).

5: NCO toggle

The button is lit when NCO is active and dark when inactive.

Use this button to activate/deactivate the TSP NCO. The LMS7002M chip has an independent NCO in each Tx channel that can span the bandwidth sent to the DAC. This effectively allows non zero digital IF.

6: Zero (reset) NCO frequency

USe this push button to reset the NCO frequency to 0 and thus center on the main passband of the DAC.

7: Center frequency with NCO engaged

This is the center frequency of the mix of LO and NCO combined and is the sink passband center frequency when the NCO is engaged. Use the thumbwheels to adjust frequency as done with the LO (1.1). The boundaries are dynamically calculated from the LO center frequency and sample rate.

8: LMS7002M hardware interpolation factor

The TSP block in the LMS7002M hardware has an interpolation chain that acts on both Tx channels. It is composed of 5 halfband interpolation stages and therefore can achieve interpolation between 1 (no interpolation) and 32 in increasing powers of 2: 1, 2, 4, 8, 16, 32.

Thus the actual sample rate of the DAC is the stream sample rate (10) multiplied by this factor.

9: Software interpolation factor

The I/Q stream from the LimeSDR is upsampled by a power of two by software inside the plugin before being sent to the device. Possible values are increasing powers of two: 1 (no interpolation), 2, 4, 8, 16, 32.

10: Device stream sample rate

This is the LMS7002M device to/from host stream sample rate in S/s.

Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.

The LMS7002M uses the same clock for both the ADCs and DACs therefore this sample rate affects all of the 2x2 MIMO channels.

11: Tx hardware filter bandwidth

This is the Tx hardware filter bandwidth in kHz in the LMS7002M device for the given channel. Boundaries are updated automatically but generally are from 5 to 130 MHz in 1 kHz steps. Use the wheels to adjust the value.

12: TSP FIR filter toggle

The TSP in the LMS7002M chip has a FIR filter chain per channel. Use this button to activate or deactivate the TSP FIR filter.

13: TSP FIR filter bandwidth

USe the wheels to adjust the bandwidth of the hardware TSP FIR filter.

14: Gain

Use this slider to adjust the global gain of the Tx chain. LimeSuite software automatically set optimals values of the amplifiers to achive this global gain. This gain can be set between 0 and 70 dB in 1 dB steps. The value in dB appears at the right of the slider.

15: Stream status indicator

This label turns green when status can be obtained from the current stream. Usually this means that the stream is up and running but not necessarily streaming data. The various status elements appear next on the same line (16, 17, 18)

16: Stream warning indicators

  • U: turns red if stream experiences underruns
  • O: turns red if stream experiences overruns
  • P: turns red if stream experiences packet drop outs

17: Stream global (all Tx) throughput in MB/s

This is the stream throughput in MB/s and is usually about 3 times the sample rate for a single stream and 6 times for a dual Tx stream. This is due to the fact that 12 bits samples are used and although they are represented as 16 bit values only 12 bita travel on the USB link.

18: FIFO status

This is the fill percentage of the Tx FIFO in the LimeSuite interface. There is no flow regulation provided by the LimeSuite interface so an automatic adjustment is done within the plugin. In practice the value will oscillate between 50 and 100% centered around 80%.