Send WAE QTC traffic on CW

The QTC window took traffic down and read it out of the log, but nothing left
the window: on CW the operator had to send the lines by hand. It now puts them
on the air through the entry window's keyer, the way N1MM's QTC window sends
through its own entry window, so the same macros are expanded and the same
transmitter is pointed at first.

Sending a series: Send Hdr keys the header, Send1 to Send10 key one line each —
the time, the callsign and the serial number — and Close keys the TU message
when one is set. Taking one down: Hdr Agn asks for the header again, and shift
with Enter in a box asks for that one field again and clears it.

The messages and their defaults are N1MM's: AGN TIME, AGN CALL, AGN SERIAL, the
hard-coded HDR AGN with its two spaces, and a TU that sends nothing until the
operator writes one. So is the field spacing, written N1MM's way with S for a
space. All five are in Setup, where the note about the missing settings used to
be.

Nothing is sent on SSB or RTTY. N1MM plays four recordings on SSB and sends
RTTY from its digital window, and there is neither here, so on those modes the
buttons move the cursor as before. RX Ready sends nothing on any mode, because
a recording is all N1MM ever sends from it. Serial numbers go out as digits:
N1MM can send cut numbers and nothing here does, in any message.

Driven under Xvfb against a fake cwdaemon, in a WAE CW contest with four
contacts logged. Sending, it keyed QTC 1/2, 2257 DL1AAA 01, 2257 DL2BBB 01,
then QTC 2/2 with its two lines and TU DE W1ABC on close. Receiving, HDR  AGN,
AGN TIME, AGN CALL and AGN SERIAL.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RoGtneMQaz4M9w7Kk49AVD
This commit is contained in:
2026-08-30 23:03:17 +00:00
co-authored by Claude Opus 5
parent ff46cb00ed
commit dc1c593b4d
11 changed files with 263 additions and 26 deletions
+36
View File
@@ -0,0 +1,36 @@
namespace Nonemm.Session;
/// What a station sends on CW while exchanging QTC traffic, and N1MM's
/// defaults for the parts an operator can change.
///
/// CW only. N1MM sends recorded voice messages on SSB and its digital window's
/// templates on RTTY, and this program has neither.
public static class QtcMessages
{
/// The gap between the fields of a QTC line, written the way N1MM writes
/// it: `S` stands for a space, so `SS` is two of them and anything else
/// goes out as it is.
public const string DefaultFieldSpacing = "S";
public const string DefaultTimeAgain = "AGN TIME";
public const string DefaultCallAgain = "AGN CALL";
public const string DefaultNumberAgain = "AGN SERIAL";
/// Asking for the header again. N1MM writes this one into the program
/// rather than into its settings, two spaces and all.
public const string HeaderAgain = "HDR AGN";
public static string Spacing(string setting) =>
setting.Replace("S", " ", StringComparison.Ordinal);
/// One line of traffic: the time, the callsign and the serial number. The
/// fields go out as they stand in the window, because what the window shows
/// is what the other station has to write down.
public static string Line(string time, string call, string number, string spacing)
{
string gap = Spacing(spacing);
return $"{time.Trim()}{gap}{call.Trim()}{gap}{number.Trim()}";
}
}