gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] Re-add devices on client connection


From: A.S.
Subject: [gpsd-dev] Re-add devices on client connection
Date: Thu, 11 Apr 2019 12:08:56 -0400

In circumstances where the host system running gpsd does not implement udev or similar (for example, Android), or where the gps is connected via a bus that does not generate plug events, when a gps is removed and later re-added, gpsd may lose track of that device and be unable to re-add it.

Specifically, when gpsd observes that a device is not present, it removes that device from the list of attached devices.

To solve this, I have the following patch:
https://gitlab.com/aserbinski/gpsd/commit/6cac0b0bb664d5649988e9f0abd8c9fa5493fd34

When a client connects to gpsd, if the device list is empty, and if there were devices specified on the commandline, then gpsd will attempt to re-add those devices to the list.

reply via email to

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