Haben Sie ein RPI2 mit neuesten Jessie Lite Raspbian Januar 2017 mit Adafruit Ultimate GPS Hut und PPS mit Informationen aus einem Beitrag bei digitalbarbedwire.com. Einfache Einrichtung und PPS und alle GPS-Befehle funktionieren großartig lokal.Zugang GPSD Port 2947 über Netzwerk
Ich versuche, gpsd eingehende Anfragen über das Netzwerk an Port 2947 zu akzeptieren, um Positionsinformationen (OpenCPN) zu exportieren. Ich habe/etc/default/gpsd bearbeitet, um die Option -G GPSD_OPTIONS = "- n -G" hinzuzufügen, aber externe Anfragen sind nicht erlaubt. Wenn ich gpsd stop (sudo service stop gpsd), und gps im Vordergrund aufrufen (/ usr/sbin/gpsd -N-n -G/dev/ttyAMA0/dev/pps0, alles funktioniert gut! Also ich vermute, es gibt ein Berechtigungsproblem der gpsd als Daemon starten, aber ich habe es noch nicht herausgefunden Ohre mich Nüsse
Irgendwelche Vorschläge
Relevante Dateien:.!?
$ cat /lib/systemd/system/gpsd.socket
[Unit]
Description=GPS (Global Positioning System) Daemon Sockets
[Socket]
ListenStream=/var/run/gpsd.sock
ListenStream=[::1]:2947
ListenStream=0.0.0.1:2947
SocketMode=0600
[Install]
WantedBy=socket
$ cat /etc/default/gpsd
# Default settings for the gpsd init script and the hotplug wrapper.
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyAMA0 /dev/pps0"
# Other options you want to pass to gpsd
GPSD_OPTIONS="-n"
$ cat /lib/systemd/system/gpsd.service
[Unit]
Description=GPS (Global Positioning System) Daemon
Requires=gpsd.socket
# Needed with chrony SOCK refclock
After=chronyd.service
[Service]
EnvironmentFile=-/etc/default/gpsd
ExecStart=/usr/sbin/gpsd -N -G $GPSD_OPTIONS $DEVICES
[Install]
Also=gpsd.socket
Irgendwelche Ideen