gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] Possible Bug - "specific model of the gps requires a differen


From: Michael R. Davis
Subject: [gpsd-dev] Possible Bug - "specific model of the gps requires a different baud rate than the default for the port"
Date: Fri, 16 May 2014 14:15:02 -0700 (PDT)

Eric,
Here's a report of a device that the user has to manually set the baud rate.  I think that gpsd would want to handle that correctly.  I'm not actively using gpsd anymore so I'm a bit out of touch.
Thanks,
Mike

----- Forwarded Message -----
From: Zachary Zebrowski <address@hidden>
To: DC PM <address@hidden>
Cc: "address@hidden" <address@hidden>
Sent: Monday, May 12, 2014 10:37 AM
Subject: Re: [dcpm] Net::GPSD3 issue

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:

address@hidden ~ $ 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 <address@hidden> 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 <address@hidden>
To: DC PM <address@hidden>; "address@hidden" <address@hidden>
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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]