Open arzulo opened 3 years ago
I had the same problem and solved it by adding "XTRX" into the apparmor config file (Ubuntu 20.04).
Steps to do:
sudo nano /etc/apparmor.d/usr.sbin.gpsd
# add 'XTRX' after 'AMA' into following lines:
# ------------------------------------------------------------------------------
# common serial paths to GPS devices
/dev/tty{,S,USB,AMA,ACM,XTRX}[0-9]* rw,
# default paths feeding GPS data into chrony
/{,var/}run/chrony.tty{,S,USB,AMA,XTRX}[0-9]*.sock rw,
/tmp/chrony.tty{,S,USB,AMA,XTRX}[0-9]*.sock rw,
# ------------------------------------------------------------------------------
sudo systemctl restart apparmor
# test gpsd if service disabled, else restart service gpsd
sudo gpsd -N -n -D 5 /dev/ttyXTRX0 /dev/pps0
br
I'm having an issue with permissions between my XTRX and gpsd to try and read GPS data. No matter how I format permissions, I end up with the error...
I've gone through the setup at https://github.com/xtrx-sdr/images#non-root-access-for-devxtrx0 in order to have non-root access, as well as all other setup procedures in the images repo.
I also have
gpsd
and my user account included into thedialout
group since I see that's what the XTRX is under.I am able to see GPS data however by connection directly through serial via
minicom -D /dev/ttyXTRX0
Any idea what's going on?