gpsd-users
[Top][All Lists]
Advanced

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

Re: gpsd-users Digest, Vol 104, Issue 5


From: Bradley McFadden
Subject: Re: gpsd-users Digest, Vol 104, Issue 5
Date: Tue, 8 Sep 2020 09:08:06 -0400

Hey Gary!

> You just said cat read nothing.  And now cat read something?

Sorry about the confusion. Yes, cat does read /dev/ttyXTRX0. It produces
this output, which is what I expect:

root@gr110:/home/sail# stty -F /dev/ttyXTRX0 speed 9600 && cat /dev/ttyXTRX0 9600
�$PMTK011,MTKGPS*08
$PMTK010,001*2E
$PMTK011,MTKGPS*08
$PMTK010,002*2D
$PMTK011,MTKGPS$PMTK001,10,1*03
$PMTK011,MTKGPS$PMTK001,10,1*03
$GNGGA,235942.870,,,,,0,0,,,M,,M,,*52
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GLGSA,A,1,,,,,,,,,,,,,,,*02
$GPGSV,1,1,00*79
$GLGSV,1,1,00*65
$GNRMC,235942.870,V,,,,,0.00,0.00,050180,,,N*5B
...


> And what does this show:
>      netstat -apn | fgrep 2974

This command produces no output.


> Something wrong with your system as that did not work.
> What distro is this again?
> Until "lsof /dev/ttyXRX0" works, no point trying gpsd.

The computer is running Ubuntu 20.04.1 LTS.
I looked into the warning and "lsof" supposedly produces the warning because no user except the user that mounted
a FUSE filesystem can enter it. Using the -e argument of lsof, the warning disappears and the command produces
no output:

Original Command:
root@gr110:/home/sail# lsof /dev/ttyXTRX0
lsof: WARNING: can't stat() fuse file system /run/user/1000/doc
      Output information may be incomplete.

Updated Command:
root@gr110:/home/sail# lsof -e /run/user/1000/doc /dev/ttyXTRX0


> Which, of course, is expalined in the gpsd doc on systemd(reck).

I have not read this. I was unable to find it after some googling.
Could you point me in the right direction?

Thanks for your time Gary.
-Bradley





On Sat, Sep 5, 2020 at 12:03 PM <gpsd-users-request@nongnu.org> wrote:
Send gpsd-users mailing list submissions to
        gpsd-users@nongnu.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.nongnu.org/mailman/listinfo/gpsd-users
or, via email, send a message with subject or body 'help' to
        gpsd-users-request@nongnu.org

You can reach the person managing the list at
        gpsd-users-owner@nongnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gpsd-users digest..."


Today's Topics:

   1. Re: gpsd-users Digest, Vol 104, Issue 3 (Gary E. Miller)


----------------------------------------------------------------------

Message: 1
Date: Fri, 4 Sep 2020 10:02:49 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd-users@nongnu.org
Subject: Re: gpsd-users Digest, Vol 104, Issue 3
Message-ID: <20200904100249.71dd775e@spidey.rellim.com" target="_blank">20200904100249.71dd775e@spidey.rellim.com>
Content-Type: text/plain; charset="utf-8"

Yo Bradley!

On Fri, 4 Sep 2020 12:50:36 -0400
Bradley McFadden <bmcfadden@laurentian.ca> wrote:

> Hey Gary!
>
> Your help is allowing me to make some progress on this problem.
> Thanks!
>
> > Does it send NMEA, by default, when you turn it on?  Otherwise not
> > gonna work with gpsd. 
> > > > > I can read data from this device using:
> > > > > stty -F /dev/ttyXTRX0 speed 9600 && cat /dev/ttyXTRX0. 
> > > > You fail to note whehter that is as root, or a user. 
> > >
> > > This command is being run as user. 
> > A user in the dialout group? 
>
> Yes, the user is in the dialout group.
>
> sail@gr110:~/workarea/workarea/gr-fosphor/build$ groups
> sail adm dialout cdrom sudo dip plugdev lxd wireshark

And so, I guess, not roor.  Not being root breaks a lot of gpsd.

> > What does the cat show you? 
>
> The cat seems to be showing me NMEA data.

If cat can not open the port, then gpsd can not open the port.

Alsways stop at the first failure.  Not bbeing able to cat is
your first failure.  Ignore gpsd until you fix that.


> I know that the XTRX
> doesn't have satellite lock, but I'm more
> concerned with gpsd being able to read from the device at the moment.

Do not be.  Be concerned that cat can not read the device.

> sail@gr110:~/workarea/workarea/gr-fosphor/build$ stty -F /dev/ttyXTRX0
> speed 9600 && cat /dev/ttyXTRX0
> 9600
> �$PMTK011,MTKGPS*08
> $PMTK010,001*2E
> $PMTK011,MTKGPS*08
> $PMTK010,002*2D
> $PMTK011,MTKGPS$PMTK001,10,1*03
> $PMTK011,MTKGPS$PMTK001,10,1*03
> $GNGGA,235942.870,,,,,0,0,,,M,,M,,*52
> $GPGSA,A,1,,,,,,,,,,,,,,,*1E
> $GLGSA,A,1,,,,,,,,,,,,,,,*02
> $GPGSV,1,1,00*79

You just said cat read nothing.  And now cat read something?
What changed?  This is not Shreodinger's Cat.  It can not be both ways
at the same time.

> > You gotta make a choice, are you going to run gpsd under
> > systemd(umber), or not.  You can not do both. 
>
> I found the systemd services that gpsd used with this command:

Did you read the gpsd systemd(umbest) doc?

> After disabling the services systemd was running, port 2947 cleared
> up, and I no longer got an error
> about port 2947 being in use.

Which, of course, is expalined in the gpsd doc on systemd(reck).

And what does this show:
        netstat -apn | fgrep 2974

> > Try this, as root:
> >       lsof /dev/ttyXRX0 
>
> root@gr110:/home/sail/workarea/workarea/gr-fosphor/build# lsof
> /dev/ttyXTRX0 lsof: WARNING: can't stat() fuse file system
> /run/user/1000/doc Output information may be incomplete.

Something wrong with your system as that did not work.

What distro is this again?

Until "lsof /dev/ttyXRX0" works, no point trying gpsd.

> > Run gpsd as root, or do not bother.  Running as not root breaks
> > things that you are not prepared to deal with. 
>
> Will do. This is the output. Same permission error as before.
>
> root@gr110:/home/sail/workarea/icmtgui-dev# gpsd -n -N /dev/ttyXTRX0
> gpsd:ERROR: SER: device open of /dev/ttyXTRX0 failed: Permission
> denied - retrying read-only

So, once again. did cat on the port work, or not?  You said both.

> > Fun, another stingray clone? 
> Yeah, that's the idea of the project. The idea is to do the RF side of
> things with a software based radio
> we can listen to any frequency and perform different demodulations.
> In this way we hope to be able to
> detect and identify as much as possible with just an XTRX and a second
> radio that goes up to 6GHz.

All this work to save a $20 GPS?

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.nongnu.org/archive/html/gpsd-users/attachments/20200904/5d8c065b/attachment.sig>

------------------------------

Subject: Digest Footer

_______________________________________________
gpsd-users mailing list
gpsd-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/gpsd-users


------------------------------

End of gpsd-users Digest, Vol 104, Issue 5
******************************************

CONFIDENTIALITY NOTE - AVIS: COURRIEL CONFIDENTIEL. 

You can view the confidentiality terms at https://laurentian.ca/confidentiality. Notre avis de confidentialité est disponible au site https://laurentienne.ca/avis
reply via email to

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