Reply To: Having trouble getting data

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU Having trouble getting data Reply To: Having trouble getting data

#15886
webtop
Participant

sudo gpsd -V

gpsd: 3.17 (revision 3.17)

ls -l /dev/serial*

lrwxrwxrwx 1 root root 5 Jun 11 18:11 /dev/serial0 -> ttyS0
lrwxrwxrwx 1 root root 7 Jun 11 18:11 /dev/serial1 -> ttyAMA0

cat /etc/default/gpsd

# Default settings for the gpsd init script and the hotplug wrapper.
# Start the gpsd daemon automatically at boot time
START_DAEMON="false"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="false"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/serial0"
# Other options you want to pass to gpsd
GPSD_OPTIONS=""

cat /lib/systemd/system/gpsd.socket

[Unit]
Description=GPS (Global Positioning System) Daemon Sockets
[Socket]
ListenStream=/var/run/gpsd.sock
ListenStream=[::1]:2947
ListenStream=127.0.0.1:2947
SocketMode=0600
[Install]
WantedBy=sockets.target

I purposefully set START_DAEMON="false" while I was testing.

I noticed something interesting though: if I run sudo gpsmon /dev/serial0 I do get the gpsmon output, and I do see results, but then after a few seconds it stops with "Error reading device", and then subsequent runs do not produce any output.

I'm pretty versed in Linux, and work as a software engineer, so if I need to deep dive into anything I'm fine doing so.

Thanks

Blip, blop, bloop...