gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] -G option on gpsd


From: Chris Kuethe
Subject: Re: [gpsd-users] -G option on gpsd
Date: Tue, 25 Oct 2016 13:26:53 -0700

"netstat -tunlp"   will show you what, if anything, is bound to port 2947. if I had to guess, I'd say it's systemd and its stupid gpsd.socket. Here's what I did to my machine to put gpsd under manual control

$ sudo find /lib /etc -name gpsd.socket -delete
$ sudo vi $(find /lib /etc -name gpsd.service)
    ... remove the references to gpsd.socket
$ sudo vi /etc/default/gpsd
    ... set the flags appropriately
$ sudo systemctl daemon-reload
$ sudo service gpsd start

On Tue, Oct 25, 2016 at 3:07 AM, Peter Collard <address@hidden> wrote:
Am I right in thinking this option should allow me to access the gps data from another machine in my subnet?

Heres the ps -ef output showing it running (on a headless Raspberry PI):-

gpsd      1028     1  4 09:30 ?        00:00:00 /usr/sbin/gpsd -N -G -n /dev/ttyUSB0

I can access it locally with cgps etc, and the pi has had no firewall added.

When I go to another machine (Ubuntu) and try to access it I get..

address@hidden:~$ cgps -D3  rtpi
libgps: gps_sock_open(rtpi, 2947)
libgps: netlib_connectsock() returns error -6
cgps: no gpsd running or network error: -6, can't connect to host/port pair


address@hidden:~$ ping rtpi
PING rtpi (192.168.1.10) 56(84) bytes of data.
64 bytes from rtpi (192.168.1.10): icmp_seq=1 ttl=64 time=0.339 ms

How do I fix this?

Thanks




--
GDB has a 'break' feature; why doesn't it have 'fix' too?

reply via email to

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