1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00
sdrangel/plugins/channelrx/demodft8
2023-01-27 21:42:41 +01:00
..
CMakeLists.txt FT8 demod: use table model and view to optimize messge table update and filtering 2023-01-26 18:16:40 +01:00
ft8buffer.cpp FT8 demod: test with .wav files 2023-01-18 23:00:59 +01:00
ft8buffer.h FT8 demod: test with .wav files 2023-01-18 23:00:59 +01:00
ft8demod.cpp FT8 demod: band presets 2023-01-22 20:08:32 +01:00
ft8demod.h FT8 demod: band presets 2023-01-22 20:08:32 +01:00
ft8demodbaseband.cpp FT8 demod: moved sending to Map feature to the demod worker 2023-01-24 01:07:51 +01:00
ft8demodbaseband.h FT8 demod: implemented messages in GUI 2023-01-20 06:42:11 +01:00
ft8demodfilterproxy.cpp FT8 demod: use table model and view to optimize messge table update and filtering 2023-01-26 18:16:40 +01:00
ft8demodfilterproxy.h FT8 demod: use table model and view to optimize messge table update and filtering 2023-01-26 18:16:40 +01:00
ft8demodgui.cpp FT8 demod: added documentation and adjust GUI and file locations 2023-01-27 11:42:11 +01:00
ft8demodgui.h FT8 demod: use table model and view to optimize messge table update and filtering 2023-01-26 18:16:40 +01:00
ft8demodgui.ui FT8 demod: added documentation and adjust GUI and file locations 2023-01-27 11:42:11 +01:00
ft8demodsettings.cpp FT8 demod: added documentation and adjust GUI and file locations 2023-01-27 11:42:11 +01:00
ft8demodsettings.h FT8 demod: use table model and view to optimize messge table update and filtering 2023-01-26 18:16:40 +01:00
ft8demodsettingsdialog.cpp FT8 demod: filter messages 2023-01-23 07:20:41 +01:00
ft8demodsettingsdialog.h FT8 demod: band presets 2023-01-22 20:08:32 +01:00
ft8demodsettingsdialog.ui FT8 demod: band presets 2023-01-22 20:08:32 +01:00
ft8demodsink.cpp FT8 demod: test with .wav files 2023-01-18 23:00:59 +01:00
ft8demodsink.h FT8 demod: test with .wav files 2023-01-18 23:00:59 +01:00
ft8demodwebapiadapter.cpp
ft8demodwebapiadapter.h
ft8demodworker.cpp FT8 demod: fixed MsgReportFT8Messages handling 2023-01-27 21:42:41 +01:00
ft8demodworker.h FT8 demod: make FT8::FFTEngine a singleton. Name worker threads for debugging 2023-01-21 12:22:05 +01:00
ft8plugin.cpp
ft8plugin.h
readme.md FT8 demod: added documentation and adjust GUI and file locations 2023-01-27 11:42:11 +01:00

FT8 demodulator plugin

Introduction

This plugin can be used to demodulate and decode FT8 signals. FT8 is used by amateur radio to perform contacts (QSOs) with very weak signals. It is used mostly but not limited to HF bands. The protocol and modulation details are described here

The decoder code is based on ft8mon code written by Robert Morris, AB1HL. The core of the decoder is stored in a separate libft8 library in the ft8 folder of this repository and is placed under the FT8 namespace.

The excellent work of Robert Morris makes the decoder on par or even slightly better than the original WSJT-X code.

Interface

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

FT8 Demodulator plugin GUI

This interface is divided in 3 collapsible sections:

  • A: RF and AF settings
  • B: Demodulator baseband spectrum
  • C: FT8 settings

A: RF and AF settings

FT8 Demodulator plugin A GUI

A.1: Frequency shift from center frequency of reception

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 mouse wheel 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.

A.2: Channel power

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

A.3: Level meter in dB

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

☞ The channel marker in the main spectrum display shows the actual band received taking in channel filtering into account.

A.4: Spectrum display frequency span

