[Hardware-pm] [dcpm] Net::GPSD3 issue

Zachary Zebrowski zak.zebrowski at gmail.com
Mon May 12 07:37:21 PDT 2014


Hi Mike,

Ah ok...  that makes sense...  It might be a change in the gpsd protocol
from the time you wrote it.... Plus, I can't have the "always run" flag
set, because of the specific model of the gps requires a different baud
rate than the default for the port, and gpsd runs before I manually set the
baud rate.  I was just running the sample code provided with the module.
 This is the error I'm getting from the default sample code:

pi at raspberrypi ~ $ perl perl-Net-GPSD3-poll.pl
Net::GPSD3:    0.19
GPSD Release:  3.6
Protocol:      3.7
Can't call method "reported" on an undefined value at
perl-Net-GPSD3-poll.pl line 23, <GEN0> line 3.

I'm using this gps: http://amzn.com/B003WNHGAO which communicates at 4800
baud on /dev/ttyUSB0.

I do have separate (non gpsd code) that works by directly reading and
parsing the NEMA data, which, for this case, I will use instead for now
(which still uses perl).

Thanks for your input! :-)
Zak


On Mon, May 12, 2014 at 12:34 AM, Michael R. Davis <mrdvt92 at yahoo.com>wrote:

> Zak,
> I don't use gpsd any more and have not been following it recently.  I do
> know when I was last working with it the poll did not work very well.  The
> poll required another client to be connected at all times to really work or
> required gpsd to be started with the "always run" flag.
>
> If you send me your code (excerpt) and versions, I can set up testing.
> Thanks,
> Mike
>
>    *From:* Zachary Zebrowski <zak.zebrowski at gmail.com>
> *To:* DC PM <dc at lists.pm.org>; "hardware-pm at pm.org" <hardware-pm at pm.org>
> *Sent:* Sunday, May 11, 2014 9:26 PM
> *Subject:* [dcpm] Net::GPSD3 issue
>
> Hello,
> I want to write a simple app that polls gpsd version 3 server for the
> current lat and longitude, etc.  net::gpsd3 is supposed to be able to
> provide this service, but it doesn't return anything valid.  (Can't call
> method sky on an undefined variable...). However, when I use the provided
> command line clients (cgps) it works fine, and it uses the gpsd3 protocol
> for that information.  Any clues on how to proceed?
> Thanks!
> Zak
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/hardware-pm/attachments/20140512/2e38f779/attachment.html>


More information about the Hardware-pm mailing list