« Return to Thread: GPSCAT vs. GPSD vs. LIBGPS (LIBGPSMM) (Problems)

Re: GPSCAT vs. GPSD vs. LIBGPS (LIBGPSMM) (Problems)

by Andy-68 :: Rate this Message:

Reply to Author | View in Thread



Mark Easton wrote:

> With respect to problem 2 - I have ensured that GPSD is not also running.
> i.e. I have even rebooted my laptop to ensure this is the case.
>
>
>
> Mark Easton wrote:
>> ...
>> Problem 2
>> --------------
>>
>> Ok so this is the main issue as I want to write an application in C++. In
>> my app I am using lbgpsmm/libgps. There I do an open("localhost",
>> "/dev/ttyUSB0") ... but it just keeps returning "Error opening gpsd". So,
>> what can possibly be wrong there?

Hello there,
Whilst no expert on the subject, just have been using GPSD for a while
now and recently had success getting more help getting another setup to
work!

Anyway, for your C++ I may be mis-understanding your program, but surely
you should be opening localhost, 2946
As that is the port GPSD listens on for connections. Therefore:
GPSD is started at bootup and binds to the physical GPS
Your clients/applications then connect to GPSD on the tcp port 2946.

Your other query:

> ...unknown sentence: "$PGRMM, WGS 84*06\x0d\x0a" and none of the nice stuff
> that GPSCat produces. So, why is GPSCAT working fine and not GPSD? Or is
> this correct operation??

from what I understand means GPSD doesn't have the right info do decode
this line from your GPS. See the docs on the site about how most
manufacturers have slight differences in their interpretations of the
GPS protocols, etc.
Also, make sure you have the latest GPSD. This one tripped me up until
Chris kindly pointed me into the right direction.
Get the source and compile to make sure.


Hope that helps in some way, good luck!

--
Andy
e: andy @ thebmwz3.co.uk
e: andy @ broadcast-tech.co.uk

w: http://www.thebmwz3.co.uk
w: http://www.broadcast-tech.co.uk
_______________________________________________
Gpsd-users mailing list
Gpsd-users@...
https://lists.berlios.de/mailman/listinfo/gpsd-users

 « Return to Thread: GPSCAT vs. GPSD vs. LIBGPS (LIBGPSMM) (Problems)