The FT8 decoding sample rate of 12 kS/s is further decimated by powers of two for the spectrum display (B) and in RF filter limits. This effectively sets the total available bandwidth depending on the decimation:

  • 1: 6 kHz
  • 2: 3 kHz. This shows the full range of a standard FT8 baseband and is the default position
  • 4: 1.5 kHz

A.5: FFT filter window

The band pass filter is a FFT filter. This controls the FFT window type:

  • Bart: Bartlett
  • B-H: 4 term Blackman-Harris
  • FT: Flat top
  • Ham: Hamming
  • Han: Hanning
  • Rec: Rectangular (no window)
  • Kai: Kaiser with alpha = 2.15 (beta = 6.76) gives sidelobes < -70dB
  • Blackman: Blackman (3 term - default)
  • B-H7: 7 term Blackman-Harris

A.6: Select filter in filter bank

There are 10 filters in the filter bank with indexes 0 to 9. This selects the current filter in the bank the filter index is displayed at the right of the button. The following controls are covered by the filter settings:

  • Span (8)
  • FFT window (9)
  • BW (11)
  • Low cut (12)

A.7: AGC toggle

Use this checkbox to toggle AGC on and off.

This AGC is based on the calculated magnitude (square root of power of the filtered signal as I² + Q²) and will try to adjust audio volume as if a -20dB power signal was received.

As AGC compresses the signals you have to experiment whether AGC or no AGC give the best result in decoding signals. With AGC on it is easier to adjust the volume (A.10) as the audio signal will be more stable.

A.8: RF filter low cutoff

Values are expressed in kHz and step is 100 Hz.

A.9: RF filter high cutoff

Values are expressed in kHz and step is 100 Hz.

A.10: Volume

This is the volume of the audio signal in dB from -10 (0.1) to 40 (10000). It can be varied continuously in 1 dB steps using the dial button. When AGC is engaged it is recommended to set a low value in dB not exceeding 3 db (gain 2). When AGC is not engaged the volume entirely depends on the RF power and can vary in large proportions. Hence setting the value in dB is more convenient to accommodate large differences.

A.11: Volume meter

This shows the level of the signal entering the FT8 demodulator and decoder and peaks (shown by the tiny red vertical bar) should never exceed 100%. In fact there is a 10% guard so 100% is actually 90% of the signal volume. Note that the decoder will work well even with a few % volume however you should try to set the volume (A.10) so that big signals reach at least ~20% to have the best dynamic range.

Because this volume is based on he RF signal strength it can vary in large proportions and will be more stable if AGC (A.7) is engaged.

B: Demodulator baseband spectrum

This is the spectrum display of the demodulated signal (SSB) or translated signal (DSB). Controls on the bottom of the panel are identical to the ones of the main spectrum display. Details on the spectrum view and controls can be found here

C: FT8 settings

FT8 Demodulator plugin C GUI

The wrench (tool) button (C.1) is detailed at the bottom of the section.

C.2: Number of decodes

Shows the number of decodes for the last 15s sequence (left of slash) and the total since the decoder was started (right of slash)

C.3: Move to bottom of messages table

Use this button to scroll down to the bottom of the message table. In this position newer messages will automatically trigger moving to the bottom.

C.4: Filter messages

Toggles the filtering of messages. Messages are filtered based on the selected cell in the table. Only certain cells will be taken into consideration

  • UTC: will filter messages based on the message time slot
  • df: will filter messages based on the carrier frequency shift. A ±4 Hz tolerance is supplied which just exceeds a FT8 symbol width
  • Call1: will filter messages matching the call1 area value either in the call1 or call2 areas
  • Call2: same as above but taking the call2 value
  • Loc: will filter messages matching the value in the locator (loc) area

C.5: Band preset selection

Selects which band preset can be applied with the (C.6) button

C.6: Apply band preset

Applies the band preset selected in (C.5)

C.7: Clear messages table

Empties the message table (C.10)

C.8: Log messages

Toggles the logging of messages. Messages will be logged in the same format as the original WSJT-X format. The splitting and naming of files is different however.

The file name is constructed as follows where date is the day date in YYYYMMDD format:

<date>_d<device index>c<channel index>.txt

