1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-09 01:56:05 -05:00
sdrangel/plugins/samplesink/bladerfoutput
2017-11-19 01:05:16 +01:00
..
bladerfoutput.cpp LimeSDR and BladeRF output: do not resize sample FIFO to a fixed value in the thread constructor 2017-10-15 17:37:53 +02:00
bladerfoutput.h BladeRF output: force settings at startup and on deserialize 2017-10-14 07:10:42 +02:00
bladerfoutput.pro Code re-organization in two libraries sdrbase and sdrgui in view of core / GUI split 2017-10-22 19:12:43 +02:00
bladerfoutputgui.cpp Removed direct reference to the DeviceSinkAPI in the sink GUIs. Removed DeviceSourceAPI forward declaration in source GUI headers 2017-10-30 02:54:22 +01:00
bladerfoutputgui.h Removed direct reference to the DeviceSinkAPI in the sink GUIs. Removed DeviceSourceAPI forward declaration in source GUI headers 2017-10-30 02:54:22 +01:00
bladerfoutputgui.ui Code re-organization in two libraries sdrbase and sdrgui in view of core / GUI split 2017-10-22 19:12:43 +02:00
bladerfoutputplugin.cpp Web API: return device information in /sdrangel GET 2017-11-19 01:05:16 +01:00
bladerfoutputplugin.h Removed direct reference to the DeviceSinkAPI in the sink GUIs. Removed DeviceSourceAPI forward declaration in source GUI headers 2017-10-30 02:54:22 +01:00
bladerfoutputsettings.cpp BladeRF output plugin: working basically 2017-01-02 20:24:25 +01:00
bladerfoutputsettings.h Tx support: BladeRF output plugin: compiles 2017-01-02 10:39:21 +01:00
bladerfoutputthread.cpp LimeSDR and BladeRF output: do not resize sample FIFO to a fixed value in the thread constructor 2017-10-15 17:37:53 +02:00
bladerfoutputthread.h BladeRF Output: limit size of sample FIFO to limit delay 2017-01-09 22:33:58 +01:00
CMakeLists.txt Code re-organization in two libraries sdrbase and sdrgui in view of core / GUI split 2017-10-22 19:12:43 +02:00
readme.md Resizing of sample FIFO in output plugins: updated documentation 2017-08-10 00:52:20 +02:00

BladeRF output plugin

Introduction

This output sample sink plugin sends its samples to a BladeRF device.

Warning to Windows users: concurrent use of Rx and Tx does not work correctly hence full duplex is not fully operational. For best results use BladeRF as a half duplex device like HackRF i.e. do not run Tx and Rx concurrently.

Build

The plugin will be built only if the BladeRF host library is installed in your system. If you build it from source and install it in a custom location say: /opt/install/libbladeRF you will have to add -DLIBBLADERF_INCLUDE_DIR=/opt/install/libbladeRF/include -DLIBBLADERF_LIBRARIES=/opt/install/libbladeRF/lib/libbladeRF.so to the cmake command line.

The BladeRF Host library is also provided by many Linux distributions and is built in the SDRangel binary releases.

Interface

BladeRF 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, plug back in 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 BladeRF device. Thus this is the device sample rate (6) divided by the interpolation factor (4).

Transmission latency depends essentially in the delay in the sample FIFO. The FIFO size is calculated as follows:

For interpolation by 32 the size is fixed at 150000 samples, Delay is 150000 / B where B is the baseband sample rate. Below is the delay in seconds vs baseband sample rate in kS/s from 48 to 500 kS/s:

BladeRF output plugin FIFO delay 32

For lower interpolation rates the size is calculated to give a fixed delay of 250 ms or 75000 samples whichever is bigger. Below is the delay in seconds vs baseband sample rate in kS/s from 48 to 400 kS/s. The 250 ms delay is reached at 300 kS/s:

BladeRF output plugin FIFO delay other

3: Frequency

This is the center frequency of transmission in kHz.

4: Interpolation factor

The baseband stream is interpolated by this value before being sent to the BladeRF device. Possible values are:

  • 1: no interpolation
  • 2: multiply baseband stream sample rate by 2
  • 4: multiply baseband stream sample rate by 4
  • 8: multiply baseband stream sample rate by 8
  • 16: multiply baseband stream sample rate by 16
  • 32: multiply baseband stream sample rate by 32

The main samples buffer is based on the baseband sample rate and will introduce ~500ms delay for interpolation by 16 or lower and ~1s for interpolation by 32.

5: XB-200 add-on control

This controls the optional XB-200 add-on when it is fitted to the BladeRF main board. These controls have no effect if the XB-200 board is absent. Options are:

  • None: XB-200 is ignored
  • Bypass: XB-200 is passed through
  • Auto 1dB: The 50, 144 and 220 MHz filters are switched on automatically according to the frequency of reception when it is within the -1 dB passband of the filters
  • Auto 3dB: The 50, 144 and 220 MHz filters are switched on automatically according to the frequency of reception when it is within the -3 dB passband of the filters
  • Custom: The signal is routed through a custom filter
  • 50M: The signal is routed through the 50 MHz filter
  • 144M: The signal is routed through the 144 MHz filter
  • 222M: The signal is routed through the 222 MHz filter

6: Device sample rate

This is the BladeRF device DAC 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. 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 arroews. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.

7: Tx filter bandwidth

This is the Tx filter bandwidth in kHz in the LMS6002D device. Possible values are: 1500, 1750, 2500, 2750, 3000, 3840, 5000, 5500, 6000, 7000, 8750, 10000, 12000, 14000, 20000, 28000 kHz.

8: Variable gain amplifier #1 gain

The VGA1 (relative) gain can be adjusted from -35 dB to -4 dB in 1 dB steps. The VGA1 is inside the LMS6002D chip and is placed between the baseband filter and the RF mixer.

9: Variable gain amplifier #2 gain

The VGA2 gain can be adjusted from 0 dB to 25 dB in 1 dB steps. The VGA2 is inside the LMS6002D chip and is placed after the RF mixer. It can be considered as the PA (Power AMplifier). The maximum output power when both VGA1 and VGA2 are at their maximum is about 4 mW (6 dBm).