[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Socket Problems
From: |
Cale Collins |
Subject: |
Re: Socket Problems |
Date: |
Thu, 7 Oct 2021 16:00:37 -0700 |
Hi Charles and Gary,
Thanks for your replies! I built the package from source and it works
flawlessly. As it turns out there was an issue with my feed (a PPA).
I really appreciate that you took the time to address my question,
thank you very much!
Mahalo,
Cale Collins
Field Applications Engineer II
Gateworks Corporation
(805)781-2000 x37
3026 S. Higuera, San Luis Obispo, CA 93401
www.gateworks.com
Cale Collins
Field Applications Engineer II
Gateworks Corporation
(805)781-2000 x37
3026 S. Higuera, San Luis Obispo, CA 93401
www.gateworks.com
On Thu, Oct 7, 2021 at 11:01 AM Gary E. Miller <gem@rellim.com> wrote:
>
> Yo Cale!
>
> On Wed, 6 Oct 2021 16:28:37 -0700
> Cale Collins <ccollins@gateworks.com> wrote:
>
> > When I "cat" the output of my GPS (/dev/ttyACM0) I see the expected
> > fix data, also when I use "gpsmon" it's working great. But I have a
> > problem when using "cgps", all the fields are N/A. I'm thinking this
> > has to do with how the socket is configured.
>
> What is this socket? gpsd talks to the GPS (/dev/ttyACM0), and cgps
> talks to gpsd, probably over tcp (127.0.0.1:2947).
>
> > When I installed the gpsd package I noticed this in the output:
>
> Uh, oh. You realize that gpsd project releases no packages? That is
> not from here.
>
> Where did it come from?
> What version?
> How are you running gpsd (the daemon)?
>
> > Creating/updating gpsd user account...
> > Created symlink /etc/systemd/system/sockets.target.wants/gpsd.socket →
> > /lib/systemd/system/gpsd.socket.
> > Failed to preset unit: Unit file gpsd.socket.in.service does not
> > exist. /usr/bin/deb-systemd-helper: error: systemctl preset failed on
> > gpsd.socket.in: No such file or directory
> > gpsd.service is a disabled or a static unit, not starting it.
> > Failed to get unit file state for gpsd.socket.in.service: No such file
> > or directory
> > gpsd.socket.in is a disabled or a static unit, not starting it.
>
> None of that is from here. You have to ask your distro about how they
> munged gpsd into sysgemd(umb).
>
> > "ps -ef|grep gpsd" No GPSD process is running
> > root 2203 451 0 01:49 ttyAMA0 00:00:00 grep --color=auto
> > gpsd
>
> There is your problem. No need to continue. But you are running gpsd
> under systemd(umber), and I do not support that. Maybe someone else can
> help.
>
>
> > "gpsd -N -D3 -F @RUNDIR/gpsd.sock /dev/ttyACM0" fails:
> > gpsd:ERROR: can't bind to local socket @RUNDIR/gpsd.sock
> > gpsd:ERROR: control socket create failed, netlib error -1
>
> Becasue systemd(umbest) has the socket (2947). You have a choice to make,
> either run under systemd(umpkopf), or standalone. You can not mix and
> match.
>
> You choice: get rid of gpsd undersystemd(rool), or keep fighting it.
>
> > The system I'm using is ARM64, Ubuntu Focal, 5.10 kernel. This is a
> > custom built kernel, could it be I'm missing a kernel parameter?
>
> Looks like you have the ACM driver in, good. The only other thing is to
> chack that the PPS module is also built and running.
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
> gem@rellim.com Tel:+1 541 382 8588
>
> Veritas liberabit vos. -- Quid est veritas?
> "If you can't measure it, you can't improve it." - Lord Kelvin