1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00
sdrangel/plugins/samplemimo/plutosdrmimo/readme.md
2024-04-26 08:37:24 +02:00

12 KiB

PlutoSDR MIMO plugin

Introduction

Pluto+ image

This MIMO plugin gets or sends its samples from/to a Pluto+ SDR device. This is an enhanced version of the ADALM Pluto from Analog Devices with which it shares firmware. The Pluto+ is available from well known Chinese on-line shops for electronics like AliExpress or Banggood.

The device comes configured for 2 Rx and 2 Tx but in case you change firmware you may need to re-activate the 2 Rx and 2 Tx option. You can apply a procedure similar to the one used to extend frequency range of the ADALM Pluto here. Note that the compatibility is set to AD9361 and not AD9364. So the particular setup is the following:

# fw_setenv attr_name compatible
# fw_setenv attr_val ad9361
# fw_setenv attr_name mode
# fw_setenv attr_val 2r2t

☞ Similarly with ADALM Pluto when running the Pluto on Ethernet interface you have to create a non discoverable device reference in the user arguments dialog from the main window Preferences > Devices menu. You must use the PlutoSDR hardware ID then specify the device address with a uri parameter in the user arguments for example: uri=ip:192.168.1.10. Note that this will become effective once SDRangel is restarted.

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:

-DIIO_DIR=/opt/install/libiio

Interface

The top and bottom bars of the device window are described here

PlutoSDR MIMO plugin GUI

1. Rx/Tx settings selection

Use this combo to target UI to Rx or Tx streams for Rx/Tx specific items.

2. Stream settings selection

Use this combo to target UI to stream 0 or stream 1 for stream specific items. These are settings (20) to (24).

3. Rx/Tx spectrum display selection

Use this combo to select Rx or Tx side for main spectrum display.

4. Stream spectrum display selection

Use this combo to select stream 0 or stream 1 for main spectrum display.

5. Start/Stop Rx

This button controls the start/stop of the Rx subsystem.

  • 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 occurred. 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.

6. Start/Stop Tx

This button controls the start/stop of the Tx subsystem.

  • 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 occurred. 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.

7: ADC sample rate

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

8: Frequency

This is the center frequency of reception 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.

9: Stream sample rate

In device to host sample rate input mode (8A) this is the baseband I/Q sample rate in kS/s. This is the device to host sample rate (8) divided by the software decimation factor (5).

In baseband sample rate input mode (8A) this is the device to host sample rate in kS/s. This is the baseband sample rate (8) multiplied by the software decimation factor (5)

10: 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 Rx and Tx frequency therefore it is also changed on the Tx plugin if it is active.

11: Transverter mode open dialog

This button opens a dialog to set the transverter mode frequency translation options. The details about this dialog can be found here

12: Auto correction options

PlutoSDR MIMO plugin 12 GUI

12.1: DC

Software DSP auto correction: auto remove DC component

12.2: IQ

Software DSP auto correction: auto make I/Q balance. The DC correction must be enabled for this to be effective.

12.3: RFDC

Hardware AD9363 DC and I/Q compensation: RF DC correction

12.4: BBDC

Hardware AD9363 DC and I/Q compensation: Baseband DC correction

12.5: IQ

Hardware AD9363 DC and I/Q compensation: I/Q imbalance correction.

☞ There is a reason why you would like to remove any I/Q correction: this is for the reception of signals that are symmetric in I and Q (real signals). More details here something not very well known about SDR and DSP.

13: Software decimation factor

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

14: Decimated bandpass center frequency position relative to the PlutoSDR Rx center frequency

  • Cen: the decimation operation takes place around the PlutoSDR Rx center frequency Fs
  • Inf: the decimation operation takes place around Fs - Fc.
  • Sup: the decimation operation takes place around Fs + Fc.

With SR as the sample rate before decimation Fc is calculated as:

  • if decimation n is 4 or lower: Fc = SR/2^(log2(n)-1). The device center frequency is on the side of the baseband. You need a RF filter bandwidth at least twice the baseband.
  • if decimation n is 8 or higher: Fc = SR/n. The device center frequency is half the baseband away from the side of the baseband. You need a RF filter bandwidth at least 3 times the baseband.

15: Device to host sample rate / Baseband sample rate input toggle

Use this toggle button to switch the sample rate input next (8) between device to host sample rate and baseband sample rate input. The button shows the current mode:

  • SR: device sample rate input mode. The baseband sample rate (1.5) is the device to host sample rate (8) divided by the software decimation factor (5).
  • BB: baseband sample rate input mode. The device sample rate (1.5) is the baseband sample rate (8) multiplied by the software decimation factor (5).

16: Sample rate

This is the device to host sample rate or baseband sample rate in samples per second (S/s). The control (8) is used to switch between the two input modes.

The limits are adjusted automatically. In baseband input mode the limits are driven by the software decimation factor (5). You may need to increase this decimation factor to be able to reach lower values.

Use the wheels to adjust the sample rate. Pressing shift simultaneously 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 (13) 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

17: Antenna (input) connection

The AD9363 has many port options however as only the A balanced input 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.

18: Rx analog filter bandwidth

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

19: Hardware FIR filter settings

The AD9363 chip has optional FIR filters:

  • in the Rx decimation chain as the last decimation block.
  • in the Tx interpolation chain as the first interpolation block.

PlutoSDR MIMO plugin 19 GUI

19.1: Hardware FIR filter toggle

Use this button to activate or deactivate the filter.

19.2: Hardware FIR filter bandwidth

Use the wheels to adjust the bandwidth of the hardware FIR filter. Pressing shift simultaneously 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 approximately.

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.

19.3: Hardware FIR decimation/interpolation factor

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

19.4: Hardware FIR gain

The FIR filter can introduce a gain that can be set to -12, -6, 0 or 6 dB. The FIR has a fixed gain of 6 dB so to maximize dynamic range one would set the gain at -6 dB so that the overall gain is set at 0 dB.

20: Board temperature

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

21. Lock both streams gains

When engaged this applies the same gain controls (22, 23, 25) to both streams (Rx or Tx)

22: Rx gain mode

Use this combo to select between gain options:

  • Man: manual: the overall gain in dB can be set with the gain button (15)
  • Slow: slow AGC: gain button (15) is disabled
  • Fast: fast AGC: gain button (15) is disabled
  • Hybr: hybrid AGC: gain button (15) is disabled

See AD9363 documentation for details on AGC options.

23: Rx global manual gain

Use this button to adjust the global gain manually in manual gain mode. This button is disabled when AGC modes are selected with combo (15).

24: Actual Rx gain fetched from device

This is the actual gain in dB set in the device.

25: Tx attenuation

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

26: Indicative RSSI

This is the indicative RSSI of the receiver.