gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] gpsd unnoticed of a remote IP gps brutally unplugged


From: Bruno Coudoin
Subject: [gpsd-dev] gpsd unnoticed of a remote IP gps brutally unplugged
Date: Wed, 08 Apr 2015 15:18:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Hi,

I am using gpsd with a remote TCP/IP gps serveur through 'gpsd://' (a
CradlePoint IBR1100 router). In this case, if the remote gps is brutally
unplugged from its power plug, gpsd stays unnoticed. It does try to
reconnect but long after the gps server is back up (got a 5 hour
occurrence).

In the traces I have this error which shows the 5 hours delay:
GPS on gpsd://192.168.0.1:8889 returned error -1 (16332.187656 sec since
data)

As it is, since we never talk to the device but only receive from it,
and that the server cannot close or shutdown the socket, it is normal
that at TCP level it goes unnoticed. One solution could be to add a TCP
keepalive. Another option is to add a timeout when we don't get any
traffic from a networked gps device.

Am I doing something wrong, is there an option to handle that case?

Bruno.





reply via email to

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