1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00
sdrangel/plugins/samplesink/usrpoutput
2021-04-15 15:30:29 +02:00
..
CMakeLists.txt sdrbase cmake: restored Boost_INCLUDE_DIRS 2020-11-05 20:41:33 +01:00
readme.md Document LO offset options 2020-10-25 20:08:57 +00:00
usrpoutput.cpp Fixed -Wunused-variable warnings 2020-11-14 18:45:05 +01:00
usrpoutput.h Import USRP support. 2020-10-25 11:57:48 +00:00
usrpoutputgui.cpp Fixed -Wunused-parameter warnings 2020-11-14 11:13:32 +01:00
usrpoutputgui.h Import USRP support. 2020-10-25 11:57:48 +00:00
usrpoutputgui.ui Fix some typos spotted by lintian 2021-01-19 12:36:56 +01:00
usrpoutputplugin.cpp Avoid global QString init in plugins 2020-11-22 04:06:32 +01:00
usrpoutputplugin.h Avoid global QString init in plugins 2020-11-22 04:06:32 +01:00
usrpoutputsettings.cpp Fixed -Wunused-variable warnings 2020-11-14 18:45:05 +01:00
usrpoutputsettings.h Add master clock rate display to GUI. 2020-10-26 14:39:12 +00:00
usrpoutputthread.cpp Fix compiler warning 2020-10-26 14:50:00 +00:00
usrpoutputthread.h USRP driver improvements. 2020-10-23 13:12:37 +01:00
usrpoutputwebapiadapter.cpp Fixed wrong structure being used in some sample source and sink plugins web API adapters. Fixes #842 2021-04-15 15:30:29 +02:00
usrpoutputwebapiadapter.h Add USRP device support. 2020-10-02 22:45:28 +01:00

USRP output plugin

Introduction

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

Interface

USRP output plugin GUI

1: 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 to stop, plug back in, check the source on the sampling devices control panel and start again.

2A: Sample rate

This is the sample rate at which IQ samples are transfered from SDRangel to the device, in kS/s (k) or MS/s (M).

2B: Stream sample rate

In host to device sample rate input mode (8A) this is the baseband I/Q sample rate in kS/s. This is the host to device sample rate (8) divided by the software interpolation factor (9).

In baseband sample rate input mode (8A) this is the host to device sample rate in kS/s. This is the baseband sample rate (8) multiplied by the software interpolation factor (9)

3: Center frequency

This is the center frequency of transmission in kHz.

3A: Center frequency units

This is the center frequency units thus kHz (fixed)

4: Channel number

USRP can support 2x2 MIMO device so it has two transmitting channels. This shows the corresponding Tx channel index (0 or 1).

5: Antenna selection

Select the antenna to use. The supported antennas will depend upon the USRP device, but may include "TX/RX".

6: Transverter mode open dialog

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

USRP source 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.

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

7.2: Translating frequency enable/disable

Use this toggle button to activate or deactivate the frequency translation

7.3: Confirmation buttons

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

7: Clock source

Use this combo box to select the clock source for the device, such as "internal", "external" or "gpsdo". The available choices will depend upon the USRP device. If a selected clock is not detected, it will be reset back to "internal".

8: Sample rate

This is the device to/from host stream sample rate or baseband sample rate in samples per second (S/s). The control (8A) is used to switch between the two input modes. The device to/from host stream sample rate is the same for the Rx and Tx systems.

The limits are adjusted automatically. In baseband input mode the limits are driven by the software interpolation factor (9). You may need to increase this interpolation factor to be able to reach lower values.

This is the device to/from host stream sample rate in S/s. It is the same for the Rx and Tx systems.

Use the wheels to adjust the sample rate. Pressing shift simultaneously moves digit by 5 and pressing control moves it by 2. 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.

8A: Host to device sample rate / Baseband sample rate input toggle

Use this toggle button to switch the sample rate input next (8) between host to device sample rate and baseband sample rate input. The button shows the current mode:

  • SR: host to device sample rate input mode. The baseband sample rate (2B) is the host to device sample rate (10) divided by the software interpolation factor (9).
  • BB: baseband sample rate input mode. The host to device sample rate (2A) is the baseband sample rate (10) multiplied by the software interpolation factor (9).

9: Software interpolation factor

The I/Q stream from the baseband can be upsampled by a power of two by software inside the plugin before being sent to the USRP device. Possible values are increasing powers of two: 1 (no interpolation), 2, 4, 8, 16, 32.

10: Gain

Use this slider to adjust the global gain of the Tx chain. The allowable values of gain while depend upon the USRP device. The value in dB appears at the right of the slider.

11: Tx hardware filter bandwidth

This is the Tx hardware filter bandwidth in kHz in the AD936x device for the given channel. Use the wheels to adjust the value. Pressing shift simultaneously moves digit by 5 and pressing control moves it by 2.

Tx LO offset

This adjusts the Tx local oscillator (LO) frequency from the centre frequency by the given amount in kHz, and the NCOs are used to digitally shift the signal to the set centre frequency. This can be used to push the Tx LO leakage (which for the AD396x is -50dBc) out of band. The shift should be less than half of the sample rate.

12: Stream status indicator

This label turns green when data has been transmitted to the device.

13: Stream warning indicators

  • U: turns red if stream experiences underruns
  • D: turns red if stream experiences packet drop outs

The stream warning indicators are reset when the acqusition is started.