Donnerstag, 15. Januar 2015

gpsd on archlinux

As of 20150115 gpsd is not running out of the box on ArchlinuxARM on my RaspberryPI.

The reason i found is that the system.d service file of gpsd is pointing to a none existing gpsd configuration file.
To make gpsd work with a GPS connected to USB you need to do the following.

Install gpsd with

pacman -S gpsd

Plug in the GPS and check for the device with

ls -l /dev/tty*

in my case the device is registered as /dev/ttyACM0

Edit the gpsd configuration file

/etc/gpsd.conf

change the device line according to the device name as found before.

e.g.
DEVICE="/dev/ttyACM0"

Change the gpsd systemd service file to point to correct configuration

/usr/lib/systemd/system/gpsd.service

needs to be changed to

[Unit]
Description=GPS (Global Positioning System) Daemon
Requires=gpsd.socket

[Service]
EnvironmentFile=-/etc/gpsd.conf
ExecStart=/usr/bin/gpsd -N $GPSD_OPTIONS $DEVICES

[Install]
Also=gpsd.socket


start and enable gpsd.service to start it automatically at boot

systemctl start gpsd.service
systemctl enable gpsd.service

if you start now e.g. cgps you should see data from your gps.

have fun!

Gerald
- dk7xe -



Keine Kommentare:

Kommentar veröffentlichen