gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] Issue with Rasbian Jessie


From: Henrik Bieler
Subject: Re: [gpsd-users] Issue with Rasbian Jessie
Date: Sun, 6 Mar 2016 00:13:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

> You might want to read:
> man systemd.unit
> man systemd.service
> man systemd.socket
> 
> I also disabled gpsd.socket on my Raspbian Jessie setup and modified
> gpsd.service to start up automatically because I could not get
> gpsd.socket to work with queries from the network.
> 
> With this mod it works fine here.

Try this:

put this as "gpsd.service" in /etc/systemd/system/



[Unit]
Description=GPS DaemonMOD #mod to disable sockets
ConditionPathExists=|/usr/sbin
After=network.target

[Service]
EnvironmentFile=-/etc/default/gpsd
ExecStart=/usr/sbin/gpsd -N $GPSD_OPTIONS $DEVICES

[Install]
WantedBy=multi-user.target



Then do the following:

sudo systemctl daemon-reload
sudo systemctl disable gpsd.socket
sudo systemctl enable gpsd.service

reboot. see if gpsd starts. you can give commandline options in
/etc/default/gpsd

Should work by then.

**********************************

I also use another systemd script to set initial baud rate of the port,
which might speed up gps recognition:

Put the following in /etc/systemd/system/gpsd_settty.service

[Unit]
Description=gpsd set initial baudrate for RGM2000 GPS
Before=gpsd.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/stty -F /dev/ttyAMA0 speed 19200

[Install]
WantedBy=gpsd.service


Then do:
sudo systemctl daemon-reload
sudo systemctl enable gpsd_settty.service
reboot


Hope that helps.

Henrik

> 
> Cheers
> Henrik
>> Short of that once you disable the gpsd.socket feature then yes a reboot
>> should clear it out.
>>
>>
> 
> 
> 




reply via email to

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