Export WAE QTC traffic to ADIF, and read it back
ADIF has no record for QTC traffic, which is why N1MM leaves it out and why a WAE log cannot be moved between databases as ADIF. The plain export now writes the contacts alone, as N1MM does: it used to write the QTC rows as contacts, with the time of the traffic in RST_SENT and the reported callsign in RST_RCVD. File > Export > Export ADIF with QTC traffic writes the whole log instead. A QTC row goes out with the station, time, band and mode, and the traffic in application-defined fields — APP_NONEMM_QTC and friends, the prefix the ADIF specification keeps for a program's own data — with the line in the comment as well so the file can be read without this program. The report columns are left off that record, because on a QTC row they hold the time and callsign of the contact being reported. Reading such a file back rebuilds the rows, so a WAE log survives the round trip whole. The item is only in the menu for a contest with traffic. Another program reading that file sees each QTC row as an ordinary contact with the station the traffic was exchanged with and ignores the extra fields. There is no way around that in ADIF, which is why the plain export is still the one to hand over. Contacts now also carry their row kind in APP_NONEMM_EXCHANGE1. Without it a WAE log read back holds contacts with no kind at all, which N1MM's own queries do not find. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0157i7PiZyqBkquxS9A6FTdQ
This commit is contained in:
@@ -171,6 +171,23 @@ public class WaeTests
|
||||
Assert.Equal(2, log.Tally.TotalMultipliers);
|
||||
}
|
||||
|
||||
/// ADIF has no QTC record, so the export writes contacts alone. N1MM says
|
||||
/// the same in its manual: "the ADIF file will not contain QTCs, only
|
||||
/// QSOs".
|
||||
[Fact]
|
||||
public void TheContactsAreTheRowsWithoutTheTraffic()
|
||||
{
|
||||
ContestLog log = LogFor(Rtty, TestLog.Germany);
|
||||
log.Add(On("JA1XYZ", 14_080, Modes.Rtty));
|
||||
log.Add(new WaeQtc(
|
||||
Callsign.Parse("JA1XYZ"), IsSent: true, 1, 10, "1435", Callsign.Parse("DL9XYZ"), 42)
|
||||
.ApplyTo(On("JA1XYZ", 14_080, Modes.Rtty)));
|
||||
|
||||
Assert.Equal(2, log.Qsos.Count);
|
||||
Qso only = Assert.Single(log.Contacts);
|
||||
Assert.Equal(WaeQtc.Contact, only.Exchange1);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AQtcGoesIntoTheLogTheWayN1mmKeepsIt()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user