Skip to content

Extend WSJT-X QSO Logged UDP with satellite fields - #276

Closed
magicbug wants to merge 1 commit into
mainfrom
cursor/wsjtx-qso-logged-satellite-fields-d061
Closed

magicbug wants to merge 1 commit into
mainfrom
cursor/wsjtx-qso-logged-satellite-fields-d061

Conversation

@magicbug

Copy link
Copy Markdown
Owner

Summary

MacLoggerDX (and similar tools) read WSJT-X QSO Logged (type 5) by field position. OscarWatch stopped after the ADIF propagation mode, so satellite name, sat mode, and RX frequency were missing. Loggers then treated the contact like a same-band QSO (for example RX band defaulting to the TX band).

This change appends the three utf8 fields WSJT-X 3.0.0 uses after PROP_MODE, in the same order:

  1. Satellite (SAT_NAME), via LotwSatelliteNameMapper.MapForExport with the same rules as standard ADIF export (not LoTW remap).
  2. Sat Mode (SAT_MODE): always empty for now because QsoRecord does not store ADIF sat mode.
  3. Rx Frequency (MHz as text): same value and six-decimal formatting as ADIF FREQ_RX, or empty when there is no distinct RX frequency.

Type 12 Logged ADIF, the heartbeat, and Close are unchanged.

Type 12 ADIF

AdifExporter already emits FREQ_RX and BAND_RX when the QSO record has them. FT4, Terminal, and manual logbook saves populate FreqRxHz and BandRx from the live tracker snapshot (LiveQsoLogger, QsoLogbookViewModel). No save-path fix was required in this PR; tests now assert FREQ_RX and BAND_RX in the type 12 payload for a cross-band sample.

Testing

  • dotnet test: 4796 passed, 0 failed (full solution).
  • New and updated tests in WsjtxUdpMessageTests read the type 5 frame through to the end (frame.Offset == frame.Length), including RS-44 / 435.640 MHz RX and an empty-satellite case.

This has not been tested against a live MacLoggerDX instance.

Notes

Refs #248

The upstream Network/NetworkMessage.hpp comment on SourceForge/git master still lists type 5 ending at propagation mode, but WSJT-X 3.0.0-rc1+ and field captures add Satellite, Sat Mode, and Rx Frequency after it. OscarWatch uses ADIF-style RX MHz text (435.640000). WSJT-X itself sometimes sends a shorter form (for example 438 without decimals); JTDX often sends six decimals. MacLoggerDX compatibility with our formatting is unconfirmed.

Open in Web Open in Cursor 

After the ADIF propagation mode, append Satellite, Sat Mode and Rx

Frequency so receivers such as MacLoggerDX can read SAT_NAME and split

band data by field position. Reuse AdifExporter naming and MHz formatting.


Refs #248
@magicbug

Copy link
Copy Markdown
Owner Author

Landed on main as 6598d59.

The QSO Logged message now carries the satellite name, an empty sat mode, and the RX frequency in megahertz. A cross-band retest is noted on #248.

@magicbug magicbug closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants