This has been plaguing me for awhile now. I had to switch from DeLorme to GlobalSat GPS receivers since the serial emulator would not allow external programs to access the GPS stream easily. I am using the perl distro Perl-GPS 0.16 to access the NMEA receiver. Using this small program:
#!/usr/bin/perl #perl2exe_include "bytes.pm" use GPS::NMEA; use Data::Dumper; my $gps = GPS::NMEA->new(Port => 'COM6', # or COM5: or /dev/ttyS0 Baud => 4800); while(1) { $gps->parse; # Dump internal NMEA data: $gps->nmea_data_dump; # Alternative to look at the internal NMEA data: require Data::Dumper; print Data::Dumper->new([$gps->{NMEADATA}],[])->Indent(1)->Use +qq(1)->Dump; } __END__
I have received this error:
Second Read attempted before First is done at C:/Perl/site/lib/GPS/Ser +ial.pm lin e 55
which sounds like it could be a baud problem but I have tried it with several other values and received the same error.

In reply to Errors in GPS::Serial by deadpickle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.