n4af / TR4W

TRLOG 4 Windows free amateur radio logging application
GNU General Public License v3.0
19 stars 6 forks source link

Add LookupInfo UDP packet #612

Closed ny4i closed 1 year ago

ny4i commented 2 years ago

N1MM UDP now2 supports a UDP packet sent after the callsign is entered in the call box but BEFORE the contact is logged. This is to allow a log program to do a lookup of perhaps prior contacts.

It needs its own port definition as it could be sent on a different port.

<?xml version="1.0" encoding="utf-8"?>
<lookupinfo>
    <app>N1MM</app>
    <contestname>CWOPS</contestname>
    <contestnr>73</contestnr>
    <timestamp>2020-01-17 16 :43:38</timestamp>
    <mycall>W2XYZ</mycall>
    .
    .
    .
</lookupinfo>

From the N1MM Documentation:

NOTE: The LookupInfo UDP packet structure is identical to the ContactInfo packet described previously. The purpose of the LookUp packet it to advise a third-party application (usually a general purpose logging program) of the intention to work a station. The difference between the two packets is the timing of their transmission. The LookupInfo packet is sent after entering a callsign in the Entry Window and pressing the [spacebar], but before the callsign is logged in the N1MM database. In contrast, the ContactInfo packet is sent after a new record has been added to a contest log. LookupInfo and ContactInfo are two separate functions and each needs to be configured in N1MM+’s Configurer >Broadcast Data tab. The default port for LookupInfo packets is 12060.

ny4i commented 1 year ago

After the space bar is pressed in SPaceProc2, if the option UDPBroadcastLookup is set, the packet is sent to the UDP port set for the lookup. Note these is not much log info to put in the ContestExchange so this is pretty much just radio info and the callsign in the call window box.