[Top][All Lists]

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

Re: Permission Error When Opening gpsd For XTRX Device

From: Gary E. Miller
Subject: Re: Permission Error When Opening gpsd For XTRX Device
Date: Wed, 2 Sep 2020 12:13:35 -0700

Yo Bradley!

On Wed, 2 Sep 2020 11:54:28 -0400
Bradley McFadden <> wrote:

> I'm trying to set up gpsd to read data from the onboard gps that the
> XTRX radio provides.

What is this XTRX you speak of?  Why?

You skipped a bunch of important details:

1. What distro?
2. What version of gpsd?
3. Did you build gpsd, or is it from a package?

> In the devices list, it is listed as /dev/ttyXTRX0.

Better to show than paraphrase.  What does this show:

$ ls -l /dev/ttyXTRX0

> 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.

> The error I'm getting is this:
> sail@gr110:~/Desktop$ sudo gpsd -n -N -D5 -S 3900 /dev/ttyXTRX0

1. Never use sudu, it is security theater and does surprising things.

2. "-S 3900".  Why are you using TPC port 3900??

> gpsd:INFO: launching (Version 3.20)

Old version.

> gpsd:INFO: listening on port 3900

"-S 3900".  Why are you using TPC port 3900??

> gpsd:ERROR: SER: device open of /dev/ttyXTRX0 failed: Permission
> denied - retrying read-only

Back to what dies "ls -l /dev/ttyXTRX0" say?

> This error doesn't make sense to me as I've checked that the user and
> gpsd are both in the dialout group.

Uh, remember that sudo?  You are not running as "user'.

Don't use sudo!

> If I can read the data from the device, why can't gpsd open it?

Dunno, insufficient data.  See above.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpcLzuPhPhyk.pgp
Description: OpenPGP digital signature

reply via email to

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