All of lore.kernel.org
 help / color / mirror / Atom feed
* Announcing Ham-APRS-Parser version 0.02
@ 2005-08-09  4:44 Jeff Laughlin
  2005-08-09 14:46 ` Curt, WE7U
  2005-08-09 21:25 ` charlesb
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Laughlin @ 2005-08-09  4:44 UTC (permalink / raw)
  To: Linux-Hams

http://aprs.n1ywb.com/Ham-APRS-Parser-0.02/

I've added support for a bunch more APRS data. Please check it out and
let me know how it goes.

Any ideas where else I could announce this to get some knowledgable
people to look at? Not places like eHam.com... I've posted it on
#hamradio on irc.freenode.net...

I applied to make this a sourceforge.net project, haven't heard back
from SF yet though.

NAME

Ham::APRS::Parser - Perl module for parsing APRS packets into a
consistant and easy to work with format

SYNOPSIS

        use Ham::APRS::Parser;

        my $aprsPacket =
parseAPRSPacket("EA1EKE-8>TR3UTW,EC1H-12,EA1A-3*,qAo,EA1URO-10:`|@+
,>/>"9f}");

        while( my ($k, $v) = each %$aprsPacket ) {
                print "key: $k, value: $v\n";
        }

DESCRIPTION

Insert plaintext aprs packets from APRS-IS, get back a reference to a
hash containing the APRS data in a consistant and easy to process
format.

The above code will yield the following hash:

        %$aprsPacket = {
                'AMBIGUITY' => 0,
                'COMMENT' => '"9f',
                'COURSE' => 234,
                'FROM' => 'EA1EKE-8',
                'LAT' => '42.5911666666667',
                'LON' => '-6.6025',
                'MICE_CURRENTNESS' => 'CURRENT',
                'MICE_MSG' => 'En Route',
                'PATH' => 'EC1H-12,EA1A-3*,qAo,EA1URO-10',
                'SPEED' => '75.932',
                'TO' => 'TR3UTW'
        };

Be careful, because Mic-E packets use the TO field as data, not a real
callsign. Also Mic-E packets may contain non-printing chars, although
the output should be 100% printable.

The module tries to be fast by using dispatch tables and not using
regular expressions unecessarily.

I wrote this module because I wanted to translate APRS packets into
KML files for displaying on Google Earth. Unfortunately Google Earth
can't handle the tens (or hundreds) of thousands of APRS stations all
at once. I will keep working on ways to get around this.

Other neat applications might be an advanced, highly intellegent
digipeater. Or a free open source findu.com replacement using Google
Maps.

Currently the module should mostly reliably return these fields from
position reports, Mic-E position reports, and compressed position
reports:

    * TIME_FORMAT
    * TIME
    * GPS_FIX
    * NMEA_SRC
    * COMP_ORIG
    * ALTITUDE
    * COURSE
    * LAT
    * LON
    * SYMBOL
    * MESSAGING
    * MICE_MSG
    * MICE_CURRENTNESS
    * MICE_DEVICE
    * FROM
    * PATH
    * TO
    * COMMENT
    * AMBIGUITY
    * SPEED
    * RANGE
...

Thanks

73 de n1ywb

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-10 11:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09  4:44 Announcing Ham-APRS-Parser version 0.02 Jeff Laughlin
2005-08-09 14:46 ` Curt, WE7U
2005-08-09 21:25 ` charlesb
2005-08-10  1:24   ` Nate Bargmann
2005-08-10 11:54     ` charlesb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.