Skip to content

Optimize ADIF Export to Exclude Redundant TX Frequency #714

@oliverbross

Description

@oliverbross

Feature Description

Problem:
Currently, QLog includes the FREQ_TX field in ADIF exports even when the TX frequency is identical to the RX frequency (and split mode is inactive). This creates unnecessary redundancy in exported logs and can cause display inconsistencies when importing into other logging software (e.g., CloudLog, WaveLog).

Observed Behavior in Other Software:
Tested with RumLog, KLog, MacLoggerDX, SwissLog, Log4OM, and others:

  • These applications only export FREQ_TX in ADIF if:
    1. The TX frequency differs from RX (e.g., split operation), or
    2. Split mode is explicitly enabled.
  • Otherwise, the ADIF contains only FREQ (RX), avoiding duplicate data.

Impact:

  • Redundant FREQ_TX fields inflate file size and may trigger warnings in third-party tools.
  • Inconsistent with standard logging software behavior.

Proposed Solution:
Modify QLog’s ADIF export logic to:

  1. Omit FREQ_TX if:
    • FREQ_TX is blank/unset or matches FREQ_RX, and
    • Split mode is not active.
  2. Include FREQ_TX only when:
    • TX/RX frequencies differ, or
    • Split mode is enabled.

Implementation Example (Pseudocode):

if (freq_tx != freq_rx) or (split_mode_enabled):
    adif_output.write("<FREQ_TX:{}>".format(freq_tx))

Benefits:

  • Aligns with industry-standard ADIF handling.
  • Reduces file clutter and improves interoperability.
  • Minimal code changes required.

References:

  • ADIF standard (v3.1.4): Recommends omitting redundant fields.
  • Behavior verified in RumLogNG, Log4OM v2, and others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Done - branch: testing_0.46

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions