gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] libgps problem(s) with 3.6


From: Tom Evans
Subject: Re: [gpsd-users] libgps problem(s) with 3.6
Date: Sun, 1 Jul 2012 19:53:45 -0400

Ok, I found the problem, libgps_sock.c, L95, on the return form the
open, changed it from
return 0;
to
return (int)gpsdata->gps_fd; //TJE was 0

Hope that helps, Tom


On 7/1/12, Tom Evans <address@hidden> wrote:
> Its version 3.0.0, prebuilt
> also since the test_libgps fails, I don't think its a opencpn problem,
> with -D 9 on test_libgps:
>  libgps: gps_sock_open(localhost, 2947)
>  libgps: netlib_connectsock() returns socket on fd 3
>  Daemon is not running.
> the call to gps_open is returning 0
>
> test_json/test_packet works
> Telnet to 2947 returns json string:
> {"class":"VERSION","release":"3.6","rev":"3.6","proto_major":3,"proto_minor":7}
>
> Thx, Tom
> On 7/1/12, Hamish <address@hidden> wrote:
>> Tom wrote:
>>> Trying v3.6 with opencpn, it didn't work (uses libgps)
>>> Running test_json works
>>> Running test_libgps doesn't - I get "Daemon is not running"
>>> and nothing in gpsd debugging output.
>>> This is on a linux Lucid system. Did something change in
>>> libgps?
>>
>> what version of OpenCPN? Self-built or .debs downloaded from
>> somewhere (if so, where?).  The 2.5.0 version does not support
>> the latest gpsd versions (without a patch*), while the brand
>> new 3.0.0 version of OpenCPN does.
>>
>> [*]
>> http://anonscm.debian.org/viewvc/pkg-grass/packages/opencpn/trunk/debian/patches/backport_libgps20_support.patch
>>
>>
>> Hamish
>>
>



reply via email to

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