gpsd-users
[Top][All Lists]
Advanced

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

Re: GPSD 3.23~rc1 connection to GPS


From: Aranza Shaccid Leon
Subject: Re: GPSD 3.23~rc1 connection to GPS
Date: Fri, 6 Aug 2021 20:57:28 -0700

Hello and good afternoon!

I've attempted to open the file /etc/default/gpsd, but I'm afraid I don't have this.

root@clover-9676:~# cat /etc/default/gpsd
cat: /etc/default/gpsd: No such file or directory

I've also attempted the command gpsd -nND 4 /dev/gps0 which resulted in:

root@clover-9676:~#  gpsd -nND 4 /dev/gps0
gpsd:WARN: This system has a 32-bit time_t.  This gpsd will fail at 2038-01-19T03:14:07Z.
gpsd:INFO: launching (Version 3.23~rc1)
gpsd:ERROR: can't bind to IPv4 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!  Or systemd has the port?
gpsd:ERROR: can't bind to IPv6 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!  Or systemd has the port?
gpsd:ERROR: command sockets creation failed, netlib errors -1, -1

Any I have also attempted the ps ax | sed -nE '1p;/gpsd/p' to check if gpsd is running.

root@clover-9676:~# ps ax | sed -nE '1p;/gpsd/p'
  PID TTY      STAT   TIME COMMAND
  912 ?        S<s    0:00 /usr/local/sbin/gpsd
  995 pts/0    S+     0:00 sed -nE 1p;/gpsd/p

Outside of still gpsd not being connected to the port /dev/gps0 is there any irregularity in how this program is running from these responses?

Thank you for your time and consideration. 
Sincerely,
Leon

On Thu, Aug 5, 2021 at 12:31 PM Charles Curley <charlescurley@charlescurley.com> wrote:
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


reply via email to

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