Hi Guys
We seem to still be having issues when we use NMEA feed with gpsd
I believe that sometimes our device comes online before the device
that's router and also providing our NMEA feed
To test, I disconnected ethernet and rebooted device - it's using dhcp
so it then has no ethernet
Obviously opening of the tcp feed then fails - but in an ideal world
gpsd would retry until receiving a successful feed
We also see gpsd starting OK but discarding the tcp feed if it fails to
connect:
Aug 14 11:01:22 TSB-318 gpsd[586]: gpsd:ERROR: CORE: TCP
tcp://192.168.2.53:10110 IP , open error can't connect to host/port pai
r(-6).
Aug 14 11:01:22 TSB-318 gpsd[586]: gpsd:ERROR: initial GPS device
tcp://192.168.2.53:10110 open failed
Aug 14 11:01:22 TSB-318 gpsd[586]: gpsd:ERROR:
stat(tcp://192.168.2.53:10110) failed, errno No such file or directory(2)
Aug 14 11:01:24 TSB-318 gpsd[586]: gpsd:ERROR: CORE: TCP
tcp://192.168.2.53:10110 IP , open error can't connect to host/port pai
r(-6).
Aug 14 11:01:24 TSB-318 gpsd[586]: gpsd:ERROR: tcp://192.168.2.53:10110:
device activation failed, freeing device.
It then continues with no device assigned...
Log attached. I await your comments!!
Many thanks
Nick
root@TSB-318:~# gpsd -D5 -n -N tcp://192.168.2.53:10110
gpsd:WARN: This system has a 32-bit time_t. This gpsd will fail at
2038-01-19T03:14:07Z.
gpsd:INFO: launching (Version 3.26.2~dev, revision release-3.26.1-87-ga8392a019)
gpsd:INFO: starting uid 0, gid 0
gpsd:INFO: Command line: gpsd -D5 -n -N tcp://192.168.2.53:10110
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTP:SHM: shmat(0,0,0) succeeded, unit 0
gpsd:PROG: NTP:SHM: shmat(1,0,0) succeeded, unit 1
gpsd:PROG: NTP:SHM: shmat(2,0,0) succeeded, unit 2
gpsd:PROG: NTP:SHM: shmat(3,0,0) succeeded, unit 3
gpsd:PROG: NTP:SHM: shmat(4,0,0) succeeded, unit 4
gpsd:PROG: NTP:SHM: shmat(5,0,0) succeeded, unit 5
gpsd:PROG: NTP:SHM: shmat(6,0,0) succeeded, unit 6
gpsd:PROG: NTP:SHM: shmat(7,0,0) succeeded, unit 7
gpsd:PROG: NTP:SHM: shmat(8,0,0) succeeded, unit 8
gpsd:PROG: NTP:SHM: shmat(9,0,0) succeeded, unit 9
gpsd:PROG: NTP:SHM: shmat(10,0,0) succeeded, unit 10
gpsd:PROG: NTP:SHM: shmat(11,0,0) succeeded, unit 11
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: SHM: shmget(0x47505344, 38064, 0666) for SHM export succeeded
gpsd:PROG: SHM: shmat() for SHM export succeeded, segment 15
gpsd:INFO: stashing device tcp://192.168.2.53:10110 at slot 0
gpsd:PROG: CORE: open_device(tcp://192.168.2.53:10110) fd -1
gpsd:PROG: CORE: gpsd_activate(tcp://192.168.2.53:10110, 2) fd -1
gpsd:PROG: CORE: no /etc/gpsd/device-hook present, skipped running ACTIVATE
hook. No such file
or directory(2)
gpsd:PROG: CORE: gpsd_open(tcp://192.168.2.53:10110) fld -1
gpsd:PROG: CORE: opening TCP feed at 192.168.2.53, port 10110.
gpsd:ERROR: CORE: TCP tcp://192.168.2.53:10110 IP , open error can't connect to
host/port pair(
-6).
gpsd:PROG: CORE: from gpsd_activate() fd -6
gpsd:ERROR: initial GPS device tcp://192.168.2.53:10110 open failed
gpsd:ERROR: can't run with neither control socket nor devices open
root@TSB-318:~#