You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
f4exb 0282a596ca Publish version v8.0.0 1 month ago
..
tests Packet Demod: make regression tests portable across Qt versions 2 months ago
CMakeLists.txt Packet Demod: make regression tests portable across Qt versions 2 months ago
packetdemod.cpp Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemod.h ChannelAPI: Add getChannelSampleRate and getAudioSampleRate. 2 months ago
packetdemodbaseband.cpp tree wide: Fix message ownership and reporting for unhandled queue messages 2 months ago
packetdemodbaseband.h Apply atomic settings to channel Rx plugins part 1. Part of #1329 10 months ago
packetdemodcore.h packetdemodcore: Prevent division by zero in rate estimation 2 months ago
packetdemodframer.h Packet Demod: bound HDLC state outside frames 2 months ago
packetdemodg3ruh.h Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemodgui.cpp Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemodgui.h Packet Demod: Add MLSE demod and Chase decoding to improve performance. 4 months ago
packetdemodgui.ui Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemodplugin.cpp Publish version v8.0.0 1 month ago
packetdemodplugin.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 3 years ago
packetdemodsettings.cpp Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemodsettings.h Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemodsink.cpp Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemodsink.h Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemodtonecorrelator.h Packet Demod: Add MLSE demod and Chase decoding to improve performance. 4 months ago
packetdemodwebapiadapter.cpp Packet Demod: add native G3RUH 9600 receive mode 2 months ago
packetdemodwebapiadapter.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 3 years ago
readme.md Packet Demod: add native G3RUH 9600 receive mode 2 months ago

readme.md

Packet Radio Demodulator Plugin

Introduction

This plugin can be used to demodulate packet radio (APRS/AX.25) data packets. Received packets can be sent to the APRS Feature for decoding and display.

Interface

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

Packet Demodulator plugin GUI

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 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: Channel power

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

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

4: Modulation

This specifies the baud rate and modulation that is used for the packet transmission. Supported modes are 1200 baud AFSK and 9600 baud G3RUH scrambled FSK (AX.25). The latter descrambles with 1 + x^12 + x^17 before NRZI decoding. It does not decode arbitrary 9600-baud satellite telemetry or protocols with different framing/scrambling.

Selecting a mode in the GUI sets the recommended RF bandwidth (12.5 kHz for AFSK, 20 kHz for G3RUH). Adjust this for the transmitter and residual carrier offset. REST clients select mode: 1 and should also set rfBandwidth: 20000; changing the mode through REST preserves the explicitly configured bandwidth. Old presets without a mode load as 1200 AFSK.

5: RF Bandwidth

This specifies the bandwidth of a LPF that is applied to the input signal to limit the RF bandwidth.

6: MLSE - Maximum likelihood sequence estimation

Available in 1200 AFSK mode only. Its saved preference is retained while using 9600 G3RUH.

Detects on the complex baseband instead of running the tone correlators on the output of an FM discriminator. Worth about 9.5 dB of sensitivity. Enabled by default; unchecking it reverts to the standard demodulator.

A discriminator takes the argument of every sample, and below roughly 8 dB carrier to noise in the channel it starts producing phase slips, at which point its output degrades far faster than its input does - the FM threshold effect. Nothing downstream can recover what has already been destroyed, which is why the standard demodulator falls off a cliff rather than degrading gracefully.

Bell 202 is phase continuous, and the audio phase advances by exactly one cycle per mark bit and 11/6 per space, so at bit boundaries it takes only six values. That makes the signal a six state machine with one exact waveform per state transition, and a sequence detector can correlate against those waveforms directly. Nothing takes the argument of a sample, so there is no threshold to fall off.

Measured against generated packets in AWGN, 120 transmitted at each point, with carrier to noise quoted in the 12.5 kHz RF bandwidth:

Carrier to noise MLSE Standard demodulator
8 dB 100% 88%
6 dB 100% 10%
4 dB 100% 0%
2 dB 100% 0%
0 dB 98% 0%
-2 dB 78% 0%
-3 dB 40% 0%
-4 dB 8% 0%

Half the packets still arrive at -2.7 dB, against +6.9 dB for the standard demodulator.

Symbol timing and carrier offset are searched rather than tracked, because a timing loop driven by a discriminator is exactly what stops working at the sensitivity this is here to reach. 16 timing hypotheses and 5 carrier hypotheses spanning +/-600 Hz run in parallel, and only while a signal is actually present. Because many of those detectors decode the same transmission, frames are deduplicated over a one second window, and because a 16-bit CRC is not enough on its own at that rate, frames are additionally required to have valid callsigns.

Adapting to the transmitter

Real transmitters are not on their nominal settings, and a sequence detector correlating against exact waveforms is sensitive to that in a way a discriminator is not. Each burst is therefore measured - symbol rate, carrier offset, deviation, tone frequencies and the shape of the tone transitions - and the detectors are retuned onto what was measured.

A burst the live detectors fail on is replayed from a buffer using the tuning measured from that same burst, which is not known until the burst has ended. The replay also tries both branch metrics and, where the symbol rate could not be measured confidently, a spread of rates.

Bell 202 tones (mark 1200, space 2200) and V.23 tones (mark 1300, space 2100) are both handled without configuration. A misconfigured or mis-fitted modem transmitting AX.25 on V.23 tones is perfectly readable but decodes as nothing at all under the Bell 202 assumption, and the 100 Hz difference is invisible on a spectrum display. Which pair a station is using is learned from frames that pass their CRC, so the detectors move onto the right pair after the first couple of packets and stay there.

Fading remains hard for it, as it is for any coherent detector. The branch metric is chosen from how much the signal faded during the burst, and the replay tries both regardless, so a fading burst is not lost simply because the choice was made wrongly in advance.

7: Chase - Chase decoding depth

Available in 1200 AFSK mode only. G3RUH descrambling spreads each erroneous radio symbol to three descrambled symbols; the existing independent-symbol Chase search does not model this. G3RUH uses normal CRC validation with no Chase retries.

When a frame reaches a closing flag but fails its CRC, it is usually only a few marginal symbol decisions away from being correct. The demodulator keeps how confident each decision was, and on a CRC failure retries the frame with the least confident symbols inverted, accepting the result if the CRC then passes.

Because AX.25 has no forward error correction and a 16-bit CRC lets roughly 1 in 65536 wrong frames through, recovered frames are additionally required to have valid callsigns - 1 to 6 uppercase alphanumeric characters - which random data essentially never satisfies. This check is applied only to frames recovered this way, never to frames that decode normally.

Higher values recover more packets and cost more CPU, both roughly in proportion to 2^n. The default of 6 recovers essentially everything that is recoverable; 0 disables the feature.

8: Filter Packets From

Entering a regular expression in the From field displays only packets where the source address, displayed in the From column, matches the regular expression.

9: Filter Packets To

Entering a regular expression in the To field displays only packets where the destination address, displayed in the To column, matches the regular expression.

10: Filter PID No L3

Checking this option displays only packets where the PID (Protocol ID) field is 0xf0 (no L3). This value is used by APRS and BBS data packets, and helps to filter out control packets.

11: Clear Packets from table

Pressing this button clears all packets from the table.

12: UDP

When checked, received packets are forwarded to the specified UDP address (13) and port (14).

13: UDP address

IP address of the host to forward received packets to via UDP.

14: UDP port

UDP port number to forward received packets to.

15: Use Date and Time from File

When checked, if the source device is a File Input device, the date and time used for packet reception time is taken from the file playback time. Otherwise, the current system clock time is used.

16: Start/stop Logging Packets to .csv File

When checked, writes all received packets to a .csv file.

17: .csv Log Filename

Click to specify the name of the .csv file which received packets are logged to.

18: Read Data from .csv File

Click to specify a previously written .csv log file, which is read and used to update the table.

Received Packets Table

The received packets table displays the contents of the packets that have been received. Only packets with valid CRCs are displayed.

  • Date - The date the packet was received.
  • Time - The time the packet was received.
  • From - The source address / callsign of the sender of the packet.
  • To - The destination address.
  • Via - List of addresses of repeaters the packet has passed through or directed via.
  • Type - The AX.25 frame type.
  • PID - Protocol Identifier.
  • Data - The AX.25 information field displayed as UTF-8 character string.
  • Data (Hex) - The AX.25 information field displayed as hexadecimal.

Right clicking on the table header allows you to select which columns to show. The columns can be reordered by left clicking and dragging the column header. Right clicking on an item in the table allows you to copy the value to the clipboard.