Page 1 of 1
Band info in UDP Messages
Posted: 09 Mar 2020, 16:05
by G0GJV
I've been asked to extend my contest logger (Minos) by sending out N1MM style UDP messages, in particular by someone who uses Log4OM.
Perhaps you would help me... what information do you expect to receive in the <Band> tag? Some experimentation indicates that N1MM doesn't use ADIF or Cabrillo bands.
Thanks
Mike G0GJV
Re: Band info in UDP Messages
Posted: 09 Mar 2020, 16:30
by IW3HMH
Hi
N1MM is sending out an XML without band.
Band is retrieved from <txfreq> and <rxfreq> values.
To transform frequencies into KHz (it's the integer part before decimal separation) i'm using value / 100 from the inbound number
Code: Select all
if (decimal.TryParse(FwXML.GetXmlKey(node, "txfreq"), out decimal txfreq))
{
qso.Freq = txfreq / 100;
qso.Band = ProgramStorage.RunningConfig.UserBandPlan.GetBand(qso.Freq, out _);
}
Re: Band info in UDP Messages
Posted: 09 Mar 2020, 17:13
by G0GJV
Thanks for that. N1MM does send some band info - I have seen
<band>3.5</band>
<rxfreq>360000</rxfreq>
<txfreq>360000</txfreq>
when doing a quick test.
I will follow your advice and make sure that the frequency is set correctly.
Mike
Re: Band info in UDP Messages
Posted: 09 Mar 2020, 17:19
by DF5WW
Hi Mike,
what N1MM transferres is a frequency and not a band. Band "3.5" only shows the lowest frequency
in MHz. In ADIF standard for a band is used "80m" for that frequency ....
Re: Band info in UDP Messages
Posted: 09 Mar 2020, 17:21
by G0GJV
Looking at
https://n1mmwp.hamdocs.com/appendices/e ... roadcasts/
they say
Freq is the receive frequency represented as values to the tens digit with no delimiter. For example: 160 meters: 181234; 40 meters: 712345; 10 meters: 2812345; 6 meters: 5012345
TXFreq is the transmit frequency represented as values to the tens digit with no delimiter. For example: 160 meters: 181234; 40 meters: 712345; 10 meters: 2812345; 6 meters: 5012345
so it looks like you should be dividing by 10, not 100?
Re: Band info in UDP Messages
Posted: 09 Mar 2020, 17:29
by DF5WW
By the way, the band enumeration in ADIF 3:

- 1.png (46.05 KiB) Viewed 5845 times
Re: Band info in UDP Messages
Posted: 10 Mar 2020, 13:53
by G0GJV
This has been about logging contacts from the "contactinfo" message from N1MM - which I now have working, thanks.
Does Log4OM do anything with the "lookupinfo" message?
Mike G0GJV
Re: Band info in UDP Messages
Posted: 10 Mar 2020, 14:00
by G4POP
MikeG0GJV wrote: 10 Mar 2020, 13:53
This has been about logging contacts from the "contactinfo" message from N1MM - which I now have working, thanks.
Does Log4OM do anything with the "lookupinfo" message?
Mike G0GJV
Unfortunately Lele is in the middle of the Coronavirus hot spot in Northern Italy and has many issue to deal with regarding work etc so don't expect a rapid response as he has no time for any thing other than the local emergency.
Re: Band info in UDP Messages
Posted: 10 Mar 2020, 14:10
by G0GJV
Understood.