最新のJessie Lite Raspbian Jan 2017でAdafruit Ultimate GPSハットとPPSのRPI2にdigitalbarbedwire.comのポストの情報を使用させてください。セットアップが簡単で、PPSとすべてのgpsコマンドがローカルで素晴らしい動作をします。ネットワーク経由でGPSDポート2947にアクセス
gpsdがポート情報をエクスポートするためにポート2947でネットワーク経由で着信要求を受け入れるようにしようとしています(OpenCPN)。私は/ etc/default/gpsdを編集して-Gオプションを追加しましたが、GPSD_OPTIONS = " - n -G"ですが、外部リクエストは許可されていません。 gpsd(sudo service stop gpsd)を停止し、フォアグラウンド(/ usr/sbin/gpsd -N -n -G/dev/ttyAMA0/dev/pps0)でgpsを起動すると、すべて正常に動作します。アクセス権の問題がデーモンとしてGPSDを開始するが、私はまだそれを考え出したていない私にナットをDrivings
任意の提案
関連ファイル:。!?
$ 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
任意のアイデア