1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-25 12:12:02 -05:00
sdrangel/plugins/samplesource/hackrfinput
2019-04-02 23:29:10 +02:00
..
CMakeLists.txt Fixes for Arch. Manual merge of pull request #183. DATV demod: fixed some of ffmpeg deprecation warnings 2018-06-13 00:20:51 +02:00
hackrfinput.cpp Series of shifted decimators matching shifted interpolators. Applied to HackRF input 2019-04-02 01:10:03 +02:00
hackrfinput.h HackRF: 2 way Rx/Tx frequency synchronization 2019-03-31 00:40:42 +01:00
hackrfinput.pro Windows build updates 2019-03-13 01:08:53 +01:00
hackrfinputgui.cpp HackRF input: match sample rate limits with the Tx part (1 to 10 MS/s) 2019-04-02 23:29:10 +02:00
hackrfinputgui.h HackRF: suppression of Rx to Tx link frequency. Synchronization of Tx to Rx device center frequency. 2019-03-30 20:44:55 +01:00
hackrfinputgui.ui HackRF: suppression of Rx to Tx link frequency. Synchronization of Tx to Rx device center frequency. 2019-03-30 20:44:55 +01:00
hackrfinputplugin.cpp HackRF: suppression of Rx to Tx link frequency. Synchronization of Tx to Rx device center frequency. 2019-03-30 20:44:55 +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: suppression of Rx to Tx link frequency. Synchronization of Tx to Rx device center frequency. 2019-03-30 20:44:55 +01:00
hackrfinputsettings.h HackRF: suppression of Rx to Tx link frequency. Synchronization of Tx to Rx device center frequency. 2019-03-30 20:44:55 +01:00
hackrfinputthread.cpp Series of shifted decimators matching shifted interpolators. Applied to HackRF input 2019-04-02 01:10:03 +02:00
hackrfinputthread.h Removed 24/16 bit differentiation on Decimator instantiation where possible 2018-05-01 23:57:12 +02:00
readme.md HackRF: updated documentation 2019-04-02 22:29:17 +02:00

HackRF input plugin

Introduction

This input sample source plugin gets its samples from a HackRF device.

Interface

HackRF input plugin GUI

1: Common stream parameters

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

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

8: Baseband center frequency position relative the the HackRF Rx center frequency

  • Cen: the decimation operation takes place around the HackRF 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 depending on the decimaton factor:

  • 2: Fc = SR/4
  • 4: Fc = 3*SR/8
  • 8: Fc = 5*SR/16
  • 16: Fc = 11*SR/32
  • 32: Fc = 21*SR/64
  • 64: Fc = 21*SR/128

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

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.

Frequency synchronization with Tx

When a device set for the same physical device is present the device center frequencies are synchronized because there is only one LO for the physical device.

When the center frequency position Fc (control 8) is set to center (Cen) in both Rx and Tx the actual frequency of reception and transmission are the same.

In other cases for both frequencies to match you have to set the same sample rate and Fc position (either Inf or Sup) in the Rx and Tx.