Files will be stored in the system application data location in the ft8/logs folder. The application dat location depends on the O/S:

  • Linux: ~/.local/share/f4exb/SDRangel
  • Windows: C:\Users\<your user>\AppData\Local\f4exb\SDRangel

C.9: Record baseband

The baseband (audio) may be recorded as a 12 kHz mono PCM .wav file similarly to what can be done with the original WSJT-X program. Each record is the 15s FT8 period (180000 16 bit signed samples or 360000 data bytes). Files are stored in the system application data location (see above for details) in the ft8/save folder and have the following file name format:

<date>_<time>.wav

Where date is the slot date in YYYYMMDD format (in WSJT-X this is YYMMDD) and time is the slot time in HHmmss format.

C.10: Messages table

Displays the received messages in a table which columns are the following:

  • UTC: UTC time in HHmmss format of the FT8 slot
  • P: LDPC decoder pass index that was successful (0 to 2) as there are 3 passes
  • OKb: Number of correct bits in the message before FEC correction. Maximum is 174 in which case no FEC would be needed.
  • dt: Message start time shift in seconds from standard FT8 time slot
  • df: Message frequency shift in Hz from base frequency. This is the shift of the lowest frequency symbol
  • SNR: Signal to noise ratio in dB transposed in a 2.5 kHz bandwidth (WSJT-X standard). The actual SNR is this value plus 26 dB.
  • Call1: This is the first call area and may contain the caller callsign, a CQ or a custom 13 character message in which case the second call and locator areas are empty
  • Call2: This is the second call area and will contain the callsign of the responding station
  • Loc: Locator area which contains the 4 character Maidenhead locator, a report, an acknowledgement (RRR) or a greetings (73 or RR73)
  • Info: FT8 decoder information if any. This comes from he original ft8mon code

C.1: More FT8 decoder settings

This button will open a dialog for more settings

FT8 Demodulator plugin C1 GUI

C.1.1: Number of decoder threads

When processing the audio baseband several instances of the core decoder will be spawned in separate threads. This adjusts the number of threads. You have to experiment with it to find which is the best number for you. The default of 3 will normally yield good results comparable if no better to what is obtained with the original WSJT-X software.

C.1.2: Decoder time budget

This is the time in seconds after which the decoder threads will be prompted to stop. It can be varied from 0.1 to 5 seconds. You can imagine that the longer the decoder runs the more messages it will harvest however the default of 0.5s will be enough in most cases. You can still experiment with it to find what value is the best in your own case.

C.1.3: Band presets table

This table shows the band presets values that will appear in (C.5)

  • Name: name of the preset (by default the band wavelength denomination) that will be shown in (C.5)
  • F (kHz): Base frequency in kHz. This is the RF zero frequency of the FT8 baseband
  • df (kHz): Channel offset in kHz from device center frequency.

You can edit these values by clicking on the cell in the table.

C.1.4: Add preset

Use this button to create a new preset. It will take the values from the row of the selected cell in the table (if selected) and put the new preset at the bottom of the table

C.1.5: Delete preset

Delete the preset designated by the selected cell in the table.

C.1.6: Move up preset

Move up the preset designated by the selected cell in the table.

C.1.7: Move down preset

Move down the preset designated by the selected cell in the table.

C.1.8: Restore defaults

This restores the default band preset values:

  • 160m: 1840 kHz
  • 80m: 3573 kHz
  • 60m: 5357 kHz
  • 40m: 7074 kHz
  • 30m: 10136 kHz
  • 20m: 14074 kHz
  • 17m: 18100 kHz
  • 15m: 21074 kHz
  • 12m: 24915 kHz
  • 10m: 28074 kHZ
  • 6m: 50313 kHz
  • 4m: 70100 kHz
  • 2m: 144120 kHz
  • 1.25m: 222065 kHz
  • 70cm: 432065 kHz

Channel offsets are all set to 0 kHz.

C.1.9 Commit changes

Click on the "OK" button to commit changes and close dialog.

C.1.9 Cancel changes

Click on the "Cancel" button to close dialog without making changes.