1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 08:28:36 -05:00
sdrangel/plugins/samplesink/hackrfoutput
2017-08-10 00:52:20 +02:00
..
CMakeLists.txt HackRF output plugin: compiles 2017-01-08 04:13:20 +01:00
hackrfoutput.cpp BladeRF output: suspend thread when baseband sample rate changes 2017-08-08 23:09:51 +02:00
hackrfoutput.h Refactoring: removed device parameter from all start() methods in sample sink plugins 2017-04-14 03:44:49 +02:00
hackrfoutput.pro MacOS(sierra) development environment. 2017-05-15 12:32:16 +02:00
hackrfoutputgui.cpp HackRF: implemented link Tx frequency to Rx frequency option 2017-07-21 00:44:30 +02:00
hackrfoutputgui.h HackRF output: continuous sample rate setting 2017-04-02 00:23:02 +02:00
hackrfoutputgui.ui HackRF: extend LO ppm correction range to +/-30 (specs of AVX CX3225GB crystal: http://www.mouser.com/ds/2/40/cx3225gb_e-514151.pdf) 2017-06-24 23:42:03 +02:00
hackrfoutputplugin.cpp Bumped relevant plugins version to 3.5.5. Updated LimeSuite output documentation for LimeSuite 17.06.0 2017-08-09 02:00:13 +02:00
hackrfoutputplugin.h HackRF output plugin: compiles 2017-01-08 04:13:20 +01:00
hackrfoutputsettings.cpp activated compiler warnings 2017-05-25 20:13:34 +02:00
hackrfoutputsettings.h HackRF output: continuous sample rate setting 2017-04-02 00:23:02 +02:00
hackrfoutputthread.cpp HackRF output: suspend thread when baseband sample rate changes 2017-08-08 21:30:04 +02:00
hackrfoutputthread.h HackRF output: removed useless method to set samplerate in the thread 2017-08-08 13:12:16 +02:00
readme.md Resizing of sample FIFO in output plugins: updated documentation 2017-08-10 00:52:20 +02:00

HackRF output plugin

Introduction

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

Build

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

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

Interface

HackRF 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.

If you have the Rx open in another tab and it is running then it will be stopped automatically before the Tx starts. In a similar manner the Tx will be stopped before the Rx is started from the Rx tab.

The settings on Tx or Rx tab are reapplied on start so these settings can be considered independent.

2: Baseband sample rate

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

Transmission latency depends essentially in the delay in the sample FIFO. The size of sample FIFO is calculated to give a fixed delay of 250 ms or 150000 samples whichever is bigger. Below is the delay in seconds vs baseband sample rate in kS/s from 48 to 800 kS/s. The 250 ms delay is reached at 600 kS/s:

BladeRF output plugin FIFO delay other

3: Frequency

This is the center frequency of transmission in kHz.

4: Local Oscillator correction

Use this slider to adjust LO correction in ppm. It can be varied from -10.0 to 10.0 in 0.1 steps and is applied in software.

5: Interpolation factor

The baseband stream is interpolated by this value before being sent to the HackRF 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.

6: Bias tee

Use this checkbox to toggle the +5V power supply on the antenna connector.

7:RF amp

Use this checkbox to toggle the output amplifier (PA). This PA gives an additional gain of 14 dB.

According to HackRF documentation the output power when the PA is engaged and the Tx VGA (10) is at full power (47dB) is the following:

  • 10 MHz to 2150 MHz: 5 dBm to 15 dBm, generally increasing as frequency decreases
  • 2150 MHz to 2750 MHz: 13 dBm to 15 dBm
  • 2750 MHz to 4000 MHz: 0 dBm to 5 dBm, increasing as frequency decreases
  • 4000 MHz to 6000 MHz: -10 dBm to 0 dBm, generally increasing as frequency decreases

8: Device sample rate

This is the HackRF 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.

9: Tx filter bandwidth

This is the Tx filter bandwidth in kHz. Possible values are: 1750, 2500, 3500, 5000, 5500, 6000, 7000, 8000, 9000, 10000, 12000, 14000, 15000, 20000, 24000, 28000 kHz.

10: Tx variable gain amplifier gain

The Tx VGA gain can be adjusted from 0 dB to 47 dB in 1 dB steps. See (7) for an indication on maximum output power.