topguy wrote:cgps is a client program for GPSD, is GPSD running ?
gpsmon is a program that reads directly from serialport. You should not run this program at the same time as GPSD, only one program should read from the serialport at any time.
Tried running this code, which is supposed to start gpsd
gpsd -D 5 -N -n /dev/serial0
And got this
gpsd:INFO: launching (Version 3.11)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTPD shmat(884745,0,0) succeeded, segment 2
gpsd:PROG: NTPD shmat(917514,0,0) succeeded, segment 3
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: shmat() succeeded, segment 950283
gpsd:PROG: shared-segment creation succeeded,
gpsd:INFO: stashing device /dev/serial0 at slot 0
gpsd:INFO: opening GPS data source type 2 at '/dev/serial0'
gpsd:ERROR: device open failed: Permission denied - retrying read-only
gpsd:ERROR: read-only device open failed: Permission denied
gpsd:ERROR: initial GPS device /dev/serial0 open failed
gpsd:INFO: running with effective group ID 1000
gpsd:INFO: running with effective user ID 1000
gpsd:INFO: startup at 2017-04-04T12:31:00.000Z (1491309060)