<div dir="ltr">Hi Mike,<div><br></div><div>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:</div>

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

</div><div><br></div><div>I'm using this gps: <span style="font-size:13px;color:rgb(51,51,51);font-family:Arial,sans-serif;line-height:19px"><a href="http://amzn.com/B003WNHGAO">http://amzn.com/B003WNHGAO</a> which communicates at 4800 baud on /dev/ttyUSB0.</span><br>

</div><div><br></div><div>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).  </div><div><br></div><div>
Thanks for your input! :-)</div>
<div>Zak</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 12:34 AM, Michael R. Davis <span dir="ltr"><<a href="mailto:mrdvt92@yahoo.com" target="_blank">mrdvt92@yahoo.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:10pt">


<div><span>Zak,</span></div><div><span>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.  </span></div>


<div><span></span> </div><div><span>If you send me your code (excerpt) and versions, I can set up testing.</span></div><div><span>Thanks,</span></div><div><span>Mike</span></div><div><br></div>  <div style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:10pt">


 <div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12pt"> <div dir="ltr"> <div style="margin:5px 0px;padding:0px;border:1px solid rgb(204,204,204);min-height:0px;line-height:0;font-size:0px" readonly>


</div>  <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> Zachary Zebrowski <<a>zak.zebrowski@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> DC PM <<a>dc@lists.pm.org</a>>; "<a>hardware-pm@pm.org</a>" <<a>hardware-pm@pm.org</a>> <br>


 <b><span style="font-weight:bold">Sent:</span></b> Sunday, May 11, 2014 9:26 PM<br> <b><span style="font-weight:bold">Subject:</span></b> [dcpm] Net::GPSD3 issue<br> </font> </div> <div><br><div>Hello,<div>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?</div>
<div>Thanks!</div><div>Zak</div></div><br><br></div> </div> </div>  </div></div></blockquote></div><br></div></div>