[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] TWO BUGS IN GPSD (When connecting to tcp source & nmea2
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-users] TWO BUGS IN GPSD (When connecting to tcp source & nmea2000 source) |
Date: |
Mon, 16 Mar 2015 10:04:34 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Vignesh Krishnan <address@hidden>:
> Hi,
>
> I am using gpsd to connect to a gps source that sends gps sentences via
> tcp stream.
>
> ./gpsd -n tcp://10.10.10.12:3123
>
> If at all the gps source goes down . gpsd detects it but never closes its
> tcp socket with tcp source. So if the gps source comes back up again ,
> gpsd maintains an old socket which cannot receive any GPS sentences. Work
> around is to manually detect the source going down (with a linux tcp
> socket ) and remove and add the source back again once the source goes
> down and comes back up.
I'd like to fix this, but I'm not sure what you mean by "detects". What
message do you actually see?
I need to know this so I can figure out where to intervene with the
socket close.
> For the nmea2000 bug . I connect using gpsd control socket
>
> ./gpsd -n -F /tmp/control_sock
>
> Adding source is possible
> +nmea2000://can1
>
> Removing sourc is also possible with
> -nmea2000://can1
>
> Readding the source is not possible with
> +nmea2000://can1
>
> This is because the there is an array which stores the list of nmea
> devices. That is not cleared on removed. So adding the second time results
> in device exist error when actually device does not exist.
Which array are you referring to? Is it nmea2000_units[] in the NMEA2000
driver. or somewhere else.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
- Re: [gpsd-users] TWO BUGS IN GPSD (When connecting to tcp source & nmea2000 source),
Eric S. Raymond <=