1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00
sdrangel/plugins/samplesource/hackrfinput
2018-04-21 18:45:09 -07:00
..
CMakeLists.txt Web API: implemented device run APIs for BladeRF output, HackRF, PlutoSDR and LimeSDR ourput 2017-12-10 01:57:50 +01:00
hackrfinput.cpp Multiple audio support: transfer start/stop audio to audio FIFO management in AudioDeviceManager 2018-03-24 04:18:58 +01:00
hackrfinput.h Server and web API: added HackRF support 2017-12-29 01:40:34 +01:00
hackrfinput.pro Windows build: new location for export header 2018-03-10 20:32:46 +01:00
hackrfinputgui.cpp Source plugins: put a serializer and deserializer in the core plugin for server. NFM demod: fixed deserializer 2017-12-28 03:21:48 +01:00
hackrfinputgui.h BladeRF and HackRF input: block apply settings during settings display 2017-11-06 02:34:46 +01:00
hackrfinputgui.ui Fix spelling errors present in UI files 2018-04-21 18:44:54 -07:00
hackrfinputplugin.cpp RTL-SDR: implemented tuner bandwidth control 2018-01-16 01:01:24 +01:00
hackrfinputplugin.h Removed direct reference to the DeviceSourceAPI in the source GUIs 2017-10-30 00:45:23 +01:00
hackrfinputsettings.cpp HackRF input: link Tx frequency button and setting 2017-07-20 23:34:12 +02:00
hackrfinputsettings.h HackRF input: link Tx frequency button and setting 2017-07-20 23:34:12 +02:00
hackrfinputthread.cpp PVS-Studio static analysis corrections (3) issue #137 2018-02-24 10:29:27 +01:00
hackrfinputthread.h Differentiate Rx and Tx DSP sample sizes 2018-01-22 08:46:05 +01:00
readme.md Fix spelling errors in documentation 2018-04-21 18:45:09 -07:00

HackRF input plugin

Introduction

This input sample source plugin gets its samples from 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 input plugin GUI

1: Common stream parameters

SDR Daemon source input stream GUI

1.1: Frequency

This is the center frequency of reception in kHz.

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
  • Red square icon: an error occurred. In the case the device was accidentally disconnected you may click on the icon, plug back in and start again.

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

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

1.3: Record

Record baseband I/Q stream toggle button

1.4: Baseband sample rate

Baseband I/Q sample rate in kS/s. This is the device sample rate (4) divided by the decimation factor (6).

2: 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.

3: Auto correction options

These buttons control the local DSP auto correction options:

  • DC: auto remove DC component
  • IQ: auto make I/Q balance. The DC correction must be enabled for this to be effective.

3A: Link Tx frequency

Use this button to toggle the device Tx frequency link.

When active (button lit) and a tab is opened for the Tx part of the same device this option will activate the link of the Tx frequency to the Rx frequency. Thus when changing the Rx frequency the Tx frequency will vary by the same amount. This facilitates the split operation or repeater operation. You can also set the Tx frequency so that it follows exactly the Rx frequency (simplex).

The amount of shift is simply set by changing the frequency in the Tx tab.

4: Bias tee

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

5:RF amp

Use this checkbox to toggle the extra low noise amplifier (LNA). This gives an additional gain of 14 dB.

6: Device sample rate

This is the HackRF device ADC 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 arrows. Pressing shift simultaneously moves digit by 5 and pressing control moves it by 2.

7: Rx filter bandwidth

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

8: Decimation factor

The device stream from the HackRF is decimated to obtain the baseband stream. Possible values are:

  • 1: no decimation
  • 2: divide device stream sample rate by 2
  • 4: divide device stream sample rate by 4
  • 8: divide device stream sample rate by 8
  • 16: divide device stream sample rate by 16
  • 32: divide device stream sample rate by 32

10: Internal LNA gain

The LNA gain can be adjusted from 0 dB to 40 dB in 8 dB steps.

11: Rx variable gain amplifier gain

The Rx VGA gain can be adjusted from 0 dB to 62 dB in 2 dB steps.