|
From: | Aranza Shaccid Leon |
Subject: | Re: GPSD 3.23~rc1 connection to GPS |
Date: | Fri, 6 Aug 2021 20:57:28 -0700 |
CAUTION: This email originated from outside of the PNW environment. Do not click links or open attachments unless you recognize the sender and know the content is safe.
On Thu, 5 Aug 2021 13:08:52 -0700
Aranza Shaccid Leon <leon18@pnw.edu> wrote:
> If I may ask, I'm having a connection issue with my gps. I currently
> have it set up as /dev/gps0, but when I attempt either to set the
> DEVICES:"/dev/gps0" in the /gpsd/gpsd3.23~rc1/packaging/dev
> directory (and open file etc_default_gpsd.in) or attempt gpsd
> -n /dev/gps0 in root or normal user, the gpsd does not connect to the
> port.
Don't set DEVICES in etc_default_gpsd.in or /etc/default/gpsd. udev will
figure that out for you when you plug the beastie in, and provide it to
gpsd. Unless you are trying to get away from systemd.
My working /etc/default/gpsd looks like:
root@orca:~# cat /etc/default/gpsd
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES=""
# Other options you want to pass to gpsd
GPSD_OPTIONS=""
# Automatically hot add/remove USB GPS devices via gpsdctl
USBAUTO="true"
root@orca:~#
I have gpsd 3.22-4 on Debian 11 (Bullseye).
> + systemctl status gpsd.socket
> ● gpsd.socket - GPS (Global Positioning System) Daemon Sockets
> Loaded: loaded (/lib/systemd/system/gpsd.socket; disabled; vendor
> preset: enabled)
> Active: active (running) since Thu 2021-08-05 06:44:57 BST; 12min
> ago
If I read this correctly, gpsd is already running from systemd. It
appears to be disabled, but loaded (i.e. running). You can confirm this
with "ps aux | grep gpsd". So it has already grabbed the port, which
prevents you from running another instance of gpsd. You should be able
to shut it down with:
systemctl stop gpsd.socket gpsd;systemctl disable gpsd.socket gpsd
You may also need to reboot to make that effective.
--
Does anybody read signatures any more?
https://secure-web.cisco.com/1vkAgKGJI6vEL_RFgCxZZ_NbMQbQ4EMpmsDZ1rmVLlyxPwD8hXZC5fK2RIAZQQ4cESx0evLhygmerwp47u2cfqn_AToTSWMZ_d_LeSFjUCblN1UFGJr9vjTC2lETmMgAbrQnVt1wE4SwuFoNslPBkpZ7upc-G2QgPBu-q5hwcXBAFjxfXA4Wde08_a4UAZxzII2RSXa64CGUqtITNVT0on6sIQg6fEYFea_wXj6Kd6IiuqEU9w7pM7bcfSgBqd1XH4fzfm9NceBzFP3HoRzka8QpQrb-3nWphpKSiHD_crLf6PyJWpcNQWmVVqp73KyuAeWYv0LjRikUh6NlrXjJzdydDqFG32J5OG-wUKB7ZgXfaJHo6b5EwmxREy5lxTWx5LSbmKEoCmB2tRPo5h_y1XeHrzh7LIipjv-w6Rdj30K2ngutElGX0PD7eiTX8lbwh/https%3A%2F%2Fcharlescurley.com
https://secure-web.cisco.com/1TWU2eYsjtEtEJ88wxSvUlJb8jDzuJatvPZJlhOHbpmzh6IxKdRro7oK4PHB-YVpZpyekJnBLmqIU6nCPAj-jIud0rYD4x7dpPCcsN1TwVnvporsXEkpVVMt5K65qJ7VLyn7vW1KnVg-pxXHRJpSOFLpPnK4ZWIBlR2xu0DdWEYiemh5uarg7Z7xBOgeYEyTBN96xU2ahaD6HLChIsdhK0IPJY1jVpTaMrC1ntknP-WBfKrUsTDTQjfpS9z1ML67rErXVsXdZlaPhHsyLjCZG7ScHh0n_B3fB8PdOYELDUhx2Q3h1lxDzZz_qiVtL8sOhinEz2FWxeXnem9QdPEmPPaRWRmXC4PkTs1DDBB35tzI5HqravZitaNkuJcbTJktAZRCankvUxm96qDE6lNHa5YpWD1mR-LPh1O5x0KUpA9SbTCiywgFF0BcIw0p7dDAH/https%3A%2F%2Fcharlescurley.com%2Fblog%2F
[Prev in Thread] | Current Thread | [Next in Thread] |