1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-13 20:01:46 -05:00
sdrangel/plugins/samplesource/airspyhf
2020-04-02 05:01:00 +02:00
..
airspyhfgui.cpp Samplesources GUI file record: right click to choose file 2020-04-02 05:00:43 +02:00
airspyhfgui.h Samplesources GUI file record: right click to choose file 2020-04-02 05:00:43 +02:00
airspyhfgui.ui Samplesources GUI file record: right click to choose file 2020-04-02 05:00:43 +02:00
airspyhfinput.cpp REST API device and channel actions: extension of record action: implementation 2020-03-10 19:44:27 +01:00
airspyhfinput.h REST API device and channel actions: extension of record action: implementation 2020-03-10 19:44:27 +01:00
airspyhfplugin.cpp Added possibility to specify devices that cannot be discovered automatically. This implements #445 2019-12-16 01:03:47 +01:00
airspyhfplugin.h Plugins device enumeration optimization 2019-10-09 07:39:52 +02:00
airspyhfsettings.cpp Fixed incomplete copyright headers (2): plugins/samplesource 2019-04-11 06:57:41 +02:00
airspyhfsettings.h Fixed incomplete copyright headers (2): plugins/samplesource 2019-04-11 06:57:41 +02:00
airspyhfthread.cpp Fixed incomplete copyright headers (2): plugins/samplesource 2019-04-11 06:57:41 +02:00
airspyhfthread.h Fixed incomplete copyright headers (2): plugins/samplesource 2019-04-11 06:57:41 +02:00
airspyhfwebapiadapter.cpp REST API: config: GET (11). Support of the rest of devices 2019-08-04 20:24:44 +02:00
airspyhfwebapiadapter.h REST API: config: GET (11). Support of the rest of devices 2019-08-04 20:24:44 +02:00
CMakeLists.txt REST API: config: GET (11). Support of the rest of devices 2019-08-04 20:24:44 +02:00
readme.md Samplesources GUI file record: updated documentation 2020-04-02 05:01:00 +02:00

AirspyHF input plugin

Introduction

This input sample source plugin gets its samples from a Airspy HF+ device.

Build

The plugin will be built only if the Airspy HF library is installed in your system.

If you build it from source and install it in a custom location say: /opt/install/libairspyhf you will have to add -DAIRSPYHF_DIR=/opt/install/libairspyhf to the cmake command line.

Note: if you use binary distributions this is included in the bundle.

Interface

For controls 10 to 13 to be effective you will need a recent version (up to date in January 2019) of both libairspy and the firmware.

AirspyHF 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
  • Magenta (or pink) 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.

1.3: Record

  • Left click: record baseband I/Q stream toggle button
  • Right click: choose record file

1.4: Stream sample rate

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

2: Lo ppm correction

This is the correction factor in ppm applied to the local oscillator. The Airspy HF LO has 1 kHz increments so anything in between is obtained by mixing the signal with a software NCO. This is actually done in the AirspyHF library when DSP is on (13).

You can reset the ppm value anytime by pressing on button (3)

3: Reset LO ppm correction

This resets the LO ppm correction (zero the value).

4: Internal DC correction

Internal SDRangel DC correction. This is useless if libairspy DSP is engaged (13)

5: Internal IQ imbalance correction

Internal SDRangel IQ imbalance correction. This is useless if libairspy DSP is engaged (13)

6: Band select

Use this combo box to select the HF or VHF range. This will set the limits of the frequency dial (1.1) appropriately and possibly move the current frequency inside the limits. Limits are given by the AirspyHF+ specifications:

  • HF: 9 kHz to 31 MHz
  • VHF: 60 to 260 MHz

7: Device to host sample rate

This is the device to host sample rate in kilo samples per second (kS/s).

Although the combo box is there to present a choice of sample rates at present the AirspyHF+ deals only with 768 kS/s. However the support library has provision to get a list of sample rates from the device in case of future developments.

8: Decimation factor

The I/Q stream from the AirspyHF to host is downsampled by a power of two before being sent to the passband. Possible values are increasing powers of two: 1 (no decimation), 2, 4, 8, 16, 32, 64. When using audio channel plugins (AM, DSD, NFM, SSB...) please make sure that the sample rate is not less than the audio sample rate.

9: Transverter mode open dialog

This button opens a dialog to set the transverter mode frequency translation options:

AirspyHF input stream transverter dialog

Note that if you mouse over the button a tooltip appears that displays the translating frequency and if translation is enabled or disabled. When the frequency translation is enabled the button is lit.

9a.1: Translating frequency

You can set the translating frequency in Hz with this dial. 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.

The frequency set in the device is the frequency on the main dial (1) minus this frequency. Thus it is positive for down converters and negative for up converters.

For example with the DX Patrol that has a mixer at 120 MHz for HF operation you would set the value to -120,000,000 Hz so that if the main dial frequency is set at 7,130 kHz the RTLSDR of the DX Patrol will be set to 127.130 MHz.

If you use a down converter to receive the 6 cm band narrowband center frequency of 5670 MHz at 432 MHz you would set the translating frequency to 5760 - 432 = 5328 MHz thus dial +5,328,000,000 Hz.

For bands even higher in the frequency spectrum the GHz digits are not really significant so you can have them set at 1 GHz. Thus to receive the 10368 MHz frequency at 432 MHz you would set the translating frequency to 1368 - 432 = 936 MHz. Note that in this case the frequency of the LO used in the mixer of the transverter is set at 9936 MHz.

The Hz precision allows a fine tuning of the transverter LO offset

9a.2: Translating frequency enable/disable

Use this toggle button to activate or deactivate the frequency translation

9a.3: Confirmation buttons

Use these buttons to confirm ("OK") or dismiss ("Cancel") your changes.

10: AGC mode

This appears to work only on HF band.

  • Off: no AGC
  • Low: AGC with low threshold
  • High: AGC with high threshold

11: LNA

This appears to work only on HF band. Turns on or off the LNA (+6dB). Gain is compensated in software.

12: Attenuator

This appears to work only on HF band and is active only if AGC is off (10). Attenuator value can be set from 0 to 48 dB in 6 dB steps.

13: LibaispyHF DSP

Turns on or off the libairspyhf DSP routines. When on the internal DC and IQ imbalance corrections (4) and (5) are useless and should be turned off.