[pskmail] A tiny progress report regarding gps

  • From: Per Crusefalk <per@xxxxxxxxxxxx>
  • To: pskmail@xxxxxxxxxxxxx
  • Date: Sat, 10 Feb 2007 09:16:36 +0100

Hi all,

The neighbours looked funny at me today as I chased up and down the
street with a laptop in one hand and a gps in the other. GPS coverage
indoors is non existant, no coverage even if I stick the gps out the
window, so here I was running in a T-shirt with the temperature outside
being -14C (7F). 

Anyway, I have had requests for a gps interface to pskmail. Some sailing
friends will go on a longer sailing trip and wanted a "long range AIS"
or something equivalent. The meaning is, naturally, that a gps should
supply pskmail with updated positions so that the aprs pos beacons show
the real position at all times. I looked at that and its really too easy
to interface a gps using perl.

I plugged my old Garmin emap in my laptop and set it to output nmea
data. I then executed the following and ran up and down the street:

    use GPS::NMEA;
    my $gps = GPS::NMEA->new(Port => '/dev/ttyS0', 
                             Baud => 4800);
    while(1) {
        my($ns,$lat,$ew,$lon) = $gps->get_position;
        print "($ns,$lat,$ew,$lon)\n";

And here is the output:

[per@newdelly source]$ ./gpsnmea.pl

Its updated abt once per second.

So, this seems to work. NMEA is a standard as well so the gps make
shouldn't make any difference (or ?). I can include something like this
in the client, will just have to look at that new options dialogue.

73 de Per, sm0rwo

Other related posts: