1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00
sdrangel/plugins/channelrx/freqtracker
2024-10-06 10:53:38 +02:00
..
CMakeLists.txt Merge pull request #2252 from srcejon/freq_scanner 2024-09-13 21:07:04 +02:00
freqtracker.cpp Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
freqtracker.h Frequency Scanner: allow scanning channels of a MIMO device 2023-12-14 21:57:49 +01:00
freqtrackerbaseband.cpp Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
freqtrackerbaseband.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
freqtrackergui.cpp Removed destroy method leftovers and Sonar lint 2024-08-27 09:54:09 +02:00
freqtrackergui.h Remove unused includes and use more direct includes 2024-04-20 19:10:18 +02:00
freqtrackergui.ui Set window width to account for miniumum width required for visible rollups. 2022-11-08 09:43:58 +00:00
freqtrackerplugin.cpp Updated plugin versions 2024-10-06 10:53:38 +02:00
freqtrackerplugin.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
freqtrackerreport.cpp Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
freqtrackerreport.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
freqtrackersettings.cpp Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
freqtrackersettings.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
freqtrackersink.cpp Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
freqtrackersink.h Remove unused includes and use more direct includes 2024-04-20 19:10:18 +02:00
freqtrackerwebapiadapter.cpp Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
freqtrackerwebapiadapter.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
readme.md plugins: fix non-matching <hx> tags in readme.md 2024-04-26 08:37:24 +02:00

Frequency tracker plugin

Introduction

This plugin can be used to track the center frequency of a carrier. It will try to adjust its center frequency on the carrier center frequency. It is normally used in conjunction with a utility program that monitors the plugin center frequency via reverse API. This utility can then make use of this information to control other plugins or any other purpose.

☞ You will find the freqtracking.py (Python script) utility program that can be used to manage frequency tracking in the scriptsapi folder of this repository. More details can be found in the Readme.md file in the same folder.

Interface

The top and bottom bars of the channel window are described here

Frequency Tracker plugin GUI

1: Frequency shift from center frequency of reception

When the tracking is active (7.1) with a FLL or PLL tracker (7.3) and the squelch is open (8) the tracking system will change the frequency shift automatically to try lock on the carrier center frequency.

Both manual and automatic controls are active at the same time and the user can force the center frequency at any one time but the tracker will try to lock it to the carrier again.

To change the frequency manually use the wheels to adjust the frequency shift in Hz from the center frequency of reception. 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.

2: Instantaneous tracker error

This is the instantaneous frequency error in Hz. It is activated as soon as the FLL or PLL tracker is selected (7.3) regardless of the tracking activation (7.1)

☞ Note that the correction is limited to +/- 1/1000th of the channel sample rate in Hz. In the screenshot example the channel sample rate is 25 kS/s and thus the correction is effective only if the tracker error is larger that +/- 25 Hz.

3: Channel power

Average total power in dB relative to a +/- 1.0 amplitude signal received in the pass band.

4: Level meter in dB

  • top bar (green): average value
  • bottom bar (blue green): instantaneous peak value
  • tip vertical bar (bright green): peak hold value

5: Decimation factor

The baseband sample rate can be decimated by a power of 2 between 1 (no decimation) and 64 the resulting sample rate in kS/s is displayed on the right. The FLL and PLL will run at this sample rate.

8: RF bandwidth

This is the bandwidth in kHz of the channel signal before demodulation. Steps are in 0.1 kHz between 1 kHz and the limit set by the sample rate (equal in kHz to the sample rate in kS/s)

7: Tracker controls

Frequency Tracker tracker controls

7.1 Tracking toggle

Use this button to enable or disable tracking. When enable the locker is closed and when disabled it is opened.

It is also used to signal PLL lock with a green background. Note that the lock status cannot be determined for FLL.

7.2 Alpha factor of frequency error EMA

The frequency error is passed through an Exponential Moving Average (EMA) stage to smooth it out. This is the decrease factor or alpha in the formula:

Si = α xi + Si-1

Alpha can be set between 0.01 and 1.0

☞ The lower alpha the lesser new values influence the average and thus the smoother the variations but also the slower the system reacts and the longer the acquisition. So you may want to start with values from 0.5 to 1.0 and reduce the value as the tracking achieves the correct frequency to reduce jitter. You may also let the system take the time to reach the correct value progressively with alpha values from 0.01 to 0.1.

7.3 Tracker type selection

You may select the type of tracker with this combo box:

  • No: No tracking
  • FLL: Frequency Locked Loop suitable for CW and FM type signals covering also any kind of digital m-ary FSK modulation. ☞ Note that for FM digital modulations the PLL may work also and sometimes with better stability.
  • PLL: Phase Locked Loop suitable for digital phase modulations i.e. m-ary PSK in power of two orders. The order can be selected with the combo on the right (7.4)

7.4 Order of PSK modulation

This is the order of m-ary PSK modulation for the PLL. It can be selected in powers of 2:

  • 1: Continuous Wave (no modulation)
  • 2: BPSK
  • 4: QPSK
  • 8: 8-PSK
  • 16: 16-PSK
  • 32: 32-PSK

7.5 Toggle root raised cosine filter

Use this toggle button to activate or de-activate the root raised cosine (RRC) filter. When active the bandpass boxcar filter is replaced by a RRC filter. This takes effect only in normal (DSB) mode (see control 14).

7.6 Tune RRC filter rolloff factor

This button tunes the rolloff factor (a.k.a alpha) of the RRC filter in 0.01 steps between 0.1 and 0.7. Default is 0.35.

8: Squelch open indicator

This indicator lights in green when the squelch is open. When the squelch is closed the tracking (if active) is suspended.

9: Squelch threshold

This is the squelch threshold in dB. The average total power received in the signal bandwidth before demodulation is compared to this value and the squelch input is open above this value. It can be varied continuously in 0.1 dB steps from 0.0 to -100.0 dB using the dial button.

10: Squelch time gate

Number of milliseconds following squelch gate opening after which the signal is declared open. 0 means squelch is declared open with no delay and is suitable for burst signals. The value can be varied in steps of 10 ms from 0 to 990 ms.

11: Spectrum display frequency span

The channel signal is decimated by a power of two before being applied to the channel spectrum display. It is a kind of zoom on the center of the spectrum.

12: Channel spectrum

This is the spectrum display of the tracker channel. When the tracker is locked to the signal the center of the channel should fall almost in the middle of the signal spectrum (ideally in the middle when the tracker error is zero). Thus the locking can be followed dynamically and it can be more reliable than the lock indicator. A channel marker shows the tracker offset from the channel center frequency (tracker error). Its width is the tracker error tolerance and is ±1/1000th of the channel width. Details on the spectrum view and controls can be found here