gpsd-users
[Top][All Lists]
Advanced

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

[gpsd-users] Garmin Montana 600, gpsd and Arch Linux


From: Pedro Antonio Neves
Subject: [gpsd-users] Garmin Montana 600, gpsd and Arch Linux
Date: Sun, 18 Sep 2016 21:50:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

Hi all:

I'm trying to connect my Garmin Montana 600 GPS to my PC running Arch Linux and use gpsd to interface with other programs such as Opencpn, qgis, etc.

This combination works fine with Linux Mint 17.3 (i386) running gpsd 3.9.3 and with the module garmin_gps loaded by the kernel. The GPS unit is set on Garmin Spanner mode and the firmware on the unit is 4.20.

On Linux Mint 18 (amd64), using gpsd 3.15 and on Arch (also amd64) but with gpsd 3.16.3 I'm not able to get the GPS to comunicate with gpsd.

Arch Linux uses sytemd and on my system I have the following units loaded and running:

gpsd.service

gpsd.socket

system-gpsdctl.slice

When I plug the GPS on my laptop, two more units are loaded:

dev-gps0.device (loaded, active, pluged)

address@hidden (loaded, active, exited)

Journalctl gives the following info when the GPS is connected to the laptop using the USB port:

set 18 13:18:03 hostname systemd[1]: Created slice system-gpsdctl.slice.
set 18 13:18:03
hostname systemd[1]: Starting Manage ttyUSB0 for GPS daemon...
set 18 13:18:03
hostname systemd[1]: Listening on GPS (Global Positioning System) Daemon Sockets.
set 18 13:18:03
hostname gpsdctl[2036]: gpsd_control(action="" arg=/dev/ttyUSB0)
set 18 13:18:03
hostname gpsdctl[2036]: reached a running gpsd
set 18 13:18:03
hostname systemd[1]: Started GPS (Global Positioning System) Daemon.
set 18 13:18:03
hostname systemd[1]: Started Manage ttyUSB0 for GPS daemon.

When I remove the gps, I get:

set 18 13:20:43 Synodus systemd[1]: Stopping Manage ttyUSB0 for GPS daemon...
set 18 13:20:43 Synodus gpsdctl[2202]:
gpsd_control(action="" arg=/dev/ttyUSB0)
set 18 13:20:43 Synodus gpsdctl[2202]: reached a running gpsd

If I try to use xgps, no info shows up. If I run:

gpsmon /dev/ttyUSB0, I get:
gpsmon:ERROR: device open of /dev/ttyUSB0 failed: Device or resource busy - retrying read-only
gpsmon:ERROR: read-only device open of /dev/ttyUSB0 failed: Device or resource busy

And if I do:

sudo gpsd -N -D3 -F /var/run/gpsd.sock , I get:


gpsd:INFO: launching (Version 3.16)
gpsd:ERROR: can't bind to IPv4 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!
gpsd:ERROR: can't bind to IPv6 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!
gpsd:INFO: command sockets creation failed, netlib errors -1, -1


I cannot find what is blocking/using /dev/ttyUSB0. If I try:

lsof -n | grep /dev/ttyUSB0, this is all I get:


lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
     Output information may be incomplete.

Any hints/help?

Thanks in advance:

Pedro


reply via email to

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