gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] gpsd not capturing device on startup


From: Joshua Quesenberry
Subject: Re: [gpsd-users] gpsd not capturing device on startup
Date: Tue, 15 Nov 2016 13:57:22 -0500

Is running `/usr/sbin/gpsd` sufficient for it to auto-magic everything else?
Or do I need to run it like `/usr/sbin/gpsd -N -n -F /var/run/gpsd.sock
/dev/ttyACM0` ? I read that it can dynamically add/remove devices?

-----Original Message-----
From: Gary E. Miller [mailto:address@hidden 
Sent: Tuesday, November 15, 2016 1:36 PM
To: Joshua Quesenberry <address@hidden>
Cc: address@hidden
Subject: Re: [gpsd-users] gpsd not capturing device on startup

Yo Joshua!

On Tue, 15 Nov 2016 09:54:10 -0500
"Joshua Quesenberry" <address@hidden> wrote:

> 1.       I'm having some issues with gpsd on startup. I'm putting my
> device in the DEVICES variable in /etc/default/gpsd however after a 
> restart, even though I see through ps aux that the DEVICES variable is 
> included in the run string, when I run my test application to read 
> from shared memory it's reporting all values as zero (0). Only after 
> killing gpsd and re-running it manually do I get data in shared 
> memory. What am I missing?

Ah, don't do that.  gpsd does not run well from systemd.  remove what ever
way your distribution starts up gpsd and do it yourself with a simple
script.
`
`
> 2.       Is there a way to view list of attached devices and what
> driver is being used for that device? I know there are things like 
> cgps and gpspipe, but it seems that those may do something extra in 
> the background to force thing to work, things not being done when I 
> simply open shared memory or start gpsd manually. So just looking for 
> non-gps-interactive gpsd status command or something.

cgps is your friend.  Do not fear it.  Or start gpsd in debug mode.

> 3.       Whenever I set START_DAEMON and USBAUTO to false I notice
> that gpsd will still be running after a reboot. Should this not 
> prevent autostart?

Once again, systemd is messing with your head.  Rip out the systemd stuff
and start gpsd manually.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588




reply via email to

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