ESM is how most people run N1MM, and it was not here at all — not in the code,
not even in the list of what is missing. Config ▸ ESM turns it on and it stays
on between runs.
The decision is a table in N1MM's function-key documentation, and it is written
here as one: the state of the callsign and exchange boxes, whether the station
is running or searching, and whether the call and the exchange have gone out
already, give the function keys Enter sends and whether the contact is logged
after them. Esm.Decide is that table and nothing else, so it is tested against
every row rather than by clicking.
Searching: type a call, Enter sends your call, space moves to the exchange, and
once the exchange is filled in Enter sends yours and logs. Running: Enter calls
CQ, a call in the box makes Enter send his call and the exchange, and the next
Enter ends the contact and logs it. A dupe gets QSO B4 while running and nothing
while searching, unless dupes are worked, which is what N1MM recommends and what
this does out of the box. F1 puts a searching station into run mode.
The entry window highlights the keys Enter would send next, so what is about to
happen is on the screen rather than in the operator's head. `=` sends whatever
Enter last sent. Escape and F12 put ESM back to the start of a contact.
Send Corrected Call is in as well: copy SM3AB, send it, fix it to SM3ABC, and
the message that ends the contact goes out as "SM3ABC TU DL1ABC". That is why
N1MM's documentation says to put ! in F5 rather than {CALL}, so the default F5
message is now ! . F6 is QSO B4, which is the message ESM sends a dupe; it used
to repeat the exchange, which no part of the table asks for.
{EXCHSENT} means something again, now that there is an ESM state for it to set.
Worked end to end against a fake cwdaemon: a search-and-pounce contact logged in
four keystrokes, a run contact in three, both with the right text on the keyer
in the right order, and the corrected call in front of the last message.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
namespace Nonemm.Session;
|
|
|
|
/// What an action macro in a function key message does. N1MM's action macros
|
|
/// that this program has nothing to do — the CAT families, audio, rotators,
|
|
/// call stacking — are not here; they are read and passed over.
|
|
public enum MessageCommand
|
|
{
|
|
/// Clears the entry boxes, as Escape and N1MM's `{WIPE}` do.
|
|
Wipe,
|
|
|
|
/// Logs the contact, as the Log It button does.
|
|
Log,
|
|
|
|
Run,
|
|
|
|
SearchAndPounce,
|
|
|
|
/// The same as pressing space in an entry box: move to the next field.
|
|
Space,
|
|
|
|
/// Puts this station on the cluster.
|
|
SpotMe,
|
|
|
|
/// Says the exchange has gone out, for a key that sends it in some other
|
|
/// form than F2. ESM reads it.
|
|
ExchangeSent,
|
|
|
|
FrequencyUp,
|
|
|
|
FrequencyDown,
|
|
|
|
PageUp,
|
|
|
|
PageDown,
|
|
|
|
/// Stops sending, as Escape does mid-message.
|
|
StopSending,
|
|
|
|
/// Sends its argument to the cluster node.
|
|
Telnet,
|
|
|
|
/// Moves the keyboard to the other radio; `WithTransmit` moves the
|
|
/// transmitter as well.
|
|
JumpToOtherRadio,
|
|
|
|
JumpToOtherRadioWithTransmit,
|
|
|
|
/// Sends one of the other radio's function key messages. The argument is
|
|
/// the key number, so `{CTRLF9}` sends F9 there.
|
|
SendOnOtherRadio,
|
|
|
|
/// Sends its argument to the SO2R box.
|
|
Otrsp,
|
|
}
|