Hi
I have a problem trying to get gpsd operating with A.A. 12.09; clients cannot connect to the gpsd socket it appears. I would really appreciate help with this if anyone can spare some time.
Details
A.A. 12.09, TP-Link WDR3600
GPS = Globalsat BU SIRF iV puck
Installed USB module PL2303.
Set Baud rate 4800, CS8, -parenb
With the GPS connected I can see the NMEA sentences on /dev/ttyUSB0
These look separated by more than one carriage return.
gpsd -N -D3 - reports all is OK with GPSD.
It can then be run as a daemon
a netstat shows the process and default port against localhost.
BUT
The wireless test client (Mac) cannot connect to the gpsd socket - so I cannot use nc (say) and neither can I connect to the data stream using navigation software (MacENC or iNavX) that has the capability to read TCP encapsulated data via host/port numbers.
I am stumped and cannot fathom what I must have overlooked or done incorrectly. As I said, all help would be great
Below is a ssh capture if that is of use. The XXX, YYY & ZZ subsitutions are mine after the cut from ssh for obvious reasons :-)
root@OpenWrt:~# stty 4800 cs8 -parenb -F /dev/ttyUSB0
root@OpenWrt:~#
root@OpenWrt:~# cat </dev/ttyUSB0
$GPGGA,074835.884,XXXX.XXXX,N,000YY.YYYY,E,1,03,3.2,45.6,M,47.0,M,0000*ZZ
$GPGLL,XXXX.YYYY,N,000YY.YYYY,E,074835.884,A,A*5B
$GPRMC,074835.884,A,XXXX.XXXX,N,000YY.YYYY,E,1.71,36.81,310513,,,A*ZZ
$GPVTG,36.81,T,,M,1.71,N,3.2,K,N*38
$GPGGA,074836.884,XXXX.XXXX,N,000YY.YYYY,E,1,03,3.2,45.6,M,47.0,M,0000*ZZ
^C
root@OpenWrt:~#
root@OpenWrt:~# gpsd -N -D3 /dev/ttyUSB0
gpsd:INFO: launching (Version 3.7)
gpsd:ERROR: can't create IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device /dev/ttyUSB0 at slot 0
gpsd:INFO: running with effective group ID 0
gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2011-09-08T16:30:20.000Z (1315499420)
^Cgpsd:WARN: received terminating signal 2.
gpsd:WARN: exiting.
root@OpenWrt:~#
root@OpenWrt:~# gpsd /dev/ttyUSB0
root@OpenWrt:~#
root@OpenWrt:~# netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:2947 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
netstat: /proc/net/tcp6: No such file or directory
udp 0 0 0.0.0.0:12574 0.0.0.0:*
udp 0 0 0.0.0.0:31285 0.0.0.0:*
udp 0 0 0.0.0.0:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 1408 0.0.0.0:14148 0.0.0.0:*
udp 0 0 0.0.0.0:5444 0.0.0.0:*
udp 0 0 0.0.0.0:25926 0.0.0.0:*
udp 0 0 0.0.0.0:47434 0.0.0.0:*
udp 0 0 0.0.0.0:4968 0.0.0.0:*
udp 0 0 0.0.0.0:45740 0.0.0.0:*
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 849 /var/run/ubus.sock
root@OpenWrt:~#
(Last edited by Aleksandr on 31 May 2013, 09:32)