sdrangel/plugins/samplesource/hackrfinput/readme.md

103 wiersze
4.3 KiB
Markdown
Czysty Zwykły widok Historia

2017-01-11 18:48:45 +00:00
<h1>HackRF input plugin</h1>
<h2>Introduction</h2>
2018-04-21 21:14:36 +00:00
This input sample source plugin gets its samples from a [HackRF device](https://greatscottgadgets.com/hackrf/).
2017-01-11 18:48:45 +00:00
<h2>Build</h2>
The plugin will be built only if the [HackRF host library](https://github.com/mossmann/hackrf) 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 `-DHACKRF_DIR=/opt/install/libhackrf` to the cmake command line.
2017-01-11 18:48:45 +00:00
The HackRF Host library is also provided by many Linux distributions and is built in the SDRangel binary releases.
<h2>Interface</h2>
![HackRF input plugin GUI](../../../doc/img/HackRFInput_plugin.png)
<h3>1: Common stream parameters</h3>
![Remote source input stream GUI](../../../doc/img/RemoteInput_plugin_01.png)
2017-01-11 18:48:45 +00:00
<h4>1.1: Frequency</h4>
This is the center frequency of reception in kHz.
<h4>1.2: Start/Stop</h4>
Device start / stop button.
2017-01-11 18:48:45 +00:00
- Blue triangle icon: device is ready and can be started
- Green square icon: device is running and can be stopped
2018-04-21 21:14:36 +00:00
- 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.
2017-07-21 06:34:54 +00:00
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.
2017-01-11 18:48:45 +00:00
2017-07-21 06:34:54 +00:00
The settings on Rx or Tx tab are reapplied on start so these settings can be considered independent.
2017-01-11 18:48:45 +00:00
<h4>1.3: Record</h4>
Record baseband I/Q stream toggle button
<h4>1.4: Baseband sample rate</h4>
Baseband I/Q sample rate in kS/s. This is the device sample rate (4) divided by the decimation factor (6).
2017-01-11 18:48:45 +00:00
<h3>2: Local Oscillator correction</h3>
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.
<h3>3: Auto correction options</h3>
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.
2017-07-21 06:34:54 +00:00
2017-01-11 18:48:45 +00:00
<h3>4: Bias tee</h3>
Use this checkbox to toggle the +5V power supply on the antenna connector.
<h3>5:RF amp</h3>
Use this checkbox to toggle the extra low noise amplifier (LNA). This gives an additional gain of 14 dB.
2017-01-11 18:48:45 +00:00
<h3>6: Device sample rate</h3>
This is the HackRF device ADC sample rate in S/s.
2018-04-21 21:14:36 +00:00
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.
2017-01-11 18:48:45 +00:00
<h3>7: Decimation factor</h3>
2017-01-11 18:48:45 +00:00
The device stream from the HackRF is decimated to obtain the baseband stream. Possible values are:
- **1**: no decimation
2018-04-21 21:14:36 +00:00
- **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
2017-01-11 18:48:45 +00:00
<h3>8: Baseband center frequency position relative the the HackRF Rx center frequency</h3>
- **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 as:
- if decimation n is 4 or lower: Fc = SR/2^(log2(n)-1). The device center frequency is on the side of the baseband. You need a RF filter bandwidth at least twice the baseband.
- if decimation n is 8 or higher: Fc = SR/n. The device center frequency is half the baseband away from the side of the baseband. You need a RF filter bandwidth at least 3 times the baseband.
<h3>9: Rx filter bandwidth</h3>
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.
2017-01-11 18:48:45 +00:00
<h3>10: Internal LNA gain</h3>
The LNA gain can be adjusted from 0 dB to 40 dB in 8 dB steps.
<h3>11: Rx variable gain amplifier gain</h3>
The Rx VGA gain can be adjusted from 0 dB to 62 dB in 2 dB steps.