1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 22:31:48 -05:00
sdrangel/plugins/samplesink/plutosdroutput
2017-09-23 03:46:01 +02:00
..
CMakeLists.txt LimeSDR output: fixed build and compile 2017-09-19 22:11:55 +02:00
plutosdroutput.cpp PlutoSDR: fixed warnings and use smaller Rx block to get smoother waterfall 2017-09-20 20:52:41 +02:00
plutosdroutput.h PlutoSDR output: interim state (1) 2017-09-18 23:47:36 +02:00
plutosdroutput.pro PlutoSDR output: Windows build and fixed compilation errors 2017-09-19 14:32:39 +02:00
plutosdroutputgui.cpp LimeSDR output: limit interpolation factor to 32 2017-09-20 22:31:42 +02:00
plutosdroutputgui.h PlutoSDR output: Windows build and fixed compilation errors 2017-09-19 14:32:39 +02:00
plutosdroutputgui.ui LimeSDR output: limit interpolation factor to 32 2017-09-20 22:31:42 +02:00
plutosdroutputplugin.cpp PlutoSDR: Remove from device enumeration if device is not accessible. Bumped version to 3.7.2 2017-09-23 03:46:01 +02:00
plutosdroutputplugin.h PlutoSDR output: interim state (1) 2017-09-18 23:47:36 +02:00
plutosdroutputsettings.cpp PlutoSDR output: interim state (1) 2017-09-18 23:47:36 +02:00
plutosdroutputsettings.h PlutoSDR output: interim state (1) 2017-09-18 23:47:36 +02:00
plutosdroutputthread.cpp LimeSDR output: fixed build and compile 2017-09-19 22:11:55 +02:00
plutosdroutputthread.h LimeSDR output: fixed build and compile 2017-09-19 22:11:55 +02:00
readme.md PlutoSDR: updated documentation 2017-09-21 21:26:28 +02:00

PlutoSDR output plugin

Introduction

This output sample sink plugin sends its samples to a PlutoSDR device. This is also known as the ADALM-Pluto. ADALM stands for Analog Devices Active Learning Module and is targetting students in electrical engineering and digital signal processing. Of course it can be used as a radio device like any other SDR.

As you can see from the Wiki this is becoming a fairly popular SDR hardware platform. It does have interesting features but the library documentation and examples are poor when not misleading. Therefore while this implementation does work it should still be considered experimental.

☞ PlutoSDR is physically implemented as a 1x1 SISO device although the AD9363 chip does have a second Rx and a second Tx channel. Revision C of the board claims to have pads to allow hackers connecting the second ports externally however for now only the first Tx channel is supported by this plugin.

Build

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

  • git clone https://github.com/analogdevicesinc/libiio.git
  • cd libiio
  • git checkout v0.10 # or latest stable release
  • mkdir build
  • cd build
  • cmake -DCMAKE_INSTALL_PREFIX=/opt/install/libiio -DINSTALL_UDEV_RULE=OFF ..
  • make -j8
  • make install

Then add the following defines on cmake command line when compiling SDRangel:

-DLIBIIO_INCLUDE_DIR=/opt/install/libiio/include -DLIBIIO_LIBRARY=/opt/install/libiio/lib/libiio.so

Interface

PlutoSDR output plugin GUI

1: Common stream parameters

PlutoSDR output stream GUI

1.1: Frequency

This is the center frequency of transmission in kHz. The limits are set as those of the AD9364: from 70 to 6000 MHz. PlutoSDR can be fooled to think it has a AD9364 chip with a very simple software hack described here.

AD9363 extended frequency range is not guaranteed but would work normally particularly in the lower range.

1.2: Start/Stop

Device start / stop button.

  • Blue triangle icon: device is ready and can be started
  • Green 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.

1.3: DAC sample rate

This is the sample rate at which the DAC runs in kS/s (k) or MS/s (M) after hardware interpolation. Hardware interpolation is only partially controlled by the user using the FIR interpolation factor (9). The value here is the value returned by the device interface therefore it is always exact.

1.4: Stream sample rate

Baseband I/Q sample rate in kS/s. This is the host to device sample rate (5) divided by the software interpolation factor (3).

2: LO ppm correction

Use this slider to adjust LO correction in ppm. It can be varied from -20.0 to 20.0 in 0.1 steps and is applied in hardware. This applies to the oscillator that controls both the Tx and Rx frequency therefore it is also changed on the Rx plugin if it is active.

3: Software interpolation factor

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

4: Antenna (output) connection

The AD9363 has many port options however as only the A output is connected you should leave it as the default. This is a provision for people who want to hack the board. The different values may be found in the AD9363 documentation.

5: Host to device stream sample rate

This is the AD9363 device to/from host stream sample rate in S/s. It is the same for the Rx and Tx systems.

Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2. 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. Wheels are moved with the mousewheel while pointing at the wheel or by selecting the wheel with the left mouse click and using the keyboard arrows.

The minimum sample rate depends on the hardware FIR decimation factor (9) and is the following:

  • no decimation: 25/12 MS/s thus 2083336 S/s (next multiple of 4)
  • decimation by 2: 25/24 MS/s thus 1041668 S/s
  • decimation by 4: 25/48 MS/s thus 520834 S/s

The maximum sample rate is fixed and set to 20 MS/s

6: Tx analog filter bandwidth

This is the Tx analog filter bandwidth in kHz in the AD9363 device. It can be varied from 625 kHz to 16 MHz in 1 kHz steps. Use the wheels to adjust the value. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.

7: Hardware FIR filter toggle

The AD9363 chip has an optional FIR filter in the Tx interpolation chain as the first interpolation block. Use this button to activate or deactivate the filter.

The FIR filter settings are the same on Rx and Tx side therefore any change here is automatically forwarded to the Rx GUI.

8: Hardware FIR filter bandwidth

Use the wheels to adjust the bandwidth of the hardware FIR filter. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.

The filter limits are calculated as 0.05 and 0.9 times the FIR filter input frequency for the lower and higher limit respectively. The FIR filter input frequency is the baseband sample rate (5) multiplied by the FIR interpolation factor (9)

For bandwidths greater than 0.2 times the FIR filter input frequency the filter is calculated as a windowed FIR filter with a Blackman-Harris window. This has a high out of band rejection value at the expense of a slightly smoother roll off compared to other filters. The bandwidth value sets the -6 dB point approxomately.

For bandwidths between 0.05 and 0.2 times the FIR filter input frequency the window used is a Hamming window giving a sharper transition.

9: Hardware FIR interpolation factor

The FIR filter block can provide an interpolation by 1 (no interpolation), 2 or 4. This controls the minimum possible baseband sample rate as already discussed in (5).

10: Hardware FIR gain

The FIR filter can introduce a gain that can be set to -6 or 0 dB.

11: Attenuation

Use this button to adjust the attenuation. It can be varied from -89.75 to 0 dB in 0.25 dB steps.

12: Indicative RSSI

This is the indicative RSSI of the transmitter. It works only when the Rx is in monitor mode set with the control (7) of the input plugin.

13: Board temperature

This is the board temperature in degrees Celsius updated every ~5s.