Maidenhead function

104 views
Skip to first unread message

Martin Greatorex

unread,
Nov 21, 2023, 11:18:14 AM11/21/23
to pat-...@googlegroups.com
Is the only function of the maidenhead to show the appropriate RMS list?

73,

Martin KN6GWQ 

Chris Keller

unread,
Nov 21, 2023, 12:46:26 PM11/21/23
to Martin Greatorex, pat-...@googlegroups.com
I glanced through the code, and it looks like there are a handful of uses for the grid locator. The RMS list is one, but it's also used for the FBB session (low-level Winlink protocol), ARDOP modem, and form templates.

--
You received this message because you are subscribed to the Google Groups "pat-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pat-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pat-users/CAO%2BtHyiA9b8O7g_rESV%3D-5GCAXe-gksr471czC7EjO0%2BjHL0sw%40mail.gmail.com.

Martin Greatorex

unread,
Nov 21, 2023, 1:11:53 PM11/21/23
to Chris Keller, pat-...@googlegroups.com
Thanks. Trying to figure out how to have it easily modified when mobile. (Headless raspberry pi). Not a problem when at home. 

Chris Keller

unread,
Nov 21, 2023, 1:15:33 PM11/21/23
to Martin Greatorex, pat-...@googlegroups.com
Makes sense. We have a gpsd integration for the Position Report feature, we could probably use that to also dynamically update the grid locator. It would take a little bit of thought and work. Martin, what do you think?

Martin Hebnes Pedersen

unread,
Nov 23, 2023, 2:48:09 PM11/23/23
to Chris Keller, Martin Greatorex, pat-...@googlegroups.com
Yes, updating it dynamically based on gpsd data sounds like a great idea :)

In addition to gpsd, we could also get it from the browser (we support this for postion reporting via the web gui). Would be great to support both, but maybe start with gpsd as that is a much easier task I believe.

It should probably be configurable (disabled by default), so we don’t end up broadcasting user locations without their consent :p

Sounds like a feature to me :D

— 
73 de LA5NTA / Martin

Georges WH6AZ

unread,
Nov 27, 2023, 3:47:45 PM11/27/23
to pat-users
Since you're talking position, there is also the "newish" `X-Location` header that can be included in winlink messages to report user's location automatically. Winlink Express supports mapping messages based on that header, which is independent of certain forms collecting location info.

Martin Hebnes Pedersen

unread,
Nov 28, 2023, 4:08:52 AM11/28/23
to Georges WH6AZ, pat-users
Interesting! Do you know the format of the x-Location value? Would be great to support that as well.

It would also be nice to add a mapping feature using OpenLayer or simliar JS library, ideally with support for offline maps.

-- 
73 de LA5NTA / Martin

Dominic Reich

unread,
Nov 28, 2023, 5:15:06 AM11/28/23
to pat-...@googlegroups.com
* Martin Hebnes Pedersen <martin.h...@gmail.com> [Tue, Nov 28 2023 10:08 +0100]:

>Interesting! Do you know the format of the x-Location value? Would be great
>to support that as well.

Hi i found some of these messages and if I export them from Winlink
"Message → Export selected messages" the header looks like:

#v+
X-Location: 48.224000N, 16.456000E (SPECIFIED)
#v-

This is also saved within the xml tags like

#v+
<location>48.224000N, 16.456000E (SPECIFIED)</location>
#v-

A message that I sent out to an email address outside the Winlink
network gets an X-Location header that looks like this:

#v+
X-LOCATION: 47.073277N, 10.974643E (GPS)
#v-

HTH 73 de Dominic OE7DRT
>>>>> <https://github.com/search?q=repo%3Ala5nta%2Fpat%20Locator&type=code>,
>>>>> and it looks like there are a handful of uses for the grid locator. The RMS
>>>>> list is one, but it's also used for the FBB session (low-level Winlink
>>>>> protocol), ARDOP modem, and form templates.
>>>>>
>>>>> On Tue, Nov 21, 2023 at 9:18 AM Martin Greatorex <venam...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Is the only function of the maidenhead to show the appropriate RMS
>>>>>> list?
>>>>>>
>>>>>> 73,
>>>>>>
>>>>>> Martin KN6GWQ
>>>>>>

--
The pay is good and I can walk to work.
- John F. Kennedy

Georges WH6AZ

unread,
Nov 28, 2023, 1:05:41 PM11/28/23
to pat-users
From what I understand, these are the possible values:

X-Location: latN, longW (GPS)
X-Location: latN, longW (SPECIFIED)
X-Location: latN, longW (GRID SQUARE) 
X-Location: (Not available)

GPS - read from device (most precise)
SPECIFIED - lat/lon manually entered (could be imprecise)
GRID SQUARE - lat/lon derived from a grid square (neighborhood precision only)

I added this to RadioMail in 1.2.5. You can watch a video of it in action and how it interoperates with Express

Jeremy Bush

unread,
Dec 1, 2023, 4:07:25 PM12/1/23
to Martin Hebnes Pedersen, Georges WH6AZ, pat-users
I did some work with updating and converting Maidenhead grids and other GPS related stuff using NMEA GPS sentences to update my Winlink configuration dynamically while on the move.  If it hasn't been looked at, I'm sure I could adapt my code to this. Just point me to where in the Pat/wl2k codebase I should start...

Jeremy
N8JJA

Chris Keller

unread,
Dec 1, 2023, 7:38:55 PM12/1/23
to Jeremy Bush, Martin Hebnes Pedersen, Georges WH6AZ, pat-users
Jeremy, check out internal/gpsd/gpsd.go! The Next method will give you back lat/long (among other things), and you'll probably have to use https://pkg.go.dev/github.com/pd0mz/go-maidenhead or similar to convert that to a grid square. I suppose you would just set up a background goroutine at startup to start Watching and reading Next, then update the Config object from there?

Jeremy Bush

unread,
Dec 1, 2023, 8:13:18 PM12/1/23
to Chris Keller, Martin Hebnes Pedersen, Georges WH6AZ, pat-users
Thanks Chris!  I'll give it a wack this weekend and see how it goes.  Appreciate the suggestions!

Jeremy Bush
N8JJA
Reply all
Reply to author
Forward
0 new messages